@airma/restful
Version:
A wrapper for asynchronous http requests with a restful style
1 lines • 35.6 kB
JavaScript
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports["@airma/restful"]=r():t["@airma/restful"]=r()}(self,(function(){return function(){var t={4933:function(t,r,n){var e=n(6291),o=n(7073),i=TypeError;t.exports=function(t){if(e(t))return t;throw i(o(t)+" is not a function")}},8209:function(t,r,n){var e=n(1814),o=n(7073),i=TypeError;t.exports=function(t){if(e(t))return t;throw i(o(t)+" is not a constructor")}},9076:function(t,r,n){var e=n(6291),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||e(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},2814:function(t,r,n){var e=n(6282),o=TypeError;t.exports=function(t,r){if(e(r,t))return t;throw o("Incorrect invocation")}},4905:function(t,r,n){var e=n(2366),o=String,i=TypeError;t.exports=function(t){if(e(t))return t;throw i(o(t)+" is not an object")}},5029:function(t,r,n){var e=n(678),o=n(6971),i=n(4821),u=function(t){return function(r,n,u){var c,a=e(r),f=i(a),s=o(u,f);if(t&&n!=n){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},650:function(t,r,n){var e=n(936);t.exports=e([].slice)},3165:function(t,r,n){var e=n(6802)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[e]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,r){if(!r&&!o)return!1;var n=!1;try{var i={};i[e]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},5489:function(t,r,n){var e=n(936),o=e({}.toString),i=e("".slice);t.exports=function(t){return i(o(t),8,-1)}},486:function(t,r,n){var e=n(8171),o=n(6291),i=n(5489),u=n(6802)("toStringTag"),c=Object,a="Arguments"==i(function(){return arguments}());t.exports=e?i:function(t){var r,n,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,r){try{return t[r]}catch(t){}}(r=c(t),u))?n:a?i(r):"Object"==(e=i(r))&&o(r.callee)?"Arguments":e}},6810:function(t,r,n){var e=n(8382),o=n(2466),i=n(8117),u=n(6462);t.exports=function(t,r,n){for(var c=o(r),a=u.f,f=i.f,s=0;s<c.length;s++){var p=c[s];e(t,p)||n&&e(n,p)||a(t,p,f(r,p))}}},430:function(t,r,n){var e=n(1502),o=n(6462),i=n(6034);t.exports=e?function(t,r,n){return o.f(t,r,i(1,n))}:function(t,r,n){return t[r]=n,t}},6034:function(t){t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},5850:function(t,r,n){var e=n(6291),o=n(6462),i=n(7192),u=n(1756);t.exports=function(t,r,n,c){c||(c={});var a=c.enumerable,f=void 0!==c.name?c.name:r;if(e(n)&&i(n,f,c),c.global)a?t[r]=n:u(r,n);else{try{c.unsafe?t[r]&&(a=!0):delete t[r]}catch(t){}a?t[r]=n:o.f(t,r,{value:n,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},1756:function(t,r,n){var e=n(5001),o=Object.defineProperty;t.exports=function(t,r){try{o(e,t,{value:r,configurable:!0,writable:!0})}catch(n){e[t]=r}return r}},1502:function(t,r,n){var e=n(5061);t.exports=!e((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5178:function(t){var r="object"==typeof document&&document.all,n=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:n}},6009:function(t,r,n){var e=n(5001),o=n(2366),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},6837:function(t,r,n){var e=n(5065),o=n(566);t.exports=!e&&!o&&"object"==typeof window&&"object"==typeof document},5065:function(t){t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},1368:function(t,r,n){var e=n(9966),o=n(5001);t.exports=/ipad|iphone|ipod/i.test(e)&&void 0!==o.Pebble},311:function(t,r,n){var e=n(9966);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},566:function(t,r,n){var e=n(5489),o=n(5001);t.exports="process"==e(o.process)},4832:function(t,r,n){var e=n(9966);t.exports=/web0s(?!.*chrome)/i.test(e)},9966:function(t,r,n){var e=n(3425);t.exports=e("navigator","userAgent")||""},2821:function(t,r,n){var e,o,i=n(5001),u=n(9966),c=i.process,a=i.Deno,f=c&&c.versions||a&&a.version,s=f&&f.v8;s&&(o=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!o&&u&&(!(e=u.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=u.match(/Chrome\/(\d+)/))&&(o=+e[1]),t.exports=o},2089:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9638:function(t,r,n){var e=n(5001),o=n(8117).f,i=n(430),u=n(5850),c=n(1756),a=n(6810),f=n(1092);t.exports=function(t,r){var n,s,p,l,v,y=t.target,h=t.global,d=t.stat;if(n=h?e:d?e[y]||c(y,{}):(e[y]||{}).prototype)for(s in r){if(l=r[s],p=t.dontCallGetSet?(v=o(n,s))&&v.value:n[s],!f(h?s:y+(d?".":"#")+s,t.forced)&&void 0!==p){if(typeof l==typeof p)continue;a(l,p)}(t.sham||p&&p.sham)&&i(l,"sham",!0),u(n,s,l,t)}}},5061:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},5494:function(t,r,n){var e=n(8483),o=Function.prototype,i=o.apply,u=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(e?u.bind(i):function(){return u.apply(i,arguments)})},9918:function(t,r,n){var e=n(1017),o=n(4933),i=n(8483),u=e(e.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?u(t,r):function(){return t.apply(r,arguments)}}},8483:function(t,r,n){var e=n(5061);t.exports=!e((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},3927:function(t,r,n){var e=n(8483),o=Function.prototype.call;t.exports=e?o.bind(o):function(){return o.apply(o,arguments)}},9873:function(t,r,n){var e=n(1502),o=n(8382),i=Function.prototype,u=e&&Object.getOwnPropertyDescriptor,c=o(i,"name"),a=c&&"something"===function(){}.name,f=c&&(!e||e&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:a,CONFIGURABLE:f}},1017:function(t,r,n){var e=n(5489),o=n(936);t.exports=function(t){if("Function"===e(t))return o(t)}},936:function(t,r,n){var e=n(8483),o=Function.prototype,i=o.call,u=e&&o.bind.bind(i,i);t.exports=e?u:function(t){return function(){return i.apply(t,arguments)}}},3425:function(t,r,n){var e=n(5001),o=n(6291);t.exports=function(t,r){return arguments.length<2?(n=e[t],o(n)?n:void 0):e[t]&&e[t][r];var n}},6354:function(t,r,n){var e=n(486),o=n(3815),i=n(860),u=n(501),c=n(6802)("iterator");t.exports=function(t){if(!i(t))return o(t,c)||o(t,"@@iterator")||u[e(t)]}},8437:function(t,r,n){var e=n(3927),o=n(4933),i=n(4905),u=n(7073),c=n(6354),a=TypeError;t.exports=function(t,r){var n=arguments.length<2?c(t):r;if(o(n))return i(e(n,t));throw a(u(t)+" is not iterable")}},3815:function(t,r,n){var e=n(4933),o=n(860);t.exports=function(t,r){var n=t[r];return o(n)?void 0:e(n)}},5001:function(t,r,n){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},8382:function(t,r,n){var e=n(936),o=n(7615),i=e({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},2499:function(t){t.exports={}},3455:function(t,r,n){var e=n(5001);t.exports=function(t,r){var n=e.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,r))}},2118:function(t,r,n){var e=n(3425);t.exports=e("document","documentElement")},7788:function(t,r,n){var e=n(1502),o=n(5061),i=n(6009);t.exports=!e&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2901:function(t,r,n){var e=n(936),o=n(5061),i=n(5489),u=Object,c=e("".split);t.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?c(t,""):u(t)}:u},685:function(t,r,n){var e=n(936),o=n(6291),i=n(9982),u=e(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},684:function(t,r,n){var e,o,i,u=n(1899),c=n(5001),a=n(2366),f=n(430),s=n(8382),p=n(9982),l=n(1695),v=n(2499),y="Object already initialized",h=c.TypeError,d=c.WeakMap;if(u||p.state){var b=p.state||(p.state=new d);b.get=b.get,b.has=b.has,b.set=b.set,e=function(t,r){if(b.has(t))throw h(y);return r.facade=t,b.set(t,r),r},o=function(t){return b.get(t)||{}},i=function(t){return b.has(t)}}else{var m=l("state");v[m]=!0,e=function(t,r){if(s(t,m))throw h(y);return r.facade=t,f(t,m,r),r},o=function(t){return s(t,m)?t[m]:{}},i=function(t){return s(t,m)}}t.exports={set:e,get:o,has:i,enforce:function(t){return i(t)?o(t):e(t,{})},getterFor:function(t){return function(r){var n;if(!a(r)||(n=o(r)).type!==t)throw h("Incompatible receiver, "+t+" required");return n}}}},5557:function(t,r,n){var e=n(6802),o=n(501),i=e("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},6291:function(t,r,n){var e=n(5178),o=e.all;t.exports=e.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},1814:function(t,r,n){var e=n(936),o=n(5061),i=n(6291),u=n(486),c=n(3425),a=n(685),f=function(){},s=[],p=c("Reflect","construct"),l=/^\s*(?:class|function)\b/,v=e(l.exec),y=!l.exec(f),h=function(t){if(!i(t))return!1;try{return p(f,s,t),!0}catch(t){return!1}},d=function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return y||!!v(l,a(t))}catch(t){return!0}};d.sham=!0,t.exports=!p||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?d:h},1092:function(t,r,n){var e=n(5061),o=n(6291),i=/#|\.prototype\./,u=function(t,r){var n=a[c(t)];return n==s||n!=f&&(o(r)?e(r):!!r)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=u.data={},f=u.NATIVE="N",s=u.POLYFILL="P";t.exports=u},860:function(t){t.exports=function(t){return null==t}},2366:function(t,r,n){var e=n(6291),o=n(5178),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:e(t)||t===i}:function(t){return"object"==typeof t?null!==t:e(t)}},13:function(t){t.exports=!1},6448:function(t,r,n){var e=n(3425),o=n(6291),i=n(6282),u=n(7558),c=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var r=e("Symbol");return o(r)&&i(r.prototype,c(t))}},8971:function(t,r,n){var e=n(9918),o=n(3927),i=n(4905),u=n(7073),c=n(5557),a=n(4821),f=n(6282),s=n(8437),p=n(6354),l=n(9200),v=TypeError,y=function(t,r){this.stopped=t,this.result=r},h=y.prototype;t.exports=function(t,r,n){var d,b,m,g,x,O,j,w=n&&n.that,S=!(!n||!n.AS_ENTRIES),P=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),C=e(r,w),R=function(t){return d&&l(d,"normal",t),new y(!0,t)},I=function(t){return S?(i(t),T?C(t[0],t[1],R):C(t[0],t[1])):T?C(t,R):C(t)};if(P)d=t.iterator;else if(E)d=t;else{if(!(b=p(t)))throw v(u(t)+" is not iterable");if(c(b)){for(m=0,g=a(t);g>m;m++)if((x=I(t[m]))&&f(h,x))return x;return new y(!1)}d=s(t,b)}for(O=P?t.next:d.next;!(j=o(O,d)).done;){try{x=I(j.value)}catch(t){l(d,"throw",t)}if("object"==typeof x&&x&&f(h,x))return x}return new y(!1)}},9200:function(t,r,n){var e=n(3927),o=n(4905),i=n(3815);t.exports=function(t,r,n){var u,c;o(t);try{if(!(u=i(t,"return"))){if("throw"===r)throw n;return n}u=e(u,t)}catch(t){c=!0,u=t}if("throw"===r)throw n;if(c)throw u;return o(u),n}},501:function(t){t.exports={}},4821:function(t,r,n){var e=n(4479);t.exports=function(t){return e(t.length)}},7192:function(t,r,n){var e=n(5061),o=n(6291),i=n(8382),u=n(1502),c=n(9873).CONFIGURABLE,a=n(685),f=n(684),s=f.enforce,p=f.get,l=Object.defineProperty,v=u&&!e((function(){return 8!==l((function(){}),"length",{value:8}).length})),y=String(String).split("String"),h=t.exports=function(t,r,n){"Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(r="get "+r),n&&n.setter&&(r="set "+r),(!i(t,"name")||c&&t.name!==r)&&(u?l(t,"name",{value:r,configurable:!0}):t.name=r),v&&n&&i(n,"arity")&&t.length!==n.arity&&l(t,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?u&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var e=s(t);return i(e,"source")||(e.source=y.join("string"==typeof r?r:"")),t};Function.prototype.toString=h((function(){return o(this)&&p(this).source||a(this)}),"toString")},1367:function(t){var r=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?n:r)(e)}},3690:function(t,r,n){var e,o,i,u,c,a,f,s,p=n(5001),l=n(9918),v=n(8117).f,y=n(8680).set,h=n(311),d=n(1368),b=n(4832),m=n(566),g=p.MutationObserver||p.WebKitMutationObserver,x=p.document,O=p.process,j=p.Promise,w=v(p,"queueMicrotask"),S=w&&w.value;S||(e=function(){var t,r;for(m&&(t=O.domain)&&t.exit();o;){r=o.fn,o=o.next;try{r()}catch(t){throw o?u():i=void 0,t}}i=void 0,t&&t.enter()},h||m||b||!g||!x?!d&&j&&j.resolve?((f=j.resolve(void 0)).constructor=j,s=l(f.then,f),u=function(){s(e)}):m?u=function(){O.nextTick(e)}:(y=l(y,p),u=function(){y(e)}):(c=!0,a=x.createTextNode(""),new g(e).observe(a,{characterData:!0}),u=function(){a.data=c=!c})),t.exports=S||function(t){var r={fn:t,next:void 0};i&&(i.next=r),o||(o=r,u()),i=r}},7714:function(t,r,n){"use strict";var e=n(4933),o=TypeError,i=function(t){var r,n;this.promise=new t((function(t,e){if(void 0!==r||void 0!==n)throw o("Bad Promise constructor");r=t,n=e})),this.resolve=e(r),this.reject=e(n)};t.exports.f=function(t){return new i(t)}},1640:function(t,r,n){"use strict";var e=n(1502),o=n(936),i=n(3927),u=n(5061),c=n(9749),a=n(2822),f=n(9265),s=n(7615),p=n(2901),l=Object.assign,v=Object.defineProperty,y=o([].concat);t.exports=!l||u((function(){if(e&&1!==l({b:1},l(v({},"a",{enumerable:!0,get:function(){v(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){r[t]=t})),7!=l({},t)[n]||c(l({},r)).join("")!=o}))?function(t,r){for(var n=s(t),o=arguments.length,u=1,l=a.f,v=f.f;o>u;)for(var h,d=p(arguments[u++]),b=l?y(c(d),l(d)):c(d),m=b.length,g=0;m>g;)h=b[g++],e&&!i(v,d,h)||(n[h]=d[h]);return n}:l},6462:function(t,r,n){var e=n(1502),o=n(7788),i=n(5780),u=n(4905),c=n(1030),a=TypeError,f=Object.defineProperty,s=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",v="writable";r.f=e?i?function(t,r,n){if(u(t),r=c(r),u(n),"function"==typeof t&&"prototype"===r&&"value"in n&&v in n&&!n[v]){var e=s(t,r);e&&e[v]&&(t[r]=n.value,n={configurable:l in n?n[l]:e[l],enumerable:p in n?n[p]:e[p],writable:!1})}return f(t,r,n)}:f:function(t,r,n){if(u(t),r=c(r),u(n),o)try{return f(t,r,n)}catch(t){}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(t[r]=n.value),t}},8117:function(t,r,n){var e=n(1502),o=n(3927),i=n(9265),u=n(6034),c=n(678),a=n(1030),f=n(8382),s=n(7788),p=Object.getOwnPropertyDescriptor;r.f=e?p:function(t,r){if(t=c(t),r=a(r),s)try{return p(t,r)}catch(t){}if(f(t,r))return u(!o(i.f,t,r),t[r])}},9219:function(t,r,n){var e=n(3855),o=n(2089).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},2822:function(t,r){r.f=Object.getOwnPropertySymbols},6282:function(t,r,n){var e=n(936);t.exports=e({}.isPrototypeOf)},3855:function(t,r,n){var e=n(936),o=n(8382),i=n(678),u=n(5029).indexOf,c=n(2499),a=e([].push);t.exports=function(t,r){var n,e=i(t),f=0,s=[];for(n in e)!o(c,n)&&o(e,n)&&a(s,n);for(;r.length>f;)o(e,n=r[f++])&&(~u(s,n)||a(s,n));return s}},9749:function(t,r,n){var e=n(3855),o=n(2089);t.exports=Object.keys||function(t){return e(t,o)}},9265:function(t,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,o=e&&!n.call({1:2},1);r.f=o?function(t){var r=e(this,t);return!!r&&r.enumerable}:n},2848:function(t,r,n){var e=n(936),o=n(4905),i=n(9076);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,n={};try{(t=e(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),r=n instanceof Array}catch(t){}return function(n,e){return o(n),i(e),r?t(n,e):n.__proto__=e,n}}():void 0)},379:function(t,r,n){var e=n(3927),o=n(6291),i=n(2366),u=TypeError;t.exports=function(t,r){var n,c;if("string"===r&&o(n=t.toString)&&!i(c=e(n,t)))return c;if(o(n=t.valueOf)&&!i(c=e(n,t)))return c;if("string"!==r&&o(n=t.toString)&&!i(c=e(n,t)))return c;throw u("Can't convert object to primitive value")}},2466:function(t,r,n){var e=n(3425),o=n(936),i=n(9219),u=n(2822),c=n(4905),a=o([].concat);t.exports=e("Reflect","ownKeys")||function(t){var r=i.f(c(t)),n=u.f;return n?a(r,n(t)):r}},7040:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},8410:function(t,r,n){var e=n(5001),o=n(7883),i=n(6291),u=n(1092),c=n(685),a=n(6802),f=n(6837),s=n(5065),p=n(13),l=n(2821),v=o&&o.prototype,y=a("species"),h=!1,d=i(e.PromiseRejectionEvent),b=u("Promise",(function(){var t=c(o),r=t!==String(o);if(!r&&66===l)return!0;if(p&&(!v.catch||!v.finally))return!0;if(!l||l<51||!/native code/.test(t)){var n=new o((function(t){t(1)})),e=function(t){t((function(){}),(function(){}))};if((n.constructor={})[y]=e,!(h=n.then((function(){}))instanceof e))return!0}return!r&&(f||s)&&!d}));t.exports={CONSTRUCTOR:b,REJECTION_EVENT:d,SUBCLASSING:h}},7883:function(t,r,n){var e=n(5001);t.exports=e.Promise},7504:function(t,r,n){var e=n(4905),o=n(2366),i=n(7714);t.exports=function(t,r){if(e(t),o(r)&&r.constructor===t)return r;var n=i.f(t);return(0,n.resolve)(r),n.promise}},3653:function(t,r,n){var e=n(7883),o=n(3165),i=n(8410).CONSTRUCTOR;t.exports=i||!o((function(t){e.all(t).then(void 0,(function(){}))}))},8791:function(t){var r=function(){this.head=null,this.tail=null};r.prototype={add:function(t){var r={item:t,next:null};this.head?this.tail.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=r},4475:function(t,r,n){var e=n(860),o=TypeError;t.exports=function(t){if(e(t))throw o("Can't call method on "+t);return t}},3126:function(t,r,n){"use strict";var e=n(3425),o=n(6462),i=n(6802),u=n(1502),c=i("species");t.exports=function(t){var r=e(t),n=o.f;u&&r&&!r[c]&&n(r,c,{configurable:!0,get:function(){return this}})}},606:function(t,r,n){var e=n(6462).f,o=n(8382),i=n(6802)("toStringTag");t.exports=function(t,r,n){t&&!n&&(t=t.prototype),t&&!o(t,i)&&e(t,i,{configurable:!0,value:r})}},1695:function(t,r,n){var e=n(6809),o=n(1050),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},9982:function(t,r,n){var e=n(5001),o=n(1756),i="__core-js_shared__",u=e[i]||o(i,{});t.exports=u},6809:function(t,r,n){var e=n(13),o=n(9982);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.26.1",mode:e?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})},3571:function(t,r,n){var e=n(4905),o=n(8209),i=n(860),u=n(6802)("species");t.exports=function(t,r){var n,c=e(t).constructor;return void 0===c||i(n=e(c)[u])?r:o(n)}},3488:function(t,r,n){var e=n(9873).PROPER,o=n(5061),i=n(9309);t.exports=function(t){return o((function(){return!!i[t]()||"
"!=="
"[t]()||e&&i[t].name!==t}))}},9522:function(t,r,n){var e=n(936),o=n(4475),i=n(9284),u=n(9309),c=e("".replace),a="["+u+"]",f=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$"),p=function(t){return function(r){var n=i(o(r));return 1&t&&(n=c(n,f,"")),2&t&&(n=c(n,s,"")),n}};t.exports={start:p(1),end:p(2),trim:p(3)}},5947:function(t,r,n){var e=n(2821),o=n(5061);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))},8680:function(t,r,n){var e,o,i,u,c=n(5001),a=n(5494),f=n(9918),s=n(6291),p=n(8382),l=n(5061),v=n(2118),y=n(650),h=n(6009),d=n(7427),b=n(311),m=n(566),g=c.setImmediate,x=c.clearImmediate,O=c.process,j=c.Dispatch,w=c.Function,S=c.MessageChannel,P=c.String,E=0,T={},C="onreadystatechange";try{e=c.location}catch(t){}var R=function(t){if(p(T,t)){var r=T[t];delete T[t],r()}},I=function(t){return function(){R(t)}},A=function(t){R(t.data)},D=function(t){c.postMessage(P(t),e.protocol+"//"+e.host)};g&&x||(g=function(t){d(arguments.length,1);var r=s(t)?t:w(t),n=y(arguments,1);return T[++E]=function(){a(r,void 0,n)},o(E),E},x=function(t){delete T[t]},m?o=function(t){O.nextTick(I(t))}:j&&j.now?o=function(t){j.now(I(t))}:S&&!b?(u=(i=new S).port2,i.port1.onmessage=A,o=f(u.postMessage,u)):c.addEventListener&&s(c.postMessage)&&!c.importScripts&&e&&"file:"!==e.protocol&&!l(D)?(o=D,c.addEventListener("message",A,!1)):o=C in h("script")?function(t){v.appendChild(h("script"))[C]=function(){v.removeChild(this),R(t)}}:function(t){setTimeout(I(t),0)}),t.exports={set:g,clear:x}},6971:function(t,r,n){var e=n(9398),o=Math.max,i=Math.min;t.exports=function(t,r){var n=e(t);return n<0?o(n+r,0):i(n,r)}},678:function(t,r,n){var e=n(2901),o=n(4475);t.exports=function(t){return e(o(t))}},9398:function(t,r,n){var e=n(1367);t.exports=function(t){var r=+t;return r!=r||0===r?0:e(r)}},4479:function(t,r,n){var e=n(9398),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},7615:function(t,r,n){var e=n(4475),o=Object;t.exports=function(t){return o(e(t))}},6973:function(t,r,n){var e=n(3927),o=n(2366),i=n(6448),u=n(3815),c=n(379),a=n(6802),f=TypeError,s=a("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var n,a=u(t,s);if(a){if(void 0===r&&(r="default"),n=e(a,t,r),!o(n)||i(n))return n;throw f("Can't convert object to primitive value")}return void 0===r&&(r="number"),c(t,r)}},1030:function(t,r,n){var e=n(6973),o=n(6448);t.exports=function(t){var r=e(t,"string");return o(r)?r:r+""}},8171:function(t,r,n){var e={};e[n(6802)("toStringTag")]="z",t.exports="[object z]"===String(e)},9284:function(t,r,n){var e=n(486),o=String;t.exports=function(t){if("Symbol"===e(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},7073:function(t){var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},1050:function(t,r,n){var e=n(936),o=0,i=Math.random(),u=e(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},7558:function(t,r,n){var e=n(5947);t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5780:function(t,r,n){var e=n(1502),o=n(5061);t.exports=e&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},7427:function(t){var r=TypeError;t.exports=function(t,n){if(t<n)throw r("Not enough arguments");return t}},1899:function(t,r,n){var e=n(5001),o=n(6291),i=e.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},6802:function(t,r,n){var e=n(5001),o=n(6809),i=n(8382),u=n(1050),c=n(5947),a=n(7558),f=o("wks"),s=e.Symbol,p=s&&s.for,l=a?s:s&&s.withoutSetter||u;t.exports=function(t){if(!i(f,t)||!c&&"string"!=typeof f[t]){var r="Symbol."+t;c&&i(s,t)?f[t]=s[t]:f[t]=a&&p?p(r):l(r)}return f[t]}},9309:function(t){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},6609:function(t,r,n){var e=n(9638),o=n(1640);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},5370:function(t,r,n){"use strict";var e=n(9638),o=n(3927),i=n(4933),u=n(7714),c=n(7040),a=n(8971);e({target:"Promise",stat:!0,forced:n(3653)},{all:function(t){var r=this,n=u.f(r),e=n.resolve,f=n.reject,s=c((function(){var n=i(r.resolve),u=[],c=0,s=1;a(t,(function(t){var i=c++,a=!1;s++,o(n,r,t).then((function(t){a||(a=!0,u[i]=t,--s||e(u))}),f)})),--s||e(u)}));return s.error&&f(s.value),n.promise}})},4139:function(t,r,n){"use strict";var e=n(9638),o=n(13),i=n(8410).CONSTRUCTOR,u=n(7883),c=n(3425),a=n(6291),f=n(5850),s=u&&u.prototype;if(e({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(t){return this.then(void 0,t)}}),!o&&a(u)){var p=c("Promise").prototype.catch;s.catch!==p&&f(s,"catch",p,{unsafe:!0})}},9688:function(t,r,n){"use strict";var e,o,i,u=n(9638),c=n(13),a=n(566),f=n(5001),s=n(3927),p=n(5850),l=n(2848),v=n(606),y=n(3126),h=n(4933),d=n(6291),b=n(2366),m=n(2814),g=n(3571),x=n(8680).set,O=n(3690),j=n(3455),w=n(7040),S=n(8791),P=n(684),E=n(7883),T=n(8410),C=n(7714),R="Promise",I=T.CONSTRUCTOR,A=T.REJECTION_EVENT,D=T.SUBCLASSING,_=P.getterFor(R),M=P.set,N=E&&E.prototype,k=E,U=N,F=f.TypeError,L=f.document,q=f.process,G=C.f,z=G,B=!!(L&&L.createEvent&&f.dispatchEvent),H="unhandledrejection",W=function(t){var r;return!(!b(t)||!d(r=t.then))&&r},J=function(t,r){var n,e,o,i=r.value,u=1==r.state,c=u?t.ok:t.fail,a=t.resolve,f=t.reject,p=t.domain;try{c?(u||(2===r.rejection&&Y(r),r.rejection=1),!0===c?n=i:(p&&p.enter(),n=c(i),p&&(p.exit(),o=!0)),n===t.promise?f(F("Promise-chain cycle")):(e=W(n))?s(e,n,a,f):a(n)):f(i)}catch(t){p&&!o&&p.exit(),f(t)}},V=function(t,r){t.notified||(t.notified=!0,O((function(){for(var n,e=t.reactions;n=e.get();)J(n,t);t.notified=!1,r&&!t.rejection&&$(t)})))},X=function(t,r,n){var e,o;B?((e=L.createEvent("Event")).promise=r,e.reason=n,e.initEvent(t,!1,!0),f.dispatchEvent(e)):e={promise:r,reason:n},!A&&(o=f["on"+t])?o(e):t===H&&j("Unhandled promise rejection",n)},$=function(t){s(x,f,(function(){var r,n=t.facade,e=t.value;if(K(t)&&(r=w((function(){a?q.emit("unhandledRejection",e,n):X(H,n,e)})),t.rejection=a||K(t)?2:1,r.error))throw r.value}))},K=function(t){return 1!==t.rejection&&!t.parent},Y=function(t){s(x,f,(function(){var r=t.facade;a?q.emit("rejectionHandled",r):X("rejectionhandled",r,t.value)}))},Q=function(t,r,n){return function(e){t(r,e,n)}},Z=function(t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=2,V(t,!0))},tt=function(t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===r)throw F("Promise can't be resolved itself");var e=W(r);e?O((function(){var n={done:!1};try{s(e,r,Q(tt,n,t),Q(Z,n,t))}catch(r){Z(n,r,t)}})):(t.value=r,t.state=1,V(t,!1))}catch(r){Z({done:!1},r,t)}}};if(I&&(U=(k=function(t){m(this,U),h(t),s(e,this);var r=_(this);try{t(Q(tt,r),Q(Z,r))}catch(t){Z(r,t)}}).prototype,(e=function(t){M(this,{type:R,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=p(U,"then",(function(t,r){var n=_(this),e=G(g(this,k));return n.parent=!0,e.ok=!d(t)||t,e.fail=d(r)&&r,e.domain=a?q.domain:void 0,0==n.state?n.reactions.add(e):O((function(){J(e,n)})),e.promise})),o=function(){var t=new e,r=_(t);this.promise=t,this.resolve=Q(tt,r),this.reject=Q(Z,r)},C.f=G=function(t){return t===k||undefined===t?new o(t):z(t)},!c&&d(E)&&N!==Object.prototype)){i=N.then,D||p(N,"then",(function(t,r){var n=this;return new k((function(t,r){s(i,n,t,r)})).then(t,r)}),{unsafe:!0});try{delete N.constructor}catch(t){}l&&l(N,U)}u({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:k}),v(k,R,!1,!0),y(R)},3045:function(t,r,n){n(9688),n(5370),n(4139),n(7508),n(5858),n(1856)},7508:function(t,r,n){"use strict";var e=n(9638),o=n(3927),i=n(4933),u=n(7714),c=n(7040),a=n(8971);e({target:"Promise",stat:!0,forced:n(3653)},{race:function(t){var r=this,n=u.f(r),e=n.reject,f=c((function(){var u=i(r.resolve);a(t,(function(t){o(u,r,t).then(n.resolve,e)}))}));return f.error&&e(f.value),n.promise}})},5858:function(t,r,n){"use strict";var e=n(9638),o=n(3927),i=n(7714);e({target:"Promise",stat:!0,forced:n(8410).CONSTRUCTOR},{reject:function(t){var r=i.f(this);return o(r.reject,void 0,t),r.promise}})},1856:function(t,r,n){"use strict";var e=n(9638),o=n(3425),i=n(13),u=n(7883),c=n(8410).CONSTRUCTOR,a=n(7504),f=o("Promise"),s=i&&!c;e({target:"Promise",stat:!0,forced:i||c},{resolve:function(t){return a(s&&this===f?u:this,t)}})},9150:function(t,r,n){"use strict";var e=n(9638),o=n(9522).trim;e({target:"String",proto:!0,forced:n(3488)("trim")},{trim:function(){return o(this)}})}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.d=function(t,r){for(var e in r)n.o(r,e)&&!n.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};return function(){"use strict";function t(t,r){if(null==t)return{};var n,e,o=function(t,r){if(null==t)return{};var n,e,o={},i=Object.keys(t);for(e=0;e<i.length;e++)n=i[e],r.indexOf(n)>=0||(o[n]=t[n]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(e=0;e<i.length;e++)n=i[e],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function r(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}function o(t,n){if(t){if("string"==typeof t)return r(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,n):void 0}}function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}n.r(e),n.d(e,{client:function(){return O},defaults:function(){return j},rest:function(){return x}});n(9150),n(3045),n(6609);var c={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},a={headers:c};function f(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var e,o,i=[],u=!0,c=!1;try{for(n=n.call(t);!(u=(e=n.next()).done)&&(i.push(e.value),!r||i.length!==r);u=!0);}catch(t){c=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(c)throw o}}return i}}(t,r)||o(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t){return s="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},s(t)}var p=function t(r,n){var e=Object.keys(r),o=[];return e.forEach((function(e){var u=r[e];if(void 0!==u&&"function"!=typeof u){var c=function(t,r){return t?"".concat(t,"[").concat(r,"]"):r}(n,e);if("object"!==s(u)||null===u)o.push([c,"string"==typeof u?u:JSON.stringify(u)]);else{var a=t(u,c);o.push.apply(o,i(a))}}})),o},l=function(){return{stringify:function(t){var r,n=p(t);return r={},n.forEach((function(t){var n=f(t,2),e=n[0],o=n[1];r[e]=o})),Object.keys(r).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(r[t]))})).join("&")},parse:function(t){var r=t.split("&").map((function(t){return{index:t.indexOf("="),data:t}})).filter((function(t){return t.index>-1})).map((function(t){var r=t.data,n=t.index,e=r.slice(0,n),o=r.slice(n+1);return[e,decodeURIComponent(o)]})),n={};return r.forEach((function(t){var r=f(t,2),e=r[0],o=r[1];n[e]=o})),n}}},v=["params","defaultParams","paramsProcessor","responseInterceptor"];function y(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,e)}return n}function h(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?y(Object(n),!0).forEach((function(r){u(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function d(r,n){var e,o,i,u,a,f,s,p,y=n.paramsProcessor,d="function"==typeof y?y():l(),b=d.parse,m=d.stringify,g=r.indexOf("?"),x=g>-1?r.slice(0,g):r,O=b(g>-1?r.slice(g+1):""),j=n.params,w=void 0===j?{}:j,S=n.defaultParams,P=m(h(h(h({},void 0===S?{}:S),O),w));return fetch(P.trim()?"".concat(x,"?").concat(P.trim()):x,(e=n,o=e.body,i=e.headers,u=void 0===i?c:i,a=e.method,f=void 0===a?"GET":a,e.params,e.defaultParams,e.paramsProcessor,e.responseInterceptor,s=t(e,v),p=u,h(h({},s),{},"GET"===f||null==o?{headers:p,body:null}:{headers:p,body:JSON.stringify(o)}))).then((function(t){return function(t){var r=t.responseType;return function(t){var n=t.ok,e=t.status,o=t.headers,i=r?t[r]():function(t){var r=t.clone();return t.json().then((function(t){return t}),(function(){return r.text()}))}(t);return n?i.then((function(t){return{data:t,status:e,headers:o,isError:!1}})):i.then((function(t){return{error:t,data:t,headers:o,status:e,networkError:!1,isError:!0}}))}}(n)(t)}),(function(t){return{status:null,data:t,error:t,networkError:!0,isError:!0}}))}var b=["request"];function m(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,e)}return n}function g(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?m(Object(n),!0).forEach((function(r){u(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function x(r){var n={parentUrl:"/",urls:[""],restConfig:a,meta:{config:a,runtimeConfig:null}},e="string"==typeof r?g(g({},n),{},{parentUrl:r}):g(g({},n),r),o=function(r){var n,o,u=!1,c=r.request,a=t(r,b),f=e.restConfig,s=r.responseInterceptor,p=(c||f.request||d)((n=e.parentUrl,o=e.urls,[n].concat(i(o)).filter((function(t){return t.trim()})).join("/")),a).then((function(t){if("function"!=typeof s)return t;var r=s(t);return null==r?t:r})),l=Promise.resolve(p).then((function(t){return u?null:t.isError?a.throwErrorResponse?Promise.reject(t):Promise.reject(t.error):t.data}));return l.response=function(){return u=!0,p},l},u=function(t,r){var n=e.requestBody,o={method:t,params:e.requestParams,body:n};return function(t){var r=e.restConfig,n=e.meta,o=n.runtimeConfig?n.runtimeConfig(g(g(g({request:d},n.config),r),t)):n.config;return g(r===a?g({},o):g(g({},o),r),t)}("function"==typeof r?r(o):g(g({},o),r))};return{path:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=e.urls;return x(g(g({},e),{},{urls:r.concat(t.split("/"))}))},setMeta:function(t){return x(g(g({},e),{},{meta:t}))},setConfig:function(t){var r=function(){var t=e.restConfig,r=e.meta.config;return t===a?r:g(g({},r),t)}();return x(g(g({},e),{},"function"==typeof t?{restConfig:g(g({},r),t(r))}:{restConfig:g(g({},r),t)}))},setBody:function(t){return x(g(g({},e),{},{requestBody:t}))},setParams:function(t){return x(g(g({},e),{},{requestParams:t}))},get:function(t){return o(u("GET",t))},post:function(t){return o(u("POST",t))},put:function(t){return o(u("PUT",t))},delete:function(t){return o(u("DELETE",t))}}}function O(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,r={config:"function"==typeof t?t(g({request:d},a)):t,runtimeConfig:null};return{rest:function(t){return x(t).setMeta(r)},config:function(t){var n=r.config;r.config="function"!=typeof t?Object.assign(n,t):Object.assign(n,t(g({request:d},n)))},configRuntime:function(t){r.runtimeConfig=t}}}var j={request:d,headers:c}}(),e}()}));