Buscar

storage

Esta é uma pré-visualização de arquivo. Entre para ver o arquivo original

!function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[a]={exports:{}};t[a][0].call(f.exports,function(e){var n=t[a][1][e];return o(n?n:e)},f,f.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){!function(e,n){"undefined"!=typeof t&&t.exports?t.exports.browser=n():"function"==typeof define&&define.amd?define(n):this[e]=n()}("bowser",function(){function e(e){function n(t){var n=e.match(t);return n&&n.length>1&&n[1]||""}function r(t){var n=e.match(t);return n&&n.length>1&&n[2]||""}var o,i=n(/(ipod|iphone|ipad)/i).toLowerCase(),a=/like android/i.test(e),s=!a&&/android/i.test(e),u=n(/edge\/(\d+(\.\d+)?)/i),c=n(/version\/(\d+(\.\d+)?)/i),f=/tablet/i.test(e),l=!f&&/[^-]mobi/i.test(e);/opera|opr/i.test(e)?o={name:"Opera",opera:t,version:c||n(/(?:opera|opr)[\s\/](\d+(\.\d+)?)/i)}:/windows phone/i.test(e)?(o={name:"Windows Phone",windowsphone:t},u?(o.msedge=t,o.version=u):(o.msie=t,o.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?o={name:"Internet Explorer",msie:t,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:/chrome.+? edge/i.test(e)?o={name:"Microsoft Edge",msedge:t,version:u}:/chrome|crios|crmo/i.test(e)?o={name:"Chrome",chrome:t,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:i?(o={name:"iphone"==i?"iPhone":"ipad"==i?"iPad":"iPod"},c&&(o.version=c)):/sailfish/i.test(e)?o={name:"Sailfish",sailfish:t,version:n(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(e)?o={name:"SeaMonkey",seamonkey:t,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(e)?(o={name:"Firefox",firefox:t,version:n(/(?:firefox|iceweasel)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(e)&&(o.firefoxos=t)):/silk/i.test(e)?o={name:"Amazon Silk",silk:t,version:n(/silk\/(\d+(\.\d+)?)/i)}:s?o={name:"Android",version:c}:/phantom/i.test(e)?o={name:"PhantomJS",phantom:t,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(e)||/rim\stablet/i.test(e)?o={name:"BlackBerry",blackberry:t,version:c||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:/(web|hpw)os/i.test(e)?(o={name:"WebOS",webos:t,version:c||n(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(e)&&(o.touchpad=t)):o=/bada/i.test(e)?{name:"Bada",bada:t,version:n(/dolfin\/(\d+(\.\d+)?)/i)}:/tizen/i.test(e)?{name:"Tizen",tizen:t,version:n(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||c}:/safari/i.test(e)?{name:"Safari",safari:t,version:c}:{name:n(/^(.*)\/(.*) /),version:r(/^(.*)\/(.*) /)},!o.msedge&&/(apple)?webkit/i.test(e)?(o.name=o.name||"Webkit",o.webkit=t,!o.version&&c&&(o.version=c)):!o.opera&&/gecko\//i.test(e)&&(o.name=o.name||"Gecko",o.gecko=t,o.version=o.version||n(/gecko\/(\d+(\.\d+)?)/i)),o.msedge||!s&&!o.silk?i&&(o[i]=t,o.ios=t):o.android=t;var h="";o.windowsphone?h=n(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):i?(h=n(/os (\d+([_\s]\d+)*) like mac os x/i),h=h.replace(/[_\s]/g,".")):s?h=n(/android[ \/-](\d+(\.\d+)*)/i):o.webos?h=n(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):o.blackberry?h=n(/rim\stablet\sos\s(\d+(\.\d+)*)/i):o.bada?h=n(/bada\/(\d+(\.\d+)*)/i):o.tizen&&(h=n(/tizen[\/\s](\d+(\.\d+)*)/i)),h&&(o.osversion=h);var d=h.split(".")[0];return f||"ipad"==i||s&&(3==d||4==d&&!l)||o.silk?o.tablet=t:(l||"iphone"==i||"ipod"==i||s||o.blackberry||o.webos||o.bada)&&(o.mobile=t),o.msedge||o.msie&&o.version>=10||o.chrome&&o.version>=20||o.firefox&&o.version>=20||o.safari&&o.version>=6||o.opera&&o.version>=10||o.ios&&o.osversion&&o.osversion.split(".")[0]>=6||o.blackberry&&o.version>=10.1?o.a=t:o.msie&&o.version<10||o.chrome&&o.version<20||o.firefox&&o.version<20||o.safari&&o.version<6||o.opera&&o.version<10||o.ios&&o.osversion&&o.osversion.split(".")[0]<6?o.c=t:o.x=t,o}var t=!0,n=e("undefined"!=typeof navigator?navigator.userAgent:"");return n.test=function(e){for(var t=0;t<e.length;++t){var r=e[t];if("string"==typeof r&&r in n)return!0}return!1},n._detect=e,n})},{}],2:[function(e,t,n){(function(e){(function(){function r(e,t){function n(e){if(n[e]!==g)return n[e];var r;if("bug-string-char-index"==e)r="a"!="a"[0];else if("json"==e)r=n("json-stringify")&&n("json-parse");else{var i,s='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==e){var u=t.stringify,f="function"==typeof u&&w;if(f){(i=function(){return 1}).toJSON=i;try{f="0"===u(0)&&"0"===u(new o)&&'""'==u(new a)&&u(y)===g&&u(g)===g&&u()===g&&"1"===u(i)&&"[1]"==u([i])&&"[null]"==u([g])&&"null"==u(null)&&"[null,null,null]"==u([g,y,null])&&u({a:[i,!0,!1,null,"\0\b\n\f\r\t"]})==s&&"1"===u(null,i)&&"[\n 1,\n 2\n]"==u([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==u(new c((-864e13)))&&'"+275760-09-13T00:00:00.000Z"'==u(new c(864e13))&&'"-000001-01-01T00:00:00.000Z"'==u(new c((-621987552e5)))&&'"1969-12-31T23:59:59.999Z"'==u(new c((-1)))}catch(e){f=!1}}r=f}if("json-parse"==e){var l=t.parse;if("function"==typeof l)try{if(0===l("0")&&!l(!1)){i=l(s);var h=5==i.a.length&&1===i.a[0];if(h){try{h=!l('"\t"')}catch(e){}if(h)try{h=1!==l("01")}catch(e){}if(h)try{h=1!==l("1.")}catch(e){}}}}catch(e){h=!1}r=h}}return n[e]=!!r}e||(e=s.Object()),t||(t=s.Object());var o=e.Number||s.Number,a=e.String||s.String,u=e.Object||s.Object,c=e.Date||s.Date,f=e.SyntaxError||s.SyntaxError,l=e.TypeError||s.TypeError,h=e.Math||s.Math,d=e.JSON||s.JSON;"object"==typeof d&&d&&(t.stringify=d.stringify,t.parse=d.parse);var p,v,g,m=u.prototype,y=m.toString,w=new c((-0xc782b5b800cec));try{w=w.getUTCFullYear()==-109252&&0===w.getUTCMonth()&&1===w.getUTCDate()&&10==w.getUTCHours()&&37==w.getUTCMinutes()&&6==w.getUTCSeconds()&&708==w.getUTCMilliseconds()}catch(e){}if(!n("json")){var _="[object Function]",b="[object Date]",S="[object Number]",k="[object String]",E="[object Array]",C="[object Boolean]",T=n("bug-string-char-index");if(!w)var x=h.floor,I=[0,31,59,90,120,151,181,212,243,273,304,334],O=function(e,t){return I[t]+365*(e-1970)+x((e-1969+(t=+(t>1)))/4)-x((e-1901+t)/100)+x((e-1601+t)/400)};if((p=m.hasOwnProperty)||(p=function(e){var t,n={};return(n.__proto__=null,n.__proto__={toString:1},n).toString!=y?p=function(e){var t=this.__proto__,n=e in(this.__proto__=null,this);return this.__proto__=t,n}:(t=n.constructor,p=function(e){var n=(this.constructor||t).prototype;return e in this&&!(e in n&&this[e]===n[e])}),n=null,p.call(this,e)}),v=function(e,t){var n,r,o,a=0;(n=function(){this.valueOf=0}).prototype.valueOf=0,r=new n;for(o in r)p.call(r,o)&&a++;return n=r=null,a?v=2==a?function(e,t){var n,r={},o=y.call(e)==_;for(n in e)o&&"prototype"==n||p.call(r,n)||!(r[n]=1)||!p.call(e,n)||t(n)}:function(e,t){var n,r,o=y.call(e)==_;for(n in e)o&&"prototype"==n||!p.call(e,n)||(r="constructor"===n)||t(n);(r||p.call(e,n="constructor"))&&t(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],v=function(e,t){var n,o,a=y.call(e)==_,s=!a&&"function"!=typeof e.constructor&&i[typeof e.hasOwnProperty]&&e.hasOwnProperty||p;for(n in e)a&&"prototype"==n||!s.call(e,n)||t(n);for(o=r.length;n=r[--o];s.call(e,n)&&t(n));}),v(e,t)},!n("json-stringify")){var A={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},j="000000",L=function(e,t){return(j+(t||0)).slice(-e)},N="\\u00",D=function(e){for(var t='"',n=0,r=e.length,o=!T||r>10,i=o&&(T?e.split(""):e);n<r;n++){var a=e.charCodeAt(n);switch(a){case 8:case 9:case 10:case 12:case 13:case 34:case 92:t+=A[a];break;default:if(a<32){t+=N+L(2,a.toString(16));break}t+=o?i[n]:e.charAt(n)}}return t+'"'},R=function(e,t,n,r,o,i,a){var s,u,c,f,h,d,m,w,_,T,I,A,j,N,M,B;try{s=t[e]}catch(e){}if("object"==typeof s&&s)if(u=y.call(s),u!=b||p.call(s,"toJSON"))"function"==typeof s.toJSON&&(u!=S&&u!=k&&u!=E||p.call(s,"toJSON"))&&(s=s.toJSON(e));else if(s>-1/0&&s<1/0){if(O){for(h=x(s/864e5),c=x(h/365.2425)+1970-1;O(c+1,0)<=h;c++);for(f=x((h-O(c,0))/30.42);O(c,f+1)<=h;f++);h=1+h-O(c,f),d=(s%864e5+864e5)%864e5,m=x(d/36e5)%24,w=x(d/6e4)%60,_=x(d/1e3)%60,T=d%1e3}else c=s.getUTCFullYear(),f=s.getUTCMonth(),h=s.getUTCDate(),m=s.getUTCHours(),w=s.getUTCMinutes(),_=s.getUTCSeconds(),T=s.getUTCMilliseconds();s=(c<=0||c>=1e4?(c<0?"-":"+")+L(6,c<0?-c:c):L(4,c))+"-"+L(2,f+1)+"-"+L(2,h)+"T"+L(2,m)+":"+L(2,w)+":"+L(2,_)+"."+L(3,T)+"Z"}else
s=null;if(n&&(s=n.call(t,e,s)),null===s)return"null";if(u=y.call(s),u==C)return""+s;if(u==S)return s>-1/0&&s<1/0?""+s:"null";if(u==k)return D(""+s);if("object"==typeof s){for(N=a.length;N--;)if(a[N]===s)throw l();if(a.push(s),I=[],M=i,i+=o,u==E){for(j=0,N=s.length;j<N;j++)A=R(j,s,n,r,o,i,a),I.push(A===g?"null":A);B=I.length?o?"[\n"+i+I.join(",\n"+i)+"\n"+M+"]":"["+I.join(",")+"]":"[]"}else v(r||s,function(e){var t=R(e,s,n,r,o,i,a);t!==g&&I.push(D(e)+":"+(o?" ":"")+t)}),B=I.length?o?"{\n"+i+I.join(",\n"+i)+"\n"+M+"}":"{"+I.join(",")+"}":"{}";return a.pop(),B}};t.stringify=function(e,t,n){var r,o,a,s;if(i[typeof t]&&t)if((s=y.call(t))==_)o=t;else if(s==E){a={};for(var u,c=0,f=t.length;c<f;u=t[c++],s=y.call(u),(s==k||s==S)&&(a[u]=1));}if(n)if((s=y.call(n))==S){if((n-=n%1)>0)for(r="",n>10&&(n=10);r.length<n;r+=" ");}else s==k&&(r=n.length<=10?n:n.slice(0,10));return R("",(u={},u[""]=e,u),o,a,r,"",[])}}if(!n("json-parse")){var M,B,P=a.fromCharCode,U={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},F=function(){throw M=B=null,f()},z=function(){for(var e,t,n,r,o,i=B,a=i.length;M<a;)switch(o=i.charCodeAt(M)){case 9:case 10:case 13:case 32:M++;break;case 123:case 125:case 91:case 93:case 58:case 44:return e=T?i.charAt(M):i[M],M++,e;case 34:for(e="@",M++;M<a;)if(o=i.charCodeAt(M),o<32)F();else if(92==o)switch(o=i.charCodeAt(++M)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:e+=U[o],M++;break;case 117:for(t=++M,n=M+4;M<n;M++)o=i.charCodeAt(M),o>=48&&o<=57||o>=97&&o<=102||o>=65&&o<=70||F();e+=P("0x"+i.slice(t,M));break;default:F()}else{if(34==o)break;for(o=i.charCodeAt(M),t=M;o>=32&&92!=o&&34!=o;)o=i.charCodeAt(++M);e+=i.slice(t,M)}if(34==i.charCodeAt(M))return M++,e;F();default:if(t=M,45==o&&(r=!0,o=i.charCodeAt(++M)),o>=48&&o<=57){for(48==o&&(o=i.charCodeAt(M+1),o>=48&&o<=57)&&F(),r=!1;M<a&&(o=i.charCodeAt(M),o>=48&&o<=57);M++);if(46==i.charCodeAt(M)){for(n=++M;n<a&&(o=i.charCodeAt(n),o>=48&&o<=57);n++);n==M&&F(),M=n}if(o=i.charCodeAt(M),101==o||69==o){for(o=i.charCodeAt(++M),43!=o&&45!=o||M++,n=M;n<a&&(o=i.charCodeAt(n),o>=48&&o<=57);n++);n==M&&F(),M=n}return+i.slice(t,M)}if(r&&F(),"true"==i.slice(M,M+4))return M+=4,!0;if("false"==i.slice(M,M+5))return M+=5,!1;if("null"==i.slice(M,M+4))return M+=4,null;F()}return"$"},q=function(e){var t,n;if("$"==e&&F(),"string"==typeof e){if("@"==(T?e.charAt(0):e[0]))return e.slice(1);if("["==e){for(t=[];e=z(),"]"!=e;n||(n=!0))n&&(","==e?(e=z(),"]"==e&&F()):F()),","==e&&F(),t.push(q(e));return t}if("{"==e){for(t={};e=z(),"}"!=e;n||(n=!0))n&&(","==e?(e=z(),"}"==e&&F()):F()),","!=e&&"string"==typeof e&&"@"==(T?e.charAt(0):e[0])&&":"==z()||F(),t[e.slice(1)]=q(z());return t}F()}return e},W=function(e,t,n){var r=K(e,t,n);r===g?delete e[t]:e[t]=r},K=function(e,t,n){var r,o=e[t];if("object"==typeof o&&o)if(y.call(o)==E)for(r=o.length;r--;)W(o,r,n);else v(o,function(e){W(o,e,n)});return n.call(e,t,o)};t.parse=function(e,t){var n,r;return M=0,B=""+e,n=q(z()),"$"!=z()&&F(),M=B=null,t&&y.call(t)==_?K((r={},r[""]=n,r),"",t):n}}}return t.runInContext=r,t}var o="function"==typeof define&&define.amd,i={function:!0,object:!0},a=i[typeof n]&&n&&!n.nodeType&&n,s=i[typeof window]&&window||this,u=a&&i[typeof t]&&t&&!t.nodeType&&"object"==typeof e&&e;if(!u||u.global!==u&&u.window!==u&&u.self!==u||(s=u),a&&!o)r(s,a);else{var c=s.JSON,f=s.JSON3,l=!1,h=r(s,s.JSON3={noConflict:function(){return l||(l=!0,s.JSON=c,s.JSON3=f,c=f=null),h}});s.JSON={parse:h.parse,stringify:h.stringify}}o&&define(function(){return h})}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(e,t,n){"use strict";var r=function(e){var t,n={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};t.exports=r},{}],4:[function(e,t,n){(function(e,r,o){!function(){var t,n,o,i;!function(){var e={},r={};t=function(t,n,r){e[t]={deps:n,callback:r}},i=o=n=function(t){function o(e){if("."!==e.charAt(0))return e;for(var n=e.split("/"),r=t.split("/").slice(0,-1),o=0,i=n.length;o<i;o++){var a=n[o];if(".."===a)r.pop();else{if("."===a)continue;r.push(a)}}return r.join("/")}if(i._eak_seen=e,r[t])return r[t];if(r[t]={},!e[t])throw new Error("Could not find module "+t);for(var a,s=e[t],u=s.deps,c=s.callback,f=[],l=0,h=u.length;l<h;l++)"exports"===u[l]?f.push(a={}):f.push(n(o(u[l])));var d=c.apply(this,f);return r[t]=a||d}}(),t("promise/all",["./utils","exports"],function(e,t){"use strict";function n(e){var t=this;if(!r(e))throw new TypeError("You must pass an array to all.");return new t(function(t,n){function r(e){return function(t){i(e,t)}}function i(e,n){s[e]=n,0===--u&&t(s)}var a,s=[],u=e.length;0===u&&t([]);for(var c=0;c<e.length;c++)a=e[c],a&&o(a.then)?a.then(r(c),n):i(c,a)})}var r=e.isArray,o=e.isFunction;t.all=n}),t("promise/asap",["exports"],function(t){"use strict";function n(){return function(){e.nextTick(a)}}function o(){var e=0,t=new f(a),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function i(){return function(){l.setTimeout(a,1)}}function a(){for(var e=0;e<h.length;e++){var t=h[e],n=t[0],r=t[1];n(r)}h=[]}function s(e,t){var n=h.push([e,t]);1===n&&u()}var u,c="undefined"!=typeof window?window:{},f=c.MutationObserver||c.WebKitMutationObserver,l="undefined"!=typeof r?r:void 0===this?window:this,h=[];u="undefined"!=typeof e&&"[object process]"==={}.toString.call(e)?n():f?o():i(),t.asap=s}),t("promise/config",["exports"],function(e){"use strict";function t(e,t){return 2!==arguments.length?n[e]:void(n[e]=t)}var n={instrument:!1};e.config=n,e.configure=t}),t("promise/polyfill",["./promise","./utils","exports"],function(e,t,n){"use strict";function o(){var e;e="undefined"!=typeof r?r:"undefined"!=typeof window&&window.document?window:self;var t="Promise"in e&&"resolve"in e.Promise&&"reject"in e.Promise&&"all"in e.Promise&&"race"in e.Promise&&function(){var t;return new e.Promise(function(e){t=e}),a(t)}();t||(e.Promise=i)}var i=e.Promise,a=t.isFunction;n.polyfill=o}),t("promise/promise",["./config","./utils","./all","./race","./resolve","./reject","./asap","exports"],function(e,t,n,r,o,i,a,s){"use strict";function u(e){if(!b(e))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof u))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._subscribers=[],c(e,this)}function c(e,t){function n(e){p(t,e)}function r(e){g(t,e)}try{e(n,r)}catch(e){r(e)}}function f(e,t,n,r){var o,i,a,s,u=b(n);if(u)try{o=n(r),a=!0}catch(e){s=!0,i=e}else o=r,a=!0;d(t,o)||(u&&a?p(t,o):s?g(t,i):e===O?p(t,o):e===A&&g(t,o))}function l(e,t,n,r){var o=e._subscribers,i=o.length;o[i]=t,o[i+O]=n,o[i+A]=r}function h(e,t){for(var n,r,o=e._subscribers,i=e._detail,a=0;a<o.length;a+=3)n=o[a],r=o[a+t],f(t,n,r,i);e._subscribers=null}function d(e,t){var n,r=null;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(_(t)&&(r=t.then,b(r)))return r.call(t,function(r){return!!n||(n=!0,void(t!==r?p(e,r):v(e,r)))},function(t){return!!n||(n=!0,void g(e,t))}),!0}catch(t){return!!n||(g(e,t),!0)}return!1}function p(e,t){e===t?v(e,t):d(e,t)||v(e,t)}function v(e,t){e._state===x&&(e._state=I,e._detail=t,w.async(m,e))}function g(e,t){e._state===x&&(e._state=I,e._detail=t,w.async(y,e))}function m(e){h(e,e._state=O)}function y(e){h(e,e._state=A)}var w=e.config,_=(e.configure,t.objectOrFunction),b=t.isFunction,S=(t.now,n.all),k=r.race,E=o.resolve,C=i.reject,T=a.asap;w.async=T;var x=void 0,I=0,O=1,A=2;u.prototype={constructor:u,_state:void 0,_detail:void 0,_subscribers:void 0,then:function(e,t){var n=this,r=new this.constructor(function(){});if(this._state){var o=arguments;w.async(function(){f(n._state,r,o[n._state-1],n._detail)})}else l(this,r,e,t);return r},catch:function(e){return this.then(null,e)}},u.all=S,u.race=k,u.resolve=E,u.reject=C,s.Promise=u}),t("promise/race",["./utils","exports"],function(e,t){"use
strict";function n(e){var t=this;if(!r(e))throw new TypeError("You must pass an array to race.");return new t(function(t,n){for(var r,o=0;o<e.length;o++)r=e[o],r&&"function"==typeof r.then?r.then(t,n):t(r)})}var r=e.isArray;t.race=n}),t("promise/reject",["exports"],function(e){"use strict";function t(e){var t=this;return new t(function(t,n){n(e)})}e.reject=t}),t("promise/resolve",["exports"],function(e){"use strict";function t(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=this;return new t(function(t){t(e)})}e.resolve=t}),t("promise/utils",["exports"],function(e){"use strict";function t(e){return n(e)||"object"==typeof e&&null!==e}function n(e){return"function"==typeof e}function r(e){return"[object Array]"===Object.prototype.toString.call(e)}var o=Date.now||function(){return(new Date).getTime()};e.objectOrFunction=t,e.isFunction=n,e.isArray=r,e.now=o}),n("promise/polyfill").polyfill()}(),function(e,r){"object"==typeof n&&"object"==typeof t?t.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof n?n.localforage=r():e.localforage=r()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(e){function t(e,t){e[t]=function(){var n=arguments;return e.ready().then(function(){return e[t].apply(e,n)})}}function i(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(d(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}function a(e){for(var t in u)if(u.hasOwnProperty(t)&&u[t]===e)return!0;return!1}var s={},u={INDEXEDDB:"asyncStorage",LOCALSTORAGE:"localStorageWrapper",WEBSQL:"webSQLStorage"},c=[u.INDEXEDDB,u.WEBSQL,u.LOCALSTORAGE],f=["clear","getItem","iterate","key","keys","length","removeItem","setItem"],l={description:"",driver:c.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1},h=function(e){var t={};return t[u.INDEXEDDB]=!!function(){try{var t=t||e.indexedDB||e.webkitIndexedDB||e.mozIndexedDB||e.OIndexedDB||e.msIndexedDB;return!("undefined"!=typeof e.openDatabase&&e.navigator&&e.navigator.userAgent&&/Safari/.test(e.navigator.userAgent)&&!/Chrome/.test(e.navigator.userAgent))&&(t&&"function"==typeof t.open&&"undefined"!=typeof e.IDBKeyRange)}catch(e){return!1}}(),t[u.WEBSQL]=!!function(){try{return e.openDatabase}catch(e){return!1}}(),t[u.LOCALSTORAGE]=!!function(){try{return e.localStorage&&"setItem"in e.localStorage&&e.localStorage.setItem}catch(e){return!1}}(),t}(e),d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},p=function(){function e(t){r(this,e),this.INDEXEDDB=u.INDEXEDDB,this.LOCALSTORAGE=u.LOCALSTORAGE,this.WEBSQL=u.WEBSQL,this._defaultConfig=i({},l),this._config=i({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver)}return e.prototype.config=function(e){if("object"==typeof e){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e)"storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),this._config[t]=e[t];return"driver"in e&&e.driver&&this.setDriver(this._config.driver),!0}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new o(function(t,n){try{var r=e._driver,i=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver"),u=new Error("Custom driver name already in use: "+e._driver);if(!e._driver)return void n(i);if(a(e._driver))return void n(u);for(var c=f.concat("_initStorage"),l=0;l<c.length;l++){var d=c[l];if(!d||!e[d]||"function"!=typeof e[d])return void n(i)}var p=o.resolve(!0);"_support"in e&&(p=e._support&&"function"==typeof e._support?e._support():o.resolve(!!e._support)),p.then(function(n){h[r]=n,s[r]=e,t()},n)}catch(e){n(e)}});return r.then(t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,r){var i=this,u=function(){if(a(e))switch(e){case i.INDEXEDDB:return new o(function(e,t){e(n(1))});case i.LOCALSTORAGE:return new o(function(e,t){e(n(2))});case i.WEBSQL:return new o(function(e,t){e(n(4))})}else if(s[e])return o.resolve(s[e]);return o.reject(new Error("Driver not found."))}();return u.then(t,r),u},e.prototype.getSerializer=function(e){var t=new o(function(e,t){e(n(3))});return e&&"function"==typeof e&&t.then(function(t){e(t)}),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then(function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready});return n.then(e,e),n},e.prototype.setDriver=function(e,t,n){function r(){a._config.driver=a.driver()}function i(e){return function(){function t(){for(;n<e.length;){var i=e[n];return n++,a._dbInfo=null,a._ready=null,a.getDriver(i).then(function(e){return a._extend(e),r(),a._ready=a._initStorage(a._config),a._ready}).catch(t)}r();var s=new Error("No available storage method found.");return a._driverSet=o.reject(s),a._driverSet}var n=0;return t()}}var a=this;d(e)||(e=[e]);var s=this._getSupportedDrivers(e),u=null!==this._driverSet?this._driverSet.catch(function(){return o.resolve()}):o.resolve();return this._driverSet=u.then(function(){var e=s[0];return a._dbInfo=null,a._ready=null,a.getDriver(e).then(function(e){a._driver=e._driver,r(),a._wrapLibraryMethodsWithReady(),a._initDriver=i(s)})}).catch(function(){r();var e=new Error("No available storage method found.");return a._driverSet=o.reject(e),a._driverSet}),this._driverSet.then(t,n),this._driverSet},e.prototype.supports=function(e){return!!h[e]},e.prototype._extend=function(e){i(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var o=e[n];this.supports(o)&&t.push(o)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0;e<f.length;e++)t(this,f[e])},e.prototype.createInstance=function(t){return new e(t)},e}();return new p}("undefined"!=typeof window?window:self);t.default=i,e.exports=t.default},function(e,t){"use strict";t.__esModule=!0;var n=function(e){function t(t,n){t=t||[],n=n||{};try{return new Blob(t,n)}catch(a){if("TypeError"!==a.name)throw a;for(var r=e.BlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder||e.WebKitBlobBuilder,o=new r,i=0;i<t.length;i+=1)o.append(t[i]);return o.getBlob(n.type)}}function n(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),o=0;o<t;o++)r[o]=e.charCodeAt(o);return n}function r(e){return new o(function(t,n){var r=new XMLHttpRequest;r.open("GET",e),r.withCredentials=!0,r.responseType="arraybuffer",r.onreadystatechange=function(){if(4===r.readyState)return 200===r.status?t({response:r.response,type:r.getResponseHeader("Content-Type")}):void n({status:r.status,response:r.response})},r.send()})}function i(e){return new o(function(n,o){var i=t([""],{type:"image/png"}),a=e.transaction([A],"readwrite");a.objectStore(A).put(i,"key"),a.oncomplete=function(){var t=e.transaction([A],"readwrite"),i=t.objectStore(A).get("key");i.onerror=o,i.onsuccess=function(e){var t=e.target.result,o=URL.createObjectURL(t);r(o).then(function(e){n(!(!e||"image/png"!==e.type))},function(){n(!1)}).then(function(){URL.revokeObjectURL(o)})}},a.onerror=a.onabort=o}).catch(function(){return!1})}function a(e){return"boolean"==typeof I?o.resolve(I):i(e).then(function(e){return I=e})}function s(e){return new o(function(t,n){var r=new FileReader;r.onerror=n,r.onloadend=function(n){var r=btoa(n.target.result||"");t({__local_forage_encoded_blob:!0,data:r,type:e.type})},r.readAsBinaryString(e)})}function u(e){var r=n(atob(e.data));return t([r],{type:e.type})}function c(e){return e&&e.__local_forage_encoded_blob}function f(e){var t=this,n=t._initReady().then(function(){var e=O[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady});return
n.then(e,e),n}function l(e){var t=O[e.name],n={};n.promise=new o(function(e){n.resolve=e}),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then(function(){return n.promise}):t.dbReady=n.promise}function h(e){var t=O[e.name],n=t.deferredOperations.pop();n&&n.resolve()}function d(e){function t(){return o.resolve()}var n=this,r={db:null};if(e)for(var i in e)r[i]=e[i];O||(O={});var a=O[r.name];a||(a={forages:[],db:null,dbReady:null,deferredOperations:[]},O[r.name]=a),a.forages.push(n),n._initReady||(n._initReady=n.ready,n.ready=f);for(var s=[],u=0;u<a.forages.length;u++){var c=a.forages[u];c!==n&&s.push(c._initReady().catch(t))}var l=a.forages.slice(0);return o.all(s).then(function(){return r.db=a.db,p(r)}).then(function(e){return r.db=e,m(r,n._defaultConfig.version)?v(r):e}).then(function(e){r.db=a.db=e,n._dbInfo=r;for(var t=0;t<l.length;t++){var o=l[t];o!==n&&(o._dbInfo.db=r.db,o._dbInfo.version=r.version)}})}function p(e){return g(e,!1)}function v(e){return g(e,!0)}function g(t,n){return new o(function(r,o){if(t.db){if(!n)return r(t.db);l(t),t.db.close()}var i=[t.name];n&&i.push(t.version);var a=x.open.apply(x,i);n&&(a.onupgradeneeded=function(n){var r=a.result;try{r.createObjectStore(t.storeName),n.oldVersion<=1&&r.createObjectStore(A)}catch(r){if("ConstraintError"!==r.name)throw r;e.console.warn('The database "'+t.name+'" has been upgraded from version '+n.oldVersion+" to version "+n.newVersion+', but the storage "'+t.storeName+'" already exists.')}}),a.onerror=function(){o(a.error)},a.onsuccess=function(){r(a.result),h(t)}})}function m(t,n){if(!t.db)return!0;var r=!t.db.objectStoreNames.contains(t.storeName),o=t.version<t.db.version,i=t.version>t.db.version;if(o&&(t.version!==n&&e.console.warn('The database "'+t.name+"\" can't be downgraded from version "+t.db.version+" to version "+t.version+"."),t.version=t.db.version),i||r){if(r){var a=t.db.version+1;a>t.version&&(t.version=a)}return!0}return!1}function y(t,n){var r=this;"string"!=typeof t&&(e.console.warn(t+" used as a key, but it is not a string."),t=String(t));var i=new o(function(e,n){r.ready().then(function(){var o=r._dbInfo,i=o.db.transaction(o.storeName,"readonly").objectStore(o.storeName),a=i.get(t);a.onsuccess=function(){var t=a.result;void 0===t&&(t=null),c(t)&&(t=u(t)),e(t)},a.onerror=function(){n(a.error)}}).catch(n)});return T(i,n),i}function w(e,t){var n=this,r=new o(function(t,r){n.ready().then(function(){var o=n._dbInfo,i=o.db.transaction(o.storeName,"readonly").objectStore(o.storeName),a=i.openCursor(),s=1;a.onsuccess=function(){var n=a.result;if(n){var r=n.value;c(r)&&(r=u(r));var o=e(r,n.key,s++);void 0!==o?t(o):n.continue()}else t()},a.onerror=function(){r(a.error)}}).catch(r)});return T(r,t),r}function _(t,n,r){var i=this;"string"!=typeof t&&(e.console.warn(t+" used as a key, but it is not a string."),t=String(t));var u=new o(function(e,r){var o;i.ready().then(function(){return o=i._dbInfo,n instanceof Blob?a(o.db).then(function(e){return e?n:s(n)}):n}).then(function(n){var i=o.db.transaction(o.storeName,"readwrite"),a=i.objectStore(o.storeName);null===n&&(n=void 0),i.oncomplete=function(){void 0===n&&(n=null),e(n)},i.onabort=i.onerror=function(){var e=s.error?s.error:s.transaction.error;r(e)};var s=a.put(n,t)}).catch(r)});return T(u,r),u}function b(t,n){var r=this;"string"!=typeof t&&(e.console.warn(t+" used as a key, but it is not a string."),t=String(t));var i=new o(function(e,n){r.ready().then(function(){var o=r._dbInfo,i=o.db.transaction(o.storeName,"readwrite"),a=i.objectStore(o.storeName),s=a.delete(t);i.oncomplete=function(){e()},i.onerror=function(){n(s.error)},i.onabort=function(){var e=s.error?s.error:s.transaction.error;n(e)}}).catch(n)});return T(i,n),i}function S(e){var t=this,n=new o(function(e,n){t.ready().then(function(){var r=t._dbInfo,o=r.db.transaction(r.storeName,"readwrite"),i=o.objectStore(r.storeName),a=i.clear();o.oncomplete=function(){e()},o.onabort=o.onerror=function(){var e=a.error?a.error:a.transaction.error;n(e)}}).catch(n)});return T(n,e),n}function k(e){var t=this,n=new o(function(e,n){t.ready().then(function(){var r=t._dbInfo,o=r.db.transaction(r.storeName,"readonly").objectStore(r.storeName),i=o.count();i.onsuccess=function(){e(i.result)},i.onerror=function(){n(i.error)}}).catch(n)});return T(n,e),n}function E(e,t){var n=this,r=new o(function(t,r){return e<0?void t(null):void n.ready().then(function(){var o=n._dbInfo,i=o.db.transaction(o.storeName,"readonly").objectStore(o.storeName),a=!1,s=i.openCursor();s.onsuccess=function(){var n=s.result;return n?void(0===e?t(n.key):a?t(n.key):(a=!0,n.advance(e))):void t(null)},s.onerror=function(){r(s.error)}}).catch(r)});return T(r,t),r}function C(e){var t=this,n=new o(function(e,n){t.ready().then(function(){var r=t._dbInfo,o=r.db.transaction(r.storeName,"readonly").objectStore(r.storeName),i=o.openCursor(),a=[];i.onsuccess=function(){var t=i.result;return t?(a.push(t.key),void t.continue()):void e(a)},i.onerror=function(){n(i.error)}}).catch(n)});return T(n,e),n}function T(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}var x=x||e.indexedDB||e.webkitIndexedDB||e.mozIndexedDB||e.OIndexedDB||e.msIndexedDB;if(x){var I,O,A="local-forage-detect-blob-support",j={_driver:"asyncStorage",_initStorage:d,iterate:w,getItem:y,setItem:_,removeItem:b,clear:S,length:k,key:E,keys:C};return j}}("undefined"!=typeof window?window:self);t.default=n,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){function t(e){var t=this,r={};if(e)for(var i in e)r[i]=e[i];return r.keyPrefix=r.name+"/",r.storeName!==t._defaultConfig.storeName&&(r.keyPrefix+=r.storeName+"/"),t._dbInfo=r,new o(function(e,t){e(n(3))}).then(function(e){return r.serializer=e,o.resolve()})}function r(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo.keyPrefix,n=d.length-1;n>=0;n--){var r=d.key(n);0===r.indexOf(e)&&d.removeItem(r)}});return h(n,e),n}function i(t,n){var r=this;"string"!=typeof t&&(e.console.warn(t+" used as a key, but it is not a string."),t=String(t));var o=r.ready().then(function(){var e=r._dbInfo,n=d.getItem(e.keyPrefix+t);return n&&(n=e.serializer.deserialize(n)),n});return h(o,n),o}function a(e,t){var n=this,r=n.ready().then(function(){for(var t=n._dbInfo,r=t.keyPrefix,o=r.length,i=d.length,a=1,s=0;s<i;s++){var u=d.key(s);if(0===u.indexOf(r)){var c=d.getItem(u);if(c&&(c=t.serializer.deserialize(c)),c=e(c,u.substring(o),a++),void 0!==c)return c}}});return h(r,t),r}function s(e,t){var n=this,r=n.ready().then(function(){var t,r=n._dbInfo;try{t=d.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t});return h(r,t),r}function u(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo,n=d.length,r=[],o=0;o<n;o++)0===d.key(o).indexOf(e.keyPrefix)&&r.push(d.key(o).substring(e.keyPrefix.length));return r});return h(n,e),n}function c(e){var t=this,n=t.keys().then(function(e){return e.length});return h(n,e),n}function f(t,n){var r=this;"string"!=typeof t&&(e.console.warn(t+" used as a key, but it is not a string."),t=String(t));var o=r.ready().then(function(){var e=r._dbInfo;d.removeItem(e.keyPrefix+t)});return h(o,n),o}function l(t,n,r){var i=this;"string"!=typeof t&&(e.console.warn(t+" used as a key, but it is not a string."),t=String(t));var a=i.ready().then(function(){void 0===n&&(n=null);var e=n;return new o(function(r,o){var a=i._dbInfo;a.serializer.serialize(n,function(n,i){if(i)o(i);else try{d.setItem(a.keyPrefix+t,n),r(e)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||o(e),
o(e)}})})});return h(a,r),a}function h(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}var d=null;try{if(!(e.localStorage&&"setItem"in e.localStorage))return;d=e.localStorage}catch(e){return}var p={_driver:"localStorageWrapper",_initStorage:t,iterate:a,getItem:i,setItem:l,removeItem:f,clear:r,length:c,key:s,keys:u};return p}("undefined"!=typeof window?window:self);t.default=r,e.exports=t.default},function(e,t){"use strict";t.__esModule=!0;var n=function(e){function t(t,n){t=t||[],n=n||{};try{return
new Blob(t,n)}catch(a){if("TypeError"!==a.name)throw a;for(var r=e.BlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder||e.WebKitBlobBuilder,o=new r,i=0;i<t.length;i+=1)o.append(t[i]);return o.getBlob(n.type)}}function n(e,t){var n="";if(e&&(n=e.toString()),e&&("[object ArrayBuffer]"===e.toString()||e.buffer&&"[object ArrayBuffer]"===e.buffer.toString())){var r,o=c;e instanceof ArrayBuffer?(r=e,o+=l):(r=e.buffer,"[object Int8Array]"===n?o+=d:"[object Uint8Array]"===n?o+=p:"[object Uint8ClampedArray]"===n?o+=v:"[object Int16Array]"===n?o+=g:"[object Uint16Array]"===n?o+=y:"[object Int32Array]"===n?o+=m:"[object Uint32Array]"===n?o+=w:"[object Float32Array]"===n?o+=_:"[object Float64Array]"===n?o+=b:t(new Error("Failed to get type for BinaryArray"))),t(o+i(r))}else if("[object Blob]"===n){var a=new FileReader;a.onload=function(){var n=s+e.type+"~"+i(this.result);t(c+h+n)},a.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into a JSON string: ",e),t(null,n)}}function r(e){if(e.substring(0,f)!==c)return JSON.parse(e);var n,r=e.substring(S),i=e.substring(f,S);if(i===h&&u.test(r)){var a=r.match(u);n=a[1],r=r.substring(a[0].length)}var s=o(r);switch(i){case l:return s;case h:return t([s],{type:n});case d:return new Int8Array(s);case p:return new Uint8Array(s);case v:return new Uint8ClampedArray(s);case g:return new Int16Array(s);case y:return new Uint16Array(s);case m:return new Int32Array(s);case w:return new Uint32Array(s);case _:return new Float32Array(s);case b:return new Float64Array(s);default:throw new Error("Unkown type: "+i)}}function o(e){var t,n,r,o,i,s=.75*e.length,u=e.length,c=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var f=new ArrayBuffer(s),l=new Uint8Array(f);for(t=0;t<u;t+=4)n=a.indexOf(e[t]),r=a.indexOf(e[t+1]),o=a.indexOf(e[t+2]),i=a.indexOf(e[t+3]),l[c++]=n<<2|r>>4,l[c++]=(15&r)<<4|o>>2,l[c++]=(3&o)<<6|63&i;return f}function i(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=a[n[t]>>2],r+=a[(3&n[t])<<4|n[t+1]>>4],r+=a[(15&n[t+1])<<2|n[t+2]>>6],r+=a[63&n[t+2]];return n.length%3===2?r=r.substring(0,r.length-1)+"=":n.length%3===1&&(r=r.substring(0,r.length-2)+"=="),r}var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s="~~local_forage_type~",u=/^~~local_forage_type~([^~]+)~/,c="__lfsc__:",f=c.length,l="arbf",h="blob",d="si08",p="ui08",v="uic8",g="si16",m="si32",y="ur16",w="ui32",_="fl32",b="fl64",S=f+l.length,k={serialize:n,deserialize:r,stringToBuffer:o,bufferToString:i};return k}("undefined"!=typeof window?window:self);t.default=n,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){function t(e){var t=this,r={db:null};if(e)for(var i in e)r[i]="string"!=typeof e[i]?e[i].toString():e[i];var a=new o(function(e,n){try{r.db=d(r.name,String(r.version),r.description,r.size)}catch(e){return n(e)}r.db.transaction(function(o){o.executeSql("CREATE TABLE IF NOT EXISTS "+r.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){t._dbInfo=r,e()},function(e,t){n(t)})})});return new o(function(e,t){e(n(3))}).then(function(e){return r.serializer=e,a})}function r(t,n){var r=this;"string"!=typeof t&&(e.console.warn(t+" used as a key, but it is not a string."),t=String(t));var i=new o(function(e,n){r.ready().then(function(){var o=r._dbInfo;o.db.transaction(function(r){r.executeSql("SELECT * FROM "+o.storeName+" WHERE key = ? LIMIT 1",[t],function(t,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=o.serializer.deserialize(r)),e(r)},function(e,t){n(t)})})}).catch(n)});return h(i,n),i}function i(e,t){var n=this,r=new o(function(t,r){n.ready().then(function(){var o=n._dbInfo;o.db.transaction(function(n){n.executeSql("SELECT * FROM "+o.storeName,[],function(n,r){for(var i=r.rows,a=i.length,s=0;s<a;s++){var u=i.item(s),c=u.value;if(c&&(c=o.serializer.deserialize(c)),c=e(c,u.key,s+1),void 0!==c)return void t(c)}t()},function(e,t){r(t)})})}).catch(r)});return h(r,t),r}function a(t,n,r){var i=this;"string"!=typeof t&&(e.console.warn(t+" used as a key, but it is not a string."),t=String(t));var a=new o(function(e,r){i.ready().then(function(){void 0===n&&(n=null);var o=n,a=i._dbInfo;a.serializer.serialize(n,function(n,i){i?r(i):a.db.transaction(function(i){i.executeSql("INSERT OR REPLACE INTO "+a.storeName+" (key, value) VALUES (?, ?)",[t,n],function(){e(o)},function(e,t){r(t)})},function(e){e.code===e.QUOTA_ERR&&r(e)})})}).catch(r)});return h(a,r),a}function s(t,n){var r=this;"string"!=typeof t&&(e.console.warn(t+" used as a key, but it is not a string."),t=String(t));var i=new o(function(e,n){r.ready().then(function(){var o=r._dbInfo;o.db.transaction(function(r){r.executeSql("DELETE FROM "+o.storeName+" WHERE key = ?",[t],function(){e()},function(e,t){n(t)})})}).catch(n)});return h(i,n),i}function u(e){var t=this,n=new o(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){t.executeSql("DELETE FROM "+r.storeName,[],function(){e()},function(e,t){n(t)})})}).catch(n)});return h(n,e),n}function c(e){var t=this,n=new o(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){t.executeSql("SELECT COUNT(key) as c FROM "+r.storeName,[],function(t,n){var r=n.rows.item(0).c;e(r)},function(e,t){n(t)})})}).catch(n)});return h(n,e),n}function f(e,t){var n=this,r=new o(function(t,r){n.ready().then(function(){var o=n._dbInfo;o.db.transaction(function(n){n.executeSql("SELECT key FROM "+o.storeName+" WHERE id = ? LIMIT 1",[e+1],function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)},function(e,t){r(t)})})}).catch(r)});return h(r,t),r}function l(e){var t=this,n=new o(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){t.executeSql("SELECT key FROM "+r.storeName,[],function(t,n){for(var r=[],o=0;o<n.rows.length;o++)r.push(n.rows.item(o).key);e(r)},function(e,t){n(t)})})}).catch(n)});return h(n,e),n}function h(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}var d=e.openDatabase;if(d){var p={_driver:"webSQLStorage",_initStorage:t,iterate:i,getItem:r,setItem:a,removeItem:s,clear:u,length:c,key:f,keys:l};return p}}("undefined"!=typeof window?window:self);t.default=r,e.exports=t.default}])})}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("promise"))},{_process:8,promise:7}],5:[function(e,t,n){(function(e,n){function r(){for(;i.next;){i=i.next;var e=i.task;i.task=void 0;var t=i.domain;t&&(i.domain=void 0,t.enter());try{e()}catch(e){if(c)throw t&&t.exit(),setTimeout(r,0),t&&t.enter(),e;setTimeout(function(){throw e},0)}t&&t.exit()}s=!1}function o(t){a=a.next={task:t,domain:c&&e.domain,next:null},s||(s=!0,u())}var i={task:void 0,next:null},a=i,s=!1,u=void 0,c=!1;if("undefined"!=typeof e&&e.nextTick)c=!0,u=function(){e.nextTick(r)};else if("function"==typeof n)u="undefined"!=typeof window?n.bind(window,r):function(){n(r)};else if("undefined"!=typeof MessageChannel){var f=new MessageChannel;f.port1.onmessage=r,u=function(){f.port2.postMessage(0)}}else u=function(){setTimeout(r,0)};t.exports=o}).call(this,e("_process"),e("timers").setTimeout)},{_process:8,timers:13}],6:[function(e,t,n){"use strict";function r(e){function t(e){return null===c?void l.push(e):void a(function(){var t=c?e.onFulfilled:e.onRejected;if(null===t)return void(c?e.resolve:e.reject)(f);var n;try{n=t(f)}catch(t){return void e.reject(t)}e.resolve(n)})}function n(e){try{if(e===h)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if("function"==typeof t)return void i(t.bind(e),n,s)}c=!0,f=e,u()}catch(e){s(e)}}function s(e){c=!1,f=e,u()}function u(){for(var e=0,n=l.length;e<n;e++)t(l[e]);l=null}if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");var c=null,f=null,l=[],h=this;this.then=function(e,n){return new r(function(r,i){t(new o(e,n,r,i))})},i(e,n,s)}function o(e,t,n,r){this.onFulfilled="function"==typeof
e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r}function i(e,t,n){var r=!1;try{e(function(e){r||(r=!0,t(e))},function(e){r||(r=!0,n(e))})}catch(e){if(r)return;r=!0,n(e)}}var a=e("asap");t.exports=r},{asap:5}],7:[function(e,t,n){"use strict";function r(e){this.then=function(t){return"function"!=typeof t?this:new o(function(n,r){i(function(){try{n(t(e))}catch(e){r(e)}})})}}var o=e("./core.js"),i=e("asap");t.exports=o,r.prototype=Object.create(o.prototype);var a=new r((!0)),s=new r((!1)),u=new r(null),c=new r((void 0)),f=new r(0),l=new r("");o.resolve=function(e){if(e instanceof o)return e;if(null===e)return u;if(void 0===e)return c;if(e===!0)return a;if(e===!1)return s;if(0===e)return f;if(""===e)return l;if("object"==typeof e||"function"==typeof e)try{var t=e.then;if("function"==typeof t)return new o(t.bind(e))}catch(e){return new o(function(t,n){n(e)})}return new r(e)},o.from=o.cast=function(e){var t=new Error("Promise.from and Promise.cast are deprecated, use Promise.resolve instead");return t.name="Warning",console.warn(t.stack),o.resolve(e)},o.denodeify=function(e,t){return t=t||1/0,function(){var n=this,r=Array.prototype.slice.call(arguments);return new o(function(o,i){for(;r.length&&r.length>t;)r.pop();r.push(function(e,t){e?i(e):o(t)}),e.apply(n,r)})}},o.nodeify=function(e){return function(){var t=Array.prototype.slice.call(arguments),n="function"==typeof t[t.length-1]?t.pop():null;try{return e.apply(this,arguments).nodeify(n)}catch(e){if(null===n||"undefined"==typeof n)return new o(function(t,n){n(e)});i(function(){n(e)})}}},o.all=function(){var e=1===arguments.length&&Array.isArray(arguments[0]),t=Array.prototype.slice.call(e?arguments[0]:arguments);if(!e){var n=new Error("Promise.all should be called with a single array, calling it with multiple arguments is deprecated");n.name="Warning",console.warn(n.stack)}return new o(function(e,n){function r(i,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(e){r(i,e)},n)}t[i]=a,0===--o&&e(t)}catch(e){n(e)}}if(0===t.length)return e([]);for(var o=t.length,i=0;i<t.length;i++)r(i,t[i])})},o.reject=function(e){return new o(function(t,n){n(e)})},o.race=function(e){return new o(function(t,n){e.forEach(function(e){o.resolve(e).then(t,n)})})},o.prototype.done=function(e,t){var n=arguments.length?this.then.apply(this,arguments):this;n.then(null,function(e){i(function(){throw e})})},o.prototype.nodeify=function(e){return"function"!=typeof e?this:void this.then(function(t){i(function(){e(null,t)})},function(t){i(function(){e(t)})})},o.prototype.catch=function(e){return this.then(null,e)}},{"./core.js":6,asap:5}],8:[function(e,t,n){function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(l===setTimeout)return setTimeout(e,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function a(e){if(h===clearTimeout)return clearTimeout(e);if((h===o||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(e);try{return h(e)}catch(t){try{return h.call(null,e)}catch(t){return h.call(this,e)}}}function s(){g&&p&&(g=!1,p.length?v=p.concat(v):m=-1,v.length&&u())}function u(){if(!g){var e=i(s);g=!0;for(var t=v.length;t;){for(p=v,v=[];++m<t;)p&&p[m].run();m=-1,t=v.length}p=null,g=!1,a(e)}}function c(e,t){this.fun=e,this.array=t}function f(){}var l,h,d=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:r}catch(e){l=r}try{h="function"==typeof clearTimeout?clearTimeout:o}catch(e){h=o}}();var p,v=[],g=!1,m=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];v.push(new c(e,t)),1!==v.length||g||i(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=f,d.addListener=f,d.once=f,d.off=f,d.removeListener=f,d.removeAllListeners=f,d.emit=f,d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],9:[function(e,t,n){(function(e){!function(r){function o(e){throw new RangeError(N[e])}function i(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function a(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(L,".");var o=e.split("."),a=i(o,t).join(".");return r+a}function s(e){for(var t,n,r=[],o=0,i=e.length;o<i;)t=e.charCodeAt(o++),t>=55296&&t<=56319&&o<i?(n=e.charCodeAt(o++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--)):r.push(t);return r}function u(e){return i(e,function(e){var t="";return e>65535&&(e-=65536,t+=M(e>>>10&1023|55296),e=56320|1023&e),t+=M(e)}).join("")}function c(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:S}function f(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function l(e,t,n){var r=0;for(e=n?R(e/T):e>>1,e+=R(e/t);e>D*E>>1;r+=S)e=R(e/D);return R(r+(D+1)*e/(e+C))}function h(e){var t,n,r,i,a,s,f,h,d,p,v=[],g=e.length,m=0,y=I,w=x;for(n=e.lastIndexOf(O),n<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&o("not-basic"),v.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<g;){for(a=m,s=1,f=S;i>=g&&o("invalid-input"),h=c(e.charCodeAt(i++)),(h>=S||h>R((b-m)/s))&&o("overflow"),m+=h*s,d=f<=w?k:f>=w+E?E:f-w,!(h<d);f+=S)p=S-d,s>R(b/p)&&o("overflow"),s*=p;t=v.length+1,w=l(m-a,t,0==a),R(m/t)>b-y&&o("overflow"),y+=R(m/t),m%=t,v.splice(m++,0,y)}return u(v)}function d(e){var t,n,r,i,a,u,c,h,d,p,v,g,m,y,w,_=[];for(e=s(e),g=e.length,t=I,n=0,a=x,u=0;u<g;++u)v=e[u],v<128&&_.push(M(v));for(r=i=_.length,i&&_.push(O);r<g;){for(c=b,u=0;u<g;++u)v=e[u],v>=t&&v<c&&(c=v);for(m=r+1,c-t>R((b-n)/m)&&o("overflow"),n+=(c-t)*m,t=c,u=0;u<g;++u)if(v=e[u],v<t&&++n>b&&o("overflow"),v==t){for(h=n,d=S;p=d<=a?k:d>=a+E?E:d-a,!(h<p);d+=S)w=h-p,y=S-p,_.push(M(f(p+w%y,0))),h=R(w/y);_.push(M(f(h,0))),a=l(n,m,r==i),n=0,++r}++n,++t}return _.join("")}function p(e){return a(e,function(e){return A.test(e)?h(e.slice(4).toLowerCase()):e})}function v(e){return a(e,function(e){return j.test(e)?"xn--"+d(e):e})}var g="object"==typeof n&&n&&!n.nodeType&&n,m="object"==typeof t&&t&&!t.nodeType&&t,y="object"==typeof e&&e;y.global!==y&&y.window!==y&&y.self!==y||(r=y);var w,_,b=2147483647,S=36,k=1,E=26,C=38,T=700,x=72,I=128,O="-",A=/^xn--/,j=/[^\x20-\x7E]/,L=/[\x2E\u3002\uFF0E\uFF61]/g,N={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},D=S-k,R=Math.floor,M=String.fromCharCode;if(w={version:"1.4.1",ucs2:{decode:s,encode:u},decode:h,encode:d,toASCII:v,toUnicode:p},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return w});else if(g&&m)if(t.exports==g)m.exports=w;else for(_ in w)w.hasOwnProperty(_)&&(g[_]=w[_]);else r.punycode=w}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],10:[function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;i&&"number"==typeof i.maxKeys&&(u=i.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var f=0;f<c;++f){var l,h,d,p,v=e[f].replace(s,"%20"),g=v.indexOf(n);g>=0?(l=v.substr(0,g),h=v.substr(g+1)):(l=v,h=""),d=decodeURIComponent(l),p=decodeURIComponent(h),r(a,d)?o(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],11:[function(e,t,n){"use strict";function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var o=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return
isFinite(e)?e:"";default:return""}};t.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?r(a(e),function(a){var s=encodeURIComponent(o(a))+n;return i(e[a])?r(e[a],function(e){return s+encodeURIComponent(o(e))}).join(t):s+encodeURIComponent(o(e[a]))}).join(t):s?encodeURIComponent(o(s))+n+encodeURIComponent(o(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},{}],12:[function(e,t,n){"use strict";n.decode=n.parse=e("./decode"),n.encode=n.stringify=e("./encode")},{"./decode":10,"./encode":11}],13:[function(e,t,n){(function(t){function r(e,t){this._id=e,this._clearFn=t}var o=e("process/browser.js").nextTick,i=Function.prototype.apply,a=Array.prototype.slice,s={},u=0;n.setTimeout=function(){return new r(i.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new r(i.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n.setImmediate="function"==typeof t?t:function(e){var t=u++,r=!(arguments.length<2)&&a.call(arguments,1);return s[t]=!0,o(function(){s[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))}),t},n.clearImmediate="function"==typeof clearImmediate?clearImmediate:function(e){delete s[e]}}).call(this,e("timers").setTimeout)},{"process/browser.js":8,timers:13}],14:[function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function o(e,t,n){if(e&&c.isObject(e)&&e instanceof r)return e;var o=new r;return o.parse(e,t,n),o}function i(e){return c.isString(e)&&(e=o(e)),e instanceof r?e.format():r.prototype.format.call(e)}function a(e,t){return o(e,!1,!0).resolve(t)}function s(e,t){return e?o(e,!1,!0).resolveObject(t):t}var u=e("punycode"),c=e("./util");n.parse=o,n.resolve=a,n.resolveObject=s,n.format=i,n.Url=r;var f=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,h=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["<",">",'"',"`"," ","\r","\n","\t"],p=["{","}","|","\\","^","`"].concat(d),v=["'"].concat(p),g=["%","/","?",";","#"].concat(v),m=["/","?","#"],y=255,w=/^[+a-z0-9A-Z_-]{0,63}$/,_=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},S={javascript:!0,"javascript:":!0},k={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},E=e("querystring");r.prototype.parse=function(e,t,n){if(!c.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=r!==-1&&r<e.indexOf("#")?"?":"#",i=e.split(o),a=/\\/g;i[0]=i[0].replace(a,"/"),e=i.join(o);var s=e;if(s=s.trim(),!n&&1===e.split("#").length){var l=h.exec(s);if(l)return this.path=s,this.href=s,this.pathname=l[1],l[2]?(this.search=l[2],t?this.query=E.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var d=f.exec(s);if(d){d=d[0];var p=d.toLowerCase();this.protocol=p,s=s.substr(d.length)}if(n||d||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var C="//"===s.substr(0,2);!C||d&&S[d]||(s=s.substr(2),this.slashes=!0)}if(!S[d]&&(C||d&&!k[d])){for(var T=-1,x=0;x<m.length;x++){var I=s.indexOf(m[x]);I!==-1&&(T===-1||I<T)&&(T=I)}var O,A;A=T===-1?s.lastIndexOf("@"):s.lastIndexOf("@",T),A!==-1&&(O=s.slice(0,A),s=s.slice(A+1),this.auth=decodeURIComponent(O)),T=-1;for(var x=0;x<g.length;x++){var I=s.indexOf(g[x]);I!==-1&&(T===-1||I<T)&&(T=I)}T===-1&&(T=s.length),this.host=s.slice(0,T),s=s.slice(T),this.parseHost(),this.hostname=this.hostname||"";var j="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!j)for(var L=this.hostname.split(/\./),x=0,N=L.length;x<N;x++){var D=L[x];if(D&&!D.match(w)){for(var R="",M=0,B=D.length;M<B;M++)R+=D.charCodeAt(M)>127?"x":D[M];if(!R.match(w)){var P=L.slice(0,x),U=L.slice(x+1),F=D.match(_);F&&(P.push(F[1]),U.unshift(F[2])),U.length&&(s="/"+U.join(".")+s),this.hostname=P.join(".");break}}}this.hostname.length>y?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=u.toASCII(this.hostname));var z=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+z,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!b[p])for(var x=0,N=v.length;x<N;x++){var W=v[x];if(s.indexOf(W)!==-1){var K=encodeURIComponent(W);K===W&&(K=escape(W)),s=s.split(W).join(K)}}var G=s.indexOf("#");G!==-1&&(this.hash=s.substr(G),s=s.slice(0,G));var H=s.indexOf("?");if(H!==-1?(this.search=s.substr(H),this.query=s.substr(H+1),t&&(this.query=E.parse(this.query)),s=s.slice(0,H)):t&&(this.search="",this.query={}),s&&(this.pathname=s),k[p]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var z=this.pathname||"",J=this.search||"";this.path=z+J}return this.href=this.format(),this},r.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&c.isObject(this.query)&&Object.keys(this.query).length&&(i=E.stringify(this.query));var a=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||k[t])&&o!==!1?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),a=a.replace("#","%23"),t+o+n+a+r},r.prototype.resolve=function(e){return this.resolveObject(o(e,!1,!0)).format()},r.prototype.resolveObject=function(e){if(c.isString(e)){var t=new r;t.parse(e,!1,!0),e=t}for(var n=new r,o=Object.keys(this),i=0;i<o.length;i++){var a=o[i];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),u=0;u<s.length;u++){var f=s[u];"protocol"!==f&&(n[f]=e[f])}return k[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!k[e.protocol]){for(var l=Object.keys(e),h=0;h<l.length;h++){var d=l[h];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||S[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var v=n.pathname||"",g=n.search||"";n.path=v+g}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var m=n.pathname&&"/"===n.pathname.charAt(0),y=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=y||m||n.host&&e.pathname,_=w,b=n.pathname&&n.pathname.split("/")||[],p=e.pathname&&e.pathname.split("/")||[],E=n.protocol&&!k[n.protocol];if(E&&(n.hostname="",n.port=null,n.host&&(""===b[0]?b[0]=n.host:b.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),w=w&&(""===p[0]||""===b[0])),y)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,b=p;else if(p.length)b||(b=[]),b.pop(),b=b.concat(p),n.search=e.search,n.query=e.query;else if(!c.isNullOrUndefined(e.search)){if(E){n.hostname=n.host=b.shift();var
C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");C&&(n.auth=C.shift(),n.host=n.hostname=C.shift())}return n.search=e.search,n.query=e.query,c.isNull(n.pathname)&&c.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!b.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=b.slice(-1)[0],x=(n.host||e.host||b.length>1)&&("."===T||".."===T)||""===T,I=0,O=b.length;O>=0;O--)T=b[O],"."===T?b.splice(O,1):".."===T?(b.splice(O,1),I++):I&&(b.splice(O,1),I--);if(!w&&!_)for(;I--;I)b.unshift("..");!w||""===b[0]||b[0]&&"/"===b[0].charAt(0)||b.unshift(""),x&&"/"!==b.join("/").substr(-1)&&b.push("");var A=""===b[0]||b[0]&&"/"===b[0].charAt(0);if(E){n.hostname=n.host=A?"":b.length?b.shift():"";var C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");C&&(n.auth=C.shift(),n.host=n.hostname=C.shift())}return w=w||n.host&&b.length,w&&!A&&b.unshift(""),b.length?n.pathname=b.join("/"):(n.pathname=null,n.path=null),c.isNull(n.pathname)&&c.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var e=this.host,t=l.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":15,punycode:9,querystring:12}],15:[function(e,t,n){"use strict";t.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],16:[function(e,t,n){(function(n,r){var o,i,a,s;s=e("url"),i=100,a={OLARK_HOST:function(e){var t;return/^https?:\/\//.test(e)||(e="http://"+e),t=s.parse(e).host,/\.olark\.net(\:\d+)?$/.test(t)||(t=null),t},OLARK_DEBUG:function(e){return"true"===e||e===!0||"false"!==e&&e!==!1&&void 0}},o=function(){function e(e){null==e&&(e={}),this._localStorage=e.localStorage||r.localStorage,this._logger=e.logger||("undefined"!=typeof window&&null!==window?window.console:void 0),this._olark=e.olark||("undefined"!=typeof window&&null!==window?window.olark:void 0),this._processEnv=e.processEnv||n.env,(e.document||"undefined"!=typeof document&&null!==document)&&(this._document=e.document||document)}return e.prototype.getOlarkHost=function(){var e,t,n,r,o;n=null!=(r=this._olark)&&null!=(o=r._)?o.l:void 0,null!=n&&(/^https?:\/\//.test(n)||(n="http://"+n));try{t=s.parse(n).host}catch(n){e=n,t=null}return this.get("OLARK_HOST")||this._processEnv.HOST||t||"static.olark.com"},e.prototype.get=function(e){var t,n;if(t=a[e])return n=this._getKeyFromQuery(e),n=null!=n?n:this._getKeyFromStorage(e),n&&(n=t(n)),this._cacheOrRemoveValue(e,n),n},e.prototype._getKeyFromQuery=function(e){var t,n,r;if(this._document)return r=null,t=new RegExp(e+"=([^&]*)"),n=this._document.location.search.match(t),n&&(r=this._convertValue(n[1])),r},e.prototype._getKeyFromStorage=function(e){var t;return null!=(t=this._localStorage)?t.getItem(e):void 0},e.prototype._cacheOrRemoveValue=function(e,t){var n,r,o;return null!=t?(t.length>i&&(null!=(n=this._logger)&&n.warn("environment variable cannot exceed "+i+" bytes, trimming value"),t=t.toString().slice(0,i)),null!=(r=this._localStorage)?r.setItem(e,t):void 0):null!=(o=this._localStorage)?o.removeItem(e):void 0},e.prototype._convertValue=function(e){return/^(true|false)$/.test(e)&&(e="true"===e),/^null$/.test(e)&&(e=null),e},e}(),t.exports=o}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:8,url:14}],17:[function(e,t,n){(function(e){var n,r,o;o=function(e){var t,n;try{return e.location.origin||(n=e.location.port,e.location.origin=e.location.protocol+"//"+e.location.hostname+((null!=n?n:":"+n)||"")),(null==e||!e.location.origin.match(/static\.olark\.com$/))&&(null!=e&&e.parent.document,!0)}catch(e){return t=e,!1}},n=function(t){if(t=t||e.window)return o(t)&&t!==e.window.top?(null!=t?t.parent.olark:void 0)?t.parent:n(t.parent):t},r=n(),t.exports={getOlark:function(){return null!=r?r.olark:void 0},getWindow:function(){return r},getDocument:function(){return null!=r?r.document:void 0},getLocation:function(){return null!=r?r.location:void 0},getProtectedWindow:function(){return e.window}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],18:[function(e,t,n){var r,o=function(e,t){return function(){return e.apply(t,arguments)}},i={}.hasOwnProperty;r=function(){function e(e){this._assign=o(this._assign,this),this._window=e.window||window,this._document=e.document||this._window.document,this._olark=e.olark||this._window.olark,this._data={},this._data.version=this._assign(e.version,function(){var e;return(null!=(e=this._olark)?e._.chatboxBucketPostfix:void 0)||"framestore"}),this._data.location=this._assign(e.location,function(){return this._document.location.href.toString().slice(0,50)}),this._data.referrer=this._assign(e.referrer,function(){return this._document.referrer.toString().slice(0,15)}),this._data.message=this._assign(e.message,function(){return null}),this._data.stack=this._assign(e.stack,function(){return null}),this._data.tabname=this._assign(e.tabName,function(){return this._getTabName()}),this._data.conversation_id=this._assign(e.conversationId,function(){return this._getConversationId()}),this._data.visitor_id=this._assign(e.visitorId,function(){return this._getVisitorId()}),this._data.site_id=this._assign(e.siteId,function(){return this._getSiteId()}),this._data.bucket=this._assign(e.bucket,function(){return this._getBucket()}),this._data.level=this._assign(e.level,function(){return"info"}),this._data.timestamp=this._assign(e.timestamp,function(){return+new Date}),this._data.properties=this._assign(e.properties,function(){return{}}),this._data.recent_logs=this._assign(e.recentLogs,function(){return[]})}return e.prototype._assign=function(e,t){switch(e){case null:return null;default:return null!=e?e:t.bind(this)()}},e.prototype._getTabName=function(){var e;return(e=this._window).name||(e.name=Math.random().toString().replace("0.","oktab")),/^oktab/.test(this._window.name)?this._window.name:"unknown"},e.prototype._getConversationId=function(){var e;return null!=(e=this._olark)?e._.conversationId:void 0},e.prototype._getVisitorId=function(){var e;return null!=(e=this._olark)?e._.visitorId:void 0},e.prototype._getSiteId=function(){var e;return null!=(e=this._olark)?e._.siteId:void 0},e.prototype._getBucket=function(){var e;return null!=(e=this._olark)?e._.chatboxBucket:void 0},e.prototype.simplify=function(){return{bucket:this._data.bucket,conversation_id:this._data.conversation_id,level:this._data.level,location:this._data.location,message:this._data.message,referrer:this._data.referrer,tabname:this._data.tabname,timestamp:String(new Date(this._data.timestamp)),version:this._data.version}},e.prototype.getLevel=function(){return this._data.level},e.prototype.getMessage=function(){return this._data.message},e.prototype.getStack=function(){return this._data.stack},e.prototype.getEncodedLogEvent=function(){var e,t,n,r,o;n=[],r=this._data;for(e in r)i.call(r,e)&&null!=this._data[e]&&""!==this._data[e]&&(o=this._data[e],
"properties"!==e&&"recent_logs"!==e||(o=JSON.stringify(o)),t=e+"="+encodeURIComponent(o),n.push(t));return n.join("&")},e}(),t.exports=r},{}],19:[function(e,t,n){(function(n){var r,o,i,a,s,u,c,f,l,h,d,p,v,g,m,y,w=function(e,t){return function(){return e.apply(t,arguments)}};a=e("./Env"),c=e("./LogMessage"),s=e("./HostPage"),g=e("bowser"),r=100,v=100,l=4,h=10,u=["debug","info","warn","error","track","count"],p=u[2],o=u[0],i=.15,d=10,y=new a,m=null,f=function(){function e(e){this._sendCount=w(this._sendCount,this),this._sendTrack=w(this._sendTrack,this);var t,n,r,a,c,f,l,h,d;if(this._totalLogCount=0,this._timestampOfFirstLogCallInBatch=+new Date,this._totalLogCountInBatch=0,this._recentLogs=[],h=null,d=!1,((null!=e?e.window:void 0)||"undefined"!=typeof
window&&null!==window)&&(this._window=(null!=e?e.window:void 0)||s.getWindow(),y.get("OLARK_DEBUG")&&(h=o,d=!0)),this._samplingRates={},"number"==typeof(null!=e?e.samplingRate:void 0))for(t=0,a=u.length;t<a;t++)l=u[t],this._samplingRates[l]=e.samplingRate;else if("object"!=typeof(null!=e?e.samplingRate:void 0)||(null!=e?e.samplingRate.length:void 0))for(r=0,f=u.length;r<f;r++)l=u[r],this._samplingRates[l]=i;else for(n=0,c=u.length;n<c;n++)l=u[n],this._samplingRates[l]=null!=e.samplingRate[l]?e.samplingRate[l]:i;this._logLevel=h||(null!=e?e.logLevel:void 0)||p,this._showInConsole=null!=(null!=e?e.showInConsole:void 0)?null!=e?e.showInConsole:void 0:d,this._countKeys=[],this._sentCountKeys=[],this._trackKeys=[]}return e.prototype.count=function(e,t){if(null==e)throw new Error("count requires 1 argument");return this._deferSendCount(e,t)},e.prototype.track=function(e,t,n){if(null==e||null==t)throw new Error("track requires 2 arguments");return this._deferSendTrack(e,t,n)},e.prototype.debug=function(e,t){if(null==t&&(t={}),null==e)throw new Error("debug requires 1 argument");if(t.level="debug",this.log(e,t),!t.ignoreCount)return this.count("debug")},e.prototype.info=function(e,t){if(null==t&&(t={}),null==e)throw new Error("info requires 1 argument");if(t.level="info",this.log(e,t),!t.ignoreCount)return this.count("info")},e.prototype.warn=function(e,t){if(null==t&&(t={}),null==e)throw new Error("warn requires 1 argument");if(t.level="warn",this.log(e,t),!t.ignoreCount)return this.count("warn")},e.prototype.error=function(e,t){if(null==t&&(t={}),null==e)throw new Error("error requires 1 argument");if(t.level="error",this.log(e,t),!t.ignoreCount)return this.count("error")},e.prototype.log=function(e,t){var n,r,o;null==t&&(t={});try{if(o={window:this._window,message:e,level:t.level||"info",stack:t.stack,conversationId:t.conversationId},r=new c(o),this._recentLogs.push(r.simplify()),this._recentLogs.length>d&&this._recentLogs.shift(),(t.showInConsole||this._shouldShowInConsole()&&null==t.showInConsole)&&this._logToConsole(r),!t.skipSend&&(t.forceSend||this._shouldSendMessage(r)))return this._send(r)}catch(e){if(n=e,this._isDevelopment())return console.error(n)}},e.prototype._isDevelopment=function(){return!(null==this._window||!this._window.location)&&/olark\.net$/.test(this._window.location.hostname)},e.prototype._shouldShowInConsole=function(e){return this._isDevelopment()||this._showInConsole},e.prototype._shouldSendMessage=function(e){var t,n;return n=Math.random()<=this._samplingRates[e.getLevel()],t=u.indexOf(e.getLevel())>=u.indexOf(this._logLevel),t&&n},e.prototype._deferSendCount=function(e,t){if(!((null!=t?t.sendOnce:void 0)&&this._sentCountKeys.indexOf(e)>=0))return this._countDeferTimeout&&clearTimeout(this._countDeferTimeout),this._countKeys.push({key:e,options:t}),this._sentCountKeys.push(e),n.nextTick(this._sendCount)},e.prototype._deferSendTrack=function(e,t,r){return this._trackDeferTimeout&&clearTimeout(this._trackDeferTimeout),this._trackKeys.push({key:e,value:t,options:r}),n.nextTick(this._sendTrack)},e.prototype._sendTrack=function(){var e,t,n,r,o,i,a,s,u,c;if(this._eventDeferTimeout=null,!(this._trackKeys.length<=0)){for(o="",e=!1,a=this._trackKeys,t=0,r=a.length;t<r;t++)n=a[t],i=null!=(s=n.options)&&null!=(u=s.namespaces)?u.join(","):void 0,o+=i?"#"+n.key+"."+i+"="+n.value+" ":"#"+n.key+"="+n.value+" ",e||(e=null!=(c=n.options)?c.forceSend:void 0);return this.log(o,{level:"track",forceSend:e,showInConsole:!1}),this._trackKeys=[]}},e.prototype._sendCount=function(){var e,t,n,r,o,i,a,s,u,c,f,l;if(this._countDeferTimeout=null,!(this._countKeys.length<=0)){for(a="",e=!1,c=this._countKeys,t=0,o=c.length;t<o;t++){if(n=c[t],u=null!=(f=n.options)?f.namespaces:void 0)for(r=0,i=u.length;r<i;r++)s=u[r],a+="#"+n.key+"."+s+" ";a+="#"+n.key+" ",e||(e=null!=(l=n.options)?l.forceSend:void 0)}return this.log(a,{level:"count",forceSend:e,showInConsole:!1}),this._countKeys=[]}},e.prototype._send=function(e){var t,n,r;if(this._totalLogCountInBatch++,t=+new Date,t-this._timestampOfFirstLogCallInBatch<=1e3){if(this._totalLogCountInBatch>l)return;this._totalLogCountInBatch=0,this._timestampOfFirstLogCallInBatch=t}if(this._totalLogCount++,!(this._totalLogCount>h))return r=e.getEncodedLogEvent(),this._isDevelopment()?void 0:(n=new this._window.Image,n.src="//log.olark.com/jslog/log.png?"+r,n.onload=function(){return n=null})},e.prototype._logToConsole=function(e){var t,n,r,o;if(null!=(r=this._window)?r.console:void 0){n=e.getLevel();try{return"count"===n||"track"===n?this._window.console.debug("[olark]["+n+"]",e.getMessage()):e.getStack()?this._window.console[n]("[olark]["+n+"]",e.getMessage(),e.getStack()):this._window.console[n]("[olark]["+n+"]",e.getMessage())}catch(r){return t=r,null!=(o=this._window.console)?o.log("[olark]["+n+"]",e.getMessage()):void 0}}},e.getDefaultLogger=function(t){return m||(m=new e({window:t,samplingRate:{debug:0,info:0,warn:.25,error:.25,track:.15,count:.15}})),m},e}(),t.exports=f}).call(this,e("_process"))},{"./Env":16,"./HostPage":17,"./LogMessage":18,_process:8,bowser:1}],20:[function(e,t,n){var r=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,n,r="",o=0;t=n=0,o=e.length;for(var i=0;i<o;i++){var a=e.charCodeAt(i),s=null;a<128?n++:s=a>127&&a<2048?String.fromCharCode(a>>6|192)+String.fromCharCode(63&a|128):String.fromCharCode(a>>12|224)+String.fromCharCode(a>>6&63|128)+String.fromCharCode(63&a|128),null!==s&&(n>t&&(r+=e.substring(t,n)),r+=s,t=n=i+1)}return n>t&&(r+=e.substring(t,e.length)),r},o=function(e){var t,n,o,i,a,s,u,c,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=0,h=0,d="",p=[];if(!e)return e;e=r(e+"");do t=e.charCodeAt(l++),n=e.charCodeAt(l++),o=e.charCodeAt(l++),c=t<<16|n<<8|o,i=c>>18&63,a=c>>12&63,s=c>>6&63,u=63&c,p[h++]=f.charAt(i)+f.charAt(a)+f.charAt(s)+f.charAt(u);while(l<e.length);switch(d=p.join(""),e.length%3){case 1:d=d.slice(0,-2)+"==";break;case 2:d=d.slice(0,-1)+"="}return d},i=function(e){var t="";try{t=window.atob(e)}catch(l){if(window.atob)throw l;var n,r,o,i,a,s,u,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",f=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do i=c.indexOf(e.charAt(f++)),a=c.indexOf(e.charAt(f++)),s=c.indexOf(e.charAt(f++)),u=c.indexOf(e.charAt(f++)),n=i<<2|a>>4,r=(15&a)<<4|s>>2,o=(3&s)<<6|u,t+=String.fromCharCode(n),64!=s&&(t+=String.fromCharCode(r)),64!=u&&(t+=String.fromCharCode(o));while(f<e.length)}return t};t.exports={encode_base64:o,decode_base64:i}},{}],21:[function(e,t,n){function r(e){var t=!0;try{var n="";n=window.atob?JSON.parse(window.atob(e)):JSON.parse(i.decode_base64(e))}catch(e){t=!1}return t}var o=e("./Logger").getDefaultLogger(),i=e("./base64");t.exports=function(t,n,i,a,s){return t=e("./json"),n=function(){function e(){try{return k in m&&m[k]}catch(e){return!1}}function t(){try{return E in m&&m[E]&&m[E][m.location.hostname]}catch(e){return!1}}function n(){function e(e,t){var n=e.key;n?i(n):a()}window.addEventListener?window.addEventListener("storage",e,!1):window.attachEvent("onstorage",e)}function r(){setInterval(a,_)}function i(e){var t=S[e],n=l(e);if(w[e]=w[e]||[],S[e]=n,t!=n)for(var r=0;r<w[e].length;r++)try{w[e][r]({newValue:n})}catch(e){o.error(e.toString())}}function a(){for(var e in w)w.hasOwnProperty(e)&&i(e)}function s(e){return function(){var t=Array.prototype.slice.call(arguments||[],0);t.unshift(h),y.body.appendChild(h),h.addBehavior("#default#userData"),h.load(k);var n=e.apply(g,t);return y.body.removeChild(h),n}}function u(){var e=Array.prototype.slice.call(arguments||[],0),t=e.shift();try{return p[t].apply(p,e),v[t].apply(v,e)}catch(n){return p[t].apply(p,e)}}function c(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var n=e[t].replace(/^\s*/,"").replace(/\s*$/,"");if(0==n.indexOf(T))return g.deserialize(unescape(n.slice(T.length)))}return{}}function f(e){document.cookie=T+escape(g.serialize(e))+C,document.cookie.length>b&&(o.warn("cookie is too large, clearing storejs"),f({}))}var l,h,d,p,v,g={},m=window,y=m.document,w={},_=750,b=4e3,S={},k="localStorage",E="globalStorage";if(g.set=function(e,t){},g.get=function(e){},g.remove=function(e){},g.clear=function(){},g.transact=function(e,t){var
n=g.get(e);"undefined"==typeof n&&(n={}),t(n),g.set(e,n)},g.listen=function(e,t){S[e]=l(e),w[e]=w[e]||[],w[e].push(t)},g.serialize=function(e){return JSON.stringify(e)},g.deserialize=function(e){if("string"==typeof e)return JSON.parse(e)},e())h=m[k],g.set=function(e,t){h.setItem(e,g.serialize(t))},g.get=function(e){return g.deserialize(h.getItem(e))},g.remove=function(e){h.removeItem(e)},g.clear=function(){h.clear()},l=function(e){return h.getItem(e)},n();else if(t())h=m[E][m.location.hostname],g.set=function(e,t){h[e]=g.serialize(t)},g.get=function(e){return g.deserialize(h[e]&&h[e].value)},g.remove=function(e){delete h[e]},g.clear=function(){for(var e in h)delete h[e]},l=function(e){return h[e]},r();else if(y.documentElement.addBehavior)h=y.createElement("div"),d={},p={},v={},v.set=s(function(e,t,n){e.setAttribute(t,g.serialize(n)),e.save(k)}),v.get=s(function(e,t){return g.deserialize(e.getAttribute(t))}),v.remove=s(function(e,t){e.removeAttribute(t),e.save(k)}),v.clear=s(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(k);for(var n,r=0;n=t[r];r++)e.removeAttribute(n.name);e.save(k)}),p.set=function(e,t){d[e]=t},p.get=function(e){return d[e]},p.remove=function(e){delete d[e]},p.clear=function(){d={}},g.set=function(e,t){return u("set",e,t)},g.get=function(e){return u("get",e)},g.remove=function(e){return u("remove",e)},g.clear=function(){return u("clear")},l=function(e){try{return s(function(e,t){return e.getAttribute(t)})(e)}catch(t){return d[e]}},r();else{var C="; path="+document.location.pathname,T="storejs=";g.set=function(e,t){var n=c();n[e];n[e]=t,f(n)},g.get=function(e){return c()[e]},g.remove=function(e){var t=c();try{delete t[e]}catch(n){t[e]=void 0}f(t)},g.clear=function(){f({})},l=function(e){return g.serialize(c()[e])}}return g}(),i=function(e,t){function n(e){return e.contentWindow?e.contentWindow:e.contentDocument.window}function i(){return Math.random().toString().replace("0.","TK")}function a(){var t=e.ActiveXObject;if(!t)return-1;try{var n,r=new t("ShockwaveFlash.ShockwaveFlash");return r?(n=r.GetVariable("$version"),parseInt(/([0-9]+)/.exec(n)[1])):-1}catch(e){return-1}}function s(e){return/^\s*(file\:|[a-zA-Z]\:).*/.test(e)}function u(e){var t;return e?""==e.length?null:s(e)?"file:":(t=e.split("//"),t.length>1?t[0]+"//"+t[1].split("/")[0]:t[0]):null}function c(n,r){var o,i,a=Math.floor(99999*Math.random()).toString(),s=t.createElement("span"),u="_olark_framesocket"+a,c="_olark_framesocket"+a,f=t.getElementsByTagName("body")[0],l=!1,h=function(){e[c]()};return f?i=function(){f.appendChild(s)}:(f=t.getElementsByTagName("script")[0],i=function(){f.parentNode.insertBefore(s,f)}),e[c]=function(){r&&!l&&(l=!0,r(o))},s.setAttribute("style","display: none;"),o=t.createElement("iframe"),o.setAttribute("style","display: none !important;"),o.id=u,o.addEventListener?o.addEventListener("load",h,!1):o.attachEvent("onload",h),o.src=n,s.appendChild(o),i(),o}function f(e){setTimeout(e,0)}function l(e){return u("file:"==e?null:e)}function h(e,t){function n(){if(e()){var r=o.shift();i=!1,"undefined"!=typeof r&&t(r),o.length>0&&!i&&(i=!0,f(n))}}function r(e){o.push(e),n()}var o=[],i=!1,a=null;return a={queuedSend:r,attemptDequeue:n}}function d(){function a(){function t(t,n){e.postMessage?c.postMessage(t,n):c.document.postMessage(t,n)}function n(e){null==f||s(f)?t(e,"*"):t(e,u(f))}function r(){return"undefined"!=typeof c&&"undefined"!=typeof f}function o(e){c=e,l.attemptDequeue()}function i(e){f=e,l.attemptDequeue()}function a(e){l.queuedSend(e)}var c,f,l,d;return l=h(r,n),d={setPostMessageTargetWindow:o,setPostMessageTargetOrigin:i,send:a}}function d(n){function r(e){var r,a=u(e.origin||e.uri),c=null;"null"==e.origin&&(a="file:"),a&&!s(a)&&(e.uri&&0==e.uri.toString().indexOf(a)?c=e.uri.toString().slice(a.length):t.referrer&&0==t.referrer.toString().indexOf(a)&&(c=t.referrer.toString().slice(a.length))),r=l(a),"undefined"!=typeof o&&o!=r||"undefined"!=typeof i&&i!=e.source||"string"==typeof e.data&&n({data:e.data,origin:r})}var o,i,a={};return e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),a.setExpectedOrigin=function(e){o=l(e)},a.setExpectedWindow=function(e){i=e},a}m.connect=function(e,t){function r(e){l.send(h+y+e)}var o,s=e.server||e,f=null,l=a(),h=i(),p=s.replace(/\#[^?]*/,"")+"#"+h;return t=t||function(){},l.setPostMessageTargetOrigin(s),c(p,function(e){var r=n(e);o=d(t),o.setExpectedOrigin(u(p)),o.setExpectedWindow(r),l.setPostMessageTargetWindow(r)}),r(w),f={send:r}},m.accept=function(t){function n(e){if("string"!=typeof e.data){var n=typeof e.data,a=e.data;"object"===n&&(a=JSON.stringify(e.data).substring(0,250)),o.error("event.data is not a string - type: "+n+" data: "+a),o.count("bad_event_data")}if(!r(e.data)){var s=e.data.split(y),h=s[0],d=s[1];h==c?d==w?l||(l=!0,i.setExpectedOrigin(e.origin),u.setPostMessageTargetOrigin(e.origin)):f(function(){t({data:d,origin:e.origin})}):o.warn("[framesocket] received a message from an origin with an invalid identity")}}var i,s=null,u=a(),c=(e.location.hash||"").slice(1),l=!1;return t=t||function(){},u.setPostMessageTargetWindow(e.parent),i=d(n),i.setExpectedWindow(e.parent),s={send:u.send}}}function p(){m.connect=function(e,t){function n(){return g}function r(e){d.frameElementContext.sendToChild(e,m)}function a(e){u.queuedSend(e)}function s(e,t){return e!=m?(o.warn("[framesocket] invalid security token given to client in frameElement transport"),null):void t()}var u,d,p,v=e.server||e,g=!1,m=i(),y=v.replace(/\#[^?]*/,"")+"#"+m;return t=t||function(){},u=h(n,r),d=c(y),d.frameElementContext=function(){},d.frameElementContext.markChildAsReady=function(e){s(e,function(){f(function(){g=!0,u.attemptDequeue()})})},d.frameElementContext.sendToParent=function(e,n){s(n,function(){t({data:e,origin:l(v)})})},p={send:a}},m.accept=function(n){function r(){return!0}function i(t){e.frameElement.frameElementContext.sendToParent(t,f)}function a(e){u.queuedSend(e)}function s(e,t){return e!=f?(o.warn("[framesocket] invalid security token given to server in frameElement transport"),null):void t()}var u,c,f=(e.location.hash||"").slice(1);return n=n||function(){},e.frameElement.frameElementContext(),e.frameElement.frameElementContext.sendToChild=function(e,r){s(r,function(){n({data:e,origin:l(t.referrer)})})},e.frameElement.frameElementContext.markChildAsReady(f),u=h(r,i),c={send:a}}}function v(){function n(){for(;c.length;)c.shift()(o())}function r(e){var n=t.getElementsByTagName("script")[0],r=t.createElement("script");r.type="text/javascript",r.async=!0,r.src=e,n.parentNode.insertBefore(r,n)}function o(){var t=null;return e.minixdm&&(t=e.minixdm.easyXDM),t||e.easyXDM}function i(e,t){c.push(t),o()?n():a||(a=!0,r(e),s=setInterval(function(){o()&&(n(),clearInterval(s))},100))}var a=!1,s=null,c=[];m.connect=function(t,n){var r,o=t.server||t,a=o.replace(/(\/[^\/]+)$/,""),s=a+"/minixdm.swf",c=a+"/minixdm.js";"http:"==e.location.protocol&&(s=s.replace("https","http")),i(c,function(e){r=new e.Socket({protocol:_,lazy:!1,swf:s,remote:o.replace(/\#[^?]*/,"")+"#basepath="+encodeURIComponent(a),onMessage:function(e,t){n({data:e,origin:u(t)})}})});var f={send:function(e){i(c,function(t){r.postMessage(e)})}};return f},m.accept=function(t){var n,r=decodeURIComponent(/basepath=([^?&]+)/.exec(e.location.href.slice(1))[1]),o=r+"/minixdm.swf",a=r+"/minixdm.js";"http:"==e.location.protocol&&(o=o.replace("https","http")),i(a,function(e){n=new e.Socket({protocol:_,swf:o,onMessage:function(e,n){t({data:e,origin:u(n)})}})});var s={send:function(e){i(a,function(t){n.postMessage(e)})}};return s}}function g(){o.error("[framesocket] unsupported browser")}var m={},y="~:DATA:~",w="~:INIT:~",_="6";return e.postMessage||t.postMessage?d():"Gecko"==navigator.product&&"frameElement"in e&&navigator.userAgent.indexOf("WebKit")==-1?p():a()>6?v():(m.connect=function(){return g(),{send:g}},m.accept=function(){return g(),{send:g}},m.isCompatible=function(){return!1}),m.isCompatible=m.isCompatible||function(){return!0},m}(window,document),a=function(e,t,n,i,a){function

Teste o Premium para desbloquear

Aproveite todos os benefícios por 3 dias sem pagar! 😉
Já tem cadastro?

Outros materiais