@haus-storefront-react/vendure-plugin-configs 1.0.4-next.16 → 1.0.4-next.3

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +0 -156
  2. package/badge.js +1 -1
  3. package/badge.mjs +424 -439
  4. package/campaign.js +1 -1
  5. package/campaign.mjs +106 -50
  6. package/compiler-runtime-oPPev21o.js +10 -0
  7. package/compiler-runtime-qHgugrLy.mjs +296 -0
  8. package/elastic.js +1 -1
  9. package/elastic.mjs +26 -10
  10. package/index-BRlTlK6a.mjs +3768 -0
  11. package/index-BgBC_k8M.js +1 -0
  12. package/index-C0E-40z0.mjs +19 -0
  13. package/index-CgxqXyHf.js +20 -0
  14. package/index.js +1 -1
  15. package/index.mjs +4 -2
  16. package/lib/configs/vendure-badge-plugin.d.ts +2 -10
  17. package/lib/configs/vendure-badge-plugin.types.d.ts +1 -0
  18. package/lib/configs/vendure-campaign-plugin.d.ts +1 -1
  19. package/lib/configs/vendure-elastic-search-plugin.d.ts +1 -1
  20. package/lib/configs/vendure-packagesize-plugin.d.ts +1 -1
  21. package/lib/configs/vendure-product-popularity-plugin.d.ts +1 -1
  22. package/lib/configs/vendure-purchase-order-payment-plugin.d.ts +2 -2
  23. package/lib/plugin-config.d.ts +1 -2
  24. package/lib/types.d.ts +0 -1
  25. package/package.json +5 -25
  26. package/packagesize.js +1 -1
  27. package/packagesize.mjs +59 -15
  28. package/product-popularity.js +1 -1
  29. package/product-popularity.mjs +22 -12
  30. package/purchase-order-payment.js +5 -5
  31. package/purchase-order-payment.mjs +631 -207
  32. package/useSdk-DOrZRSHz.mjs +2634 -0
  33. package/useSdk-YXpk8Wsi.js +21 -0
  34. package/lib/configs/vendure-product-variant-specifications-plugin.d.ts +0 -55
  35. package/lib/configs/vendure-product-variant-specifications-plugin.types.d.ts +0 -8
  36. package/lib/configs/vendure-products-by-sku-plugin.d.ts +0 -11
  37. package/lib/configs/vendure-products-by-sku-plugin.types.d.ts +0 -13
  38. package/lib/configs/vendure-related-products-plugin.d.ts +0 -39
  39. package/lib/configs/vendure-related-products-plugin.types.d.ts +0 -16
  40. package/lib/exports/product-variant-specifications.d.ts +0 -2
  41. package/lib/exports/products-by-sku.d.ts +0 -3
  42. package/lib/exports/related-products.d.ts +0 -3
  43. package/lib/hooks/use-related-products.d.ts +0 -2
  44. package/lib/strategies/quick-order-variant-sku-validation-strategy.d.ts +0 -6
  45. package/plugin-config-DrQQb9Ry.js +0 -1
  46. package/plugin-config-DywohMgp.mjs +0 -903
  47. package/product-variant-specifications.d.ts +0 -2
  48. package/product-variant-specifications.js +0 -1
  49. package/product-variant-specifications.mjs +0 -9
  50. package/products-by-sku.d.ts +0 -2
  51. package/products-by-sku.js +0 -1
  52. package/products-by-sku.mjs +0 -54
  53. package/related-products.d.ts +0 -2
  54. package/related-products.js +0 -1
  55. package/related-products.mjs +0 -35
  56. package/src-ChzQhPCd.js +0 -6
  57. package/src-CsM7SeIh.mjs +0 -455
  58. package/src-Dq29mogl.js +0 -21
  59. package/src-Dud_XHV6.mjs +0 -2718
@@ -0,0 +1,21 @@
1
+ "use strict";const rr=require("./index-CgxqXyHf.js");require("./compiler-runtime-oPPev21o.js");const _t=require("react"),Le=require("@tanstack/react-query"),nr="debug",C=()=>{try{if(typeof window>"u"||typeof localStorage>"u")return!1;const e=localStorage.getItem(nr);return e==="true"||e==="1"}catch{return!1}},or=()=>{const e=(t,r,n=[])=>r?typeof t=="string"?[`<${r}> ${t}`,...n]:[`<${r}>`,t,...n]:Array.isArray(t)?[...t,...n]:[t,...n];return{log:(t,r,...n)=>{C()&&console.log(...e(t,r,n))},info:(t,r,...n)=>{C()&&console.info(...e(t,r,n))},warn:(t,r,...n)=>{C()&&console.warn(...e(t,r,n))},error:(t,r,...n)=>{C()&&console.error(...e(t,r,n))},debug:(t,r,...n)=>{C()&&console.debug(...e(t,r,n))},group:(t,r)=>{if(C()){const n=typeof t=="string"?t:void 0;console.group(r?n?`<${r}> ${n}`:`<${r}>`:n)}},groupCollapsed:(t,r)=>{if(C()){const n=typeof t=="string"?t:void 0;console.groupCollapsed(r?n?`<${r}> ${n}`:`<${r}>`:n)}},groupEnd:()=>{C()&&console.groupEnd()},table:(t,r,n)=>{C()&&(r&&console.log(`<${r}>`),console.table(t,n))},time:(t,r)=>{if(C()){const n=typeof t=="string"?t:void 0;console.time(r?n?`<${r}> ${n}`:`<${r}>`:n)}},timeEnd:(t,r)=>{if(C()){const n=typeof t=="string"?t:void 0;console.timeEnd(r?n?`<${r}> ${n}`:`<${r}>`:n)}}}},sr=or();function ir(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(o){o(r)}),(n=e.get("*"))&&n.slice().map(function(o){o(t,r)})}}}let J;try{J=require("@react-native-async-storage/async-storage").default}catch{J=null}let je=null;try{const{AsyncLocalStorage:e}=require("node:async_hooks");je=new e}catch{je=null}const V=typeof window<"u"&&typeof window.localStorage<"u",Q=!!J,fe={},Ce={getItem:async()=>null,setItem:async()=>{},removeItem:async()=>{}},qe=()=>{try{return je?.getStore?.()??null}catch{return null}},Ne={getItem:async e=>{const t=!V&&!Q?qe():null;return t?t.getItem(e):Q?J.getItem(e):V?new Promise(r=>{Promise.resolve().then(()=>{const n=window.localStorage.getItem(e),o=fe[e];n!==o&&(fe[e]=n||""),r(n)})}):Ce.getItem(e)},setItem:async(e,t)=>{const r=!V&&!Q?qe():null;return r?r.setItem(e,t):Q?J.setItem(e,t):V?new Promise((n,o)=>{Promise.resolve().then(()=>{try{window.localStorage.setItem(e,t);const s=window.localStorage.getItem(e);s===t?(fe[e]=t,n()):o(new Error(`Failed to set localStorage item: expected "${t}", got "${s}"`))}catch(s){o(s)}})}):Ce.setItem(e,t)},removeItem:async e=>{const t=!V&&!Q?qe():null;return t?t.removeItem(e):Q?J.removeItem(e):V?new Promise((r,n)=>{Promise.resolve().then(()=>{try{window.localStorage.removeItem(e);const o=window.localStorage.getItem(e);o===null?(delete fe[e],r()):n(new Error(`Failed to remove localStorage item: key "${e}" still exists with value "${o}"`))}catch(o){n(o)}})}):Ce.removeItem(e)}},Ye=50,M={get:async()=>{try{const e=await Ne.getItem("eventHistory");return e?JSON.parse(e):[]}catch(e){return console.error("Error getting event history",e),[]}},set:async e=>{try{await Ne.setItem("eventHistory",JSON.stringify(e.slice(-Ye)))}catch(t){console.error("Error setting event history",t)}},clear:async()=>{try{await Ne.removeItem("eventHistory")}catch(e){console.error("Error clearing event history",e)}},push:async e=>{const t=await M.get();await M.set([{...e,timestamp:Date.now()},...t].slice(-Ye))},find:async e=>(await M.get()).find(r=>r.key===e.key&&r.identifier===e.identifier),filter:async(e,t)=>{const r=await M.get();return t?r.filter(t):r.filter(({key:n,identifier:o})=>(!n||e.key===n)&&(!o||e.identifier===o))}};function ar(){const e=globalThis;return e.__HAUS_EVENT_EMITTER__||=ir(),e.__HAUS_EVENT_EMITTER__}function $(e){const t=ar(),r=((...c)=>console.error(...c));M.get().then(c=>{const f=rr.lodashExports.first(c)?.timestamp;f&&f<Date.now()-1e3*60*60&&(sr.info("Clearing event history since it is older than 1 hour:","eventBus",f),M.clear())});const n=(c,l,f)=>{const p=m=>{try{if(typeof m=="object"&&m!==null){const{identifier:b,data:d}=m;(!b||b===f)&&l(d)}else l(m)}catch(b){r(b)}};return t.on(c,p),()=>{o(c,l,f)}},o=(c,l,f)=>{const p=m=>{if(typeof m=="object"&&m!==null){const{identifier:b}=m;(!b||b===f)&&t.off(c,l)}};t.off(c,p)};return{on:n,off:o,once:(c,l,f)=>{const p=m=>{try{if(typeof m=="object"&&m!==null){const{identifier:b,data:d}=m;(!b||b===f)&&l(d)}else l(m)}finally{o(c,p,f)}};t.on(c,p)},emit:(c,l,...f)=>{const p={identifier:l,data:f.length===1?f[0]:f};M.push({key:c,identifier:l,payload:p.data}),t.emit(c,p)},getEventHistory:(c,l)=>M.filter({key:c,identifier:l})}}$();$();$();$();$();$();$();const cr=globalThis.__STORE_SDK_CONTEXT__||=_t.createContext(void 0);function xt(e,t){return function(){return e.apply(t,arguments)}}const{toString:ur}=Object.prototype,{getPrototypeOf:ke}=Object,{iterator:Ee,toStringTag:Ct}=Symbol,Oe=(e=>t=>{const r=ur.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),N=e=>(e=e.toLowerCase(),t=>Oe(t)===e),Te=e=>t=>typeof t===e,{isArray:X}=Array,G=Te("undefined");function re(e){return e!==null&&!G(e)&&e.constructor!==null&&!G(e.constructor)&&T(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const qt=N("ArrayBuffer");function lr(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&qt(e.buffer),t}const fr=Te("string"),T=Te("function"),Nt=Te("number"),ne=e=>e!==null&&typeof e=="object",dr=e=>e===!0||e===!1,be=e=>{if(Oe(e)!=="object")return!1;const t=ke(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ct in e)&&!(Ee in e)},pr=e=>{if(!ne(e)||re(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},hr=N("Date"),yr=N("File"),mr=N("Blob"),gr=N("FileList"),br=e=>ne(e)&&T(e.pipe),wr=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||T(e.append)&&((t=Oe(e))==="formdata"||t==="object"&&T(e.toString)&&e.toString()==="[object FormData]"))},Ar=N("URLSearchParams"),[Sr,Er,Or,Tr]=["ReadableStream","Request","Response","Headers"].map(N),vr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oe(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),X(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(re(e))return;const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let a;for(n=0;n<i;n++)a=s[n],t.call(null,e[a],a,e)}}function Dt(e,t){if(re(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const I=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pt=e=>!G(e)&&e!==I;function Me(){const{caseless:e,skipUndefined:t}=Pt(this)&&this||{},r={},n=(o,s)=>{const i=e&&Dt(r,s)||s;be(r[i])&&be(o)?r[i]=Me(r[i],o):be(o)?r[i]=Me({},o):X(o)?r[i]=o.slice():(!t||!G(o))&&(r[i]=o)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&oe(arguments[o],n);return r}const Rr=(e,t,r,{allOwnKeys:n}={})=>(oe(t,(o,s)=>{r&&T(o)?e[s]=xt(o,r):e[s]=o},{allOwnKeys:n}),e),_r=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xr=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Cr=(e,t,r,n)=>{let o,s,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!n||n(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=r!==!1&&ke(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},qr=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Nr=e=>{if(!e)return null;if(X(e))return e;let t=e.length;if(!Nt(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Dr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ke(Uint8Array)),Pr=(e,t)=>{const n=(e&&e[Ee]).call(e);let o;for(;(o=n.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},Fr=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},jr=N("HTMLFormElement"),Mr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Ze=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ur=N("RegExp"),Ft=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};oe(r,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(n[s]=i||o)}),Object.defineProperties(e,n)},Br=e=>{Ft(e,(t,r)=>{if(T(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(T(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Ir=(e,t)=>{const r={},n=o=>{o.forEach(s=>{r[s]=!0})};return X(e)?n(e):n(String(e).split(t)),r},Lr=()=>{},kr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function $r(e){return!!(e&&T(e.append)&&e[Ct]==="FormData"&&e[Ee])}const Hr=e=>{const t=new Array(10),r=(n,o)=>{if(ne(n)){if(t.indexOf(n)>=0)return;if(re(n))return n;if(!("toJSON"in n)){t[o]=n;const s=X(n)?[]:{};return oe(n,(i,a)=>{const c=r(i,o+1);!G(c)&&(s[a]=c)}),t[o]=void 0,s}}return n};return r(e,0)},Vr=N("AsyncFunction"),Qr=e=>e&&(ne(e)||T(e))&&T(e.then)&&T(e.catch),jt=((e,t)=>e?setImmediate:t?((r,n)=>(I.addEventListener("message",({source:o,data:s})=>{o===I&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),I.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",T(I.postMessage)),Wr=typeof queueMicrotask<"u"?queueMicrotask.bind(I):typeof process<"u"&&process.nextTick||jt,Kr=e=>e!=null&&T(e[Ee]),u={isArray:X,isArrayBuffer:qt,isBuffer:re,isFormData:wr,isArrayBufferView:lr,isString:fr,isNumber:Nt,isBoolean:dr,isObject:ne,isPlainObject:be,isEmptyObject:pr,isReadableStream:Sr,isRequest:Er,isResponse:Or,isHeaders:Tr,isUndefined:G,isDate:hr,isFile:yr,isBlob:mr,isRegExp:Ur,isFunction:T,isStream:br,isURLSearchParams:Ar,isTypedArray:Dr,isFileList:gr,forEach:oe,merge:Me,extend:Rr,trim:vr,stripBOM:_r,inherits:xr,toFlatObject:Cr,kindOf:Oe,kindOfTest:N,endsWith:qr,toArray:Nr,forEachEntry:Pr,matchAll:Fr,isHTMLForm:jr,hasOwnProperty:Ze,hasOwnProp:Ze,reduceDescriptors:Ft,freezeMethods:Br,toObjectSet:Ir,toCamelCase:Mr,noop:Lr,toFiniteNumber:kr,findKey:Dt,global:I,isContextDefined:Pt,isSpecCompliantForm:$r,toJSONObject:Hr,isAsyncFn:Vr,isThenable:Qr,setImmediate:jt,asap:Wr,isIterable:Kr};function g(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}u.inherits(g,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:u.toJSONObject(this.config),code:this.code,status:this.status}}});const Mt=g.prototype,Ut={};["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=>{Ut[e]={value:e}});Object.defineProperties(g,Ut);Object.defineProperty(Mt,"isAxiosError",{value:!0});g.from=(e,t,r,n,o,s)=>{const i=Object.create(Mt);u.toFlatObject(e,i,function(f){return f!==Error.prototype},l=>l!=="isAxiosError");const a=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return g.call(i,a,c,r,n,o),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",s&&Object.assign(i,s),i};const zr=null;function Ue(e){return u.isPlainObject(e)||u.isArray(e)}function Bt(e){return u.endsWith(e,"[]")?e.slice(0,-2):e}function et(e,t,r){return e?e.concat(t).map(function(o,s){return o=Bt(o),!r&&s?"["+o+"]":o}).join(r?".":""):t}function Jr(e){return u.isArray(e)&&!e.some(Ue)}const Gr=u.toFlatObject(u,{},null,function(t){return/^is[A-Z]/.test(t)});function ve(e,t,r){if(!u.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=u.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!u.isUndefined(h[y])});const n=r.metaTokens,o=r.visitor||f,s=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&u.isSpecCompliantForm(t);if(!u.isFunction(o))throw new TypeError("visitor must be a function");function l(d){if(d===null)return"";if(u.isDate(d))return d.toISOString();if(u.isBoolean(d))return d.toString();if(!c&&u.isBlob(d))throw new g("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(d)||u.isTypedArray(d)?c&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,y,h){let A=d;if(d&&!h&&typeof d=="object"){if(u.endsWith(y,"{}"))y=n?y:y.slice(0,-2),d=JSON.stringify(d);else if(u.isArray(d)&&Jr(d)||(u.isFileList(d)||u.endsWith(y,"[]"))&&(A=u.toArray(d)))return y=Bt(y),A.forEach(function(S,O){!(u.isUndefined(S)||S===null)&&t.append(i===!0?et([y],O,s):i===null?y:y+"[]",l(S))}),!1}return Ue(d)?!0:(t.append(et(h,y,s),l(d)),!1)}const p=[],m=Object.assign(Gr,{defaultVisitor:f,convertValue:l,isVisitable:Ue});function b(d,y){if(!u.isUndefined(d)){if(p.indexOf(d)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(d),u.forEach(d,function(A,R){(!(u.isUndefined(A)||A===null)&&o.call(t,A,u.isString(R)?R.trim():R,y,m))===!0&&b(A,y?y.concat(R):[R])}),p.pop()}}if(!u.isObject(e))throw new TypeError("data must be an object");return b(e),t}function tt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function $e(e,t){this._pairs=[],e&&ve(e,this,t)}const It=$e.prototype;It.append=function(t,r){this._pairs.push([t,r])};It.toString=function(t){const r=t?function(n){return t.call(this,n,tt)}:tt;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Xr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Lt(e,t,r){if(!t)return e;const n=r&&r.encode||Xr;u.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let s;if(o?s=o(t,r):s=u.isURLSearchParams(t)?t.toString():new $e(t,r).toString(n),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class rt{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){u.forEach(this.handlers,function(n){n!==null&&t(n)})}}const kt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Yr=typeof URLSearchParams<"u"?URLSearchParams:$e,Zr=typeof FormData<"u"?FormData:null,en=typeof Blob<"u"?Blob:null,tn={isBrowser:!0,classes:{URLSearchParams:Yr,FormData:Zr,Blob:en},protocols:["http","https","file","blob","url","data"]},He=typeof window<"u"&&typeof document<"u",Be=typeof navigator=="object"&&navigator||void 0,rn=He&&(!Be||["ReactNative","NativeScript","NS"].indexOf(Be.product)<0),nn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",on=He&&window.location.href||"http://localhost",sn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:He,hasStandardBrowserEnv:rn,hasStandardBrowserWebWorkerEnv:nn,navigator:Be,origin:on},Symbol.toStringTag,{value:"Module"})),E={...sn,...tn};function an(e,t){return ve(e,new E.classes.URLSearchParams,{visitor:function(r,n,o,s){return E.isNode&&u.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function cn(e){return u.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function un(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}function $t(e){function t(r,n,o,s){let i=r[s++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),c=s>=r.length;return i=!i&&u.isArray(o)?o.length:i,c?(u.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!a):((!o[i]||!u.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],s)&&u.isArray(o[i])&&(o[i]=un(o[i])),!a)}if(u.isFormData(e)&&u.isFunction(e.entries)){const r={};return u.forEachEntry(e,(n,o)=>{t(cn(n),o,r,0)}),r}return null}function ln(e,t,r){if(u.isString(e))try{return(t||JSON.parse)(e),u.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const se={transitional:kt,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,s=u.isObject(t);if(s&&u.isHTMLForm(t)&&(t=new FormData(t)),u.isFormData(t))return o?JSON.stringify($t(t)):t;if(u.isArrayBuffer(t)||u.isBuffer(t)||u.isStream(t)||u.isFile(t)||u.isBlob(t)||u.isReadableStream(t))return t;if(u.isArrayBufferView(t))return t.buffer;if(u.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return an(t,this.formSerializer).toString();if((a=u.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return ve(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),ln(t)):t}],transformResponse:[function(t){const r=this.transitional||se.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(u.isResponse(t)||u.isReadableStream(t))return t;if(t&&u.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(a){if(i)throw a.name==="SyntaxError"?g.from(a,g.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:E.classes.FormData,Blob:E.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch"],e=>{se.headers[e]={}});const fn=u.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"]),dn=e=>{const t={};let r,n,o;return e&&e.split(`
2
+ `).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&fn[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},nt=Symbol("internals");function ee(e){return e&&String(e).trim().toLowerCase()}function we(e){return e===!1||e==null?e:u.isArray(e)?e.map(we):String(e)}function pn(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const hn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function De(e,t,r,n,o){if(u.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!u.isString(t)){if(u.isString(n))return t.indexOf(n)!==-1;if(u.isRegExp(n))return n.test(t)}}function yn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function mn(e,t){const r=u.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,s,i){return this[n].call(this,t,o,s,i)},configurable:!0})})}let v=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function s(a,c,l){const f=ee(c);if(!f)throw new Error("header name must be a non-empty string");const p=u.findKey(o,f);(!p||o[p]===void 0||l===!0||l===void 0&&o[p]!==!1)&&(o[p||c]=we(a))}const i=(a,c)=>u.forEach(a,(l,f)=>s(l,f,c));if(u.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(u.isString(t)&&(t=t.trim())&&!hn(t))i(dn(t),r);else if(u.isObject(t)&&u.isIterable(t)){let a={},c,l;for(const f of t){if(!u.isArray(f))throw TypeError("Object iterator must return a key-value pair");a[l=f[0]]=(c=a[l])?u.isArray(c)?[...c,f[1]]:[c,f[1]]:f[1]}i(a,r)}else t!=null&&s(r,t,n);return this}get(t,r){if(t=ee(t),t){const n=u.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return pn(o);if(u.isFunction(r))return r.call(this,o,n);if(u.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ee(t),t){const n=u.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||De(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function s(i){if(i=ee(i),i){const a=u.findKey(n,i);a&&(!r||De(n,n[a],a,r))&&(delete n[a],o=!0)}}return u.isArray(t)?t.forEach(s):s(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const s=r[n];(!t||De(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const r=this,n={};return u.forEach(this,(o,s)=>{const i=u.findKey(n,s);if(i){r[i]=we(o),delete r[s];return}const a=t?yn(s):String(s).trim();a!==s&&delete r[s],r[a]=we(o),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return u.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&u.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[nt]=this[nt]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=ee(i);n[a]||(mn(o,i),n[a]=!0)}return u.isArray(t)?t.forEach(s):s(t),this}};v.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);u.reduceDescriptors(v.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});u.freezeMethods(v);function Pe(e,t){const r=this||se,n=t||r,o=v.from(n.headers);let s=n.data;return u.forEach(e,function(a){s=a.call(r,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Ht(e){return!!(e&&e.__CANCEL__)}function Y(e,t,r){g.call(this,e??"canceled",g.ERR_CANCELED,t,r),this.name="CanceledError"}u.inherits(Y,g,{__CANCEL__:!0});function Vt(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new g("Request failed with status code "+r.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function gn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function bn(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),f=n[s];i||(i=l),r[o]=c,n[o]=l;let p=s,m=0;for(;p!==o;)m+=r[p++],p=p%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-i<t)return;const b=f&&l-f;return b?Math.round(m*1e3/b):void 0}}function wn(e,t){let r=0,n=1e3/t,o,s;const i=(l,f=Date.now())=>{r=f,o=null,s&&(clearTimeout(s),s=null),e(...l)};return[(...l)=>{const f=Date.now(),p=f-r;p>=n?i(l,f):(o=l,s||(s=setTimeout(()=>{s=null,i(o)},n-p)))},()=>o&&i(o)]}const Se=(e,t,r=3)=>{let n=0;const o=bn(50,250);return wn(s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,c=i-n,l=o(c),f=i<=a;n=i;const p={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a&&f?(a-i)/l:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(p)},r)},ot=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},st=e=>(...t)=>u.asap(()=>e(...t)),An=E.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,E.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(E.origin),E.navigator&&/(msie|trident)/i.test(E.navigator.userAgent)):()=>!0,Sn=E.hasStandardBrowserEnv?{write(e,t,r,n,o,s,i){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];u.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),u.isString(n)&&a.push(`path=${n}`),u.isString(o)&&a.push(`domain=${o}`),s===!0&&a.push("secure"),u.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function En(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function On(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Qt(e,t,r){let n=!En(t);return e&&(n||r==!1)?On(e,t):t}const it=e=>e instanceof v?{...e}:e;function k(e,t){t=t||{};const r={};function n(l,f,p,m){return u.isPlainObject(l)&&u.isPlainObject(f)?u.merge.call({caseless:m},l,f):u.isPlainObject(f)?u.merge({},f):u.isArray(f)?f.slice():f}function o(l,f,p,m){if(u.isUndefined(f)){if(!u.isUndefined(l))return n(void 0,l,p,m)}else return n(l,f,p,m)}function s(l,f){if(!u.isUndefined(f))return n(void 0,f)}function i(l,f){if(u.isUndefined(f)){if(!u.isUndefined(l))return n(void 0,l)}else return n(void 0,f)}function a(l,f,p){if(p in t)return n(l,f);if(p in e)return n(void 0,l)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(l,f,p)=>o(it(l),it(f),p,!0)};return u.forEach(Object.keys({...e,...t}),function(f){const p=c[f]||o,m=p(e[f],t[f],f);u.isUndefined(m)&&p!==a||(r[f]=m)}),r}const Wt=e=>{const t=k({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;if(t.headers=i=v.from(i),t.url=Lt(Qt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),u.isFormData(r)){if(E.hasStandardBrowserEnv||E.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(u.isFunction(r.getHeaders)){const c=r.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([f,p])=>{l.includes(f.toLowerCase())&&i.set(f,p)})}}if(E.hasStandardBrowserEnv&&(n&&u.isFunction(n)&&(n=n(t)),n||n!==!1&&An(t.url))){const c=o&&s&&Sn.read(s);c&&i.set(o,c)}return t},Tn=typeof XMLHttpRequest<"u",vn=Tn&&function(e){return new Promise(function(r,n){const o=Wt(e);let s=o.data;const i=v.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=o,f,p,m,b,d;function y(){b&&b(),d&&d(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let h=new XMLHttpRequest;h.open(o.method.toUpperCase(),o.url,!0),h.timeout=o.timeout;function A(){if(!h)return;const S=v.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),x={data:!a||a==="text"||a==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:S,config:e,request:h};Vt(function(_){r(_),y()},function(_){n(_),y()},x),h=null}"onloadend"in h?h.onloadend=A:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(A)},h.onabort=function(){h&&(n(new g("Request aborted",g.ECONNABORTED,e,h)),h=null)},h.onerror=function(O){const x=O&&O.message?O.message:"Network Error",U=new g(x,g.ERR_NETWORK,e,h);U.event=O||null,n(U),h=null},h.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const x=o.transitional||kt;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),n(new g(O,x.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,h)),h=null},s===void 0&&i.setContentType(null),"setRequestHeader"in h&&u.forEach(i.toJSON(),function(O,x){h.setRequestHeader(x,O)}),u.isUndefined(o.withCredentials)||(h.withCredentials=!!o.withCredentials),a&&a!=="json"&&(h.responseType=o.responseType),l&&([m,d]=Se(l,!0),h.addEventListener("progress",m)),c&&h.upload&&([p,b]=Se(c),h.upload.addEventListener("progress",p),h.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(f=S=>{h&&(n(!S||S.type?new Y(null,e,h):S),h.abort(),h=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const R=gn(o.url);if(R&&E.protocols.indexOf(R)===-1){n(new g("Unsupported protocol "+R+":",g.ERR_BAD_REQUEST,e));return}h.send(s||null)})},Rn=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const s=function(l){if(!o){o=!0,a();const f=l instanceof Error?l:this.reason;n.abort(f instanceof g?f:new Y(f instanceof Error?f.message:f))}};let i=t&&setTimeout(()=>{i=null,s(new g(`timeout ${t} of ms exceeded`,g.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),e=null)};e.forEach(l=>l.addEventListener("abort",s));const{signal:c}=n;return c.unsubscribe=()=>u.asap(a),c}},_n=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},xn=async function*(e,t){for await(const r of Cn(e))yield*_n(r,t)},Cn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},at=(e,t,r,n)=>{const o=xn(e,t);let s=0,i,a=c=>{i||(i=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:l,value:f}=await o.next();if(l){a(),c.close();return}let p=f.byteLength;if(r){let m=s+=p;r(m)}c.enqueue(new Uint8Array(f))}catch(l){throw a(l),l}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},ct=64*1024,{isFunction:de}=u,qn=(({Request:e,Response:t})=>({Request:e,Response:t}))(u.global),{ReadableStream:ut,TextEncoder:lt}=u.global,ft=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Nn=e=>{e=u.merge.call({skipUndefined:!0},qn,e);const{fetch:t,Request:r,Response:n}=e,o=t?de(t):typeof fetch=="function",s=de(r),i=de(n);if(!o)return!1;const a=o&&de(ut),c=o&&(typeof lt=="function"?(d=>y=>d.encode(y))(new lt):async d=>new Uint8Array(await new r(d).arrayBuffer())),l=s&&a&&ft(()=>{let d=!1;const y=new r(E.origin,{body:new ut,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!y}),f=i&&a&&ft(()=>u.isReadableStream(new n("").body)),p={stream:f&&(d=>d.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!p[d]&&(p[d]=(y,h)=>{let A=y&&y[d];if(A)return A.call(y);throw new g(`Response type '${d}' is not supported`,g.ERR_NOT_SUPPORT,h)})});const m=async d=>{if(d==null)return 0;if(u.isBlob(d))return d.size;if(u.isSpecCompliantForm(d))return(await new r(E.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(u.isArrayBufferView(d)||u.isArrayBuffer(d))return d.byteLength;if(u.isURLSearchParams(d)&&(d=d+""),u.isString(d))return(await c(d)).byteLength},b=async(d,y)=>{const h=u.toFiniteNumber(d.getContentLength());return h??m(y)};return async d=>{let{url:y,method:h,data:A,signal:R,cancelToken:S,timeout:O,onDownloadProgress:x,onUploadProgress:U,responseType:_,headers:_e,withCredentials:ce="same-origin",fetchOptions:We}=Wt(d),Ke=t||fetch;_=_?(_+"").toLowerCase():"text";let ue=Rn([R,S&&S.toAbortSignal()],O),Z=null;const B=ue&&ue.unsubscribe&&(()=>{ue.unsubscribe()});let ze;try{if(U&&l&&h!=="get"&&h!=="head"&&(ze=await b(_e,A))!==0){let j=new r(y,{method:"POST",body:A,duplex:"half"}),H;if(u.isFormData(A)&&(H=j.headers.get("content-type"))&&_e.setContentType(H),j.body){const[xe,le]=ot(ze,Se(st(U)));A=at(j.body,ct,xe,le)}}u.isString(ce)||(ce=ce?"include":"omit");const D=s&&"credentials"in r.prototype,Je={...We,signal:ue,method:h.toUpperCase(),headers:_e.normalize().toJSON(),body:A,duplex:"half",credentials:D?ce:void 0};Z=s&&new r(y,Je);let F=await(s?Ke(Z,We):Ke(y,Je));const Ge=f&&(_==="stream"||_==="response");if(f&&(x||Ge&&B)){const j={};["status","statusText","headers"].forEach(Xe=>{j[Xe]=F[Xe]});const H=u.toFiniteNumber(F.headers.get("content-length")),[xe,le]=x&&ot(H,Se(st(x),!0))||[];F=new n(at(F.body,ct,xe,()=>{le&&le(),B&&B()}),j)}_=_||"text";let tr=await p[u.findKey(p,_)||"text"](F,d);return!Ge&&B&&B(),await new Promise((j,H)=>{Vt(j,H,{data:tr,headers:v.from(F.headers),status:F.status,statusText:F.statusText,config:d,request:Z})})}catch(D){throw B&&B(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new g("Network Error",g.ERR_NETWORK,d,Z),{cause:D.cause||D}):g.from(D,D&&D.code,d,Z)}}},Dn=new Map,Kt=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,s=[n,o,r];let i=s.length,a=i,c,l,f=Dn;for(;a--;)c=s[a],l=f.get(c),l===void 0&&f.set(c,l=a?new Map:Nn(t)),f=l;return l};Kt();const Ve={http:zr,xhr:vn,fetch:{get:Kt}};u.forEach(Ve,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const dt=e=>`- ${e}`,Pn=e=>u.isFunction(e)||e===null||e===!1;function Fn(e,t){e=u.isArray(e)?e:[e];const{length:r}=e;let n,o;const s={};for(let i=0;i<r;i++){n=e[i];let a;if(o=n,!Pn(n)&&(o=Ve[(a=String(n)).toLowerCase()],o===void 0))throw new g(`Unknown adapter '${a}'`);if(o&&(u.isFunction(o)||(o=o.get(t))))break;s[a||"#"+i]=o}if(!o){const i=Object.entries(s).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=r?i.length>1?`since :
4
+ `+i.map(dt).join(`
5
+ `):" "+dt(i[0]):"as no adapter specified";throw new g("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o}const zt={getAdapter:Fn,adapters:Ve};function Fe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Y(null,e)}function pt(e){return Fe(e),e.headers=v.from(e.headers),e.data=Pe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),zt.getAdapter(e.adapter||se.adapter,e)(e).then(function(n){return Fe(e),n.data=Pe.call(e,e.transformResponse,n),n.headers=v.from(n.headers),n},function(n){return Ht(n)||(Fe(e),n&&n.response&&(n.response.data=Pe.call(e,e.transformResponse,n.response),n.response.headers=v.from(n.response.headers))),Promise.reject(n)})}const Jt="1.13.2",Re={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Re[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ht={};Re.transitional=function(t,r,n){function o(s,i){return"[Axios v"+Jt+"] Transitional option '"+s+"'"+i+(n?". "+n:"")}return(s,i,a)=>{if(t===!1)throw new g(o(i," has been removed"+(r?" in "+r:"")),g.ERR_DEPRECATED);return r&&!ht[i]&&(ht[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,i,a):!0}};Re.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function jn(e,t,r){if(typeof e!="object")throw new g("options must be an object",g.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const s=n[o],i=t[s];if(i){const a=e[s],c=a===void 0||i(a,s,e);if(c!==!0)throw new g("option "+s+" must be "+c,g.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new g("Unknown option "+s,g.ERR_BAD_OPTION)}}const Ae={assertOptions:jn,validators:Re},P=Ae.validators;let L=class{constructor(t){this.defaults=t||{},this.interceptors={request:new rt,response:new rt}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
6
+ `+s):n.stack=s}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=k(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:s}=r;n!==void 0&&Ae.assertOptions(n,{silentJSONParsing:P.transitional(P.boolean),forcedJSONParsing:P.transitional(P.boolean),clarifyTimeoutError:P.transitional(P.boolean)},!1),o!=null&&(u.isFunction(o)?r.paramsSerializer={serialize:o}:Ae.assertOptions(o,{encode:P.function,serialize:P.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Ae.assertOptions(r,{baseUrl:P.spelling("baseURL"),withXsrfToken:P.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=s&&u.merge(s.common,s[r.method]);s&&u.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=v.concat(i,s);const a=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(c=c&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const l=[];this.interceptors.response.forEach(function(y){l.push(y.fulfilled,y.rejected)});let f,p=0,m;if(!c){const d=[pt.bind(this),void 0];for(d.unshift(...a),d.push(...l),m=d.length,f=Promise.resolve(r);p<m;)f=f.then(d[p++],d[p++]);return f}m=a.length;let b=r;for(;p<m;){const d=a[p++],y=a[p++];try{b=d(b)}catch(h){y.call(this,h);break}}try{f=pt.call(this,b)}catch(d){return Promise.reject(d)}for(p=0,m=l.length;p<m;)f=f.then(l[p++],l[p++]);return f}getUri(t){t=k(this.defaults,t);const r=Qt(t.baseURL,t.url,t.allowAbsoluteUrls);return Lt(r,t.params,t.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(t){L.prototype[t]=function(r,n){return this.request(k(n||{},{method:t,url:r,data:(n||{}).data}))}});u.forEach(["post","put","patch"],function(t){function r(n){return function(s,i,a){return this.request(k(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}L.prototype[t]=r(),L.prototype[t+"Form"]=r(!0)});let Mn=class Gt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(o=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](o);n._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{n.subscribe(a),s=a}).then(o);return i.cancel=function(){n.unsubscribe(s)},i},t(function(s,i,a){n.reason||(n.reason=new Y(s,i,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Gt(function(o){t=o}),cancel:t}}};function Un(e){return function(r){return e.apply(null,r)}}function Bn(e){return u.isObject(e)&&e.isAxiosError===!0}const Ie={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(Ie).forEach(([e,t])=>{Ie[t]=e});function Xt(e){const t=new L(e),r=xt(L.prototype.request,t);return u.extend(r,L.prototype,t,{allOwnKeys:!0}),u.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Xt(k(e,o))},r}const w=Xt(se);w.Axios=L;w.CanceledError=Y;w.CancelToken=Mn;w.isCancel=Ht;w.VERSION=Jt;w.toFormData=ve;w.AxiosError=g;w.Cancel=w.CanceledError;w.all=function(t){return Promise.all(t)};w.spread=Un;w.isAxiosError=Bn;w.mergeConfig=k;w.AxiosHeaders=v;w.formToJSON=e=>$t(u.isHTMLForm(e)?new FormData(e):e);w.getAdapter=zt.getAdapter;w.HttpStatusCode=Ie;w.default=w;const{Axios:eo,AxiosError:to,CanceledError:ro,isCancel:no,CancelToken:oo,VERSION:so,all:io,Cancel:ao,isAxiosError:co,spread:uo,toFormData:lo,AxiosHeaders:fo,HttpStatusCode:po,formToJSON:ho,getAdapter:yo,mergeConfig:mo}=w,yt=typeof window<"u";class In{constructor(t={}){this.requestStrategy=async(r,n)=>{await n(r)},this.responseStrategy=async(r,n)=>{await n(r)},this.defaultBaseUrl=t.defaultBaseUrl,this.useGlobalSingletons=t.useGlobalSingletons??!1,this.globalQueryClientKey=t.globalQueryClientKey||"__STORE_QUERY_CLIENT__",this.globalAxiosKey=t.globalAxiosKey||"__STORE_API_CLIENT__",this.createQueryClientImpl=t.createQueryClient||(()=>new Le.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!0,refetchOnMount:!1,retry:3,staleTime:1e3*60*5}}})),this.createAxiosImpl=t.createAxios||(r=>{const n=w.create({baseURL:r||this.defaultBaseUrl,withCredentials:!0});return this.configureAxios(n)})}getQueryClient(t){if(yt){if(t?.client)return t.client;if(this.useGlobalSingletons){const r=globalThis,n=r[this.globalQueryClientKey];if(n)return n;const o=this.createQueryClientImpl();return r[this.globalQueryClientKey]=o,o}return this.queryClientSingleton||(this.queryClientSingleton=this.createQueryClientImpl()),this.queryClientSingleton}return this.createQueryClientImpl()}getAxiosInstance(){if(yt){if(this.useGlobalSingletons){const t=globalThis,r=t[this.globalAxiosKey];if(r)return r;const n=this.configureAxios(this.createAxiosImpl());return t[this.globalAxiosKey]=n,n}return this.axiosSingleton||(this.axiosSingleton=this.configureAxios(this.createAxiosImpl())),this.axiosSingleton}return this.configureAxios(this.createAxiosImpl())}setDefaultApiBaseUrl(t){this.defaultBaseUrl=t}async setApiUrl(t){const r=this.getAxiosInstance();r.defaults.baseURL=t}setRequestInterceptorStrategy(t){this.requestStrategy=t,this.axiosSingleton&&(this.axiosSingleton=this.configureAxios(this.axiosSingleton))}setResponseInterceptorStrategy(t){this.responseStrategy=t,this.axiosSingleton&&(this.axiosSingleton=this.configureAxios(this.axiosSingleton))}getAxiosProxy(){return new Proxy({},{get:(t,r)=>{const n=this.getAxiosInstance(),o=Reflect.get(n,r);return typeof o=="function"?o.bind(n):o},set:(t,r,n)=>Reflect.set(this.getAxiosInstance(),r,n)})}getQueryClientProxy(){return new Proxy({},{get:(t,r)=>{const n=this.getQueryClient(),o=Reflect.get(n,r);return typeof o=="function"?o.bind(n):o},set:(t,r,n)=>Reflect.set(this.getQueryClient(),r,n)})}configureAxios(t){return t.interceptors.request.clear(),t.interceptors.response.clear(),t.interceptors.request.use(async r=>{const n=async o=>{};return await this.requestStrategy(r,n),r}),t.interceptors.response.use(async r=>{const n=async o=>{};return await this.responseStrategy(r,n),r}),t}}const mt="__HAUS_NAMED_HTTP_CLIENTS__",Ln=typeof window<"u",Yt="default";function Qe(){if(Ln){const t=globalThis,r=t[mt];if(r)return r;const n={};return t[mt]=n,n}const e=Qe;return e._ssr||(e._ssr={}),e._ssr}function Zt(e={}){return new In({createQueryClient:e.createQueryClient||(()=>new Le.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!0,refetchOnMount:!1,retry:3,staleTime:1e3*60*5}}})),createAxios:e.createAxios||(t=>w.create({baseURL:t??e.defaultBaseUrl,withCredentials:!0})),defaultBaseUrl:e.defaultBaseUrl,useGlobalSingletons:e.useGlobalSingletons,globalQueryClientKey:e.globalQueryClientKey,globalAxiosKey:e.globalAxiosKey})}function kn(e,t={},r={}){const n=Qe();if(n[e]&&!r.overwrite)return n[e];const o=Zt(t);return n[e]=o,o}function $n(e,t={}){const r=Qe();return r[e]||(r[e]=Zt(t)),r[e]}kn(Yt,{useGlobalSingletons:!0,globalQueryClientKey:"__STORE_QUERY_CLIENT__",globalAxiosKey:"__STORE_API_CLIENT__"},{overwrite:!1});const er=$n(Yt,{createQueryClient:()=>new Le.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!0,refetchOnMount:!1,retry:3,staleTime:1e3*60*5}}}),createAxios:e=>w.create({baseURL:e,withCredentials:!0})});er.getAxiosProxy();er.getQueryClientProxy();var q={},pe={},he={},ye={},gt;function ie(){if(gt)return ye;gt=1,Object.defineProperty(ye,"__esModule",{value:!0});var e;return(function(t){t.Mutation="mutation",t.Query="query",t.Subscription="subscription"})(e||(e={})),ye.default=e,ye}var W={},te={},bt;function Hn(){if(bt)return te;bt=1,Object.defineProperty(te,"__esModule",{value:!0}),te.isNestedField=void 0;function e(t){return typeof t=="object"&&t.hasOwnProperty("operation")&&t.hasOwnProperty("variables")&&t.hasOwnProperty("fields")||typeof t=="object"&&t.hasOwnProperty("operation")&&t.hasOwnProperty("fragment")&&t.hasOwnProperty("fields")}return te.isNestedField=e,te}var wt;function ae(){if(wt)return W;wt=1;var e=W&&W.__assign||function(){return e=Object.assign||function(n){for(var o,s=1,i=arguments.length;s<i;s++){o=arguments[s];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])}return n},e.apply(this,arguments)};Object.defineProperty(W,"__esModule",{value:!0});var t=Hn(),r=(function(){function n(){}return n.resolveVariables=function(o){for(var s={},i=0,a=o;i<a.length;i++){var c=a[i],l=c.variables,f=c.fields;s=e(e(e({},s),l),f&&n.getNestedVariables(f)||{})}return s},n.queryDataNameAndArgumentMap=function(o){return o&&Object.keys(o).length?"(".concat(Object.entries(o).reduce(function(s,i,a){var c=i[0],l=i[1];return"".concat(s).concat(a!==0?", ":"").concat(l&&l.name?l.name:c,": $").concat(c)},""),")"):""},n.queryFieldsMap=function(o){var s=this;return o?o.map(function(i){if((0,t.isNestedField)(i))return n.queryNestedFieldMap(i);if(typeof i=="object"){var a="";return Object.entries(i).forEach(function(c,l,f){var p=c[0],m=c[1];a+="".concat(p," ").concat(m.length>0?"{ "+s.queryFieldsMap(m)+" }":""),l<f.length-1&&(a+=", ")}),a}else return"".concat(i)}).join(", "):""},n.operationOrAlias=function(o){return typeof o=="string"?o:"".concat(o.alias,": ").concat(o.name)},n.isFragment=function(o){var s;return(s=o?.fragment===!0)!==null&&s!==void 0?s:!1},n.operationOrFragment=function(o){return n.isFragment(o)?o.operation:n.operationOrAlias(o.operation)},n.getFragment=function(o){return n.isFragment(o)?"... on ":""},n.queryNestedFieldMap=function(o){return"".concat(n.getFragment(o)).concat(n.operationOrFragment(o)," ").concat(this.isFragment(o)?"":this.queryDataNameAndArgumentMap(o.variables)," ").concat(o.fields.length>0?"{ "+this.queryFieldsMap(o.fields)+" }":"")},n.queryVariablesMap=function(o,s){var i={},a=function(c){c&&Object.keys(c).map(function(l){i[l]=typeof c[l]=="object"?c[l].value:c[l]})};return a(o),s&&typeof s=="object"&&a(n.getNestedVariables(s)),i},n.getNestedVariables=function(o){var s={};function i(a){return a?.forEach(function(c){if((0,t.isNestedField)(c))s=e(e(e({},c.variables),s),c.fields&&i(c.fields));else if(typeof c=="object")for(var l=0,f=Object.entries(c);l<f.length;l++){var p=f[l],m=p[1];i(m)}}),s}return i(o),s},n.queryDataType=function(o){var s="String",i=typeof o=="object"?o.value:o;if(o?.type!=null)s=o.type;else{var a=Array.isArray(i)?i[0]:i;switch(typeof a){case"object":s="Object";break;case"boolean":s="Boolean";break;case"number":s=a%1===0?"Int":"Float";break}}return typeof o=="object"&&(o.list===!0?s="[".concat(s,"]"):Array.isArray(o.list)&&(s="[".concat(s).concat(o.list[0]?"!":"","]")),o.required&&(s+="!")),s},n})();return W.default=r,W}var At;function Vn(){if(At)return he;At=1,Object.defineProperty(he,"__esModule",{value:!0});var e=ie(),t=ae(),r=(function(){function n(o){Array.isArray(o)?this.variables=t.default.resolveVariables(o):(this.variables=o.variables,this.fields=o.fields,this.operation=o.operation)}return n.prototype.mutationBuilder=function(){return this.operationWrapperTemplate(this.variables,this.operationTemplate(this.operation))},n.prototype.mutationsBuilder=function(o){var s=this,i=o.map(function(a){return s.operation=a.operation,s.variables=a.variables,s.fields=a.fields,s.operationTemplate(a.operation)});return this.operationWrapperTemplate(t.default.resolveVariables(o),i.join(`
7
+ `))},n.prototype.queryDataNameAndArgumentMap=function(){return this.variables&&Object.keys(this.variables).length?"(".concat(Object.keys(this.variables).reduce(function(o,s,i){return"".concat(o).concat(i!==0?", ":"").concat(s,": $").concat(s)},""),")"):""},n.prototype.queryDataArgumentAndTypeMap=function(o){return Object.keys(o).length?"(".concat(Object.keys(o).reduce(function(s,i,a){return"".concat(s).concat(a!==0?", ":"","$").concat(i,": ").concat(t.default.queryDataType(o[i]))},""),")"):""},n.prototype.operationWrapperTemplate=function(o,s){var i=typeof this.operation=="string"?this.operation:this.operation.name;return{query:"".concat(e.default.Mutation," ").concat(i.charAt(0).toUpperCase()+i.slice(1)," ").concat(this.queryDataArgumentAndTypeMap(o),` {
8
+ `).concat(s,`
9
+ }`),variables:t.default.queryVariablesMap(o)}},n.prototype.operationTemplate=function(o){var s=typeof o=="string"?o:"".concat(o.alias,": ").concat(o.name);return"".concat(s," ").concat(this.queryDataNameAndArgumentMap(),` {
10
+ `).concat(this.queryFieldsMap(this.fields),`
11
+ }`)},n.prototype.queryFieldsMap=function(o){var s=this;return Array.isArray(o)?o.map(function(i){return typeof i=="object"?"".concat(Object.keys(i)[0]," { ").concat(s.queryFieldsMap(Object.values(i)[0])," }"):"".concat(i)}).join(", "):""},n})();return he.default=r,he}var me={},St;function Qn(){if(St)return me;St=1,Object.defineProperty(me,"__esModule",{value:!0});var e=ie(),t=ae(),r=(function(){function n(o){this.queryDataType=function(s){var i="String",a=typeof s=="object"?s.value:s;if(s.type!==void 0)i=s.type;else switch(typeof a){case"object":i="Object";break;case"boolean":i="Boolean";break;case"number":i=a%1===0?"Int":"Float";break}return typeof s=="object"&&s.required&&(i+="!"),i},Array.isArray(o)?this.variables=t.default.resolveVariables(o):(this.variables=o.variables,this.fields=o.fields||[],this.operation=o.operation)}return n.prototype.queryBuilder=function(){return this.operationWrapperTemplate(this.operationTemplate())},n.prototype.queriesBuilder=function(o){var s=this,i=function(){var a=[];return o.forEach(function(c){c&&(s.operation=c.operation,s.fields=c.fields,s.variables=c.variables,a.push(s.operationTemplate()))}),a.join(" ")};return this.operationWrapperTemplate(i())},n.prototype.queryDataNameAndArgumentMap=function(){return this.variables&&Object.keys(this.variables).length?"(".concat(Object.keys(this.variables).reduce(function(o,s,i){return"".concat(o).concat(i!==0?", ":"").concat(s,": $").concat(s)},""),")"):""},n.prototype.queryDataArgumentAndTypeMap=function(){var o=this;return this.variables&&Object.keys(this.variables).length?"(".concat(Object.keys(this.variables).reduce(function(s,i,a){return"".concat(s).concat(a!==0?", ":"","$").concat(i,": ").concat(o.queryDataType(o.variables[i]))},""),")"):""},n.prototype.operationWrapperTemplate=function(o){var s=typeof this.operation=="string"?this.operation:this.operation.name;return{query:"".concat(e.default.Query," ").concat(s.charAt(0).toUpperCase()).concat(s.slice(1)," ").concat(this.queryDataArgumentAndTypeMap()," { ").concat(o," }"),variables:t.default.queryVariablesMap(this.variables)}},n.prototype.operationTemplate=function(){var o=typeof this.operation=="string"?this.operation:"".concat(this.operation.alias,": ").concat(this.operation.name);return"".concat(o," ").concat(this.queryDataNameAndArgumentMap()," { nodes { ").concat(t.default.queryFieldsMap(this.fields)," } }")},n})();return me.default=r,me}var Et;function Wn(){if(Et)return pe;Et=1,Object.defineProperty(pe,"__esModule",{value:!0});var e=Vn(),t=Qn();return pe.default={DefaultAppSyncQueryAdapter:t.default,DefaultAppSyncMutationAdapter:e.default},pe}var K={},Ot;function Kn(){if(Ot)return K;Ot=1;var e=K&&K.__assign||function(){return e=Object.assign||function(o){for(var s,i=1,a=arguments.length;i<a;i++){s=arguments[i];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(o[c]=s[c])}return o},e.apply(this,arguments)};Object.defineProperty(K,"__esModule",{value:!0});var t=ie(),r=ae(),n=(function(){function o(s,i){var a=this;Array.isArray(s)?this.variables=r.default.resolveVariables(s):(this.variables=s.variables,this.fields=s.fields,this.operation=s.operation),this.config={operationName:""},i&&Object.entries(i).forEach(function(c){var l=c[0],f=c[1];a.config[l]=f})}return o.prototype.mutationBuilder=function(){return this.operationWrapperTemplate(t.default.Mutation,this.variables,this.operationTemplate(this.operation))},o.prototype.mutationsBuilder=function(s){var i=this,a=s.map(function(c){return i.operation=c.operation,i.variables=c.variables,i.fields=c.fields,i.operationTemplate(c.operation)});return this.operationWrapperTemplate(t.default.Mutation,r.default.resolveVariables(s),a.join(`
12
+ `))},o.prototype.queryDataArgumentAndTypeMap=function(s){return this.fields&&typeof this.fields=="object"&&(s=e(e({},r.default.getNestedVariables(this.fields)),s)),s&&Object.keys(s).length>0?"(".concat(Object.keys(s).reduce(function(i,a,c){return"".concat(i).concat(c!==0?", ":"","$").concat(a,": ").concat(r.default.queryDataType(s[a]))},""),")"):""},o.prototype.operationWrapperTemplate=function(s,i,a){var c="".concat(s," ").concat(this.queryDataArgumentAndTypeMap(i),` {
13
+ `).concat(a,`
14
+ }`);return this.config.operationName&&(c=c.replace("mutation","mutation ".concat(this.config.operationName))),{query:c,variables:r.default.queryVariablesMap(i,this.fields)}},o.prototype.operationTemplate=function(s){var i=typeof s=="string"?s:"".concat(s.alias,": ").concat(s.name);return"".concat(i," ").concat(r.default.queryDataNameAndArgumentMap(this.variables)," ").concat(this.fields&&this.fields.length>0?`{
15
+ `.concat(r.default.queryFieldsMap(this.fields),`
16
+ }`):"")},o})();return K.default=n,K}var z={},Tt;function zn(){if(Tt)return z;Tt=1;var e=z&&z.__assign||function(){return e=Object.assign||function(o){for(var s,i=1,a=arguments.length;i<a;i++){s=arguments[i];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(o[c]=s[c])}return o},e.apply(this,arguments)};Object.defineProperty(z,"__esModule",{value:!0});var t=ie(),r=ae(),n=(function(){function o(s,i){var a=this;this.config={operationName:""},i&&Object.entries(i).forEach(function(c){var l=c[0],f=c[1];a.config[l]=f}),Array.isArray(s)?this.variables=r.default.resolveVariables(s):(this.variables=s.variables,this.fields=s.fields||[],this.operation=s.operation)}return o.prototype.queryBuilder=function(){return this.operationWrapperTemplate(this.operationTemplate(this.variables))},o.prototype.queriesBuilder=function(s){var i=this,a=function(){var c=[];return s.forEach(function(l){l&&(i.operation=l.operation,i.fields=l.fields,c.push(i.operationTemplate(l.variables)))}),c.join(" ")};return this.operationWrapperTemplate(a())},o.prototype.queryDataArgumentAndTypeMap=function(){var s=this.variables;return this.fields&&typeof this.fields=="object"&&(s=e(e({},r.default.getNestedVariables(this.fields)),s)),s&&Object.keys(s).length>0?"(".concat(Object.keys(s).reduce(function(i,a,c){return"".concat(i).concat(c!==0?", ":"","$").concat(a,": ").concat(r.default.queryDataType(s[a]))},""),")"):""},o.prototype.operationWrapperTemplate=function(s){var i="".concat(t.default.Query," ").concat(this.queryDataArgumentAndTypeMap()," { ").concat(s," }");return i=i.replace("query","query".concat(this.config.operationName!==""?" "+this.config.operationName:"")),{query:i,variables:r.default.queryVariablesMap(this.variables,this.fields)}},o.prototype.operationTemplate=function(s){var i=typeof this.operation=="string"?this.operation:"".concat(this.operation.alias,": ").concat(this.operation.name);return"".concat(i," ").concat(s?r.default.queryDataNameAndArgumentMap(s):""," ").concat(this.fields&&this.fields.length>0?"{ "+r.default.queryFieldsMap(this.fields)+" }":"")},o})();return z.default=n,z}var ge={},vt;function Jn(){if(vt)return ge;vt=1,Object.defineProperty(ge,"__esModule",{value:!0});var e=ie(),t=ae(),r=(function(){function n(o){Array.isArray(o)?this.variables=t.default.resolveVariables(o):(this.variables=o.variables,this.fields=o.fields,this.operation=o.operation)}return n.prototype.subscriptionBuilder=function(){return this.operationWrapperTemplate(e.default.Subscription,this.variables,this.operationTemplate(this.operation))},n.prototype.subscriptionsBuilder=function(o){var s=this,i=o.map(function(a){return s.operation=a.operation,s.variables=a.variables,s.fields=a.fields,s.operationTemplate(a.operation)});return this.operationWrapperTemplate(e.default.Subscription,t.default.resolveVariables(o),i.join(`
17
+ `))},n.prototype.queryDataNameAndArgumentMap=function(){return this.variables&&Object.keys(this.variables).length?"(".concat(Object.keys(this.variables).reduce(function(o,s,i){return"".concat(o).concat(i!==0?", ":"").concat(s,": $").concat(s)},""),")"):""},n.prototype.queryDataArgumentAndTypeMap=function(o){return Object.keys(o).length?"(".concat(Object.keys(o).reduce(function(s,i,a){return"".concat(s).concat(a!==0?", ":"","$").concat(i,": ").concat(t.default.queryDataType(o[i]))},""),")"):""},n.prototype.operationWrapperTemplate=function(o,s,i){return{query:"".concat(o," ").concat(this.queryDataArgumentAndTypeMap(s),` {
18
+ `).concat(i,`
19
+ }`),variables:t.default.queryVariablesMap(s)}},n.prototype.operationTemplate=function(o){var s=typeof this.operation=="string"?this.operation:"".concat(this.operation.alias,": ").concat(this.operation.name);return"".concat(s," ").concat(this.queryDataNameAndArgumentMap(),` {
20
+ `).concat(this.queryFieldsMap(this.fields),`
21
+ }`)},n.prototype.queryFieldsMap=function(o){var s=this;return o?o.map(function(i){return typeof i=="object"?"".concat(Object.keys(i)[0]," { ").concat(s.queryFieldsMap(Object.values(i)[0])," }"):"".concat(i)}).join(", "):""},n})();return ge.default=r,ge}var Rt;function Gn(){if(Rt)return q;Rt=1,Object.defineProperty(q,"__esModule",{value:!0}),q.adapters=q.query=q.mutation=q.subscription=void 0;var e=Wn();q.adapters=e.default;var t=Kn(),r=zn(),n=Jn();function o(a,c,l){var f;if(Array.isArray(a)){if(c){var p=new c(a,l);return p.queriesBuilder(a)}return f=new r.default(a,l),f.queriesBuilder(a)}if(c){var p=new c(a,l);return p.queryBuilder()}return f=new r.default(a,l),f.queryBuilder()}q.query=o;function s(a,c,l){var f,p;return Array.isArray(a)?c?(f=new c(a,l),f.mutationsBuilder(a)):(p=new t.default(a,l),p.mutationsBuilder(a)):c?(f=new c(a,l),f.mutationBuilder()):(p=new t.default(a,l),p.mutationBuilder())}q.mutation=s;function i(a,c){var l,f;return Array.isArray(a)?c?(l=new c(a),l.subscriptionsBuilder(a)):(f=new n.default(a),f.subscriptionsBuilder(a)):c?(l=new c(a),l.subscriptionBuilder()):(f=new n.default(a),f.subscriptionBuilder())}return q.subscription=i,q}Gn();const Xn=()=>{const t=_t.useContext(cr)?.sdk;return t||console.error("You must wrap your component in a <DataProvider>"),t?.sdkType==="dummy"||t?.sdkType==="vendure",t};exports.useSdk=Xn;
@@ -1,55 +0,0 @@
1
- import { VendurePluginConfig } from '../plugin-config';
2
- import { ProductVariantSpecification } from './vendure-product-variant-specifications-plugin.types';
3
- /**
4
- * Extends ProductVariant.customFields (ProductVariantCustomFields) with specifications.
5
- * Use with ProductVariantSpecificationsPlugin on the Vendure server.
6
- * Access via productVariant.customFields.specifications
7
- */
8
- declare module '@haus-storefront-react/shared-types' {
9
- interface ProductVariant {
10
- customFields?: {
11
- specifications?: ProductVariantSpecification[];
12
- };
13
- }
14
- }
15
- /**
16
- * Storefront plugin config for ProductVariantSpecificationsPlugin.
17
- * Adds `specifications` (key-value pairs) to product variant queries.
18
- */
19
- export declare const VendureProductVariantSpecificationsPlugin: VendurePluginConfig<Partial<{
20
- showBadges: (props: {
21
- product?: import('@haus-storefront-react/shared-types').Product | import('@haus-storefront-react/shared-types').SearchResult;
22
- variant?: import('@haus-storefront-react/shared-types').ProductVariant;
23
- parentComponent?: keyof import('./vendure-badge-plugin.types').BadgePluginSettings["availablePositions"];
24
- badges: import('@haus-storefront-react/shared-types').Maybe<import('@haus-storefront-react/shared-types').Badge[]>;
25
- }) => {
26
- badges: import('@haus-storefront-react/shared-types').Badge[];
27
- availablePositions?: string[];
28
- };
29
- showCampaignPrices: boolean;
30
- ordinaryPrice: (props: {
31
- product?: import('@haus-storefront-react/shared-types').Product;
32
- searchResult?: import('@haus-storefront-react/shared-types').SearchResult;
33
- variant?: import('@haus-storefront-react/shared-types').ProductVariant;
34
- orderLine?: import('@haus-storefront-react/shared-types').OrderLine;
35
- identifier?: string;
36
- }) => import('@haus-storefront-react/shared-types').Price;
37
- changeQuantityByPackageSize: (props: {
38
- product?: import('@haus-storefront-react/shared-types').Product | import('@haus-storefront-react/shared-types').SearchResult;
39
- variant?: import('@haus-storefront-react/shared-types').ProductVariant;
40
- identifier: string;
41
- }) => boolean;
42
- showPackageSize: (props: {
43
- product?: import('@haus-storefront-react/shared-types').Product | import('@haus-storefront-react/shared-types').SearchResult;
44
- variant?: import('@haus-storefront-react/shared-types').ProductVariant;
45
- identifier: string;
46
- }) => boolean;
47
- showCostPerPackage: (props: {
48
- product?: import('@haus-storefront-react/shared-types').Product | import('@haus-storefront-react/shared-types').SearchResult;
49
- variant?: import('@haus-storefront-react/shared-types').ProductVariant;
50
- identifier: string;
51
- }) => boolean;
52
- sortByPopularity: boolean;
53
- }>, Record<string, (...args: any[]) => any>, {
54
- [x: string]: any;
55
- }, import('../../../../../providers/src/vendure/index.ts').VendureSDK>;
@@ -1,8 +0,0 @@
1
- /**
2
- * Key-value pair for product variant specifications (e.g. Weight: 2.5 kg).
3
- * Matches the struct custom field defined by ProductVariantSpecificationsPlugin.
4
- */
5
- export interface ProductVariantSpecification {
6
- key: string;
7
- value: string;
8
- }
@@ -1,11 +0,0 @@
1
- import { VendurePluginConfig } from '../plugin-config';
2
- import { ProductVariantBySkuResult, ProductsBySkuPluginRequests } from './vendure-products-by-sku-plugin.types';
3
- declare module '@haus-storefront-react/core' {
4
- interface VendureSDK {
5
- /** Added by VendureProductsBySkuPlugin when enabled */
6
- productVariantsBySkus?: (skus: string[]) => Promise<ProductVariantBySkuResult>;
7
- }
8
- }
9
- export declare const VendureProductsBySkuPlugin: VendurePluginConfig<Record<string, never>, ProductsBySkuPluginRequests, {
10
- [x: string]: any;
11
- }, import('../../../../../providers/src/vendure/index.ts').VendureSDK>;
@@ -1,13 +0,0 @@
1
- import { ErrorResult } from '@haus-storefront-react/shared-types';
2
- interface ProductVariantBySku {
3
- sku: string;
4
- variantId: string | null;
5
- }
6
- export interface ProductVariantBySkuResult {
7
- variantIdsBySku: Array<ProductVariantBySku>;
8
- errorResults: Array<ErrorResult>;
9
- }
10
- export interface ProductsBySkuPluginRequests {
11
- productVariantsBySkus: (skus: string[]) => Promise<ProductVariantBySkuResult | ErrorResult>;
12
- }
13
- export {};
@@ -1,39 +0,0 @@
1
- import { Product } from '@haus-storefront-react/shared-types';
2
- import { VendurePluginConfig } from '../plugin-config';
3
- export declare const VendureRelatedProductsPlugin: VendurePluginConfig<Partial<{
4
- showBadges: (props: {
5
- product?: Product | import('@haus-storefront-react/shared-types').SearchResult;
6
- variant?: import('@haus-storefront-react/shared-types').ProductVariant;
7
- parentComponent?: keyof import('./vendure-badge-plugin.types').BadgePluginSettings["availablePositions"];
8
- badges: import('@haus-storefront-react/shared-types').Maybe<import('@haus-storefront-react/shared-types').Badge[]>;
9
- }) => {
10
- badges: import('@haus-storefront-react/shared-types').Badge[];
11
- availablePositions?: string[];
12
- };
13
- showCampaignPrices: boolean;
14
- ordinaryPrice: (props: {
15
- product?: Product;
16
- searchResult?: import('@haus-storefront-react/shared-types').SearchResult;
17
- variant?: import('@haus-storefront-react/shared-types').ProductVariant;
18
- orderLine?: import('@haus-storefront-react/shared-types').OrderLine;
19
- identifier?: string;
20
- }) => import('@haus-storefront-react/shared-types').Price;
21
- changeQuantityByPackageSize: (props: {
22
- product?: Product | import('@haus-storefront-react/shared-types').SearchResult;
23
- variant?: import('@haus-storefront-react/shared-types').ProductVariant;
24
- identifier: string;
25
- }) => boolean;
26
- showPackageSize: (props: {
27
- product?: Product | import('@haus-storefront-react/shared-types').SearchResult;
28
- variant?: import('@haus-storefront-react/shared-types').ProductVariant;
29
- identifier: string;
30
- }) => boolean;
31
- showCostPerPackage: (props: {
32
- product?: Product | import('@haus-storefront-react/shared-types').SearchResult;
33
- variant?: import('@haus-storefront-react/shared-types').ProductVariant;
34
- identifier: string;
35
- }) => boolean;
36
- sortByPopularity: boolean;
37
- }>, Record<string, (...args: any[]) => any>, {
38
- [x: string]: any;
39
- }, import('../../../../../providers/src/vendure/index.ts').VendureSDK>;
@@ -1,16 +0,0 @@
1
- import { ErrorResult, Product } from '@haus-storefront-react/shared-types';
2
- declare module '@haus-storefront-react/shared-types' {
3
- interface Product {
4
- relatedProductIds?: string[];
5
- }
6
- }
7
- declare module '../../../../../providers/src/vendure/index.ts' {
8
- interface VendureSDK {
9
- relatedProducts: (input: RelatedProductsInput) => Promise<Product[] | ErrorResult>;
10
- }
11
- }
12
- export interface RelatedProductsInput {
13
- id: string;
14
- take?: number;
15
- facetValueIds?: string[];
16
- }
@@ -1,2 +0,0 @@
1
- export * from '../configs/vendure-product-variant-specifications-plugin';
2
- export * from '../configs/vendure-product-variant-specifications-plugin.types';
@@ -1,3 +0,0 @@
1
- export * from '../configs/vendure-products-by-sku-plugin';
2
- export * from '../configs/vendure-products-by-sku-plugin.types';
3
- export { quickOrderVariantSkuValidationStrategy } from '../strategies/quick-order-variant-sku-validation-strategy';
@@ -1,3 +0,0 @@
1
- export * from '../configs/vendure-related-products-plugin';
2
- export * from '../configs/vendure-related-products-plugin.types';
3
- export * from '../hooks/use-related-products';
@@ -1,2 +0,0 @@
1
- import { RelatedProductsInput } from '../configs/vendure-related-products-plugin.types';
2
- export declare const useRelatedProducts: (input: RelatedProductsInput) => import('@tanstack/react-query').UseQueryResult<import('@haus-storefront-react/shared-types').ErrorResult | import('@haus-storefront-react/shared-types').Product[], Error>;
@@ -1,6 +0,0 @@
1
- import { QuickOrderVariantValidationStrategy } from '@haus-storefront-react/strategies';
2
- /**
3
- * Creates a validation strategy that resolves SKUs to variant IDs using productVariantsBySkus.
4
- * Use with QuickOrder.Root validationStrategy prop when VendureProductsBySkuPlugin is enabled.
5
- */
6
- export declare function quickOrderVariantSkuValidationStrategy(): QuickOrderVariantValidationStrategy;
@@ -1 +0,0 @@
1
- var e=typeof global==`object`&&global&&global.Object===Object&&global,t=typeof self==`object`&&self&&self.Object===Object&&self,n=e||t||Function(`return this`)(),r=n.Symbol,i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;function c(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch{}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}var l=Object.prototype.toString;function u(e){return l.call(e)}var d=`[object Null]`,ee=`[object Undefined]`,f=r?r.toStringTag:void 0;function p(e){return e==null?e===void 0?ee:d:f&&f in Object(e)?c(e):u(e)}function m(e){return typeof e==`object`&&!!e}var te=`[object Symbol]`;function ne(e){return typeof e==`symbol`||m(e)&&p(e)==te}function re(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var h=Array.isArray,ie=1/0,ae=r?r.prototype:void 0,oe=ae?ae.toString:void 0;function se(e){if(typeof e==`string`)return e;if(h(e))return re(e,se)+``;if(ne(e))return oe?oe.call(e):``;var t=e+``;return t==`0`&&1/e==-ie?`-0`:t}function g(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function ce(e){return e}var le=`[object AsyncFunction]`,ue=`[object Function]`,de=`[object GeneratorFunction]`,fe=`[object Proxy]`;function pe(e){if(!g(e))return!1;var t=p(e);return t==ue||t==de||t==le||t==fe}var _=n[`__core-js_shared__`],me=function(){var e=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function he(e){return!!me&&me in e}var ge=Function.prototype.toString;function v(e){if(e!=null){try{return ge.call(e)}catch{}try{return e+``}catch{}}return``}var _e=/[\\^$.*+?()[\]{}|]/g,ve=/^\[object .+?Constructor\]$/,ye=Function.prototype,be=Object.prototype,xe=ye.toString,Se=be.hasOwnProperty,Ce=RegExp(`^`+xe.call(Se).replace(_e,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function we(e){return!g(e)||he(e)?!1:(pe(e)?Ce:ve).test(v(e))}function Te(e,t){return e?.[t]}function y(e,t){var n=Te(e,t);return we(n)?n:void 0}var Ee=y(n,`WeakMap`),De=Object.create,Oe=function(){function e(){}return function(t){if(!g(t))return{};if(De)return De(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function ke(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var Ae=function(){try{var e=y(Object,`defineProperty`);return e({},``,{}),e}catch{}}();function je(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Me=9007199254740991,Ne=/^(?:0|[1-9]\d*)$/;function b(e,t){var n=typeof e;return t??=Me,!!t&&(n==`number`||n!=`symbol`&&Ne.test(e))&&e>-1&&e%1==0&&e<t}function Pe(e,t,n){t==`__proto__`&&Ae?Ae(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function x(e,t){return e===t||e!==e&&t!==t}var Fe=Object.prototype.hasOwnProperty;function S(e,t,n){var r=e[t];(!(Fe.call(e,t)&&x(r,n))||n===void 0&&!(t in e))&&Pe(e,t,n)}function C(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?Pe(n,s,c):S(n,s,c)}return n}var Ie=9007199254740991;function w(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Ie}function T(e){return e!=null&&w(e.length)&&!pe(e)}var Le=Object.prototype;function E(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Le)}function Re(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var ze=`[object Arguments]`;function Be(e){return m(e)&&p(e)==ze}var Ve=Object.prototype,He=Ve.hasOwnProperty,Ue=Ve.propertyIsEnumerable,We=Be(function(){return arguments}())?Be:function(e){return m(e)&&He.call(e,`callee`)&&!Ue.call(e,`callee`)};function Ge(){return!1}var Ke=typeof exports==`object`&&exports&&!exports.nodeType&&exports,qe=Ke&&typeof module==`object`&&module&&!module.nodeType&&module,Je=qe&&qe.exports===Ke?n.Buffer:void 0,D=(Je?Je.isBuffer:void 0)||Ge,Ye=`[object Arguments]`,Xe=`[object Array]`,Ze=`[object Boolean]`,Qe=`[object Date]`,$e=`[object Error]`,et=`[object Function]`,tt=`[object Map]`,nt=`[object Number]`,rt=`[object Object]`,it=`[object RegExp]`,at=`[object Set]`,ot=`[object String]`,st=`[object WeakMap]`,ct=`[object ArrayBuffer]`,lt=`[object DataView]`,ut=`[object Float32Array]`,dt=`[object Float64Array]`,ft=`[object Int8Array]`,pt=`[object Int16Array]`,mt=`[object Int32Array]`,ht=`[object Uint8Array]`,gt=`[object Uint8ClampedArray]`,_t=`[object Uint16Array]`,vt=`[object Uint32Array]`,O={};O[ut]=O[dt]=O[ft]=O[pt]=O[mt]=O[ht]=O[gt]=O[_t]=O[vt]=!0,O[Ye]=O[Xe]=O[ct]=O[Ze]=O[lt]=O[Qe]=O[$e]=O[et]=O[tt]=O[nt]=O[rt]=O[it]=O[at]=O[ot]=O[st]=!1;function yt(e){return m(e)&&w(e.length)&&!!O[p(e)]}function k(e){return function(t){return e(t)}}var bt=typeof exports==`object`&&exports&&!exports.nodeType&&exports,A=bt&&typeof module==`object`&&module&&!module.nodeType&&module,j=A&&A.exports===bt&&e.process,M=function(){try{return A&&A.require&&A.require(`util`).types||j&&j.binding&&j.binding(`util`)}catch{}}(),xt=M&&M.isTypedArray,St=xt?k(xt):yt,Ct=Object.prototype.hasOwnProperty;function wt(e,t){var n=h(e),r=!n&&We(e),i=!n&&!r&&D(e),a=!n&&!r&&!i&&St(e),o=n||r||i||a,s=o?Re(e.length,String):[],c=s.length;for(var l in e)(t||Ct.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||b(l,c)))&&s.push(l);return s}function Tt(e,t){return function(n){return e(t(n))}}var Et=Tt(Object.keys,Object),Dt=Object.prototype.hasOwnProperty;function Ot(e){if(!E(e))return Et(e);var t=[];for(var n in Object(e))Dt.call(e,n)&&n!=`constructor`&&t.push(n);return t}function N(e){return T(e)?wt(e):Ot(e)}function kt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var At=Object.prototype.hasOwnProperty;function jt(e){if(!g(e))return kt(e);var t=E(e),n=[];for(var r in e)r==`constructor`&&(t||!At.call(e,r))||n.push(r);return n}function P(e){return T(e)?wt(e,!0):jt(e)}var Mt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nt=/^\w*$/;function Pt(e,t){if(h(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||ne(e)?!0:Nt.test(e)||!Mt.test(e)||t!=null&&e in Object(t)}var F=y(Object,`create`);function Ft(){this.__data__=F?F(null):{},this.size=0}function It(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Lt=`__lodash_hash_undefined__`,Rt=Object.prototype.hasOwnProperty;function zt(e){var t=this.__data__;if(F){var n=t[e];return n===Lt?void 0:n}return Rt.call(t,e)?t[e]:void 0}var Bt=Object.prototype.hasOwnProperty;function Vt(e){var t=this.__data__;return F?t[e]!==void 0:Bt.call(t,e)}var Ht=`__lodash_hash_undefined__`;function Ut(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=F&&t===void 0?Ht:t,this}function I(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}I.prototype.clear=Ft,I.prototype.delete=It,I.prototype.get=zt,I.prototype.has=Vt,I.prototype.set=Ut;function Wt(){this.__data__=[],this.size=0}function L(e,t){for(var n=e.length;n--;)if(x(e[n][0],t))return n;return-1}var Gt=Array.prototype.splice;function Kt(e){var t=this.__data__,n=L(t,e);return n<0?!1:(n==t.length-1?t.pop():Gt.call(t,n,1),--this.size,!0)}function qt(e){var t=this.__data__,n=L(t,e);return n<0?void 0:t[n][1]}function Jt(e){return L(this.__data__,e)>-1}function Yt(e,t){var n=this.__data__,r=L(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function R(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}R.prototype.clear=Wt,R.prototype.delete=Kt,R.prototype.get=qt,R.prototype.has=Jt,R.prototype.set=Yt;var z=y(n,`Map`);function Xt(){this.size=0,this.__data__={hash:new I,map:new(z||R),string:new I}}function Zt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function B(e,t){var n=e.__data__;return Zt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Qt(e){var t=B(this,e).delete(e);return this.size-=t?1:0,t}function $t(e){return B(this,e).get(e)}function en(e){return B(this,e).has(e)}function tn(e,t){var n=B(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function V(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}V.prototype.clear=Xt,V.prototype.delete=Qt,V.prototype.get=$t,V.prototype.has=en,V.prototype.set=tn;var nn=`Expected a function`;function H(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(nn);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(H.Cache||V),n}H.Cache=V;var rn=500;function an(e){var t=H(e,function(e){return n.size===rn&&n.clear(),e}),n=t.cache;return t}var on=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sn=/\\(\\)?/g,cn=an(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(on,function(e,n,r,i){t.push(r?i.replace(sn,`$1`):n||e)}),t});function ln(e){return e==null?``:se(e)}function U(e,t){return h(e)?e:Pt(e,t)?[e]:cn(ln(e))}var un=1/0;function W(e){if(typeof e==`string`||ne(e))return e;var t=e+``;return t==`0`&&1/e==-un?`-0`:t}function dn(e,t){t=U(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[W(t[n++])];return n&&n==r?e:void 0}function fn(e,t,n){var r=e==null?void 0:dn(e,t);return r===void 0?n:r}function pn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var mn=Tt(Object.getPrototypeOf,Object);function hn(){this.__data__=new R,this.size=0}function gn(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function _n(e){return this.__data__.get(e)}function vn(e){return this.__data__.has(e)}var yn=200;function bn(e,t){var n=this.__data__;if(n instanceof R){var r=n.__data__;if(!z||r.length<yn-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new V(r)}return n.set(e,t),this.size=n.size,this}function G(e){this.size=(this.__data__=new R(e)).size}G.prototype.clear=hn,G.prototype.delete=gn,G.prototype.get=_n,G.prototype.has=vn,G.prototype.set=bn;function xn(e,t){return e&&C(t,N(t),e)}function Sn(e,t){return e&&C(t,P(t),e)}var Cn=typeof exports==`object`&&exports&&!exports.nodeType&&exports,wn=Cn&&typeof module==`object`&&module&&!module.nodeType&&module,Tn=wn&&wn.exports===Cn?n.Buffer:void 0,En=Tn?Tn.allocUnsafe:void 0;function Dn(e,t){if(t)return e.slice();var n=e.length,r=En?En(n):new e.constructor(n);return e.copy(r),r}function On(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function kn(){return[]}var An=Object.prototype.propertyIsEnumerable,jn=Object.getOwnPropertySymbols,K=jn?function(e){return e==null?[]:(e=Object(e),On(jn(e),function(t){return An.call(e,t)}))}:kn;function Mn(e,t){return C(e,K(e),t)}var Nn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)pn(t,K(e)),e=mn(e);return t}:kn;function Pn(e,t){return C(e,Nn(e),t)}function Fn(e,t,n){var r=t(e);return h(e)?r:pn(r,n(e))}function In(e){return Fn(e,N,K)}function Ln(e){return Fn(e,P,Nn)}var q=y(n,`DataView`),J=y(n,`Promise`),Rn=y(n,`Set`),zn=`[object Map]`,Bn=`[object Object]`,Vn=`[object Promise]`,Hn=`[object Set]`,Un=`[object WeakMap]`,Wn=`[object DataView]`,Gn=v(q),Kn=v(z),qn=v(J),Jn=v(Rn),Yn=v(Ee),Y=p;(q&&Y(new q(new ArrayBuffer(1)))!=Wn||z&&Y(new z)!=zn||J&&Y(J.resolve())!=Vn||Rn&&Y(new Rn)!=Hn||Ee&&Y(new Ee)!=Un)&&(Y=function(e){var t=p(e),n=t==Bn?e.constructor:void 0,r=n?v(n):``;if(r)switch(r){case Gn:return Wn;case Kn:return zn;case qn:return Vn;case Jn:return Hn;case Yn:return Un}return t});var X=Y,Xn=Object.prototype.hasOwnProperty;function Zn(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&Xn.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}var Qn=n.Uint8Array;function $n(e){var t=new e.constructor(e.byteLength);return new Qn(t).set(new Qn(e)),t}function er(e,t){var n=t?$n(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var tr=/\w*$/;function nr(e){var t=new e.constructor(e.source,tr.exec(e));return t.lastIndex=e.lastIndex,t}var rr=r?r.prototype:void 0,ir=rr?rr.valueOf:void 0;function ar(e){return ir?Object(ir.call(e)):{}}function or(e,t){var n=t?$n(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var sr=`[object Boolean]`,cr=`[object Date]`,lr=`[object Map]`,ur=`[object Number]`,dr=`[object RegExp]`,fr=`[object Set]`,pr=`[object String]`,mr=`[object Symbol]`,hr=`[object ArrayBuffer]`,gr=`[object DataView]`,_r=`[object Float32Array]`,vr=`[object Float64Array]`,yr=`[object Int8Array]`,br=`[object Int16Array]`,xr=`[object Int32Array]`,Sr=`[object Uint8Array]`,Cr=`[object Uint8ClampedArray]`,wr=`[object Uint16Array]`,Tr=`[object Uint32Array]`;function Er(e,t,n){var r=e.constructor;switch(t){case hr:return $n(e);case sr:case cr:return new r(+e);case gr:return er(e,n);case _r:case vr:case yr:case br:case xr:case Sr:case Cr:case wr:case Tr:return or(e,n);case lr:return new r;case ur:case pr:return new r(e);case dr:return nr(e);case fr:return new r;case mr:return ar(e)}}function Dr(e){return typeof e.constructor==`function`&&!E(e)?Oe(mn(e)):{}}var Or=`[object Map]`;function kr(e){return m(e)&&X(e)==Or}var Ar=M&&M.isMap,jr=Ar?k(Ar):kr,Mr=`[object Set]`;function Nr(e){return m(e)&&X(e)==Mr}var Pr=M&&M.isSet,Fr=Pr?k(Pr):Nr,Ir=1,Lr=2,Rr=4,zr=`[object Arguments]`,Br=`[object Array]`,Vr=`[object Boolean]`,Hr=`[object Date]`,Ur=`[object Error]`,Wr=`[object Function]`,Gr=`[object GeneratorFunction]`,Kr=`[object Map]`,qr=`[object Number]`,Jr=`[object Object]`,Yr=`[object RegExp]`,Xr=`[object Set]`,Zr=`[object String]`,Qr=`[object Symbol]`,$r=`[object WeakMap]`,ei=`[object ArrayBuffer]`,ti=`[object DataView]`,ni=`[object Float32Array]`,ri=`[object Float64Array]`,ii=`[object Int8Array]`,ai=`[object Int16Array]`,oi=`[object Int32Array]`,si=`[object Uint8Array]`,ci=`[object Uint8ClampedArray]`,li=`[object Uint16Array]`,ui=`[object Uint32Array]`,Z={};Z[zr]=Z[Br]=Z[ei]=Z[ti]=Z[Vr]=Z[Hr]=Z[ni]=Z[ri]=Z[ii]=Z[ai]=Z[oi]=Z[Kr]=Z[qr]=Z[Jr]=Z[Yr]=Z[Xr]=Z[Zr]=Z[Qr]=Z[si]=Z[ci]=Z[li]=Z[ui]=!0,Z[Ur]=Z[Wr]=Z[$r]=!1;function Q(e,t,n,r,i,a){var o,s=t&Ir,c=t&Lr,l=t&Rr;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!g(e))return e;var u=h(e);if(u){if(o=Zn(e),!s)return ke(e,o)}else{var d=X(e),ee=d==Wr||d==Gr;if(D(e))return Dn(e,s);if(d==Jr||d==zr||ee&&!i){if(o=c||ee?{}:Dr(e),!s)return c?Pn(e,Sn(o,e)):Mn(e,xn(o,e))}else{if(!Z[d])return i?e:{};o=Er(e,d,s)}}a||=new G;var f=a.get(e);if(f)return f;a.set(e,o),Fr(e)?e.forEach(function(r){o.add(Q(r,t,n,r,e,a))}):jr(e)&&e.forEach(function(r,i){o.set(i,Q(r,t,n,i,e,a))});var p=u?void 0:(l?c?Ln:In:c?P:N)(e);return je(p||e,function(r,i){p&&(i=r,r=e[i]),S(o,i,Q(r,t,n,i,e,a))}),o}var di=1,fi=4;function pi(e){return Q(e,di|fi)}function mi(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var hi=mi();function gi(e,t){return e&&hi(e,t,N)}function _i(e,t){return function(n,r){if(n==null)return n;if(!T(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var vi=_i(gi);function yi(e){return typeof e==`function`?e:ce}function bi(e,t){return(h(e)?je:vi)(e,yi(t))}function xi(e,t,n,r){if(!g(e))return e;t=U(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var c=W(t[i]),l=n;if(c===`__proto__`||c===`constructor`||c===`prototype`)return e;if(i!=o){var u=s[c];l=r?r(u,c,s):void 0,l===void 0&&(l=g(u)?u:b(t[i+1])?[]:{})}S(s,c,l),s=s[c]}return e}function $(e,t,n){return e==null?e:xi(e,t,n)}var Si=class{constructor(e){this.sdk={},this.enabled=!0,this.providers=[],this.name=e.name,this.enabled=e.enabled??!0,this.enableFeatures=e.enableFeatures,this.queryUpdates=e.queryUpdates,this.requests=e.requests,this.settings=e.settings,this.providers=e.providers??[],this.onSdkReady=e.onSdkReady}init(e){let t={};return Array.isArray(e.enableFeatures)?bi(e.enableFeatures,e=>{$(t??={},e,!0)}):t=pi(e.enableFeatures),bi(t,(e,t)=>{typeof e==`function`?$(this.enableFeatures??={},t,e):typeof e==`boolean`?(e===!0&&fn(this.enableFeatures,t)===void 0||e===!1)&&$(this.enableFeatures??={},t,e):$(this.enableFeatures??={},t,e)}),this.settings=e.settings||this.settings,this}setSdk(e){if(this.sdk=e,this.onSdkReady)try{let t=this.onSdkReady(e);t&&typeof t.then==`function`&&t.catch(e=>{console.error(`[VendurePluginConfig] onSdkReady error for plugin "${this.name}":`,e)})}catch(e){console.error(`[VendurePluginConfig] onSdkReady error for plugin "${this.name}":`,e)}}getSdk(){return this.sdk}getName(){return this.name}isEnabled(){return this.enabled}setEnabled(e){this.enabled=e}setQueryUpdates(e){this.queryUpdates=e}getQueryUpdates(){return this.queryUpdates}setRequests(e){this.requests=e}getRequests(){return this.requests}setProviders(e){this.providers=e}getProviders(){return this.providers||[]}setSettings(e){this.settings=e}getSettings(){return this.settings}setEnableFeatures(e){this.enableFeatures=e}getEnabled(){return this.enabled}getEnabledFeatures(){return this.enableFeatures||{}}};Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return We}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return In}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return fn}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return St}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return dn}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return vi}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return On}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Qn}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Si}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return x}});