arpeggi-framer-components 0.0.24 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +631 -623
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +22 -22
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
(function(
|
1
|
+
(function(fe,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],w):(fe=typeof globalThis<"u"?globalThis:fe||self,w(fe["react-beautiful-timeline"]={},fe.React))})(this,function(fe,w){"use strict";var Bp=Object.defineProperty;var zp=(fe,w,ft)=>w in fe?Bp(fe,w,{enumerable:!0,configurable:!0,writable:!0,value:ft}):fe[w]=ft;var bn=(fe,w,ft)=>zp(fe,typeof w!="symbol"?w+"":w,ft);function ft(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const qo=ft(w);function hi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vt={exports:{}},Tt={};/**
|
2
2
|
* @license React
|
3
3
|
* react-jsx-runtime.production.min.js
|
4
4
|
*
|
@@ -6,7 +6,7 @@
|
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/var
|
9
|
+
*/var yi;function Wo(){if(yi)return Tt;yi=1;var e=w,t=Symbol.for("react.element"),i=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,c,p){var l,u={},f=null,m=null;p!==void 0&&(f=""+p),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(m=c.ref);for(l in c)n.call(c,l)&&!o.hasOwnProperty(l)&&(u[l]=c[l]);if(s&&s.defaultProps)for(l in c=s.defaultProps,c)u[l]===void 0&&(u[l]=c[l]);return{$$typeof:t,type:s,key:f,ref:m,props:u,_owner:r.current}}return Tt.Fragment=i,Tt.jsx=a,Tt.jsxs=a,Tt}var kt={};/**
|
10
10
|
* @license React
|
11
11
|
* react-jsx-runtime.development.js
|
12
12
|
*
|
@@ -14,43 +14,43 @@
|
|
14
14
|
*
|
15
15
|
* This source code is licensed under the MIT license found in the
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
17
|
-
*/var
|
18
|
-
`+
|
17
|
+
*/var bi;function Uo(){return bi||(bi=1,process.env.NODE_ENV!=="production"&&function(){var e=w,t=Symbol.for("react.element"),i=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.iterator,g="@@iterator";function E(d){if(d===null||typeof d!="object")return null;var T=v&&d[v]||d[g];return typeof T=="function"?T:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(d){{for(var T=arguments.length,D=new Array(T>1?T-1:0),K=1;K<T;K++)D[K-1]=arguments[K];_("error",d,D)}}function _(d,T,D){{var K=x.ReactDebugCurrentFrame,le=K.getStackAddendum();le!==""&&(T+="%s",D=D.concat([le]));var be=D.map(function(re){return String(re)});be.unshift("Warning: "+T),Function.prototype.apply.call(console[d],console,be)}}var k=!1,b=!1,j=!1,q=!1,F=!1,Y;Y=Symbol.for("react.module.reference");function H(d){return!!(typeof d=="string"||typeof d=="function"||d===n||d===o||F||d===r||d===p||d===l||q||d===m||k||b||j||typeof d=="object"&&d!==null&&(d.$$typeof===f||d.$$typeof===u||d.$$typeof===a||d.$$typeof===s||d.$$typeof===c||d.$$typeof===Y||d.getModuleId!==void 0))}function oe(d,T,D){var K=d.displayName;if(K)return K;var le=T.displayName||T.name||"";return le!==""?D+"("+le+")":D}function he(d){return d.displayName||"Context"}function ne(d){if(d==null)return null;if(typeof d.tag=="number"&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case n:return"Fragment";case i:return"Portal";case o:return"Profiler";case r:return"StrictMode";case p:return"Suspense";case l:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case s:var T=d;return he(T)+".Consumer";case a:var D=d;return he(D._context)+".Provider";case c:return oe(d,d.render,"ForwardRef");case u:var K=d.displayName||null;return K!==null?K:ne(d.type)||"Memo";case f:{var le=d,be=le._payload,re=le._init;try{return ne(re(be))}catch{return null}}}return null}var V=Object.assign,pe=0,Re,Te,ue,we,R,C,B;function W(){}W.__reactDisabledLog=!0;function z(){{if(pe===0){Re=console.log,Te=console.info,ue=console.warn,we=console.error,R=console.group,C=console.groupCollapsed,B=console.groupEnd;var d={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}pe++}}function G(){{if(pe--,pe===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:V({},d,{value:Re}),info:V({},d,{value:Te}),warn:V({},d,{value:ue}),error:V({},d,{value:we}),group:V({},d,{value:R}),groupCollapsed:V({},d,{value:C}),groupEnd:V({},d,{value:B})})}pe<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var L=x.ReactCurrentDispatcher,U;function J(d,T,D){{if(U===void 0)try{throw Error()}catch(le){var K=le.stack.trim().match(/\n( *(at )?)/);U=K&&K[1]||""}return`
|
18
|
+
`+U+d}}var te=!1,M;{var ye=typeof WeakMap=="function"?WeakMap:Map;M=new ye}function y(d,T){if(!d||te)return"";{var D=M.get(d);if(D!==void 0)return D}var K;te=!0;var le=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var be;be=L.current,L.current=null,z();try{if(T){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(Xe){K=Xe}Reflect.construct(d,[],re)}else{try{re.call()}catch(Xe){K=Xe}d.call(re.prototype)}}else{try{throw Error()}catch(Xe){K=Xe}d()}}catch(Xe){if(Xe&&K&&typeof Xe.stack=="string"){for(var ie=Xe.stack.split(`
|
19
19
|
`),Pe=K.stack.split(`
|
20
20
|
`),Ce=ie.length-1,De=Pe.length-1;Ce>=1&&De>=0&&ie[Ce]!==Pe[De];)De--;for(;Ce>=1&&De>=0;Ce--,De--)if(ie[Ce]!==Pe[De]){if(Ce!==1||De!==1)do if(Ce--,De--,De<0||ie[Ce]!==Pe[De]){var Me=`
|
21
|
-
`+ie[Ce].replace(" at new "," at ");return d.displayName&&Me.includes("<anonymous>")&&(Me=Me.replace("<anonymous>",d.displayName)),typeof d=="function"&&M.set(d,Me),Me}while(Ce>=1&&De>=0);break}}}finally{te=!1,L.current=be,G(),Error.prepareStackTrace=le}var Rt=d?d.displayName||d.name:""
|
21
|
+
`+ie[Ce].replace(" at new "," at ");return d.displayName&&Me.includes("<anonymous>")&&(Me=Me.replace("<anonymous>",d.displayName)),typeof d=="function"&&M.set(d,Me),Me}while(Ce>=1&&De>=0);break}}}finally{te=!1,L.current=be,G(),Error.prepareStackTrace=le}var Rt=d?d.displayName||d.name:"",No=Rt?J(Rt):"";return typeof d=="function"&&M.set(d,No),No}function P(d,T,D){return y(d,!1)}function X(d){var T=d.prototype;return!!(T&&T.isReactComponent)}function $(d,T,D){if(d==null)return"";if(typeof d=="function")return y(d,X(d));if(typeof d=="string")return J(d);switch(d){case p:return J("Suspense");case l:return J("SuspenseList")}if(typeof d=="object")switch(d.$$typeof){case c:return P(d.render);case u:return $(d.type,T,D);case f:{var K=d,le=K._payload,be=K._init;try{return $(be(le),T,D)}catch{}}}return""}var de=Object.prototype.hasOwnProperty,ke={},Q=x.ReactDebugCurrentFrame;function ee(d){if(d){var T=d._owner,D=$(d.type,d._source,T?T.type:null);Q.setExtraStackFrame(D)}else Q.setExtraStackFrame(null)}function Ee(d,T,D,K,le){{var be=Function.call.bind(de);for(var re in d)if(be(d,re)){var ie=void 0;try{if(typeof d[re]!="function"){var Pe=Error((K||"React class")+": "+D+" type `"+re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[re]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Pe.name="Invariant Violation",Pe}ie=d[re](T,re,K,D,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ce){ie=Ce}ie&&!(ie instanceof Error)&&(ee(le),O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",K||"React class",D,re,typeof ie),ee(null)),ie instanceof Error&&!(ie.message in ke)&&(ke[ie.message]=!0,ee(le),O("Failed %s type: %s",D,ie.message),ee(null))}}}var Ye=Array.isArray;function qe(d){return Ye(d)}function Ke(d){{var T=typeof Symbol=="function"&&Symbol.toStringTag,D=T&&d[Symbol.toStringTag]||d.constructor.name||"Object";return D}}function S(d){try{return A(d),!1}catch{return!0}}function A(d){return""+d}function ae(d){if(S(d))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ke(d)),A(d)}var xe=x.ReactCurrentOwner,Oe={key:!0,ref:!0,__self:!0,__source:!0},et,Je,dt;dt={};function Lt(d){if(de.call(d,"ref")){var T=Object.getOwnPropertyDescriptor(d,"ref").get;if(T&&T.isReactWarning)return!1}return d.ref!==void 0}function Mt(d){if(de.call(d,"key")){var T=Object.getOwnPropertyDescriptor(d,"key").get;if(T&&T.isReactWarning)return!1}return d.key!==void 0}function Et(d,T){if(typeof d.ref=="string"&&xe.current&&T&&xe.current.stateNode!==T){var D=ne(xe.current.type);dt[D]||(O('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',ne(xe.current.type),d.ref),dt[D]=!0)}}function $t(d,T){{var D=function(){et||(et=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",T))};D.isReactWarning=!0,Object.defineProperty(d,"key",{get:D,configurable:!0})}}function Nt(d,T){{var D=function(){Je||(Je=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",T))};D.isReactWarning=!0,Object.defineProperty(d,"ref",{get:D,configurable:!0})}}var qt=function(d,T,D,K,le,be,re){var ie={$$typeof:t,type:d,key:T,ref:D,props:re,_owner:be};return ie._store={},Object.defineProperty(ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:K}),Object.defineProperty(ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:le}),Object.freeze&&(Object.freeze(ie.props),Object.freeze(ie)),ie};function Wt(d,T,D,K,le){{var be,re={},ie=null,Pe=null;D!==void 0&&(ae(D),ie=""+D),Mt(T)&&(ae(T.key),ie=""+T.key),Lt(T)&&(Pe=T.ref,Et(T,le));for(be in T)de.call(T,be)&&!Oe.hasOwnProperty(be)&&(re[be]=T[be]);if(d&&d.defaultProps){var Ce=d.defaultProps;for(be in Ce)re[be]===void 0&&(re[be]=Ce[be])}if(ie||Pe){var De=typeof d=="function"?d.displayName||d.name||"Unknown":d;ie&&$t(re,De),Pe&&Nt(re,De)}return qt(d,ie,Pe,le,K,xe.current,re)}}var Ut=x.ReactCurrentOwner,Io=x.ReactDebugCurrentFrame;function St(d){if(d){var T=d._owner,D=$(d.type,d._source,T?T.type:null);Io.setExtraStackFrame(D)}else Io.setExtraStackFrame(null)}var vi;vi=!1;function gi(d){return typeof d=="object"&&d!==null&&d.$$typeof===t}function Bo(){{if(Ut.current){var d=ne(Ut.current.type);if(d)return`
|
22
22
|
|
23
|
-
Check the render method of \``+d+"`."}return""}}function
|
23
|
+
Check the render method of \``+d+"`."}return""}}function Cp(d){return""}var zo={};function _p(d){{var T=Bo();if(!T){var D=typeof d=="string"?d:d.displayName||d.name;D&&(T=`
|
24
24
|
|
25
|
-
Check the top-level render call using <`+D+">.")}return T}}function zo(d,T){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var D=Cp(T);if(Bo[D])return;Bo[D]=!0;var K="";d&&d._owner&&d._owner!==Wt.current&&(K=" It was passed a child from "+ne(d._owner.type)+"."),St(d),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',D,K),St(null)}}function Lo(d,T){{if(typeof d!="object")return;if(qe(d))for(var D=0;D<d.length;D++){var K=d[D];hi(K)&&zo(K,T)}else if(hi(d))d._store&&(d._store.validated=!0);else if(d){var le=E(d);if(typeof le=="function"&&le!==d.entries)for(var be=le.call(d),re;!(re=be.next()).done;)hi(re.value)&&zo(re.value,T)}}}function _p(d){{var T=d.type;if(T==null||typeof T=="string")return;var D;if(typeof T=="function")D=T.propTypes;else if(typeof T=="object"&&(T.$$typeof===c||T.$$typeof===u))D=T.propTypes;else return;if(D){var K=ne(T);Ee(D,d.props,"prop",K,d)}else if(T.PropTypes!==void 0&&!gi){gi=!0;var le=ne(T);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",le||"Unknown")}typeof T.getDefaultProps=="function"&&!T.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ap(d){{for(var T=Object.keys(d.props),D=0;D<T.length;D++){var K=T[D];if(K!=="children"&&K!=="key"){St(d),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",K),St(null);break}}d.ref!==null&&(St(d),O("Invalid attribute `ref` supplied to `React.Fragment`."),St(null))}}function Mo(d,T,D,K,le,be){{var re=H(d);if(!re){var ie="";(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(ie+=" 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 Pe=Op();Pe?ie+=Pe:ie+=Io();var Ce;d===null?Ce="null":qe(d)?Ce="array":d!==void 0&&d.$$typeof===t?(Ce="<"+(ne(d.type)||"Unknown")+" />",ie=" Did you accidentally export a JSX literal instead of a component?"):Ce=typeof d,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ce,ie)}var De=Ut(d,T,D,le,be);if(De==null)return De;if(re){var Me=T.children;if(Me!==void 0)if(K)if(qe(Me)){for(var Rt=0;Rt<Me.length;Rt++)Lo(Me[Rt],d);Object.freeze&&Object.freeze(Me)}else O("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 Lo(Me,d)}return d===n?Ap(De):_p(De),De}}function Dp(d,T,D){return Mo(d,T,D,!0)}function jp(d,T,D){return Mo(d,T,D,!1)}var Fp=jp,Pp=Dp;kt.Fragment=n,kt.jsx=Fp,kt.jsxs=Pp}()),kt}var Ei;function Wo(){return Ei||(Ei=1,process.env.NODE_ENV==="production"?Vt.exports=qo():Vt.exports=Uo()),Vt.exports}var ve=Wo(),fe="colors",Fe="sizes",I="space",Vo={gap:I,gridGap:I,columnGap:I,gridColumnGap:I,rowGap:I,gridRowGap:I,inset:I,insetBlock:I,insetBlockEnd:I,insetBlockStart:I,insetInline:I,insetInlineEnd:I,insetInlineStart:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,marginBlock:I,marginBlockEnd:I,marginBlockStart:I,marginInline:I,marginInlineEnd:I,marginInlineStart:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,paddingBlock:I,paddingBlockEnd:I,paddingBlockStart:I,paddingInline:I,paddingInlineEnd:I,paddingInlineStart:I,top:I,right:I,bottom:I,left:I,scrollMargin:I,scrollMarginTop:I,scrollMarginRight:I,scrollMarginBottom:I,scrollMarginLeft:I,scrollMarginX:I,scrollMarginY:I,scrollMarginBlock:I,scrollMarginBlockEnd:I,scrollMarginBlockStart:I,scrollMarginInline:I,scrollMarginInlineEnd:I,scrollMarginInlineStart:I,scrollPadding:I,scrollPaddingTop:I,scrollPaddingRight:I,scrollPaddingBottom:I,scrollPaddingLeft:I,scrollPaddingX:I,scrollPaddingY:I,scrollPaddingBlock:I,scrollPaddingBlockEnd:I,scrollPaddingBlockStart:I,scrollPaddingInline:I,scrollPaddingInlineEnd:I,scrollPaddingInlineStart:I,fontSize:"fontSizes",background:fe,backgroundColor:fe,backgroundImage:fe,borderImage:fe,border:fe,borderBlock:fe,borderBlockEnd:fe,borderBlockStart:fe,borderBottom:fe,borderBottomColor:fe,borderColor:fe,borderInline:fe,borderInlineEnd:fe,borderInlineStart:fe,borderLeft:fe,borderLeftColor:fe,borderRight:fe,borderRightColor:fe,borderTop:fe,borderTopColor:fe,caretColor:fe,color:fe,columnRuleColor:fe,fill:fe,outline:fe,outlineColor:fe,stroke:fe,textDecorationColor:fe,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:Fe,minBlockSize:Fe,maxBlockSize:Fe,inlineSize:Fe,minInlineSize:Fe,maxInlineSize:Fe,width:Fe,minWidth:Fe,maxWidth:Fe,height:Fe,minHeight:Fe,maxHeight:Fe,flexBasis:Fe,gridTemplateColumns:Fe,gridTemplateRows:Fe,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},Ho=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,mt=()=>{const e=Object.create(null);return(t,i,...n)=>{const r=(o=>JSON.stringify(o,Ho))(t);return r in e?e[r]:e[r]=i(t,...n)}},tt=Symbol.for("sxs.internal"),wn=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Si=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Go}=Object.prototype,En=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),Yo=/\s+(?![^()]*\))/,xt=e=>t=>e(...typeof t=="string"?String(t).split(Yo):[t]),Ri={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:xt((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:xt((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:xt((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:xt((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:xt((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:xt((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Sn=/([\d.]+)([^]*)/,Ko=(e,t)=>e.length?e.reduce((i,n)=>(i.push(...t.map(r=>r.includes("&")?r.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(r)?`:is(${n})`:n):n+" "+r)),i),[]):t,Jo=(e,t)=>e in Xo&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(i,n,r,o)=>n+(r==="stretch"?`-moz-available${o};${En(e)}:${n}-webkit-fill-available`:`-moz-fit-content${o};${En(e)}:${n}fit-content`)+o):String(t),Xo={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Ge=e=>e?e+"-":"",Ti=(e,t,i)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(n,r,o,a,s)=>a=="$"==!!o?n:(r||a=="--"?"calc(":"")+"var(--"+(a==="$"?Ge(t)+(s.includes("$")?"":Ge(i))+s.replace(/\$/g,"-"):s)+")"+(r||a=="--"?"*"+(r||"")+(o||"1")+")":"")),Zo=/\s*,\s*(?![^()]*\))/,Qo=Object.prototype.toString,vt=(e,t,i,n,r)=>{let o,a,s;const c=(p,l,u)=>{let f,m;const v=g=>{for(f in g){const O=f.charCodeAt(0)===64,_=O&&Array.isArray(g[f])?g[f]:[g[f]];for(m of _){const k=/[A-Z]/.test(x=f)?x:x.replace(/-[^]/g,j=>j[1].toUpperCase()),b=typeof m=="object"&&m&&m.toString===Qo&&(!n.utils[k]||!l.length);if(k in n.utils&&!b){const j=n.utils[k];if(j!==a){a=j,v(j(m)),a=null;continue}}else if(k in Ri){const j=Ri[k];if(j!==s){s=j,v(j(m)),s=null;continue}}if(O&&(E=f.slice(1)in n.media?"@media "+n.media[f.slice(1)]:f,f=E.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(j,q,F,Y,H,oe)=>{const he=Sn.test(q),ne=.0625*(he?-1:1),[V,pe]=he?[Y,q]:[q,Y];return"("+(F[0]==="="?"":F[0]===">"===he?"max-":"min-")+V+":"+(F[0]!=="="&&F.length===1?pe.replace(Sn,(Re,Te,ue)=>Number(Te)+ne*(F===">"?1:-1)+ue):pe)+(H?") and ("+(H[0]===">"?"min-":"max-")+V+":"+(H.length===1?oe.replace(Sn,(Re,Te,ue)=>Number(Te)+ne*(H===">"?-1:1)+ue):oe):"")+")"})),b){const j=O?u.concat(f):[...u],q=O?[...l]:Ko(l,f.split(Zo));o!==void 0&&r(ki(...o)),o=void 0,c(m,q,j)}else o===void 0&&(o=[[],l,u]),f=O||f.charCodeAt(0)!==36?f:`--${Ge(n.prefix)}${f.slice(1).replace(/\$/g,"-")}`,m=b?m:typeof m=="number"?m&&k in ea?String(m)+"px":String(m):Ti(Jo(k,m??""),n.prefix,n.themeMap[k]),o[0].push(`${O?`${f} `:`${En(f)}:`}${m}`)}}var E,x};v(p),o!==void 0&&r(ki(...o)),o=void 0};c(e,t,i)},ki=(e,t,i)=>`${i.map(n=>`${n}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(i.length?i.length+1:0).join("}")}`,ea={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},Oi=e=>String.fromCharCode(e+(e>25?39:97)),nt=e=>(t=>{let i,n="";for(i=Math.abs(t);i>52;i=i/52|0)n=Oi(i%52)+n;return Oi(i%52)+n})(((t,i)=>{let n=i.length;for(;n;)t=33*t^i.charCodeAt(--n);return t})(5381,JSON.stringify(e))>>>0),Ot=["themed","global","styled","onevar","resonevar","allvar","inline"],ta=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},na=e=>{let t;const i=()=>{const{cssRules:r}=t.sheet;return[].map.call(r,(o,a)=>{const{cssText:s}=o;let c="";if(s.startsWith("--sxs"))return"";if(r[a-1]&&(c=r[a-1].cssText).startsWith("--sxs")){if(!o.cssRules.length)return"";for(const p in t.rules)if(t.rules[p].group===o)return`--sxs{--sxs:${[...t.rules[p].cache].join(" ")}}${s}`;return o.cssRules.length?`${c}${s}`:""}return s}).join("")},n=()=>{if(t){const{rules:s,sheet:c}=t;if(!c.deleteRule){for(;Object(Object(c.cssRules)[0]).type===3;)c.cssRules.splice(0,1);c.cssRules=[]}for(const p in s)delete s[p]}const r=Object(e).styleSheets||[];for(const s of r)if(ta(s)){for(let c=0,p=s.cssRules;p[c];++c){const l=Object(p[c]);if(l.type!==1)continue;const u=Object(p[c+1]);if(u.type!==4)continue;++c;const{cssText:f}=l;if(!f.startsWith("--sxs"))continue;const m=f.slice(14,-3).trim().split(/\s+/),v=Ot[m[0]];v&&(t||(t={sheet:s,reset:n,rules:{},toString:i}),t.rules[v]={group:u,index:c,cache:new Set(m)})}if(t)break}if(!t){const s=(c,p)=>({type:p,cssRules:[],insertRule(l,u){this.cssRules.splice(u,0,s(l,{import:3,undefined:1}[(l.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return c==="@media{}"?`@media{${[].map.call(this.cssRules,l=>l.cssText).join("")}}`:c}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:s("","text/css"),rules:{},reset:n,toString:i}}const{sheet:o,rules:a}=t;for(let s=Ot.length-1;s>=0;--s){const c=Ot[s];if(!a[c]){const p=Ot[s+1],l=a[p]?a[p].index:o.cssRules.length;o.insertRule("@media{}",l),o.insertRule(`--sxs{--sxs:${s}}`,l),a[c]={group:o.cssRules[l+1],index:l,cache:new Set([s])}}ia(a[c])}};return n(),t},ia=e=>{const t=e.group;let i=t.cssRules.length;e.apply=n=>{try{t.insertRule(n,i),++i}catch{}}},Ct=Symbol(),ra=mt(),Ci=(e,t)=>ra(e,()=>(...i)=>{let n={type:null,composers:new Set};for(const r of i)if(r!=null)if(r[tt]){n.type==null&&(n.type=r[tt].type);for(const o of r[tt].composers)n.composers.add(o)}else r.constructor!==Object||r.$$typeof?n.type==null&&(n.type=r):n.composers.add(oa(r,e));return n.type==null&&(n.type="span"),n.composers.size||n.composers.add(["PJLV",{},[],[],{},[]]),aa(e,n,t)}),oa=({variants:e,compoundVariants:t,defaultVariants:i,...n},r)=>{const o=`${Ge(r.prefix)}c-${nt(n)}`,a=[],s=[],c=Object.create(null),p=[];for(const f in i)c[f]=String(i[f]);if(typeof e=="object"&&e)for(const f in e){l=c,u=f,Go.call(l,u)||(c[f]="undefined");const m=e[f];for(const v in m){const g={[f]:String(v)};String(v)==="undefined"&&p.push(f);const E=m[v],x=[g,E,!Si(E)];a.push(x)}}var l,u;if(typeof t=="object"&&t)for(const f of t){let{css:m,...v}=f;m=typeof m=="object"&&m||{};for(const E in v)v[E]=String(v[E]);const g=[v,m,!Si(m)];s.push(g)}return[o,n,a,s,c,p]},aa=(e,t,i)=>{const[n,r,o,a]=sa(t.composers),s=typeof t.type=="function"||t.type.$$typeof?(u=>{function f(){for(let m=0;m<f[Ct].length;m++){const[v,g]=f[Ct][m];u.rules[v].apply(g)}return f[Ct]=[],null}return f[Ct]=[],f.rules={},Ot.forEach(m=>f.rules[m]={apply:v=>f[Ct].push([m,v])}),f})(i):null,c=(s||i).rules,p=`.${n}${r.length>1?`:where(.${r.slice(1).join(".")})`:""}`,l=u=>{u=typeof u=="object"&&u||ca;const{css:f,...m}=u,v={};for(const x in o)if(delete m[x],x in u){let O=u[x];typeof O=="object"&&O?v[x]={"@initial":o[x],...O}:(O=String(O),v[x]=O!=="undefined"||a.has(x)?O:o[x])}else v[x]=o[x];const g=new Set([...r]);for(const[x,O,_,k]of t.composers){i.rules.styled.cache.has(x)||(i.rules.styled.cache.add(x),vt(O,[`.${x}`],[],e,q=>{c.styled.apply(q)}));const b=_i(_,v,e.media),j=_i(k,v,e.media,!0);for(const q of b)if(q!==void 0)for(const[F,Y,H]of q){const oe=`${x}-${nt(Y)}-${F}`;g.add(oe);const he=(H?i.rules.resonevar:i.rules.onevar).cache,ne=H?c.resonevar:c.onevar;he.has(oe)||(he.add(oe),vt(Y,[`.${oe}`],[],e,V=>{ne.apply(V)}))}for(const q of j)if(q!==void 0)for(const[F,Y]of q){const H=`${x}-${nt(Y)}-${F}`;g.add(H),i.rules.allvar.cache.has(H)||(i.rules.allvar.cache.add(H),vt(Y,[`.${H}`],[],e,oe=>{c.allvar.apply(oe)}))}}if(typeof f=="object"&&f){const x=`${n}-i${nt(f)}-css`;g.add(x),i.rules.inline.cache.has(x)||(i.rules.inline.cache.add(x),vt(f,[`.${x}`],[],e,O=>{c.inline.apply(O)}))}for(const x of String(u.className||"").trim().split(/\s+/))x&&g.add(x);const E=m.className=[...g].join(" ");return{type:t.type,className:E,selector:p,props:m,toString:()=>E,deferredInjector:s}};return wn(l,{className:n,selector:p,[tt]:t,toString:()=>(i.rules.styled.cache.has(n)||l(),n)})},sa=e=>{let t="";const i=[],n={},r=[];for(const[o,,,,a,s]of e){t===""&&(t=o),i.push(o),r.push(...s);for(const c in a){const p=a[c];(n[c]===void 0||p!=="undefined"||s.includes(p))&&(n[c]=p)}}return[t,i,n,new Set(r)]},_i=(e,t,i,n)=>{const r=[];e:for(let[o,a,s]of e){if(s)continue;let c,p=0,l=!1;for(c in o){const u=o[c];let f=t[c];if(f!==u){if(typeof f!="object"||!f)continue e;{let m,v,g=0;for(const E in f){if(u===String(f[E])){if(E!=="@initial"){const x=E.slice(1);(v=v||[]).push(x in i?i[x]:E.replace(/^@media ?/,"")),l=!0}p+=g,m=!0}++g}if(v&&v.length&&(a={["@media "+v.join(", ")]:a}),!m)continue e}}}(r[p]=r[p]||[]).push([n?"cv":`${c}-${o[c]}`,a,l])}return r},ca={},la=mt(),pa=(e,t)=>la(e,()=>(...i)=>{const n=()=>{for(let r of i){r=typeof r=="object"&&r||{};let o=nt(r);if(!t.rules.global.cache.has(o)){if(t.rules.global.cache.add(o),"@import"in r){let a=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let s of[].concat(r["@import"]))s=s.includes('"')||s.includes("'")?s:`"${s}"`,t.sheet.insertRule(`@import ${s};`,a++);delete r["@import"]}vt(r,[],[],e,a=>{t.rules.global.apply(a)})}}return""};return wn(n,{toString:n})}),ua=mt(),da=(e,t)=>ua(e,()=>i=>{const n=`${Ge(e.prefix)}k-${nt(i)}`,r=()=>{if(!t.rules.global.cache.has(n)){t.rules.global.cache.add(n);const o=[];vt(i,[],[],e,s=>o.push(s));const a=`@keyframes ${n}{${o.join("")}}`;t.rules.global.apply(a)}return n};return wn(r,{get name(){return r()},toString:r})}),fa=class{constructor(e,t,i,n){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=i==null?"":String(i),this.prefix=n==null?"":String(n)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+Ge(this.prefix)+Ge(this.scale)+this.token}toString(){return this.computedValue}},ma=mt(),xa=(e,t)=>ma(e,()=>(i,n)=>{n=typeof i=="object"&&i||Object(n);const r=`.${i=(i=typeof i=="string"?i:"")||`${Ge(e.prefix)}t-${nt(n)}`}`,o={},a=[];for(const c in n){o[c]={};for(const p in n[c]){const l=`--${Ge(e.prefix)}${c}-${p}`,u=Ti(String(n[c][p]),e.prefix,c);o[c][p]=new fa(p,u,c,e.prefix),a.push(`${l}:${u}`)}}const s=()=>{if(a.length&&!t.rules.themed.cache.has(i)){t.rules.themed.cache.add(i);const c=`${n===e.theme?":root,":""}.${i}{${a.join(";")}}`;t.rules.themed.apply(c)}return i};return{...o,get className(){return s()},selector:r,toString:s}}),va=mt(),Ai,ga=mt(),ha=e=>{const t=(i=>{let n=!1;const r=va(i,o=>{n=!0;const a="prefix"in(o=typeof o=="object"&&o||{})?String(o.prefix):"",s=typeof o.media=="object"&&o.media||{},c=typeof o.root=="object"?o.root||null:globalThis.document||null,p=typeof o.theme=="object"&&o.theme||{},l={prefix:a,media:s,theme:p,themeMap:typeof o.themeMap=="object"&&o.themeMap||{...Vo},utils:typeof o.utils=="object"&&o.utils||{}},u=na(c),f={css:Ci(l,u),globalCss:pa(l,u),keyframes:da(l,u),createTheme:xa(l,u),reset(){u.reset(),f.theme.toString()},theme:{},sheet:u,config:l,prefix:a,getCssText:u.toString,toString:u.toString};return String(f.theme=f.createTheme(p)),f});return n||r.reset(),r})(e);return t.styled=(({config:i,sheet:n})=>ga(i,()=>{const r=Ci(i,n);return(...o)=>{const a=r(...o),s=a[tt].type,c=w.forwardRef((p,l)=>{const u=p&&p.as||s,{props:f,deferredInjector:m}=a(p);return delete f.as,f.ref=l,m?w.createElement(w.Fragment,null,w.createElement(u,f),w.createElement(m,null)):w.createElement(u,f)});return c.className=a.className,c.displayName=`Styled.${s.displayName||s.name||s}`,c.selector=a.selector,c.toString=()=>a.selector,c[tt]=a[tt],c}}))(t),t},Di=()=>Ai||(Ai=ha()),ya=(...e)=>Di().keyframes(...e),$e=(...e)=>Di().styled(...e);const gt=$e("div",{variants:{width:{full:{width:"100%"},half:{width:"50%"},fit:{width:"fit-content"}},height:{full:{height:"100%"},vh:{height:"100vh"}},minHeight:{240:{minHeight:"240px"},vh:{minHeight:"100vh"}},mb:{0:{mb:"0"},2:{mb:"2"},4:{mb:"4"},8:{mb:"8"},12:{mb:"12"},16:{mb:"16"},20:{mb:"20"},24:{mb:"24"},32:{mb:"32"},48:{mb:"48"},72:{mb:"72"},auto:{mb:"auto"}},mt:{0:{mt:"0"},2:{mt:"2"},4:{mt:"4"},8:{mt:"8"},12:{mt:"12"},16:{mt:"16"},20:{mt:"20"},24:{mt:"24"},32:{mt:"32"},48:{mt:"48"},72:{mt:"72"},auto:{mt:"auto"}},mx:{0:{mx:"0"},2:{mx:"2"},4:{mx:"4"},8:{mx:"8"},12:{mx:"12"},16:{mx:"16"},20:{mx:"20"},24:{mx:"24"},32:{mx:"32"},48:{mx:"48"},72:{mx:"72"},auto:{mx:"auto"}},my:{0:{my:"0"},2:{my:"2"},4:{my:"4"},8:{my:"8"},12:{my:"12"},16:{my:"16"},20:{my:"20"},24:{my:"24"},32:{my:"32"},48:{my:"48"},72:{my:"72"},auto:{my:"auto"}},ml:{0:{ml:"0"},2:{ml:"2"},4:{ml:"4"},8:{ml:"8"},12:{ml:"12"},16:{ml:"16"},20:{ml:"20"},24:{ml:"24"},32:{ml:"32"},48:{ml:"48"},72:{ml:"72"},auto:{ml:"auto"}},mr:{0:{mr:"0"},2:{mr:"2"},4:{mr:"4"},8:{mr:"8"},12:{mr:"12"},16:{mr:"16"},20:{mr:"20"},24:{mr:"24"},32:{mr:"32"},48:{mr:"48"},72:{mr:"72"},auto:{mr:"auto"}},pt:{0:{pt:"0"},2:{pt:"2"},4:{pt:"4"},8:{pt:"8"},12:{pt:"12"},16:{pt:"16"},20:{pt:"20"},24:{pt:"24"},32:{pt:"32"},48:{pt:"48"},72:{pt:"72"}},pb:{0:{pb:"0"},2:{pb:"2"},4:{pb:"4"},8:{pb:"8"},12:{pb:"12"},16:{pb:"16"},20:{pb:"20"},24:{pb:"24"},32:{pb:"32"},48:{pb:"48"},72:{pb:"72"}},pr:{0:{pr:"0"},2:{pr:"2"},4:{pr:"4"},8:{pr:"8"},12:{pr:"12"},16:{pr:"16"},20:{pr:"20"},24:{pr:"24"},32:{pr:"32"},48:{pr:"48"},72:{pr:"72"}},pl:{0:{pl:"0"},2:{pl:"2"},4:{pl:"4"},8:{pl:"8"},12:{pl:"12"},16:{pl:"16"},20:{pl:"20"},24:{pl:"24"},32:{pl:"32"},48:{pl:"48"},72:{pl:"72"}},px:{0:{px:"0"},2:{px:"2"},4:{px:"4"},8:{px:"8"},12:{px:"12"},16:{px:"16"},20:{px:"20"},24:{px:"24"},32:{px:"32"},48:{px:"48"},72:{px:"72"}},py:{0:{py:"0"},2:{py:"2"},4:{py:"4"},8:{py:"8"},12:{py:"12"},16:{py:"16"},20:{py:"20"},24:{py:"24"},32:{py:"32"},40:{py:"40"},48:{py:"48"},56:{py:"56"},64:{py:"64"},72:{py:"72"}},p:{0:{p:"0"},2:{p:"2"},4:{p:"4"},8:{p:"8"},12:{p:"12"},16:{p:"16"},20:{p:"20"},24:{p:"24"},32:{p:"32"},48:{p:"48"},72:{p:"72"}},m:{0:{m:"0"},2:{m:"2"},4:{m:"4"},8:{m:"8"},12:{m:"12"},16:{m:"16"},20:{m:"20"},24:{m:"24"},32:{m:"32"},48:{m:"48"},72:{m:"72"}},row:{true:{display:"flex",flexDirection:"row"}},rowReverse:{true:{display:"flex",flexDirection:"row-reverse"}},column:{true:{display:"flex",flexDirection:"column"}},columnReverse:{true:{display:"flex",flexDirection:"column-reverse"}},center:{true:{justifyContent:"center",alignItems:"center"}},wrap:{true:{flexWrap:"wrap"}},flex:{1:{flex:1},2:{flex:2},3:{flex:3},4:{flex:4},5:{flex:5},6:{flex:6},7:{flex:7},8:{flex:8}},shrink:{0:{flexShrink:0},1:{flexShrink:1}},flexGrow:{1:{flexGrow:1}},flexBasis:{0:{flexBasis:0},auto:{flexBasis:"auto"},full:{flexBasis:"100%"},50:{flexBasis:"50px"},100:{flexBasis:"100px"},150:{flexBasis:"150px"},200:{flexBasis:"200px"},250:{flexBasis:"250px"},300:{flexBasis:"300px"},350:{flexBasis:"350px"},400:{flexBasis:"400px"},450:{flexBasis:"450px"},500:{flexBasis:"500px"},550:{flexBasis:"550px"},600:{flexBasis:"600px"}},justify:{start:{justifyContent:"flex-start"},end:{justifyContent:"flex-end"},center:{justifyContent:"center"},between:{justifyContent:"space-between"},around:{justifyContent:"space-around"},selfCenter:{justifySelf:"center"}},align:{start:{alignItems:"flex-start"},end:{alignItems:"flex-end"},center:{alignItems:"center"},stretch:{alignItems:"stretch"},selfCenter:{alignSelf:"center"}},justifyBetween:{true:{justifyContent:"space-between"}},justifyCenter:{true:{justifyContent:"center"}},justifyStart:{true:{justifyContent:"flex-start"}},justifyEnd:{true:{justifyContent:"flex-end"}},justifyAround:{true:{justifyContent:"space-around"}},justifySelfCenter:{true:{justifySelf:"center"}},alignCenter:{true:{alignItems:"center"}},alignStart:{true:{alignItems:"flex-start"}},alignEnd:{true:{alignItems:"flex-end"}},alignStretch:{true:{alignItems:"stretch"}},alignSelfCenter:{true:{alignSelf:"center"}},textCenter:{true:{textAlign:"center"}},textLeft:{true:{textAlign:"left"}},textRight:{true:{textAlign:"right"}},minWidth:{0:{minWidth:0}},gap:{0:{gap:"0px"},2:{gap:"2px"},4:{gap:"4px"},8:{gap:"8px"},10:{gap:"10px"},12:{gap:"12px"},16:{gap:"16px"},20:{gap:"20px"},24:{gap:"24px"},32:{gap:"32px"},40:{gap:"40px"},48:{gap:"48px"},56:{gap:"56px"}},rowGap:{0:{rowGap:"0px"},2:{rowGap:"2px"},4:{rowGap:"4px"},8:{rowGap:"8px"},10:{rowGap:"10px"},12:{rowGap:"12px"},16:{rowGap:"16px"},20:{rowGap:"20px"},24:{rowGap:"24px"},32:{rowGap:"32px"},40:{rowGap:"40px"},48:{rowGap:"48px"},56:{rowGap:"56px"}},columnGap:{0:{columnGap:"0px"},2:{columnGap:"2px"},4:{columnGap:"4px"},8:{columnGap:"8px"},10:{columnGap:"10px"},12:{columnGap:"12px"},16:{columnGap:"16px"},20:{columnGap:"20px"},24:{columnGap:"24px"},32:{columnGap:"32px"},40:{columnGap:"40px"},48:{columnGap:"48px"},56:{columnGap:"56px"}}}});var _t={},Ht={},it={},ji;function Fi(){if(ji)return it;ji=1,Object.defineProperty(it,"__esModule",{value:!0}),it.fromHex=it.toHex=void 0;const e=n=>new Number(n).toString(16).toLowerCase(),t=n=>`0x${e(n).length===1?"0"+e(n):e(n)}`;it.toHex=t;const i=n=>new Number(n);return it.fromHex=i,it}var Rn={},Pi;function ba(){return Pi||(Pi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createComplexNode=e.createNode=e.merge=void 0;const t=c=>({typename:c.typename,mime:c.info.mime,extension:c.info.extension}),i=(c,p)=>c&&p.length===0,n=c=>c[0],r=c=>c.slice(1,c.length),o=(c,p)=>{if(c.bytes.length===0)return p;const l=n(c.bytes),u=r(c.bytes),f=p.bytes[l];if(i(f,u)){const m=p.bytes[l];return p.bytes[l]={...m,matches:[...m.matches?m.matches:[],t(c)]},p}return p.bytes[l]?(p.bytes[l]=e.merge(e.createNode(c.typename,u,c.info),p.bytes[l]),p):(p.bytes[l]||(p.bytes[l]={...p.bytes[l],...e.createComplexNode(c.typename,u,c.info)}),p)};e.merge=o;const a=(c,p,l)=>({typename:c,bytes:p,info:l||{}});e.createNode=a;const s=(c,p,l)=>{let u={bytes:{},matches:void 0};const f=n(p),m=r(p);return p.length===0?{matches:[t({typename:c,info:l?{extension:l.extension,mime:l.mime}:{}})],bytes:{}}:(u.bytes[f]=e.createComplexNode(c,m,l),u)};e.createComplexNode=s}(Rn)),Rn}var Ii;function wa(){if(Ii)return Ht;Ii=1,Object.defineProperty(Ht,"__esModule",{value:!0});const e=Fi(),t=ba();let i={noOffset:null,offset:{}};const n=(r,o,a,s)=>{if(s){const c=i.offset[e.toHex(s)];if(!c)i.offset[e.toHex(s)]=t.createComplexNode(r,o.map(p=>p.toLowerCase()),a);else{const p=t.merge(t.createNode(r,o.map(l=>l.toLowerCase()),a),{...c});i.offset[e.toHex(s)]=p}}else i.noOffset===null?i.noOffset=t.createComplexNode(r,o.map(c=>c.toLowerCase()),a):i.noOffset=t.merge(t.createNode(r,o.map(c=>c.toLowerCase()),a),i.noOffset)};return n("gif",["0x47","0x49","0x46","0x38","0x37","0x61"],{mime:"image/gif",extension:"gif"}),n("gif",["0x47","0x49","0x46","0x38","0x39","0x61"],{mime:"image/gif",extension:"gif"}),n("jpg",["0xFF","0xD8","0xFF"],{mime:"image/jpeg",extension:"jpeg"}),n("webp",["0x52","0x49","0x46","0x46","?","?","?","?","0x57","0x45","0x42","0x50"],{mime:"image/webp",extension:"webp"}),n("heif",["0x66","0x74","0x79","0x70","0x6D","0x69","0x66","0x31"],{mime:"image/heif",extension:"heif"},4),n("heif",["0x66","0x74","0x79","0x70","0x68","0x65","0x69","0x63"],{mime:"image/heif",extension:"heic"},4),n("rpm",["0xed","0xab","0xee","0xdb"]),n("bin",["0x53","0x50","0x30","0x31"],{mime:"application/octet-stream",extension:"bin"}),n("pic",["0x00"]),n("pif",["0x00"]),n("sea",["0x00"]),n("ytr",["0x00"]),n("mp4",["0x66","0x74","0x79","0x70"],{mime:"video/mp4",extension:"mp4"},4),n("ttf",["0x00","0x01","0x00","0x00","0x00"],{mime:"font/ttf",extension:"ttf"}),n("otf",["0x4F","0x54","0x54","0x4F"],{mime:"font/otf",extension:"otf"}),n("eot",["0x50","0x4C"],{mime:"application/vnd.ms-fontobject",extension:"eot"}),n("woff",["0x77","0x4F","0x46","0x46"],{mime:"font/woff",extension:"woff"}),n("woff2",["0x77","0x4F","0x46","0x32"],{mime:"font/woff2",extension:"woff2"}),n("pdb",["0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00"]),n("dba",["0xBE","0xBA","0xFE","0xCA"]),n("dba2",["0x00","0x01","0x42","0x44"]),n("tda",["0x00","0x01","0x44","0x54"]),n("tda2",["0x00","0x01","0x00","0x00"]),n("ico",["0x00","0x00","0x01","0x00"],{mime:"image/x-icon",extension:"ico"}),n("3gp",["0x66","0x74","0x79","0x70","0x33","0x67"]),n("z",["0x1F","0x9D"]),n("tar.z",["0x1F","0xA0"]),n("bac",["0x42","0x41","0x43","0x4B","0x4D","0x49","0x4B","0x45","0x44","0x49","0x53","0x4B"]),n("bz2",["0x42","0x5A","0x68"],{mime:"application/x-bzip2",extension:"bz2"}),n("tif",["0x49","0x49","0x2A","0x00"],{mime:"image/tiff",extension:"tif"}),n("tiff",["0x4D","0x4D","0x00","0x2A"],{mime:"image/tiff",extension:"tiff"}),n("cr2",["0x49","0x49","0x2A","0x00","0x10","0x00","0x00","0x00","0x43","0x52"]),n("cin",["0x80","0x2A","0x5F","0xD7"]),n("cin1",["0x52","0x4E","0x43","0x01"]),n("cin2",["0x52","0x4E","0x43","0x02"]),n("dpx",["0x53","0x44","0x50","0x58"]),n("dpx2",["0x58","0x50","0x44","0x53"]),n("exr",["0x76","0x2F","0x31","0x01"]),n("bpg",["0x42","0x50","0x47","0xFB"]),n("ilbm",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x49","0x4C","0x42","0x4D"]),n("8svx",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x38","0x53","0x56","0x58"]),n("acbm",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x41","0x43","0x42","0x4D"]),n("anbm",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x41","0x4E","0x42","0x4D"]),n("anim",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x41","0x4E","0x49","0x4D"]),n("faxx",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x46","0x41","0x58","0x58"]),n("ftxt",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x46","0x54","0x58","0x54"]),n("smus",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x53","0x4D","0x55","0x53"]),n("cmus",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x43","0x4D","0x55","0x53"]),n("yuvn",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x59","0x55","0x56","0x4E"]),n("iff",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x46","0x41","0x4E","0x54"]),n("aiff",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x41","0x49","0x46","0x46"],{mime:"audio/x-aiff",extension:"aiff"}),n("idx",["0x49","0x4E","0x44","0x58"]),n("lz",["0x4C","0x5A","0x49","0x50"]),n("exe",["0x4D","0x5A"]),n("zip",["0x50","0x4B","0x03","0x04"],{mime:"application/zip",extension:"zip"}),n("zip",["0x50","0x4B","0x05","0x06"],{mime:"application/zip",extension:"zip"}),n("zip",["0x50","0x4B","0x07","0x08"],{mime:"application/zip",extension:"zip"}),n("jar",["0x50","0x4B","0x03","0x04"],{mime:"application/java-archive",extension:"jar"}),n("jar",["0x50","0x4B","0x05","0x06"],{mime:"application/java-archive",extension:"jar"}),n("jar",["0x50","0x4B","0x07","0x08"],{mime:"application/java-archive",extension:"jar"}),n("odt",["0x50","0x4B","0x03","0x04"],{mime:"application/vnd.oasis.opendocument.text",extension:"odt"}),n("odt",["0x50","0x4B","0x05","0x06"],{mime:"application/vnd.oasis.opendocument.text",extension:"odt"}),n("odt",["0x50","0x4B","0x07","0x08"],{mime:"application/vnd.oasis.opendocument.text",extension:"odt"}),n("ods",["0x50","0x4B","0x03","0x04"],{mime:"application/vnd.oasis.opendocument.spreadsheet",extension:"ods"}),n("ods",["0x50","0x4B","0x05","0x06"],{mime:"application/vnd.oasis.opendocument.spreadsheet",extension:"ods"}),n("ods",["0x50","0x4B","0x07","0x08"],{mime:"application/vnd.oasis.opendocument.spreadsheet",extension:"ods"}),n("odp",["0x50","0x4B","0x03","0x04"],{mime:"application/vnd.oasis.opendocument.presentation",extension:"odp"}),n("odp",["0x50","0x4B","0x05","0x06"],{mime:"application/vnd.oasis.opendocument.presentation",extension:"odp"}),n("odp",["0x50","0x4B","0x07","0x08"],{mime:"application/vnd.oasis.opendocument.presentation",extension:"odp"}),n("docx",["0x50","0x4B","0x03","0x04"],{mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",extension:"docx"}),n("docx",["0x50","0x4B","0x05","0x06"],{mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",extension:"docx"}),n("docx",["0x50","0x4B","0x07","0x08"],{mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",extension:"docx"}),n("xlsx",["0x50","0x4B","0x03","0x04"],{mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",extension:"xlsx"}),n("xlsx",["0x50","0x4B","0x05","0x06"],{mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",extension:"xlsx"}),n("xlsx",["0x50","0x4B","0x07","0x08"],{mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",extension:"xlsx"}),n("pptx",["0x50","0x4B","0x03","0x04"],{mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation",extension:"pptx"}),n("pptx",["0x50","0x4B","0x05","0x06"],{mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation",extension:"pptx"}),n("pptx",["0x50","0x4B","0x07","0x08"],{mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation",extension:"pptx"}),n("vsdx",["0x50","0x4B","0x03","0x04"],{mime:"application/vnd.ms-visio.drawing",extension:"vsdx"}),n("vsdx",["0x50","0x4B","0x05","0x06"],{mime:"application/vnd.ms-visio.drawing",extension:"vsdx"}),n("vsdx",["0x50","0x4B","0x07","0x08"],{mime:"application/vnd.ms-visio.drawing",extension:"vsdx"}),n("apk",["0x50","0x4B","0x03","0x04"],{mime:"application/vnd.android.package-archive",extension:"apk"}),n("apk",["0x50","0x4B","0x05","0x06"],{mime:"application/vnd.android.package-archive",extension:"apk"}),n("apk",["0x50","0x4B","0x07","0x08"],{mime:"application/vnd.android.package-archive",extension:"apk"}),n("aar",["0x50","0x4B","0x03","0x04"],{mime:"application/vnd.android.package-archive",extension:"aar"}),n("aar",["0x50","0x4B","0x05","0x06"],{mime:"application/vnd.android.package-archive",extension:"aar"}),n("aar",["0x50","0x4B","0x07","0x08"],{mime:"application/vnd.android.package-archive",extension:"aar"}),n("rar",["0x52","0x61","0x72","0x21","0x1A","0x07","0x00"],{mime:"application/vnd.rar",extension:"rar"}),n("rar",["0x52","0x61","0x72","0x21","0x1A","0x07","0x01","0x00"],{mime:"application/vnd.rar",extension:"rar"}),n("rar",["0x7F","0x45","0x4C","0x46"],{mime:"application/vnd.rar",extension:"rar"}),n("png",["0x89","0x50","0x4E","0x47","0x0D","0x0A","0x1A","0x0A"],{mime:"image/png",extension:"png"}),n("apng",["0x89","0x50","0x4E","0x47","0x0D","0x0A","0x1A","0x0A"],{mime:"image/apng",extension:"apng"}),n("class",["0xCA","0xFE","0xBA","0xBE"]),n("class",["0xEF","0xBB","0xBF"]),n("class",["0xFE","0xed","0xFA","0xCE"],void 0,4096),n("class",["0xFE","0xed","0xFA","0xCF"],void 0,4096),n("class",["0xCE","0xFA","0xed","0xFE"]),n("class",["0xCF","0xFA","0xed","0xFE"]),n("class",["0xFF","0xFE"]),n("class",["0xFF","0xFE"]),n("class",["0xFF","0xFE","0x00","0x00"]),n("ps",["0x25","0x21","0x50","0x53"],{mime:"application/postscript",extension:".ps"}),n("pdf",["0x25","0x50","0x44","0x46"],{mime:"application/pdf",extension:"pdf"}),n("asf",["0x30","0x26","0xB2","0x75","0x8E","0x66","0xCF","0x11","0xA6","0xD9","0x00","0xAA","0x00","0x62","0xCE","0x6C"]),n("wma",["0x30","0x26","0xB2","0x75","0x8E","0x66","0xCF","0x11","0xA6","0xD9","0x00","0xAA","0x00","0x62","0xCE","0x6C"]),n("wmv",["0x30","0x26","0xB2","0x75","0x8E","0x66","0xCF","0x11","0xA6","0xD9","0x00","0xAA","0x00","0x62","0xCE","0x6C"]),n("deploymentimage",["0x24","0x53","0x44","0x49","0x30","0x30","0x30","0x31"]),n("ogv",["0x4F","0x67","0x67","0x53","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","0x80","0x74","0x68","0x65","0x6F","0x72","0x61"],{mime:"video/ogg",extension:"ogv"}),n("ogm",["0x4F","0x67","0x67","0x53","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","0x01","0x76","0x69","0x64","0x65","0x6F","0x00"],{mime:"video/ogg",extension:"ogm"}),n("oga",["0x4F","0x67","0x67","0x53","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","0x7F","0x46","0x4C","0x41","0x43"],{mime:"audio/ogg",extension:"oga"}),n("spx",["0x4F","0x67","0x67","0x53","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","0x53","0x70","0x65","0x65","0x78","0x20","0x20"],{mime:"audio/ogg",extension:"spx"}),n("ogg",["0x4F","0x67","0x67","0x53","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","0x01","0x76","0x6F","0x72","0x62","0x69","0x73"],{mime:"audio/ogg",extension:"ogg"}),n("ogx",["0x4F","0x67","0x67","0x53"],{mime:"application/ogg",extension:"ogx"}),n("psd",["0x38","0x42","0x50","0x53"],{mime:"application/x-photoshop",extension:"psd"}),n("clip",["0x43","0x53","0x46","0x43","0x48","0x55","0x4e","0x4b"]),n("wav",["0x52","0x49","0x46","0x46","?","?","?","?","0x57","0x41","0x56","0x45"],{mime:"audio/x-wav",extension:"wav"}),n("avi",["0x52","0x49","0x46","0x46","?","?","?","?","0x41","0x56","0x49","0x20"],{mime:"video/x-msvideo",extension:"avi"}),n("mp3",["0xFF","0xFB"],{mime:"audio/mpeg",extension:"mp3"}),n("mp3",["0xFF","0xF3"],{mime:"audio/mpeg",extension:"mp3"}),n("mp3",["0xFF","0xF2"],{mime:"audio/mpeg",extension:"mp3"}),n("mp3",["0x49","0x44","0x33"],{mime:"audio/mpeg",extension:"mp3"}),n("bmp",["0x42","0x4D"],{mime:"image/bmp",extension:"bmp"}),n("iso",["0x43","0x44","0x30","0x30","0x31"]),n("flac",["0x66","0x4C","0x61","0x43"]),n("mid",["0x4D","0x54","0x68","0x64"],{mime:"audio/midi",extension:"mid"}),n("midi",["0x4D","0x54","0x68","0x64"],{mime:"audio/midi",extension:"midi"}),n("doc",["0xD0","0xCF","0x11","0xE0","0xA1","0xB1","0x1A","0xE1"],{mime:"application/msword",extension:"doc"}),n("xls",["0xD0","0xCF","0x11","0xE0","0xA1","0xB1","0x1A","0xE1"],{mime:"application/vnd.ms-excel",extension:"xls"}),n("ppt",["0xD0","0xCF","0x11","0xE0","0xA1","0xB1","0x1A","0xE1"],{mime:"application/vnd.ms-powerpoint",extension:"ppt"}),n("msg",["0xD0","0xCF","0x11","0xE0","0xA1","0xB1","0x1A","0xE1"]),n("dex",["0x64","0x65","0x78","0x0A","0x30","0x33","0x35","0x00"]),n("vmdk",["0x4B","0x44","0x4D"]),n("crx",["0x43","0x72","0x32","0x34"]),n("fh8",["0x41","0x47","0x44","0x33"]),n("cwk",["0x05","0x07","0x00","0x00","0x42","0x4F","0x42","0x4F","0x05","0x07","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x01"]),n("cwk",["0x06","0x07","0xE1","0x00","0x42","0x4F","0x42","0x4F","0x06","0x07","0xE1","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x01"]),n("toast",["0x45","0x52","0x02","0x00","0x00","0x00"]),n("toast",["0x8B","0x45","0x52","0x02","0x00","0x00","0x00"]),n("dmg",["0x78","0x01","0x73","0x0D","0x62","0x62","0x60"]),n("xar",["0x78","0x61","0x72","0x21"]),n("dat",["0x50","0x4D","0x4F","0x43","0x43","0x4D","0x4F","0x43"]),n("nes",["0x4E","0x45","0x53","0x1A"]),n("tar",["0x75","0x73","0x74","0x61","0x72","0x00","0x30","0x30"],{mime:"application/x-tar",extension:"tar"},257),n("tar",["0x75","0x73","0x74","0x61","0x72","0x20","0x20","0x00"],{mime:"application/x-tar",extension:"tar"},257),n("tox",["0x74","0x6F","0x78","0x33"]),n("mlv",["0x4D","0x4C","0x56","0x49"]),n("windowsupdate",["0x44","0x43","0x4D","0x01","0x50","0x41","0x33","0x30"]),n("7z",["0x37","0x7A","0xBC","0xAF","0x27","0x1C"],{mime:"application/x-7z-compressed",extension:"7z"}),n("gz",["0x1F","0x8B"],{mime:"application/gzip",extension:"gz"}),n("tar.gz",["0x1F","0x8B"],{mime:"application/gzip",extension:"tar.gz"}),n("xz",["0xFD","0x37","0x7A","0x58","0x5A","0x00","0x00"],{mime:"application/gzip",extension:"xz"}),n("tar.xz",["0xFD","0x37","0x7A","0x58","0x5A","0x00","0x00"],{mime:"application/gzip",extension:"tar.xz"}),n("lz2",["0x04","0x22","0x4D","0x18"]),n("cab",["0x4D","0x53","0x43","0x46"]),n("mkv",["0x1A","0x45","0xDF","0xA3"],{mime:"video/x-matroska",extension:"mkv"}),n("mka",["0x1A","0x45","0xDF","0xA3"],{mime:"audio/x-matroska",extension:"mka"}),n("mks",["0x1A","0x45","0xDF","0xA3"],{mime:"video/x-matroska",extension:"mks"}),n("mk3d",["0x1A","0x45","0xDF","0xA3"]),n("webm",["0x1A","0x45","0xDF","0xA3"],{mime:"audio/webm",extension:"webm"}),n("dcm",["0x44","0x49","0x43","0x4D"],void 0,128),n("xml",["0x3C","0x3f","0x78","0x6d","0x6C","0x20"],{mime:"application/xml",extension:"xml"}),n("wasm",["0x00","0x61","0x73","0x6d"],{mime:"application/wasm",extension:"wasm"}),n("lep",["0xCF","0x84","0x01"]),n("swf",["0x43","0x57","0x53"],{mime:"application/x-shockwave-flash",extension:"swf"}),n("swf",["0x46","0x57","0x53"],{mime:"application/x-shockwave-flash",extension:"swf"}),n("deb",["0x21","0x3C","0x61","0x72","0x63","0x68","0x3E"]),n("rtf",["0x7B","0x5C","0x72","0x74","0x66","0x31"],{mime:"application/rtf",extension:"rtf"}),n("m2p",["0x00","0x00","0x01","0xBA"]),n("vob",["0x00","0x00","0x01","0xBA"]),n("mpg",["0x00","0x00","0x01","0xBA"],{mime:"video/mpeg",extension:"mpg"}),n("mpeg",["0x00","0x00","0x01","0xBA"],{mime:"video/mpeg",extension:"mpeg"}),n("mpeg",["0x47"],{mime:"video/mpeg",extension:"mpeg"}),n("mpeg",["0x00","0x00","0x01","0xB3"],{mime:"video/mpeg",extension:"mpeg"}),n("mov",["0x66","0x72","0x65","0x65"],{mime:"video/quicktime",extension:"mov"},4),n("mov",["0x6D","0x64","0x61","0x74"],{mime:"video/quicktime",extension:"mov"},4),n("mov",["0x6D","0x6F","0x6F","0x76"],{mime:"video/quicktime",extension:"mov"},4),n("mov",["0x77","0x69","0x64","0x65"],{mime:"video/quicktime",extension:"mov"},4),n("mov",["0x66","0x74","0x79","0x70","0x71","0x74"],{mime:"video/quicktime",extension:"mov"},4),n("hl2demo",["0x48","0x4C","0x32","0x44","0x45","0x4D","0x4F"]),n("txt",["0xEF","0xBB","0xBF"],{mime:"text/plain; charset=UTF-8",extension:"txt"}),n("txt",["0xFF","0xFE"],{mime:"text/plain; charset=UTF-16LE",extension:"txt"}),n("txt",["0xFE","0xFF"],{mime:"text/plain; charset=UTF-16BE",extension:"txt"}),n("txt",["0xFF","0xFE","0x00","0x00"],{mime:"text/plain; charset=UTF-32LE",extension:"txt"}),n("txt",["0x00","0x00","0xFE","0xFF"],{mime:"text/plain; charset=UTF-32BE",extension:"txt"}),n("SubRip",["0x31","0x0D","0x0A","0x30","0x30","0x3A"],{mime:"application/x-subrip",extension:"srt"}),n("WebVTT",["0xEF","0xBB","0xBF","0x57","0x45","0x42","0x56","0x54","0x54","0x0A"],{mime:"text/vtt",extension:"vtt"}),n("WebVTT",["0xEF","0xBB","0xBF","0x57","0x45","0x42","0x56","0x54","0x54","0x0D"],{mime:"text/vtt",extension:"vtt"}),n("WebVTT",["0xEF","0xBB","0xBF","0x57","0x45","0x42","0x56","0x54","0x54","0x20"],{mime:"text/vtt",extension:"vtt"}),n("WebVTT",["0xEF","0xBB","0xBF","0x57","0x45","0x42","0x56","0x54","0x54","0x09"],{mime:"text/vtt",extension:"vtt"}),n("WebVTT",["0x57","0x45","0x42","0x56","0x54","0x54","0x0A"],{mime:"text/vtt",extension:"vtt"}),n("WebVTT",["0x57","0x45","0x42","0x56","0x54","0x54","0x0D"],{mime:"text/vtt",extension:"vtt"}),n("WebVTT",["0x57","0x45","0x42","0x56","0x54","0x54","0x20"],{mime:"text/vtt",extension:"vtt"}),n("WebVTT",["0x57","0x45","0x42","0x56","0x54","0x54","0x09"],{mime:"text/vtt",extension:"vtt"}),n("Json",["0x7B"],{mime:"application/json",extension:".json"}),n("Json",["0x5B"],{mime:"application/json",extension:".json"}),n("ELF",["0x7F","0x45","0x4C","0x46"],{mime:"application/x-executable",extension:".elf"}),n("Mach-O",["0xFE","0xED","0xFA","0xC"],{mime:"application/x-mach-binary",extension:".o"}),n("Mach-O",["0xFE","0xED","0xFA","0xCF"],{mime:"application/x-executable",extension:"elf"}),n("EML",["0x52","0x65","0x63","0x65","0x69","0x76","0x65","0x64","0x3A"],{mime:"message/rfc822",extension:".eml"}),n("SVG",["0x3c","0x73","0x76","0x67"],{mime:"image/svg+xml",extension:"svg"}),Ht.default=()=>i,Ht}var Bi;function Ea(){return Bi||(Bi=1,function(e){var t=_t&&_t.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.filetypeextension=e.filetypemime=e.filetypename=e.filetypeinfo=void 0;const i=t(wa()),n=Fi(),r=i.default(),o=l=>{let u=r;for(const f of Object.keys(u.offset)){const m=n.fromHex(f);if(m>=l.length)continue;const g=r.offset[f],E=a(m,l,g);if(E.length>0)return E}return u.noOffset===null?[]:a(0,l,u.noOffset)};e.filetypeinfo=o;const a=(l,u,f)=>{let m=f,v=[];for(;;){const g=n.toHex(u[l]);if(m.bytes["?"]&&!m.bytes[g]?m=m.bytes["?"]:m=m.bytes[g],!m)return v;m&&m.matches&&(v=m.matches.slice(0)),l+=1}};e.default=e.filetypeinfo;const s=l=>e.filetypeinfo(l).map(u=>u.typename);e.filetypename=s;const c=l=>e.filetypeinfo(l).map(u=>u.mime?u.mime:null).filter(u=>u!==null);e.filetypemime=c;const p=l=>e.filetypeinfo(l).map(u=>u.extension?u.extension:null).filter(u=>u!==null);e.filetypeextension=p}(_t)),_t}var Sa=Ea(),Gt={exports:{}},Yt={exports:{}},se={};/** @license React v16.13.1
|
25
|
+
Check the top-level render call using <`+D+">.")}return T}}function Lo(d,T){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var D=_p(T);if(zo[D])return;zo[D]=!0;var K="";d&&d._owner&&d._owner!==Ut.current&&(K=" It was passed a child from "+ne(d._owner.type)+"."),St(d),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',D,K),St(null)}}function Mo(d,T){{if(typeof d!="object")return;if(qe(d))for(var D=0;D<d.length;D++){var K=d[D];gi(K)&&Lo(K,T)}else if(gi(d))d._store&&(d._store.validated=!0);else if(d){var le=E(d);if(typeof le=="function"&&le!==d.entries)for(var be=le.call(d),re;!(re=be.next()).done;)gi(re.value)&&Lo(re.value,T)}}}function Ap(d){{var T=d.type;if(T==null||typeof T=="string")return;var D;if(typeof T=="function")D=T.propTypes;else if(typeof T=="object"&&(T.$$typeof===c||T.$$typeof===u))D=T.propTypes;else return;if(D){var K=ne(T);Ee(D,d.props,"prop",K,d)}else if(T.PropTypes!==void 0&&!vi){vi=!0;var le=ne(T);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",le||"Unknown")}typeof T.getDefaultProps=="function"&&!T.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Dp(d){{for(var T=Object.keys(d.props),D=0;D<T.length;D++){var K=T[D];if(K!=="children"&&K!=="key"){St(d),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",K),St(null);break}}d.ref!==null&&(St(d),O("Invalid attribute `ref` supplied to `React.Fragment`."),St(null))}}function $o(d,T,D,K,le,be){{var re=H(d);if(!re){var ie="";(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(ie+=" 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 Pe=Cp();Pe?ie+=Pe:ie+=Bo();var Ce;d===null?Ce="null":qe(d)?Ce="array":d!==void 0&&d.$$typeof===t?(Ce="<"+(ne(d.type)||"Unknown")+" />",ie=" Did you accidentally export a JSX literal instead of a component?"):Ce=typeof d,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ce,ie)}var De=Wt(d,T,D,le,be);if(De==null)return De;if(re){var Me=T.children;if(Me!==void 0)if(K)if(qe(Me)){for(var Rt=0;Rt<Me.length;Rt++)Mo(Me[Rt],d);Object.freeze&&Object.freeze(Me)}else O("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 Mo(Me,d)}return d===n?Dp(De):Ap(De),De}}function jp(d,T,D){return $o(d,T,D,!0)}function Fp(d,T,D){return $o(d,T,D,!1)}var Pp=Fp,Ip=jp;kt.Fragment=n,kt.jsx=Pp,kt.jsxs=Ip}()),kt}var wi;function Vo(){return wi||(wi=1,process.env.NODE_ENV==="production"?Vt.exports=Wo():Vt.exports=Uo()),Vt.exports}var ve=Vo(),me="colors",Fe="sizes",I="space",Ho={gap:I,gridGap:I,columnGap:I,gridColumnGap:I,rowGap:I,gridRowGap:I,inset:I,insetBlock:I,insetBlockEnd:I,insetBlockStart:I,insetInline:I,insetInlineEnd:I,insetInlineStart:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,marginBlock:I,marginBlockEnd:I,marginBlockStart:I,marginInline:I,marginInlineEnd:I,marginInlineStart:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,paddingBlock:I,paddingBlockEnd:I,paddingBlockStart:I,paddingInline:I,paddingInlineEnd:I,paddingInlineStart:I,top:I,right:I,bottom:I,left:I,scrollMargin:I,scrollMarginTop:I,scrollMarginRight:I,scrollMarginBottom:I,scrollMarginLeft:I,scrollMarginX:I,scrollMarginY:I,scrollMarginBlock:I,scrollMarginBlockEnd:I,scrollMarginBlockStart:I,scrollMarginInline:I,scrollMarginInlineEnd:I,scrollMarginInlineStart:I,scrollPadding:I,scrollPaddingTop:I,scrollPaddingRight:I,scrollPaddingBottom:I,scrollPaddingLeft:I,scrollPaddingX:I,scrollPaddingY:I,scrollPaddingBlock:I,scrollPaddingBlockEnd:I,scrollPaddingBlockStart:I,scrollPaddingInline:I,scrollPaddingInlineEnd:I,scrollPaddingInlineStart:I,fontSize:"fontSizes",background:me,backgroundColor:me,backgroundImage:me,borderImage:me,border:me,borderBlock:me,borderBlockEnd:me,borderBlockStart:me,borderBottom:me,borderBottomColor:me,borderColor:me,borderInline:me,borderInlineEnd:me,borderInlineStart:me,borderLeft:me,borderLeftColor:me,borderRight:me,borderRightColor:me,borderTop:me,borderTopColor:me,caretColor:me,color:me,columnRuleColor:me,fill:me,outline:me,outlineColor:me,stroke:me,textDecorationColor:me,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:Fe,minBlockSize:Fe,maxBlockSize:Fe,inlineSize:Fe,minInlineSize:Fe,maxInlineSize:Fe,width:Fe,minWidth:Fe,maxWidth:Fe,height:Fe,minHeight:Fe,maxHeight:Fe,flexBasis:Fe,gridTemplateColumns:Fe,gridTemplateRows:Fe,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},Go=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,mt=()=>{const e=Object.create(null);return(t,i,...n)=>{const r=(o=>JSON.stringify(o,Go))(t);return r in e?e[r]:e[r]=i(t,...n)}},tt=Symbol.for("sxs.internal"),wn=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Ei=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Yo}=Object.prototype,En=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),Ko=/\s+(?![^()]*\))/,xt=e=>t=>e(...typeof t=="string"?String(t).split(Ko):[t]),Si={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:xt((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:xt((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:xt((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:xt((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:xt((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:xt((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Sn=/([\d.]+)([^]*)/,Jo=(e,t)=>e.length?e.reduce((i,n)=>(i.push(...t.map(r=>r.includes("&")?r.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(r)?`:is(${n})`:n):n+" "+r)),i),[]):t,Xo=(e,t)=>e in Zo&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(i,n,r,o)=>n+(r==="stretch"?`-moz-available${o};${En(e)}:${n}-webkit-fill-available`:`-moz-fit-content${o};${En(e)}:${n}fit-content`)+o):String(t),Zo={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Ge=e=>e?e+"-":"",Ri=(e,t,i)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(n,r,o,a,s)=>a=="$"==!!o?n:(r||a=="--"?"calc(":"")+"var(--"+(a==="$"?Ge(t)+(s.includes("$")?"":Ge(i))+s.replace(/\$/g,"-"):s)+")"+(r||a=="--"?"*"+(r||"")+(o||"1")+")":"")),Qo=/\s*,\s*(?![^()]*\))/,ea=Object.prototype.toString,vt=(e,t,i,n,r)=>{let o,a,s;const c=(p,l,u)=>{let f,m;const v=g=>{for(f in g){const O=f.charCodeAt(0)===64,_=O&&Array.isArray(g[f])?g[f]:[g[f]];for(m of _){const k=/[A-Z]/.test(x=f)?x:x.replace(/-[^]/g,j=>j[1].toUpperCase()),b=typeof m=="object"&&m&&m.toString===ea&&(!n.utils[k]||!l.length);if(k in n.utils&&!b){const j=n.utils[k];if(j!==a){a=j,v(j(m)),a=null;continue}}else if(k in Si){const j=Si[k];if(j!==s){s=j,v(j(m)),s=null;continue}}if(O&&(E=f.slice(1)in n.media?"@media "+n.media[f.slice(1)]:f,f=E.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(j,q,F,Y,H,oe)=>{const he=Sn.test(q),ne=.0625*(he?-1:1),[V,pe]=he?[Y,q]:[q,Y];return"("+(F[0]==="="?"":F[0]===">"===he?"max-":"min-")+V+":"+(F[0]!=="="&&F.length===1?pe.replace(Sn,(Re,Te,ue)=>Number(Te)+ne*(F===">"?1:-1)+ue):pe)+(H?") and ("+(H[0]===">"?"min-":"max-")+V+":"+(H.length===1?oe.replace(Sn,(Re,Te,ue)=>Number(Te)+ne*(H===">"?-1:1)+ue):oe):"")+")"})),b){const j=O?u.concat(f):[...u],q=O?[...l]:Jo(l,f.split(Qo));o!==void 0&&r(Ti(...o)),o=void 0,c(m,q,j)}else o===void 0&&(o=[[],l,u]),f=O||f.charCodeAt(0)!==36?f:`--${Ge(n.prefix)}${f.slice(1).replace(/\$/g,"-")}`,m=b?m:typeof m=="number"?m&&k in ta?String(m)+"px":String(m):Ri(Xo(k,m??""),n.prefix,n.themeMap[k]),o[0].push(`${O?`${f} `:`${En(f)}:`}${m}`)}}var E,x};v(p),o!==void 0&&r(Ti(...o)),o=void 0};c(e,t,i)},Ti=(e,t,i)=>`${i.map(n=>`${n}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(i.length?i.length+1:0).join("}")}`,ta={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},ki=e=>String.fromCharCode(e+(e>25?39:97)),nt=e=>(t=>{let i,n="";for(i=Math.abs(t);i>52;i=i/52|0)n=ki(i%52)+n;return ki(i%52)+n})(((t,i)=>{let n=i.length;for(;n;)t=33*t^i.charCodeAt(--n);return t})(5381,JSON.stringify(e))>>>0),Ot=["themed","global","styled","onevar","resonevar","allvar","inline"],na=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},ia=e=>{let t;const i=()=>{const{cssRules:r}=t.sheet;return[].map.call(r,(o,a)=>{const{cssText:s}=o;let c="";if(s.startsWith("--sxs"))return"";if(r[a-1]&&(c=r[a-1].cssText).startsWith("--sxs")){if(!o.cssRules.length)return"";for(const p in t.rules)if(t.rules[p].group===o)return`--sxs{--sxs:${[...t.rules[p].cache].join(" ")}}${s}`;return o.cssRules.length?`${c}${s}`:""}return s}).join("")},n=()=>{if(t){const{rules:s,sheet:c}=t;if(!c.deleteRule){for(;Object(Object(c.cssRules)[0]).type===3;)c.cssRules.splice(0,1);c.cssRules=[]}for(const p in s)delete s[p]}const r=Object(e).styleSheets||[];for(const s of r)if(na(s)){for(let c=0,p=s.cssRules;p[c];++c){const l=Object(p[c]);if(l.type!==1)continue;const u=Object(p[c+1]);if(u.type!==4)continue;++c;const{cssText:f}=l;if(!f.startsWith("--sxs"))continue;const m=f.slice(14,-3).trim().split(/\s+/),v=Ot[m[0]];v&&(t||(t={sheet:s,reset:n,rules:{},toString:i}),t.rules[v]={group:u,index:c,cache:new Set(m)})}if(t)break}if(!t){const s=(c,p)=>({type:p,cssRules:[],insertRule(l,u){this.cssRules.splice(u,0,s(l,{import:3,undefined:1}[(l.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return c==="@media{}"?`@media{${[].map.call(this.cssRules,l=>l.cssText).join("")}}`:c}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:s("","text/css"),rules:{},reset:n,toString:i}}const{sheet:o,rules:a}=t;for(let s=Ot.length-1;s>=0;--s){const c=Ot[s];if(!a[c]){const p=Ot[s+1],l=a[p]?a[p].index:o.cssRules.length;o.insertRule("@media{}",l),o.insertRule(`--sxs{--sxs:${s}}`,l),a[c]={group:o.cssRules[l+1],index:l,cache:new Set([s])}}ra(a[c])}};return n(),t},ra=e=>{const t=e.group;let i=t.cssRules.length;e.apply=n=>{try{t.insertRule(n,i),++i}catch{}}},Ct=Symbol(),oa=mt(),Oi=(e,t)=>oa(e,()=>(...i)=>{let n={type:null,composers:new Set};for(const r of i)if(r!=null)if(r[tt]){n.type==null&&(n.type=r[tt].type);for(const o of r[tt].composers)n.composers.add(o)}else r.constructor!==Object||r.$$typeof?n.type==null&&(n.type=r):n.composers.add(aa(r,e));return n.type==null&&(n.type="span"),n.composers.size||n.composers.add(["PJLV",{},[],[],{},[]]),sa(e,n,t)}),aa=({variants:e,compoundVariants:t,defaultVariants:i,...n},r)=>{const o=`${Ge(r.prefix)}c-${nt(n)}`,a=[],s=[],c=Object.create(null),p=[];for(const f in i)c[f]=String(i[f]);if(typeof e=="object"&&e)for(const f in e){l=c,u=f,Yo.call(l,u)||(c[f]="undefined");const m=e[f];for(const v in m){const g={[f]:String(v)};String(v)==="undefined"&&p.push(f);const E=m[v],x=[g,E,!Ei(E)];a.push(x)}}var l,u;if(typeof t=="object"&&t)for(const f of t){let{css:m,...v}=f;m=typeof m=="object"&&m||{};for(const E in v)v[E]=String(v[E]);const g=[v,m,!Ei(m)];s.push(g)}return[o,n,a,s,c,p]},sa=(e,t,i)=>{const[n,r,o,a]=ca(t.composers),s=typeof t.type=="function"||t.type.$$typeof?(u=>{function f(){for(let m=0;m<f[Ct].length;m++){const[v,g]=f[Ct][m];u.rules[v].apply(g)}return f[Ct]=[],null}return f[Ct]=[],f.rules={},Ot.forEach(m=>f.rules[m]={apply:v=>f[Ct].push([m,v])}),f})(i):null,c=(s||i).rules,p=`.${n}${r.length>1?`:where(.${r.slice(1).join(".")})`:""}`,l=u=>{u=typeof u=="object"&&u||la;const{css:f,...m}=u,v={};for(const x in o)if(delete m[x],x in u){let O=u[x];typeof O=="object"&&O?v[x]={"@initial":o[x],...O}:(O=String(O),v[x]=O!=="undefined"||a.has(x)?O:o[x])}else v[x]=o[x];const g=new Set([...r]);for(const[x,O,_,k]of t.composers){i.rules.styled.cache.has(x)||(i.rules.styled.cache.add(x),vt(O,[`.${x}`],[],e,q=>{c.styled.apply(q)}));const b=Ci(_,v,e.media),j=Ci(k,v,e.media,!0);for(const q of b)if(q!==void 0)for(const[F,Y,H]of q){const oe=`${x}-${nt(Y)}-${F}`;g.add(oe);const he=(H?i.rules.resonevar:i.rules.onevar).cache,ne=H?c.resonevar:c.onevar;he.has(oe)||(he.add(oe),vt(Y,[`.${oe}`],[],e,V=>{ne.apply(V)}))}for(const q of j)if(q!==void 0)for(const[F,Y]of q){const H=`${x}-${nt(Y)}-${F}`;g.add(H),i.rules.allvar.cache.has(H)||(i.rules.allvar.cache.add(H),vt(Y,[`.${H}`],[],e,oe=>{c.allvar.apply(oe)}))}}if(typeof f=="object"&&f){const x=`${n}-i${nt(f)}-css`;g.add(x),i.rules.inline.cache.has(x)||(i.rules.inline.cache.add(x),vt(f,[`.${x}`],[],e,O=>{c.inline.apply(O)}))}for(const x of String(u.className||"").trim().split(/\s+/))x&&g.add(x);const E=m.className=[...g].join(" ");return{type:t.type,className:E,selector:p,props:m,toString:()=>E,deferredInjector:s}};return wn(l,{className:n,selector:p,[tt]:t,toString:()=>(i.rules.styled.cache.has(n)||l(),n)})},ca=e=>{let t="";const i=[],n={},r=[];for(const[o,,,,a,s]of e){t===""&&(t=o),i.push(o),r.push(...s);for(const c in a){const p=a[c];(n[c]===void 0||p!=="undefined"||s.includes(p))&&(n[c]=p)}}return[t,i,n,new Set(r)]},Ci=(e,t,i,n)=>{const r=[];e:for(let[o,a,s]of e){if(s)continue;let c,p=0,l=!1;for(c in o){const u=o[c];let f=t[c];if(f!==u){if(typeof f!="object"||!f)continue e;{let m,v,g=0;for(const E in f){if(u===String(f[E])){if(E!=="@initial"){const x=E.slice(1);(v=v||[]).push(x in i?i[x]:E.replace(/^@media ?/,"")),l=!0}p+=g,m=!0}++g}if(v&&v.length&&(a={["@media "+v.join(", ")]:a}),!m)continue e}}}(r[p]=r[p]||[]).push([n?"cv":`${c}-${o[c]}`,a,l])}return r},la={},pa=mt(),ua=(e,t)=>pa(e,()=>(...i)=>{const n=()=>{for(let r of i){r=typeof r=="object"&&r||{};let o=nt(r);if(!t.rules.global.cache.has(o)){if(t.rules.global.cache.add(o),"@import"in r){let a=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let s of[].concat(r["@import"]))s=s.includes('"')||s.includes("'")?s:`"${s}"`,t.sheet.insertRule(`@import ${s};`,a++);delete r["@import"]}vt(r,[],[],e,a=>{t.rules.global.apply(a)})}}return""};return wn(n,{toString:n})}),da=mt(),fa=(e,t)=>da(e,()=>i=>{const n=`${Ge(e.prefix)}k-${nt(i)}`,r=()=>{if(!t.rules.global.cache.has(n)){t.rules.global.cache.add(n);const o=[];vt(i,[],[],e,s=>o.push(s));const a=`@keyframes ${n}{${o.join("")}}`;t.rules.global.apply(a)}return n};return wn(r,{get name(){return r()},toString:r})}),ma=class{constructor(e,t,i,n){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=i==null?"":String(i),this.prefix=n==null?"":String(n)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+Ge(this.prefix)+Ge(this.scale)+this.token}toString(){return this.computedValue}},xa=mt(),va=(e,t)=>xa(e,()=>(i,n)=>{n=typeof i=="object"&&i||Object(n);const r=`.${i=(i=typeof i=="string"?i:"")||`${Ge(e.prefix)}t-${nt(n)}`}`,o={},a=[];for(const c in n){o[c]={};for(const p in n[c]){const l=`--${Ge(e.prefix)}${c}-${p}`,u=Ri(String(n[c][p]),e.prefix,c);o[c][p]=new ma(p,u,c,e.prefix),a.push(`${l}:${u}`)}}const s=()=>{if(a.length&&!t.rules.themed.cache.has(i)){t.rules.themed.cache.add(i);const c=`${n===e.theme?":root,":""}.${i}{${a.join(";")}}`;t.rules.themed.apply(c)}return i};return{...o,get className(){return s()},selector:r,toString:s}}),ga=mt(),_i,ha=mt(),ya=e=>{const t=(i=>{let n=!1;const r=ga(i,o=>{n=!0;const a="prefix"in(o=typeof o=="object"&&o||{})?String(o.prefix):"",s=typeof o.media=="object"&&o.media||{},c=typeof o.root=="object"?o.root||null:globalThis.document||null,p=typeof o.theme=="object"&&o.theme||{},l={prefix:a,media:s,theme:p,themeMap:typeof o.themeMap=="object"&&o.themeMap||{...Ho},utils:typeof o.utils=="object"&&o.utils||{}},u=ia(c),f={css:Oi(l,u),globalCss:ua(l,u),keyframes:fa(l,u),createTheme:va(l,u),reset(){u.reset(),f.theme.toString()},theme:{},sheet:u,config:l,prefix:a,getCssText:u.toString,toString:u.toString};return String(f.theme=f.createTheme(p)),f});return n||r.reset(),r})(e);return t.styled=(({config:i,sheet:n})=>ha(i,()=>{const r=Oi(i,n);return(...o)=>{const a=r(...o),s=a[tt].type,c=w.forwardRef((p,l)=>{const u=p&&p.as||s,{props:f,deferredInjector:m}=a(p);return delete f.as,f.ref=l,m?w.createElement(w.Fragment,null,w.createElement(u,f),w.createElement(m,null)):w.createElement(u,f)});return c.className=a.className,c.displayName=`Styled.${s.displayName||s.name||s}`,c.selector=a.selector,c.toString=()=>a.selector,c[tt]=a[tt],c}}))(t),t},Ai=()=>_i||(_i=ya()),ba=(...e)=>Ai().keyframes(...e),$e=(...e)=>Ai().styled(...e);const gt=$e("div",{variants:{width:{full:{width:"100%"},half:{width:"50%"},fit:{width:"fit-content"}},height:{full:{height:"100%"},vh:{height:"100vh"}},minHeight:{240:{minHeight:"240px"},vh:{minHeight:"100vh"}},mb:{0:{mb:"0"},2:{mb:"2"},4:{mb:"4"},8:{mb:"8"},12:{mb:"12"},16:{mb:"16"},20:{mb:"20"},24:{mb:"24"},32:{mb:"32"},48:{mb:"48"},72:{mb:"72"},auto:{mb:"auto"}},mt:{0:{mt:"0"},2:{mt:"2"},4:{mt:"4"},8:{mt:"8"},12:{mt:"12"},16:{mt:"16"},20:{mt:"20"},24:{mt:"24"},32:{mt:"32"},48:{mt:"48"},72:{mt:"72"},auto:{mt:"auto"}},mx:{0:{mx:"0"},2:{mx:"2"},4:{mx:"4"},8:{mx:"8"},12:{mx:"12"},16:{mx:"16"},20:{mx:"20"},24:{mx:"24"},32:{mx:"32"},48:{mx:"48"},72:{mx:"72"},auto:{mx:"auto"}},my:{0:{my:"0"},2:{my:"2"},4:{my:"4"},8:{my:"8"},12:{my:"12"},16:{my:"16"},20:{my:"20"},24:{my:"24"},32:{my:"32"},48:{my:"48"},72:{my:"72"},auto:{my:"auto"}},ml:{0:{ml:"0"},2:{ml:"2"},4:{ml:"4"},8:{ml:"8"},12:{ml:"12"},16:{ml:"16"},20:{ml:"20"},24:{ml:"24"},32:{ml:"32"},48:{ml:"48"},72:{ml:"72"},auto:{ml:"auto"}},mr:{0:{mr:"0"},2:{mr:"2"},4:{mr:"4"},8:{mr:"8"},12:{mr:"12"},16:{mr:"16"},20:{mr:"20"},24:{mr:"24"},32:{mr:"32"},48:{mr:"48"},72:{mr:"72"},auto:{mr:"auto"}},pt:{0:{pt:"0"},2:{pt:"2"},4:{pt:"4"},8:{pt:"8"},12:{pt:"12"},16:{pt:"16"},20:{pt:"20"},24:{pt:"24"},32:{pt:"32"},48:{pt:"48"},72:{pt:"72"}},pb:{0:{pb:"0"},2:{pb:"2"},4:{pb:"4"},8:{pb:"8"},12:{pb:"12"},16:{pb:"16"},20:{pb:"20"},24:{pb:"24"},32:{pb:"32"},48:{pb:"48"},72:{pb:"72"}},pr:{0:{pr:"0"},2:{pr:"2"},4:{pr:"4"},8:{pr:"8"},12:{pr:"12"},16:{pr:"16"},20:{pr:"20"},24:{pr:"24"},32:{pr:"32"},48:{pr:"48"},72:{pr:"72"}},pl:{0:{pl:"0"},2:{pl:"2"},4:{pl:"4"},8:{pl:"8"},12:{pl:"12"},16:{pl:"16"},20:{pl:"20"},24:{pl:"24"},32:{pl:"32"},48:{pl:"48"},72:{pl:"72"}},px:{0:{px:"0"},2:{px:"2"},4:{px:"4"},8:{px:"8"},12:{px:"12"},16:{px:"16"},20:{px:"20"},24:{px:"24"},32:{px:"32"},48:{px:"48"},72:{px:"72"}},py:{0:{py:"0"},2:{py:"2"},4:{py:"4"},8:{py:"8"},12:{py:"12"},16:{py:"16"},20:{py:"20"},24:{py:"24"},32:{py:"32"},40:{py:"40"},48:{py:"48"},56:{py:"56"},64:{py:"64"},72:{py:"72"}},p:{0:{p:"0"},2:{p:"2"},4:{p:"4"},8:{p:"8"},12:{p:"12"},16:{p:"16"},20:{p:"20"},24:{p:"24"},32:{p:"32"},48:{p:"48"},72:{p:"72"}},m:{0:{m:"0"},2:{m:"2"},4:{m:"4"},8:{m:"8"},12:{m:"12"},16:{m:"16"},20:{m:"20"},24:{m:"24"},32:{m:"32"},48:{m:"48"},72:{m:"72"}},row:{true:{display:"flex",flexDirection:"row"}},rowReverse:{true:{display:"flex",flexDirection:"row-reverse"}},column:{true:{display:"flex",flexDirection:"column"}},columnReverse:{true:{display:"flex",flexDirection:"column-reverse"}},center:{true:{justifyContent:"center",alignItems:"center"}},wrap:{true:{flexWrap:"wrap"}},flex:{1:{flex:1},2:{flex:2},3:{flex:3},4:{flex:4},5:{flex:5},6:{flex:6},7:{flex:7},8:{flex:8}},shrink:{0:{flexShrink:0},1:{flexShrink:1}},flexGrow:{1:{flexGrow:1}},flexBasis:{0:{flexBasis:0},auto:{flexBasis:"auto"},full:{flexBasis:"100%"},50:{flexBasis:"50px"},100:{flexBasis:"100px"},150:{flexBasis:"150px"},200:{flexBasis:"200px"},250:{flexBasis:"250px"},300:{flexBasis:"300px"},350:{flexBasis:"350px"},400:{flexBasis:"400px"},450:{flexBasis:"450px"},500:{flexBasis:"500px"},550:{flexBasis:"550px"},600:{flexBasis:"600px"}},justify:{start:{justifyContent:"flex-start"},end:{justifyContent:"flex-end"},center:{justifyContent:"center"},between:{justifyContent:"space-between"},around:{justifyContent:"space-around"},selfCenter:{justifySelf:"center"}},align:{start:{alignItems:"flex-start"},end:{alignItems:"flex-end"},center:{alignItems:"center"},stretch:{alignItems:"stretch"},selfCenter:{alignSelf:"center"}},justifyBetween:{true:{justifyContent:"space-between"}},justifyCenter:{true:{justifyContent:"center"}},justifyStart:{true:{justifyContent:"flex-start"}},justifyEnd:{true:{justifyContent:"flex-end"}},justifyAround:{true:{justifyContent:"space-around"}},justifySelfCenter:{true:{justifySelf:"center"}},alignCenter:{true:{alignItems:"center"}},alignStart:{true:{alignItems:"flex-start"}},alignEnd:{true:{alignItems:"flex-end"}},alignStretch:{true:{alignItems:"stretch"}},alignSelfCenter:{true:{alignSelf:"center"}},textCenter:{true:{textAlign:"center"}},textLeft:{true:{textAlign:"left"}},textRight:{true:{textAlign:"right"}},minWidth:{0:{minWidth:0}},gap:{0:{gap:"0px"},2:{gap:"2px"},4:{gap:"4px"},8:{gap:"8px"},10:{gap:"10px"},12:{gap:"12px"},16:{gap:"16px"},20:{gap:"20px"},24:{gap:"24px"},32:{gap:"32px"},40:{gap:"40px"},48:{gap:"48px"},56:{gap:"56px"}},rowGap:{0:{rowGap:"0px"},2:{rowGap:"2px"},4:{rowGap:"4px"},8:{rowGap:"8px"},10:{rowGap:"10px"},12:{rowGap:"12px"},16:{rowGap:"16px"},20:{rowGap:"20px"},24:{rowGap:"24px"},32:{rowGap:"32px"},40:{rowGap:"40px"},48:{rowGap:"48px"},56:{rowGap:"56px"}},columnGap:{0:{columnGap:"0px"},2:{columnGap:"2px"},4:{columnGap:"4px"},8:{columnGap:"8px"},10:{columnGap:"10px"},12:{columnGap:"12px"},16:{columnGap:"16px"},20:{columnGap:"20px"},24:{columnGap:"24px"},32:{columnGap:"32px"},40:{columnGap:"40px"},48:{columnGap:"48px"},56:{columnGap:"56px"}}}});var _t={},Ht={},it={},Di;function ji(){if(Di)return it;Di=1,Object.defineProperty(it,"__esModule",{value:!0}),it.fromHex=it.toHex=void 0;const e=n=>new Number(n).toString(16).toLowerCase(),t=n=>`0x${e(n).length===1?"0"+e(n):e(n)}`;it.toHex=t;const i=n=>new Number(n);return it.fromHex=i,it}var Rn={},Fi;function wa(){return Fi||(Fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createComplexNode=e.createNode=e.merge=void 0;const t=c=>({typename:c.typename,mime:c.info.mime,extension:c.info.extension}),i=(c,p)=>c&&p.length===0,n=c=>c[0],r=c=>c.slice(1,c.length),o=(c,p)=>{if(c.bytes.length===0)return p;const l=n(c.bytes),u=r(c.bytes),f=p.bytes[l];if(i(f,u)){const m=p.bytes[l];return p.bytes[l]={...m,matches:[...m.matches?m.matches:[],t(c)]},p}return p.bytes[l]?(p.bytes[l]=e.merge(e.createNode(c.typename,u,c.info),p.bytes[l]),p):(p.bytes[l]||(p.bytes[l]={...p.bytes[l],...e.createComplexNode(c.typename,u,c.info)}),p)};e.merge=o;const a=(c,p,l)=>({typename:c,bytes:p,info:l||{}});e.createNode=a;const s=(c,p,l)=>{let u={bytes:{},matches:void 0};const f=n(p),m=r(p);return p.length===0?{matches:[t({typename:c,info:l?{extension:l.extension,mime:l.mime}:{}})],bytes:{}}:(u.bytes[f]=e.createComplexNode(c,m,l),u)};e.createComplexNode=s}(Rn)),Rn}var Pi;function Ea(){if(Pi)return Ht;Pi=1,Object.defineProperty(Ht,"__esModule",{value:!0});const e=ji(),t=wa();let i={noOffset:null,offset:{}};const n=(r,o,a,s)=>{if(s){const c=i.offset[e.toHex(s)];if(!c)i.offset[e.toHex(s)]=t.createComplexNode(r,o.map(p=>p.toLowerCase()),a);else{const p=t.merge(t.createNode(r,o.map(l=>l.toLowerCase()),a),{...c});i.offset[e.toHex(s)]=p}}else i.noOffset===null?i.noOffset=t.createComplexNode(r,o.map(c=>c.toLowerCase()),a):i.noOffset=t.merge(t.createNode(r,o.map(c=>c.toLowerCase()),a),i.noOffset)};return n("gif",["0x47","0x49","0x46","0x38","0x37","0x61"],{mime:"image/gif",extension:"gif"}),n("gif",["0x47","0x49","0x46","0x38","0x39","0x61"],{mime:"image/gif",extension:"gif"}),n("jpg",["0xFF","0xD8","0xFF"],{mime:"image/jpeg",extension:"jpeg"}),n("webp",["0x52","0x49","0x46","0x46","?","?","?","?","0x57","0x45","0x42","0x50"],{mime:"image/webp",extension:"webp"}),n("heif",["0x66","0x74","0x79","0x70","0x6D","0x69","0x66","0x31"],{mime:"image/heif",extension:"heif"},4),n("heif",["0x66","0x74","0x79","0x70","0x68","0x65","0x69","0x63"],{mime:"image/heif",extension:"heic"},4),n("rpm",["0xed","0xab","0xee","0xdb"]),n("bin",["0x53","0x50","0x30","0x31"],{mime:"application/octet-stream",extension:"bin"}),n("pic",["0x00"]),n("pif",["0x00"]),n("sea",["0x00"]),n("ytr",["0x00"]),n("mp4",["0x66","0x74","0x79","0x70"],{mime:"video/mp4",extension:"mp4"},4),n("ttf",["0x00","0x01","0x00","0x00","0x00"],{mime:"font/ttf",extension:"ttf"}),n("otf",["0x4F","0x54","0x54","0x4F"],{mime:"font/otf",extension:"otf"}),n("eot",["0x50","0x4C"],{mime:"application/vnd.ms-fontobject",extension:"eot"}),n("woff",["0x77","0x4F","0x46","0x46"],{mime:"font/woff",extension:"woff"}),n("woff2",["0x77","0x4F","0x46","0x32"],{mime:"font/woff2",extension:"woff2"}),n("pdb",["0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00"]),n("dba",["0xBE","0xBA","0xFE","0xCA"]),n("dba2",["0x00","0x01","0x42","0x44"]),n("tda",["0x00","0x01","0x44","0x54"]),n("tda2",["0x00","0x01","0x00","0x00"]),n("ico",["0x00","0x00","0x01","0x00"],{mime:"image/x-icon",extension:"ico"}),n("3gp",["0x66","0x74","0x79","0x70","0x33","0x67"]),n("z",["0x1F","0x9D"]),n("tar.z",["0x1F","0xA0"]),n("bac",["0x42","0x41","0x43","0x4B","0x4D","0x49","0x4B","0x45","0x44","0x49","0x53","0x4B"]),n("bz2",["0x42","0x5A","0x68"],{mime:"application/x-bzip2",extension:"bz2"}),n("tif",["0x49","0x49","0x2A","0x00"],{mime:"image/tiff",extension:"tif"}),n("tiff",["0x4D","0x4D","0x00","0x2A"],{mime:"image/tiff",extension:"tiff"}),n("cr2",["0x49","0x49","0x2A","0x00","0x10","0x00","0x00","0x00","0x43","0x52"]),n("cin",["0x80","0x2A","0x5F","0xD7"]),n("cin1",["0x52","0x4E","0x43","0x01"]),n("cin2",["0x52","0x4E","0x43","0x02"]),n("dpx",["0x53","0x44","0x50","0x58"]),n("dpx2",["0x58","0x50","0x44","0x53"]),n("exr",["0x76","0x2F","0x31","0x01"]),n("bpg",["0x42","0x50","0x47","0xFB"]),n("ilbm",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x49","0x4C","0x42","0x4D"]),n("8svx",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x38","0x53","0x56","0x58"]),n("acbm",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x41","0x43","0x42","0x4D"]),n("anbm",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x41","0x4E","0x42","0x4D"]),n("anim",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x41","0x4E","0x49","0x4D"]),n("faxx",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x46","0x41","0x58","0x58"]),n("ftxt",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x46","0x54","0x58","0x54"]),n("smus",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x53","0x4D","0x55","0x53"]),n("cmus",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x43","0x4D","0x55","0x53"]),n("yuvn",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x59","0x55","0x56","0x4E"]),n("iff",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x46","0x41","0x4E","0x54"]),n("aiff",["0x46","0x4F","0x52","0x4D","?","?","?","?","0x41","0x49","0x46","0x46"],{mime:"audio/x-aiff",extension:"aiff"}),n("idx",["0x49","0x4E","0x44","0x58"]),n("lz",["0x4C","0x5A","0x49","0x50"]),n("exe",["0x4D","0x5A"]),n("zip",["0x50","0x4B","0x03","0x04"],{mime:"application/zip",extension:"zip"}),n("zip",["0x50","0x4B","0x05","0x06"],{mime:"application/zip",extension:"zip"}),n("zip",["0x50","0x4B","0x07","0x08"],{mime:"application/zip",extension:"zip"}),n("jar",["0x50","0x4B","0x03","0x04"],{mime:"application/java-archive",extension:"jar"}),n("jar",["0x50","0x4B","0x05","0x06"],{mime:"application/java-archive",extension:"jar"}),n("jar",["0x50","0x4B","0x07","0x08"],{mime:"application/java-archive",extension:"jar"}),n("odt",["0x50","0x4B","0x03","0x04"],{mime:"application/vnd.oasis.opendocument.text",extension:"odt"}),n("odt",["0x50","0x4B","0x05","0x06"],{mime:"application/vnd.oasis.opendocument.text",extension:"odt"}),n("odt",["0x50","0x4B","0x07","0x08"],{mime:"application/vnd.oasis.opendocument.text",extension:"odt"}),n("ods",["0x50","0x4B","0x03","0x04"],{mime:"application/vnd.oasis.opendocument.spreadsheet",extension:"ods"}),n("ods",["0x50","0x4B","0x05","0x06"],{mime:"application/vnd.oasis.opendocument.spreadsheet",extension:"ods"}),n("ods",["0x50","0x4B","0x07","0x08"],{mime:"application/vnd.oasis.opendocument.spreadsheet",extension:"ods"}),n("odp",["0x50","0x4B","0x03","0x04"],{mime:"application/vnd.oasis.opendocument.presentation",extension:"odp"}),n("odp",["0x50","0x4B","0x05","0x06"],{mime:"application/vnd.oasis.opendocument.presentation",extension:"odp"}),n("odp",["0x50","0x4B","0x07","0x08"],{mime:"application/vnd.oasis.opendocument.presentation",extension:"odp"}),n("docx",["0x50","0x4B","0x03","0x04"],{mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",extension:"docx"}),n("docx",["0x50","0x4B","0x05","0x06"],{mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",extension:"docx"}),n("docx",["0x50","0x4B","0x07","0x08"],{mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",extension:"docx"}),n("xlsx",["0x50","0x4B","0x03","0x04"],{mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",extension:"xlsx"}),n("xlsx",["0x50","0x4B","0x05","0x06"],{mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",extension:"xlsx"}),n("xlsx",["0x50","0x4B","0x07","0x08"],{mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",extension:"xlsx"}),n("pptx",["0x50","0x4B","0x03","0x04"],{mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation",extension:"pptx"}),n("pptx",["0x50","0x4B","0x05","0x06"],{mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation",extension:"pptx"}),n("pptx",["0x50","0x4B","0x07","0x08"],{mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation",extension:"pptx"}),n("vsdx",["0x50","0x4B","0x03","0x04"],{mime:"application/vnd.ms-visio.drawing",extension:"vsdx"}),n("vsdx",["0x50","0x4B","0x05","0x06"],{mime:"application/vnd.ms-visio.drawing",extension:"vsdx"}),n("vsdx",["0x50","0x4B","0x07","0x08"],{mime:"application/vnd.ms-visio.drawing",extension:"vsdx"}),n("apk",["0x50","0x4B","0x03","0x04"],{mime:"application/vnd.android.package-archive",extension:"apk"}),n("apk",["0x50","0x4B","0x05","0x06"],{mime:"application/vnd.android.package-archive",extension:"apk"}),n("apk",["0x50","0x4B","0x07","0x08"],{mime:"application/vnd.android.package-archive",extension:"apk"}),n("aar",["0x50","0x4B","0x03","0x04"],{mime:"application/vnd.android.package-archive",extension:"aar"}),n("aar",["0x50","0x4B","0x05","0x06"],{mime:"application/vnd.android.package-archive",extension:"aar"}),n("aar",["0x50","0x4B","0x07","0x08"],{mime:"application/vnd.android.package-archive",extension:"aar"}),n("rar",["0x52","0x61","0x72","0x21","0x1A","0x07","0x00"],{mime:"application/vnd.rar",extension:"rar"}),n("rar",["0x52","0x61","0x72","0x21","0x1A","0x07","0x01","0x00"],{mime:"application/vnd.rar",extension:"rar"}),n("rar",["0x7F","0x45","0x4C","0x46"],{mime:"application/vnd.rar",extension:"rar"}),n("png",["0x89","0x50","0x4E","0x47","0x0D","0x0A","0x1A","0x0A"],{mime:"image/png",extension:"png"}),n("apng",["0x89","0x50","0x4E","0x47","0x0D","0x0A","0x1A","0x0A"],{mime:"image/apng",extension:"apng"}),n("class",["0xCA","0xFE","0xBA","0xBE"]),n("class",["0xEF","0xBB","0xBF"]),n("class",["0xFE","0xed","0xFA","0xCE"],void 0,4096),n("class",["0xFE","0xed","0xFA","0xCF"],void 0,4096),n("class",["0xCE","0xFA","0xed","0xFE"]),n("class",["0xCF","0xFA","0xed","0xFE"]),n("class",["0xFF","0xFE"]),n("class",["0xFF","0xFE"]),n("class",["0xFF","0xFE","0x00","0x00"]),n("ps",["0x25","0x21","0x50","0x53"],{mime:"application/postscript",extension:".ps"}),n("pdf",["0x25","0x50","0x44","0x46"],{mime:"application/pdf",extension:"pdf"}),n("asf",["0x30","0x26","0xB2","0x75","0x8E","0x66","0xCF","0x11","0xA6","0xD9","0x00","0xAA","0x00","0x62","0xCE","0x6C"]),n("wma",["0x30","0x26","0xB2","0x75","0x8E","0x66","0xCF","0x11","0xA6","0xD9","0x00","0xAA","0x00","0x62","0xCE","0x6C"]),n("wmv",["0x30","0x26","0xB2","0x75","0x8E","0x66","0xCF","0x11","0xA6","0xD9","0x00","0xAA","0x00","0x62","0xCE","0x6C"]),n("deploymentimage",["0x24","0x53","0x44","0x49","0x30","0x30","0x30","0x31"]),n("ogv",["0x4F","0x67","0x67","0x53","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","0x80","0x74","0x68","0x65","0x6F","0x72","0x61"],{mime:"video/ogg",extension:"ogv"}),n("ogm",["0x4F","0x67","0x67","0x53","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","0x01","0x76","0x69","0x64","0x65","0x6F","0x00"],{mime:"video/ogg",extension:"ogm"}),n("oga",["0x4F","0x67","0x67","0x53","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","0x7F","0x46","0x4C","0x41","0x43"],{mime:"audio/ogg",extension:"oga"}),n("spx",["0x4F","0x67","0x67","0x53","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","0x53","0x70","0x65","0x65","0x78","0x20","0x20"],{mime:"audio/ogg",extension:"spx"}),n("ogg",["0x4F","0x67","0x67","0x53","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","0x01","0x76","0x6F","0x72","0x62","0x69","0x73"],{mime:"audio/ogg",extension:"ogg"}),n("ogx",["0x4F","0x67","0x67","0x53"],{mime:"application/ogg",extension:"ogx"}),n("psd",["0x38","0x42","0x50","0x53"],{mime:"application/x-photoshop",extension:"psd"}),n("clip",["0x43","0x53","0x46","0x43","0x48","0x55","0x4e","0x4b"]),n("wav",["0x52","0x49","0x46","0x46","?","?","?","?","0x57","0x41","0x56","0x45"],{mime:"audio/x-wav",extension:"wav"}),n("avi",["0x52","0x49","0x46","0x46","?","?","?","?","0x41","0x56","0x49","0x20"],{mime:"video/x-msvideo",extension:"avi"}),n("mp3",["0xFF","0xFB"],{mime:"audio/mpeg",extension:"mp3"}),n("mp3",["0xFF","0xF3"],{mime:"audio/mpeg",extension:"mp3"}),n("mp3",["0xFF","0xF2"],{mime:"audio/mpeg",extension:"mp3"}),n("mp3",["0x49","0x44","0x33"],{mime:"audio/mpeg",extension:"mp3"}),n("bmp",["0x42","0x4D"],{mime:"image/bmp",extension:"bmp"}),n("iso",["0x43","0x44","0x30","0x30","0x31"]),n("flac",["0x66","0x4C","0x61","0x43"]),n("mid",["0x4D","0x54","0x68","0x64"],{mime:"audio/midi",extension:"mid"}),n("midi",["0x4D","0x54","0x68","0x64"],{mime:"audio/midi",extension:"midi"}),n("doc",["0xD0","0xCF","0x11","0xE0","0xA1","0xB1","0x1A","0xE1"],{mime:"application/msword",extension:"doc"}),n("xls",["0xD0","0xCF","0x11","0xE0","0xA1","0xB1","0x1A","0xE1"],{mime:"application/vnd.ms-excel",extension:"xls"}),n("ppt",["0xD0","0xCF","0x11","0xE0","0xA1","0xB1","0x1A","0xE1"],{mime:"application/vnd.ms-powerpoint",extension:"ppt"}),n("msg",["0xD0","0xCF","0x11","0xE0","0xA1","0xB1","0x1A","0xE1"]),n("dex",["0x64","0x65","0x78","0x0A","0x30","0x33","0x35","0x00"]),n("vmdk",["0x4B","0x44","0x4D"]),n("crx",["0x43","0x72","0x32","0x34"]),n("fh8",["0x41","0x47","0x44","0x33"]),n("cwk",["0x05","0x07","0x00","0x00","0x42","0x4F","0x42","0x4F","0x05","0x07","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x01"]),n("cwk",["0x06","0x07","0xE1","0x00","0x42","0x4F","0x42","0x4F","0x06","0x07","0xE1","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x01"]),n("toast",["0x45","0x52","0x02","0x00","0x00","0x00"]),n("toast",["0x8B","0x45","0x52","0x02","0x00","0x00","0x00"]),n("dmg",["0x78","0x01","0x73","0x0D","0x62","0x62","0x60"]),n("xar",["0x78","0x61","0x72","0x21"]),n("dat",["0x50","0x4D","0x4F","0x43","0x43","0x4D","0x4F","0x43"]),n("nes",["0x4E","0x45","0x53","0x1A"]),n("tar",["0x75","0x73","0x74","0x61","0x72","0x00","0x30","0x30"],{mime:"application/x-tar",extension:"tar"},257),n("tar",["0x75","0x73","0x74","0x61","0x72","0x20","0x20","0x00"],{mime:"application/x-tar",extension:"tar"},257),n("tox",["0x74","0x6F","0x78","0x33"]),n("mlv",["0x4D","0x4C","0x56","0x49"]),n("windowsupdate",["0x44","0x43","0x4D","0x01","0x50","0x41","0x33","0x30"]),n("7z",["0x37","0x7A","0xBC","0xAF","0x27","0x1C"],{mime:"application/x-7z-compressed",extension:"7z"}),n("gz",["0x1F","0x8B"],{mime:"application/gzip",extension:"gz"}),n("tar.gz",["0x1F","0x8B"],{mime:"application/gzip",extension:"tar.gz"}),n("xz",["0xFD","0x37","0x7A","0x58","0x5A","0x00","0x00"],{mime:"application/gzip",extension:"xz"}),n("tar.xz",["0xFD","0x37","0x7A","0x58","0x5A","0x00","0x00"],{mime:"application/gzip",extension:"tar.xz"}),n("lz2",["0x04","0x22","0x4D","0x18"]),n("cab",["0x4D","0x53","0x43","0x46"]),n("mkv",["0x1A","0x45","0xDF","0xA3"],{mime:"video/x-matroska",extension:"mkv"}),n("mka",["0x1A","0x45","0xDF","0xA3"],{mime:"audio/x-matroska",extension:"mka"}),n("mks",["0x1A","0x45","0xDF","0xA3"],{mime:"video/x-matroska",extension:"mks"}),n("mk3d",["0x1A","0x45","0xDF","0xA3"]),n("webm",["0x1A","0x45","0xDF","0xA3"],{mime:"audio/webm",extension:"webm"}),n("dcm",["0x44","0x49","0x43","0x4D"],void 0,128),n("xml",["0x3C","0x3f","0x78","0x6d","0x6C","0x20"],{mime:"application/xml",extension:"xml"}),n("wasm",["0x00","0x61","0x73","0x6d"],{mime:"application/wasm",extension:"wasm"}),n("lep",["0xCF","0x84","0x01"]),n("swf",["0x43","0x57","0x53"],{mime:"application/x-shockwave-flash",extension:"swf"}),n("swf",["0x46","0x57","0x53"],{mime:"application/x-shockwave-flash",extension:"swf"}),n("deb",["0x21","0x3C","0x61","0x72","0x63","0x68","0x3E"]),n("rtf",["0x7B","0x5C","0x72","0x74","0x66","0x31"],{mime:"application/rtf",extension:"rtf"}),n("m2p",["0x00","0x00","0x01","0xBA"]),n("vob",["0x00","0x00","0x01","0xBA"]),n("mpg",["0x00","0x00","0x01","0xBA"],{mime:"video/mpeg",extension:"mpg"}),n("mpeg",["0x00","0x00","0x01","0xBA"],{mime:"video/mpeg",extension:"mpeg"}),n("mpeg",["0x47"],{mime:"video/mpeg",extension:"mpeg"}),n("mpeg",["0x00","0x00","0x01","0xB3"],{mime:"video/mpeg",extension:"mpeg"}),n("mov",["0x66","0x72","0x65","0x65"],{mime:"video/quicktime",extension:"mov"},4),n("mov",["0x6D","0x64","0x61","0x74"],{mime:"video/quicktime",extension:"mov"},4),n("mov",["0x6D","0x6F","0x6F","0x76"],{mime:"video/quicktime",extension:"mov"},4),n("mov",["0x77","0x69","0x64","0x65"],{mime:"video/quicktime",extension:"mov"},4),n("mov",["0x66","0x74","0x79","0x70","0x71","0x74"],{mime:"video/quicktime",extension:"mov"},4),n("hl2demo",["0x48","0x4C","0x32","0x44","0x45","0x4D","0x4F"]),n("txt",["0xEF","0xBB","0xBF"],{mime:"text/plain; charset=UTF-8",extension:"txt"}),n("txt",["0xFF","0xFE"],{mime:"text/plain; charset=UTF-16LE",extension:"txt"}),n("txt",["0xFE","0xFF"],{mime:"text/plain; charset=UTF-16BE",extension:"txt"}),n("txt",["0xFF","0xFE","0x00","0x00"],{mime:"text/plain; charset=UTF-32LE",extension:"txt"}),n("txt",["0x00","0x00","0xFE","0xFF"],{mime:"text/plain; charset=UTF-32BE",extension:"txt"}),n("SubRip",["0x31","0x0D","0x0A","0x30","0x30","0x3A"],{mime:"application/x-subrip",extension:"srt"}),n("WebVTT",["0xEF","0xBB","0xBF","0x57","0x45","0x42","0x56","0x54","0x54","0x0A"],{mime:"text/vtt",extension:"vtt"}),n("WebVTT",["0xEF","0xBB","0xBF","0x57","0x45","0x42","0x56","0x54","0x54","0x0D"],{mime:"text/vtt",extension:"vtt"}),n("WebVTT",["0xEF","0xBB","0xBF","0x57","0x45","0x42","0x56","0x54","0x54","0x20"],{mime:"text/vtt",extension:"vtt"}),n("WebVTT",["0xEF","0xBB","0xBF","0x57","0x45","0x42","0x56","0x54","0x54","0x09"],{mime:"text/vtt",extension:"vtt"}),n("WebVTT",["0x57","0x45","0x42","0x56","0x54","0x54","0x0A"],{mime:"text/vtt",extension:"vtt"}),n("WebVTT",["0x57","0x45","0x42","0x56","0x54","0x54","0x0D"],{mime:"text/vtt",extension:"vtt"}),n("WebVTT",["0x57","0x45","0x42","0x56","0x54","0x54","0x20"],{mime:"text/vtt",extension:"vtt"}),n("WebVTT",["0x57","0x45","0x42","0x56","0x54","0x54","0x09"],{mime:"text/vtt",extension:"vtt"}),n("Json",["0x7B"],{mime:"application/json",extension:".json"}),n("Json",["0x5B"],{mime:"application/json",extension:".json"}),n("ELF",["0x7F","0x45","0x4C","0x46"],{mime:"application/x-executable",extension:".elf"}),n("Mach-O",["0xFE","0xED","0xFA","0xC"],{mime:"application/x-mach-binary",extension:".o"}),n("Mach-O",["0xFE","0xED","0xFA","0xCF"],{mime:"application/x-executable",extension:"elf"}),n("EML",["0x52","0x65","0x63","0x65","0x69","0x76","0x65","0x64","0x3A"],{mime:"message/rfc822",extension:".eml"}),n("SVG",["0x3c","0x73","0x76","0x67"],{mime:"image/svg+xml",extension:"svg"}),Ht.default=()=>i,Ht}var Ii;function Sa(){return Ii||(Ii=1,function(e){var t=_t&&_t.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.filetypeextension=e.filetypemime=e.filetypename=e.filetypeinfo=void 0;const i=t(Ea()),n=ji(),r=i.default(),o=l=>{let u=r;for(const f of Object.keys(u.offset)){const m=n.fromHex(f);if(m>=l.length)continue;const g=r.offset[f],E=a(m,l,g);if(E.length>0)return E}return u.noOffset===null?[]:a(0,l,u.noOffset)};e.filetypeinfo=o;const a=(l,u,f)=>{let m=f,v=[];for(;;){const g=n.toHex(u[l]);if(m.bytes["?"]&&!m.bytes[g]?m=m.bytes["?"]:m=m.bytes[g],!m)return v;m&&m.matches&&(v=m.matches.slice(0)),l+=1}};e.default=e.filetypeinfo;const s=l=>e.filetypeinfo(l).map(u=>u.typename);e.filetypename=s;const c=l=>e.filetypeinfo(l).map(u=>u.mime?u.mime:null).filter(u=>u!==null);e.filetypemime=c;const p=l=>e.filetypeinfo(l).map(u=>u.extension?u.extension:null).filter(u=>u!==null);e.filetypeextension=p}(_t)),_t}var Ra=Sa(),Gt={exports:{}},Yt={exports:{}},se={};/** @license React v16.13.1
|
26
26
|
* react-is.production.min.js
|
27
27
|
*
|
28
28
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
29
29
|
*
|
30
30
|
* This source code is licensed under the MIT license found in the
|
31
31
|
* LICENSE file in the root directory of this source tree.
|
32
|
-
*/var
|
32
|
+
*/var Bi;function Ta(){if(Bi)return se;Bi=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function _(b){if(typeof b=="object"&&b!==null){var j=b.$$typeof;switch(j){case t:switch(b=b.type,b){case c:case p:case n:case o:case r:case u:return b;default:switch(b=b&&b.$$typeof,b){case s:case l:case v:case m:case a:return b;default:return j}}case i:return j}}}function k(b){return _(b)===p}return se.AsyncMode=c,se.ConcurrentMode=p,se.ContextConsumer=s,se.ContextProvider=a,se.Element=t,se.ForwardRef=l,se.Fragment=n,se.Lazy=v,se.Memo=m,se.Portal=i,se.Profiler=o,se.StrictMode=r,se.Suspense=u,se.isAsyncMode=function(b){return k(b)||_(b)===c},se.isConcurrentMode=k,se.isContextConsumer=function(b){return _(b)===s},se.isContextProvider=function(b){return _(b)===a},se.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},se.isForwardRef=function(b){return _(b)===l},se.isFragment=function(b){return _(b)===n},se.isLazy=function(b){return _(b)===v},se.isMemo=function(b){return _(b)===m},se.isPortal=function(b){return _(b)===i},se.isProfiler=function(b){return _(b)===o},se.isStrictMode=function(b){return _(b)===r},se.isSuspense=function(b){return _(b)===u},se.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===p||b===o||b===r||b===u||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===v||b.$$typeof===m||b.$$typeof===a||b.$$typeof===s||b.$$typeof===l||b.$$typeof===E||b.$$typeof===x||b.$$typeof===O||b.$$typeof===g)},se.typeOf=_,se}var ce={};/** @license React v16.13.1
|
33
33
|
* react-is.development.js
|
34
34
|
*
|
35
35
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
36
36
|
*
|
37
37
|
* This source code is licensed under the MIT license found in the
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
39
|
-
*/var
|
39
|
+
*/var zi;function ka(){return zi||(zi=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function _(y){return typeof y=="string"||typeof y=="function"||y===n||y===p||y===o||y===r||y===u||y===f||typeof y=="object"&&y!==null&&(y.$$typeof===v||y.$$typeof===m||y.$$typeof===a||y.$$typeof===s||y.$$typeof===l||y.$$typeof===E||y.$$typeof===x||y.$$typeof===O||y.$$typeof===g)}function k(y){if(typeof y=="object"&&y!==null){var P=y.$$typeof;switch(P){case t:var X=y.type;switch(X){case c:case p:case n:case o:case r:case u:return X;default:var $=X&&X.$$typeof;switch($){case s:case l:case v:case m:case a:return $;default:return P}}case i:return P}}}var b=c,j=p,q=s,F=a,Y=t,H=l,oe=n,he=v,ne=m,V=i,pe=o,Re=r,Te=u,ue=!1;function we(y){return ue||(ue=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),R(y)||k(y)===c}function R(y){return k(y)===p}function C(y){return k(y)===s}function B(y){return k(y)===a}function W(y){return typeof y=="object"&&y!==null&&y.$$typeof===t}function z(y){return k(y)===l}function G(y){return k(y)===n}function L(y){return k(y)===v}function U(y){return k(y)===m}function J(y){return k(y)===i}function te(y){return k(y)===o}function M(y){return k(y)===r}function ye(y){return k(y)===u}ce.AsyncMode=b,ce.ConcurrentMode=j,ce.ContextConsumer=q,ce.ContextProvider=F,ce.Element=Y,ce.ForwardRef=H,ce.Fragment=oe,ce.Lazy=he,ce.Memo=ne,ce.Portal=V,ce.Profiler=pe,ce.StrictMode=Re,ce.Suspense=Te,ce.isAsyncMode=we,ce.isConcurrentMode=R,ce.isContextConsumer=C,ce.isContextProvider=B,ce.isElement=W,ce.isForwardRef=z,ce.isFragment=G,ce.isLazy=L,ce.isMemo=U,ce.isPortal=J,ce.isProfiler=te,ce.isStrictMode=M,ce.isSuspense=ye,ce.isValidElementType=_,ce.typeOf=k}()),ce}var Li;function Mi(){return Li||(Li=1,process.env.NODE_ENV==="production"?Yt.exports=Ta():Yt.exports=ka()),Yt.exports}/*
|
40
40
|
object-assign
|
41
41
|
(c) Sindre Sorhus
|
42
42
|
@license MIT
|
43
|
-
*/var Tn
|
44
|
-
Valid keys: `+JSON.stringify(Object.keys(R),null," "));var y=ye(W,M,z,G,L+"."+M,i);if(y)return y}return null}return E(C)}function V(R){switch(typeof R){case"number":case"string":case"undefined":return!0;case"boolean":return!R;case"object":if(Array.isArray(R))return R.every(V);if(R===null||s(R))return!0;var C=u(R);if(C){var B=C.call(R),U;if(C!==R.entries){for(;!(U=B.next()).done;)if(!V(U.value))return!1}else for(;!(U=B.next()).done;){var z=U.value;if(z&&!V(z[1]))return!1}}else return!1;return!0;default:return!1}}function pe(R,C){return R==="symbol"?!0:C?C["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&C instanceof Symbol:!1}function Re(R){var C=typeof R;return Array.isArray(R)?"array":R instanceof RegExp?"object":pe(C,R)?"symbol":C}function Te(R){if(typeof R>"u"||R===null)return""+R;var C=Re(R);if(C==="object"){if(R instanceof Date)return"date";if(R instanceof RegExp)return"regexp"}return C}function ue(R){var C=Te(R);switch(C){case"array":case"object":return"an "+C;case"boolean":case"date":case"regexp":return"a "+C;default:return C}}function we(R){return!R.constructor||!R.constructor.name?f:R.constructor.name}return m.checkPropTypes=r,m.resetWarningCache=r.resetWarningCache,m.PropTypes=m,m},An}var Dn,Gi;function _a(){if(Gi)return Dn;Gi=1;var e=On();function t(){}function i(){}return i.resetWarningCache=t,Dn=function(){function n(a,s,c,p,l,u){if(u!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}n.isRequired=n;function r(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:r,element:n,elementType:n,instanceOf:r,node:n,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:t};return o.PropTypes=o,o},Dn}var Yi;function Aa(){if(Yi)return Gt.exports;if(Yi=1,process.env.NODE_ENV!=="production"){var e=$i(),t=!0;Gt.exports=Ca()(e.isElement,t)}else Gt.exports=_a()();return Gt.exports}var Da=Aa();const ge=yi(Da);function rt(e,t,i,n){function r(o){return o instanceof i?o:new i(function(a){a(o)})}return new(i||(i=Promise))(function(o,a){function s(l){try{p(n.next(l))}catch(u){a(u)}}function c(l){try{p(n.throw(l))}catch(u){a(u)}}function p(l){l.done?o(l.value):r(l.value).then(s,c)}p((n=n.apply(e,t||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const ja=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function ht(e,t,i){const n=Fa(e),{webkitRelativePath:r}=e,o=typeof t=="string"?t:typeof r=="string"&&r.length>0?r:`./${e.name}`;return typeof n.path!="string"&&Ki(n,"path",o),Ki(n,"relativePath",o),n}function Fa(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const n=t.split(".").pop().toLowerCase(),r=ja.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}function Ki(e,t,i){Object.defineProperty(e,t,{value:i,writable:!1,configurable:!1,enumerable:!0})}const Pa=[".DS_Store","Thumbs.db"];function Ia(e){return rt(this,void 0,void 0,function*(){return Kt(e)&&Ba(e.dataTransfer)?$a(e.dataTransfer,e.type):za(e)?La(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?Ma(e):[]})}function Ba(e){return Kt(e)}function za(e){return Kt(e)&&Kt(e.target)}function Kt(e){return typeof e=="object"&&e!==null}function La(e){return jn(e.target.files).map(t=>ht(t))}function Ma(e){return rt(this,void 0,void 0,function*(){return(yield Promise.all(e.map(i=>i.getFile()))).map(i=>ht(i))})}function $a(e,t){return rt(this,void 0,void 0,function*(){if(e.items){const i=jn(e.items).filter(r=>r.kind==="file");if(t!=="drop")return i;const n=yield Promise.all(i.map(Na));return Ji(Xi(n))}return Ji(jn(e.files).map(i=>ht(i)))})}function Ji(e){return e.filter(t=>Pa.indexOf(t.name)===-1)}function jn(e){if(e===null)return[];const t=[];for(let i=0;i<e.length;i++){const n=e[i];t.push(n)}return t}function Na(e){if(typeof e.webkitGetAsEntry!="function")return Zi(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?Qi(t):Zi(e,t)}function Xi(e){return e.reduce((t,i)=>[...t,...Array.isArray(i)?Xi(i):[i]],[])}function Zi(e,t){return rt(this,void 0,void 0,function*(){var i;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const o=yield e.getAsFileSystemHandle();if(o===null)throw new Error(`${e} is not a File`);if(o!==void 0){const a=yield o.getFile();return a.handle=o,ht(a)}}const n=e.getAsFile();if(!n)throw new Error(`${e} is not a File`);return ht(n,(i=t==null?void 0:t.fullPath)!==null&&i!==void 0?i:void 0)})}function qa(e){return rt(this,void 0,void 0,function*(){return e.isDirectory?Qi(e):Ua(e)})}function Qi(e){const t=e.createReader();return new Promise((i,n)=>{const r=[];function o(){t.readEntries(a=>rt(this,void 0,void 0,function*(){if(a.length){const s=Promise.all(a.map(qa));r.push(s),o()}else try{const s=yield Promise.all(r);i(s)}catch(s){n(s)}}),a=>{n(a)})}o()})}function Ua(e){return rt(this,void 0,void 0,function*(){return new Promise((t,i)=>{e.file(n=>{const r=ht(n,e.fullPath);t(r)},n=>{i(n)})})})}var Jt={},er;function Wa(){return er||(er=1,Jt.__esModule=!0,Jt.default=function(e,t){if(e&&t){var i=Array.isArray(t)?t:t.split(",");if(i.length===0)return!0;var n=e.name||"",r=(e.type||"").toLowerCase(),o=r.replace(/\/.*$/,"");return i.some(function(a){var s=a.trim().toLowerCase();return s.charAt(0)==="."?n.toLowerCase().endsWith(s):s.endsWith("/*")?o===s.replace(/\/.*$/,""):r===s})}return!0}),Jt}var Va=Wa();const Fn=yi(Va);function tr(e){return Ya(e)||Ga(e)||or(e)||Ha()}function Ha(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
45
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
46
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
47
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
48
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fr(e,t){if(e){if(typeof e=="string")return Bn(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Bn(e,t)}}function Bn(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Ss(e,t){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var n=[],r=!0,o=!1,a,s;try{for(i=i.call(e);!(r=(a=i.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(c){o=!0,s=c}finally{try{!r&&i.return!=null&&i.return()}finally{if(o)throw s}}return n}}function Rs(e){if(Array.isArray(e))return e}function mr(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),i.push.apply(i,n)}return i}function Se(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?mr(Object(i),!0).forEach(function(n){zn(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):mr(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}function zn(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Qt(e,t){if(e==null)return{};var i=Ts(e,t),n,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ts(e,t){if(e==null)return{};var i={},n=Object.keys(e),r,o;for(o=0;o<n.length;o++)r=n[o],!(t.indexOf(r)>=0)&&(i[r]=e[r]);return i}var Ln=w.forwardRef(function(e,t){var i=e.children,n=Qt(e,ms),r=vr(n),o=r.open,a=Qt(r,xs);return w.useImperativeHandle(t,function(){return{open:o}},[o]),w.createElement(w.Fragment,null,i(Se(Se({},a),{},{open:o})))});Ln.displayName="Dropzone";var xr={disabled:!1,getFilesFromEvent:Ia,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Ln.defaultProps=xr,Ln.propTypes={children:ge.func,accept:ge.objectOf(ge.arrayOf(ge.string)),multiple:ge.bool,preventDropOnDocument:ge.bool,noClick:ge.bool,noKeyboard:ge.bool,noDrag:ge.bool,noDragEventsBubbling:ge.bool,minSize:ge.number,maxSize:ge.number,maxFiles:ge.number,disabled:ge.bool,getFilesFromEvent:ge.func,onFileDialogCancel:ge.func,onFileDialogOpen:ge.func,useFsAccessApi:ge.bool,autoFocus:ge.bool,onDragEnter:ge.func,onDragLeave:ge.func,onDragOver:ge.func,onDrop:ge.func,onDropAccepted:ge.func,onDropRejected:ge.func,onError:ge.func,validator:ge.func};var Mn={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function vr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Se(Se({},xr),e),i=t.accept,n=t.disabled,r=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,c=t.maxFiles,p=t.onDragEnter,l=t.onDragLeave,u=t.onDragOver,f=t.onDrop,m=t.onDropAccepted,v=t.onDropRejected,g=t.onFileDialogCancel,E=t.onFileDialogOpen,x=t.useFsAccessApi,O=t.autoFocus,_=t.preventDropOnDocument,k=t.noClick,b=t.noKeyboard,j=t.noDrag,q=t.noDragEventsBubbling,F=t.onError,Y=t.validator,H=w.useMemo(function(){return us(i)},[i]),oe=w.useMemo(function(){return ps(i)},[i]),he=w.useMemo(function(){return typeof E=="function"?E:gr},[E]),ne=w.useMemo(function(){return typeof g=="function"?g:gr},[g]),V=w.useRef(null),pe=w.useRef(null),Re=w.useReducer(ks,Mn),Te=In(Re,2),ue=Te[0],we=Te[1],R=ue.isFocused,C=ue.isFileDialogActive,B=w.useRef(typeof window<"u"&&window.isSecureContext&&x&&ls()),U=function(){!B.current&&C&&setTimeout(function(){if(pe.current){var A=pe.current.files;A.length||(we({type:"closeDialog"}),ne())}},300)};w.useEffect(function(){return window.addEventListener("focus",U,!1),function(){window.removeEventListener("focus",U,!1)}},[pe,C,ne,B]);var z=w.useRef([]),G=function(A){V.current&&V.current.contains(A.target)||(A.preventDefault(),z.current=[])};w.useEffect(function(){return _&&(document.addEventListener("dragover",pr,!1),document.addEventListener("drop",G,!1)),function(){_&&(document.removeEventListener("dragover",pr),document.removeEventListener("drop",G))}},[V,_]),w.useEffect(function(){return!n&&O&&V.current&&V.current.focus(),function(){}},[V,O,n]);var L=w.useCallback(function(S){F?F(S):console.error(S)},[F]),W=w.useCallback(function(S){S.preventDefault(),S.persist(),Ee(S),z.current=[].concat(hs(z.current),[S.target]),Zt(S)&&Promise.resolve(r(S)).then(function(A){if(!(Xt(S)&&!q)){var ae=A.length,me=ae>0&&os({files:A,accept:H,minSize:a,maxSize:o,multiple:s,maxFiles:c,validator:Y}),Oe=ae>0&&!me;we({isDragAccept:me,isDragReject:Oe,isDragActive:!0,type:"setDraggedFiles"}),p&&p(S)}}).catch(function(A){return L(A)})},[r,p,L,q,H,a,o,s,c,Y]),J=w.useCallback(function(S){S.preventDefault(),S.persist(),Ee(S);var A=Zt(S);if(A&&S.dataTransfer)try{S.dataTransfer.dropEffect="copy"}catch{}return A&&u&&u(S),!1},[u,q]),te=w.useCallback(function(S){S.preventDefault(),S.persist(),Ee(S);var A=z.current.filter(function(me){return V.current&&V.current.contains(me)}),ae=A.indexOf(S.target);ae!==-1&&A.splice(ae,1),z.current=A,!(A.length>0)&&(we({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Zt(S)&&l&&l(S))},[V,l,q]),M=w.useCallback(function(S,A){var ae=[],me=[];S.forEach(function(Oe){var et=cr(Oe,H),Je=In(et,2),dt=Je[0],Lt=Je[1],Mt=lr(Oe,a,o),Et=In(Mt,2),$t=Et[0],Nt=Et[1],qt=Y?Y(Oe):null;if(dt&&$t&&!qt)ae.push(Oe);else{var Ut=[Lt,Nt];qt&&(Ut=Ut.concat(qt)),me.push({file:Oe,errors:Ut.filter(function(Wt){return Wt})})}}),(!s&&ae.length>1||s&&c>=1&&ae.length>c)&&(ae.forEach(function(Oe){me.push({file:Oe,errors:[rs]})}),ae.splice(0)),we({acceptedFiles:ae,fileRejections:me,isDragReject:me.length>0,type:"setFiles"}),f&&f(ae,me,A),me.length>0&&v&&v(me,A),ae.length>0&&m&&m(ae,A)},[we,s,H,a,o,c,f,m,v,Y]),ye=w.useCallback(function(S){S.preventDefault(),S.persist(),Ee(S),z.current=[],Zt(S)&&Promise.resolve(r(S)).then(function(A){Xt(S)&&!q||M(A,S)}).catch(function(A){return L(A)}),we({type:"reset"})},[r,M,L,q]),y=w.useCallback(function(){if(B.current){we({type:"openDialog"}),he();var S={multiple:s,types:oe};window.showOpenFilePicker(S).then(function(A){return r(A)}).then(function(A){M(A,null),we({type:"closeDialog"})}).catch(function(A){ds(A)?(ne(A),we({type:"closeDialog"})):fs(A)?(B.current=!1,pe.current?(pe.current.value=null,pe.current.click()):L(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):L(A)});return}pe.current&&(we({type:"openDialog"}),he(),pe.current.value=null,pe.current.click())},[we,he,ne,x,M,L,oe,s]),P=w.useCallback(function(S){!V.current||!V.current.isEqualNode(S.target)||(S.key===" "||S.key==="Enter"||S.keyCode===32||S.keyCode===13)&&(S.preventDefault(),y())},[V,y]),X=w.useCallback(function(){we({type:"focus"})},[]),$=w.useCallback(function(){we({type:"blur"})},[]),de=w.useCallback(function(){k||(cs()?setTimeout(y,0):y())},[k,y]),ke=function(A){return n?null:A},Q=function(A){return b?null:ke(A)},ee=function(A){return j?null:ke(A)},Ee=function(A){q&&A.stopPropagation()},Ye=w.useMemo(function(){return function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=S.refKey,ae=A===void 0?"ref":A,me=S.role,Oe=S.onKeyDown,et=S.onFocus,Je=S.onBlur,dt=S.onClick,Lt=S.onDragEnter,Mt=S.onDragOver,Et=S.onDragLeave,$t=S.onDrop,Nt=Qt(S,vs);return Se(Se(zn({onKeyDown:Q(Ue(Oe,P)),onFocus:Q(Ue(et,X)),onBlur:Q(Ue(Je,$)),onClick:ke(Ue(dt,de)),onDragEnter:ee(Ue(Lt,W)),onDragOver:ee(Ue(Mt,J)),onDragLeave:ee(Ue(Et,te)),onDrop:ee(Ue($t,ye)),role:typeof me=="string"&&me!==""?me:"presentation"},ae,V),!n&&!b?{tabIndex:0}:{}),Nt)}},[V,P,X,$,de,W,J,te,ye,b,j,n]),qe=w.useCallback(function(S){S.stopPropagation()},[]),Ke=w.useMemo(function(){return function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=S.refKey,ae=A===void 0?"ref":A,me=S.onChange,Oe=S.onClick,et=Qt(S,gs),Je=zn({accept:H,multiple:s,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ke(Ue(me,ye)),onClick:ke(Ue(Oe,qe)),tabIndex:-1},ae,pe);return Se(Se({},Je),et)}},[pe,i,s,ye,n]);return Se(Se({},ue),{},{isFocused:R&&!n,getRootProps:Ye,getInputProps:Ke,rootRef:V,inputRef:pe,open:ke(y)})}function ks(e,t){switch(t.type){case"focus":return Se(Se({},e),{},{isFocused:!0});case"blur":return Se(Se({},e),{},{isFocused:!1});case"openDialog":return Se(Se({},Mn),{},{isFileDialogActive:!0});case"closeDialog":return Se(Se({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Se(Se({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Se(Se({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return Se({},Mn);default:return e}}function gr(){}const Os={WAV_MIME_TYPES:["audio/wav","audio/x-wav","audio/wave","audio/x-pn-wav"],MP3_MIME_TYPES:["audio/mpeg","audio/mp3","audio/x-mpeg","audio/x-mp3","audio/x-mpeg-3"],FLAC_MIME_TYPES:["audio/flac"]},Cs=10*1e3,hr="[Audio.getDurationSeconds]",_s=async(e,{throwError:t}={})=>new Promise((i,n)=>{if(typeof window>"u")return n(new Error("getDurationSeconds is only usable in the browser"));const r=URL.createObjectURL(e),o=new Audio,a=()=>{o.src="",URL.revokeObjectURL(r)},s=setTimeout(()=>{a(),console.error(hr,"Timeout",e.name,e.size,e.type),i(0)},Cs);o.addEventListener("loadedmetadata",()=>{const c=o.duration;clearTimeout(s),a(),i(c)},{once:!0}),o.addEventListener("error",c=>{clearTimeout(s),a(),t?(console.error(hr,"Error",e.name,e.size,e.type,c),n(e)):i(0)},{once:!0}),o.src=r}),As=e=>{const t=new Map;return e.forEach(i=>{t.set(`${i.name}-${i.size}`,i)}),Array.from(t.values())},Ds=e=>new Promise(t=>{const i=new FileReader;i.onloadend=n=>{var a;const r=new Uint8Array((a=n.target)==null?void 0:a.result),o=Sa.filetypemime(r);t(o)},i.readAsArrayBuffer(e)}),js=async e=>{try{const t=await _s(e),i=e;return i.duration=t,i}catch{throw new Error(`Failed to get audio duration for ${e.name}`)}},Fs=e=>{for(const[t,i]of Object.entries(Os)){const n=t.toLowerCase().split("_")[0];if(i.includes(e))return n}},Ps=async e=>{var s;const t=await Ds(e),i=((s=e==null?void 0:e.name)==null?void 0:s.split(".").pop())||"",n=t[0]||e.type,r=Fs(n);if(r===i||!n||!r)return e;const o=`${e.name.split(".").slice(0,-1).join(".")}.${r}`;return new File([e],o,{type:n})};class Is extends Error{constructor(){super("Max file size exceeded")}}class Bs extends Error{constructor(){super("Min file size exceeded")}}class yr extends Error{constructor(){super("File duration too long")}}class zs extends Error{constructor(){super("Invalid file type")}}const Ls=e=>({handleDurationError:t=>{var i;console.log("handleDurationError",t),(i=e.onError)==null||i.call(e,new yr)},handleMaxSizeError:t=>{var i;console.log("handleMaxSizeError",t),(i=e.onError)==null||i.call(e,new Is)},handleMinSizeError:t=>{var i;console.log("handleMinSizeError",t),(i=e.onError)==null||i.call(e,new Bs)},handleUnknownError:t=>{var i;console.log("handleUnknownError",t),(i=e.onError)==null||i.call(e,new Error("Unknown error"))},handleInvalidTypeError:t=>{var i;console.log("handleInvalidTypeError",t),(i=e.onError)==null||i.call(e,new zs)}}),Ms=e=>{const{handleDurationError:t,handleMaxSizeError:i,handleMinSizeError:n,handleUnknownError:r,handleInvalidTypeError:o}=Ls(e),[a,s]=w.useState(null);return{dropzone:vr({accept:{"audio/wav":[".wav"],"audio/mp3":[".mp3"],"audio/flac":[".flac"]},noClick:!0,minSize:e.minSizeBytes,maxSize:e.maxSizeBytes,onDropAccepted:async p=>{const l=await Promise.all(p.map(u=>Ps(u)));try{const f=(await Promise.all(l.map(js))).filter(E=>E.duration<=(e.maxDurationS??1/0)?!0:(s(new yr),t(E),!1)),m=e.files??[],v=As([...m,...f]),g=v.slice(0,e.maxFileCount??v.length);e.onFileAccepted(g)}catch(u){r(u)}},onDropRejected:p=>{p.forEach(l=>{for(const u of l.errors)u.code==="file-too-large"&&i(l.file),u.code==="file-too-small"&&n(l.file),u.code==="file-invalid-type"&&o(l.file)})}}),error:a,...e}},br=w.createContext({}),$s=()=>w.useContext(br),Ns=$e(gt,{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",gap:"8px",height:"100%"}),wr=({children:e,...t})=>{const i=Ms(t),{files:n,onFileAccepted:r,onDelete:o,maxFileCount:a,maxSizeBytes:s,minSizeBytes:c,maxDurationS:p,onError:l,...u}=t;return ve.jsx(br.Provider,{value:i,children:ve.jsxs(Ns,{...u,...i.dropzone.getRootProps(),children:[ve.jsx("input",{...i.dropzone.getInputProps()}),e]})})},qs=$e(gt,{width:"100%",height:"100%",display:"flex",overflow:"hidden",borderRadius:"16px",background:"#ffffff10",flexDirection:"column",alignItems:"stretch",maxHeight:"500px",justifyContent:"center"}),Us=$e(gt,{paddingTop:"32px",display:"flex",justifyContent:"center"}),Ws=$e(gt,{flex:1,gap:"16px",display:"flex",alignItems:"center",justifyContent:"center",padding:"16px"}),Vs=$e(gt,{borderTop:"1px solid #ffffff10",display:"flex",alignItems:"stretch",height:"96px"}),Hs=$e(gt,{height:"252px",width:"222px",borderRadius:"8px",border:"1px solid #ffffff10",background:"#ffffff10",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"}),Gs={Root:qs,Header:Us,Content:Ws,Footer:Vs,Card:Hs};function Er(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ys}=Object.prototype,{getPrototypeOf:$n}=Object,en=(e=>t=>{const i=Ys.call(t);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Ne=e=>(e=e.toLowerCase(),t=>en(t)===e),tn=e=>t=>typeof t===e,{isArray:yt}=Array,Dt=tn("undefined");function Ks(e){return e!==null&&!Dt(e)&&e.constructor!==null&&!Dt(e.constructor)&&Be(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Sr=Ne("ArrayBuffer");function Js(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Sr(e.buffer),t}const Xs=tn("string"),Be=tn("function"),Rr=tn("number"),nn=e=>e!==null&&typeof e=="object",Zs=e=>e===!0||e===!1,rn=e=>{if(en(e)!=="object")return!1;const t=$n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Qs=Ne("Date"),ec=Ne("File"),tc=Ne("Blob"),nc=Ne("FileList"),ic=e=>nn(e)&&Be(e.pipe),rc=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Be(e.append)&&((t=en(e))==="formdata"||t==="object"&&Be(e.toString)&&e.toString()==="[object FormData]"))},oc=Ne("URLSearchParams"),[ac,sc,cc,lc]=["ReadableStream","Request","Response","Headers"].map(Ne),pc=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jt(e,t,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let n,r;if(typeof e!="object"&&(e=[e]),yt(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const o=i?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(n=0;n<a;n++)s=o[n],t.call(null,e[s],s,e)}}function Tr(e,t){t=t.toLowerCase();const i=Object.keys(e);let n=i.length,r;for(;n-- >0;)if(r=i[n],t===r.toLowerCase())return r;return null}const at=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,kr=e=>!Dt(e)&&e!==at;function Nn(){const{caseless:e}=kr(this)&&this||{},t={},i=(n,r)=>{const o=e&&Tr(t,r)||r;rn(t[o])&&rn(n)?t[o]=Nn(t[o],n):rn(n)?t[o]=Nn({},n):yt(n)?t[o]=n.slice():t[o]=n};for(let n=0,r=arguments.length;n<r;n++)arguments[n]&&jt(arguments[n],i);return t}const uc=(e,t,i,{allOwnKeys:n}={})=>(jt(t,(r,o)=>{i&&Be(r)?e[o]=Er(r,i):e[o]=r},{allOwnKeys:n}),e),dc=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),fc=(e,t,i,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},mc=(e,t,i,n)=>{let r,o,a;const s={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)a=r[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=i!==!1&&$n(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},xc=(e,t,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=t.length;const n=e.indexOf(t,i);return n!==-1&&n===i},vc=e=>{if(!e)return null;if(yt(e))return e;let t=e.length;if(!Rr(t))return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},gc=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&$n(Uint8Array)),hc=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},yc=(e,t)=>{let i;const n=[];for(;(i=e.exec(t))!==null;)n.push(i);return n},bc=Ne("HTMLFormElement"),wc=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,n,r){return n.toUpperCase()+r}),Or=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),Ec=Ne("RegExp"),Cr=(e,t)=>{const i=Object.getOwnPropertyDescriptors(e),n={};jt(i,(r,o)=>{let a;(a=t(r,o,e))!==!1&&(n[o]=a||r)}),Object.defineProperties(e,n)},Sc=e=>{Cr(e,(t,i)=>{if(Be(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const n=e[i];if(Be(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},Rc=(e,t)=>{const i={},n=r=>{r.forEach(o=>{i[o]=!0})};return yt(e)?n(e):n(String(e).split(t)),i},Tc=()=>{},kc=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,qn="abcdefghijklmnopqrstuvwxyz",_r="0123456789",Ar={DIGIT:_r,ALPHA:qn,ALPHA_DIGIT:qn+qn.toUpperCase()+_r},Oc=(e=16,t=Ar.ALPHA_DIGIT)=>{let i="";const{length:n}=t;for(;e--;)i+=t[Math.random()*n|0];return i};function Cc(e){return!!(e&&Be(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const _c=e=>{const t=new Array(10),i=(n,r)=>{if(nn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[r]=n;const o=yt(n)?[]:{};return jt(n,(a,s)=>{const c=i(a,r+1);!Dt(c)&&(o[s]=c)}),t[r]=void 0,o}}return n};return i(e,0)},Ac=Ne("AsyncFunction"),Dc=e=>e&&(nn(e)||Be(e))&&Be(e.then)&&Be(e.catch),Dr=((e,t)=>e?setImmediate:t?((i,n)=>(at.addEventListener("message",({source:r,data:o})=>{r===at&&o===i&&n.length&&n.shift()()},!1),r=>{n.push(r),at.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Be(at.postMessage)),jc=typeof queueMicrotask<"u"?queueMicrotask.bind(at):typeof process<"u"&&process.nextTick||Dr,h={isArray:yt,isArrayBuffer:Sr,isBuffer:Ks,isFormData:rc,isArrayBufferView:Js,isString:Xs,isNumber:Rr,isBoolean:Zs,isObject:nn,isPlainObject:rn,isReadableStream:ac,isRequest:sc,isResponse:cc,isHeaders:lc,isUndefined:Dt,isDate:Qs,isFile:ec,isBlob:tc,isRegExp:Ec,isFunction:Be,isStream:ic,isURLSearchParams:oc,isTypedArray:gc,isFileList:nc,forEach:jt,merge:Nn,extend:uc,trim:pc,stripBOM:dc,inherits:fc,toFlatObject:mc,kindOf:en,kindOfTest:Ne,endsWith:xc,toArray:vc,forEachEntry:hc,matchAll:yc,isHTMLForm:bc,hasOwnProperty:Or,hasOwnProp:Or,reduceDescriptors:Cr,freezeMethods:Sc,toObjectSet:Rc,toCamelCase:wc,noop:Tc,toFiniteNumber:kc,findKey:Tr,global:at,isContextDefined:kr,ALPHABET:Ar,generateString:Oc,isSpecCompliantForm:Cc,toJSONObject:_c,isAsyncFn:Ac,isThenable:Dc,setImmediate:Dr,asap:jc};function Z(e,t,i,n,r){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),i&&(this.config=i),n&&(this.request=n),r&&(this.response=r,this.status=r.status?r.status:null)}h.inherits(Z,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:h.toJSONObject(this.config),code:this.code,status:this.status}}});const jr=Z.prototype,Fr={};["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=>{Fr[e]={value:e}}),Object.defineProperties(Z,Fr),Object.defineProperty(jr,"isAxiosError",{value:!0}),Z.from=(e,t,i,n,r,o)=>{const a=Object.create(jr);return h.toFlatObject(e,a,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),Z.call(a,e.message,t,i,n,r),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Fc=null;function Un(e){return h.isPlainObject(e)||h.isArray(e)}function Pr(e){return h.endsWith(e,"[]")?e.slice(0,-2):e}function Ir(e,t,i){return e?e.concat(t).map(function(r,o){return r=Pr(r),!i&&o?"["+r+"]":r}).join(i?".":""):t}function Pc(e){return h.isArray(e)&&!e.some(Un)}const Ic=h.toFlatObject(h,{},null,function(t){return/^is[A-Z]/.test(t)});function on(e,t,i){if(!h.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,i=h.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,E){return!h.isUndefined(E[g])});const n=i.metaTokens,r=i.visitor||l,o=i.dots,a=i.indexes,c=(i.Blob||typeof Blob<"u"&&Blob)&&h.isSpecCompliantForm(t);if(!h.isFunction(r))throw new TypeError("visitor must be a function");function p(v){if(v===null)return"";if(h.isDate(v))return v.toISOString();if(!c&&h.isBlob(v))throw new Z("Blob is not supported. Use a Buffer instead.");return h.isArrayBuffer(v)||h.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function l(v,g,E){let x=v;if(v&&!E&&typeof v=="object"){if(h.endsWith(g,"{}"))g=n?g:g.slice(0,-2),v=JSON.stringify(v);else if(h.isArray(v)&&Pc(v)||(h.isFileList(v)||h.endsWith(g,"[]"))&&(x=h.toArray(v)))return g=Pr(g),x.forEach(function(_,k){!(h.isUndefined(_)||_===null)&&t.append(a===!0?Ir([g],k,o):a===null?g:g+"[]",p(_))}),!1}return Un(v)?!0:(t.append(Ir(E,g,o),p(v)),!1)}const u=[],f=Object.assign(Ic,{defaultVisitor:l,convertValue:p,isVisitable:Un});function m(v,g){if(!h.isUndefined(v)){if(u.indexOf(v)!==-1)throw Error("Circular reference detected in "+g.join("."));u.push(v),h.forEach(v,function(x,O){(!(h.isUndefined(x)||x===null)&&r.call(t,x,h.isString(O)?O.trim():O,g,f))===!0&&m(x,g?g.concat(O):[O])}),u.pop()}}if(!h.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Br(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Wn(e,t){this._pairs=[],e&&on(e,this,t)}const zr=Wn.prototype;zr.append=function(t,i){this._pairs.push([t,i])},zr.toString=function(t){const i=t?function(n){return t.call(this,n,Br)}:Br;return this._pairs.map(function(r){return i(r[0])+"="+i(r[1])},"").join("&")};function Bc(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Lr(e,t,i){if(!t)return e;const n=i&&i.encode||Bc;h.isFunction(i)&&(i={serialize:i});const r=i&&i.serialize;let o;if(r?o=r(t,i):o=h.isURLSearchParams(t)?t.toString():new Wn(t,i).toString(n),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Mr{constructor(){this.handlers=[]}use(t,i,n){return this.handlers.push({fulfilled:t,rejected:i,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){h.forEach(this.handlers,function(n){n!==null&&t(n)})}}const $r={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zc={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Wn,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Vn=typeof window<"u"&&typeof document<"u",Hn=typeof navigator=="object"&&navigator||void 0,Lc=Vn&&(!Hn||["ReactNative","NativeScript","NS"].indexOf(Hn.product)<0),Mc=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$c=Vn&&window.location.href||"http://localhost",je={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Vn,hasStandardBrowserEnv:Lc,hasStandardBrowserWebWorkerEnv:Mc,navigator:Hn,origin:$c},Symbol.toStringTag,{value:"Module"})),...zc};function Nc(e,t){return on(e,new je.classes.URLSearchParams,Object.assign({visitor:function(i,n,r,o){return je.isNode&&h.isBuffer(i)?(this.append(n,i.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function qc(e){return h.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Uc(e){const t={},i=Object.keys(e);let n;const r=i.length;let o;for(n=0;n<r;n++)o=i[n],t[o]=e[o];return t}function Nr(e){function t(i,n,r,o){let a=i[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),c=o>=i.length;return a=!a&&h.isArray(r)?r.length:a,c?(h.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!s):((!r[a]||!h.isObject(r[a]))&&(r[a]=[]),t(i,n,r[a],o)&&h.isArray(r[a])&&(r[a]=Uc(r[a])),!s)}if(h.isFormData(e)&&h.isFunction(e.entries)){const i={};return h.forEachEntry(e,(n,r)=>{t(qc(n),r,i,0)}),i}return null}function Wc(e,t,i){if(h.isString(e))try{return(t||JSON.parse)(e),h.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const Ft={transitional:$r,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){const n=i.getContentType()||"",r=n.indexOf("application/json")>-1,o=h.isObject(t);if(o&&h.isHTMLForm(t)&&(t=new FormData(t)),h.isFormData(t))return r?JSON.stringify(Nr(t)):t;if(h.isArrayBuffer(t)||h.isBuffer(t)||h.isStream(t)||h.isFile(t)||h.isBlob(t)||h.isReadableStream(t))return t;if(h.isArrayBufferView(t))return t.buffer;if(h.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Nc(t,this.formSerializer).toString();if((s=h.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return on(s?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||r?(i.setContentType("application/json",!1),Wc(t)):t}],transformResponse:[function(t){const i=this.transitional||Ft.transitional,n=i&&i.forcedJSONParsing,r=this.responseType==="json";if(h.isResponse(t)||h.isReadableStream(t))return t;if(t&&h.isString(t)&&(n&&!this.responseType||r)){const a=!(i&&i.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Z.from(s,Z.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:je.classes.FormData,Blob:je.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};h.forEach(["delete","get","head","post","put","patch"],e=>{Ft.headers[e]={}});const Vc=h.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"]),Hc=e=>{const t={};let i,n,r;return e&&e.split(`
|
49
|
-
`).forEach(function(a){r=a.indexOf(":"),i=a.substring(0,r).trim().toLowerCase(),n=a.substring(r+1).trim(),!(!i||t[i]&&
|
50
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...i){const n=new this(t);return i.forEach(r=>n.set(r)),n}static accessor(t){const n=(this[qr]=this[qr]={accessors:{}}).accessors,r=this.prototype;function o(a){const s=Pt(a);n[s]||(Jc(r,a),n[s]=!0)}return h.isArray(t)?t.forEach(o):o(t),this}}Ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),h.reduceDescriptors(Ie.prototype,({value:e},t)=>{let i=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[i]=n}}}),h.freezeMethods(Ie);function Yn(e,t){const i=this||Ft,n=t||i,r=Ie.from(n.headers);let o=n.data;return h.forEach(e,function(s){o=s.call(i,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function Ur(e){return!!(e&&e.__CANCEL__)}function bt(e,t,i){Z.call(this,e??"canceled",Z.ERR_CANCELED,t,i),this.name="CanceledError"}h.inherits(bt,Z,{__CANCEL__:!0});function Wr(e,t,i){const n=i.config.validateStatus;!i.status||!n||n(i.status)?e(i):t(new Z("Request failed with status code "+i.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function Xc(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Zc(e,t){e=e||10;const i=new Array(e),n=new Array(e);let r=0,o=0,a;return t=t!==void 0?t:1e3,function(c){const p=Date.now(),l=n[o];a||(a=p),i[r]=c,n[r]=p;let u=o,f=0;for(;u!==r;)f+=i[u++],u=u%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),p-a<t)return;const m=l&&p-l;return m?Math.round(f*1e3/m):void 0}}function Qc(e,t){let i=0,n=1e3/t,r,o;const a=(p,l=Date.now())=>{i=l,r=null,o&&(clearTimeout(o),o=null),e.apply(null,p)};return[(...p)=>{const l=Date.now(),u=l-i;u>=n?a(p,l):(r=p,o||(o=setTimeout(()=>{o=null,a(r)},n-u)))},()=>r&&a(r)]}const sn=(e,t,i=3)=>{let n=0;const r=Zc(50,250);return Qc(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,c=a-n,p=r(c),l=a<=s;n=a;const u={loaded:a,total:s,progress:s?a/s:void 0,bytes:c,rate:p||void 0,estimated:p&&s&&l?(s-a)/p:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(u)},i)},Vr=(e,t)=>{const i=e!=null;return[n=>t[0]({lengthComputable:i,total:e,loaded:n}),t[1]]},Hr=e=>(...t)=>h.asap(()=>e(...t)),el=je.hasStandardBrowserEnv?((e,t)=>i=>(i=new URL(i,je.origin),e.protocol===i.protocol&&e.host===i.host&&(t||e.port===i.port)))(new URL(je.origin),je.navigator&&/(msie|trident)/i.test(je.navigator.userAgent)):()=>!0,tl=je.hasStandardBrowserEnv?{write(e,t,i,n,r,o){const a=[e+"="+encodeURIComponent(t)];h.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),h.isString(n)&&a.push("path="+n),h.isString(r)&&a.push("domain="+r),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 nl(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function il(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Gr(e,t){return e&&!nl(t)?il(e,t):t}const Yr=e=>e instanceof Ie?{...e}:e;function st(e,t){t=t||{};const i={};function n(p,l,u,f){return h.isPlainObject(p)&&h.isPlainObject(l)?h.merge.call({caseless:f},p,l):h.isPlainObject(l)?h.merge({},l):h.isArray(l)?l.slice():l}function r(p,l,u,f){if(h.isUndefined(l)){if(!h.isUndefined(p))return n(void 0,p,u,f)}else return n(p,l,u,f)}function o(p,l){if(!h.isUndefined(l))return n(void 0,l)}function a(p,l){if(h.isUndefined(l)){if(!h.isUndefined(p))return n(void 0,p)}else return n(void 0,l)}function s(p,l,u){if(u in t)return n(p,l);if(u in e)return n(void 0,p)}const c={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:(p,l,u)=>r(Yr(p),Yr(l),u,!0)};return h.forEach(Object.keys(Object.assign({},e,t)),function(l){const u=c[l]||r,f=u(e[l],t[l],l);h.isUndefined(f)&&u!==s||(i[l]=f)}),i}const Kr=e=>{const t=st({},e);let{data:i,withXSRFToken:n,xsrfHeaderName:r,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=Ie.from(a),t.url=Lr(Gr(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let c;if(h.isFormData(i)){if(je.hasStandardBrowserEnv||je.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[p,...l]=c?c.split(";").map(u=>u.trim()).filter(Boolean):[];a.setContentType([p||"multipart/form-data",...l].join("; "))}}if(je.hasStandardBrowserEnv&&(n&&h.isFunction(n)&&(n=n(t)),n||n!==!1&&el(t.url))){const p=r&&o&&tl.read(o);p&&a.set(r,p)}return t},rl=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(i,n){const r=Kr(e);let o=r.data;const a=Ie.from(r.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:p}=r,l,u,f,m,v;function g(){m&&m(),v&&v(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener("abort",l)}let E=new XMLHttpRequest;E.open(r.method.toUpperCase(),r.url,!0),E.timeout=r.timeout;function x(){if(!E)return;const _=Ie.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),b={data:!s||s==="text"||s==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:_,config:e,request:E};Wr(function(q){i(q),g()},function(q){n(q),g()},b),E=null}"onloadend"in E?E.onloadend=x:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(x)},E.onabort=function(){E&&(n(new Z("Request aborted",Z.ECONNABORTED,e,E)),E=null)},E.onerror=function(){n(new Z("Network Error",Z.ERR_NETWORK,e,E)),E=null},E.ontimeout=function(){let k=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const b=r.transitional||$r;r.timeoutErrorMessage&&(k=r.timeoutErrorMessage),n(new Z(k,b.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,E)),E=null},o===void 0&&a.setContentType(null),"setRequestHeader"in E&&h.forEach(a.toJSON(),function(k,b){E.setRequestHeader(b,k)}),h.isUndefined(r.withCredentials)||(E.withCredentials=!!r.withCredentials),s&&s!=="json"&&(E.responseType=r.responseType),p&&([f,v]=sn(p,!0),E.addEventListener("progress",f)),c&&E.upload&&([u,m]=sn(c),E.upload.addEventListener("progress",u),E.upload.addEventListener("loadend",m)),(r.cancelToken||r.signal)&&(l=_=>{E&&(n(!_||_.type?new bt(null,e,E):_),E.abort(),E=null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener("abort",l)));const O=Xc(r.url);if(O&&je.protocols.indexOf(O)===-1){n(new Z("Unsupported protocol "+O+":",Z.ERR_BAD_REQUEST,e));return}E.send(o||null)})},ol=(e,t)=>{const{length:i}=e=e?e.filter(Boolean):[];if(t||i){let n=new AbortController,r;const o=function(p){if(!r){r=!0,s();const l=p instanceof Error?p:this.reason;n.abort(l instanceof Z?l:new bt(l instanceof Error?l.message:l))}};let a=t&&setTimeout(()=>{a=null,o(new Z(`timeout ${t} of ms exceeded`,Z.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(o):p.removeEventListener("abort",o)}),e=null)};e.forEach(p=>p.addEventListener("abort",o));const{signal:c}=n;return c.unsubscribe=()=>h.asap(s),c}},al=function*(e,t){let i=e.byteLength;if(i<t){yield e;return}let n=0,r;for(;n<i;)r=n+t,yield e.slice(n,r),n=r},sl=async function*(e,t){for await(const i of cl(e))yield*al(i,t)},cl=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:i,value:n}=await t.read();if(i)break;yield n}}finally{await t.cancel()}},Jr=(e,t,i,n)=>{const r=sl(e,t);let o=0,a,s=c=>{a||(a=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:p,value:l}=await r.next();if(p){s(),c.close();return}let u=l.byteLength;if(i){let f=o+=u;i(f)}c.enqueue(new Uint8Array(l))}catch(p){throw s(p),p}},cancel(c){return s(c),r.return()}},{highWaterMark:2})},cn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Xr=cn&&typeof ReadableStream=="function",ll=cn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Zr=(e,...t)=>{try{return!!e(...t)}catch{return!1}},pl=Xr&&Zr(()=>{let e=!1;const t=new Request(je.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Qr=64*1024,Kn=Xr&&Zr(()=>h.isReadableStream(new Response("").body)),ln={stream:Kn&&(e=>e.body)};cn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ln[t]&&(ln[t]=h.isFunction(e[t])?i=>i[t]():(i,n)=>{throw new Z(`Response type '${t}' is not supported`,Z.ERR_NOT_SUPPORT,n)})})})(new Response);const ul=async e=>{if(e==null)return 0;if(h.isBlob(e))return e.size;if(h.isSpecCompliantForm(e))return(await new Request(je.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(h.isArrayBufferView(e)||h.isArrayBuffer(e))return e.byteLength;if(h.isURLSearchParams(e)&&(e=e+""),h.isString(e))return(await ll(e)).byteLength},dl=async(e,t)=>{const i=h.toFiniteNumber(e.getContentLength());return i??ul(t)},Jn={http:Fc,xhr:rl,fetch:cn&&(async e=>{let{url:t,method:i,data:n,signal:r,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:p,headers:l,withCredentials:u="same-origin",fetchOptions:f}=Kr(e);p=p?(p+"").toLowerCase():"text";let m=ol([r,o&&o.toAbortSignal()],a),v;const g=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let E;try{if(c&&pl&&i!=="get"&&i!=="head"&&(E=await dl(l,n))!==0){let b=new Request(t,{method:"POST",body:n,duplex:"half"}),j;if(h.isFormData(n)&&(j=b.headers.get("content-type"))&&l.setContentType(j),b.body){const[q,F]=Vr(E,sn(Hr(c)));n=Jr(b.body,Qr,q,F)}}h.isString(u)||(u=u?"include":"omit");const x="credentials"in Request.prototype;v=new Request(t,{...f,signal:m,method:i.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:x?u:void 0});let O=await fetch(v);const _=Kn&&(p==="stream"||p==="response");if(Kn&&(s||_&&g)){const b={};["status","statusText","headers"].forEach(Y=>{b[Y]=O[Y]});const j=h.toFiniteNumber(O.headers.get("content-length")),[q,F]=s&&Vr(j,sn(Hr(s),!0))||[];O=new Response(Jr(O.body,Qr,q,()=>{F&&F(),g&&g()}),b)}p=p||"text";let k=await ln[h.findKey(ln,p)||"text"](O,e);return!_&&g&&g(),await new Promise((b,j)=>{Wr(b,j,{data:k,headers:Ie.from(O.headers),status:O.status,statusText:O.statusText,config:e,request:v})})}catch(x){throw g&&g(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new Z("Network Error",Z.ERR_NETWORK,e,v),{cause:x.cause||x}):Z.from(x,x&&x.code,e,v)}})};h.forEach(Jn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const eo=e=>`- ${e}`,fl=e=>h.isFunction(e)||e===null||e===!1,to={getAdapter:e=>{e=h.isArray(e)?e:[e];const{length:t}=e;let i,n;const r={};for(let o=0;o<t;o++){i=e[o];let a;if(n=i,!fl(i)&&(n=Jn[(a=String(i)).toLowerCase()],n===void 0))throw new Z(`Unknown adapter '${a}'`);if(n)break;r[a||"#"+o]=n}if(!n){const o=Object.entries(r).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
|
51
|
-
`+o.map(
|
52
|
-
`):" "+
|
53
|
-
`+o):n.stack=o}catch{}}throw n}}_request(t,i){typeof t=="string"?(i=i||{},i.url=t):i=t||{},i=st(this.defaults,i);const{transitional:n,paramsSerializer:r,headers:o}=i;n!==void 0&&un.assertOptions(n,{silentJSONParsing:
|
43
|
+
*/var Tn,$i;function Oa(){if($i)return Tn;$i=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function r(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(a).map(function(l){return a[l]});if(c.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(l){p[l]=l}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Tn=r()?Object.assign:function(o,a){for(var s,c=n(o),p,l=1;l<arguments.length;l++){s=Object(arguments[l]);for(var u in s)t.call(s,u)&&(c[u]=s[u]);if(e){p=e(s);for(var f=0;f<p.length;f++)i.call(s,p[f])&&(c[p[f]]=s[p[f]])}}return c},Tn}var kn,Ni;function On(){if(Ni)return kn;Ni=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return kn=e,kn}var Cn,qi;function Wi(){return qi||(qi=1,Cn=Function.call.bind(Object.prototype.hasOwnProperty)),Cn}var _n,Ui;function Ca(){if(Ui)return _n;Ui=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=On(),i={},n=Wi();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function r(o,a,s,c,p){if(process.env.NODE_ENV!=="production"){for(var l in o)if(n(o,l)){var u;try{if(typeof o[l]!="function"){var f=Error((c||"React class")+": "+s+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=o[l](a,l,c,s,null,t)}catch(v){u=v}if(u&&!(u instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in i)){i[u.message]=!0;var m=p?p():"";e("Failed "+s+" type: "+u.message+(m??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(i={})},_n=r,_n}var An,Vi;function _a(){if(Vi)return An;Vi=1;var e=Mi(),t=Oa(),i=On(),n=Wi(),r=Ca(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return An=function(s,c){var p=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function u(R){var C=R&&(p&&R[p]||R[l]);if(typeof C=="function")return C}var f="<<anonymous>>",m={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:O(),arrayOf:_,element:k(),elementType:b(),instanceOf:j,node:H(),objectOf:F,oneOf:q,oneOfType:Y,shape:he,exact:ne};function v(R,C){return R===C?R!==0||1/R===1/C:R!==R&&C!==C}function g(R,C){this.message=R,this.data=C&&typeof C=="object"?C:{},this.stack=""}g.prototype=Error.prototype;function E(R){if(process.env.NODE_ENV!=="production")var C={},B=0;function W(G,L,U,J,te,M,ye){if(J=J||f,M=M||U,ye!==i){if(c){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var P=J+":"+U;!C[P]&&B<3&&(o("You are manually calling a React.PropTypes validation function for the `"+M+"` prop on `"+J+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),C[P]=!0,B++)}}return L[U]==null?G?L[U]===null?new g("The "+te+" `"+M+"` is marked as required "+("in `"+J+"`, but its value is `null`.")):new g("The "+te+" `"+M+"` is marked as required in "+("`"+J+"`, but its value is `undefined`.")):null:R(L,U,J,te,M)}var z=W.bind(null,!1);return z.isRequired=W.bind(null,!0),z}function x(R){function C(B,W,z,G,L,U){var J=B[W],te=Re(J);if(te!==R){var M=Te(J);return new g("Invalid "+G+" `"+L+"` of type "+("`"+M+"` supplied to `"+z+"`, expected ")+("`"+R+"`."),{expectedType:R})}return null}return E(C)}function O(){return E(a)}function _(R){function C(B,W,z,G,L){if(typeof R!="function")return new g("Property `"+L+"` of component `"+z+"` has invalid PropType notation inside arrayOf.");var U=B[W];if(!Array.isArray(U)){var J=Re(U);return new g("Invalid "+G+" `"+L+"` of type "+("`"+J+"` supplied to `"+z+"`, expected an array."))}for(var te=0;te<U.length;te++){var M=R(U,te,z,G,L+"["+te+"]",i);if(M instanceof Error)return M}return null}return E(C)}function k(){function R(C,B,W,z,G){var L=C[B];if(!s(L)){var U=Re(L);return new g("Invalid "+z+" `"+G+"` of type "+("`"+U+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return E(R)}function b(){function R(C,B,W,z,G){var L=C[B];if(!e.isValidElementType(L)){var U=Re(L);return new g("Invalid "+z+" `"+G+"` of type "+("`"+U+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return E(R)}function j(R){function C(B,W,z,G,L){if(!(B[W]instanceof R)){var U=R.name||f,J=we(B[W]);return new g("Invalid "+G+" `"+L+"` of type "+("`"+J+"` supplied to `"+z+"`, expected ")+("instance of `"+U+"`."))}return null}return E(C)}function q(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function C(B,W,z,G,L){for(var U=B[W],J=0;J<R.length;J++)if(v(U,R[J]))return null;var te=JSON.stringify(R,function(ye,y){var P=Te(y);return P==="symbol"?String(y):y});return new g("Invalid "+G+" `"+L+"` of value `"+String(U)+"` "+("supplied to `"+z+"`, expected one of "+te+"."))}return E(C)}function F(R){function C(B,W,z,G,L){if(typeof R!="function")return new g("Property `"+L+"` of component `"+z+"` has invalid PropType notation inside objectOf.");var U=B[W],J=Re(U);if(J!=="object")return new g("Invalid "+G+" `"+L+"` of type "+("`"+J+"` supplied to `"+z+"`, expected an object."));for(var te in U)if(n(U,te)){var M=R(U,te,z,G,L+"."+te,i);if(M instanceof Error)return M}return null}return E(C)}function Y(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var C=0;C<R.length;C++){var B=R[C];if(typeof B!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ue(B)+" at index "+C+"."),a}function W(z,G,L,U,J){for(var te=[],M=0;M<R.length;M++){var ye=R[M],y=ye(z,G,L,U,J,i);if(y==null)return null;y.data&&n(y.data,"expectedType")&&te.push(y.data.expectedType)}var P=te.length>0?", expected one of type ["+te.join(", ")+"]":"";return new g("Invalid "+U+" `"+J+"` supplied to "+("`"+L+"`"+P+"."))}return E(W)}function H(){function R(C,B,W,z,G){return V(C[B])?null:new g("Invalid "+z+" `"+G+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return E(R)}function oe(R,C,B,W,z){return new g((R||"React class")+": "+C+" type `"+B+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+z+"`.")}function he(R){function C(B,W,z,G,L){var U=B[W],J=Re(U);if(J!=="object")return new g("Invalid "+G+" `"+L+"` of type `"+J+"` "+("supplied to `"+z+"`, expected `object`."));for(var te in R){var M=R[te];if(typeof M!="function")return oe(z,G,L,te,Te(M));var ye=M(U,te,z,G,L+"."+te,i);if(ye)return ye}return null}return E(C)}function ne(R){function C(B,W,z,G,L){var U=B[W],J=Re(U);if(J!=="object")return new g("Invalid "+G+" `"+L+"` of type `"+J+"` "+("supplied to `"+z+"`, expected `object`."));var te=t({},B[W],R);for(var M in te){var ye=R[M];if(n(R,M)&&typeof ye!="function")return oe(z,G,L,M,Te(ye));if(!ye)return new g("Invalid "+G+" `"+L+"` key `"+M+"` supplied to `"+z+"`.\nBad object: "+JSON.stringify(B[W],null," ")+`
|
44
|
+
Valid keys: `+JSON.stringify(Object.keys(R),null," "));var y=ye(U,M,z,G,L+"."+M,i);if(y)return y}return null}return E(C)}function V(R){switch(typeof R){case"number":case"string":case"undefined":return!0;case"boolean":return!R;case"object":if(Array.isArray(R))return R.every(V);if(R===null||s(R))return!0;var C=u(R);if(C){var B=C.call(R),W;if(C!==R.entries){for(;!(W=B.next()).done;)if(!V(W.value))return!1}else for(;!(W=B.next()).done;){var z=W.value;if(z&&!V(z[1]))return!1}}else return!1;return!0;default:return!1}}function pe(R,C){return R==="symbol"?!0:C?C["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&C instanceof Symbol:!1}function Re(R){var C=typeof R;return Array.isArray(R)?"array":R instanceof RegExp?"object":pe(C,R)?"symbol":C}function Te(R){if(typeof R>"u"||R===null)return""+R;var C=Re(R);if(C==="object"){if(R instanceof Date)return"date";if(R instanceof RegExp)return"regexp"}return C}function ue(R){var C=Te(R);switch(C){case"array":case"object":return"an "+C;case"boolean":case"date":case"regexp":return"a "+C;default:return C}}function we(R){return!R.constructor||!R.constructor.name?f:R.constructor.name}return m.checkPropTypes=r,m.resetWarningCache=r.resetWarningCache,m.PropTypes=m,m},An}var Dn,Hi;function Aa(){if(Hi)return Dn;Hi=1;var e=On();function t(){}function i(){}return i.resetWarningCache=t,Dn=function(){function n(a,s,c,p,l,u){if(u!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}n.isRequired=n;function r(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:r,element:n,elementType:n,instanceOf:r,node:n,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:t};return o.PropTypes=o,o},Dn}var Gi;function Da(){if(Gi)return Gt.exports;if(Gi=1,process.env.NODE_ENV!=="production"){var e=Mi(),t=!0;Gt.exports=_a()(e.isElement,t)}else Gt.exports=Aa()();return Gt.exports}var ja=Da();const ge=hi(ja);function rt(e,t,i,n){function r(o){return o instanceof i?o:new i(function(a){a(o)})}return new(i||(i=Promise))(function(o,a){function s(l){try{p(n.next(l))}catch(u){a(u)}}function c(l){try{p(n.throw(l))}catch(u){a(u)}}function p(l){l.done?o(l.value):r(l.value).then(s,c)}p((n=n.apply(e,t||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Fa=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function ht(e,t,i){const n=Pa(e),{webkitRelativePath:r}=e,o=typeof t=="string"?t:typeof r=="string"&&r.length>0?r:`./${e.name}`;return typeof n.path!="string"&&Yi(n,"path",o),Yi(n,"relativePath",o),n}function Pa(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const n=t.split(".").pop().toLowerCase(),r=Fa.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}function Yi(e,t,i){Object.defineProperty(e,t,{value:i,writable:!1,configurable:!1,enumerable:!0})}const Ia=[".DS_Store","Thumbs.db"];function Ba(e){return rt(this,void 0,void 0,function*(){return Kt(e)&&za(e.dataTransfer)?Na(e.dataTransfer,e.type):La(e)?Ma(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?$a(e):[]})}function za(e){return Kt(e)}function La(e){return Kt(e)&&Kt(e.target)}function Kt(e){return typeof e=="object"&&e!==null}function Ma(e){return jn(e.target.files).map(t=>ht(t))}function $a(e){return rt(this,void 0,void 0,function*(){return(yield Promise.all(e.map(i=>i.getFile()))).map(i=>ht(i))})}function Na(e,t){return rt(this,void 0,void 0,function*(){if(e.items){const i=jn(e.items).filter(r=>r.kind==="file");if(t!=="drop")return i;const n=yield Promise.all(i.map(qa));return Ki(Ji(n))}return Ki(jn(e.files).map(i=>ht(i)))})}function Ki(e){return e.filter(t=>Ia.indexOf(t.name)===-1)}function jn(e){if(e===null)return[];const t=[];for(let i=0;i<e.length;i++){const n=e[i];t.push(n)}return t}function qa(e){if(typeof e.webkitGetAsEntry!="function")return Xi(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?Zi(t):Xi(e,t)}function Ji(e){return e.reduce((t,i)=>[...t,...Array.isArray(i)?Ji(i):[i]],[])}function Xi(e,t){return rt(this,void 0,void 0,function*(){var i;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const o=yield e.getAsFileSystemHandle();if(o===null)throw new Error(`${e} is not a File`);if(o!==void 0){const a=yield o.getFile();return a.handle=o,ht(a)}}const n=e.getAsFile();if(!n)throw new Error(`${e} is not a File`);return ht(n,(i=t==null?void 0:t.fullPath)!==null&&i!==void 0?i:void 0)})}function Wa(e){return rt(this,void 0,void 0,function*(){return e.isDirectory?Zi(e):Ua(e)})}function Zi(e){const t=e.createReader();return new Promise((i,n)=>{const r=[];function o(){t.readEntries(a=>rt(this,void 0,void 0,function*(){if(a.length){const s=Promise.all(a.map(Wa));r.push(s),o()}else try{const s=yield Promise.all(r);i(s)}catch(s){n(s)}}),a=>{n(a)})}o()})}function Ua(e){return rt(this,void 0,void 0,function*(){return new Promise((t,i)=>{e.file(n=>{const r=ht(n,e.fullPath);t(r)},n=>{i(n)})})})}var Jt={},Qi;function Va(){return Qi||(Qi=1,Jt.__esModule=!0,Jt.default=function(e,t){if(e&&t){var i=Array.isArray(t)?t:t.split(",");if(i.length===0)return!0;var n=e.name||"",r=(e.type||"").toLowerCase(),o=r.replace(/\/.*$/,"");return i.some(function(a){var s=a.trim().toLowerCase();return s.charAt(0)==="."?n.toLowerCase().endsWith(s):s.endsWith("/*")?o===s.replace(/\/.*$/,""):r===s})}return!0}),Jt}var Ha=Va();const Fn=hi(Ha);function er(e){return Ka(e)||Ya(e)||rr(e)||Ga()}function Ga(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
45
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ya(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ka(e){if(Array.isArray(e))return Pn(e)}function tr(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),i.push.apply(i,n)}return i}function nr(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?tr(Object(i),!0).forEach(function(n){ir(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):tr(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}function ir(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function At(e,t){return Za(e)||Xa(e,t)||rr(e,t)||Ja()}function Ja(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
46
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rr(e,t){if(e){if(typeof e=="string")return Pn(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Pn(e,t)}}function Pn(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Xa(e,t){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var n=[],r=!0,o=!1,a,s;try{for(i=i.call(e);!(r=(a=i.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(c){o=!0,s=c}finally{try{!r&&i.return!=null&&i.return()}finally{if(o)throw s}}return n}}function Za(e){if(Array.isArray(e))return e}var Qa=typeof Fn=="function"?Fn:Fn.default,es="file-invalid-type",ts="file-too-large",ns="file-too-small",is="too-many-files",rs=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i=t.split(","),n=i.length>1?"one of ".concat(i.join(", ")):i[0];return{code:es,message:"File type must be ".concat(n)}},or=function(t){return{code:ts,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},ar=function(t){return{code:ns,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},os={code:is,message:"Too many files"};function sr(e,t){var i=e.type==="application/x-moz-file"||Qa(e,t);return[i,i?null:rs(t)]}function cr(e,t,i){if(ot(e.size))if(ot(t)&&ot(i)){if(e.size>i)return[!1,or(i)];if(e.size<t)return[!1,ar(t)]}else{if(ot(t)&&e.size<t)return[!1,ar(t)];if(ot(i)&&e.size>i)return[!1,or(i)]}return[!0,null]}function ot(e){return e!=null}function as(e){var t=e.files,i=e.accept,n=e.minSize,r=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(c){var p=sr(c,i),l=At(p,1),u=l[0],f=cr(c,n,r),m=At(f,1),v=m[0],g=s?s(c):null;return u&&v&&!g})}function Xt(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Zt(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function lr(e){e.preventDefault()}function ss(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function cs(e){return e.indexOf("Edge/")!==-1}function ls(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return ss(e)||cs(e)}function We(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return t.some(function(s){return!Xt(n)&&s&&s.apply(void 0,[n].concat(o)),Xt(n)})}}function ps(){return"showOpenFilePicker"in window}function us(e){if(ot(e)){var t=Object.entries(e).filter(function(i){var n=At(i,2),r=n[0],o=n[1],a=!0;return pr(r)||(console.warn('Skipped "'.concat(r,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(o)||!o.every(ur))&&(console.warn('Skipped "'.concat(r,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(i,n){var r=At(n,2),o=r[0],a=r[1];return nr(nr({},i),{},ir({},o,a))},{});return[{description:"Files",accept:t}]}return e}function ds(e){if(ot(e))return Object.entries(e).reduce(function(t,i){var n=At(i,2),r=n[0],o=n[1];return[].concat(er(t),[r],er(o))},[]).filter(function(t){return pr(t)||ur(t)}).join(",")}function fs(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function ms(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function pr(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function ur(e){return/^.*\.[\w]+$/.test(e)}var xs=["children"],vs=["open"],gs=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],hs=["refKey","onChange","onClick"];function ys(e){return Es(e)||ws(e)||dr(e)||bs()}function bs(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
47
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ws(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Es(e){if(Array.isArray(e))return Bn(e)}function In(e,t){return Ts(e)||Rs(e,t)||dr(e,t)||Ss()}function Ss(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
48
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dr(e,t){if(e){if(typeof e=="string")return Bn(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Bn(e,t)}}function Bn(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Rs(e,t){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var n=[],r=!0,o=!1,a,s;try{for(i=i.call(e);!(r=(a=i.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(c){o=!0,s=c}finally{try{!r&&i.return!=null&&i.return()}finally{if(o)throw s}}return n}}function Ts(e){if(Array.isArray(e))return e}function fr(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),i.push.apply(i,n)}return i}function Se(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?fr(Object(i),!0).forEach(function(n){zn(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):fr(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}function zn(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Qt(e,t){if(e==null)return{};var i=ks(e,t),n,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ks(e,t){if(e==null)return{};var i={},n=Object.keys(e),r,o;for(o=0;o<n.length;o++)r=n[o],!(t.indexOf(r)>=0)&&(i[r]=e[r]);return i}var Ln=w.forwardRef(function(e,t){var i=e.children,n=Qt(e,xs),r=xr(n),o=r.open,a=Qt(r,vs);return w.useImperativeHandle(t,function(){return{open:o}},[o]),w.createElement(w.Fragment,null,i(Se(Se({},a),{},{open:o})))});Ln.displayName="Dropzone";var mr={disabled:!1,getFilesFromEvent:Ba,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Ln.defaultProps=mr,Ln.propTypes={children:ge.func,accept:ge.objectOf(ge.arrayOf(ge.string)),multiple:ge.bool,preventDropOnDocument:ge.bool,noClick:ge.bool,noKeyboard:ge.bool,noDrag:ge.bool,noDragEventsBubbling:ge.bool,minSize:ge.number,maxSize:ge.number,maxFiles:ge.number,disabled:ge.bool,getFilesFromEvent:ge.func,onFileDialogCancel:ge.func,onFileDialogOpen:ge.func,useFsAccessApi:ge.bool,autoFocus:ge.bool,onDragEnter:ge.func,onDragLeave:ge.func,onDragOver:ge.func,onDrop:ge.func,onDropAccepted:ge.func,onDropRejected:ge.func,onError:ge.func,validator:ge.func};var Mn={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function xr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Se(Se({},mr),e),i=t.accept,n=t.disabled,r=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,c=t.maxFiles,p=t.onDragEnter,l=t.onDragLeave,u=t.onDragOver,f=t.onDrop,m=t.onDropAccepted,v=t.onDropRejected,g=t.onFileDialogCancel,E=t.onFileDialogOpen,x=t.useFsAccessApi,O=t.autoFocus,_=t.preventDropOnDocument,k=t.noClick,b=t.noKeyboard,j=t.noDrag,q=t.noDragEventsBubbling,F=t.onError,Y=t.validator,H=w.useMemo(function(){return ds(i)},[i]),oe=w.useMemo(function(){return us(i)},[i]),he=w.useMemo(function(){return typeof E=="function"?E:vr},[E]),ne=w.useMemo(function(){return typeof g=="function"?g:vr},[g]),V=w.useRef(null),pe=w.useRef(null),Re=w.useReducer(Os,Mn),Te=In(Re,2),ue=Te[0],we=Te[1],R=ue.isFocused,C=ue.isFileDialogActive,B=w.useRef(typeof window<"u"&&window.isSecureContext&&x&&ps()),W=function(){!B.current&&C&&setTimeout(function(){if(pe.current){var A=pe.current.files;A.length||(we({type:"closeDialog"}),ne())}},300)};w.useEffect(function(){return window.addEventListener("focus",W,!1),function(){window.removeEventListener("focus",W,!1)}},[pe,C,ne,B]);var z=w.useRef([]),G=function(A){V.current&&V.current.contains(A.target)||(A.preventDefault(),z.current=[])};w.useEffect(function(){return _&&(document.addEventListener("dragover",lr,!1),document.addEventListener("drop",G,!1)),function(){_&&(document.removeEventListener("dragover",lr),document.removeEventListener("drop",G))}},[V,_]),w.useEffect(function(){return!n&&O&&V.current&&V.current.focus(),function(){}},[V,O,n]);var L=w.useCallback(function(S){F?F(S):console.error(S)},[F]),U=w.useCallback(function(S){S.preventDefault(),S.persist(),Ee(S),z.current=[].concat(ys(z.current),[S.target]),Zt(S)&&Promise.resolve(r(S)).then(function(A){if(!(Xt(S)&&!q)){var ae=A.length,xe=ae>0&&as({files:A,accept:H,minSize:a,maxSize:o,multiple:s,maxFiles:c,validator:Y}),Oe=ae>0&&!xe;we({isDragAccept:xe,isDragReject:Oe,isDragActive:!0,type:"setDraggedFiles"}),p&&p(S)}}).catch(function(A){return L(A)})},[r,p,L,q,H,a,o,s,c,Y]),J=w.useCallback(function(S){S.preventDefault(),S.persist(),Ee(S);var A=Zt(S);if(A&&S.dataTransfer)try{S.dataTransfer.dropEffect="copy"}catch{}return A&&u&&u(S),!1},[u,q]),te=w.useCallback(function(S){S.preventDefault(),S.persist(),Ee(S);var A=z.current.filter(function(xe){return V.current&&V.current.contains(xe)}),ae=A.indexOf(S.target);ae!==-1&&A.splice(ae,1),z.current=A,!(A.length>0)&&(we({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Zt(S)&&l&&l(S))},[V,l,q]),M=w.useCallback(function(S,A){var ae=[],xe=[];S.forEach(function(Oe){var et=sr(Oe,H),Je=In(et,2),dt=Je[0],Lt=Je[1],Mt=cr(Oe,a,o),Et=In(Mt,2),$t=Et[0],Nt=Et[1],qt=Y?Y(Oe):null;if(dt&&$t&&!qt)ae.push(Oe);else{var Wt=[Lt,Nt];qt&&(Wt=Wt.concat(qt)),xe.push({file:Oe,errors:Wt.filter(function(Ut){return Ut})})}}),(!s&&ae.length>1||s&&c>=1&&ae.length>c)&&(ae.forEach(function(Oe){xe.push({file:Oe,errors:[os]})}),ae.splice(0)),we({acceptedFiles:ae,fileRejections:xe,isDragReject:xe.length>0,type:"setFiles"}),f&&f(ae,xe,A),xe.length>0&&v&&v(xe,A),ae.length>0&&m&&m(ae,A)},[we,s,H,a,o,c,f,m,v,Y]),ye=w.useCallback(function(S){S.preventDefault(),S.persist(),Ee(S),z.current=[],Zt(S)&&Promise.resolve(r(S)).then(function(A){Xt(S)&&!q||M(A,S)}).catch(function(A){return L(A)}),we({type:"reset"})},[r,M,L,q]),y=w.useCallback(function(){if(B.current){we({type:"openDialog"}),he();var S={multiple:s,types:oe};window.showOpenFilePicker(S).then(function(A){return r(A)}).then(function(A){M(A,null),we({type:"closeDialog"})}).catch(function(A){fs(A)?(ne(A),we({type:"closeDialog"})):ms(A)?(B.current=!1,pe.current?(pe.current.value=null,pe.current.click()):L(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):L(A)});return}pe.current&&(we({type:"openDialog"}),he(),pe.current.value=null,pe.current.click())},[we,he,ne,x,M,L,oe,s]),P=w.useCallback(function(S){!V.current||!V.current.isEqualNode(S.target)||(S.key===" "||S.key==="Enter"||S.keyCode===32||S.keyCode===13)&&(S.preventDefault(),y())},[V,y]),X=w.useCallback(function(){we({type:"focus"})},[]),$=w.useCallback(function(){we({type:"blur"})},[]),de=w.useCallback(function(){k||(ls()?setTimeout(y,0):y())},[k,y]),ke=function(A){return n?null:A},Q=function(A){return b?null:ke(A)},ee=function(A){return j?null:ke(A)},Ee=function(A){q&&A.stopPropagation()},Ye=w.useMemo(function(){return function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=S.refKey,ae=A===void 0?"ref":A,xe=S.role,Oe=S.onKeyDown,et=S.onFocus,Je=S.onBlur,dt=S.onClick,Lt=S.onDragEnter,Mt=S.onDragOver,Et=S.onDragLeave,$t=S.onDrop,Nt=Qt(S,gs);return Se(Se(zn({onKeyDown:Q(We(Oe,P)),onFocus:Q(We(et,X)),onBlur:Q(We(Je,$)),onClick:ke(We(dt,de)),onDragEnter:ee(We(Lt,U)),onDragOver:ee(We(Mt,J)),onDragLeave:ee(We(Et,te)),onDrop:ee(We($t,ye)),role:typeof xe=="string"&&xe!==""?xe:"presentation"},ae,V),!n&&!b?{tabIndex:0}:{}),Nt)}},[V,P,X,$,de,U,J,te,ye,b,j,n]),qe=w.useCallback(function(S){S.stopPropagation()},[]),Ke=w.useMemo(function(){return function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=S.refKey,ae=A===void 0?"ref":A,xe=S.onChange,Oe=S.onClick,et=Qt(S,hs),Je=zn({accept:H,multiple:s,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ke(We(xe,ye)),onClick:ke(We(Oe,qe)),tabIndex:-1},ae,pe);return Se(Se({},Je),et)}},[pe,i,s,ye,n]);return Se(Se({},ue),{},{isFocused:R&&!n,getRootProps:Ye,getInputProps:Ke,rootRef:V,inputRef:pe,open:ke(y)})}function Os(e,t){switch(t.type){case"focus":return Se(Se({},e),{},{isFocused:!0});case"blur":return Se(Se({},e),{},{isFocused:!1});case"openDialog":return Se(Se({},Mn),{},{isFileDialogActive:!0});case"closeDialog":return Se(Se({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Se(Se({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Se(Se({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return Se({},Mn);default:return e}}function vr(){}const Cs={WAV_MIME_TYPES:["audio/wav","audio/x-wav","audio/wave","audio/x-pn-wav"],MP3_MIME_TYPES:["audio/mpeg","audio/mp3","audio/x-mpeg","audio/x-mp3","audio/x-mpeg-3"],FLAC_MIME_TYPES:["audio/flac"]},_s=10*1e3,gr="[Audio.getDurationSeconds]",As=async(e,{throwError:t}={})=>new Promise((i,n)=>{if(typeof window>"u")return n(new Error("getDurationSeconds is only usable in the browser"));const r=URL.createObjectURL(e),o=new Audio,a=()=>{o.src="",URL.revokeObjectURL(r)},s=setTimeout(()=>{a(),console.error(gr,"Timeout",e.name,e.size,e.type),i(0)},_s);o.addEventListener("loadedmetadata",()=>{const c=o.duration;clearTimeout(s),a(),i(c)},{once:!0}),o.addEventListener("error",c=>{clearTimeout(s),a(),t?(console.error(gr,"Error",e.name,e.size,e.type,c),n(e)):i(0)},{once:!0}),o.src=r}),Ds=e=>{const t=new Map;return e.forEach(i=>{t.set(`${i.name}-${i.size}`,i)}),Array.from(t.values())},js=e=>new Promise(t=>{const i=new FileReader;i.onloadend=n=>{var a;const r=new Uint8Array((a=n.target)==null?void 0:a.result),o=Ra.filetypemime(r);t(o)},i.readAsArrayBuffer(e)}),Fs=async e=>{try{const t=await As(e),i=e;return i.duration=t,i}catch{throw new Error(`Failed to get audio duration for ${e.name}`)}},Ps=e=>{for(const[t,i]of Object.entries(Cs)){const n=t.toLowerCase().split("_")[0];if(i.includes(e))return n}},Is=async e=>{var s;const t=await js(e),i=((s=e==null?void 0:e.name)==null?void 0:s.split(".").pop())||"",n=t[0]||e.type,r=Ps(n);if(r===i||!n||!r)return e;const o=`${e.name.split(".").slice(0,-1).join(".")}.${r}`;return new File([e],o,{type:n})};class Bs extends Error{constructor(){super("Max file size exceeded")}}class zs extends Error{constructor(){super("Min file size exceeded")}}class hr extends Error{constructor(){super("File duration too long")}}class Ls extends Error{constructor(){super("Invalid file type")}}const Ms=e=>({handleDurationError:t=>{var i;console.log("handleDurationError",t),(i=e.onError)==null||i.call(e,new hr)},handleMaxSizeError:t=>{var i;console.log("handleMaxSizeError",t),(i=e.onError)==null||i.call(e,new Bs)},handleMinSizeError:t=>{var i;console.log("handleMinSizeError",t),(i=e.onError)==null||i.call(e,new zs)},handleUnknownError:t=>{var i;console.log("handleUnknownError",t),(i=e.onError)==null||i.call(e,new Error("Unknown error"))},handleInvalidTypeError:t=>{var i;console.log("handleInvalidTypeError",t),(i=e.onError)==null||i.call(e,new Ls)}}),$s=e=>{const{handleDurationError:t,handleMaxSizeError:i,handleMinSizeError:n,handleUnknownError:r,handleInvalidTypeError:o}=Ms(e),[a,s]=w.useState(null);return{dropzone:xr({accept:{"audio/wav":[".wav"],"audio/mp3":[".mp3"],"audio/flac":[".flac"]},noClick:!0,minSize:e.minSizeBytes,maxSize:e.maxSizeBytes,onDropAccepted:async p=>{const l=await Promise.all(p.map(u=>Is(u)));try{const f=(await Promise.all(l.map(Fs))).filter(E=>E.duration<=(e.maxDurationS??1/0)?!0:(s(new hr),t(E),!1)),m=e.files??[],v=Ds([...m,...f]),g=v.slice(0,e.maxFileCount??v.length);e.onFileAccepted(g)}catch(u){r(u)}},onDropRejected:p=>{p.forEach(l=>{for(const u of l.errors)u.code==="file-too-large"&&i(l.file),u.code==="file-too-small"&&n(l.file),u.code==="file-invalid-type"&&o(l.file)})}}),error:a,...e}},yr=w.createContext({}),Ns=()=>w.useContext(yr),qs=$e(gt,{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",gap:"8px",height:"100%"}),br=({children:e,...t})=>{const i=$s(t),{files:n,onFileAccepted:r,onDelete:o,maxFileCount:a,maxSizeBytes:s,minSizeBytes:c,maxDurationS:p,onError:l,...u}=t;return ve.jsx(yr.Provider,{value:i,children:ve.jsxs(qs,{...u,...i.dropzone.getRootProps(),children:[ve.jsx("input",{...i.dropzone.getInputProps()}),e]})})},Ws=$e(gt,{width:"100%",height:"100%",display:"flex",overflow:"hidden",borderRadius:"16px",background:"#ffffff10",flexDirection:"column",alignItems:"stretch",maxHeight:"500px",justifyContent:"center"}),Us=$e(gt,{paddingTop:"32px",display:"flex",justifyContent:"center"}),Vs=$e(gt,{flex:1,gap:"16px",display:"flex",alignItems:"center",justifyContent:"center",padding:"16px"}),Hs=$e(gt,{borderTop:"1px solid #ffffff10",display:"flex",alignItems:"stretch",height:"96px"}),Gs=$e(gt,{height:"252px",width:"222px",borderRadius:"8px",border:"1px solid #ffffff10",background:"#ffffff10",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"}),Ys={Root:Ws,Header:Us,Content:Vs,Footer:Hs,Card:Gs};function wr(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ks}=Object.prototype,{getPrototypeOf:$n}=Object,en=(e=>t=>{const i=Ks.call(t);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Ne=e=>(e=e.toLowerCase(),t=>en(t)===e),tn=e=>t=>typeof t===e,{isArray:yt}=Array,Dt=tn("undefined");function Js(e){return e!==null&&!Dt(e)&&e.constructor!==null&&!Dt(e.constructor)&&Be(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Er=Ne("ArrayBuffer");function Xs(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Er(e.buffer),t}const Zs=tn("string"),Be=tn("function"),Sr=tn("number"),nn=e=>e!==null&&typeof e=="object",Qs=e=>e===!0||e===!1,rn=e=>{if(en(e)!=="object")return!1;const t=$n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ec=Ne("Date"),tc=Ne("File"),nc=Ne("Blob"),ic=Ne("FileList"),rc=e=>nn(e)&&Be(e.pipe),oc=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Be(e.append)&&((t=en(e))==="formdata"||t==="object"&&Be(e.toString)&&e.toString()==="[object FormData]"))},ac=Ne("URLSearchParams"),[sc,cc,lc,pc]=["ReadableStream","Request","Response","Headers"].map(Ne),uc=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jt(e,t,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let n,r;if(typeof e!="object"&&(e=[e]),yt(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const o=i?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(n=0;n<a;n++)s=o[n],t.call(null,e[s],s,e)}}function Rr(e,t){t=t.toLowerCase();const i=Object.keys(e);let n=i.length,r;for(;n-- >0;)if(r=i[n],t===r.toLowerCase())return r;return null}const at=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Tr=e=>!Dt(e)&&e!==at;function Nn(){const{caseless:e}=Tr(this)&&this||{},t={},i=(n,r)=>{const o=e&&Rr(t,r)||r;rn(t[o])&&rn(n)?t[o]=Nn(t[o],n):rn(n)?t[o]=Nn({},n):yt(n)?t[o]=n.slice():t[o]=n};for(let n=0,r=arguments.length;n<r;n++)arguments[n]&&jt(arguments[n],i);return t}const dc=(e,t,i,{allOwnKeys:n}={})=>(jt(t,(r,o)=>{i&&Be(r)?e[o]=wr(r,i):e[o]=r},{allOwnKeys:n}),e),fc=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mc=(e,t,i,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},xc=(e,t,i,n)=>{let r,o,a;const s={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)a=r[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=i!==!1&&$n(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},vc=(e,t,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=t.length;const n=e.indexOf(t,i);return n!==-1&&n===i},gc=e=>{if(!e)return null;if(yt(e))return e;let t=e.length;if(!Sr(t))return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},hc=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&$n(Uint8Array)),yc=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},bc=(e,t)=>{let i;const n=[];for(;(i=e.exec(t))!==null;)n.push(i);return n},wc=Ne("HTMLFormElement"),Ec=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,n,r){return n.toUpperCase()+r}),kr=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),Sc=Ne("RegExp"),Or=(e,t)=>{const i=Object.getOwnPropertyDescriptors(e),n={};jt(i,(r,o)=>{let a;(a=t(r,o,e))!==!1&&(n[o]=a||r)}),Object.defineProperties(e,n)},Rc=e=>{Or(e,(t,i)=>{if(Be(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const n=e[i];if(Be(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},Tc=(e,t)=>{const i={},n=r=>{r.forEach(o=>{i[o]=!0})};return yt(e)?n(e):n(String(e).split(t)),i},kc=()=>{},Oc=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,qn="abcdefghijklmnopqrstuvwxyz",Cr="0123456789",_r={DIGIT:Cr,ALPHA:qn,ALPHA_DIGIT:qn+qn.toUpperCase()+Cr},Cc=(e=16,t=_r.ALPHA_DIGIT)=>{let i="";const{length:n}=t;for(;e--;)i+=t[Math.random()*n|0];return i};function _c(e){return!!(e&&Be(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ac=e=>{const t=new Array(10),i=(n,r)=>{if(nn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[r]=n;const o=yt(n)?[]:{};return jt(n,(a,s)=>{const c=i(a,r+1);!Dt(c)&&(o[s]=c)}),t[r]=void 0,o}}return n};return i(e,0)},Dc=Ne("AsyncFunction"),jc=e=>e&&(nn(e)||Be(e))&&Be(e.then)&&Be(e.catch),Ar=((e,t)=>e?setImmediate:t?((i,n)=>(at.addEventListener("message",({source:r,data:o})=>{r===at&&o===i&&n.length&&n.shift()()},!1),r=>{n.push(r),at.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Be(at.postMessage)),Fc=typeof queueMicrotask<"u"?queueMicrotask.bind(at):typeof process<"u"&&process.nextTick||Ar,h={isArray:yt,isArrayBuffer:Er,isBuffer:Js,isFormData:oc,isArrayBufferView:Xs,isString:Zs,isNumber:Sr,isBoolean:Qs,isObject:nn,isPlainObject:rn,isReadableStream:sc,isRequest:cc,isResponse:lc,isHeaders:pc,isUndefined:Dt,isDate:ec,isFile:tc,isBlob:nc,isRegExp:Sc,isFunction:Be,isStream:rc,isURLSearchParams:ac,isTypedArray:hc,isFileList:ic,forEach:jt,merge:Nn,extend:dc,trim:uc,stripBOM:fc,inherits:mc,toFlatObject:xc,kindOf:en,kindOfTest:Ne,endsWith:vc,toArray:gc,forEachEntry:yc,matchAll:bc,isHTMLForm:wc,hasOwnProperty:kr,hasOwnProp:kr,reduceDescriptors:Or,freezeMethods:Rc,toObjectSet:Tc,toCamelCase:Ec,noop:kc,toFiniteNumber:Oc,findKey:Rr,global:at,isContextDefined:Tr,ALPHABET:_r,generateString:Cc,isSpecCompliantForm:_c,toJSONObject:Ac,isAsyncFn:Dc,isThenable:jc,setImmediate:Ar,asap:Fc};function Z(e,t,i,n,r){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),i&&(this.config=i),n&&(this.request=n),r&&(this.response=r,this.status=r.status?r.status:null)}h.inherits(Z,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:h.toJSONObject(this.config),code:this.code,status:this.status}}});const Dr=Z.prototype,jr={};["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=>{jr[e]={value:e}}),Object.defineProperties(Z,jr),Object.defineProperty(Dr,"isAxiosError",{value:!0}),Z.from=(e,t,i,n,r,o)=>{const a=Object.create(Dr);return h.toFlatObject(e,a,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),Z.call(a,e.message,t,i,n,r),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Pc=null;function Wn(e){return h.isPlainObject(e)||h.isArray(e)}function Fr(e){return h.endsWith(e,"[]")?e.slice(0,-2):e}function Pr(e,t,i){return e?e.concat(t).map(function(r,o){return r=Fr(r),!i&&o?"["+r+"]":r}).join(i?".":""):t}function Ic(e){return h.isArray(e)&&!e.some(Wn)}const Bc=h.toFlatObject(h,{},null,function(t){return/^is[A-Z]/.test(t)});function on(e,t,i){if(!h.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,i=h.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,E){return!h.isUndefined(E[g])});const n=i.metaTokens,r=i.visitor||l,o=i.dots,a=i.indexes,c=(i.Blob||typeof Blob<"u"&&Blob)&&h.isSpecCompliantForm(t);if(!h.isFunction(r))throw new TypeError("visitor must be a function");function p(v){if(v===null)return"";if(h.isDate(v))return v.toISOString();if(!c&&h.isBlob(v))throw new Z("Blob is not supported. Use a Buffer instead.");return h.isArrayBuffer(v)||h.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function l(v,g,E){let x=v;if(v&&!E&&typeof v=="object"){if(h.endsWith(g,"{}"))g=n?g:g.slice(0,-2),v=JSON.stringify(v);else if(h.isArray(v)&&Ic(v)||(h.isFileList(v)||h.endsWith(g,"[]"))&&(x=h.toArray(v)))return g=Fr(g),x.forEach(function(_,k){!(h.isUndefined(_)||_===null)&&t.append(a===!0?Pr([g],k,o):a===null?g:g+"[]",p(_))}),!1}return Wn(v)?!0:(t.append(Pr(E,g,o),p(v)),!1)}const u=[],f=Object.assign(Bc,{defaultVisitor:l,convertValue:p,isVisitable:Wn});function m(v,g){if(!h.isUndefined(v)){if(u.indexOf(v)!==-1)throw Error("Circular reference detected in "+g.join("."));u.push(v),h.forEach(v,function(x,O){(!(h.isUndefined(x)||x===null)&&r.call(t,x,h.isString(O)?O.trim():O,g,f))===!0&&m(x,g?g.concat(O):[O])}),u.pop()}}if(!h.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Ir(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Un(e,t){this._pairs=[],e&&on(e,this,t)}const Br=Un.prototype;Br.append=function(t,i){this._pairs.push([t,i])},Br.toString=function(t){const i=t?function(n){return t.call(this,n,Ir)}:Ir;return this._pairs.map(function(r){return i(r[0])+"="+i(r[1])},"").join("&")};function zc(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zr(e,t,i){if(!t)return e;const n=i&&i.encode||zc;h.isFunction(i)&&(i={serialize:i});const r=i&&i.serialize;let o;if(r?o=r(t,i):o=h.isURLSearchParams(t)?t.toString():new Un(t,i).toString(n),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Lr{constructor(){this.handlers=[]}use(t,i,n){return this.handlers.push({fulfilled:t,rejected:i,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){h.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Mr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Lc={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Un,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Vn=typeof window<"u"&&typeof document<"u",Hn=typeof navigator=="object"&&navigator||void 0,Mc=Vn&&(!Hn||["ReactNative","NativeScript","NS"].indexOf(Hn.product)<0),$c=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nc=Vn&&window.location.href||"http://localhost",je={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Vn,hasStandardBrowserEnv:Mc,hasStandardBrowserWebWorkerEnv:$c,navigator:Hn,origin:Nc},Symbol.toStringTag,{value:"Module"})),...Lc};function qc(e,t){return on(e,new je.classes.URLSearchParams,Object.assign({visitor:function(i,n,r,o){return je.isNode&&h.isBuffer(i)?(this.append(n,i.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Wc(e){return h.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Uc(e){const t={},i=Object.keys(e);let n;const r=i.length;let o;for(n=0;n<r;n++)o=i[n],t[o]=e[o];return t}function $r(e){function t(i,n,r,o){let a=i[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),c=o>=i.length;return a=!a&&h.isArray(r)?r.length:a,c?(h.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!s):((!r[a]||!h.isObject(r[a]))&&(r[a]=[]),t(i,n,r[a],o)&&h.isArray(r[a])&&(r[a]=Uc(r[a])),!s)}if(h.isFormData(e)&&h.isFunction(e.entries)){const i={};return h.forEachEntry(e,(n,r)=>{t(Wc(n),r,i,0)}),i}return null}function Vc(e,t,i){if(h.isString(e))try{return(t||JSON.parse)(e),h.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const Ft={transitional:Mr,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){const n=i.getContentType()||"",r=n.indexOf("application/json")>-1,o=h.isObject(t);if(o&&h.isHTMLForm(t)&&(t=new FormData(t)),h.isFormData(t))return r?JSON.stringify($r(t)):t;if(h.isArrayBuffer(t)||h.isBuffer(t)||h.isStream(t)||h.isFile(t)||h.isBlob(t)||h.isReadableStream(t))return t;if(h.isArrayBufferView(t))return t.buffer;if(h.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return qc(t,this.formSerializer).toString();if((s=h.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return on(s?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||r?(i.setContentType("application/json",!1),Vc(t)):t}],transformResponse:[function(t){const i=this.transitional||Ft.transitional,n=i&&i.forcedJSONParsing,r=this.responseType==="json";if(h.isResponse(t)||h.isReadableStream(t))return t;if(t&&h.isString(t)&&(n&&!this.responseType||r)){const a=!(i&&i.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Z.from(s,Z.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:je.classes.FormData,Blob:je.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};h.forEach(["delete","get","head","post","put","patch"],e=>{Ft.headers[e]={}});const Hc=h.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"]),Gc=e=>{const t={};let i,n,r;return e&&e.split(`
|
49
|
+
`).forEach(function(a){r=a.indexOf(":"),i=a.substring(0,r).trim().toLowerCase(),n=a.substring(r+1).trim(),!(!i||t[i]&&Hc[i])&&(i==="set-cookie"?t[i]?t[i].push(n):t[i]=[n]:t[i]=t[i]?t[i]+", "+n:n)}),t},Nr=Symbol("internals");function Pt(e){return e&&String(e).trim().toLowerCase()}function an(e){return e===!1||e==null?e:h.isArray(e)?e.map(an):String(e)}function Yc(e){const t=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=i.exec(e);)t[n[1]]=n[2];return t}const Kc=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Gn(e,t,i,n,r){if(h.isFunction(n))return n.call(this,t,i);if(r&&(t=i),!!h.isString(t)){if(h.isString(n))return t.indexOf(n)!==-1;if(h.isRegExp(n))return n.test(t)}}function Jc(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,i,n)=>i.toUpperCase()+n)}function Xc(e,t){const i=h.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+i,{value:function(r,o,a){return this[n].call(this,t,r,o,a)},configurable:!0})})}class Ie{constructor(t){t&&this.set(t)}set(t,i,n){const r=this;function o(s,c,p){const l=Pt(c);if(!l)throw new Error("header name must be a non-empty string");const u=h.findKey(r,l);(!u||r[u]===void 0||p===!0||p===void 0&&r[u]!==!1)&&(r[u||c]=an(s))}const a=(s,c)=>h.forEach(s,(p,l)=>o(p,l,c));if(h.isPlainObject(t)||t instanceof this.constructor)a(t,i);else if(h.isString(t)&&(t=t.trim())&&!Kc(t))a(Gc(t),i);else if(h.isHeaders(t))for(const[s,c]of t.entries())o(c,s,n);else t!=null&&o(i,t,n);return this}get(t,i){if(t=Pt(t),t){const n=h.findKey(this,t);if(n){const r=this[n];if(!i)return r;if(i===!0)return Yc(r);if(h.isFunction(i))return i.call(this,r,n);if(h.isRegExp(i))return i.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,i){if(t=Pt(t),t){const n=h.findKey(this,t);return!!(n&&this[n]!==void 0&&(!i||Gn(this,this[n],n,i)))}return!1}delete(t,i){const n=this;let r=!1;function o(a){if(a=Pt(a),a){const s=h.findKey(n,a);s&&(!i||Gn(n,n[s],s,i))&&(delete n[s],r=!0)}}return h.isArray(t)?t.forEach(o):o(t),r}clear(t){const i=Object.keys(this);let n=i.length,r=!1;for(;n--;){const o=i[n];(!t||Gn(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){const i=this,n={};return h.forEach(this,(r,o)=>{const a=h.findKey(n,o);if(a){i[a]=an(r),delete i[o];return}const s=t?Jc(o):String(o).trim();s!==o&&delete i[o],i[s]=an(r),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const i=Object.create(null);return h.forEach(this,(n,r)=>{n!=null&&n!==!1&&(i[r]=t&&h.isArray(n)?n.join(", "):n)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,i])=>t+": "+i).join(`
|
50
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...i){const n=new this(t);return i.forEach(r=>n.set(r)),n}static accessor(t){const n=(this[Nr]=this[Nr]={accessors:{}}).accessors,r=this.prototype;function o(a){const s=Pt(a);n[s]||(Xc(r,a),n[s]=!0)}return h.isArray(t)?t.forEach(o):o(t),this}}Ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),h.reduceDescriptors(Ie.prototype,({value:e},t)=>{let i=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[i]=n}}}),h.freezeMethods(Ie);function Yn(e,t){const i=this||Ft,n=t||i,r=Ie.from(n.headers);let o=n.data;return h.forEach(e,function(s){o=s.call(i,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function qr(e){return!!(e&&e.__CANCEL__)}function bt(e,t,i){Z.call(this,e??"canceled",Z.ERR_CANCELED,t,i),this.name="CanceledError"}h.inherits(bt,Z,{__CANCEL__:!0});function Wr(e,t,i){const n=i.config.validateStatus;!i.status||!n||n(i.status)?e(i):t(new Z("Request failed with status code "+i.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function Zc(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Qc(e,t){e=e||10;const i=new Array(e),n=new Array(e);let r=0,o=0,a;return t=t!==void 0?t:1e3,function(c){const p=Date.now(),l=n[o];a||(a=p),i[r]=c,n[r]=p;let u=o,f=0;for(;u!==r;)f+=i[u++],u=u%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),p-a<t)return;const m=l&&p-l;return m?Math.round(f*1e3/m):void 0}}function el(e,t){let i=0,n=1e3/t,r,o;const a=(p,l=Date.now())=>{i=l,r=null,o&&(clearTimeout(o),o=null),e.apply(null,p)};return[(...p)=>{const l=Date.now(),u=l-i;u>=n?a(p,l):(r=p,o||(o=setTimeout(()=>{o=null,a(r)},n-u)))},()=>r&&a(r)]}const sn=(e,t,i=3)=>{let n=0;const r=Qc(50,250);return el(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,c=a-n,p=r(c),l=a<=s;n=a;const u={loaded:a,total:s,progress:s?a/s:void 0,bytes:c,rate:p||void 0,estimated:p&&s&&l?(s-a)/p:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(u)},i)},Ur=(e,t)=>{const i=e!=null;return[n=>t[0]({lengthComputable:i,total:e,loaded:n}),t[1]]},Vr=e=>(...t)=>h.asap(()=>e(...t)),tl=je.hasStandardBrowserEnv?((e,t)=>i=>(i=new URL(i,je.origin),e.protocol===i.protocol&&e.host===i.host&&(t||e.port===i.port)))(new URL(je.origin),je.navigator&&/(msie|trident)/i.test(je.navigator.userAgent)):()=>!0,nl=je.hasStandardBrowserEnv?{write(e,t,i,n,r,o){const a=[e+"="+encodeURIComponent(t)];h.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),h.isString(n)&&a.push("path="+n),h.isString(r)&&a.push("domain="+r),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 il(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function rl(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Hr(e,t){return e&&!il(t)?rl(e,t):t}const Gr=e=>e instanceof Ie?{...e}:e;function st(e,t){t=t||{};const i={};function n(p,l,u,f){return h.isPlainObject(p)&&h.isPlainObject(l)?h.merge.call({caseless:f},p,l):h.isPlainObject(l)?h.merge({},l):h.isArray(l)?l.slice():l}function r(p,l,u,f){if(h.isUndefined(l)){if(!h.isUndefined(p))return n(void 0,p,u,f)}else return n(p,l,u,f)}function o(p,l){if(!h.isUndefined(l))return n(void 0,l)}function a(p,l){if(h.isUndefined(l)){if(!h.isUndefined(p))return n(void 0,p)}else return n(void 0,l)}function s(p,l,u){if(u in t)return n(p,l);if(u in e)return n(void 0,p)}const c={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:(p,l,u)=>r(Gr(p),Gr(l),u,!0)};return h.forEach(Object.keys(Object.assign({},e,t)),function(l){const u=c[l]||r,f=u(e[l],t[l],l);h.isUndefined(f)&&u!==s||(i[l]=f)}),i}const Yr=e=>{const t=st({},e);let{data:i,withXSRFToken:n,xsrfHeaderName:r,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=Ie.from(a),t.url=zr(Hr(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let c;if(h.isFormData(i)){if(je.hasStandardBrowserEnv||je.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[p,...l]=c?c.split(";").map(u=>u.trim()).filter(Boolean):[];a.setContentType([p||"multipart/form-data",...l].join("; "))}}if(je.hasStandardBrowserEnv&&(n&&h.isFunction(n)&&(n=n(t)),n||n!==!1&&tl(t.url))){const p=r&&o&&nl.read(o);p&&a.set(r,p)}return t},ol=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(i,n){const r=Yr(e);let o=r.data;const a=Ie.from(r.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:p}=r,l,u,f,m,v;function g(){m&&m(),v&&v(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener("abort",l)}let E=new XMLHttpRequest;E.open(r.method.toUpperCase(),r.url,!0),E.timeout=r.timeout;function x(){if(!E)return;const _=Ie.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),b={data:!s||s==="text"||s==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:_,config:e,request:E};Wr(function(q){i(q),g()},function(q){n(q),g()},b),E=null}"onloadend"in E?E.onloadend=x:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(x)},E.onabort=function(){E&&(n(new Z("Request aborted",Z.ECONNABORTED,e,E)),E=null)},E.onerror=function(){n(new Z("Network Error",Z.ERR_NETWORK,e,E)),E=null},E.ontimeout=function(){let k=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const b=r.transitional||Mr;r.timeoutErrorMessage&&(k=r.timeoutErrorMessage),n(new Z(k,b.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,E)),E=null},o===void 0&&a.setContentType(null),"setRequestHeader"in E&&h.forEach(a.toJSON(),function(k,b){E.setRequestHeader(b,k)}),h.isUndefined(r.withCredentials)||(E.withCredentials=!!r.withCredentials),s&&s!=="json"&&(E.responseType=r.responseType),p&&([f,v]=sn(p,!0),E.addEventListener("progress",f)),c&&E.upload&&([u,m]=sn(c),E.upload.addEventListener("progress",u),E.upload.addEventListener("loadend",m)),(r.cancelToken||r.signal)&&(l=_=>{E&&(n(!_||_.type?new bt(null,e,E):_),E.abort(),E=null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener("abort",l)));const O=Zc(r.url);if(O&&je.protocols.indexOf(O)===-1){n(new Z("Unsupported protocol "+O+":",Z.ERR_BAD_REQUEST,e));return}E.send(o||null)})},al=(e,t)=>{const{length:i}=e=e?e.filter(Boolean):[];if(t||i){let n=new AbortController,r;const o=function(p){if(!r){r=!0,s();const l=p instanceof Error?p:this.reason;n.abort(l instanceof Z?l:new bt(l instanceof Error?l.message:l))}};let a=t&&setTimeout(()=>{a=null,o(new Z(`timeout ${t} of ms exceeded`,Z.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(o):p.removeEventListener("abort",o)}),e=null)};e.forEach(p=>p.addEventListener("abort",o));const{signal:c}=n;return c.unsubscribe=()=>h.asap(s),c}},sl=function*(e,t){let i=e.byteLength;if(i<t){yield e;return}let n=0,r;for(;n<i;)r=n+t,yield e.slice(n,r),n=r},cl=async function*(e,t){for await(const i of ll(e))yield*sl(i,t)},ll=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:i,value:n}=await t.read();if(i)break;yield n}}finally{await t.cancel()}},Kr=(e,t,i,n)=>{const r=cl(e,t);let o=0,a,s=c=>{a||(a=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:p,value:l}=await r.next();if(p){s(),c.close();return}let u=l.byteLength;if(i){let f=o+=u;i(f)}c.enqueue(new Uint8Array(l))}catch(p){throw s(p),p}},cancel(c){return s(c),r.return()}},{highWaterMark:2})},cn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Jr=cn&&typeof ReadableStream=="function",pl=cn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Xr=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ul=Jr&&Xr(()=>{let e=!1;const t=new Request(je.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Zr=64*1024,Kn=Jr&&Xr(()=>h.isReadableStream(new Response("").body)),ln={stream:Kn&&(e=>e.body)};cn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ln[t]&&(ln[t]=h.isFunction(e[t])?i=>i[t]():(i,n)=>{throw new Z(`Response type '${t}' is not supported`,Z.ERR_NOT_SUPPORT,n)})})})(new Response);const dl=async e=>{if(e==null)return 0;if(h.isBlob(e))return e.size;if(h.isSpecCompliantForm(e))return(await new Request(je.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(h.isArrayBufferView(e)||h.isArrayBuffer(e))return e.byteLength;if(h.isURLSearchParams(e)&&(e=e+""),h.isString(e))return(await pl(e)).byteLength},fl=async(e,t)=>{const i=h.toFiniteNumber(e.getContentLength());return i??dl(t)},Jn={http:Pc,xhr:ol,fetch:cn&&(async e=>{let{url:t,method:i,data:n,signal:r,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:p,headers:l,withCredentials:u="same-origin",fetchOptions:f}=Yr(e);p=p?(p+"").toLowerCase():"text";let m=al([r,o&&o.toAbortSignal()],a),v;const g=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let E;try{if(c&&ul&&i!=="get"&&i!=="head"&&(E=await fl(l,n))!==0){let b=new Request(t,{method:"POST",body:n,duplex:"half"}),j;if(h.isFormData(n)&&(j=b.headers.get("content-type"))&&l.setContentType(j),b.body){const[q,F]=Ur(E,sn(Vr(c)));n=Kr(b.body,Zr,q,F)}}h.isString(u)||(u=u?"include":"omit");const x="credentials"in Request.prototype;v=new Request(t,{...f,signal:m,method:i.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:x?u:void 0});let O=await fetch(v);const _=Kn&&(p==="stream"||p==="response");if(Kn&&(s||_&&g)){const b={};["status","statusText","headers"].forEach(Y=>{b[Y]=O[Y]});const j=h.toFiniteNumber(O.headers.get("content-length")),[q,F]=s&&Ur(j,sn(Vr(s),!0))||[];O=new Response(Kr(O.body,Zr,q,()=>{F&&F(),g&&g()}),b)}p=p||"text";let k=await ln[h.findKey(ln,p)||"text"](O,e);return!_&&g&&g(),await new Promise((b,j)=>{Wr(b,j,{data:k,headers:Ie.from(O.headers),status:O.status,statusText:O.statusText,config:e,request:v})})}catch(x){throw g&&g(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new Z("Network Error",Z.ERR_NETWORK,e,v),{cause:x.cause||x}):Z.from(x,x&&x.code,e,v)}})};h.forEach(Jn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Qr=e=>`- ${e}`,ml=e=>h.isFunction(e)||e===null||e===!1,eo={getAdapter:e=>{e=h.isArray(e)?e:[e];const{length:t}=e;let i,n;const r={};for(let o=0;o<t;o++){i=e[o];let a;if(n=i,!ml(i)&&(n=Jn[(a=String(i)).toLowerCase()],n===void 0))throw new Z(`Unknown adapter '${a}'`);if(n)break;r[a||"#"+o]=n}if(!n){const o=Object.entries(r).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
|
51
|
+
`+o.map(Qr).join(`
|
52
|
+
`):" "+Qr(o[0]):"as no adapter specified";throw new Z("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:Jn};function Xn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new bt(null,e)}function to(e){return Xn(e),e.headers=Ie.from(e.headers),e.data=Yn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),eo.getAdapter(e.adapter||Ft.adapter)(e).then(function(n){return Xn(e),n.data=Yn.call(e,e.transformResponse,n),n.headers=Ie.from(n.headers),n},function(n){return qr(n)||(Xn(e),n&&n.response&&(n.response.data=Yn.call(e,e.transformResponse,n.response),n.response.headers=Ie.from(n.response.headers))),Promise.reject(n)})}const no="1.7.9",pn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{pn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const io={};pn.transitional=function(t,i,n){function r(o,a){return"[Axios v"+no+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return(o,a,s)=>{if(t===!1)throw new Z(r(a," has been removed"+(i?" in "+i:"")),Z.ERR_DEPRECATED);return i&&!io[a]&&(io[a]=!0,console.warn(r(a," has been deprecated since v"+i+" and will be removed in the near future"))),t?t(o,a,s):!0}},pn.spelling=function(t){return(i,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function xl(e,t,i){if(typeof e!="object")throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let r=n.length;for(;r-- >0;){const o=n[r],a=t[o];if(a){const s=e[o],c=s===void 0||a(s,o,e);if(c!==!0)throw new Z("option "+o+" must be "+c,Z.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new Z("Unknown option "+o,Z.ERR_BAD_OPTION)}}const un={assertOptions:xl,validators:pn},Ue=un.validators;class ct{constructor(t){this.defaults=t,this.interceptors={request:new Lr,response:new Lr}}async request(t,i){try{return await this._request(t,i)}catch(n){if(n instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=r.stack?r.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
53
|
+
`+o):n.stack=o}catch{}}throw n}}_request(t,i){typeof t=="string"?(i=i||{},i.url=t):i=t||{},i=st(this.defaults,i);const{transitional:n,paramsSerializer:r,headers:o}=i;n!==void 0&&un.assertOptions(n,{silentJSONParsing:Ue.transitional(Ue.boolean),forcedJSONParsing:Ue.transitional(Ue.boolean),clarifyTimeoutError:Ue.transitional(Ue.boolean)},!1),r!=null&&(h.isFunction(r)?i.paramsSerializer={serialize:r}:un.assertOptions(r,{encode:Ue.function,serialize:Ue.function},!0)),un.assertOptions(i,{baseUrl:Ue.spelling("baseURL"),withXsrfToken:Ue.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let a=o&&h.merge(o.common,o[i.method]);o&&h.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),i.headers=Ie.concat(a,o);const s=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(i)===!1||(c=c&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const p=[];this.interceptors.response.forEach(function(g){p.push(g.fulfilled,g.rejected)});let l,u=0,f;if(!c){const v=[to.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,p),f=v.length,l=Promise.resolve(i);u<f;)l=l.then(v[u++],v[u++]);return l}f=s.length;let m=i;for(u=0;u<f;){const v=s[u++],g=s[u++];try{m=v(m)}catch(E){g.call(this,E);break}}try{l=to.call(this,m)}catch(v){return Promise.reject(v)}for(u=0,f=p.length;u<f;)l=l.then(p[u++],p[u++]);return l}getUri(t){t=st(this.defaults,t);const i=Hr(t.baseURL,t.url);return zr(i,t.params,t.paramsSerializer)}}h.forEach(["delete","get","head","options"],function(t){ct.prototype[t]=function(i,n){return this.request(st(n||{},{method:t,url:i,data:(n||{}).data}))}}),h.forEach(["post","put","patch"],function(t){function i(n){return function(o,a,s){return this.request(st(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}ct.prototype[t]=i(),ct.prototype[t+"Form"]=i(!0)});class Zn{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(o){i=o});const n=this;this.promise.then(r=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](r);n._listeners=null}),this.promise.then=r=>{let o;const a=new Promise(s=>{n.subscribe(s),o=s}).then(r);return a.cancel=function(){n.unsubscribe(o)},a},t(function(o,a,s){n.reason||(n.reason=new bt(o,a,s),i(n.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 i=this._listeners.indexOf(t);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const t=new AbortController,i=n=>{t.abort(n)};return this.subscribe(i),t.signal.unsubscribe=()=>this.unsubscribe(i),t.signal}static source(){let t;return{token:new Zn(function(r){t=r}),cancel:t}}}function vl(e){return function(i){return e.apply(null,i)}}function gl(e){return h.isObject(e)&&e.isAxiosError===!0}const Qn={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(Qn).forEach(([e,t])=>{Qn[t]=e});function ro(e){const t=new ct(e),i=wr(ct.prototype.request,t);return h.extend(i,ct.prototype,t,{allOwnKeys:!0}),h.extend(i,t,null,{allOwnKeys:!0}),i.create=function(r){return ro(st(e,r))},i}const _e=ro(Ft);_e.Axios=ct,_e.CanceledError=bt,_e.CancelToken=Zn,_e.isCancel=qr,_e.VERSION=no,_e.toFormData=on,_e.AxiosError=Z,_e.Cancel=_e.CanceledError,_e.all=function(t){return Promise.all(t)},_e.spread=vl,_e.isAxiosError=gl,_e.mergeConfig=st,_e.AxiosHeaders=Ie,_e.formToJSON=e=>$r(h.isHTMLForm(e)?new FormData(e):e),_e.getAdapter=eo.getAdapter,_e.HttpStatusCode=Qn,_e.default=_e;var dn={exports:{}},ei={};/**
|
54
54
|
* @license React
|
55
55
|
* use-sync-external-store-shim.production.min.js
|
56
56
|
*
|
@@ -58,7 +58,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
58
58
|
*
|
59
59
|
* This source code is licensed under the MIT license found in the
|
60
60
|
* LICENSE file in the root directory of this source tree.
|
61
|
-
*/var
|
61
|
+
*/var oo;function hl(){if(oo)return ei;oo=1;var e=w;function t(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var i=typeof Object.is=="function"?Object.is:t,n=e.useState,r=e.useEffect,o=e.useLayoutEffect,a=e.useDebugValue;function s(u,f){var m=f(),v=n({inst:{value:m,getSnapshot:f}}),g=v[0].inst,E=v[1];return o(function(){g.value=m,g.getSnapshot=f,c(g)&&E({inst:g})},[u,m,f]),r(function(){return c(g)&&E({inst:g}),u(function(){c(g)&&E({inst:g})})},[u]),a(m),m}function c(u){var f=u.getSnapshot;u=u.value;try{var m=f();return!i(u,m)}catch{return!0}}function p(u,f){return f()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:s;return ei.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l,ei}var ti={};/**
|
62
62
|
* @license React
|
63
63
|
* use-sync-external-store-shim.development.js
|
64
64
|
*
|
@@ -66,5 +66,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
66
66
|
*
|
67
67
|
* This source code is licensed under the MIT license found in the
|
68
68
|
* LICENSE file in the root directory of this source tree.
|
69
|
-
*/var so;function hl(){return so||(so=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=w,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function i(_){{for(var k=arguments.length,b=new Array(k>1?k-1:0),j=1;j<k;j++)b[j-1]=arguments[j];n("error",_,b)}}function n(_,k,b){{var j=t.ReactDebugCurrentFrame,q=j.getStackAddendum();q!==""&&(k+="%s",b=b.concat([q]));var F=b.map(function(Y){return String(Y)});F.unshift("Warning: "+k),Function.prototype.apply.call(console[_],console,F)}}function r(_,k){return _===k&&(_!==0||1/_===1/k)||_!==_&&k!==k}var o=typeof Object.is=="function"?Object.is:r,a=e.useState,s=e.useEffect,c=e.useLayoutEffect,p=e.useDebugValue,l=!1,u=!1;function f(_,k,b){l||e.startTransition!==void 0&&(l=!0,i("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var j=k();if(!u){var q=k();o(j,q)||(i("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}var F=a({inst:{value:j,getSnapshot:k}}),Y=F[0].inst,H=F[1];return c(function(){Y.value=j,Y.getSnapshot=k,m(Y)&&H({inst:Y})},[_,j,k]),s(function(){m(Y)&&H({inst:Y});var oe=function(){m(Y)&&H({inst:Y})};return _(oe)},[_]),p(j),j}function m(_){var k=_.getSnapshot,b=_.value;try{var j=k();return!o(b,j)}catch{return!0}}function v(_,k,b){return k()}var g=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",E=!g,x=E?v:f,O=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:x;ti.useSyncExternalStore=O,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ti}var co;function yl(){return co||(co=1,process.env.NODE_ENV==="production"?dn.exports=gl():dn.exports=hl()),dn.exports}var lo=yl();const Ze=()=>{},Ae=Ze(),ni=Object,N=e=>e===Ae,ze=e=>typeof e=="function",Le=(e,t)=>({...e,...t}),bl=e=>ze(e.then),fn=new WeakMap;let wl=0;const It=e=>{const t=typeof e,i=e&&e.constructor,n=i==Date;let r,o;if(ni(e)===e&&!n&&i!=RegExp){if(r=fn.get(e),r)return r;if(r=++wl+"~",fn.set(e,r),i==Array){for(r="@",o=0;o<e.length;o++)r+=It(e[o])+",";fn.set(e,r)}if(i==ni){r="#";const a=ni.keys(e).sort();for(;!N(o=a.pop());)N(e[o])||(r+=o+":"+It(e[o])+",");fn.set(e,r)}}else r=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return r},Ve=new WeakMap,ii={},mn={},ri="undefined",xn=typeof window!=ri,oi=typeof document!=ri,El=()=>xn&&typeof window.requestAnimationFrame!=ri,ai=(e,t)=>{const i=Ve.get(e);return[()=>!N(t)&&e.get(t)||ii,n=>{if(!N(t)){const r=e.get(t);t in mn||(mn[t]=r),i[5](t,Le(r,n),r||ii)}},i[6],()=>!N(t)&&t in mn?mn[t]:!N(t)&&e.get(t)||ii]};let si=!0;const Sl=()=>si,[ci,li]=xn&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ze,Ze],Rl=()=>{const e=oi&&document.visibilityState;return N(e)||e!=="hidden"},Tl=e=>(oi&&document.addEventListener("visibilitychange",e),ci("focus",e),()=>{oi&&document.removeEventListener("visibilitychange",e),li("focus",e)}),kl=e=>{const t=()=>{si=!0,e()},i=()=>{si=!1};return ci("online",t),ci("offline",i),()=>{li("online",t),li("offline",i)}},Ol={isOnline:Sl,isVisible:Rl},Cl={initFocus:Tl,initReconnect:kl},Bt=!w.useId,lt=!xn||"Deno"in window,po=e=>El()?window.requestAnimationFrame(e):setTimeout(e,1),Qe=lt?w.useEffect:w.useLayoutEffect,pi=typeof navigator<"u"&&navigator.connection,uo=!lt&&pi&&(["slow-2g","2g"].includes(pi.effectiveType)||pi.saveData),zt=e=>{if(ze(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?It(e):"",[e,t]};let _l=0;const wt=()=>++_l,fo=0,mo=1,xo=2;var He={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:fo,MUTATE_EVENT:xo,RECONNECT_EVENT:mo};async function ui(...e){const[t,i,n,r]=e,o=Le({populateCache:!0,throwOnError:!0},typeof r=="boolean"?{revalidate:r}:r||{});let a=o.populateCache;const s=o.rollbackOnError;let c=o.optimisticData;const p=f=>typeof s=="function"?s(f):s!==!1,l=o.throwOnError;if(ze(i)){const f=i,m=[],v=t.keys();for(const g of v)!/^\$(inf|sub)\$/.test(g)&&f(t.get(g)._k)&&m.push(g);return Promise.all(m.map(u))}return u(i);async function u(f){const[m]=zt(f);if(!m)return;const[v,g]=ai(t,m),[E,x,O,_]=Ve.get(t),k=()=>{const ne=E[m];return(ze(o.revalidate)?o.revalidate(v().data,f):o.revalidate!==!1)&&(delete O[m],delete _[m],ne&&ne[0])?ne[0](xo).then(()=>v().data):v().data};if(e.length<3)return k();let b=n,j;const q=wt();x[m]=[q,0];const F=!N(c),Y=v(),H=Y.data,oe=Y._c,he=N(oe)?H:oe;if(F&&(c=ze(c)?c(he,H):c,g({data:c,_c:he})),ze(b))try{b=b(he)}catch(ne){j=ne}if(b&&bl(b))if(b=await b.catch(ne=>{j=ne}),q!==x[m][0]){if(j)throw j;return b}else j&&F&&p(j)&&(a=!0,g({data:he,_c:Ae}));if(a&&!j)if(ze(a)){const ne=a(b,he);g({data:ne,error:Ae,_c:Ae})}else g({data:b,error:Ae,_c:Ae});if(x[m][1]=wt(),Promise.resolve(k()).then(()=>{g({_c:Ae})}),j){if(l)throw j;return}return b}}const vo=(e,t)=>{for(const i in e)e[i][0]&&e[i][0](t)},Al=(e,t)=>{if(!Ve.has(e)){const i=Le(Cl,t),n={},r=ui.bind(Ae,e);let o=Ze;const a={},s=(l,u)=>{const f=a[l]||[];return a[l]=f,f.push(u),()=>f.splice(f.indexOf(u),1)},c=(l,u,f)=>{e.set(l,u);const m=a[l];if(m)for(const v of m)v(u,f)},p=()=>{if(!Ve.has(e)&&(Ve.set(e,[n,{},{},{},r,c,s]),!lt)){const l=i.initFocus(setTimeout.bind(Ae,vo.bind(Ae,n,fo))),u=i.initReconnect(setTimeout.bind(Ae,vo.bind(Ae,n,mo)));o=()=>{l&&l(),u&&u(),Ve.delete(e)}}};return p(),[e,r,p,o]}return[e,Ve.get(e)[4]]},Dl=(e,t,i,n,r)=>{const o=i.errorRetryCount,a=r.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*i.errorRetryInterval;!N(o)&&a>o||setTimeout(n,s,r)},jl=(e,t)=>It(e)==It(t),[go,Fl]=Al(new Map),Pl=Le({onLoadingSlow:Ze,onSuccess:Ze,onError:Ze,onErrorRetry:Dl,onDiscarded:Ze,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:uo?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:uo?5e3:3e3,compare:jl,isPaused:()=>!1,cache:go,mutate:Fl,fallback:{}},Ol),Il=(e,t)=>{const i=Le(e,t);if(t){const{use:n,fallback:r}=e,{use:o,fallback:a}=t;n&&o&&(i.use=n.concat(o)),r&&a&&(i.fallback=Le(r,a))}return i},Bl=w.createContext({}),zl="$inf$",ho=xn&&window.__SWR_DEVTOOLS_USE__,Ll=ho?window.__SWR_DEVTOOLS_USE__:[],Ml=()=>{ho&&(window.__SWR_DEVTOOLS_REACT__=w)},yo=e=>ze(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],bo=()=>Le(Pl,w.useContext(Bl)),$l=e=>(t,i,n)=>e(t,i&&((...o)=>{const[a]=zt(t),[,,,s]=Ve.get(go);if(a.startsWith(zl))return i(...o);const c=s[a];return N(c)?i(...o):(delete s[a],c)}),n),Nl=Ll.concat($l),wo=e=>function(...i){const n=bo(),[r,o,a]=yo(i),s=Il(n,a);let c=e;const{use:p}=s,l=(p||[]).concat(Nl);for(let u=l.length;u--;)c=l[u](c);return c(r,o||s.fetcher||null,s)},Eo=(e,t,i)=>{const n=t[e]||(t[e]=[]);return n.push(i),()=>{const r=n.indexOf(i);r>=0&&(n[r]=n[n.length-1],n.pop())}},ql=(e,t)=>(...i)=>{const[n,r,o]=yo(i),a=(o.use||[]).concat(t);return e(n,r,{...o,use:a})};Ml();const So=w.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),di={dedupe:!0},Ul=wo((e,t,i)=>{const{cache:n,compare:r,suspense:o,fallbackData:a,revalidateOnMount:s,revalidateIfStale:c,refreshInterval:p,refreshWhenHidden:l,refreshWhenOffline:u,keepPreviousData:f}=i,[m,v,g,E]=Ve.get(n),[x,O]=zt(e),_=w.useRef(!1),k=w.useRef(!1),b=w.useRef(x),j=w.useRef(t),q=w.useRef(i),F=()=>q.current,Y=()=>F().isVisible()&&F().isOnline(),[H,oe,he,ne]=ai(n,x),V=w.useRef({}).current,pe=N(a)?i.fallback[x]:a,Re=(y,P)=>{for(const X in V){const $=X;if($==="data"){if(!r(y[$],P[$])&&(!N(y[$])||!r(G,P[$])))return!1}else if(P[$]!==y[$])return!1}return!0},Te=w.useMemo(()=>{const y=!x||!t?!1:N(s)?F().isPaused()||o?!1:N(c)?!0:c:s,P=ee=>{const Ee=Le(ee);return delete Ee._k,y?{isValidating:!0,isLoading:!0,...Ee}:Ee},X=H(),$=ne(),de=P(X),ke=X===$?de:P($);let Q=de;return[()=>{const ee=P(H());return Re(ee,Q)?(Q.data=ee.data,Q.isLoading=ee.isLoading,Q.isValidating=ee.isValidating,Q.error=ee.error,Q):(Q=ee,ee)},()=>ke]},[n,x]),ue=lo.useSyncExternalStore(w.useCallback(y=>he(x,(P,X)=>{Re(X,P)||y()}),[n,x]),Te[0],Te[1]),we=!_.current,R=m[x]&&m[x].length>0,C=ue.data,B=N(C)?pe:C,U=ue.error,z=w.useRef(B),G=f?N(C)?z.current:C:B,L=R&&!N(U)?!1:we&&!N(s)?s:F().isPaused()?!1:o?N(B)?!1:c:N(B)||c,W=!!(x&&t&&we&&L),J=N(ue.isValidating)?W:ue.isValidating,te=N(ue.isLoading)?W:ue.isLoading,M=w.useCallback(async y=>{const P=j.current;if(!x||!P||k.current||F().isPaused())return!1;let X,$,de=!0;const ke=y||{},Q=!g[x]||!ke.dedupe,ee=()=>Bt?!k.current&&x===b.current&&_.current:x===b.current,Ee={isValidating:!1,isLoading:!1},Ye=()=>{oe(Ee)},qe=()=>{const S=g[x];S&&S[1]===$&&delete g[x]},Ke={isValidating:!0};N(H().data)&&(Ke.isLoading=!0);try{if(Q&&(oe(Ke),i.loadingTimeout&&N(H().data)&&setTimeout(()=>{de&&ee()&&F().onLoadingSlow(x,i)},i.loadingTimeout),g[x]=[P(O),wt()]),[X,$]=g[x],X=await X,Q&&setTimeout(qe,i.dedupingInterval),!g[x]||g[x][1]!==$)return Q&&ee()&&F().onDiscarded(x),!1;Ee.error=Ae;const S=v[x];if(!N(S)&&($<=S[0]||$<=S[1]||S[1]===0))return Ye(),Q&&ee()&&F().onDiscarded(x),!1;const A=H().data;Ee.data=r(A,X)?A:X,Q&&ee()&&F().onSuccess(X,x,i)}catch(S){qe();const A=F(),{shouldRetryOnError:ae}=A;A.isPaused()||(Ee.error=S,Q&&ee()&&(A.onError(S,x,A),(ae===!0||ze(ae)&&ae(S))&&(!F().revalidateOnFocus||!F().revalidateOnReconnect||Y())&&A.onErrorRetry(S,x,A,me=>{const Oe=m[x];Oe&&Oe[0]&&Oe[0](He.ERROR_REVALIDATE_EVENT,me)},{retryCount:(ke.retryCount||0)+1,dedupe:!0})))}return de=!1,Ye(),!0},[x,n]),ye=w.useCallback((...y)=>ui(n,b.current,...y),[]);if(Qe(()=>{j.current=t,q.current=i,N(C)||(z.current=C)}),Qe(()=>{if(!x)return;const y=M.bind(Ae,di);let P=0;const $=Eo(x,m,(de,ke={})=>{if(de==He.FOCUS_EVENT){const Q=Date.now();F().revalidateOnFocus&&Q>P&&Y()&&(P=Q+F().focusThrottleInterval,y())}else if(de==He.RECONNECT_EVENT)F().revalidateOnReconnect&&Y()&&y();else{if(de==He.MUTATE_EVENT)return M();if(de==He.ERROR_REVALIDATE_EVENT)return M(ke)}});return k.current=!1,b.current=x,_.current=!0,oe({_k:O}),L&&(N(B)||lt?y():po(y)),()=>{k.current=!0,$()}},[x]),Qe(()=>{let y;function P(){const $=ze(p)?p(H().data):p;$&&y!==-1&&(y=setTimeout(X,$))}function X(){!H().error&&(l||F().isVisible())&&(u||F().isOnline())?M(di).then(P):P()}return P(),()=>{y&&(clearTimeout(y),y=-1)}},[p,l,u,x]),w.useDebugValue(G),o&&N(B)&&x){if(!Bt&<)throw new Error("Fallback data is required when using suspense in SSR.");j.current=t,q.current=i,k.current=!1;const y=E[x];if(!N(y)){const P=ye(y);So(P)}if(N(U)){const P=M(di);N(G)||(P.status="fulfilled",P.value=!0),So(P)}else throw U}return{mutate:ye,get data(){return V.data=!0,G},get error(){return V.error=!0,U},get isValidating(){return V.isValidating=!0,J},get isLoading(){return V.isLoading=!0,te}}}),Ro=w.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),fi={dedupe:!0},Wl=wo((e,t,i)=>{const{cache:n,compare:r,suspense:o,fallbackData:a,revalidateOnMount:s,revalidateIfStale:c,refreshInterval:p,refreshWhenHidden:l,refreshWhenOffline:u,keepPreviousData:f}=i,[m,v,g,E]=Ve.get(n),[x,O]=zt(e),_=w.useRef(!1),k=w.useRef(!1),b=w.useRef(x),j=w.useRef(t),q=w.useRef(i),F=()=>q.current,Y=()=>F().isVisible()&&F().isOnline(),[H,oe,he,ne]=ai(n,x),V=w.useRef({}).current,pe=N(a)?i.fallback[x]:a,Re=(y,P)=>{for(const X in V){const $=X;if($==="data"){if(!r(y[$],P[$])&&(!N(y[$])||!r(G,P[$])))return!1}else if(P[$]!==y[$])return!1}return!0},Te=w.useMemo(()=>{const y=!x||!t?!1:N(s)?F().isPaused()||o?!1:N(c)?!0:c:s,P=ee=>{const Ee=Le(ee);return delete Ee._k,y?{isValidating:!0,isLoading:!0,...Ee}:Ee},X=H(),$=ne(),de=P(X),ke=X===$?de:P($);let Q=de;return[()=>{const ee=P(H());return Re(ee,Q)?(Q.data=ee.data,Q.isLoading=ee.isLoading,Q.isValidating=ee.isValidating,Q.error=ee.error,Q):(Q=ee,ee)},()=>ke]},[n,x]),ue=lo.useSyncExternalStore(w.useCallback(y=>he(x,(P,X)=>{Re(X,P)||y()}),[n,x]),Te[0],Te[1]),we=!_.current,R=m[x]&&m[x].length>0,C=ue.data,B=N(C)?pe:C,U=ue.error,z=w.useRef(B),G=f?N(C)?z.current:C:B,L=R&&!N(U)?!1:we&&!N(s)?s:F().isPaused()?!1:o?N(B)?!1:c:N(B)||c,W=!!(x&&t&&we&&L),J=N(ue.isValidating)?W:ue.isValidating,te=N(ue.isLoading)?W:ue.isLoading,M=w.useCallback(async y=>{const P=j.current;if(!x||!P||k.current||F().isPaused())return!1;let X,$,de=!0;const ke=y||{},Q=!g[x]||!ke.dedupe,ee=()=>Bt?!k.current&&x===b.current&&_.current:x===b.current,Ee={isValidating:!1,isLoading:!1},Ye=()=>{oe(Ee)},qe=()=>{const S=g[x];S&&S[1]===$&&delete g[x]},Ke={isValidating:!0};N(H().data)&&(Ke.isLoading=!0);try{if(Q&&(oe(Ke),i.loadingTimeout&&N(H().data)&&setTimeout(()=>{de&&ee()&&F().onLoadingSlow(x,i)},i.loadingTimeout),g[x]=[P(O),wt()]),[X,$]=g[x],X=await X,Q&&setTimeout(qe,i.dedupingInterval),!g[x]||g[x][1]!==$)return Q&&ee()&&F().onDiscarded(x),!1;Ee.error=Ae;const S=v[x];if(!N(S)&&($<=S[0]||$<=S[1]||S[1]===0))return Ye(),Q&&ee()&&F().onDiscarded(x),!1;const A=H().data;Ee.data=r(A,X)?A:X,Q&&ee()&&F().onSuccess(X,x,i)}catch(S){qe();const A=F(),{shouldRetryOnError:ae}=A;A.isPaused()||(Ee.error=S,Q&&ee()&&(A.onError(S,x,A),(ae===!0||ze(ae)&&ae(S))&&(!F().revalidateOnFocus||!F().revalidateOnReconnect||Y())&&A.onErrorRetry(S,x,A,me=>{const Oe=m[x];Oe&&Oe[0]&&Oe[0](He.ERROR_REVALIDATE_EVENT,me)},{retryCount:(ke.retryCount||0)+1,dedupe:!0})))}return de=!1,Ye(),!0},[x,n]),ye=w.useCallback((...y)=>ui(n,b.current,...y),[]);if(Qe(()=>{j.current=t,q.current=i,N(C)||(z.current=C)}),Qe(()=>{if(!x)return;const y=M.bind(Ae,fi);let P=0;const $=Eo(x,m,(de,ke={})=>{if(de==He.FOCUS_EVENT){const Q=Date.now();F().revalidateOnFocus&&Q>P&&Y()&&(P=Q+F().focusThrottleInterval,y())}else if(de==He.RECONNECT_EVENT)F().revalidateOnReconnect&&Y()&&y();else{if(de==He.MUTATE_EVENT)return M();if(de==He.ERROR_REVALIDATE_EVENT)return M(ke)}});return k.current=!1,b.current=x,_.current=!0,oe({_k:O}),L&&(N(B)||lt?y():po(y)),()=>{k.current=!0,$()}},[x]),Qe(()=>{let y;function P(){const $=ze(p)?p(H().data):p;$&&y!==-1&&(y=setTimeout(X,$))}function X(){!H().error&&(l||F().isVisible())&&(u||F().isOnline())?M(fi).then(P):P()}return P(),()=>{y&&(clearTimeout(y),y=-1)}},[p,l,u,x]),w.useDebugValue(G),o&&N(B)&&x){if(!Bt&<)throw new Error("Fallback data is required when using suspense in SSR.");j.current=t,q.current=i,k.current=!1;const y=E[x];if(!N(y)){const P=ye(y);Ro(P)}if(N(U)){const P=M(fi);N(G)||(P.status="fulfilled",P.value=!0),Ro(P)}else throw U}return{mutate:ye,get data(){return V.data=!0,G},get error(){return V.error=!0,U},get isValidating(){return V.isValidating=!0,J},get isLoading(){return V.isLoading=!0,te}}}),To=Bt?e=>{e()}:w.startTransition,Vl=e=>{const[,t]=w.useState({}),i=w.useRef(!1),n=w.useRef(e),r=w.useRef({data:!1,error:!1,isValidating:!1}),o=w.useCallback(a=>{let s=!1;const c=n.current;for(const p in a){const l=p;c[l]!==a[l]&&(c[l]=a[l],r.current[l]&&(s=!0))}s&&!i.current&&t({})},[]);return Qe(()=>(i.current=!1,()=>{i.current=!0})),[n,r.current,o]},Hl=ql(Wl,()=>(e,t,i={})=>{const{mutate:n}=bo(),r=w.useRef(e),o=w.useRef(t),a=w.useRef(i),s=w.useRef(0),[c,p,l]=Vl({data:Ae,error:Ae,isMutating:!1}),u=c.current,f=w.useCallback(async(v,g)=>{const[E,x]=zt(r.current);if(!o.current)throw new Error("Can’t trigger the mutation: missing fetcher.");if(!E)throw new Error("Can’t trigger the mutation: missing key.");const O=Le(Le({populateCache:!1,throwOnError:!0},a.current),g),_=wt();s.current=_,l({isMutating:!0});try{const k=await n(E,o.current(x,{arg:v}),Le(O,{throwOnError:!0}));return s.current<=_&&(To(()=>l({data:k,isMutating:!1,error:void 0})),O.onSuccess==null||O.onSuccess.call(O,k,E,O)),k}catch(k){if(s.current<=_&&(To(()=>l({error:k,isMutating:!1})),O.onError==null||O.onError.call(O,k,E,O),O.throwOnError))throw k}},[]),m=w.useCallback(()=>{s.current=wt(),l({data:Ae,error:Ae,isMutating:!1})},[]);return Qe(()=>{r.current=e,o.current=t,a.current=i}),{trigger:f,reset:m,get data(){return p.data=!0,u.data},get error(){return p.error=!0,u.error},get isMutating(){return p.isMutating=!0,u.isMutating}}}),Gl=e=>ve.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",...e,children:[ve.jsx("path",{opacity:"0.15",d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8Z"}),ve.jsx("path",{d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",strokeLinecap:"round"})]}),Yl=ya({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Kl=$e(Gl,{animation:`${Yl} 2s linear infinite`,variants:{size:{sm:{width:"16px",height:"16px",strokeWidth:"1px"},md:{width:"24px",height:"24px",strokeWidth:"1.5px"},lg:{width:"32px",height:"32px",strokeWidth:"2px"}}}}),Jl=e=>ve.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:ve.jsx("path",{d:"M6.04995 2.74998C6.04995 2.44623 5.80371 2.19998 5.49995 2.19998C5.19619 2.19998 4.94995 2.44623 4.94995 2.74998V12.25C4.94995 12.5537 5.19619 12.8 5.49995 12.8C5.80371 12.8 6.04995 12.5537 6.04995 12.25V2.74998ZM10.05 2.74998C10.05 2.44623 9.80371 2.19998 9.49995 2.19998C9.19619 2.19998 8.94995 2.44623 8.94995 2.74998V12.25C8.94995 12.5537 9.19619 12.8 9.49995 12.8C9.80371 12.8 10.05 12.5537 10.05 12.25V2.74998Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}),Xl=({...e})=>ve.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",xmlns:"http://www.w3.orkllg/2000/svg",fill:"currentColor",...e,children:ve.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.1869 3.71487C5.42703 3.57009 5.72543 3.56159 5.9734 3.69247L20.3734 11.2925C20.6358 11.431 20.8 11.7033 20.8 12C20.8 12.2967 20.6358 12.569 20.3734 12.7075L5.9734 20.3075C5.72543 20.4384 5.42703 20.4299 5.1869 20.2851C4.94679 20.1403 4.79999 19.8803 4.79999 19.6V4.39998C4.79999 4.11959 4.94679 3.85966 5.1869 3.71487Z",fill:"currentColor"})}),Zl=e=>{if(!e)return!1;const t=e.split("?")[1];if(!t)return!1;const n=new URLSearchParams(t).get("Expires");return n?new Date(n)<new Date:!1},ko=e=>e&&e.split("?")[0],Ql=(e,t)=>ko(e)===ko(t),ep=()=>{const[e,t]=w.useState("paused"),i=()=>{if(typeof window>"u")return null;const p=new Audio;return p.addEventListener("play",()=>t("playing")),p},n=w.useMemo(i,[]),r=w.useRef(n);return{audioRef:r,state:e,setAudio:p=>new Promise(l=>{const u=r==null?void 0:r.current;u&&(u.setAttribute("src",p),t("loading"),u.addEventListener("loadedmetadata",()=>{t("paused"),l()},{once:!0}))}),play:()=>{var p,l;(p=r.current)==null||p.play(),(l=r.current)==null||l.addEventListener("ended",()=>t("paused"),{once:!0})},pause:()=>{var p;(p=r.current)==null||p.pause(),t("paused")},stop:()=>{var l;r.current&&((l=r.current)==null||l.pause(),r.current.currentTime=0),t("paused")}}},mi=w.createContext(null),Oo=e=>{var a;const t=w.useContext(mi),i=Ql((a=t.audioRef.current)==null?void 0:a.src,e),n=t.state==="loading"&&i,r=t.state==="playing"&&i;return{...t,isMySrc:i,isLoading:n,isPlaying:r,play:async()=>{var c;const s=(c=t.audioRef.current)==null?void 0:c.src;(!i||Zl(s))&&await t.setAudio(e),t.play()}}},tp=()=>w.useContext(mi),Co=({children:e})=>{const t=ep();return ve.jsx(mi.Provider,{value:t,children:e})},_o=(e,t,i)=>{const n=Oo(e),r=w.useRef(!1),o=()=>{r.current||(r.current=!0),n.isPlaying?(n.pause(),i==null||i()):(n.play(),t==null||t())};return w.useEffect(()=>()=>{n.isPlaying&&n.pause()},[]),{player:n,playPause:o}},pt=({limit:e,isTrue:t,children:i})=>{const n=[];return t!==!0?null:(No.Children.map(i,r=>{const{isTrue:o}=(r==null?void 0:r.props)||{};o===!0&&(!e||n.length<e)&&n.push(r)}),ve.jsx(ve.Fragment,{children:n}))};pt.defaultProps={limit:1,isTrue:!0},pt.If=({children:e,isTrue:t})=>e;const Ao=({children:e})=>e;Ao.defaultProps={isTrue:!0},pt.Else=Ao;const np=e=>{const t=r=>typeof r=="object"&&!(r instanceof Date)&&!(r instanceof File)&&r!==null,i=(r,o,a)=>{for(const s in o){const c=o[s];t(c)?i(`${r}[${s}]`,c,a):c!==void 0&&a.append(`${r}[${s}]`,c===null?"":c)}},n=new FormData;for(const r in e){const o=e[r];o instanceof File?n.append(r,o,o.name):o!==void 0&&(t(o)?i(r,o,n):n.append(r,o===null?"":o))}return n},ip=$e("div",{"--progress":"-100%",height:"8px",width:"100%",background:"rgba(255, 255, 255, 0.1)",borderRadius:"12px",position:"relative",overflow:"hidden"}),rp=$e("div",{height:"100%",width:"100%",background:"#ffffff",transition:"transform 0.2s ease-in-out",transform:"translateX(var(--progress))",borderRadius:"12px"}),op=({progress:e})=>ve.jsx(ip,{style:{"--progress":`${-100+e}%`},children:ve.jsx(rp,{})});function vn(e,t,i){for(let n=0;n<e.length;++n)t[i+n]=e.charCodeAt(n)}function gn(e,t,i){e=Math.floor(e),t[i+0]=e&255,t[i+1]=e>>8&255}function ut(e,t,i){e=Math.floor(e),t[i+0]=e&255,t[i+1]=e>>8&255,t[i+2]=e>>16&255,t[i+3]=e>>24&255}function ap(e){const t=new ArrayBuffer(4);return new Float32Array(t)[0]=e,new Uint32Array(t)[0]|0}function sp(e,t,i,n){let r=0,o=0;const a=e.length,s=e.numberOfChannels;let c,p;for(r=0;r<a;++r)for(o=0;o<s;++o)if(c=e.getChannelData(o),n===16)p=c[r]*32768,p=Math.max(-32768,Math.min(p,32767)),gn(p,t,i),i+=2;else if(n===32)p=ap(c[r]),ut(p,t,i),i+=4;else{console.log("Invalid bit depth for PCM encoding.");return}}async function cp(e,t){let i=e instanceof Blob?e:new Blob(e);const n=URL.createObjectURL(i),o=await(await fetch(n)).arrayBuffer();return await new AudioContext(t).decodeAudioData(o)}async function lp(e,t=!1){const i=e.length,n=e.numberOfChannels,r=e.sampleRate,o=t?32:16,a=o/8,s=r*n*o/8,c=n*o/8,p=i*n*a,u=44+p,f=new Uint8Array(u),m=16,v=p,g=4+(8+m)+(8+v);return vn("RIFF",f,0),ut(g,f,4),vn("WAVE",f,8),vn("fmt ",f,12),ut(m,f,16),gn(t?3:1,f,20),gn(n,f,22),ut(r,f,24),ut(s,f,28),gn(c,f,32),ut(o,f,34),vn("data",f,36),ut(v,f,40),sp(e,f,44,o),new Blob([f],{type:"audio/wave"})}async function pp(e,t=!1,i){const n=await cp(e,i);return lp(n,t)}const up=128;class dp{constructor(){bn(this,"mediaRecorder",null);bn(this,"stream",null);bn(this,"__data",null)}async checkMicrophonePermission(){var n;return!!(await((n=navigator==null?void 0:navigator.mediaDevices)==null?void 0:n.enumerateDevices())).find(r=>r.kind==="audioinput"&&!!r.label)}async startRecording(){var t;if(((t=this.mediaRecorder)==null?void 0:t.state)==="recording")return!0;try{this.stream=await navigator.mediaDevices.getUserMedia({audio:!0,video:!1}),this.mediaRecorder=new MediaRecorder(this.stream,{bitsPerSecond:up*1e3}),this.mediaRecorder.ondataavailable=i=>this.__data=i.data}catch(i){return console.error(i),!1}return this.mediaRecorder.start(),!0}stopRecording(){return new Promise(t=>{var i;if(((i=this.mediaRecorder)==null?void 0:i.state)!=="recording"){t(!0);return}this.mediaRecorder.stop(),this.mediaRecorder.onstop=()=>{var n;(n=this.stream)==null||n.getTracks().forEach(r=>r.stop()),this.mediaRecorder=null,this.stream=null,t(!0)}})}async getWavBlob(){return this.__data?await pp(this.__data):null}}const hn=new dp,xi="Recording.wav",Do=1500,fp=e=>{const[t,i]=w.useState(!1),[n,r]=w.useState(!1),[o,a]=w.useState(!1);return w.useEffect(()=>{var p;const c=async()=>{hn.checkMicrophonePermission().then(i)};return c(),(p=navigator==null?void 0:navigator.mediaDevices)==null||p.addEventListener("devicechange",c),()=>{var l;return(l=navigator==null?void 0:navigator.mediaDevices)==null?void 0:l.removeEventListener("devicechange",c)}},[]),{hasMicAccess:t,isRecording:n,hasMinTimeElapsed:o,handleClick:async()=>{if(n){if(!o)return;r(!1),a(!1),await hn.stopRecording();const p=await hn.getWavBlob();if(!p){console.log("Failed to get audio blob",p);return}const l=new File([p],xi,{type:"audio/mpeg",lastModified:Date.now()});e.onFileUpdate(l);return}const c=await hn.startRecording();r(c),setTimeout(()=>{a(!0)},Do)}}},jo=_e.create({baseURL:"https://arpeggi.io/api/v2/"}),mp=async(e,{arg:t})=>(await jo.post("/ml-inference-jobs",np({soundFile:t.file,type:"audio",voiceModelId:t.voiceModelId,metadata:{splitInstrumental:!0,isRecordedAudio:t.file.name===xi}}),{params:{type:"audio"}})).data,xp=async e=>e===null?null:(await jo.get(e)).data,vp=e=>{const t=e>0;return Ul(t?`/ml-inference-jobs/${e}`:null,xp,{refreshInterval:1e3})},gp=()=>{const[e,t]=w.useState(null),[i,n]=w.useState(0),[r,o]=w.useState(0),{data:a,isLoading:s}=vp(i),{trigger:c,isMutating:p}=Hl("/ml-inference-jobs",mp);return{file:e,setFile:t,mlijId:i,setMlijId:n,voiceModelId:r,setVoiceModelId:o,data:a,isLoading:s,handleSelectVoice:async f=>{e&&(n(0),o(f),c({file:e,voiceModelId:f},{onSuccess:m=>{console.log("created mlij",m),n(m.id)}}))},reset:()=>{t(null),n(0),o(0)},isMutating:p}},Fo=w.createContext({}),yn=()=>w.useContext(Fo),hp=({children:e})=>{const t=gp();return ve.jsx(Co,{children:ve.jsx(Fo.Provider,{value:t,children:e})})},yp=$e("button",{background:"#ffffff",borderRadius:"12px",width:"64px",height:"64px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"none",outline:"none",transition:"background 0.2s ease-in-out, transform 0.2s ease-in-out",color:"#000000","& > svg":{width:"24px",height:"24px"},"&:hover":{background:"#ffffff99",transform:"scale(1.05)"},"&:active":{background:"#ffffffcc"},"&:disabled":{background:"rgba(255, 255, 255, 0.3)",transform:"none",cursor:"not-allowed"}}),bp=()=>{var o;const{data:e,isMutating:t}=yn(),i=(o=e==null?void 0:e.lossyOutputFile)==null?void 0:o.url,{player:n,playPause:r}=_o(i);return ve.jsx(yp,{onClick:r,disabled:n.isLoading||!i,children:ve.jsxs(pt,{children:[ve.jsx(pt.If,{isTrue:n.isLoading||(e==null?void 0:e.jobStatus)==="running"||t,children:ve.jsx(Kl,{})}),ve.jsx(pt.If,{isTrue:n.isPlaying,children:ve.jsx(Jl,{})}),ve.jsx(pt.Else,{children:ve.jsx(Xl,{})})]})})},vi=30,wp=10,Ep=()=>{const{data:e}=yn(),[t,i]=w.useState(0);return w.useEffect(()=>{if(!e)return;const n=setInterval(()=>{const r=(e==null?void 0:e.audioDurationMs)/1e3||vi,o=new Date(e==null?void 0:e.createdAt).getTime(),s=(new Date().getTime()-o)/1e3,c=Math.max(s/(vi+wp+r)*100,100);i(c)},100);return()=>clearInterval(n)},[e]),ve.jsx(op,{progress:t})},Sp=1,Rp=100*1024*1024,Tp=1,kp=({children:e})=>{const{setFile:t}=yn(),i=n=>t(n[0]);return ve.jsx(wr,{files:[],onFileAccepted:i,maxFileCount:Sp,maxSizeBytes:Rp,minSizeBytes:Tp,maxDurationS:vi,children:e})};xe.AudioFilePickerRoot=wr,xe.ConvertStep=Gs,xe.FilePicker=kp,xe.GuestConvertProvider=hp,xe.InferenceProgress=Ep,xe.MIN_RECORDING_LENGTH_MS=Do,xe.PlayButton=bp,xe.PlayerProvider=Co,xe.RECORDED_AUDIO_NAME=xi,xe.useAudioFilePickerContext=$s,xe.useGuestConvertContext=yn,xe.usePlayback=_o,xe.usePlayer=Oo,xe.usePlayerControls=tp,xe.useRecorder=fp,Object.defineProperty(xe,Symbol.toStringTag,{value:"Module"})});
|
69
|
+
*/var ao;function yl(){return ao||(ao=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=w,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function i(_){{for(var k=arguments.length,b=new Array(k>1?k-1:0),j=1;j<k;j++)b[j-1]=arguments[j];n("error",_,b)}}function n(_,k,b){{var j=t.ReactDebugCurrentFrame,q=j.getStackAddendum();q!==""&&(k+="%s",b=b.concat([q]));var F=b.map(function(Y){return String(Y)});F.unshift("Warning: "+k),Function.prototype.apply.call(console[_],console,F)}}function r(_,k){return _===k&&(_!==0||1/_===1/k)||_!==_&&k!==k}var o=typeof Object.is=="function"?Object.is:r,a=e.useState,s=e.useEffect,c=e.useLayoutEffect,p=e.useDebugValue,l=!1,u=!1;function f(_,k,b){l||e.startTransition!==void 0&&(l=!0,i("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var j=k();if(!u){var q=k();o(j,q)||(i("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}var F=a({inst:{value:j,getSnapshot:k}}),Y=F[0].inst,H=F[1];return c(function(){Y.value=j,Y.getSnapshot=k,m(Y)&&H({inst:Y})},[_,j,k]),s(function(){m(Y)&&H({inst:Y});var oe=function(){m(Y)&&H({inst:Y})};return _(oe)},[_]),p(j),j}function m(_){var k=_.getSnapshot,b=_.value;try{var j=k();return!o(b,j)}catch{return!0}}function v(_,k,b){return k()}var g=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",E=!g,x=E?v:f,O=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:x;ti.useSyncExternalStore=O,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ti}var so;function bl(){return so||(so=1,process.env.NODE_ENV==="production"?dn.exports=hl():dn.exports=yl()),dn.exports}var co=bl();const Ze=()=>{},Ae=Ze(),ni=Object,N=e=>e===Ae,ze=e=>typeof e=="function",Le=(e,t)=>({...e,...t}),wl=e=>ze(e.then),fn=new WeakMap;let El=0;const It=e=>{const t=typeof e,i=e&&e.constructor,n=i==Date;let r,o;if(ni(e)===e&&!n&&i!=RegExp){if(r=fn.get(e),r)return r;if(r=++El+"~",fn.set(e,r),i==Array){for(r="@",o=0;o<e.length;o++)r+=It(e[o])+",";fn.set(e,r)}if(i==ni){r="#";const a=ni.keys(e).sort();for(;!N(o=a.pop());)N(e[o])||(r+=o+":"+It(e[o])+",");fn.set(e,r)}}else r=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return r},Ve=new WeakMap,ii={},mn={},ri="undefined",xn=typeof window!=ri,oi=typeof document!=ri,Sl=()=>xn&&typeof window.requestAnimationFrame!=ri,ai=(e,t)=>{const i=Ve.get(e);return[()=>!N(t)&&e.get(t)||ii,n=>{if(!N(t)){const r=e.get(t);t in mn||(mn[t]=r),i[5](t,Le(r,n),r||ii)}},i[6],()=>!N(t)&&t in mn?mn[t]:!N(t)&&e.get(t)||ii]};let si=!0;const Rl=()=>si,[ci,li]=xn&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ze,Ze],Tl=()=>{const e=oi&&document.visibilityState;return N(e)||e!=="hidden"},kl=e=>(oi&&document.addEventListener("visibilitychange",e),ci("focus",e),()=>{oi&&document.removeEventListener("visibilitychange",e),li("focus",e)}),Ol=e=>{const t=()=>{si=!0,e()},i=()=>{si=!1};return ci("online",t),ci("offline",i),()=>{li("online",t),li("offline",i)}},Cl={isOnline:Rl,isVisible:Tl},_l={initFocus:kl,initReconnect:Ol},Bt=!w.useId,lt=!xn||"Deno"in window,lo=e=>Sl()?window.requestAnimationFrame(e):setTimeout(e,1),Qe=lt?w.useEffect:w.useLayoutEffect,pi=typeof navigator<"u"&&navigator.connection,po=!lt&&pi&&(["slow-2g","2g"].includes(pi.effectiveType)||pi.saveData),zt=e=>{if(ze(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?It(e):"",[e,t]};let Al=0;const wt=()=>++Al,uo=0,fo=1,mo=2;var He={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:uo,MUTATE_EVENT:mo,RECONNECT_EVENT:fo};async function ui(...e){const[t,i,n,r]=e,o=Le({populateCache:!0,throwOnError:!0},typeof r=="boolean"?{revalidate:r}:r||{});let a=o.populateCache;const s=o.rollbackOnError;let c=o.optimisticData;const p=f=>typeof s=="function"?s(f):s!==!1,l=o.throwOnError;if(ze(i)){const f=i,m=[],v=t.keys();for(const g of v)!/^\$(inf|sub)\$/.test(g)&&f(t.get(g)._k)&&m.push(g);return Promise.all(m.map(u))}return u(i);async function u(f){const[m]=zt(f);if(!m)return;const[v,g]=ai(t,m),[E,x,O,_]=Ve.get(t),k=()=>{const ne=E[m];return(ze(o.revalidate)?o.revalidate(v().data,f):o.revalidate!==!1)&&(delete O[m],delete _[m],ne&&ne[0])?ne[0](mo).then(()=>v().data):v().data};if(e.length<3)return k();let b=n,j;const q=wt();x[m]=[q,0];const F=!N(c),Y=v(),H=Y.data,oe=Y._c,he=N(oe)?H:oe;if(F&&(c=ze(c)?c(he,H):c,g({data:c,_c:he})),ze(b))try{b=b(he)}catch(ne){j=ne}if(b&&wl(b))if(b=await b.catch(ne=>{j=ne}),q!==x[m][0]){if(j)throw j;return b}else j&&F&&p(j)&&(a=!0,g({data:he,_c:Ae}));if(a&&!j)if(ze(a)){const ne=a(b,he);g({data:ne,error:Ae,_c:Ae})}else g({data:b,error:Ae,_c:Ae});if(x[m][1]=wt(),Promise.resolve(k()).then(()=>{g({_c:Ae})}),j){if(l)throw j;return}return b}}const xo=(e,t)=>{for(const i in e)e[i][0]&&e[i][0](t)},Dl=(e,t)=>{if(!Ve.has(e)){const i=Le(_l,t),n={},r=ui.bind(Ae,e);let o=Ze;const a={},s=(l,u)=>{const f=a[l]||[];return a[l]=f,f.push(u),()=>f.splice(f.indexOf(u),1)},c=(l,u,f)=>{e.set(l,u);const m=a[l];if(m)for(const v of m)v(u,f)},p=()=>{if(!Ve.has(e)&&(Ve.set(e,[n,{},{},{},r,c,s]),!lt)){const l=i.initFocus(setTimeout.bind(Ae,xo.bind(Ae,n,uo))),u=i.initReconnect(setTimeout.bind(Ae,xo.bind(Ae,n,fo)));o=()=>{l&&l(),u&&u(),Ve.delete(e)}}};return p(),[e,r,p,o]}return[e,Ve.get(e)[4]]},jl=(e,t,i,n,r)=>{const o=i.errorRetryCount,a=r.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*i.errorRetryInterval;!N(o)&&a>o||setTimeout(n,s,r)},Fl=(e,t)=>It(e)==It(t),[vo,Pl]=Dl(new Map),Il=Le({onLoadingSlow:Ze,onSuccess:Ze,onError:Ze,onErrorRetry:jl,onDiscarded:Ze,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:po?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:po?5e3:3e3,compare:Fl,isPaused:()=>!1,cache:vo,mutate:Pl,fallback:{}},Cl),Bl=(e,t)=>{const i=Le(e,t);if(t){const{use:n,fallback:r}=e,{use:o,fallback:a}=t;n&&o&&(i.use=n.concat(o)),r&&a&&(i.fallback=Le(r,a))}return i},zl=w.createContext({}),Ll="$inf$",go=xn&&window.__SWR_DEVTOOLS_USE__,Ml=go?window.__SWR_DEVTOOLS_USE__:[],$l=()=>{go&&(window.__SWR_DEVTOOLS_REACT__=w)},ho=e=>ze(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],yo=()=>Le(Il,w.useContext(zl)),Nl=e=>(t,i,n)=>e(t,i&&((...o)=>{const[a]=zt(t),[,,,s]=Ve.get(vo);if(a.startsWith(Ll))return i(...o);const c=s[a];return N(c)?i(...o):(delete s[a],c)}),n),ql=Ml.concat(Nl),bo=e=>function(...i){const n=yo(),[r,o,a]=ho(i),s=Bl(n,a);let c=e;const{use:p}=s,l=(p||[]).concat(ql);for(let u=l.length;u--;)c=l[u](c);return c(r,o||s.fetcher||null,s)},wo=(e,t,i)=>{const n=t[e]||(t[e]=[]);return n.push(i),()=>{const r=n.indexOf(i);r>=0&&(n[r]=n[n.length-1],n.pop())}},Wl=(e,t)=>(...i)=>{const[n,r,o]=ho(i),a=(o.use||[]).concat(t);return e(n,r,{...o,use:a})};$l();const Eo=w.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),di={dedupe:!0},Ul=bo((e,t,i)=>{const{cache:n,compare:r,suspense:o,fallbackData:a,revalidateOnMount:s,revalidateIfStale:c,refreshInterval:p,refreshWhenHidden:l,refreshWhenOffline:u,keepPreviousData:f}=i,[m,v,g,E]=Ve.get(n),[x,O]=zt(e),_=w.useRef(!1),k=w.useRef(!1),b=w.useRef(x),j=w.useRef(t),q=w.useRef(i),F=()=>q.current,Y=()=>F().isVisible()&&F().isOnline(),[H,oe,he,ne]=ai(n,x),V=w.useRef({}).current,pe=N(a)?i.fallback[x]:a,Re=(y,P)=>{for(const X in V){const $=X;if($==="data"){if(!r(y[$],P[$])&&(!N(y[$])||!r(G,P[$])))return!1}else if(P[$]!==y[$])return!1}return!0},Te=w.useMemo(()=>{const y=!x||!t?!1:N(s)?F().isPaused()||o?!1:N(c)?!0:c:s,P=ee=>{const Ee=Le(ee);return delete Ee._k,y?{isValidating:!0,isLoading:!0,...Ee}:Ee},X=H(),$=ne(),de=P(X),ke=X===$?de:P($);let Q=de;return[()=>{const ee=P(H());return Re(ee,Q)?(Q.data=ee.data,Q.isLoading=ee.isLoading,Q.isValidating=ee.isValidating,Q.error=ee.error,Q):(Q=ee,ee)},()=>ke]},[n,x]),ue=co.useSyncExternalStore(w.useCallback(y=>he(x,(P,X)=>{Re(X,P)||y()}),[n,x]),Te[0],Te[1]),we=!_.current,R=m[x]&&m[x].length>0,C=ue.data,B=N(C)?pe:C,W=ue.error,z=w.useRef(B),G=f?N(C)?z.current:C:B,L=R&&!N(W)?!1:we&&!N(s)?s:F().isPaused()?!1:o?N(B)?!1:c:N(B)||c,U=!!(x&&t&&we&&L),J=N(ue.isValidating)?U:ue.isValidating,te=N(ue.isLoading)?U:ue.isLoading,M=w.useCallback(async y=>{const P=j.current;if(!x||!P||k.current||F().isPaused())return!1;let X,$,de=!0;const ke=y||{},Q=!g[x]||!ke.dedupe,ee=()=>Bt?!k.current&&x===b.current&&_.current:x===b.current,Ee={isValidating:!1,isLoading:!1},Ye=()=>{oe(Ee)},qe=()=>{const S=g[x];S&&S[1]===$&&delete g[x]},Ke={isValidating:!0};N(H().data)&&(Ke.isLoading=!0);try{if(Q&&(oe(Ke),i.loadingTimeout&&N(H().data)&&setTimeout(()=>{de&&ee()&&F().onLoadingSlow(x,i)},i.loadingTimeout),g[x]=[P(O),wt()]),[X,$]=g[x],X=await X,Q&&setTimeout(qe,i.dedupingInterval),!g[x]||g[x][1]!==$)return Q&&ee()&&F().onDiscarded(x),!1;Ee.error=Ae;const S=v[x];if(!N(S)&&($<=S[0]||$<=S[1]||S[1]===0))return Ye(),Q&&ee()&&F().onDiscarded(x),!1;const A=H().data;Ee.data=r(A,X)?A:X,Q&&ee()&&F().onSuccess(X,x,i)}catch(S){qe();const A=F(),{shouldRetryOnError:ae}=A;A.isPaused()||(Ee.error=S,Q&&ee()&&(A.onError(S,x,A),(ae===!0||ze(ae)&&ae(S))&&(!F().revalidateOnFocus||!F().revalidateOnReconnect||Y())&&A.onErrorRetry(S,x,A,xe=>{const Oe=m[x];Oe&&Oe[0]&&Oe[0](He.ERROR_REVALIDATE_EVENT,xe)},{retryCount:(ke.retryCount||0)+1,dedupe:!0})))}return de=!1,Ye(),!0},[x,n]),ye=w.useCallback((...y)=>ui(n,b.current,...y),[]);if(Qe(()=>{j.current=t,q.current=i,N(C)||(z.current=C)}),Qe(()=>{if(!x)return;const y=M.bind(Ae,di);let P=0;const $=wo(x,m,(de,ke={})=>{if(de==He.FOCUS_EVENT){const Q=Date.now();F().revalidateOnFocus&&Q>P&&Y()&&(P=Q+F().focusThrottleInterval,y())}else if(de==He.RECONNECT_EVENT)F().revalidateOnReconnect&&Y()&&y();else{if(de==He.MUTATE_EVENT)return M();if(de==He.ERROR_REVALIDATE_EVENT)return M(ke)}});return k.current=!1,b.current=x,_.current=!0,oe({_k:O}),L&&(N(B)||lt?y():lo(y)),()=>{k.current=!0,$()}},[x]),Qe(()=>{let y;function P(){const $=ze(p)?p(H().data):p;$&&y!==-1&&(y=setTimeout(X,$))}function X(){!H().error&&(l||F().isVisible())&&(u||F().isOnline())?M(di).then(P):P()}return P(),()=>{y&&(clearTimeout(y),y=-1)}},[p,l,u,x]),w.useDebugValue(G),o&&N(B)&&x){if(!Bt&<)throw new Error("Fallback data is required when using suspense in SSR.");j.current=t,q.current=i,k.current=!1;const y=E[x];if(!N(y)){const P=ye(y);Eo(P)}if(N(W)){const P=M(di);N(G)||(P.status="fulfilled",P.value=!0),Eo(P)}else throw W}return{mutate:ye,get data(){return V.data=!0,G},get error(){return V.error=!0,W},get isValidating(){return V.isValidating=!0,J},get isLoading(){return V.isLoading=!0,te}}}),So=w.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),fi={dedupe:!0},Vl=bo((e,t,i)=>{const{cache:n,compare:r,suspense:o,fallbackData:a,revalidateOnMount:s,revalidateIfStale:c,refreshInterval:p,refreshWhenHidden:l,refreshWhenOffline:u,keepPreviousData:f}=i,[m,v,g,E]=Ve.get(n),[x,O]=zt(e),_=w.useRef(!1),k=w.useRef(!1),b=w.useRef(x),j=w.useRef(t),q=w.useRef(i),F=()=>q.current,Y=()=>F().isVisible()&&F().isOnline(),[H,oe,he,ne]=ai(n,x),V=w.useRef({}).current,pe=N(a)?i.fallback[x]:a,Re=(y,P)=>{for(const X in V){const $=X;if($==="data"){if(!r(y[$],P[$])&&(!N(y[$])||!r(G,P[$])))return!1}else if(P[$]!==y[$])return!1}return!0},Te=w.useMemo(()=>{const y=!x||!t?!1:N(s)?F().isPaused()||o?!1:N(c)?!0:c:s,P=ee=>{const Ee=Le(ee);return delete Ee._k,y?{isValidating:!0,isLoading:!0,...Ee}:Ee},X=H(),$=ne(),de=P(X),ke=X===$?de:P($);let Q=de;return[()=>{const ee=P(H());return Re(ee,Q)?(Q.data=ee.data,Q.isLoading=ee.isLoading,Q.isValidating=ee.isValidating,Q.error=ee.error,Q):(Q=ee,ee)},()=>ke]},[n,x]),ue=co.useSyncExternalStore(w.useCallback(y=>he(x,(P,X)=>{Re(X,P)||y()}),[n,x]),Te[0],Te[1]),we=!_.current,R=m[x]&&m[x].length>0,C=ue.data,B=N(C)?pe:C,W=ue.error,z=w.useRef(B),G=f?N(C)?z.current:C:B,L=R&&!N(W)?!1:we&&!N(s)?s:F().isPaused()?!1:o?N(B)?!1:c:N(B)||c,U=!!(x&&t&&we&&L),J=N(ue.isValidating)?U:ue.isValidating,te=N(ue.isLoading)?U:ue.isLoading,M=w.useCallback(async y=>{const P=j.current;if(!x||!P||k.current||F().isPaused())return!1;let X,$,de=!0;const ke=y||{},Q=!g[x]||!ke.dedupe,ee=()=>Bt?!k.current&&x===b.current&&_.current:x===b.current,Ee={isValidating:!1,isLoading:!1},Ye=()=>{oe(Ee)},qe=()=>{const S=g[x];S&&S[1]===$&&delete g[x]},Ke={isValidating:!0};N(H().data)&&(Ke.isLoading=!0);try{if(Q&&(oe(Ke),i.loadingTimeout&&N(H().data)&&setTimeout(()=>{de&&ee()&&F().onLoadingSlow(x,i)},i.loadingTimeout),g[x]=[P(O),wt()]),[X,$]=g[x],X=await X,Q&&setTimeout(qe,i.dedupingInterval),!g[x]||g[x][1]!==$)return Q&&ee()&&F().onDiscarded(x),!1;Ee.error=Ae;const S=v[x];if(!N(S)&&($<=S[0]||$<=S[1]||S[1]===0))return Ye(),Q&&ee()&&F().onDiscarded(x),!1;const A=H().data;Ee.data=r(A,X)?A:X,Q&&ee()&&F().onSuccess(X,x,i)}catch(S){qe();const A=F(),{shouldRetryOnError:ae}=A;A.isPaused()||(Ee.error=S,Q&&ee()&&(A.onError(S,x,A),(ae===!0||ze(ae)&&ae(S))&&(!F().revalidateOnFocus||!F().revalidateOnReconnect||Y())&&A.onErrorRetry(S,x,A,xe=>{const Oe=m[x];Oe&&Oe[0]&&Oe[0](He.ERROR_REVALIDATE_EVENT,xe)},{retryCount:(ke.retryCount||0)+1,dedupe:!0})))}return de=!1,Ye(),!0},[x,n]),ye=w.useCallback((...y)=>ui(n,b.current,...y),[]);if(Qe(()=>{j.current=t,q.current=i,N(C)||(z.current=C)}),Qe(()=>{if(!x)return;const y=M.bind(Ae,fi);let P=0;const $=wo(x,m,(de,ke={})=>{if(de==He.FOCUS_EVENT){const Q=Date.now();F().revalidateOnFocus&&Q>P&&Y()&&(P=Q+F().focusThrottleInterval,y())}else if(de==He.RECONNECT_EVENT)F().revalidateOnReconnect&&Y()&&y();else{if(de==He.MUTATE_EVENT)return M();if(de==He.ERROR_REVALIDATE_EVENT)return M(ke)}});return k.current=!1,b.current=x,_.current=!0,oe({_k:O}),L&&(N(B)||lt?y():lo(y)),()=>{k.current=!0,$()}},[x]),Qe(()=>{let y;function P(){const $=ze(p)?p(H().data):p;$&&y!==-1&&(y=setTimeout(X,$))}function X(){!H().error&&(l||F().isVisible())&&(u||F().isOnline())?M(fi).then(P):P()}return P(),()=>{y&&(clearTimeout(y),y=-1)}},[p,l,u,x]),w.useDebugValue(G),o&&N(B)&&x){if(!Bt&<)throw new Error("Fallback data is required when using suspense in SSR.");j.current=t,q.current=i,k.current=!1;const y=E[x];if(!N(y)){const P=ye(y);So(P)}if(N(W)){const P=M(fi);N(G)||(P.status="fulfilled",P.value=!0),So(P)}else throw W}return{mutate:ye,get data(){return V.data=!0,G},get error(){return V.error=!0,W},get isValidating(){return V.isValidating=!0,J},get isLoading(){return V.isLoading=!0,te}}}),Ro=Bt?e=>{e()}:w.startTransition,Hl=e=>{const[,t]=w.useState({}),i=w.useRef(!1),n=w.useRef(e),r=w.useRef({data:!1,error:!1,isValidating:!1}),o=w.useCallback(a=>{let s=!1;const c=n.current;for(const p in a){const l=p;c[l]!==a[l]&&(c[l]=a[l],r.current[l]&&(s=!0))}s&&!i.current&&t({})},[]);return Qe(()=>(i.current=!1,()=>{i.current=!0})),[n,r.current,o]},Gl=Wl(Vl,()=>(e,t,i={})=>{const{mutate:n}=yo(),r=w.useRef(e),o=w.useRef(t),a=w.useRef(i),s=w.useRef(0),[c,p,l]=Hl({data:Ae,error:Ae,isMutating:!1}),u=c.current,f=w.useCallback(async(v,g)=>{const[E,x]=zt(r.current);if(!o.current)throw new Error("Can’t trigger the mutation: missing fetcher.");if(!E)throw new Error("Can’t trigger the mutation: missing key.");const O=Le(Le({populateCache:!1,throwOnError:!0},a.current),g),_=wt();s.current=_,l({isMutating:!0});try{const k=await n(E,o.current(x,{arg:v}),Le(O,{throwOnError:!0}));return s.current<=_&&(Ro(()=>l({data:k,isMutating:!1,error:void 0})),O.onSuccess==null||O.onSuccess.call(O,k,E,O)),k}catch(k){if(s.current<=_&&(Ro(()=>l({error:k,isMutating:!1})),O.onError==null||O.onError.call(O,k,E,O),O.throwOnError))throw k}},[]),m=w.useCallback(()=>{s.current=wt(),l({data:Ae,error:Ae,isMutating:!1})},[]);return Qe(()=>{r.current=e,o.current=t,a.current=i}),{trigger:f,reset:m,get data(){return p.data=!0,u.data},get error(){return p.error=!0,u.error},get isMutating(){return p.isMutating=!0,u.isMutating}}}),Yl=e=>ve.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",...e,children:[ve.jsx("path",{opacity:"0.15",d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8Z"}),ve.jsx("path",{d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",strokeLinecap:"round"})]}),Kl=ba({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Jl=$e(Yl,{animation:`${Kl} 2s linear infinite`,variants:{size:{sm:{width:"16px",height:"16px",strokeWidth:"1px"},md:{width:"24px",height:"24px",strokeWidth:"1.5px"},lg:{width:"32px",height:"32px",strokeWidth:"2px"}}}}),Xl=e=>ve.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:ve.jsx("path",{d:"M6.04995 2.74998C6.04995 2.44623 5.80371 2.19998 5.49995 2.19998C5.19619 2.19998 4.94995 2.44623 4.94995 2.74998V12.25C4.94995 12.5537 5.19619 12.8 5.49995 12.8C5.80371 12.8 6.04995 12.5537 6.04995 12.25V2.74998ZM10.05 2.74998C10.05 2.44623 9.80371 2.19998 9.49995 2.19998C9.19619 2.19998 8.94995 2.44623 8.94995 2.74998V12.25C8.94995 12.5537 9.19619 12.8 9.49995 12.8C9.80371 12.8 10.05 12.5537 10.05 12.25V2.74998Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}),Zl=({...e})=>ve.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",xmlns:"http://www.w3.orkllg/2000/svg",fill:"currentColor",...e,children:ve.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.1869 3.71487C5.42703 3.57009 5.72543 3.56159 5.9734 3.69247L20.3734 11.2925C20.6358 11.431 20.8 11.7033 20.8 12C20.8 12.2967 20.6358 12.569 20.3734 12.7075L5.9734 20.3075C5.72543 20.4384 5.42703 20.4299 5.1869 20.2851C4.94679 20.1403 4.79999 19.8803 4.79999 19.6V4.39998C4.79999 4.11959 4.94679 3.85966 5.1869 3.71487Z",fill:"currentColor"})}),Ql=e=>{if(!e)return!1;const t=e.split("?")[1];if(!t)return!1;const n=new URLSearchParams(t).get("Expires");return n?new Date(n)<new Date:!1},To=e=>e&&e.split("?")[0],ep=(e,t)=>To(e)===To(t),tp=()=>{const[e,t]=w.useState("paused"),i=()=>{if(typeof window>"u")return null;const p=new Audio;return p.addEventListener("play",()=>t("playing")),p},n=w.useMemo(i,[]),r=w.useRef(n);return{audioRef:r,state:e,setAudio:p=>new Promise(l=>{const u=r==null?void 0:r.current;u&&(u.setAttribute("src",p),t("loading"),u.addEventListener("loadedmetadata",()=>{t("paused"),l()},{once:!0}))}),play:()=>{var p,l;(p=r.current)==null||p.play(),(l=r.current)==null||l.addEventListener("ended",()=>t("paused"),{once:!0})},pause:()=>{var p;(p=r.current)==null||p.pause(),t("paused")},stop:()=>{var l;r.current&&((l=r.current)==null||l.pause(),r.current.currentTime=0),t("paused")}}},mi=w.createContext(null),ko=e=>{var a;const t=w.useContext(mi),i=ep((a=t.audioRef.current)==null?void 0:a.src,e),n=t.state==="loading"&&i,r=t.state==="playing"&&i;return{...t,isMySrc:i,isLoading:n,isPlaying:r,play:async()=>{var c;const s=(c=t.audioRef.current)==null?void 0:c.src;(!i||Ql(s))&&await t.setAudio(e),t.play()}}},np=()=>w.useContext(mi),Oo=({children:e})=>{const t=tp();return ve.jsx(mi.Provider,{value:t,children:e})},Co=(e,t,i)=>{const n=ko(e),r=w.useRef(!1),o=()=>{r.current||(r.current=!0),n.isPlaying?(n.pause(),i==null||i()):(n.play(),t==null||t())};return w.useEffect(()=>()=>{n.isPlaying&&n.pause()},[]),{player:n,playPause:o}},pt=({limit:e,isTrue:t,children:i})=>{const n=[];return t!==!0?null:(qo.Children.map(i,r=>{const{isTrue:o}=(r==null?void 0:r.props)||{};o===!0&&(!e||n.length<e)&&n.push(r)}),ve.jsx(ve.Fragment,{children:n}))};pt.defaultProps={limit:1,isTrue:!0},pt.If=({children:e,isTrue:t})=>e;const _o=({children:e})=>e;_o.defaultProps={isTrue:!0},pt.Else=_o;const ip=e=>{const t=r=>typeof r=="object"&&!(r instanceof Date)&&!(r instanceof File)&&r!==null,i=(r,o,a)=>{for(const s in o){const c=o[s];t(c)?i(`${r}[${s}]`,c,a):c!==void 0&&a.append(`${r}[${s}]`,c===null?"":c)}},n=new FormData;for(const r in e){const o=e[r];o instanceof File?n.append(r,o,o.name):o!==void 0&&(t(o)?i(r,o,n):n.append(r,o===null?"":o))}return n},rp=$e("div",{"--progress":"-100%",height:"8px",width:"100%",background:"rgba(255, 255, 255, 0.1)",borderRadius:"12px",position:"relative",overflow:"hidden"}),op=$e("div",{height:"100%",width:"100%",background:"#ffffff",transition:"transform 0.2s ease-in-out",transform:"translateX(var(--progress))",borderRadius:"12px"}),Ao={Root:rp,Bar:op};function vn(e,t,i){for(let n=0;n<e.length;++n)t[i+n]=e.charCodeAt(n)}function gn(e,t,i){e=Math.floor(e),t[i+0]=e&255,t[i+1]=e>>8&255}function ut(e,t,i){e=Math.floor(e),t[i+0]=e&255,t[i+1]=e>>8&255,t[i+2]=e>>16&255,t[i+3]=e>>24&255}function ap(e){const t=new ArrayBuffer(4);return new Float32Array(t)[0]=e,new Uint32Array(t)[0]|0}function sp(e,t,i,n){let r=0,o=0;const a=e.length,s=e.numberOfChannels;let c,p;for(r=0;r<a;++r)for(o=0;o<s;++o)if(c=e.getChannelData(o),n===16)p=c[r]*32768,p=Math.max(-32768,Math.min(p,32767)),gn(p,t,i),i+=2;else if(n===32)p=ap(c[r]),ut(p,t,i),i+=4;else{console.log("Invalid bit depth for PCM encoding.");return}}async function cp(e,t){let i=e instanceof Blob?e:new Blob(e);const n=URL.createObjectURL(i),o=await(await fetch(n)).arrayBuffer();return await new AudioContext(t).decodeAudioData(o)}async function lp(e,t=!1){const i=e.length,n=e.numberOfChannels,r=e.sampleRate,o=t?32:16,a=o/8,s=r*n*o/8,c=n*o/8,p=i*n*a,u=44+p,f=new Uint8Array(u),m=16,v=p,g=4+(8+m)+(8+v);return vn("RIFF",f,0),ut(g,f,4),vn("WAVE",f,8),vn("fmt ",f,12),ut(m,f,16),gn(t?3:1,f,20),gn(n,f,22),ut(r,f,24),ut(s,f,28),gn(c,f,32),ut(o,f,34),vn("data",f,36),ut(v,f,40),sp(e,f,44,o),new Blob([f],{type:"audio/wave"})}async function pp(e,t=!1,i){const n=await cp(e,i);return lp(n,t)}const up=128;class dp{constructor(){bn(this,"mediaRecorder",null);bn(this,"stream",null);bn(this,"__data",null)}async checkMicrophonePermission(){var n;return!!(await((n=navigator==null?void 0:navigator.mediaDevices)==null?void 0:n.enumerateDevices())).find(r=>r.kind==="audioinput"&&!!r.label)}async startRecording(){var t;if(((t=this.mediaRecorder)==null?void 0:t.state)==="recording")return!0;try{this.stream=await navigator.mediaDevices.getUserMedia({audio:!0,video:!1}),this.mediaRecorder=new MediaRecorder(this.stream,{bitsPerSecond:up*1e3}),this.mediaRecorder.ondataavailable=i=>this.__data=i.data}catch(i){return console.error(i),!1}return this.mediaRecorder.start(),!0}stopRecording(){return new Promise(t=>{var i;if(((i=this.mediaRecorder)==null?void 0:i.state)!=="recording"){t(!0);return}this.mediaRecorder.stop(),this.mediaRecorder.onstop=()=>{var n;(n=this.stream)==null||n.getTracks().forEach(r=>r.stop()),this.mediaRecorder=null,this.stream=null,t(!0)}})}async getWavBlob(){return this.__data?await pp(this.__data):null}}const hn=new dp,xi="Recording.wav",Do=1500,fp=e=>{const[t,i]=w.useState(!1),[n,r]=w.useState(!1),[o,a]=w.useState(!1);return w.useEffect(()=>{var p;const c=async()=>{hn.checkMicrophonePermission().then(i)};return c(),(p=navigator==null?void 0:navigator.mediaDevices)==null||p.addEventListener("devicechange",c),()=>{var l;return(l=navigator==null?void 0:navigator.mediaDevices)==null?void 0:l.removeEventListener("devicechange",c)}},[]),{hasMicAccess:t,isRecording:n,hasMinTimeElapsed:o,handleClick:async()=>{if(n){if(!o)return;r(!1),a(!1),await hn.stopRecording();const p=await hn.getWavBlob();if(!p){console.log("Failed to get audio blob",p);return}const l=new File([p],xi,{type:"audio/mpeg",lastModified:Date.now()});e.onFileUpdate(l);return}const c=await hn.startRecording();r(c),setTimeout(()=>{a(!0)},Do)}}},jo=_e.create({baseURL:"https://arpeggi.io/api/v2/"}),mp=async(e,{arg:t})=>(await jo.post("/ml-inference-jobs",ip({soundFile:t.file,type:"audio",voiceModelId:t.voiceModelId,metadata:{splitInstrumental:!0,isRecordedAudio:t.file.name===xi}}),{params:{type:"audio"}})).data,xp=async e=>e===null?null:(await jo.get(e)).data,vp=e=>{const t=e>0;return Ul(t?`/ml-inference-jobs/${e}`:null,xp,{refreshInterval:1e3})},gp=()=>{const[e,t]=w.useState(null),[i,n]=w.useState(0),[r,o]=w.useState(0),{data:a,isLoading:s}=vp(i),{trigger:c,isMutating:p}=Gl("/ml-inference-jobs",mp);return{file:e,setFile:t,mlijId:i,setMlijId:n,voiceModelId:r,setVoiceModelId:o,data:a,isLoading:s,handleSelectVoice:async f=>{e&&(n(0),o(f),c({file:e,voiceModelId:f},{onSuccess:m=>{console.log("created mlij",m),n(m.id)}}))},reset:()=>{t(null),n(0),o(0)},isMutating:p}},Fo=w.createContext({}),yn=()=>w.useContext(Fo),hp=({children:e})=>{const t=gp();return ve.jsx(Oo,{children:ve.jsx(Fo.Provider,{value:t,children:e})})},yp=$e("button",{background:"#ffffff",borderRadius:"12px",width:"64px",height:"64px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"none",outline:"none",transition:"background 0.2s ease-in-out, transform 0.2s ease-in-out",color:"#000000","& > svg":{width:"24px",height:"24px"},"&:hover":{background:"#ffffff99",transform:"scale(1.05)"},"&:active":{background:"#ffffffcc"},"&:disabled":{background:"rgba(255, 255, 255, 0.3)",transform:"none",cursor:"not-allowed"}}),bp=()=>{var o;const{data:e,isMutating:t}=yn(),i=(o=e==null?void 0:e.lossyOutputFile)==null?void 0:o.url,{player:n,playPause:r}=Co(i);return ve.jsx(yp,{onClick:r,disabled:n.isLoading||!i,children:ve.jsxs(pt,{children:[ve.jsx(pt.If,{isTrue:n.isLoading||(e==null?void 0:e.jobStatus)==="running"||t,children:ve.jsx(Jl,{})}),ve.jsx(pt.If,{isTrue:n.isPlaying,children:ve.jsx(Xl,{})}),ve.jsx(pt.Else,{children:ve.jsx(Zl,{})})]})})},wp=30,Po=e=>{const t=w.useRef(),i=w.useRef(null);return w.useEffect(()=>{let n=0;return t.current=setInterval(()=>{var o;n+=e;let r=Math.round(Math.atan(n)/(Math.PI/2)*100*1e3)/1e3;(o=i.current)==null||o.style.setProperty("--progress",`${-100+r}%`)},50),()=>clearInterval(t.current)},[]),i},Ep=()=>{const e=Po(.3);return ve.jsx(Ao.Root,{ref:e,children:ve.jsx(Ao.Bar,{})})},Sp=()=>{const{data:e}=yn();return ve.jsx(Ep,{},e==null?void 0:e.id)},Rp=1,Tp=100*1024*1024,kp=1,Op=({children:e})=>{const{setFile:t}=yn(),i=n=>t(n[0]);return ve.jsx(br,{files:[],onFileAccepted:i,maxFileCount:Rp,maxSizeBytes:Tp,minSizeBytes:kp,maxDurationS:wp,children:e})};fe.AudioFilePickerRoot=br,fe.ConvertStep=Ys,fe.FilePicker=Op,fe.GuestConvertProvider=hp,fe.InferenceProgress=Sp,fe.MIN_RECORDING_LENGTH_MS=Do,fe.PlayButton=bp,fe.PlayerProvider=Oo,fe.RECORDED_AUDIO_NAME=xi,fe.useAudioFilePickerContext=Ns,fe.useFakeProgress=Po,fe.useGuestConvertContext=yn,fe.usePlayback=Co,fe.usePlayer=ko,fe.usePlayerControls=np,fe.useRecorder=fp,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"})});
|
70
70
|
//# sourceMappingURL=index.umd.js.map
|