From f5c702d8cb67e7d1c54e9890604c5a8e6ee7f1cf Mon Sep 17 00:00:00 2001 From: Boyan Tabakov Date: Fri, 14 Apr 2023 13:12:10 +0300 Subject: [PATCH] Build --- build/sharetribe-flex-sdk-node.js | 2 +- build/sharetribe-flex-sdk-web.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/sharetribe-flex-sdk-node.js b/build/sharetribe-flex-sdk-node.js index a06a204..645b78b 100644 --- a/build/sharetribe-flex-sdk-node.js +++ b/build/sharetribe-flex-sdk-node.js @@ -12664,7 +12664,7 @@ var external_axios_default = /*#__PURE__*/__webpack_require__.n(external_axios_) // CONCATENATED MODULE: ./src/version.js // Update this when updating package.json -var sdkVersion = '1.17.0'; +var sdkVersion = '1.18.0'; /* harmony default export */ var src_version = (sdkVersion); // CONCATENATED MODULE: ./src/runtime.js diff --git a/build/sharetribe-flex-sdk-web.js b/build/sharetribe-flex-sdk-web.js index 546ddae..352c8f0 100644 --- a/build/sharetribe-flex-sdk-web.js +++ b/build/sharetribe-flex-sdk-web.js @@ -5,4 +5,4 @@ * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license - */!function(i){if(void 0===(o="function"==typeof(n=i)?n.call(e,r,e,t):n)||(t.exports=o),!0,t.exports=i(),!!0){var c=window.Cookies,a=window.Cookies=i();a.noConflict=function(){return window.Cookies=c,a}}}((function(){function t(){for(var t=0,e={};t-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(6)(r(4),"Map");t.exports=n},function(t,e,r){var n=r(116),o=r(123),i=r(125),c=r(126),a=r(127);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){u.headers[t]=n.merge(c)})),t.exports=u}).call(this,r(74))},function(t,e,r){var n=r(161);t.exports=function(t){return(null==t?0:t.length)?n(t,1):[]}},function(t,e,r){var n=r(44);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},function(t,e,r){var n=r(6),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,r){var n=r(11),o=r(8);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this,r(47))},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,r){var n=r(93),o=r(21);t.exports=function(t,e){return t&&n(t,e,o)}},function(t,e,r){(function(t){var n=r(4),o=r(98),i=e&&!e.nodeType&&e,c=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=c&&c.exports===i?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||o;t.exports=s}).call(this,r(51)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){var n=r(99),o=r(53),i=r(100),c=i&&i.isTypedArray,a=c?o(c):n;t.exports=a},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(22),o=r(111),i=r(112),c=r(113),a=r(114),s=r(115);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=c,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,r){var n=r(128),o=r(7);t.exports=function t(e,r,i,c,a){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,c,t,a))}},function(t,e,r){var n=r(58),o=r(131),i=r(59);t.exports=function(t,e,r,c,a,s){var u=1&r,g=t.length,p=e.length;if(g!=p&&!(u&&p>g))return!1;var l=s.get(t),f=s.get(e);if(l&&f)return l==e&&f==t;var h=-1,m=!0,d=2&r?new n:void 0;for(s.set(t,e),s.set(e,t);++h1)for(var r=1;r-1}},function(t,e,r){var n=r(23);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(22);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(22),o=r(36),i=r(37);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var c=r.__data__;if(!o||c.length<199)return c.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(c)}return r.set(t,e),this.size=r.size,this}},function(t,e,r){var n=r(117),o=r(22),i=r(36);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},function(t,e,r){var n=r(118),o=r(119),i=r(120),c=r(121),a=r(122);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e0&&i(g)?r>1?t(g,r-1,i,c,a):n(a,g):c||(a[a.length]=g)}return a}},function(t,e,r){var n=r(15),o=r(32),i=r(2),c=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(c&&t&&t[c])}},function(t,e){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},function(t,e,r){var n=r(165),o=r(44),i=r(9),c=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=c},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var r=Date.now;t.exports=function(t){var e=0,n=0;return function(){var o=r(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,r){var n=r(54)(Object.getPrototypeOf,Object);t.exports=n},function(t,e){t.exports=function(t,e,r,n){var o=-1,i=null==t?0:t.length;for(n&&i&&(r=t[++o]);++o=200&&(p=s,l=!1,e=new n(e));t:for(;++g-1}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n=o?t:n(t,e,r)}},function(t,e){t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n-1;);return r}},function(t,e,r){var n=r(182),o=r(183),i=r(184);t.exports=function(t){return o(t)?i(t):n(t)}},function(t,e){t.exports=function(t){return t.split("")}},function(t,e){var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return r.test(t)}},function(t,e){var r="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+o+")"+"?",u="[\\ufe0e\\ufe0f]?"+s+("(?:\\u200d(?:"+[i,c,a].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*"),g="(?:"+[i+n+"?",n,c,a,r].join("|")+")",p=RegExp(o+"(?="+o+")|"+g+u,"g");t.exports=function(t){return t.match(p)||[]}},function(t,e,r){var n=r(68),o=r(16);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}},function(t,e,r){var n=r(17),o=r(16),i=r(21);t.exports=function(t){return function(e,r,c){var a=Object(e);if(!o(e)){var s=n(r,3);e=i(e),r=function(t){return s(a[t],t,a)}}var u=t(e,r,c);return u>-1?a[s?e[u]:u]:void 0}}},function(t,e,r){var n=r(70),o=r(17),i=r(188),c=Math.max;t.exports=function(t,e,r){var a=null==t?0:t.length;if(!a)return-1;var s=null==r?0:i(r);return s<0&&(s=c(a+s,0)),n(t,o(e,3),s)}},function(t,e,r){var n=r(189);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},function(t,e,r){var n=r(190);t.exports=function(t){return t?(t=n(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,e,r){var n=r(191),o=r(8),i=r(28),c=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=a.test(t);return r||s.test(t)?u(t.slice(2),r?2:8):c.test(t)?NaN:+t}},function(t,e,r){var n=r(71),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},function(t,e,r){var n=r(26),o=r(40);t.exports=function(t,e,r,i){return o(t,e,r(n(t,e)),i)}},function(t,e,r){var n=r(9);t.exports=function(t){return"function"==typeof t?t:n}},function(t,e,r){"use strict";var n=r(1),o=r(72),i=r(195),c=r(79);function a(t){var e=new i(t),r=o(i.prototype.request,e);return n.extend(r,i.prototype,e),n.extend(r,e),r}var s=a(r(41));s.Axios=i,s.create=function(t){return a(c(s.defaults,t))},s.Cancel=r(80),s.CancelToken=r(209),s.isCancel=r(78),s.all=function(t){return Promise.all(t)},s.spread=r(210),s.isAxiosError=r(211),t.exports=s,t.exports.default=s},function(t,e,r){"use strict";var n=r(1),o=r(73),i=r(196),c=r(197),a=r(79),s=r(207),u=s.validators;function g(t){this.defaults=t,this.interceptors={request:new i,response:new i}}g.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&s.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var r=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(t){i.push(t.fulfilled,t.rejected)})),!n){var g=[c,void 0];for(Array.prototype.unshift.apply(g,r),g.concat(i),o=Promise.resolve(t);g.length;)o=o.then(g.shift(),g.shift());return o}for(var p=t;r.length;){var l=r.shift(),f=r.shift();try{p=l(p)}catch(t){f(t);break}}try{o=c(p)}catch(t){return Promise.reject(t)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},g.prototype.getUri=function(t){return t=a(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(t){g.prototype[t]=function(e,r){return this.request(a(r||{},{method:t,url:e,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){g.prototype[t]=function(e,r,n){return this.request(a(n||{},{method:t,url:e,data:r}))}})),t.exports=g},function(t,e,r){"use strict";var n=r(1);function o(){this.handlers=[]}o.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},function(t,e,r){"use strict";var n=r(1),o=r(198),i=r(78),c=r(41);function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return a(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||c.adapter)(t).then((function(e){return a(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(a(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,r){"use strict";var n=r(1),o=r(41);t.exports=function(t,e,r){var i=this||o;return n.forEach(r,(function(r){t=r.call(i,t,e)})),t}},function(t,e,r){"use strict";var n=r(1);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},function(t,e,r){"use strict";var n=r(77);t.exports=function(t,e,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},function(t,e,r){"use strict";var n=r(1);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,o,i,c){var a=[];a.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(o)&&a.push("path="+o),n.isString(i)&&a.push("domain="+i),!0===c&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,r){"use strict";var n=r(203),o=r(204);t.exports=function(t,e){return t&&!n(e)?o(t,e):e}},function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,r){"use strict";var n=r(1),o=["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.exports=function(t){var e,r,i,c={};return t?(n.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=n.trim(t.substr(0,i)).toLowerCase(),r=n.trim(t.substr(i+1)),e){if(c[e]&&o.indexOf(e)>=0)return;c[e]="set-cookie"===e?(c[e]?c[e]:[]).concat([r]):c[e]?c[e]+", "+r:r}})),c):c}},function(t,e,r){"use strict";var n=r(1);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=o(window.location.href),function(e){var r=n.isString(e)?o(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},function(t,e,r){"use strict";var n=r(208),o={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){o[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var i={},c=n.version.split(".");function a(t,e){for(var r=e?e.split("."):c,n=t.split("."),o=0;o<3;o++){if(r[o]>n[o])return!0;if(r[o]0;){var i=n[o],c=e[i];if(c){var a=t[i],s=void 0===a||c(a,i,t);if(!0!==s)throw new TypeError("option "+i+" must be "+s)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:o}},function(t){t.exports=JSON.parse('{"name":"axios","version":"0.21.2","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},function(t,e,r){"use strict";var n=r(80);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,r){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},function(t,e,r){"use strict";r.r(e),r.d(e,"createInstance",(function(){return wo})),r.d(e,"createMultitenantInstance",(function(){return _o})),r.d(e,"types",(function(){return n})),r.d(e,"tokenStore",(function(){return So})),r.d(e,"transit",(function(){return jo})),r.d(e,"util",(function(){return Eo}));var n={};r.r(n),r.d(n,"UUID",(function(){return L})),r.d(n,"LatLng",(function(){return D})),r.d(n,"LatLngBounds",(function(){return I})),r.d(n,"Money",(function(){return M})),r.d(n,"BigDecimal",(function(){return R})),r.d(n,"toType",(function(){return N})),r.d(n,"replacer",(function(){return U})),r.d(n,"reviver",(function(){return q}));var o=r(29),i=r.n(o),c=r(3),a=r.n(c),s=r(0),u=r.n(s),g=r(81),p=r.n(g),l=r(19),f=r.n(l),h=r(12),m=r.n(h),d=r(82),y=r.n(d),b=r(83),v=r.n(b);function O(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=t[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var w=function(t){return v()(t,"/")},_=function(t){return y()(t.split("/"),"").map((function(t){return t.replace(/_\w/g,(function(t){return t[1].toUpperCase()}))}))},S=function(t){return m()(t,(function(t,e,r){return t.push("".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(e))),t}),[]).join("&")},j=[{path:"marketplace/show",method:"get"},{path:"users/show",method:"get"},{path:"current_user/show",method:"get"},{path:"current_user/create",method:"post"},{path:"current_user/create_with_idp",method:"post"},{path:"current_user/update_profile",method:"post"},{path:"current_user/change_email",method:"post"},{path:"current_user/change_password",method:"post"},{path:"current_user/delete",method:"post"},{path:"current_user/verify_email",method:"post"},{path:"current_user/send_verification_email",method:"post"},{path:"current_user/create_stripe_account",method:"post"},{path:"current_user/update_stripe_account",method:"post"},{path:"current_user/delete_stripe_account",method:"post"},{path:"password_reset/request",method:"post"},{path:"password_reset/reset",method:"post"},{path:"listings/show",method:"get"},{path:"own_listings/show",method:"get"},{path:"listings/query",method:"get"},{path:"own_listings/query",method:"get"},{path:"listings/search",method:"get"},{path:"own_listings/create",method:"post"},{path:"own_listings/create_draft",method:"post"},{path:"own_listings/publish_draft",method:"post"},{path:"own_listings/discard_draft",method:"post"},{path:"own_listings/update",method:"post"},{path:"own_listings/open",method:"post"},{path:"own_listings/close",method:"post"},{path:"own_listings/add_image",method:"post"},{path:"availability_exceptions/create",method:"post"},{path:"availability_exceptions/delete",method:"post"},{path:"availability_exceptions/query",method:"get"},{path:"images/upload",method:"post",multipart:!0},{path:"transactions/initiate",method:"post"},{path:"transactions/initiate_speculative",method:"post"},{path:"transactions/transition",method:"post"},{path:"transactions/transition_speculative",method:"post"},{path:"transactions/query",method:"get"},{path:"transactions/show",method:"get"},{path:"process_transitions/query",method:"get"},{path:"bookings/query",method:"get"},{path:"messages/query",method:"get"},{path:"messages/send",method:"post"},{path:"reviews/query",method:"get"},{path:"reviews/show",method:"get"},{path:"timeslots/query",method:"get"},{path:"stripe_account/create",method:"post"},{path:"stripe_account/fetch",method:"get"},{path:"stripe_account/update",method:"post"},{path:"stripe_account_links/create",method:"post"},{path:"stripe_persons/create",method:"post"},{path:"stripe_setup_intents/create",method:"post"},{path:"stripe_customer/create",method:"post"},{path:"stripe_customer/add_payment_method",method:"post"},{path:"stripe_customer/delete_payment_method",method:"post"},{path:"stock_adjustments/query",method:"get"},{path:"stock_adjustments/create",method:"post"},{path:"stock/compare_and_set",method:"post"}],E=[{path:"token",method:"post"},{path:"revoke",method:"post"},{path:"auth_with_idp",method:"post"}],T=[{pathFn:function(t){var e=t.clientId,r=t.version,n=t.assetPath;return"pub/".concat(e,"/v/").concat(r,"/").concat(n)},method:"get",name:"byVersion"},{pathFn:function(t){var e=t.clientId,r=t.alias,n=t.assetPath;return"pub/".concat(e,"/a/").concat(r,"/").concat(n)},method:"get",name:"byAlias"}],P=r(20),A=r.n(P),x=r(30),C=r.n(x);function k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var L=function t(e){k(this,t),this._sdkType=this.constructor._sdkType,this.uuid=e};L._sdkType="UUID";var D=function t(e,r){k(this,t),this._sdkType=this.constructor._sdkType,this.lat=e,this.lng=r};D._sdkType="LatLng";var I=function t(e,r){k(this,t),this._sdkType=this.constructor._sdkType,this.ne=e,this.sw=r};I._sdkType="LatLngBounds";var M=function t(e,r){k(this,t),this._sdkType=this.constructor._sdkType,this.amount=e,this.currency=r};M._sdkType="Money";var R=function t(e){k(this,t),this._sdkType=this.constructor._sdkType,this.value=e};R._sdkType="BigDecimal";var N=function(t){switch(t&&t._sdkType){case"LatLng":return new D(t.lat,t.lng);case"LatLngBounds":return new I(t.ne,t.sw);case"UUID":return new L(t.uuid);case"Money":return new M(t.amount,t.currency);case"BigDecimal":return new R(t.value);default:return t}},U=function(t,e){return e},q=function(t,e){return N(e)};function B(t){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var H=function(t){return encodeURIComponent(t).replace(/%2C/gi,",")},$=function(t,e){var r;try{r=function t(e){var r;if(e instanceof L)r=e.uuid;else if(e instanceof D)r="".concat(e.lat,",").concat(e.lng);else if(e instanceof I)r="".concat(e.ne.lat,",").concat(e.ne.lng,",").concat(e.sw.lat,",").concat(e.sw.lng);else if(Array.isArray(e))r=e.map(t);else if(e instanceof Date)r=e.toISOString();else if(null==e)r=e;else{if("object"===B(e))throw new Error("unknown-type");r=e}return r}(e)}catch(r){throw r&&"unknown-type"===r.message?new Error("Don't know how to serialize query parameter '".concat(t,"': ").concat(e)):r}return null==r?null:[t,H(r)]},F=function(t){return C()(A()(t,(function(t,e){var r=$(e,t);return r?r.join("="):null}))).join("&")};function V(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function z(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Q(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=t[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function X(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return tt({},t,{enterQueue:X(e).reverse(),leaveStack:[]})}(e,t))}};function it(t,e){for(var r=0;r1?t:t.res&&401===t.res.status&&e.refresh_token?ot([new ct,new gt].concat(pt(o.auth.token)))({params:{client_id:r,grant_type:"refresh_token",refresh_token:e.refresh_token},tokenStore:n}).then((function(e){var r=e.authToken;return ft({},t,{authToken:r,enterQueue:c,error:null})})).catch((function(e){return ft({},t,{refreshTokenRetry:{retryQueue:c,attempts:a,res:e.response}})})):t}}])&&mt(e.prototype,r),n&&mt(e,n),t}();function yt(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e1?t:t.res&&401===t.res.status?ot([new ct,new gt].concat(yt(n.auth.token)))({params:{client_id:e,grant_type:"client_credentials",scope:"public-read"},tokenStore:r}).then((function(e){var r=e.authToken;return vt({},t,{authToken:r,enterQueue:i,error:null})})):t}}])&&wt(e.prototype,r),n&&wt(e,n),t}();function St(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function jt(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Wt(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Xt(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function oe(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function ge(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function de(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Pe(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function De(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function qe(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Je(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[],e=Or(t);return ur.a.reader("json",{handlers:fr({},e,{":":function(t){return t},set:function(t){return t},list:function(t){return t}}),mapBuilder:_r})},jr=[Object,ur.a.makeWriteHandler({tag:function(){return"map"},rep:function(t){return m()(t,(function(t,e,r){return t.set(ur.a.keyword(r),e),t}),ur.a.map())}})],Er=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.verbose,n=r?"json-verbose":"json";return ur.a.writer(n,{handlers:ur.a.map([].concat(pr(wr),jr)),transform:function(e){if(Ze()(e)){if(e._sdkType)return N(e);var r=nr()(t,(function(t){return t.appType&&e instanceof t.appType||t.canHandle&&t.canHandle(e)}));if(r)return r.writer(e)}return e},handlerForForeign:function(t,e){return Array.isArray(t)?e.get("array"):"object"===gr(t)?e.get("map"):null}})},Tr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,r=t.reduce((function(t,e){var r={sdkType:e.sdkType||e.type,reader:e.reader},n={sdkType:e.sdkType||e.type,appType:e.appType||e.customType,canHandle:e.canHandle,writer:e.writer};return t.readers.push(r),t.writers.push(n),t}),{readers:[],writers:[]}),n=r.readers,o=r.writers;return{reader:Sr(n),writer:Er(o,e)}};function Pr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ar(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function kr(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Jr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qr(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function mn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function dn(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ln(dn({params:e,queryParams:r,perRequestOpts:Tn(n)},t))}}(r):function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ln(dn({params:e},t))}}(r)},An=function(t){var e=t.ctx,r=t.interceptors;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ln({params:t,ctx:e,interceptors:r})}},xn=function t(e){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n,o=function(t){if(!t.clientId)throw new Error("clientId must be provided");if(!t.baseUrl)throw new Error("baseUrl must be provided");if(!t.assetCdnBaseUrl)throw new Error("assetCdnBaseUrl must be provided");return Gr.a&&t.clientSecret&&!t.dangerouslyAllowClientSecretInBrowser&&(console.warn("Security warning! You are using client secret in a browser. This may expose the client secret to the public."),console.warn("If you know what you are doing and you have secured the website by other means (e.g. HTTP basic auth), you should set the SDK configuration `dangerouslyAllowClientSecretInBrowser` to `true` to dismiss this warning."),console.warn("In the future SDK versions, we may change this warning to an error causing the site not to work properly, unless `dangerouslyAllowClientSecretInBrowser` is set")),t}(function(t){var e=t.baseUrl,r=t.tokenStore,n=hn(t,["baseUrl","tokenStore"]);return dn({},n,{baseUrl:w(e),tokenStore:r||sn(0,n.clientId,!!n.secure)})}(dn({},bn,{},e))),c=i()(On,(function(t){return t(o)})),s=(n=c.api,j.reduce((function(t,e){var r=e.path,o=e.method,i=e.multipart,c=_(r),s="api/".concat(r),u=[];return u="post"===o&&i?[new Qe]:"post"===o?[new Lr]:[],a()(t,c,[new Br].concat(fn(u),[Zr({method:o,url:s,httpOpts:n})]))}),{})),g=function(t){return E.reduce((function(e,r){var n=r.path,o=r.method,i=_(n),c="auth/".concat(n);return a()(e,i,[Zr({method:o,url:c,httpOpts:t})])}),{})}(c.auth),p=function(t){return T.reduce((function(e,r){var n=r.pathFn,o=r.method,i=r.name;return a()(e,i,[Zr({method:o,urlTemplate:function(t){return"assets/".concat(n(t))},httpOpts:t})])}),{})}(c.assets),l={api:s,auth:g,assets:p},f={tokenStore:o.tokenStore,endpointInterceptors:l,clientId:o.clientId,clientSecret:o.clientSecret,typeHandlers:o.typeHandlers,transitVerbose:o.transitVerbose};(function(t,e){return j.map((function(r){var n=r.path,o=r.method,i=_(n);return{path:i,fn:Pn({method:o,ctx:e,interceptors:[new zr].concat(wn,fn(u()(t,i)||[]))})}}))})(s,f).forEach((function(t){var e=t.path,n=t.fn;return a()(r,e,n)})),function(t,e){return[{path:"login",fn:An({ctx:e,interceptors:[new zr].concat(_n,fn(u()(t,"token")))})},{path:"logout",fn:An({ctx:e,interceptors:[new zr].concat(Sn,fn(u()(t,"revoke")))})},{path:"exchangeToken",fn:An({ctx:e,interceptors:[].concat(jn,fn(u()(t,"token")))})},{path:"authInfo",fn:An({ctx:e,interceptors:[new ze]})},{path:"loginWithIdp",fn:An({ctx:e,interceptors:[].concat(En,fn(u()(t,"authWithIdp")))})}]}(g,f).forEach((function(t){var e=t.path,n=t.fn;return a()(r,e,n)})),function(t,e){return[{path:"assetByAlias",fn:function(r){var n=r.path,o=r.alias;if(!n)throw new Error("Missing mandatory parameter `path`");if(!o)throw new Error("Missing mandatory parameter `alias`");return ln({ctx:e,pathParams:{clientId:e.clientId,alias:o||"latest",assetPath:n},interceptors:[new zr].concat(fn(u()(t,"byAlias")))})}},{path:"assetByVersion",fn:function(r){var n=r.path,o=r.version;if(!o)throw new Error("Missing mandatory parameter `version`");if(!o)throw new Error("Missing mandatory parameter `alias`");return ln({ctx:e,pathParams:{clientId:e.clientId,version:o,assetPath:n},interceptors:[new zr].concat(fn(u()(t,"byVersion")))})}}]}(p,f).forEach((function(t){var e=t.path,n=t.fn;return a()(r,e,n)}))};function Cn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function kn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ln(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function ao(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function so(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return ln({params:t,ctx:e,interceptors:r})}},bo=function t(e){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n,o,c,s,u=function(t){if(!t.hostname)throw new Error("hostname must be provided");if(!t.multitenantClientSecret)throw new Error("multitenantClientSecret must be provided");if(!t.baseUrl)throw new Error("baseUrl must be provided");if(Gr.a)throw new Error("Using the multitenant SDK in browser is not allowed.");return t}((n=so({},po,{},e),o=n.baseUrl,c=n.tokenStore,so({},co(n,["baseUrl","tokenStore"]),{baseUrl:w(o),tokenStore:c||an()}))),g=i()(fo,(function(t){return t(u)})),p=(s=g.auth,lo.reduce((function(t,e){var r=e.path,n=e.method,o=_(r),i="auth/multitenant/".concat(r);return a()(t,o,[Zr({method:n,url:i,httpOpts:s})])}),{}));(function(t,e){return[{path:"clientData",fn:yo({ctx:e,interceptors:[mo(t)]})},{path:"tokenExchange",fn:yo({ctx:e,interceptors:[new Yn].concat(go(ho(t)))})}]})(p,{endpointInterceptors:{auth:p},multitenantClientSecret:u.multitenantClientSecret,hostname:u.hostname,tokenStore:u.tokenStore}).forEach((function(t){var e=t.path,n=t.fn;return a()(r,e,n)}))};function vo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Oo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var wo=function(t){return new xn(t)},_o=function(t){return new bo(t)},So={memoryStore:an,browserCookieStore:cn,expressCookieStore:function(t){var e,r=t.clientId,n=t.cookieId,o=t.req,i=t.res,c=t.secure,a=function(t,e){return"".concat(e,"-").concat(t,"-token")}(r||n,"st");return{getToken:function(){var t;return e=e||((t=o.cookies[a])?JSON.parse(t):null)},setToken:function(t){e=t;var r=c?{secure:!0}:{};i.cookie(a,JSON.stringify(t),function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},r=e.typeHandlers,n=void 0===r?[]:r,o=Tr(n);return o.reader.read(t)},write:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.typeHandlers,n=void 0===r?[]:r,o=e.verbose,i=void 0!==o&&o,c=Tr(n,{verbose:i});return c.writer.write(t)}},Eo={objectQueryString:function(t){if(!f()(t))throw new Error("Parameter not an object.");return Object.entries(t).filter((function(t){var e=O(t,2)[1];return null!=e})).map((function(t){var e=O(t,2),r=e[0],n=e[1];return"".concat(r,":").concat(function(t){if(f()(t))throw new Error("Nested object in query parameter.");return Array.isArray(t)?t.join(","):t}(n))})).join(";")}}}])})); \ No newline at end of file + */!function(i){if(void 0===(o="function"==typeof(n=i)?n.call(e,r,e,t):n)||(t.exports=o),!0,t.exports=i(),!!0){var c=window.Cookies,a=window.Cookies=i();a.noConflict=function(){return window.Cookies=c,a}}}((function(){function t(){for(var t=0,e={};t-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(6)(r(4),"Map");t.exports=n},function(t,e,r){var n=r(116),o=r(123),i=r(125),c=r(126),a=r(127);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){u.headers[t]=n.merge(c)})),t.exports=u}).call(this,r(74))},function(t,e,r){var n=r(161);t.exports=function(t){return(null==t?0:t.length)?n(t,1):[]}},function(t,e,r){var n=r(44);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},function(t,e,r){var n=r(6),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,r){var n=r(11),o=r(8);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this,r(47))},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,r){var n=r(93),o=r(21);t.exports=function(t,e){return t&&n(t,e,o)}},function(t,e,r){(function(t){var n=r(4),o=r(98),i=e&&!e.nodeType&&e,c=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=c&&c.exports===i?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||o;t.exports=s}).call(this,r(51)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){var n=r(99),o=r(53),i=r(100),c=i&&i.isTypedArray,a=c?o(c):n;t.exports=a},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(22),o=r(111),i=r(112),c=r(113),a=r(114),s=r(115);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=c,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,r){var n=r(128),o=r(7);t.exports=function t(e,r,i,c,a){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,c,t,a))}},function(t,e,r){var n=r(58),o=r(131),i=r(59);t.exports=function(t,e,r,c,a,s){var u=1&r,g=t.length,p=e.length;if(g!=p&&!(u&&p>g))return!1;var l=s.get(t),f=s.get(e);if(l&&f)return l==e&&f==t;var h=-1,m=!0,d=2&r?new n:void 0;for(s.set(t,e),s.set(e,t);++h1)for(var r=1;r-1}},function(t,e,r){var n=r(23);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(22);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(22),o=r(36),i=r(37);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var c=r.__data__;if(!o||c.length<199)return c.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(c)}return r.set(t,e),this.size=r.size,this}},function(t,e,r){var n=r(117),o=r(22),i=r(36);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},function(t,e,r){var n=r(118),o=r(119),i=r(120),c=r(121),a=r(122);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e0&&i(g)?r>1?t(g,r-1,i,c,a):n(a,g):c||(a[a.length]=g)}return a}},function(t,e,r){var n=r(15),o=r(32),i=r(2),c=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(c&&t&&t[c])}},function(t,e){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},function(t,e,r){var n=r(165),o=r(44),i=r(9),c=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=c},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var r=Date.now;t.exports=function(t){var e=0,n=0;return function(){var o=r(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,r){var n=r(54)(Object.getPrototypeOf,Object);t.exports=n},function(t,e){t.exports=function(t,e,r,n){var o=-1,i=null==t?0:t.length;for(n&&i&&(r=t[++o]);++o=200&&(p=s,l=!1,e=new n(e));t:for(;++g-1}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n=o?t:n(t,e,r)}},function(t,e){t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n-1;);return r}},function(t,e,r){var n=r(182),o=r(183),i=r(184);t.exports=function(t){return o(t)?i(t):n(t)}},function(t,e){t.exports=function(t){return t.split("")}},function(t,e){var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return r.test(t)}},function(t,e){var r="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+o+")"+"?",u="[\\ufe0e\\ufe0f]?"+s+("(?:\\u200d(?:"+[i,c,a].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*"),g="(?:"+[i+n+"?",n,c,a,r].join("|")+")",p=RegExp(o+"(?="+o+")|"+g+u,"g");t.exports=function(t){return t.match(p)||[]}},function(t,e,r){var n=r(68),o=r(16);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}},function(t,e,r){var n=r(17),o=r(16),i=r(21);t.exports=function(t){return function(e,r,c){var a=Object(e);if(!o(e)){var s=n(r,3);e=i(e),r=function(t){return s(a[t],t,a)}}var u=t(e,r,c);return u>-1?a[s?e[u]:u]:void 0}}},function(t,e,r){var n=r(70),o=r(17),i=r(188),c=Math.max;t.exports=function(t,e,r){var a=null==t?0:t.length;if(!a)return-1;var s=null==r?0:i(r);return s<0&&(s=c(a+s,0)),n(t,o(e,3),s)}},function(t,e,r){var n=r(189);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},function(t,e,r){var n=r(190);t.exports=function(t){return t?(t=n(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,e,r){var n=r(191),o=r(8),i=r(28),c=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=a.test(t);return r||s.test(t)?u(t.slice(2),r?2:8):c.test(t)?NaN:+t}},function(t,e,r){var n=r(71),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},function(t,e,r){var n=r(26),o=r(40);t.exports=function(t,e,r,i){return o(t,e,r(n(t,e)),i)}},function(t,e,r){var n=r(9);t.exports=function(t){return"function"==typeof t?t:n}},function(t,e,r){"use strict";var n=r(1),o=r(72),i=r(195),c=r(79);function a(t){var e=new i(t),r=o(i.prototype.request,e);return n.extend(r,i.prototype,e),n.extend(r,e),r}var s=a(r(41));s.Axios=i,s.create=function(t){return a(c(s.defaults,t))},s.Cancel=r(80),s.CancelToken=r(209),s.isCancel=r(78),s.all=function(t){return Promise.all(t)},s.spread=r(210),s.isAxiosError=r(211),t.exports=s,t.exports.default=s},function(t,e,r){"use strict";var n=r(1),o=r(73),i=r(196),c=r(197),a=r(79),s=r(207),u=s.validators;function g(t){this.defaults=t,this.interceptors={request:new i,response:new i}}g.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&s.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var r=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(t){i.push(t.fulfilled,t.rejected)})),!n){var g=[c,void 0];for(Array.prototype.unshift.apply(g,r),g.concat(i),o=Promise.resolve(t);g.length;)o=o.then(g.shift(),g.shift());return o}for(var p=t;r.length;){var l=r.shift(),f=r.shift();try{p=l(p)}catch(t){f(t);break}}try{o=c(p)}catch(t){return Promise.reject(t)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},g.prototype.getUri=function(t){return t=a(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(t){g.prototype[t]=function(e,r){return this.request(a(r||{},{method:t,url:e,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){g.prototype[t]=function(e,r,n){return this.request(a(n||{},{method:t,url:e,data:r}))}})),t.exports=g},function(t,e,r){"use strict";var n=r(1);function o(){this.handlers=[]}o.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},function(t,e,r){"use strict";var n=r(1),o=r(198),i=r(78),c=r(41);function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return a(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||c.adapter)(t).then((function(e){return a(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(a(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,r){"use strict";var n=r(1),o=r(41);t.exports=function(t,e,r){var i=this||o;return n.forEach(r,(function(r){t=r.call(i,t,e)})),t}},function(t,e,r){"use strict";var n=r(1);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},function(t,e,r){"use strict";var n=r(77);t.exports=function(t,e,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},function(t,e,r){"use strict";var n=r(1);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,o,i,c){var a=[];a.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(o)&&a.push("path="+o),n.isString(i)&&a.push("domain="+i),!0===c&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,r){"use strict";var n=r(203),o=r(204);t.exports=function(t,e){return t&&!n(e)?o(t,e):e}},function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,r){"use strict";var n=r(1),o=["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.exports=function(t){var e,r,i,c={};return t?(n.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=n.trim(t.substr(0,i)).toLowerCase(),r=n.trim(t.substr(i+1)),e){if(c[e]&&o.indexOf(e)>=0)return;c[e]="set-cookie"===e?(c[e]?c[e]:[]).concat([r]):c[e]?c[e]+", "+r:r}})),c):c}},function(t,e,r){"use strict";var n=r(1);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=o(window.location.href),function(e){var r=n.isString(e)?o(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},function(t,e,r){"use strict";var n=r(208),o={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){o[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var i={},c=n.version.split(".");function a(t,e){for(var r=e?e.split("."):c,n=t.split("."),o=0;o<3;o++){if(r[o]>n[o])return!0;if(r[o]0;){var i=n[o],c=e[i];if(c){var a=t[i],s=void 0===a||c(a,i,t);if(!0!==s)throw new TypeError("option "+i+" must be "+s)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:o}},function(t){t.exports=JSON.parse('{"name":"axios","version":"0.21.2","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},function(t,e,r){"use strict";var n=r(80);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,r){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},function(t,e,r){"use strict";r.r(e),r.d(e,"createInstance",(function(){return wo})),r.d(e,"createMultitenantInstance",(function(){return _o})),r.d(e,"types",(function(){return n})),r.d(e,"tokenStore",(function(){return So})),r.d(e,"transit",(function(){return jo})),r.d(e,"util",(function(){return Eo}));var n={};r.r(n),r.d(n,"UUID",(function(){return L})),r.d(n,"LatLng",(function(){return D})),r.d(n,"LatLngBounds",(function(){return I})),r.d(n,"Money",(function(){return M})),r.d(n,"BigDecimal",(function(){return R})),r.d(n,"toType",(function(){return N})),r.d(n,"replacer",(function(){return U})),r.d(n,"reviver",(function(){return q}));var o=r(29),i=r.n(o),c=r(3),a=r.n(c),s=r(0),u=r.n(s),g=r(81),p=r.n(g),l=r(19),f=r.n(l),h=r(12),m=r.n(h),d=r(82),y=r.n(d),b=r(83),v=r.n(b);function O(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=t[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var w=function(t){return v()(t,"/")},_=function(t){return y()(t.split("/"),"").map((function(t){return t.replace(/_\w/g,(function(t){return t[1].toUpperCase()}))}))},S=function(t){return m()(t,(function(t,e,r){return t.push("".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(e))),t}),[]).join("&")},j=[{path:"marketplace/show",method:"get"},{path:"users/show",method:"get"},{path:"current_user/show",method:"get"},{path:"current_user/create",method:"post"},{path:"current_user/create_with_idp",method:"post"},{path:"current_user/update_profile",method:"post"},{path:"current_user/change_email",method:"post"},{path:"current_user/change_password",method:"post"},{path:"current_user/delete",method:"post"},{path:"current_user/verify_email",method:"post"},{path:"current_user/send_verification_email",method:"post"},{path:"current_user/create_stripe_account",method:"post"},{path:"current_user/update_stripe_account",method:"post"},{path:"current_user/delete_stripe_account",method:"post"},{path:"password_reset/request",method:"post"},{path:"password_reset/reset",method:"post"},{path:"listings/show",method:"get"},{path:"own_listings/show",method:"get"},{path:"listings/query",method:"get"},{path:"own_listings/query",method:"get"},{path:"listings/search",method:"get"},{path:"own_listings/create",method:"post"},{path:"own_listings/create_draft",method:"post"},{path:"own_listings/publish_draft",method:"post"},{path:"own_listings/discard_draft",method:"post"},{path:"own_listings/update",method:"post"},{path:"own_listings/open",method:"post"},{path:"own_listings/close",method:"post"},{path:"own_listings/add_image",method:"post"},{path:"availability_exceptions/create",method:"post"},{path:"availability_exceptions/delete",method:"post"},{path:"availability_exceptions/query",method:"get"},{path:"images/upload",method:"post",multipart:!0},{path:"transactions/initiate",method:"post"},{path:"transactions/initiate_speculative",method:"post"},{path:"transactions/transition",method:"post"},{path:"transactions/transition_speculative",method:"post"},{path:"transactions/query",method:"get"},{path:"transactions/show",method:"get"},{path:"process_transitions/query",method:"get"},{path:"bookings/query",method:"get"},{path:"messages/query",method:"get"},{path:"messages/send",method:"post"},{path:"reviews/query",method:"get"},{path:"reviews/show",method:"get"},{path:"timeslots/query",method:"get"},{path:"stripe_account/create",method:"post"},{path:"stripe_account/fetch",method:"get"},{path:"stripe_account/update",method:"post"},{path:"stripe_account_links/create",method:"post"},{path:"stripe_persons/create",method:"post"},{path:"stripe_setup_intents/create",method:"post"},{path:"stripe_customer/create",method:"post"},{path:"stripe_customer/add_payment_method",method:"post"},{path:"stripe_customer/delete_payment_method",method:"post"},{path:"stock_adjustments/query",method:"get"},{path:"stock_adjustments/create",method:"post"},{path:"stock/compare_and_set",method:"post"}],E=[{path:"token",method:"post"},{path:"revoke",method:"post"},{path:"auth_with_idp",method:"post"}],T=[{pathFn:function(t){var e=t.clientId,r=t.version,n=t.assetPath;return"pub/".concat(e,"/v/").concat(r,"/").concat(n)},method:"get",name:"byVersion"},{pathFn:function(t){var e=t.clientId,r=t.alias,n=t.assetPath;return"pub/".concat(e,"/a/").concat(r,"/").concat(n)},method:"get",name:"byAlias"}],P=r(20),A=r.n(P),x=r(30),C=r.n(x);function k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var L=function t(e){k(this,t),this._sdkType=this.constructor._sdkType,this.uuid=e};L._sdkType="UUID";var D=function t(e,r){k(this,t),this._sdkType=this.constructor._sdkType,this.lat=e,this.lng=r};D._sdkType="LatLng";var I=function t(e,r){k(this,t),this._sdkType=this.constructor._sdkType,this.ne=e,this.sw=r};I._sdkType="LatLngBounds";var M=function t(e,r){k(this,t),this._sdkType=this.constructor._sdkType,this.amount=e,this.currency=r};M._sdkType="Money";var R=function t(e){k(this,t),this._sdkType=this.constructor._sdkType,this.value=e};R._sdkType="BigDecimal";var N=function(t){switch(t&&t._sdkType){case"LatLng":return new D(t.lat,t.lng);case"LatLngBounds":return new I(t.ne,t.sw);case"UUID":return new L(t.uuid);case"Money":return new M(t.amount,t.currency);case"BigDecimal":return new R(t.value);default:return t}},U=function(t,e){return e},q=function(t,e){return N(e)};function B(t){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var H=function(t){return encodeURIComponent(t).replace(/%2C/gi,",")},$=function(t,e){var r;try{r=function t(e){var r;if(e instanceof L)r=e.uuid;else if(e instanceof D)r="".concat(e.lat,",").concat(e.lng);else if(e instanceof I)r="".concat(e.ne.lat,",").concat(e.ne.lng,",").concat(e.sw.lat,",").concat(e.sw.lng);else if(Array.isArray(e))r=e.map(t);else if(e instanceof Date)r=e.toISOString();else if(null==e)r=e;else{if("object"===B(e))throw new Error("unknown-type");r=e}return r}(e)}catch(r){throw r&&"unknown-type"===r.message?new Error("Don't know how to serialize query parameter '".concat(t,"': ").concat(e)):r}return null==r?null:[t,H(r)]},F=function(t){return C()(A()(t,(function(t,e){var r=$(e,t);return r?r.join("="):null}))).join("&")};function V(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function z(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Q(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=t[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function X(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return tt({},t,{enterQueue:X(e).reverse(),leaveStack:[]})}(e,t))}};function it(t,e){for(var r=0;r1?t:t.res&&401===t.res.status&&e.refresh_token?ot([new ct,new gt].concat(pt(o.auth.token)))({params:{client_id:r,grant_type:"refresh_token",refresh_token:e.refresh_token},tokenStore:n}).then((function(e){var r=e.authToken;return ft({},t,{authToken:r,enterQueue:c,error:null})})).catch((function(e){return ft({},t,{refreshTokenRetry:{retryQueue:c,attempts:a,res:e.response}})})):t}}])&&mt(e.prototype,r),n&&mt(e,n),t}();function yt(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e1?t:t.res&&401===t.res.status?ot([new ct,new gt].concat(yt(n.auth.token)))({params:{client_id:e,grant_type:"client_credentials",scope:"public-read"},tokenStore:r}).then((function(e){var r=e.authToken;return vt({},t,{authToken:r,enterQueue:i,error:null})})):t}}])&&wt(e.prototype,r),n&&wt(e,n),t}();function St(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function jt(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Wt(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Xt(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function oe(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function ge(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function de(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Pe(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function De(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function qe(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Je(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[],e=Or(t);return ur.a.reader("json",{handlers:fr({},e,{":":function(t){return t},set:function(t){return t},list:function(t){return t}}),mapBuilder:_r})},jr=[Object,ur.a.makeWriteHandler({tag:function(){return"map"},rep:function(t){return m()(t,(function(t,e,r){return t.set(ur.a.keyword(r),e),t}),ur.a.map())}})],Er=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.verbose,n=r?"json-verbose":"json";return ur.a.writer(n,{handlers:ur.a.map([].concat(pr(wr),jr)),transform:function(e){if(Ze()(e)){if(e._sdkType)return N(e);var r=nr()(t,(function(t){return t.appType&&e instanceof t.appType||t.canHandle&&t.canHandle(e)}));if(r)return r.writer(e)}return e},handlerForForeign:function(t,e){return Array.isArray(t)?e.get("array"):"object"===gr(t)?e.get("map"):null}})},Tr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,r=t.reduce((function(t,e){var r={sdkType:e.sdkType||e.type,reader:e.reader},n={sdkType:e.sdkType||e.type,appType:e.appType||e.customType,canHandle:e.canHandle,writer:e.writer};return t.readers.push(r),t.writers.push(n),t}),{readers:[],writers:[]}),n=r.readers,o=r.writers;return{reader:Sr(n),writer:Er(o,e)}};function Pr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ar(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function kr(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Jr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qr(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function mn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function dn(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ln(dn({params:e,queryParams:r,perRequestOpts:Tn(n)},t))}}(r):function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ln(dn({params:e},t))}}(r)},An=function(t){var e=t.ctx,r=t.interceptors;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ln({params:t,ctx:e,interceptors:r})}},xn=function t(e){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n,o=function(t){if(!t.clientId)throw new Error("clientId must be provided");if(!t.baseUrl)throw new Error("baseUrl must be provided");if(!t.assetCdnBaseUrl)throw new Error("assetCdnBaseUrl must be provided");return Gr.a&&t.clientSecret&&!t.dangerouslyAllowClientSecretInBrowser&&(console.warn("Security warning! You are using client secret in a browser. This may expose the client secret to the public."),console.warn("If you know what you are doing and you have secured the website by other means (e.g. HTTP basic auth), you should set the SDK configuration `dangerouslyAllowClientSecretInBrowser` to `true` to dismiss this warning."),console.warn("In the future SDK versions, we may change this warning to an error causing the site not to work properly, unless `dangerouslyAllowClientSecretInBrowser` is set")),t}(function(t){var e=t.baseUrl,r=t.tokenStore,n=hn(t,["baseUrl","tokenStore"]);return dn({},n,{baseUrl:w(e),tokenStore:r||sn(0,n.clientId,!!n.secure)})}(dn({},bn,{},e))),c=i()(On,(function(t){return t(o)})),s=(n=c.api,j.reduce((function(t,e){var r=e.path,o=e.method,i=e.multipart,c=_(r),s="api/".concat(r),u=[];return u="post"===o&&i?[new Qe]:"post"===o?[new Lr]:[],a()(t,c,[new Br].concat(fn(u),[Zr({method:o,url:s,httpOpts:n})]))}),{})),g=function(t){return E.reduce((function(e,r){var n=r.path,o=r.method,i=_(n),c="auth/".concat(n);return a()(e,i,[Zr({method:o,url:c,httpOpts:t})])}),{})}(c.auth),p=function(t){return T.reduce((function(e,r){var n=r.pathFn,o=r.method,i=r.name;return a()(e,i,[Zr({method:o,urlTemplate:function(t){return"assets/".concat(n(t))},httpOpts:t})])}),{})}(c.assets),l={api:s,auth:g,assets:p},f={tokenStore:o.tokenStore,endpointInterceptors:l,clientId:o.clientId,clientSecret:o.clientSecret,typeHandlers:o.typeHandlers,transitVerbose:o.transitVerbose};(function(t,e){return j.map((function(r){var n=r.path,o=r.method,i=_(n);return{path:i,fn:Pn({method:o,ctx:e,interceptors:[new zr].concat(wn,fn(u()(t,i)||[]))})}}))})(s,f).forEach((function(t){var e=t.path,n=t.fn;return a()(r,e,n)})),function(t,e){return[{path:"login",fn:An({ctx:e,interceptors:[new zr].concat(_n,fn(u()(t,"token")))})},{path:"logout",fn:An({ctx:e,interceptors:[new zr].concat(Sn,fn(u()(t,"revoke")))})},{path:"exchangeToken",fn:An({ctx:e,interceptors:[].concat(jn,fn(u()(t,"token")))})},{path:"authInfo",fn:An({ctx:e,interceptors:[new ze]})},{path:"loginWithIdp",fn:An({ctx:e,interceptors:[].concat(En,fn(u()(t,"authWithIdp")))})}]}(g,f).forEach((function(t){var e=t.path,n=t.fn;return a()(r,e,n)})),function(t,e){return[{path:"assetByAlias",fn:function(r){var n=r.path,o=r.alias;if(!n)throw new Error("Missing mandatory parameter `path`");if(!o)throw new Error("Missing mandatory parameter `alias`");return ln({ctx:e,pathParams:{clientId:e.clientId,alias:o||"latest",assetPath:n},interceptors:[new zr].concat(fn(u()(t,"byAlias")))})}},{path:"assetByVersion",fn:function(r){var n=r.path,o=r.version;if(!o)throw new Error("Missing mandatory parameter `version`");if(!o)throw new Error("Missing mandatory parameter `alias`");return ln({ctx:e,pathParams:{clientId:e.clientId,version:o,assetPath:n},interceptors:[new zr].concat(fn(u()(t,"byVersion")))})}}]}(p,f).forEach((function(t){var e=t.path,n=t.fn;return a()(r,e,n)}))};function Cn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function kn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ln(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function ao(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function so(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return ln({params:t,ctx:e,interceptors:r})}},bo=function t(e){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n,o,c,s,u=function(t){if(!t.hostname)throw new Error("hostname must be provided");if(!t.multitenantClientSecret)throw new Error("multitenantClientSecret must be provided");if(!t.baseUrl)throw new Error("baseUrl must be provided");if(Gr.a)throw new Error("Using the multitenant SDK in browser is not allowed.");return t}((n=so({},po,{},e),o=n.baseUrl,c=n.tokenStore,so({},co(n,["baseUrl","tokenStore"]),{baseUrl:w(o),tokenStore:c||an()}))),g=i()(fo,(function(t){return t(u)})),p=(s=g.auth,lo.reduce((function(t,e){var r=e.path,n=e.method,o=_(r),i="auth/multitenant/".concat(r);return a()(t,o,[Zr({method:n,url:i,httpOpts:s})])}),{}));(function(t,e){return[{path:"clientData",fn:yo({ctx:e,interceptors:[mo(t)]})},{path:"tokenExchange",fn:yo({ctx:e,interceptors:[new Yn].concat(go(ho(t)))})}]})(p,{endpointInterceptors:{auth:p},multitenantClientSecret:u.multitenantClientSecret,hostname:u.hostname,tokenStore:u.tokenStore}).forEach((function(t){var e=t.path,n=t.fn;return a()(r,e,n)}))};function vo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Oo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var wo=function(t){return new xn(t)},_o=function(t){return new bo(t)},So={memoryStore:an,browserCookieStore:cn,expressCookieStore:function(t){var e,r=t.clientId,n=t.cookieId,o=t.req,i=t.res,c=t.secure,a=function(t,e){return"".concat(e,"-").concat(t,"-token")}(r||n,"st");return{getToken:function(){var t;return e=e||((t=o.cookies[a])?JSON.parse(t):null)},setToken:function(t){e=t;var r=c?{secure:!0}:{};i.cookie(a,JSON.stringify(t),function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},r=e.typeHandlers,n=void 0===r?[]:r,o=Tr(n);return o.reader.read(t)},write:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.typeHandlers,n=void 0===r?[]:r,o=e.verbose,i=void 0!==o&&o,c=Tr(n,{verbose:i});return c.writer.write(t)}},Eo={objectQueryString:function(t){if(!f()(t))throw new Error("Parameter not an object.");return Object.entries(t).filter((function(t){var e=O(t,2)[1];return null!=e})).map((function(t){var e=O(t,2),r=e[0],n=e[1];return"".concat(r,":").concat(function(t){if(f()(t))throw new Error("Nested object in query parameter.");return Array.isArray(t)?t.join(","):t}(n))})).join(";")}}}])})); \ No newline at end of file