@haus-storefront-react/vendure-plugin-configs 1.0.4-next.7 → 1.0.4-next.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +824 -793
- package/badge.js +1 -1
- package/badge.mjs +439 -424
- package/campaign.js +1 -1
- package/campaign.mjs +50 -106
- package/elastic.js +1 -1
- package/elastic.mjs +10 -26
- package/index.js +1 -1
- package/index.mjs +2 -4
- package/lib/configs/vendure-badge-plugin.d.ts +2 -2
- package/lib/configs/vendure-related-products-plugin.d.ts +39 -0
- package/lib/configs/vendure-related-products-plugin.types.d.ts +16 -0
- package/lib/exports/related-products.d.ts +3 -0
- package/lib/hooks/use-related-products.d.ts +2 -0
- package/package.json +13 -7
- package/packagesize.js +1 -1
- package/packagesize.mjs +15 -59
- package/plugin-config-DrQQb9Ry.js +1 -0
- package/plugin-config-DywohMgp.mjs +903 -0
- package/product-popularity.js +1 -1
- package/product-popularity.mjs +12 -22
- package/product-variant-specifications.js +1 -1
- package/product-variant-specifications.mjs +8 -18
- package/products-by-sku.d.ts +2 -0
- package/products-by-sku.js +1 -0
- package/products-by-sku.mjs +54 -0
- package/purchase-order-payment.js +5 -5
- package/purchase-order-payment.mjs +207 -631
- package/related-products.d.ts +2 -0
- package/related-products.js +1 -0
- package/related-products.mjs +36 -0
- package/src-BCHcjT-q.mjs +455 -0
- package/src-BqcrcEUL.mjs +2718 -0
- package/src-Cj3iGasO.js +6 -0
- package/src-CvZOxNaX.js +21 -0
- package/compiler-runtime-oPPev21o.js +0 -10
- package/compiler-runtime-qHgugrLy.mjs +0 -296
- package/index-BRlTlK6a.mjs +0 -3768
- package/index-BgBC_k8M.js +0 -1
- package/index-C0E-40z0.mjs +0 -19
- package/index-CgxqXyHf.js +0 -20
- package/useSdk-DOrZRSHz.mjs +0 -2634
- package/useSdk-YXpk8Wsi.js +0 -21
package/src-Cj3iGasO.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let u=require(`react`);u=l(u);var d=function(e){return e.ACTIVE_ORDER=`activeOrder`,e.ACTIVE_CHANNEL=`activeChannel`,e.ACTIVE_CUSTOMER=`activeCustomer`,e.ACTIVE_CUSTOMER_ORDERS=`activeCustomerOrders`,e.AVAILABLE_COUNTRIES=`availableCountries`,e.FACETS=`facets`,e.ORDER_BY_CODE=`orderByCode`,e.ORDER_STATES=`orderStates`,e.PRODUCT=`product`,e.PAYMENT_METHODS=`paymentMethods`,e.SEARCH=`search`,e.SEARCH_FIELD=`searchField`,e.SHIPPING_METHODS=`shippingMethods`,e}({}),f=function(e){return e.AlreadyLoggedInError=`ALREADY_LOGGED_IN_ERROR`,e.CouponCodeExpiredError=`COUPON_CODE_EXPIRED_ERROR`,e.CouponCodeInvalidError=`COUPON_CODE_INVALID_ERROR`,e.CouponCodeLimitError=`COUPON_CODE_LIMIT_ERROR`,e.EmailAddressConflictError=`EMAIL_ADDRESS_CONFLICT_ERROR`,e.GuestCheckoutError=`GUEST_CHECKOUT_ERROR`,e.IdentifierChangeTokenExpiredError=`IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR`,e.IdentifierChangeTokenInvalidError=`IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR`,e.IneligiblePaymentMethodError=`INELIGIBLE_PAYMENT_METHOD_ERROR`,e.IneligibleShippingMethodError=`INELIGIBLE_SHIPPING_METHOD_ERROR`,e.InsufficientStockError=`INSUFFICIENT_STOCK_ERROR`,e.InvalidCredentialsError=`INVALID_CREDENTIALS_ERROR`,e.MissingPasswordError=`MISSING_PASSWORD_ERROR`,e.NativeAuthStrategyError=`NATIVE_AUTH_STRATEGY_ERROR`,e.NegativeQuantityError=`NEGATIVE_QUANTITY_ERROR`,e.NotVerifiedError=`NOT_VERIFIED_ERROR`,e.NoActiveOrderError=`NO_ACTIVE_ORDER_ERROR`,e.OrderLimitError=`ORDER_LIMIT_ERROR`,e.OrderModificationError=`ORDER_MODIFICATION_ERROR`,e.OrderPaymentStateError=`ORDER_PAYMENT_STATE_ERROR`,e.OrderStateTransitionError=`ORDER_STATE_TRANSITION_ERROR`,e.PasswordAlreadySetError=`PASSWORD_ALREADY_SET_ERROR`,e.PasswordResetTokenExpiredError=`PASSWORD_RESET_TOKEN_EXPIRED_ERROR`,e.PasswordResetTokenInvalidError=`PASSWORD_RESET_TOKEN_INVALID_ERROR`,e.PasswordValidationError=`PASSWORD_VALIDATION_ERROR`,e.PaymentDeclinedError=`PAYMENT_DECLINED_ERROR`,e.PaymentFailedError=`PAYMENT_FAILED_ERROR`,e.UnknownError=`UNKNOWN_ERROR`,e.VerificationTokenExpiredError=`VERIFICATION_TOKEN_EXPIRED_ERROR`,e.VerificationTokenInvalidError=`VERIFICATION_TOKEN_INVALID_ERROR`,e}({}),p=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),m=o((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===O?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case E:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===_)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===E)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=k.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(A.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){N||(N=!0,console.error("%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://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function l(){var e=t(this.type);return P[e]||(P[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var p=n.children;if(p!==void 0)if(o)if(j(p)){for(o=0;o<p.length;o++)f(p[o]);Object.freeze&&Object.freeze(p)}else console.error(`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 f(p);if(A.call(n,`key`)){p=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,L[p+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
|
+
let props = %s;
|
|
3
|
+
<%s {...props} />
|
|
4
|
+
React keys must be passed directly to JSX without using spread:
|
|
5
|
+
let props = %s;
|
|
6
|
+
<%s key={someKey} {...props} />`,o,p,m,p),L[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=require(`react`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.client.reference`),k=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,j=Array.isArray,M=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var N,P={},F=m.react_stack_bottom_frame.bind(m,o)(),I=M(i(o)),L={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)},e.jsxs=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)}})()})),h=o(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=p():t.exports=m()})),g=h();function _(e){let t=[];function n(n,r){let i=u.createContext(r),a=t.length;t.push(i);let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=u.useMemo(()=>o,[o]);return(0,g.jsx)(s.Provider,{value:c,children:r})};o.displayName=n+`Provider`;function s(t,o){let s=o?.[e]?.[a]||i,c=u.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${t}\` must be used within \`${n}\``)}return[o,s]}function r(){let n=t.map(e=>u.createContext(e));return function(t){let r=t?.[e]||n;return u.useMemo(()=>({[`__scope${e}`]:{...t,[e]:r}}),[t,r])}}return r.scopeName=e,[n,r]}[...`onClick.aria-label.aria-disabled.aria-hidden.aria-selected.aria-expanded.aria-controls.aria-describedby.aria-labelledby.aria-owns.aria-posinset.aria-setsize.aria-atomic.aria-busy.aria-current.aria-details.aria-dropeffect.aria-errormessage.aria-flowto.aria-grabbed.aria-haspopup.aria-invalid.aria-keyshortcuts.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-placeholder.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext`.split(`.`)],[...`onClick.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onWheel.onKeyDown.onKeyPress.onKeyUp.onFocus.onBlur.onChange.onInput.onSubmit.onReset.onSelect.onSelectStart.onSelectionChange.onInvalid.onBeforeInput.onCompositionEnd.onCompositionStart.onCompositionUpdate.onCopy.onCut.onPaste.onDrag.onDragEnd.onDragEnter.onDragExit.onDragLeave.onDragOver.onDragStart.onDrop.onScroll.onLoad.onError.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionEnd.onGotPointerCapture.onLostPointerCapture.onPointerCancel.onPointerDown.onPointerEnter.onPointerLeave.onPointerMove.onPointerOut.onPointerOver.onPointerUp.aria-label.aria-labelledby.aria-describedby.aria-controls.aria-owns.aria-activedescendant.aria-autocomplete.aria-checked.aria-current.aria-disabled.aria-expanded.aria-haspopup.aria-hidden.aria-invalid.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-placeholder.aria-pressed.aria-readonly.aria-required.aria-selected.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.role.tabIndex.contentEditable.contextMenu.dir.draggable.dropzone.hidden.id.lang.spellCheck.style.title.translate.slot.part.class.className.dataset.innerHTML.outerHTML.accessKey.autocapitalize.autocorrect.enterKeyHint.inputMode.is.itemID.itemProp.itemRef.itemScope.itemType.nonce.popover.radioGroup.referrerPolicy.rel.security.unselectable.virtualKeyboardPolicy`.split(`.`)];function v(e,t){if(t===`web`)return e;let{src:n,alt:r,width:i,height:a,...o}=e,s=[typeof i==`number`?{width:i}:void 0,typeof a==`number`?{height:a}:void 0].filter(Boolean),c;return s.length===1?c=s[0]:s.length>1&&(c=s),{...o,source:{uri:n},...c?{style:c}:{}}}function y(e){let{src:t,alt:n,...r}=e;return t?{...r,source:{uri:t}}:r}var b={div:`View`,span:`Text`,p:`Text`,h1:`Text`,h2:`Text`,h3:`Text`,h4:`Text`,h5:`Text`,h6:`Text`,button:`Pressable`,input:`TextInput`,form:`View`,section:`View`,article:`View`,nav:`View`,header:`View`,footer:`View`,main:`View`,aside:`View`,ul:`View`,ol:`View`,li:`View`,a:`Pressable`,img:`Image`,label:`Text`,textarea:`TextInput`,select:`Pressable`,option:`Text`};function x(e,t){if(t===`web`)return e;let n=null;try{n=require(`react-native`)}catch{n=null}if(!n)return console.warn(`react-native is not available at runtime; falling back to 'View' for '${e}'`),`div`;let r=b[e];if(!r)return console.warn(`No native component mapping found for '${e}', falling back to View`),n.View;if(r===`Image`){let e=u.default.forwardRef((e,t)=>e.src?(0,g.jsx)(n.Image,{ref:t,...y(e)}):null);return e.displayName=`PlatformPrimitiveImage`,e}return n[r]||(console.warn(`Native component '${r}' not found, falling back to View`),n.View)}var S=Symbol(`radix.slottable`);function C(...e){return t=>e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}function w(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]=T(i,a):r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function T(e,t){let n=(()=>{try{return require(`react-native`)}catch{return null}})()?.StyleSheet?.flatten;if(typeof e==`function`&&typeof t==`function`)return r=>{let i=[e(r),t(r)];return n?n(i):i};if(typeof e==`function`)return r=>{let i=t?[e(r),t]:e(r);return n?n(i):i};if(typeof t==`function`)return r=>{let i=e?[e,t(r)]:t(r);return n?n(i):i};let r=[e,t].filter(Boolean);return n?n(r):r}function E(e){return u.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===S}function D(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function O(e,t){let n=u.forwardRef((e,t)=>{let{children:n,...r}=e;if(u.isValidElement(n)){let e=D(n),i=w(r,n.props);return n.type!==u.Fragment&&(i.ref=t?C(t,e):e),u.cloneElement(n,i)}return u.Children.count(n)>1?u.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}function k(e,t=!1,n=`div`){if(!t)return x(n,e);let r=O(`Slot`,e),i=u.forwardRef((e,t)=>{let{children:n,...i}=e,a=u.Children.toArray(n),o=a.find(E);if(o){let e=o.props.children,n=a.map(t=>t===o?u.Children.count(e)>1?u.Children.only(null):u.isValidElement(e)?e.props.children:null:t);return(0,g.jsx)(r,{...i,ref:t,children:u.isValidElement(e)?u.cloneElement(e,void 0,n):null})}return(0,g.jsx)(r,{...i,ref:t,children:n})});return i.displayName=`Slot`,i}function A(e){let t=({children:e})=>e;return t.displayName=`${e}.Slottable`,t.__radixId=S,t}A(`Slottable`);var j=`debug`,M=()=>{try{if(typeof window>`u`||typeof localStorage>`u`)return!1;let e=localStorage.getItem(j);return e===`true`||e===`1`}catch{return!1}},N=(()=>{let e=(e,t,n=[])=>t?typeof e==`string`?[`<${t}> ${e}`,...n]:[`<${t}>`,e,...n]:Array.isArray(e)?[...e,...n]:[e,...n];return{log:(t,n,...r)=>{M()&&console.log(...e(t,n,r))},info:(t,n,...r)=>{M()&&console.info(...e(t,n,r))},warn:(t,n,...r)=>{M()&&console.warn(...e(t,n,r))},error:(t,n,...r)=>{M()&&console.error(...e(t,n,r))},debug:(t,n,...r)=>{M()&&console.debug(...e(t,n,r))},group:(e,t)=>{if(M()){let n=typeof e==`string`?e:void 0;t?console.group(n?`<${t}> ${n}`:`<${t}>`):console.group(n)}},groupCollapsed:(e,t)=>{if(M()){let n=typeof e==`string`?e:void 0;t?console.groupCollapsed(n?`<${t}> ${n}`:`<${t}>`):console.groupCollapsed(n)}},groupEnd:()=>{M()&&console.groupEnd()},table:(e,t,n)=>{M()&&(t&&console.log(`<${t}>`),console.table(e,n))},time:(e,t)=>{if(M()){let n=typeof e==`string`?e:void 0;t?console.time(n?`<${t}> ${n}`:`<${t}>`):console.time(n)}},timeEnd:(e,t)=>{if(M()){let n=typeof e==`string`?e:void 0;t?console.timeEnd(n?`<${t}> ${n}`:`<${t}>`):console.timeEnd(n)}}}})(),P=e=>e==null?0:typeof e==`number`?e:`value`in e?e.value:`min`in e?e.min:0,F=e=>{let t=e.map(e=>P(e.price)),n=Math.min(...t),r=Math.max(...t);return n===void 0||r===void 0?{value:0}:n===r?{value:n}:{min:n,max:r}},I=(e,t)=>typeof e==`function`?e(t):e;Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return d}});
|
package/src-CvZOxNaX.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const e=require(`./src-Cj3iGasO.js`);let t=require(`react`),n=require(`@tanstack/react-query`);function r(e){return e&&e.length?e[0]:void 0}function i(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get(`*`))&&r.slice().map(function(e){e(t,n)})}}}var a=e.d(((e,t)=>{t.exports={}})),o;try{o=require(`@react-native-async-storage/async-storage`).default}catch{o=null}var s=null;try{let{AsyncLocalStorage:e}=a();s=new e}catch{s=null}var c=typeof window<`u`&&window.localStorage!==void 0,l=!!o,u={},d={getItem:async()=>null,setItem:async()=>void 0,removeItem:async()=>void 0},f=()=>{try{return s?.getStore?.()??null}catch{return null}},p={getItem:async e=>{let t=!c&&!l?f():null;return t?t.getItem(e):l?o.getItem(e):c?new Promise(t=>{Promise.resolve().then(()=>{let n=window.localStorage.getItem(e);n!==u[e]&&(u[e]=n||``),t(n)})}):d.getItem(e)},setItem:async(e,t)=>{let n=!c&&!l?f():null;return n?n.setItem(e,t):l?o.setItem(e,t):c?new Promise((n,r)=>{Promise.resolve().then(()=>{try{window.localStorage.setItem(e,t);let i=window.localStorage.getItem(e);i===t?(u[e]=t,n()):r(Error(`Failed to set localStorage item: expected "${t}", got "${i}"`))}catch(e){r(e)}})}):d.setItem(e,t)},removeItem:async e=>{let t=!c&&!l?f():null;return t?t.removeItem(e):l?o.removeItem(e):c?new Promise((t,n)=>{Promise.resolve().then(()=>{try{window.localStorage.removeItem(e);let r=window.localStorage.getItem(e);r===null?(delete u[e],t()):n(Error(`Failed to remove localStorage item: key "${e}" still exists with value "${r}"`))}catch(e){n(e)}})}):d.removeItem(e)}},m=50,h={get:async()=>{try{let e=await p.getItem(`eventHistory`);return e?JSON.parse(e):[]}catch(e){return console.error(`Error getting event history`,e),[]}},set:async e=>{try{await p.setItem(`eventHistory`,JSON.stringify(e.slice(-m)))}catch(e){console.error(`Error setting event history`,e)}},clear:async()=>{try{await p.removeItem(`eventHistory`)}catch(e){console.error(`Error clearing event history`,e)}},push:async e=>{let t=await h.get();await h.set([{...e,timestamp:Date.now()},...t].slice(-m))},find:async e=>(await h.get()).find(t=>t.key===e.key&&t.identifier===e.identifier),filter:async(e,t)=>{let n=await h.get();return t?n.filter(t):n.filter(({key:t,identifier:n})=>(!t||e.key===t)&&(!n||e.identifier===n))}};function g(){let e=globalThis;return e.__HAUS_EVENT_EMITTER__||=i(),e.__HAUS_EVENT_EMITTER__}function _(t){let n=g(),i=t?.onError??((...e)=>console.error(...e));h.get().then(t=>{let n=r(t)?.timestamp;n&&n<Date.now()-1e3*60*60&&(e.i.info(`Clearing event history since it is older than 1 hour:`,`eventBus`,n),h.clear())});let a=(e,t,r)=>(n.on(e,e=>{try{if(typeof e==`object`&&e){let{identifier:n,data:i}=e;(!n||n===r)&&t(i)}else t(e)}catch(e){i(e)}}),()=>{o(e,t,r)}),o=(e,t,r)=>{n.off(e,i=>{if(typeof i==`object`&&i){let{identifier:a}=i;(!a||a===r)&&n.off(e,t)}})};return{on:a,off:o,once:(e,t,r)=>{let i=n=>{try{if(typeof n==`object`&&n){let{identifier:e,data:i}=n;(!e||e===r)&&t(i)}else t(n)}finally{o(e,i,r)}};n.on(e,i)},emit:(e,t,...r)=>{let i={identifier:t,data:r.length===1?r[0]:r};h.push({key:e,identifier:t,payload:i.data}),n.emit(e,i)},getEventHistory:(e,t)=>h.filter({key:e,identifier:t})}}_(),_(),_(),_(),_(),_(),_();var v=globalThis.__STORE_SDK_CONTEXT__||=(0,t.createContext)(void 0);function y(e,t){return function(){return e.apply(t,arguments)}}var{toString:ee}=Object.prototype,{getPrototypeOf:b}=Object,{iterator:x,toStringTag:S}=Symbol,C=(e=>t=>{let n=ee.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),w=e=>(e=e.toLowerCase(),t=>C(t)===e),T=e=>t=>typeof t===e,{isArray:E}=Array,D=T(`undefined`);function O(e){return e!==null&&!D(e)&&e.constructor!==null&&!D(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var te=w(`ArrayBuffer`);function ne(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&te(e.buffer),t}var re=T(`string`),k=T(`function`),ie=T(`number`),A=e=>typeof e==`object`&&!!e,ae=e=>e===!0||e===!1,j=e=>{if(C(e)!==`object`)return!1;let t=b(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(S in e)&&!(x in e)},oe=e=>{if(!A(e)||O(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},se=w(`Date`),ce=w(`File`),le=w(`Blob`),ue=w(`FileList`),de=e=>A(e)&&k(e.pipe),fe=e=>{let t;return e&&(typeof FormData==`function`&&e instanceof FormData||k(e.append)&&((t=C(e))===`formdata`||t===`object`&&k(e.toString)&&e.toString()===`[object FormData]`))},pe=w(`URLSearchParams`),[me,he,ge,_e]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(w),ve=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function M(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),E(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(O(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function ye(e,t){if(O(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var N=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,be=e=>!D(e)&&e!==N;function xe(){let{caseless:e,skipUndefined:t}=be(this)&&this||{},n={},r=(r,i)=>{let a=e&&ye(n,i)||i;j(n[a])&&j(r)?n[a]=xe(n[a],r):j(r)?n[a]=xe({},r):E(r)?n[a]=r.slice():(!t||!D(r))&&(n[a]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&M(arguments[e],r);return n}var Se=(e,t,n,{allOwnKeys:r}={})=>(M(t,(t,r)=>{n&&k(t)?e[r]=y(t,n):e[r]=t},{allOwnKeys:r}),e),Ce=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),we=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,`super`,{value:t.prototype}),n&&Object.assign(e.prototype,n)},Te=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&b(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ee=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},De=e=>{if(!e)return null;if(E(e))return e;let t=e.length;if(!ie(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},Oe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&b(Uint8Array)),ke=(e,t)=>{let n=(e&&e[x]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Ae=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},je=w(`HTMLFormElement`),Me=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),Ne=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Pe=w(`RegExp`),Fe=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};M(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Ie=e=>{Fe(e,(t,n)=>{if(k(e)&&[`arguments`,`caller`,`callee`].indexOf(n)!==-1)return!1;let r=e[n];if(k(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},Le=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return E(e)?r(e):r(String(e).split(t)),n},Re=()=>{},ze=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Be(e){return!!(e&&k(e.append)&&e[S]===`FormData`&&e[x])}var Ve=e=>{let t=Array(10),n=(e,r)=>{if(A(e)){if(t.indexOf(e)>=0)return;if(O(e))return e;if(!(`toJSON`in e)){t[r]=e;let i=E(e)?[]:{};return M(e,(e,t)=>{let a=n(e,r+1);!D(a)&&(i[t]=a)}),t[r]=void 0,i}}return e};return n(e,0)},He=w(`AsyncFunction`),Ue=e=>e&&(A(e)||k(e))&&k(e.then)&&k(e.catch),We=((e,t)=>e?setImmediate:t?((e,t)=>(N.addEventListener(`message`,({source:n,data:r})=>{n===N&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),N.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,k(N.postMessage)),P={isArray:E,isArrayBuffer:te,isBuffer:O,isFormData:fe,isArrayBufferView:ne,isString:re,isNumber:ie,isBoolean:ae,isObject:A,isPlainObject:j,isEmptyObject:oe,isReadableStream:me,isRequest:he,isResponse:ge,isHeaders:_e,isUndefined:D,isDate:se,isFile:ce,isBlob:le,isRegExp:Pe,isFunction:k,isStream:de,isURLSearchParams:pe,isTypedArray:Oe,isFileList:ue,forEach:M,merge:xe,extend:Se,trim:ve,stripBOM:Ce,inherits:we,toFlatObject:Te,kindOf:C,kindOfTest:w,endsWith:Ee,toArray:De,forEachEntry:ke,matchAll:Ae,isHTMLForm:je,hasOwnProperty:Ne,hasOwnProp:Ne,reduceDescriptors:Fe,freezeMethods:Ie,toObjectSet:Le,toCamelCase:Me,noop:Re,toFiniteNumber:ze,findKey:ye,global:N,isContextDefined:be,isSpecCompliantForm:Be,toJSONObject:Ve,isAsyncFn:He,isThenable:Ue,setImmediate:We,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(N):typeof process<`u`&&process.nextTick||We,isIterable:e=>e!=null&&k(e[x])};function F(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name=`AxiosError`,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}P.inherits(F,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:P.toJSONObject(this.config),code:this.code,status:this.status}}});var Ge=F.prototype,Ke={};[`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=>{Ke[e]={value:e}}),Object.defineProperties(F,Ke),Object.defineProperty(Ge,`isAxiosError`,{value:!0}),F.from=(e,t,n,r,i,a)=>{let o=Object.create(Ge);P.toFlatObject(e,o,function(e){return e!==Error.prototype},e=>e!==`isAxiosError`);let s=e&&e.message?e.message:`Error`,c=t==null&&e?e.code:t;return F.call(o,s,c,n,r,i),e&&o.cause==null&&Object.defineProperty(o,`cause`,{value:e,configurable:!0}),o.name=e&&e.name||`Error`,a&&Object.assign(o,a),o};function I(e){return P.isPlainObject(e)||P.isArray(e)}function qe(e){return P.endsWith(e,`[]`)?e.slice(0,-2):e}function Je(e,t,n){return e?e.concat(t).map(function(e,t){return e=qe(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function Ye(e){return P.isArray(e)&&!e.some(I)}var Xe=P.toFlatObject(P,{},null,function(e){return/^is[A-Z]/.test(e)});function L(e,t,n){if(!P.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=P.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!P.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||l,a=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<`u`&&Blob)&&P.isSpecCompliantForm(t);if(!P.isFunction(i))throw TypeError(`visitor must be a function`);function c(e){if(e===null)return``;if(P.isDate(e))return e.toISOString();if(P.isBoolean(e))return e.toString();if(!s&&P.isBlob(e))throw new F(`Blob is not supported. Use a Buffer instead.`);return P.isArrayBuffer(e)||P.isTypedArray(e)?s&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function l(e,n,i){let s=e;if(e&&!i&&typeof e==`object`){if(P.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(P.isArray(e)&&Ye(e)||(P.isFileList(e)||P.endsWith(n,`[]`))&&(s=P.toArray(e)))return n=qe(n),s.forEach(function(e,r){!(P.isUndefined(e)||e===null)&&t.append(o===!0?Je([n],r,a):o===null?n:n+`[]`,c(e))}),!1}return I(e)?!0:(t.append(Je(i,n,a),c(e)),!1)}let u=[],d=Object.assign(Xe,{defaultVisitor:l,convertValue:c,isVisitable:I});function f(e,n){if(!P.isUndefined(e)){if(u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),P.forEach(e,function(e,r){(!(P.isUndefined(e)||e===null)&&i.call(t,e,P.isString(r)?r.trim():r,n,d))===!0&&f(e,n?n.concat(r):[r])}),u.pop()}}if(!P.isObject(e))throw TypeError(`data must be an object`);return f(e),t}function Ze(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`,"%00":`\0`};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Qe(e,t){this._pairs=[],e&&L(e,this,t)}var $e=Qe.prototype;$e.append=function(e,t){this._pairs.push([e,t])},$e.toString=function(e){let t=e?function(t){return e.call(this,t,Ze)}:Ze;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function et(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function tt(e,t,n){if(!t)return e;let r=n&&n.encode||et;P.isFunction(n)&&(n={serialize:n});let i=n&&n.serialize,a;if(a=i?i(t,n):P.isURLSearchParams(t)?t.toString():new Qe(t,n).toString(r),a){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+a}return e}var nt=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){P.forEach(this.handlers,function(t){t!==null&&e(t)})}},rt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},it={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:Qe,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},at=e.f({hasBrowserEnv:()=>ot,hasStandardBrowserEnv:()=>ct,hasStandardBrowserWebWorkerEnv:()=>lt,navigator:()=>st,origin:()=>ut}),ot=typeof window<`u`&&typeof document<`u`,st=typeof navigator==`object`&&navigator||void 0,ct=ot&&(!st||[`ReactNative`,`NativeScript`,`NS`].indexOf(st.product)<0),lt=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,ut=ot&&window.location.href||`http://localhost`,R={...at,...it};function dt(e,t){return L(e,new R.classes.URLSearchParams,{visitor:function(e,t,n,r){return R.isNode&&P.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function ft(e){return P.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function pt(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function mt(e){function t(e,n,r,i){let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&P.isArray(r)?r.length:a,s?(P.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o):((!r[a]||!P.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&P.isArray(r[a])&&(r[a]=pt(r[a])),!o)}if(P.isFormData(e)&&P.isFunction(e.entries)){let n={};return P.forEachEntry(e,(e,r)=>{t(ft(e),r,n,0)}),n}return null}function ht(e,t,n){if(P.isString(e))try{return(t||JSON.parse)(e),P.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var z={transitional:rt,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=P.isObject(e);if(i&&P.isHTMLForm(e)&&(e=new FormData(e)),P.isFormData(e))return r?JSON.stringify(mt(e)):e;if(P.isArrayBuffer(e)||P.isBuffer(e)||P.isStream(e)||P.isFile(e)||P.isBlob(e)||P.isReadableStream(e))return e;if(P.isArrayBufferView(e))return e.buffer;if(P.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return dt(e,this.formSerializer).toString();if((a=P.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let t=this.env&&this.env.FormData;return L(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType(`application/json`,!1),ht(e)):e}],transformResponse:[function(e){let t=this.transitional||z.transitional,n=t&&t.forcedJSONParsing,r=this.responseType===`json`;if(P.isResponse(e)||P.isReadableStream(e))return e;if(e&&P.isString(e)&&(n&&!this.responseType||r)){let n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n)throw e.name===`SyntaxError`?F.from(e,F.ERR_BAD_RESPONSE,this,null,this.response):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:R.classes.FormData,Blob:R.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};P.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`],e=>{z.headers[e]={}});var gt=P.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`]),_t=e=>{let t={},n,r,i;return e&&e.split(`
|
|
2
|
+
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&>[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t},vt=Symbol(`internals`);function B(e){return e&&String(e).trim().toLowerCase()}function V(e){return e===!1||e==null?e:P.isArray(e)?e.map(V):String(e)}function yt(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var bt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function xt(e,t,n,r,i){if(P.isFunction(r))return r.call(this,t,n);if(i&&(t=n),P.isString(t)){if(P.isString(r))return t.indexOf(r)!==-1;if(P.isRegExp(r))return r.test(t)}}function St(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Ct(e,t){let n=P.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var H=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=B(t);if(!i)throw Error(`header name must be a non-empty string`);let a=P.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=V(e))}let a=(e,t)=>P.forEach(e,(e,n)=>i(e,n,t));if(P.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(P.isString(e)&&(e=e.trim())&&!bt(e))a(_t(e),t);else if(P.isObject(e)&&P.isIterable(e)){let n={},r,i;for(let t of e){if(!P.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?P.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=B(e),e){let n=P.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return yt(e);if(P.isFunction(t))return t.call(this,e,n);if(P.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=B(e),e){let n=P.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||xt(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=B(e),e){let i=P.findKey(n,e);i&&(!t||xt(n,n[i],i,t))&&(delete n[i],r=!0)}}return P.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||xt(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return P.forEach(this,(r,i)=>{let a=P.findKey(n,i);if(a){t[a]=V(r),delete t[i];return}let o=e?St(i):String(i).trim();o!==i&&delete t[i],t[o]=V(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return P.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&P.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[vt]=this[vt]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=B(e);t[r]||(Ct(n,e),t[r]=!0)}return P.isArray(e)?e.forEach(r):r(e),this}};H.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),P.reduceDescriptors(H.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),P.freezeMethods(H);function wt(e,t){let n=this||z,r=t||n,i=H.from(r.headers),a=r.data;return P.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Tt(e){return!!(e&&e.__CANCEL__)}function U(e,t,n){F.call(this,e??`canceled`,F.ERR_CANCELED,t,n),this.name=`CanceledError`}P.inherits(U,F,{__CANCEL__:!0});function Et(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new F(`Request failed with status code `+n.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Dt(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||``}function Ot(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function kt(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var W=(e,t,n=3)=>{let r=0,i=Ot(50,250);return kt(n=>{let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=a-r,c=i(s),l=a<=o;r=a,e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:c||void 0,estimated:c&&o&&l?(o-a)/c:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},At=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},jt=e=>(...t)=>P.asap(()=>e(...t)),Mt=R.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,R.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(R.origin),R.navigator&&/(msie|trident)/i.test(R.navigator.userAgent)):()=>!0,Nt=R.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];P.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),P.isString(r)&&s.push(`path=${r}`),P.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),P.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(?:^|; )`+e+`=([^;]*)`));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function Pt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ft(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}function It(e,t,n){let r=!Pt(t);return e&&(r||n==0)?Ft(e,t):t}var Lt=e=>e instanceof H?{...e}:e;function G(e,t){t||={};let n={};function r(e,t,n,r){return P.isPlainObject(e)&&P.isPlainObject(t)?P.merge.call({caseless:r},e,t):P.isPlainObject(t)?P.merge({},t):P.isArray(t)?t.slice():t}function i(e,t,n,i){if(!P.isUndefined(t))return r(e,t,n,i);if(!P.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!P.isUndefined(t))return r(void 0,t)}function o(e,t){if(!P.isUndefined(t))return r(void 0,t);if(!P.isUndefined(e))return r(void 0,e)}function s(n,i,a){if(a in t)return r(n,i);if(a in e)return r(void 0,n)}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(Lt(e),Lt(t),n,!0)};return P.forEach(Object.keys({...e,...t}),function(r){let a=c[r]||i,o=a(e[r],t[r],r);P.isUndefined(o)&&a!==s||(n[r]=o)}),n}var Rt=e=>{let t=G({},e),{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=H.from(o),t.url=tt(It(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set(`Authorization`,`Basic `+btoa((s.username||``)+`:`+(s.password?unescape(encodeURIComponent(s.password)):``))),P.isFormData(n)){if(R.hasStandardBrowserEnv||R.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(P.isFunction(n.getHeaders)){let e=n.getHeaders(),t=[`content-type`,`content-length`];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)})}}if(R.hasStandardBrowserEnv&&(r&&P.isFunction(r)&&(r=r(t)),r||r!==!1&&Mt(t.url))){let e=i&&a&&Nt.read(a);e&&o.set(i,e)}return t},zt=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=Rt(e),i=r.data,a=H.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=H.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());Et(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf(`file:`)===0)||setTimeout(g)},h.onabort=function(){h&&=(n(new F(`Request aborted`,F.ECONNABORTED,e,h)),null)},h.onerror=function(t){let r=new F(t&&t.message?t.message:`Network Error`,F.ERR_NETWORK,e,h);r.event=t||null,n(r),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||rt;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new F(t,i.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,e,h)),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&P.forEach(a.toJSON(),function(e,t){h.setRequestHeader(t,e)}),P.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=W(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=W(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new U(null,e,h):t),h.abort(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=Dt(r.url);if(_&&R.protocols.indexOf(_)===-1){n(new F(`Unsupported protocol `+_+`:`,F.ERR_BAD_REQUEST,e));return}h.send(i||null)})},Bt=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController,r,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof F?t:new U(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new F(`timeout ${t} of ms exceeded`,F.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>P.asap(o),s}},Vt=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Ht=async function*(e,t){for await(let n of Ut(e))yield*Vt(n,t)},Ut=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Wt=(e,t,n,r)=>{let i=Ht(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},Gt=64*1024,{isFunction:K}=P,Kt=(({Request:e,Response:t})=>({Request:e,Response:t}))(P.global),{ReadableStream:qt,TextEncoder:Jt}=P.global,Yt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Xt=e=>{e=P.merge.call({skipUndefined:!0},Kt,e);let{fetch:t,Request:n,Response:r}=e,i=t?K(t):typeof fetch==`function`,a=K(n),o=K(r);if(!i)return!1;let s=i&&K(qt),c=i&&(typeof Jt==`function`?(e=>t=>e.encode(t))(new Jt):async e=>new Uint8Array(await new n(e).arrayBuffer())),l=a&&s&&Yt(()=>{let e=!1,t=new n(R.origin,{body:new qt,method:`POST`,get duplex(){return e=!0,`half`}}).headers.has(`Content-Type`);return e&&!t}),u=o&&s&&Yt(()=>P.isReadableStream(new r(``).body)),d={stream:u&&(e=>e.body)};i&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new F(`Response type '${e}' is not supported`,F.ERR_NOT_SUPPORT,n)})});let f=async e=>{if(e==null)return 0;if(P.isBlob(e))return e.size;if(P.isSpecCompliantForm(e))return(await new n(R.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(P.isArrayBufferView(e)||P.isArrayBuffer(e))return e.byteLength;if(P.isURLSearchParams(e)&&(e+=``),P.isString(e))return(await c(e)).byteLength},p=async(e,t)=>P.toFiniteNumber(e.getContentLength())??f(t);return async e=>{let{url:i,method:o,data:s,signal:c,cancelToken:f,timeout:m,onDownloadProgress:h,onUploadProgress:g,responseType:_,headers:v,withCredentials:y=`same-origin`,fetchOptions:ee}=Rt(e),b=t||fetch;_=_?(_+``).toLowerCase():`text`;let x=Bt([c,f&&f.toAbortSignal()],m),S=null,C=x&&x.unsubscribe&&(()=>{x.unsubscribe()}),w;try{if(g&&l&&o!==`get`&&o!==`head`&&(w=await p(v,s))!==0){let e=new n(i,{method:`POST`,body:s,duplex:`half`}),t;if(P.isFormData(s)&&(t=e.headers.get(`content-type`))&&v.setContentType(t),e.body){let[t,n]=At(w,W(jt(g)));s=Wt(e.body,Gt,t,n)}}P.isString(y)||(y=y?`include`:`omit`);let t=a&&`credentials`in n.prototype,c={...ee,signal:x,method:o.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:`half`,credentials:t?y:void 0};S=a&&new n(i,c);let f=await(a?b(S,ee):b(i,c)),m=u&&(_===`stream`||_===`response`);if(u&&(h||m&&C)){let e={};[`status`,`statusText`,`headers`].forEach(t=>{e[t]=f[t]});let t=P.toFiniteNumber(f.headers.get(`content-length`)),[n,i]=h&&At(t,W(jt(h),!0))||[];f=new r(Wt(f.body,Gt,n,()=>{i&&i(),C&&C()}),e)}_||=`text`;let T=await d[P.findKey(d,_)||`text`](f,e);return!m&&C&&C(),await new Promise((t,n)=>{Et(t,n,{data:T,headers:H.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:S})})}catch(t){throw C&&C(),t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new F(`Network Error`,F.ERR_NETWORK,e,S),{cause:t.cause||t}):F.from(t,t&&t.code,e,S)}}},Zt=new Map,Qt=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=Zt;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Xt(t)),l=c;return c};Qt();var $t={http:null,xhr:zt,fetch:{get:Qt}};P.forEach($t,(e,t)=>{if(e){try{Object.defineProperty(e,`name`,{value:t})}catch{}Object.defineProperty(e,`adapterName`,{value:t})}});var en=e=>`- ${e}`,tn=e=>P.isFunction(e)||e===null||e===!1;function nn(e,t){e=P.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!tn(r)&&(i=$t[(n=String(r)).toLowerCase()],i===void 0))throw new F(`Unknown adapter '${n}'`);if(i&&(P.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new F(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
|
|
4
|
+
`+e.map(en).join(`
|
|
5
|
+
`):` `+en(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var rn={getAdapter:nn,adapters:$t};function an(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new U(null,e)}function on(e){return an(e),e.headers=H.from(e.headers),e.data=wt.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),rn.getAdapter(e.adapter||z.adapter,e)(e).then(function(t){return an(e),t.data=wt.call(e,e.transformResponse,t),t.headers=H.from(t.headers),t},function(t){return Tt(t)||(an(e),t&&t.response&&(t.response.data=wt.call(e,e.transformResponse,t.response),t.response.headers=H.from(t.response.headers))),Promise.reject(t)})}var sn=`1.13.2`,q={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{q[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var cn={};q.transitional=function(e,t,n){function r(e,t){return`[Axios v`+sn+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new F(r(i,` has been removed`+(t?` in `+t:``)),F.ERR_DEPRECATED);return t&&!cn[i]&&(cn[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},q.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function ln(e,t,n){if(typeof e!=`object`)throw new F(`options must be an object`,F.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=t[a];if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new F(`option `+a+` must be `+n,F.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new F(`Unknown option `+a,F.ERR_BAD_OPTION)}}var J={assertOptions:ln,validators:q},Y=J.validators,X=class{constructor(e){this.defaults=e||{},this.interceptors={request:new nt,response:new nt}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,``):``;try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,``))&&(e.stack+=`
|
|
6
|
+
`+n):e.stack=n}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=G(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&J.assertOptions(n,{silentJSONParsing:Y.transitional(Y.boolean),forcedJSONParsing:Y.transitional(Y.boolean),clarifyTimeoutError:Y.transitional(Y.boolean)},!1),r!=null&&(P.isFunction(r)?t.paramsSerializer={serialize:r}:J.assertOptions(r,{encode:Y.function,serialize:Y.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),J.assertOptions(t,{baseUrl:Y.spelling(`baseURL`),withXsrfToken:Y.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&P.merge(i.common,i[t.method]);i&&P.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],e=>{delete i[e]}),t.headers=H.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){typeof e.runWhen==`function`&&e.runWhen(t)===!1||(s&&=e.synchronous,o.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[on.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=on.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=G(this.defaults,e),tt(It(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};P.forEach([`delete`,`get`,`head`,`options`],function(e){X.prototype[e]=function(t,n){return this.request(G(n||{},{method:e,url:t,data:(n||{}).data}))}}),P.forEach([`post`,`put`,`patch`],function(e){function t(t){return function(n,r,i){return this.request(G(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}X.prototype[e]=t(),X.prototype[e+`Form`]=t(!0)});var un=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new U(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function dn(e){return function(t){return e.apply(null,t)}}function fn(e){return P.isObject(e)&&e.isAxiosError===!0}var pn={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(pn).forEach(([e,t])=>{pn[t]=e});function mn(e){let t=new X(e),n=y(X.prototype.request,t);return P.extend(n,X.prototype,t,{allOwnKeys:!0}),P.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return mn(G(e,t))},n}var Z=mn(z);Z.Axios=X,Z.CanceledError=U,Z.CancelToken=un,Z.isCancel=Tt,Z.VERSION=sn,Z.toFormData=L,Z.AxiosError=F,Z.Cancel=Z.CanceledError,Z.all=function(e){return Promise.all(e)},Z.spread=dn,Z.isAxiosError=fn,Z.mergeConfig=G,Z.AxiosHeaders=H,Z.formToJSON=e=>mt(P.isHTMLForm(e)?new FormData(e):e),Z.getAdapter=rn.getAdapter,Z.HttpStatusCode=pn,Z.default=Z;var hn=typeof window<`u`,gn=class{constructor(e={}){this.requestStrategy=async(e,t)=>{await t(e)},this.responseStrategy=async(e,t)=>{await t(e)},this.defaultBaseUrl=e.defaultBaseUrl,this.useGlobalSingletons=e.useGlobalSingletons??!1,this.globalQueryClientKey=e.globalQueryClientKey||`__STORE_QUERY_CLIENT__`,this.globalAxiosKey=e.globalAxiosKey||`__STORE_API_CLIENT__`,this.createQueryClientImpl=e.createQueryClient||(()=>new n.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!0,refetchOnMount:!1,retry:3,staleTime:1e3*60*5}}})),this.createAxiosImpl=e.createAxios||(e=>{let t=Z.create({baseURL:e||this.defaultBaseUrl,withCredentials:!0});return this.configureAxios(t)})}getQueryClient(e){if(hn){if(e?.client)return e.client;if(this.useGlobalSingletons){let e=globalThis,t=e[this.globalQueryClientKey];if(t)return t;let n=this.createQueryClientImpl();return e[this.globalQueryClientKey]=n,n}return this.queryClientSingleton||=this.createQueryClientImpl(),this.queryClientSingleton}return this.createQueryClientImpl()}getAxiosInstance(){if(hn){if(this.useGlobalSingletons){let e=globalThis,t=e[this.globalAxiosKey];if(t)return t;let n=this.configureAxios(this.createAxiosImpl());return e[this.globalAxiosKey]=n,n}return this.axiosSingleton||=this.configureAxios(this.createAxiosImpl()),this.axiosSingleton}return this.configureAxios(this.createAxiosImpl())}setDefaultApiBaseUrl(e){this.defaultBaseUrl=e}async setApiUrl(e){let t=this.getAxiosInstance();t.defaults.baseURL=e}setRequestInterceptorStrategy(e){this.requestStrategy=e,this.axiosSingleton&&=this.configureAxios(this.axiosSingleton)}setResponseInterceptorStrategy(e){this.responseStrategy=e,this.axiosSingleton&&=this.configureAxios(this.axiosSingleton)}getAxiosProxy(){return new Proxy({},{get:(e,t)=>{let n=this.getAxiosInstance(),r=Reflect.get(n,t);return typeof r==`function`?r.bind(n):r},set:(e,t,n)=>Reflect.set(this.getAxiosInstance(),t,n)})}getQueryClientProxy(){return new Proxy({},{get:(e,t)=>{let n=this.getQueryClient(),r=Reflect.get(n,t);return typeof r==`function`?r.bind(n):r},set:(e,t,n)=>Reflect.set(this.getQueryClient(),t,n)})}configureAxios(e){return e.interceptors.request.clear(),e.interceptors.response.clear(),e.interceptors.request.use(async e=>(await this.requestStrategy(e,async e=>{}),e)),e.interceptors.response.use(async e=>(await this.responseStrategy(e,async e=>{}),e)),e}},_n=`__HAUS_NAMED_HTTP_CLIENTS__`,vn=typeof window<`u`,yn=`default`;function bn(){if(vn){let e=globalThis,t=e[_n];if(t)return t;let n={};return e[_n]=n,n}let e=bn;return e._ssr||={},e._ssr}function xn(e={}){return new gn({createQueryClient:e.createQueryClient||(()=>new n.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!0,refetchOnMount:!1,retry:3,staleTime:1e3*60*5}}})),createAxios:e.createAxios||(t=>Z.create({baseURL:t??e.defaultBaseUrl,withCredentials:!0})),defaultBaseUrl:e.defaultBaseUrl,useGlobalSingletons:e.useGlobalSingletons,globalQueryClientKey:e.globalQueryClientKey,globalAxiosKey:e.globalAxiosKey})}function Sn(e,t={},n={}){let r=bn();if(r[e]&&!n.overwrite)return r[e];let i=xn(t);return r[e]=i,i}function Cn(e,t={}){let n=bn();return n[e]||(n[e]=xn(t)),n[e]}Sn(yn,{useGlobalSingletons:!0,globalQueryClientKey:`__STORE_QUERY_CLIENT__`,globalAxiosKey:`__STORE_API_CLIENT__`},{overwrite:!1});var wn=Cn(yn,{createQueryClient:()=>new n.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!0,refetchOnMount:!1,retry:3,staleTime:1e3*60*5}}}),createAxios:e=>Z.create({baseURL:e,withCredentials:!0})});wn.getAxiosProxy(),wn.getQueryClientProxy(),e.c(),typeof navigator<`u`&&navigator.product;var Q=e.d((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t;(function(e){e.Mutation=`mutation`,e.Query=`query`,e.Subscription=`subscription`})(t||={}),e.default=t})),Tn=e.d((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isNestedField=void 0;function t(e){return typeof e==`object`&&e.hasOwnProperty(`operation`)&&e.hasOwnProperty(`variables`)&&e.hasOwnProperty(`fields`)||typeof e==`object`&&e.hasOwnProperty(`operation`)&&e.hasOwnProperty(`fragment`)&&e.hasOwnProperty(`fields`)}e.isNestedField=t})),$=e.d((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,`__esModule`,{value:!0});var n=Tn();e.default=function(){function e(){}return e.resolveVariables=function(n){for(var r={},i=0,a=n;i<a.length;i++){var o=a[i],s=o.variables,c=o.fields;r=t(t(t({},r),s),c&&e.getNestedVariables(c)||{})}return r},e.queryDataNameAndArgumentMap=function(e){return e&&Object.keys(e).length?`(${Object.entries(e).reduce(function(e,t,n){var r=t[0],i=t[1];return`${e}${n===0?``:`, `}${i&&i.name?i.name:r}: \$${r}`},``)})`:``},e.queryFieldsMap=function(t){var r=this;return t?t.map(function(t){if((0,n.isNestedField)(t))return e.queryNestedFieldMap(t);if(typeof t==`object`){var i=``;return Object.entries(t).forEach(function(e,t,n){var a=e[0],o=e[1];i+=`${a} ${o.length>0?`{ `+r.queryFieldsMap(o)+` }`:``}`,t<n.length-1&&(i+=`, `)}),i}else return`${t}`}).join(`, `):``},e.operationOrAlias=function(e){return typeof e==`string`?e:`${e.alias}: ${e.name}`},e.isFragment=function(e){return e?.fragment===!0},e.operationOrFragment=function(t){return e.isFragment(t)?t.operation:e.operationOrAlias(t.operation)},e.getFragment=function(t){return e.isFragment(t)?`... on `:``},e.queryNestedFieldMap=function(t){return`${e.getFragment(t)}${e.operationOrFragment(t)} ${this.isFragment(t)?``:this.queryDataNameAndArgumentMap(t.variables)} ${t.fields.length>0?`{ `+this.queryFieldsMap(t.fields)+` }`:``}`},e.queryVariablesMap=function(t,n){var r={},i=function(e){e&&Object.keys(e).map(function(t){r[t]=typeof e[t]==`object`?e[t].value:e[t]})};return i(t),n&&typeof n==`object`&&i(e.getNestedVariables(n)),r},e.getNestedVariables=function(e){var r={};function i(e){return e?.forEach(function(e){if((0,n.isNestedField)(e))r=t(t(t({},e.variables),r),e.fields&&i(e.fields));else if(typeof e==`object`)for(var a=0,o=Object.entries(e);a<o.length;a++){var s=o[a][1];i(s)}}),r}return i(e),r},e.queryDataType=function(e){var t=`String`,n=typeof e==`object`?e.value:e;if(e?.type!=null)t=e.type;else{var r=Array.isArray(n)?n[0]:n;switch(typeof r){case`object`:t=`Object`;break;case`boolean`:t=`Boolean`;break;case`number`:t=r%1==0?`Int`:`Float`;break}}return typeof e==`object`&&(e.list===!0?t=`[${t}]`:Array.isArray(e.list)&&(t=`[${t}${e.list[0]?`!`:``}]`),e.required&&(t+=`!`)),t},e}()})),En=e.d((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Q(),n=$();e.default=function(){function e(e){Array.isArray(e)?this.variables=n.default.resolveVariables(e):(this.variables=e.variables,this.fields=e.fields,this.operation=e.operation)}return e.prototype.mutationBuilder=function(){return this.operationWrapperTemplate(this.variables,this.operationTemplate(this.operation))},e.prototype.mutationsBuilder=function(e){var t=this,r=e.map(function(e){return t.operation=e.operation,t.variables=e.variables,t.fields=e.fields,t.operationTemplate(e.operation)});return this.operationWrapperTemplate(n.default.resolveVariables(e),r.join(`
|
|
7
|
+
`))},e.prototype.queryDataNameAndArgumentMap=function(){return this.variables&&Object.keys(this.variables).length?`(${Object.keys(this.variables).reduce(function(e,t,n){return`${e}${n===0?``:`, `}${t}: \$${t}`},``)})`:``},e.prototype.queryDataArgumentAndTypeMap=function(e){return Object.keys(e).length?`(${Object.keys(e).reduce(function(t,r,i){return`${t}${i===0?``:`, `}\$${r}: ${n.default.queryDataType(e[r])}`},``)})`:``},e.prototype.operationWrapperTemplate=function(e,r){var i=typeof this.operation==`string`?this.operation:this.operation.name;return{query:`${t.default.Mutation} ${i.charAt(0).toUpperCase()+i.slice(1)} ${this.queryDataArgumentAndTypeMap(e)} {
|
|
8
|
+
${r}
|
|
9
|
+
}`,variables:n.default.queryVariablesMap(e)}},e.prototype.operationTemplate=function(e){return`${typeof e==`string`?e:`${e.alias}: ${e.name}`} ${this.queryDataNameAndArgumentMap()} {
|
|
10
|
+
${this.queryFieldsMap(this.fields)}
|
|
11
|
+
}`},e.prototype.queryFieldsMap=function(e){var t=this;return Array.isArray(e)?e.map(function(e){return typeof e==`object`?`${Object.keys(e)[0]} { ${t.queryFieldsMap(Object.values(e)[0])} }`:`${e}`}).join(`, `):``},e}()})),Dn=e.d((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Q(),n=$();e.default=function(){function e(e){this.queryDataType=function(e){var t=`String`,n=typeof e==`object`?e.value:e;if(e.type!==void 0)t=e.type;else switch(typeof n){case`object`:t=`Object`;break;case`boolean`:t=`Boolean`;break;case`number`:t=n%1==0?`Int`:`Float`;break}return typeof e==`object`&&e.required&&(t+=`!`),t},Array.isArray(e)?this.variables=n.default.resolveVariables(e):(this.variables=e.variables,this.fields=e.fields||[],this.operation=e.operation)}return e.prototype.queryBuilder=function(){return this.operationWrapperTemplate(this.operationTemplate())},e.prototype.queriesBuilder=function(e){var t=this;return this.operationWrapperTemplate(function(){var n=[];return e.forEach(function(e){e&&(t.operation=e.operation,t.fields=e.fields,t.variables=e.variables,n.push(t.operationTemplate()))}),n.join(` `)}())},e.prototype.queryDataNameAndArgumentMap=function(){return this.variables&&Object.keys(this.variables).length?`(${Object.keys(this.variables).reduce(function(e,t,n){return`${e}${n===0?``:`, `}${t}: \$${t}`},``)})`:``},e.prototype.queryDataArgumentAndTypeMap=function(){var e=this;return this.variables&&Object.keys(this.variables).length?`(${Object.keys(this.variables).reduce(function(t,n,r){return`${t}${r===0?``:`, `}\$${n}: ${e.queryDataType(e.variables[n])}`},``)})`:``},e.prototype.operationWrapperTemplate=function(e){var r=typeof this.operation==`string`?this.operation:this.operation.name;return{query:`${t.default.Query} ${r.charAt(0).toUpperCase()}${r.slice(1)} ${this.queryDataArgumentAndTypeMap()} { ${e} }`,variables:n.default.queryVariablesMap(this.variables)}},e.prototype.operationTemplate=function(){return`${typeof this.operation==`string`?this.operation:`${this.operation.alias}: ${this.operation.name}`} ${this.queryDataNameAndArgumentMap()} { nodes { ${n.default.queryFieldsMap(this.fields)} } }`},e}()})),On=e.d((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=En();e.default={DefaultAppSyncQueryAdapter:Dn().default,DefaultAppSyncMutationAdapter:t.default}})),kn=e.d((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,`__esModule`,{value:!0});var n=Q(),r=$();e.default=function(){function e(e,t){var n=this;Array.isArray(e)?this.variables=r.default.resolveVariables(e):(this.variables=e.variables,this.fields=e.fields,this.operation=e.operation),this.config={operationName:``},t&&Object.entries(t).forEach(function(e){var t=e[0],r=e[1];n.config[t]=r})}return e.prototype.mutationBuilder=function(){return this.operationWrapperTemplate(n.default.Mutation,this.variables,this.operationTemplate(this.operation))},e.prototype.mutationsBuilder=function(e){var t=this,i=e.map(function(e){return t.operation=e.operation,t.variables=e.variables,t.fields=e.fields,t.operationTemplate(e.operation)});return this.operationWrapperTemplate(n.default.Mutation,r.default.resolveVariables(e),i.join(`
|
|
12
|
+
`))},e.prototype.queryDataArgumentAndTypeMap=function(e){return this.fields&&typeof this.fields==`object`&&(e=t(t({},r.default.getNestedVariables(this.fields)),e)),e&&Object.keys(e).length>0?`(${Object.keys(e).reduce(function(t,n,i){return`${t}${i===0?``:`, `}\$${n}: ${r.default.queryDataType(e[n])}`},``)})`:``},e.prototype.operationWrapperTemplate=function(e,t,n){var i=`${e} ${this.queryDataArgumentAndTypeMap(t)} {
|
|
13
|
+
${n}
|
|
14
|
+
}`;return this.config.operationName&&(i=i.replace(`mutation`,`mutation ${this.config.operationName}`)),{query:i,variables:r.default.queryVariablesMap(t,this.fields)}},e.prototype.operationTemplate=function(e){return`${typeof e==`string`?e:`${e.alias}: ${e.name}`} ${r.default.queryDataNameAndArgumentMap(this.variables)} ${this.fields&&this.fields.length>0?`{
|
|
15
|
+
${r.default.queryFieldsMap(this.fields)}
|
|
16
|
+
}`:``}`},e}()})),An=e.d((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,`__esModule`,{value:!0});var n=Q(),r=$();e.default=function(){function e(e,t){var n=this;this.config={operationName:``},t&&Object.entries(t).forEach(function(e){var t=e[0],r=e[1];n.config[t]=r}),Array.isArray(e)?this.variables=r.default.resolveVariables(e):(this.variables=e.variables,this.fields=e.fields||[],this.operation=e.operation)}return e.prototype.queryBuilder=function(){return this.operationWrapperTemplate(this.operationTemplate(this.variables))},e.prototype.queriesBuilder=function(e){var t=this;return this.operationWrapperTemplate(function(){var n=[];return e.forEach(function(e){e&&(t.operation=e.operation,t.fields=e.fields,n.push(t.operationTemplate(e.variables)))}),n.join(` `)}())},e.prototype.queryDataArgumentAndTypeMap=function(){var e=this.variables;return this.fields&&typeof this.fields==`object`&&(e=t(t({},r.default.getNestedVariables(this.fields)),e)),e&&Object.keys(e).length>0?`(${Object.keys(e).reduce(function(t,n,i){return`${t}${i===0?``:`, `}\$${n}: ${r.default.queryDataType(e[n])}`},``)})`:``},e.prototype.operationWrapperTemplate=function(e){var t=`${n.default.Query} ${this.queryDataArgumentAndTypeMap()} { ${e} }`;return t=t.replace(`query`,`query${this.config.operationName===``?``:` `+this.config.operationName}`),{query:t,variables:r.default.queryVariablesMap(this.variables,this.fields)}},e.prototype.operationTemplate=function(e){return`${typeof this.operation==`string`?this.operation:`${this.operation.alias}: ${this.operation.name}`} ${e?r.default.queryDataNameAndArgumentMap(e):``} ${this.fields&&this.fields.length>0?`{ `+r.default.queryFieldsMap(this.fields)+` }`:``}`},e}()})),jn=e.d((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Q(),n=$();e.default=function(){function e(e){Array.isArray(e)?this.variables=n.default.resolveVariables(e):(this.variables=e.variables,this.fields=e.fields,this.operation=e.operation)}return e.prototype.subscriptionBuilder=function(){return this.operationWrapperTemplate(t.default.Subscription,this.variables,this.operationTemplate(this.operation))},e.prototype.subscriptionsBuilder=function(e){var r=this,i=e.map(function(e){return r.operation=e.operation,r.variables=e.variables,r.fields=e.fields,r.operationTemplate(e.operation)});return this.operationWrapperTemplate(t.default.Subscription,n.default.resolveVariables(e),i.join(`
|
|
17
|
+
`))},e.prototype.queryDataNameAndArgumentMap=function(){return this.variables&&Object.keys(this.variables).length?`(${Object.keys(this.variables).reduce(function(e,t,n){return`${e}${n===0?``:`, `}${t}: \$${t}`},``)})`:``},e.prototype.queryDataArgumentAndTypeMap=function(e){return Object.keys(e).length?`(${Object.keys(e).reduce(function(t,r,i){return`${t}${i===0?``:`, `}\$${r}: ${n.default.queryDataType(e[r])}`},``)})`:``},e.prototype.operationWrapperTemplate=function(e,t,r){return{query:`${e} ${this.queryDataArgumentAndTypeMap(t)} {
|
|
18
|
+
${r}
|
|
19
|
+
}`,variables:n.default.queryVariablesMap(t)}},e.prototype.operationTemplate=function(e){return`${typeof this.operation==`string`?this.operation:`${this.operation.alias}: ${this.operation.name}`} ${this.queryDataNameAndArgumentMap()} {
|
|
20
|
+
${this.queryFieldsMap(this.fields)}
|
|
21
|
+
}`},e.prototype.queryFieldsMap=function(e){var t=this;return e?e.map(function(e){return typeof e==`object`?`${Object.keys(e)[0]} { ${t.queryFieldsMap(Object.values(e)[0])} }`:`${e}`}).join(`, `):``},e}()}));e.d((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.adapters=e.query=e.mutation=e.subscription=void 0,e.adapters=On().default;var t=kn(),n=An(),r=jn();function i(e,t,r){var i;if(Array.isArray(e)){if(t){var a=new t(e,r);return a.queriesBuilder(e)}return i=new n.default(e,r),i.queriesBuilder(e)}if(t){var a=new t(e,r);return a.queryBuilder()}return i=new n.default(e,r),i.queryBuilder()}e.query=i;function a(e,n,r){var i,a;return Array.isArray(e)?n?(i=new n(e,r),i.mutationsBuilder(e)):(a=new t.default(e,r),a.mutationsBuilder(e)):n?(i=new n(e,r),i.mutationBuilder()):(a=new t.default(e,r),a.mutationBuilder())}e.mutation=a;function o(e,t){var n,i;return Array.isArray(e)?t?(n=new t(e),n.subscriptionsBuilder(e)):(i=new r.default(e),i.subscriptionsBuilder(e)):t?(n=new t(e),n.subscriptionBuilder()):(i=new r.default(e),i.subscriptionBuilder())}e.subscription=o}))();var Mn=()=>{let e=(0,t.useContext)(v)?.sdk;return e||console.error(`You must wrap your component in a <DataProvider>`),e?.sdkType===`dummy`||e?.sdkType,e},Nn=()=>{let{getPlatform:e}=Mn();return e()},Pn=(e,t)=>{let r=(0,n.useQueryClient)();return(0,n.useMutation)(e,t||r)},Fn={kind:`Document`,definitions:[{kind:`FragmentDefinition`,name:{kind:`Name`,value:`EligiblePaymentMethods`},typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`PaymentMethodQuote`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}},{kind:`Field`,name:{kind:`Name`,value:`name`}},{kind:`Field`,name:{kind:`Name`,value:`description`}},{kind:`Field`,name:{kind:`Name`,value:`code`}}]}}]},In={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`mutation`,name:{kind:`Name`,value:`login`},variableDefinitions:[{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`email`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`String`}}}},{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`password`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`String`}}}},{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`rememberMe`}},type:{kind:`NamedType`,name:{kind:`Name`,value:`Boolean`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`login`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`username`},value:{kind:`Variable`,name:{kind:`Name`,value:`email`}}},{kind:`Argument`,name:{kind:`Name`,value:`password`},value:{kind:`Variable`,name:{kind:`Name`,value:`password`}}},{kind:`Argument`,name:{kind:`Name`,value:`rememberMe`},value:{kind:`Variable`,name:{kind:`Name`,value:`rememberMe`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`__typename`}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`CurrentUser`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}},{kind:`Field`,name:{kind:`Name`,value:`identifier`}}]}},{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`ErrorResult`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`errorCode`}},{kind:`Field`,name:{kind:`Name`,value:`message`}}]}}]}}]}}]},Ln={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`mutation`,name:{kind:`Name`,value:`logout`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`logout`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`success`}}]}}]}}]},Rn={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`query`,name:{kind:`Name`,value:`me`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`me`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}}]}}]}}]},zn={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`mutation`,name:{kind:`Name`,value:`transitionOrderToState`},variableDefinitions:[{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`input`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`String`}}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`transitionOrderToState`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`state`},value:{kind:`Variable`,name:{kind:`Name`,value:`input`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`InlineFragment`,typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`ErrorResult`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`errorCode`}},{kind:`Field`,name:{kind:`Name`,value:`message`}}]}}]}}]}}]},Bn={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`query`,name:{kind:`Name`,value:`nextOrderStates`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`nextOrderStates`}}]}}]},Vn={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`query`,name:{kind:`Name`,value:`EligiblePaymentMethods`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`eligiblePaymentMethods`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`FragmentSpread`,name:{kind:`Name`,value:`EligiblePaymentMethods`}}]}}]}},{kind:`FragmentDefinition`,name:{kind:`Name`,value:`EligiblePaymentMethods`},typeCondition:{kind:`NamedType`,name:{kind:`Name`,value:`PaymentMethodQuote`}},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}},{kind:`Field`,name:{kind:`Name`,value:`name`}},{kind:`Field`,name:{kind:`Name`,value:`description`}},{kind:`Field`,name:{kind:`Name`,value:`code`}}]}}]},Hn={"\n mutation login($email: String!, $password: String!, $rememberMe: Boolean) {\n login(username: $email, password: $password, rememberMe: $rememberMe) {\n __typename\n ... on CurrentUser {\n id\n identifier\n }\n ... on ErrorResult {\n errorCode\n message\n }\n }\n }\n":In,"\n mutation logout {\n logout {\n success\n }\n }\n":Ln,"\n query me {\n me {\n id\n }\n }\n":Rn,"\n mutation transitionOrderToState($input: String!) {\n transitionOrderToState(state: $input) {\n ... on ErrorResult {\n errorCode\n message\n }\n }\n }\n":zn,"\n query nextOrderStates {\n nextOrderStates\n }\n":Bn,"\n fragment EligiblePaymentMethods on PaymentMethodQuote {\n id\n name\n description\n code\n }\n":Fn,"\n query EligiblePaymentMethods {\n eligiblePaymentMethods {\n ...EligiblePaymentMethods\n }\n }\n":Vn};function Un(e){return Hn[e]??{}}Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Mn}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Pn}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Nn}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Un}});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";const g=require("react");var v={exports:{}},d={};var L;function ue(){if(L)return d;L=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(f,u,s){var m=null;if(s!==void 0&&(m=""+s),u.key!==void 0&&(m=""+u.key),"key"in u){s={};for(var _ in u)_!=="key"&&(s[_]=u[_])}else s=u;return u=s.ref,{$$typeof:a,type:f,key:m,ref:u!==void 0?u:null,props:s}}return d.Fragment=i,d.jsx=l,d.jsxs=l,d}var R={};var q;function se(){return q||(q=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case X:return"Profiler";case z:return"StrictMode";case K:return"Suspense";case ee:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case J:return"Portal";case Z:return e.displayName||"Context";case B:return(e._context.displayName||"Context")+".Consumer";case Q:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case re:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case h:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function i(e){return""+e}function l(e){try{i(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),i(e)}}function f(e){if(e===T)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===h)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function u(){var e=O.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function m(e){if(j.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function _(e,r){function t(){Y||(Y=!0,console.error("%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://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function G(){var e=a(this.type);return I[e]||(I[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function H(e,r,t,n,E,S){var o=t.ref;return e={$$typeof:C,type:e,key:r,props:t,_owner:n},(o!==void 0?o:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:G}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:E}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function P(e,r,t,n,E,S){var o=r.children;if(o!==void 0)if(n)if(oe(o)){for(n=0;n<o.length;n++)y(o[n]);Object.freeze&&Object.freeze(o)}else console.error("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 y(o);if(j.call(r,"key")){o=a(e);var c=Object.keys(r).filter(function(ae){return ae!=="key"});n=0<c.length?"{key: someKey, "+c.join(": ..., ")+": ...}":"{key: someKey}",$[o+n]||(c=0<c.length?"{"+c.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
|
-
let props = %s;
|
|
3
|
-
<%s {...props} />
|
|
4
|
-
React keys must be passed directly to JSX without using spread:
|
|
5
|
-
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,n,o,c,o),$[o+n]=!0)}if(o=null,t!==void 0&&(l(t),o=""+t),m(r)&&(l(r.key),o=""+r.key),"key"in r){t={};for(var A in r)A!=="key"&&(t[A]=r[A])}else t=r;return o&&_(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),H(e,o,t,u(),E,S)}function y(e){w(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===h&&(e._payload.status==="fulfilled"?w(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function w(e){return typeof e=="object"&&e!==null&&e.$$typeof===C}var p=g,C=Symbol.for("react.transitional.element"),J=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),ne=Symbol.for("react.client.reference"),O=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,oe=Array.isArray,k=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(e){return e()}};var Y,I={},D=p.react_stack_bottom_frame.bind(p,s)(),U=k(f(s)),$={};R.Fragment=T,R.jsx=function(e,r,t){var n=1e4>O.recentlyCreatedOwnerStacks++;return P(e,r,t,!1,n?Error("react-stack-top-frame"):D,n?k(f(e)):U)},R.jsxs=function(e,r,t){var n=1e4>O.recentlyCreatedOwnerStacks++;return P(e,r,t,!0,n?Error("react-stack-top-frame"):D,n?k(f(e)):U)}})()),R}var F;function ie(){return F||(F=1,process.env.NODE_ENV==="production"?v.exports=ue():v.exports=se()),v.exports}var le=ie(),b={exports:{}},N={};var M;function ce(){if(M)return N;M=1;var a=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return N.c=function(i){return a.H.useMemoCache(i)},N}var x={};var W;function fe(){return W||(W=1,process.env.NODE_ENV!=="production"&&(function(){var a=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;x.c=function(i){var l=a.H;return l===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
7
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
8
|
-
2. You might be breaking the Rules of Hooks
|
|
9
|
-
3. You might have more than one copy of React in the same app
|
|
10
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),l.useMemoCache(i)}})()),x}var V;function me(){return V||(V=1,process.env.NODE_ENV==="production"?b.exports=ce():b.exports=fe()),b.exports}var _e=me();exports.compilerRuntimeExports=_e;exports.jsxRuntimeExports=le;
|
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
import g from "react";
|
|
2
|
-
var v = { exports: {} }, d = {};
|
|
3
|
-
var $;
|
|
4
|
-
function ue() {
|
|
5
|
-
if ($) return d;
|
|
6
|
-
$ = 1;
|
|
7
|
-
var a = /* @__PURE__ */ Symbol.for("react.transitional.element"), i = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
8
|
-
function l(f, u, s) {
|
|
9
|
-
var m = null;
|
|
10
|
-
if (s !== void 0 && (m = "" + s), u.key !== void 0 && (m = "" + u.key), "key" in u) {
|
|
11
|
-
s = {};
|
|
12
|
-
for (var _ in u)
|
|
13
|
-
_ !== "key" && (s[_] = u[_]);
|
|
14
|
-
} else s = u;
|
|
15
|
-
return u = s.ref, {
|
|
16
|
-
$$typeof: a,
|
|
17
|
-
type: f,
|
|
18
|
-
key: m,
|
|
19
|
-
ref: u !== void 0 ? u : null,
|
|
20
|
-
props: s
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
return d.Fragment = i, d.jsx = l, d.jsxs = l, d;
|
|
24
|
-
}
|
|
25
|
-
var R = {};
|
|
26
|
-
var F;
|
|
27
|
-
function se() {
|
|
28
|
-
return F || (F = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
29
|
-
function a(e) {
|
|
30
|
-
if (e == null) return null;
|
|
31
|
-
if (typeof e == "function")
|
|
32
|
-
return e.$$typeof === ne ? null : e.displayName || e.name || null;
|
|
33
|
-
if (typeof e == "string") return e;
|
|
34
|
-
switch (e) {
|
|
35
|
-
case T:
|
|
36
|
-
return "Fragment";
|
|
37
|
-
case X:
|
|
38
|
-
return "Profiler";
|
|
39
|
-
case z:
|
|
40
|
-
return "StrictMode";
|
|
41
|
-
case K:
|
|
42
|
-
return "Suspense";
|
|
43
|
-
case ee:
|
|
44
|
-
return "SuspenseList";
|
|
45
|
-
case te:
|
|
46
|
-
return "Activity";
|
|
47
|
-
}
|
|
48
|
-
if (typeof e == "object")
|
|
49
|
-
switch (typeof e.tag == "number" && console.error(
|
|
50
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
51
|
-
), e.$$typeof) {
|
|
52
|
-
case J:
|
|
53
|
-
return "Portal";
|
|
54
|
-
case Z:
|
|
55
|
-
return e.displayName || "Context";
|
|
56
|
-
case B:
|
|
57
|
-
return (e._context.displayName || "Context") + ".Consumer";
|
|
58
|
-
case Q:
|
|
59
|
-
var r = e.render;
|
|
60
|
-
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
61
|
-
case re:
|
|
62
|
-
return r = e.displayName || null, r !== null ? r : a(e.type) || "Memo";
|
|
63
|
-
case h:
|
|
64
|
-
r = e._payload, e = e._init;
|
|
65
|
-
try {
|
|
66
|
-
return a(e(r));
|
|
67
|
-
} catch {
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return null;
|
|
71
|
-
}
|
|
72
|
-
function i(e) {
|
|
73
|
-
return "" + e;
|
|
74
|
-
}
|
|
75
|
-
function l(e) {
|
|
76
|
-
try {
|
|
77
|
-
i(e);
|
|
78
|
-
var r = !1;
|
|
79
|
-
} catch {
|
|
80
|
-
r = !0;
|
|
81
|
-
}
|
|
82
|
-
if (r) {
|
|
83
|
-
r = console;
|
|
84
|
-
var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
85
|
-
return t.call(
|
|
86
|
-
r,
|
|
87
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
88
|
-
n
|
|
89
|
-
), i(e);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
function f(e) {
|
|
93
|
-
if (e === T) return "<>";
|
|
94
|
-
if (typeof e == "object" && e !== null && e.$$typeof === h)
|
|
95
|
-
return "<...>";
|
|
96
|
-
try {
|
|
97
|
-
var r = a(e);
|
|
98
|
-
return r ? "<" + r + ">" : "<...>";
|
|
99
|
-
} catch {
|
|
100
|
-
return "<...>";
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
function u() {
|
|
104
|
-
var e = O.A;
|
|
105
|
-
return e === null ? null : e.getOwner();
|
|
106
|
-
}
|
|
107
|
-
function s() {
|
|
108
|
-
return Error("react-stack-top-frame");
|
|
109
|
-
}
|
|
110
|
-
function m(e) {
|
|
111
|
-
if (j.call(e, "key")) {
|
|
112
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
113
|
-
if (r && r.isReactWarning) return !1;
|
|
114
|
-
}
|
|
115
|
-
return e.key !== void 0;
|
|
116
|
-
}
|
|
117
|
-
function _(e, r) {
|
|
118
|
-
function t() {
|
|
119
|
-
Y || (Y = !0, console.error(
|
|
120
|
-
"%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://react.dev/link/special-props)",
|
|
121
|
-
r
|
|
122
|
-
));
|
|
123
|
-
}
|
|
124
|
-
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
125
|
-
get: t,
|
|
126
|
-
configurable: !0
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
function G() {
|
|
130
|
-
var e = a(this.type);
|
|
131
|
-
return I[e] || (I[e] = !0, console.error(
|
|
132
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
133
|
-
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
134
|
-
}
|
|
135
|
-
function H(e, r, t, n, E, S) {
|
|
136
|
-
var o = t.ref;
|
|
137
|
-
return e = {
|
|
138
|
-
$$typeof: C,
|
|
139
|
-
type: e,
|
|
140
|
-
key: r,
|
|
141
|
-
props: t,
|
|
142
|
-
_owner: n
|
|
143
|
-
}, (o !== void 0 ? o : null) !== null ? Object.defineProperty(e, "ref", {
|
|
144
|
-
enumerable: !1,
|
|
145
|
-
get: G
|
|
146
|
-
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
147
|
-
configurable: !1,
|
|
148
|
-
enumerable: !1,
|
|
149
|
-
writable: !0,
|
|
150
|
-
value: 0
|
|
151
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
152
|
-
configurable: !1,
|
|
153
|
-
enumerable: !1,
|
|
154
|
-
writable: !0,
|
|
155
|
-
value: null
|
|
156
|
-
}), Object.defineProperty(e, "_debugStack", {
|
|
157
|
-
configurable: !1,
|
|
158
|
-
enumerable: !1,
|
|
159
|
-
writable: !0,
|
|
160
|
-
value: E
|
|
161
|
-
}), Object.defineProperty(e, "_debugTask", {
|
|
162
|
-
configurable: !1,
|
|
163
|
-
enumerable: !1,
|
|
164
|
-
writable: !0,
|
|
165
|
-
value: S
|
|
166
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
167
|
-
}
|
|
168
|
-
function P(e, r, t, n, E, S) {
|
|
169
|
-
var o = r.children;
|
|
170
|
-
if (o !== void 0)
|
|
171
|
-
if (n)
|
|
172
|
-
if (oe(o)) {
|
|
173
|
-
for (n = 0; n < o.length; n++)
|
|
174
|
-
y(o[n]);
|
|
175
|
-
Object.freeze && Object.freeze(o);
|
|
176
|
-
} else
|
|
177
|
-
console.error(
|
|
178
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
179
|
-
);
|
|
180
|
-
else y(o);
|
|
181
|
-
if (j.call(r, "key")) {
|
|
182
|
-
o = a(e);
|
|
183
|
-
var c = Object.keys(r).filter(function(ae) {
|
|
184
|
-
return ae !== "key";
|
|
185
|
-
});
|
|
186
|
-
n = 0 < c.length ? "{key: someKey, " + c.join(": ..., ") + ": ...}" : "{key: someKey}", L[o + n] || (c = 0 < c.length ? "{" + c.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
187
|
-
`A props object containing a "key" prop is being spread into JSX:
|
|
188
|
-
let props = %s;
|
|
189
|
-
<%s {...props} />
|
|
190
|
-
React keys must be passed directly to JSX without using spread:
|
|
191
|
-
let props = %s;
|
|
192
|
-
<%s key={someKey} {...props} />`,
|
|
193
|
-
n,
|
|
194
|
-
o,
|
|
195
|
-
c,
|
|
196
|
-
o
|
|
197
|
-
), L[o + n] = !0);
|
|
198
|
-
}
|
|
199
|
-
if (o = null, t !== void 0 && (l(t), o = "" + t), m(r) && (l(r.key), o = "" + r.key), "key" in r) {
|
|
200
|
-
t = {};
|
|
201
|
-
for (var A in r)
|
|
202
|
-
A !== "key" && (t[A] = r[A]);
|
|
203
|
-
} else t = r;
|
|
204
|
-
return o && _(
|
|
205
|
-
t,
|
|
206
|
-
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
207
|
-
), H(
|
|
208
|
-
e,
|
|
209
|
-
o,
|
|
210
|
-
t,
|
|
211
|
-
u(),
|
|
212
|
-
E,
|
|
213
|
-
S
|
|
214
|
-
);
|
|
215
|
-
}
|
|
216
|
-
function y(e) {
|
|
217
|
-
w(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === h && (e._payload.status === "fulfilled" ? w(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
218
|
-
}
|
|
219
|
-
function w(e) {
|
|
220
|
-
return typeof e == "object" && e !== null && e.$$typeof === C;
|
|
221
|
-
}
|
|
222
|
-
var p = g, C = /* @__PURE__ */ Symbol.for("react.transitional.element"), J = /* @__PURE__ */ Symbol.for("react.portal"), T = /* @__PURE__ */ Symbol.for("react.fragment"), z = /* @__PURE__ */ Symbol.for("react.strict_mode"), X = /* @__PURE__ */ Symbol.for("react.profiler"), B = /* @__PURE__ */ Symbol.for("react.consumer"), Z = /* @__PURE__ */ Symbol.for("react.context"), Q = /* @__PURE__ */ Symbol.for("react.forward_ref"), K = /* @__PURE__ */ Symbol.for("react.suspense"), ee = /* @__PURE__ */ Symbol.for("react.suspense_list"), re = /* @__PURE__ */ Symbol.for("react.memo"), h = /* @__PURE__ */ Symbol.for("react.lazy"), te = /* @__PURE__ */ Symbol.for("react.activity"), ne = /* @__PURE__ */ Symbol.for("react.client.reference"), O = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, oe = Array.isArray, k = console.createTask ? console.createTask : function() {
|
|
223
|
-
return null;
|
|
224
|
-
};
|
|
225
|
-
p = {
|
|
226
|
-
react_stack_bottom_frame: function(e) {
|
|
227
|
-
return e();
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
var Y, I = {}, D = p.react_stack_bottom_frame.bind(
|
|
231
|
-
p,
|
|
232
|
-
s
|
|
233
|
-
)(), U = k(f(s)), L = {};
|
|
234
|
-
R.Fragment = T, R.jsx = function(e, r, t) {
|
|
235
|
-
var n = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
236
|
-
return P(
|
|
237
|
-
e,
|
|
238
|
-
r,
|
|
239
|
-
t,
|
|
240
|
-
!1,
|
|
241
|
-
n ? Error("react-stack-top-frame") : D,
|
|
242
|
-
n ? k(f(e)) : U
|
|
243
|
-
);
|
|
244
|
-
}, R.jsxs = function(e, r, t) {
|
|
245
|
-
var n = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
246
|
-
return P(
|
|
247
|
-
e,
|
|
248
|
-
r,
|
|
249
|
-
t,
|
|
250
|
-
!0,
|
|
251
|
-
n ? Error("react-stack-top-frame") : D,
|
|
252
|
-
n ? k(f(e)) : U
|
|
253
|
-
);
|
|
254
|
-
};
|
|
255
|
-
})()), R;
|
|
256
|
-
}
|
|
257
|
-
var M;
|
|
258
|
-
function ie() {
|
|
259
|
-
return M || (M = 1, process.env.NODE_ENV === "production" ? v.exports = ue() : v.exports = se()), v.exports;
|
|
260
|
-
}
|
|
261
|
-
var _e = ie(), b = { exports: {} }, N = {};
|
|
262
|
-
var q;
|
|
263
|
-
function le() {
|
|
264
|
-
if (q) return N;
|
|
265
|
-
q = 1;
|
|
266
|
-
var a = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
267
|
-
return N.c = function(i) {
|
|
268
|
-
return a.H.useMemoCache(i);
|
|
269
|
-
}, N;
|
|
270
|
-
}
|
|
271
|
-
var x = {};
|
|
272
|
-
var W;
|
|
273
|
-
function ce() {
|
|
274
|
-
return W || (W = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
275
|
-
var a = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
276
|
-
x.c = function(i) {
|
|
277
|
-
var l = a.H;
|
|
278
|
-
return l === null && console.error(
|
|
279
|
-
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
280
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
281
|
-
2. You might be breaking the Rules of Hooks
|
|
282
|
-
3. You might have more than one copy of React in the same app
|
|
283
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
284
|
-
), l.useMemoCache(i);
|
|
285
|
-
};
|
|
286
|
-
})()), x;
|
|
287
|
-
}
|
|
288
|
-
var V;
|
|
289
|
-
function fe() {
|
|
290
|
-
return V || (V = 1, process.env.NODE_ENV === "production" ? b.exports = le() : b.exports = ce()), b.exports;
|
|
291
|
-
}
|
|
292
|
-
var de = fe();
|
|
293
|
-
export {
|
|
294
|
-
de as c,
|
|
295
|
-
_e as j
|
|
296
|
-
};
|