UNPKG

yawp

Version:

YAWP! Framework

2 lines 31 kB
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("yawp.fixtures",[],n):"object"==typeof exports?exports["yawp.fixtures"]=n():t["yawp.fixtures"]=n()}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var o=e(1),i=r(o),u=e(77)(i.default);"yawp"in window&&(window.yawp.fixtures=u),n.default=u,t.exports=n.default},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,n,e,r){4===t.readyState&&(200===t.status?e(n.raw?t:n.json?JSON.parse(t.responseText):t.responseText):r(t))}function i(t,n){n&&"omit"!==n&&(t.withCredentials=!0)}function u(t,n){n=n||{},(0,a.extend)(n,{Accept:"application/json","Content-Type":"application/json;charset=UTF-8"});for(var e in n)n.hasOwnProperty(e)&&t.setRequestHeader(e,n[e])}Object.defineProperty(n,"__esModule",{value:!0});var c=e(2),f=r(c);n.default=function(t,n){return new f.default(function(e,r){var c=n.query;delete n.query;var f=new XMLHttpRequest;f.onreadystatechange=function(){o(f,n,e,r)},f.open(n.method,t+(c?"?"+(0,a.toUrlParam)(c):"")),u(f,n.headers),i(f,n.credentials),f.send(n.body)})};var a=e(72);t.exports=n.default},function(t,n,e){t.exports={default:e(3),__esModule:!0}},function(t,n,e){e(4),e(5),e(49),e(53),e(70),e(71),t.exports=e(13).Promise},function(t,n){},function(t,n,e){"use strict";var r=e(6)(!0);e(9)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){var r=e(7),o=e(8);t.exports=function(t){return function(n,e){var i,u,c=String(o(n)),f=r(e),a=c.length;return f<0||f>=a?t?"":void 0:(i=c.charCodeAt(f),i<55296||i>56319||f+1===a||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):i:t?c.slice(f,f+2):(i-55296<<10)+(u-56320)+65536)}}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){"use strict";var r=e(10),o=e(11),i=e(26),u=e(16),c=e(27),f=e(28),a=e(29),s=e(45),l=e(47),p=e(46)("iterator"),h=!([].keys&&"next"in[].keys()),v="@@iterator",d="keys",y="values",_=function(){return this};t.exports=function(t,n,e,m,x,b,g){a(e,n,m);var w,O,S,j=function(t){if(!h&&t in L)return L[t];switch(t){case d:return function(){return new e(this,t)};case y:return function(){return new e(this,t)}}return function(){return new e(this,t)}},P=n+" Iterator",k=x==y,M=!1,L=t.prototype,T=L[p]||L[v]||x&&L[x],E=T||j(x),F=x?k?j("entries"):E:void 0,A="Array"==n?L.entries||T:T;if(A&&(S=l(A.call(new t)),S!==Object.prototype&&S.next&&(s(S,P,!0),r||c(S,p)||u(S,p,_))),k&&T&&T.name!==y&&(M=!0,E=function(){return T.call(this)}),r&&!g||!h&&!M&&L[p]||u(L,p,E),f[n]=E,f[P]=_,x)if(w={values:k?E:j(y),keys:b?E:j(d),entries:F},g)for(O in w)O in L||i(L,O,w[O]);else o(o.P+o.F*(h||M),n,w);return w}},function(t,n){t.exports=!0},function(t,n,e){var r=e(12),o=e(13),i=e(14),u=e(16),c="prototype",f=function(t,n,e){var a,s,l,p=t&f.F,h=t&f.G,v=t&f.S,d=t&f.P,y=t&f.B,_=t&f.W,m=h?o:o[n]||(o[n]={}),x=m[c],b=h?r:v?r[n]:(r[n]||{})[c];h&&(e=n);for(a in e)s=!p&&b&&void 0!==b[a],s&&a in m||(l=s?b[a]:e[a],m[a]=h&&"function"!=typeof b[a]?e[a]:y&&s?i(l,r):_&&b[a]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[c]=t[c],n}(l):d&&"function"==typeof l?i(Function.call,l):l,d&&((m.virtual||(m.virtual={}))[a]=l,t&f.R&&x&&!x[a]&&u(x,a,l)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){var e=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(15);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(17),o=e(25);t.exports=e(21)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(18),o=e(20),i=e(24),u=Object.defineProperty;n.f=e(21)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(19);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){t.exports=!e(21)&&!e(22)(function(){return 7!=Object.defineProperty(e(23)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){t.exports=!e(22)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(19),o=e(12).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){var r=e(19);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){t.exports=e(16)},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n){t.exports={}},function(t,n,e){"use strict";var r=e(30),o=e(25),i=e(45),u={};e(16)(u,e(46)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(18),o=e(31),i=e(43),u=e(40)("IE_PROTO"),c=function(){},f="prototype",a=function(){var t,n=e(23)("iframe"),r=i.length,o="<",u=">";for(n.style.display="none",e(44).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+u+"document.F=Object"+o+"/script"+u),t.close(),a=t.F;r--;)delete a[f][i[r]];return a()};t.exports=Object.create||function(t,n){var e;return null!==t?(c[f]=r(t),e=new c,c[f]=null,e[u]=t):e=a(),void 0===n?e:o(e,n)}},function(t,n,e){var r=e(17),o=e(18),i=e(32);t.exports=e(21)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),c=u.length,f=0;c>f;)r.f(t,e=u[f++],n[e]);return t}},function(t,n,e){var r=e(33),o=e(43);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n,e){var r=e(27),o=e(34),i=e(37)(!1),u=e(40)("IE_PROTO");t.exports=function(t,n){var e,c=o(t),f=0,a=[];for(e in c)e!=u&&r(c,e)&&a.push(e);for(;n.length>f;)r(c,e=n[f++])&&(~i(a,e)||a.push(e));return a}},function(t,n,e){var r=e(35),o=e(8);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(36);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var r=e(34),o=e(38),i=e(39);t.exports=function(t){return function(n,e,u){var c,f=r(n),a=o(f.length),s=i(u,a);if(t&&e!=e){for(;a>s;)if(c=f[s++],c!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===e)return t||s||0;return!t&&-1}}},function(t,n,e){var r=e(7),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n,e){var r=e(7),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(41)("keys"),o=e(42);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(12),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(12).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(17).f,o=e(27),i=e(46)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){var r=e(41)("wks"),o=e(42),i=e(12).Symbol,u="function"==typeof i,c=t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))};c.store=r},function(t,n,e){var r=e(27),o=e(48),i=e(40)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(8);t.exports=function(t){return Object(r(t))}},function(t,n,e){e(50);for(var r=e(12),o=e(16),i=e(28),u=e(46)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;f<c.length;f++){var a=c[f],s=r[a],l=s&&s.prototype;l&&!l[u]&&o(l,u,a),i[a]=i.Array}},function(t,n,e){"use strict";var r=e(51),o=e(52),i=e(28),u=e(34);t.exports=e(9)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){"use strict";var r,o,i,u,c=e(10),f=e(12),a=e(14),s=e(54),l=e(11),p=e(19),h=e(15),v=e(55),d=e(56),y=e(60),_=e(61).set,m=e(63)(),x=e(64),b=e(65),g=e(66),w="Promise",O=f.TypeError,S=f.process,j=f[w],P="process"==s(S),k=function(){},M=o=x.f,L=!!function(){try{var t=j.resolve(1),n=(t.constructor={})[e(46)("species")]=function(t){t(k,k)};return(P||"function"==typeof PromiseRejectionEvent)&&t.then(k)instanceof n}catch(t){}}(),T=function(t){var n;return!(!p(t)||"function"!=typeof(n=t.then))&&n},E=function(t,n){if(!t._n){t._n=!0;var e=t._c;m(function(){for(var r=t._v,o=1==t._s,i=0,u=function(n){var e,i,u=o?n.ok:n.fail,c=n.resolve,f=n.reject,a=n.domain;try{u?(o||(2==t._h&&N(t),t._h=1),u===!0?e=r:(a&&a.enter(),e=u(r),a&&a.exit()),e===n.promise?f(O("Promise-chain cycle")):(i=T(e))?i.call(e,c,f):c(e)):f(r)}catch(t){f(t)}};e.length>i;)u(e[i++]);t._c=[],t._n=!1,n&&!t._h&&F(t)})}},F=function(t){_.call(f,function(){var n,e,r,o=t._v,i=A(t);if(i&&(n=b(function(){P?S.emit("unhandledRejection",o,t):(e=f.onunhandledrejection)?e({promise:t,reason:o}):(r=f.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=P||A(t)?2:1),t._a=void 0,i&&n.e)throw n.v})},A=function(t){if(1==t._h)return!1;for(var n,e=t._a||t._c,r=0;e.length>r;)if(n=e[r++],n.fail||!A(n.promise))return!1;return!0},N=function(t){_.call(f,function(){var n;P?S.emit("rejectionHandled",t):(n=f.onrejectionhandled)&&n({promise:t,reason:t._v})})},z=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),E(n,!0))},C=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw O("Promise can't be resolved itself");(n=T(t))?m(function(){var r={_w:e,_d:!1};try{n.call(t,a(C,r,1),a(z,r,1))}catch(t){z.call(r,t)}}):(e._v=t,e._s=1,E(e,!1))}catch(t){z.call({_w:e,_d:!1},t)}}};L||(j=function(t){v(this,j,w,"_h"),h(t),r.call(this);try{t(a(C,this,1),a(z,this,1))}catch(t){z.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=e(67)(j.prototype,{then:function(t,n){var e=M(y(this,j));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=P?S.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&E(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=a(C,t,1),this.reject=a(z,t,1)},x.f=M=function(t){return t===j||t===u?new i(t):o(t)}),l(l.G+l.W+l.F*!L,{Promise:j}),e(45)(j,w),e(68)(w),u=e(13)[w],l(l.S+l.F*!L,w,{reject:function(t){var n=M(this),e=n.reject;return e(t),n.promise}}),l(l.S+l.F*(c||!L),w,{resolve:function(t){return g(c&&this===u?j:this,t)}}),l(l.S+l.F*!(L&&e(69)(function(t){j.all(t).catch(k)})),w,{all:function(t){var n=this,e=M(n),r=e.resolve,o=e.reject,i=b(function(){var e=[],i=0,u=1;d(t,!1,function(t){var c=i++,f=!1;e.push(void 0),u++,n.resolve(t).then(function(t){f||(f=!0,e[c]=t,--u||r(e))},o)}),--u||r(e)});return i.e&&o(i.v),e.promise},race:function(t){var n=this,e=M(n),r=e.reject,o=b(function(){d(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return o.e&&r(o.v),e.promise}})},function(t,n,e){var r=e(36),o=e(46)("toStringTag"),i="Arguments"==r(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,e,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=u(n=Object(t),o))?e:i?r(n):"Object"==(c=r(n))&&"function"==typeof n.callee?"Arguments":c}},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){var r=e(14),o=e(57),i=e(58),u=e(18),c=e(38),f=e(59),a={},s={},n=t.exports=function(t,n,e,l,p){var h,v,d,y,_=p?function(){return t}:f(t),m=r(e,l,n?2:1),x=0;if("function"!=typeof _)throw TypeError(t+" is not iterable!");if(i(_)){for(h=c(t.length);h>x;x++)if(y=n?m(u(v=t[x])[0],v[1]):m(t[x]),y===a||y===s)return y}else for(d=_.call(t);!(v=d.next()).done;)if(y=o(d,m,v.value,n),y===a||y===s)return y};n.BREAK=a,n.RETURN=s},function(t,n,e){var r=e(18);t.exports=function(t,n,e,o){try{return o?n(r(e)[0],e[1]):n(e)}catch(n){var i=t.return;throw void 0!==i&&r(i.call(t)),n}}},function(t,n,e){var r=e(28),o=e(46)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,n,e){var r=e(54),o=e(46)("iterator"),i=e(28);t.exports=e(13).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,n,e){var r=e(18),o=e(15),i=e(46)("species");t.exports=function(t,n){var e,u=r(t).constructor;return void 0===u||void 0==(e=r(u)[i])?n:o(e)}},function(t,n,e){var r,o,i,u=e(14),c=e(62),f=e(44),a=e(23),s=e(12),l=s.process,p=s.setImmediate,h=s.clearImmediate,v=s.MessageChannel,d=s.Dispatch,y=0,_={},m="onreadystatechange",x=function(){var t=+this;if(_.hasOwnProperty(t)){var n=_[t];delete _[t],n()}},b=function(t){x.call(t.data)};p&&h||(p=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return _[++y]=function(){c("function"==typeof t?t:Function(t),n)},r(y),y},h=function(t){delete _[t]},"process"==e(36)(l)?r=function(t){l.nextTick(u(x,t,1))}:d&&d.now?r=function(t){d.now(u(x,t,1))}:v?(o=new v,i=o.port2,o.port1.onmessage=b,r=u(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(r=function(t){s.postMessage(t+"","*")},s.addEventListener("message",b,!1)):r=m in a("script")?function(t){f.appendChild(a("script"))[m]=function(){f.removeChild(this),x.call(t)}}:function(t){setTimeout(u(x,t,1),0)}),t.exports={set:p,clear:h}},function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},function(t,n,e){var r=e(12),o=e(61).set,i=r.MutationObserver||r.WebKitMutationObserver,u=r.process,c=r.Promise,f="process"==e(36)(u);t.exports=function(){var t,n,e,a=function(){var r,o;for(f&&(r=u.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(f)e=function(){u.nextTick(a)};else if(i){var s=!0,l=document.createTextNode("");new i(a).observe(l,{characterData:!0}),e=function(){l.data=s=!s}}else if(c&&c.resolve){var p=c.resolve();e=function(){p.then(a)}}else e=function(){o.call(r,a)};return function(r){var o={fn:r,next:void 0};n&&(n.next=o),t||(t=o,e()),n=o}}},function(t,n,e){"use strict";function r(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=r}),this.resolve=o(n),this.reject=o(e)}var o=e(15);t.exports.f=function(t){return new r(t)}},function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,e){var r=e(18),o=e(19),i=e(64);t.exports=function(t,n){if(r(t),o(n)&&n.constructor===t)return n;var e=i.f(t),u=e.resolve;return u(n),e.promise}},function(t,n,e){var r=e(16);t.exports=function(t,n,e){for(var o in n)e&&t[o]?t[o]=n[o]:r(t,o,n[o]);return t}},function(t,n,e){"use strict";var r=e(12),o=e(13),i=e(17),u=e(21),c=e(46)("species");t.exports=function(t){var n="function"==typeof o[t]?o[t]:r[t];u&&n&&!n[c]&&i.f(n,c,{configurable:!0,get:function(){return this}})}},function(t,n,e){var r=e(46)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var e=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:e=!0}},i[r]=function(){return u},t(i)}catch(t){}return e}},function(t,n,e){"use strict";var r=e(11),o=e(13),i=e(12),u=e(60),c=e(66);r(r.P+r.R,"Promise",{finally:function(t){var n=u(this,o.Promise||i.Promise),e="function"==typeof t;return this.then(e?function(e){return c(n,t()).then(function(){return e})}:t,e?function(e){return c(n,t()).then(function(){throw e})}:t)}})},function(t,n,e){"use strict";var r=e(11),o=e(64),i=e(65);r(r.S,"Promise",{try:function(t){var n=o.f(this),e=i(t);return(e.e?n.reject:n.resolve)(e.v),n.promise}})},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(){for(var t=arguments[0]||{},n=1,e=arguments.length;n<e;n++){var r=arguments[n];for(var o in r)t[o]=r[o]}return t}function i(t){return(0,c.default)(t).map(function(n){return encodeURIComponent(n)+"="+encodeURIComponent(t[n])}).join("&")}Object.defineProperty(n,"__esModule",{value:!0});var u=e(73),c=r(u);n.extend=o,n.toUrlParam=i},function(t,n,e){t.exports={default:e(74),__esModule:!0}},function(t,n,e){e(75),t.exports=e(13).Object.keys},function(t,n,e){var r=e(48),o=e(32);e(76)("keys",function(){return function(t){return o(r(t))}})},function(t,n,e){var r=e(11),o=e(13),i=e(22);t.exports=function(t,n){var e=(o.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*i(function(){e(1)}),"Object",u)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var o=e(78),i=r(o),u=e(96),c=r(u),f=e(98),a=r(f),s=e(2),l=r(s),p=e(99),h=r(p),v=e(100),d=r(v),y=e(72),_="/fixtures",m="/_ah/yawp/datastore/delete-all",x=["id"],b={};n.default=function(t){var n=function(){function n(){(0,h.default)(this,n),this._baseUrl=_,this._resetUrl=m,this._lazyProperties=x,this._defaultFetchOptions=b,this._defaultNamespace=null,this.promise=null,this.fixtures=[],this.lazy={}}return(0,d.default)(n,[{key:"config",value:function(t){t(this)}},{key:"defaultNamespace",value:function(t){this._defaultNamespace=t}},{key:"baseUrl",value:function(t){this._baseUrl=t}},{key:"resetUrl",value:function(t){this._resetUrl=t}},{key:"lazyProperties",value:function(t){this._lazyProperties=t}},{key:"defaultFetchOptions",value:function(t){(0,y.extend)(this._defaultFetchOptions,t)}},{key:"reset",value:function(n){var e=this;return t(this._resetUrl,{method:"GET"}).then(function(){e.clear(n)})}},{key:"clear",value:function(t){this.promise=null;for(var n=0,e=this.fixtures.length;n<e;n++){var r=this.fixtures[n].name,o=this.fixtures[n].path;this.bindFixture(r,o),t&&this.bindLazy(r,o)}}},{key:"bind",value:function(t,n){this.fixtures.push({name:t,path:n}),this.bindFixture(t,n),this.bindLazy(t)}},{key:"bindFixture",value:function(t,n){this[t]=new e(this,t,n).api}},{key:"bindLazy",value:function(t){this.lazy[t]=new r(this,t).api}},{key:"chain",value:function(t){return this.promise?this.promise=this.promise.then(t):this.promise=t(),this.promise}},{key:"load",value:function(t){return this.promise?this.promise.then(function(){return t&&t()}):new l.default(function(){return t&&t()})}}]),n}(),e=function(){function n(t,e,r){(0,h.default)(this,n),this.fx=t,this.name=e,this.path=r,this.api=this.createApi()}return(0,d.default)(n,[{key:"createApi",value:function(){var t=this,n=function(n,e){return t.fx.chain(t.load(n,e))};return n.self=this,n}},{key:"url",value:function(){return this.fx._baseUrl+this.path}},{key:"load",value:function(t,n){return this.createStubs(t),this.createLoadPromiseFn(t,n)}},{key:"createLoadPromiseFn",value:function(n,e){var r=this;return e||(e=this.getLazyDataFor(n)),function(){return r.isLoaded(n)?r.api[n]:r.prepare(e).then(function(e){var o=e.__namespace,i=(0,a.default)(e,["__namespace"]);delete e.__namespace;var u=void 0===o?r.fx._defaultNamespace:o,f={method:"POST",headers:{namespace:u},json:!0,body:(0,c.default)(i)};return(0,y.extend)(f,r.fx._defaultFetchOptions),t(r.url(),f).then(function(t){return r.api[n]=t,t})})}}},{key:"getLazyDataFor",value:function(t){var n=this.fx.lazy[this.name].self;return n.getData(t)}},{key:"prepare",value:function(t){var n=this;return new l.default(function(e){var r={};(0,y.extend)(r,t);var o=[];n.inspectLazyProperties(r,o),n.resolveLazyProperties(r,o,e)})}},{key:"resolveLazyProperties",value:function(t,n,e){if(n.length){for(var r=n[0](),o=1,i=n.length;o<i;o++)r=r.then(n[o]);r.then(function(){e(t)})}else e(t)}},{key:"inspectLazyProperties",value:function(t,n){var e=this,r=function(r){if(!t.hasOwnProperty(r))return"continue";var o=t[r];return o instanceof Function?(n.push(function(){return o().then(function(n){t[r]=n})}),"continue"):o instanceof Object?(e.inspectLazyProperties(o,n),{v:void 0}):void 0};for(var o in t){var u=r(o);switch(u){case"continue":continue;default:if("object"===("undefined"==typeof u?"undefined":(0,i.default)(u)))return u.v}}}},{key:"createStubs",value:function(t){if(!this.hasStubs(t)){var n=this;this.api[t]=this.fx._lazyProperties.reduce(function(e,r){return e[r]=function(){return new l.default(function(e){return e(n.api[t][r])})},e},{}),this.api[t].__stub__=!0}}},{key:"isLoaded",value:function(t){return this.api[t]&&!this.hasStubs(t)}},{key:"hasStubs",value:function(t){return this.api[t]&&this.api[t].__stub__}}]),n}(),r=function(){function t(n,e){(0,h.default)(this,t),this.fx=n,this.name=e,this.data={},this.api=this.createApi()}return(0,d.default)(t,[{key:"createApi",value:function(){var t=this,n=function(n,e){return t.createLazyStubs(n),e&&(t.data[n]=e),t.api[n]};return n.self=this,n}},{key:"getData",value:function(t){return this.data[t]}},{key:"createLazyStubs",value:function(t){var n=this;this.hasStubs(t)||(this.api[t]=this.fx._lazyProperties.reduce(function(e,r){return e[r]=function(){return n.getFixtureRef().load(t)().then(function(t){return t[r]})},e},{}),this.api[t].__stub__=!0)}},{key:"hasStubs",value:function(t){return this.api[t]&&this.api[t].__stub__}},{key:"getFixtureRef",value:function(){return this.fx[this.name].self}}]),t}();return new n},t.exports=n.default},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(79),i=r(o),u=e(82),c=r(u),f="function"==typeof c.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":typeof t};n.default="function"==typeof c.default&&"symbol"===f(i.default)?function(t){return"undefined"==typeof t?"undefined":f(t)}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":"undefined"==typeof t?"undefined":f(t)}},function(t,n,e){t.exports={default:e(80),__esModule:!0}},function(t,n,e){e(5),e(49),t.exports=e(81).f("iterator")},function(t,n,e){n.f=e(46)},function(t,n,e){t.exports={default:e(83),__esModule:!0}},function(t,n,e){e(84),e(4),e(94),e(95),t.exports=e(13).Symbol},function(t,n,e){"use strict";var r=e(12),o=e(27),i=e(21),u=e(11),c=e(26),f=e(85).KEY,a=e(22),s=e(41),l=e(45),p=e(42),h=e(46),v=e(81),d=e(86),y=e(87),_=e(90),m=e(18),x=e(34),b=e(24),g=e(25),w=e(30),O=e(91),S=e(93),j=e(17),P=e(32),k=S.f,M=j.f,L=O.f,T=r.Symbol,E=r.JSON,F=E&&E.stringify,A="prototype",N=h("_hidden"),z=h("toPrimitive"),C={}.propertyIsEnumerable,R=s("symbol-registry"),I=s("symbols"),U=s("op-symbols"),D=Object[A],G="function"==typeof T,J=r.QObject,W=!J||!J[A]||!J[A].findChild,H=i&&a(function(){return 7!=w(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=k(D,n);r&&delete D[n],M(t,n,e),r&&t!==D&&M(D,n,r)}:M,V=function(t){var n=I[t]=w(T[A]);return n._k=t,n},q=G&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},B=function(t,n,e){return t===D&&B(U,n,e),m(t),n=b(n,!0),m(e),o(I,n)?(e.enumerable?(o(t,N)&&t[N][n]&&(t[N][n]=!1),e=w(e,{enumerable:g(0,!1)})):(o(t,N)||M(t,N,g(1,{})),t[N][n]=!0),H(t,n,e)):M(t,n,e)},K=function(t,n){m(t);for(var e,r=y(n=x(n)),o=0,i=r.length;i>o;)B(t,e=r[o++],n[e]);return t},Y=function(t,n){return void 0===n?w(t):K(w(t),n)},Q=function(t){var n=C.call(this,t=b(t,!0));return!(this===D&&o(I,t)&&!o(U,t))&&(!(n||!o(this,t)||!o(I,t)||o(this,N)&&this[N][t])||n)},X=function(t,n){if(t=x(t),n=b(n,!0),t!==D||!o(I,n)||o(U,n)){var e=k(t,n);return!e||!o(I,n)||o(t,N)&&t[N][n]||(e.enumerable=!0),e}},Z=function(t){for(var n,e=L(x(t)),r=[],i=0;e.length>i;)o(I,n=e[i++])||n==N||n==f||r.push(n);return r},$=function(t){for(var n,e=t===D,r=L(e?U:x(t)),i=[],u=0;r.length>u;)!o(I,n=r[u++])||e&&!o(D,n)||i.push(I[n]);return i};G||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===D&&n.call(U,e),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),H(this,t,g(1,e))};return i&&W&&H(D,t,{configurable:!0,set:n}),V(t)},c(T[A],"toString",function(){return this._k}),S.f=X,j.f=B,e(92).f=O.f=Z,e(89).f=Q,e(88).f=$,i&&!e(10)&&c(D,"propertyIsEnumerable",Q,!0),v.f=function(t){return V(h(t))}),u(u.G+u.W+u.F*!G,{Symbol:T});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;tt.length>nt;)h(tt[nt++]);for(var et=P(h.store),rt=0;et.length>rt;)d(et[rt++]);u(u.S+u.F*!G,"Symbol",{for:function(t){return o(R,t+="")?R[t]:R[t]=T(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var n in R)if(R[n]===t)return n},useSetter:function(){W=!0},useSimple:function(){W=!1}}),u(u.S+u.F*!G,"Object",{create:Y,defineProperty:B,defineProperties:K,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:$}),E&&u(u.S+u.F*(!G||a(function(){var t=T();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!q(t)){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return n=r[1],"function"==typeof n&&(e=n),!e&&_(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!q(n))return n}),r[1]=n,F.apply(E,r)}}}),T[A][z]||e(16)(T[A],z,T[A].valueOf),l(T,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){var r=e(42)("meta"),o=e(19),i=e(27),u=e(17).f,c=0,f=Object.isExtensible||function(){return!0},a=!e(22)(function(){return f(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!f(t))return"F";if(!n)return"E";s(t)}return t[r].i},p=function(t,n){if(!i(t,r)){if(!f(t))return!0;if(!n)return!1;s(t)}return t[r].w},h=function(t){return a&&v.NEED&&f(t)&&!i(t,r)&&s(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},function(t,n,e){var r=e(12),o=e(13),i=e(10),u=e(81),c=e(17).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,e){var r=e(32),o=e(88),i=e(89);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,c=e(t),f=i.f,a=0;c.length>a;)f.call(t,u=c[a++])&&n.push(u);return n}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(36);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(34),o=e(92).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(r(t))}},function(t,n,e){var r=e(33),o=e(43).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){var r=e(89),o=e(25),i=e(34),u=e(24),c=e(27),f=e(20),a=Object.getOwnPropertyDescriptor;n.f=e(21)?a:function(t,n){if(t=i(t),n=u(n,!0),f)try{return a(t,n)}catch(t){}if(c(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n,e){e(86)("asyncIterator")},function(t,n,e){e(86)("observable")},function(t,n,e){t.exports={default:e(97),__esModule:!0}},function(t,n,e){var r=e(13),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,n){"use strict";n.__esModule=!0,n.default=function(t,n){var e={};for(var r in t)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}},function(t,n){"use strict";n.__esModule=!0,n.default=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(101),i=r(o);n.default=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}()},function(t,n,e){t.exports={default:e(102),__esModule:!0}},function(t,n,e){e(103);var r=e(13).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},function(t,n,e){var r=e(11);r(r.S+r.F*!e(21),"Object",{defineProperty:e(17).f})}])}); //# sourceMappingURL=yawp.fixtures.min.js.map