File: /home/centuryt/public_html/wp-content/themes/woostify/assets/js/fetch-api-polyfill.min.js
(function(t){!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};e.m=t,e.c=n,e.p="",e(0)}({0:
/*!***********************!*\
!*** ./src/global.js ***!
\***********************/
function(t,e,n){(function(t){var e=n(/*! ./yaku */80);try{(t||{}).Promise=e,window.Promise=e}catch(t){}}).call(e,function(){return this}())},80:
/*!*********************!*\
!*** ./src/yaku.js ***!
\*********************/
function(t,e){(function(e){!function(){"use strict";function n(){return tt[C][N]||q}function r(t){return t&&"object"==typeof t}function o(t){return"function"==typeof t}function i(t,e){return t instanceof e}function s(t,e,n){if(!e(t))throw l(n)}function a(){try{return B.apply(A,arguments)}catch(t){return K.e=t,K}}function u(t,e){return B=t,A=e,a}function c(t,e){function n(){for(var n=0;n<o;)e(r[n],r[n+1]),r[n++]=x,r[n++]=x;o=0,r.length>t&&(r.length=t)}var r=S(t),o=0;return function(t,e){r[o++]=t,r[o++]=e,2===o&&tt.nextTick(n)}}function f(t,e){var n,r,s,a,c=0;if(!t)throw l(V);var f=t[tt[C][H]];if(o(f))r=f.call(t);else{if(!o(t.next)){if(i(t,S)){for(n=t.length;c<n;)e(t[c],c++);return c}throw l(V)}r=t}for(;!(s=r.next()).done;)if((a=u(e)(s.value,c++))===K)throw o(r[W])&&r[W](),a.e;return c}function l(t){return new TypeError(t)}function h(t){return(t?"":Y)+(new k).stack}function d(t,e){var n="on"+t.toLowerCase(),r=U[n];I&&I.listeners(t).length?t===J?I.emit(t,e._v,e):I.emit(t,e):r?r({reason:e._v,promise:e}):tt[t](e._v,e)}function p(t){return t&&t._s}function y(t){return p(t)?new t(Q):(e=new t((function(t,o){if(e)throw l();n=t,r=o})),s(n,o),s(r,o),e);var e,n,r}function v(t,e){return function(n){R&&(t[M]=h(!0)),e===D?E(t,n):_(t,e,n)}}function b(t){if(t._umark)return!0;t._umark=!0;for(var e,n=0,r=t._c;n<r;)if((e=t[n++])._onRejected||b(e))return!0}function m(t,e){function n(t){return r.push(t.replace(/^\s+|\s+$/g,""))}var r=[];return R&&(e[M]&&n(e[M]),function t(e){e&&G in e&&(t(e._next),n(e[G]+""),t(e._p))}(e)),(t&&t.stack?t.stack:t)+("\n"+r.join("\n")).replace(Z,"")}function w(t,e){return t(e)}function _(t,e,n){var r=0,o=t._c;if(t._s===F)for(t._s=e,t._v=n,e===L&&(R&&function(t){return i(t,k)}(n)&&(n.longStack=m(n,t)),nt(t));r<o;)et(t,t[r++]);return t}function E(t,e){if(e===t&&e)return _(t,L,l($)),t;if(e!==j&&(o(e)||r(e))){var n=u(g)(e);if(n===K)return _(t,L,n.e),t;o(n)?(R&&p(e)&&(t._next=e),p(e)?T(t,e,n):tt.nextTick((function(){T(t,e,n)}))):_(t,D,e)}else _(t,D,e);return t}function g(t){return t.then}function T(t,e,n){var r=u(n,e)((function(n){e&&(e=j,E(t,n))}),(function(n){e&&(e=j,_(t,L,n))}));r===K&&e&&(_(t,L,r.e),e=j)}var x,B,A,j=null,P="object"==typeof window,U=P?window:e,I=U.process,O=U.console,R=!1,S=Array,k=Error,L=1,D=2,F=3,C="Symbol",H="iterator",N="species",q=C+"("+N+")",W="return",X="_uh",G="_pt",M="_st",V="Invalid argument",Y="\nFrom previous ",$="Chaining cycle detected for promise",z="rejectionHandled",J="unhandledRejection",K={e:j},Q=function(){},Z=/^.+\/node_modules\/yaku\/.+\n?/gm,tt=t.exports=function(t){var e,n=this;if(!r(n)||n._s!==x)throw l("Invalid this");if(n._s=F,R&&(n[G]=h()),t!==Q){if(!o(t))throw l(V);(e=u(t)(v(n,D),v(n,L)))===K&&_(n,L,e.e)}};tt.default=tt,function(t,e){for(var n in e)t[n]=e[n]}(tt.prototype,{then:function(t,e){if(void 0===this._s)throw l();return function(t,e,n,r){return o(n)&&(e._onFulfilled=n),o(r)&&(t[X]&&d(z,t),e._onRejected=r),R&&(e._p=t),t[t._c++]=e,t._s!==F&&et(t,e),e}(this,y(tt.speciesConstructor(this,tt)),t,e)},catch:function(t){return this.then(x,t)},finally:function(t){function e(e){return tt.resolve(t()).then((function(){return e}))}return this.then(e,e)},_c:0,_p:j}),tt.resolve=function(t){return p(t)?t:E(y(this),t)},tt.reject=function(t){return _(y(this),L,t)},tt.race=function(t){var e=this,n=y(e),r=function(t){_(n,D,t)},o=function(t){_(n,L,t)},i=u(f)(t,(function(t){e.resolve(t).then(r,o)}));return i===K?e.reject(i.e):n},tt.all=function(t){function e(t){_(o,L,t)}var n,r=this,o=y(r),i=[];return n=u(f)(t,(function(t,s){r.resolve(t).then((function(t){i[s]=t,--n||_(o,D,i)}),e)})),n===K?r.reject(n.e):(n||_(o,D,[]),o)},tt.Symbol=U[C]||{},u((function(){Object.defineProperty(tt,n(),{get:function(){return this}})}))(),tt.speciesConstructor=function(t,e){var r=t.constructor;return r&&r[n()]||e},tt.unhandledRejection=function(t,e){O&&O.error("Uncaught (in promise)",R?e.longStack:m(t,e))},tt.rejectionHandled=Q,tt.enableLongStackTrace=function(){R=!0},tt.nextTick=P?function(t){setTimeout(t)}:I.nextTick,tt._s=1;var et=c(999,(function(t,e){var n,r;return(r=t._s!==L?e._onFulfilled:e._onRejected)===x?void _(e,t._s,t._v):(n=u(w)(r,t._v))===K?void _(e,L,n.e):void E(e,n)})),nt=c(9,(function(t){b(t)||(t[X]=1,d(J,t))}))}()}).call(e,function(){return this}())}}),function(e){"use strict";var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(t){return!1}}(),i="FormData"in e,s="ArrayBuffer"in e;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=function(t){return t&&DataView.prototype.isPrototypeOf(t)},c=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function f(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function l(t){return"string"!=typeof t&&(t=String(t)),t}function h(e){var n={next:function(){var n=e.shift();return{done:n===t,value:n}}};return r&&(n[Symbol.iterator]=function(){return n}),n}function d(t){this.map={},t instanceof d?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function y(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function v(t){var e=new FileReader,n=y(e);return e.readAsArrayBuffer(t),n}function b(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t)if("string"==typeof t)this._bodyText=t;else if(o&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(i&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(n&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(s&&o&&u(t))this._bodyArrayBuffer=b(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!s||!ArrayBuffer.prototype.isPrototypeOf(t)&&!c(t))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=b(t)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var t,e,n,r=p(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=y(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(t,e){t=f(t),e=l(e);var n=this.map[t];this.map[t]=n?n+","+e:e},d.prototype.delete=function(t){delete this.map[f(t)]},d.prototype.get=function(t){return t=f(t),this.has(t)?this.map[t]:null},d.prototype.has=function(t){return this.map.hasOwnProperty(f(t))},d.prototype.set=function(t,e){this.map[f(t)]=l(e)},d.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},d.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),h(t)},d.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),h(t)},d.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),h(t)},r&&(d.prototype[Symbol.iterator]=d.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function _(t,e){var n,r,o=(e=e||{}).body;if(t instanceof _){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new d(t.headers)),this.method=t.method,this.mode=t.mode,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new d(e.headers)),this.method=(n=e.method||this.method||"GET",r=n.toUpperCase(),w.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function E(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function g(t,e){e||(e={}),this.type="default",this.status="status"in e?e.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},m.call(_.prototype),m.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},g.error=function(){var t=new g(null,{status:0,statusText:""});return t.type="error",t};var T=[301,302,303,307,308];g.redirect=function(t,e){if(-1===T.indexOf(e))throw new RangeError("Invalid status code");return new g(null,{status:e,headers:{location:t}})},e.Headers=d,e.Request=_,e.Response=g,e.fetch=function(t,e){return new Promise((function(n,r){var i=new _(t,e),s=new XMLHttpRequest;s.onload=function(){var t,e,r={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new d,t.split(/\r?\n/).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;n(new g(o,r))},s.onerror=function(){r(new TypeError("Network request failed"))},s.ontimeout=function(){r(new TypeError("Network request failed"))},s.open(i.method,i.url,!0),"include"===i.credentials&&(s.withCredentials=!0),"responseType"in s&&o&&(s.responseType="blob"),i.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),s.send(void 0===i._bodyInit?null:i._bodyInit)}))},e.fetch.polyfill=!0}("undefined"!=typeof self?self:this),function(){var e={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,storagecommit:1,textinput:1};if("undefined"!=typeof document&&"undefined"!=typeof window){var n=window.Event&&window.Event.prototype||null;window.Event=Window.prototype.Event=function(e,n){if(!e)throw new Error("Not enough arguments");var r;if("createEvent"in document){r=document.createEvent("Event");var o=!(!n||n.bubbles===t)&&n.bubbles,i=!(!n||n.cancelable===t)&&n.cancelable;return r.initEvent(e,o,i),r}return(r=document.createEventObject()).type=e,r.bubbles=!(!n||n.bubbles===t)&&n.bubbles,r.cancelable=!(!n||n.cancelable===t)&&n.cancelable,r},n&&Object.defineProperty(window.Event,"prototype",{configurable:!1,enumerable:!1,writable:!0,value:n}),"createEvent"in document||(window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function(){var t=this,n=arguments[0],o=arguments[1];if(t===window&&n in e)throw new Error("In IE8 the event: "+n+" is not available on the window object. Please see https://github.com/Financial-Times/polyfill-service/issues/317 for more information.");t._events||(t._events={}),t._events[n]||(t._events[n]=function(e){var n,o=t._events[e.type].list,i=o.slice(),s=-1,a=i.length;for(e.preventDefault=function(){!1!==e.cancelable&&(e.returnValue=!1)},e.stopPropagation=function(){e.cancelBubble=!0},e.stopImmediatePropagation=function(){e.cancelBubble=!0,e.cancelImmediate=!0},e.currentTarget=t,e.relatedTarget=e.fromElement||null,e.target=e.target||e.srcElement||t,e.timeStamp=(new Date).getTime(),e.clientX&&(e.pageX=e.clientX+document.documentElement.scrollLeft,e.pageY=e.clientY+document.documentElement.scrollTop);++s<a&&!e.cancelImmediate;)s in i&&-1!==r(o,n=i[s])&&"function"==typeof n&&n.call(t,e)},t._events[n].list=[],t.attachEvent&&t.attachEvent("on"+n,t._events[n])),t._events[n].list.push(o)},window.removeEventListener=Window.prototype.removeEventListener=Document.prototype.removeEventListener=Element.prototype.removeEventListener=function(){var t,e=this,n=arguments[0],o=arguments[1];e._events&&e._events[n]&&e._events[n].list&&-1!==(t=r(e._events[n].list,o))&&(e._events[n].list.splice(t,1),e._events[n].list.length||(e.detachEvent&&e.detachEvent("on"+n,e._events[n]),delete e._events[n]))},window.dispatchEvent=Window.prototype.dispatchEvent=Document.prototype.dispatchEvent=Element.prototype.dispatchEvent=function(t){if(!arguments.length)throw new Error("Not enough arguments");if(!t||"string"!=typeof t.type)throw new Error("DOM Events Exception 0");var e=this,n=t.type;try{if(!t.bubbles){t.cancelBubble=!0;var r=function(t){t.cancelBubble=!0,(e||window).detachEvent("on"+n,r)};this.attachEvent("on"+n,r)}this.fireEvent("on"+n,t)}catch(r){t.target=e;do{t.currentTarget=e,"_events"in e&&"function"==typeof e._events[n]&&e._events[n].call(e,t),"function"==typeof e["on"+n]&&e["on"+n].call(e,t),e=9===e.nodeType?e.parentWindow:e.parentNode}while(e&&!t.cancelBubble)}return!0},document.attachEvent("onreadystatechange",(function(){"complete"===document.readyState&&document.dispatchEvent(new Event("DOMContentLoaded",{bubbles:!0}))})))}function r(t,e){for(var n=-1,r=t.length;++n<r;)if(n in t&&t[n]===e)return n;return-1}}()}).call("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{});