5 lines
151 KiB
JavaScript
5 lines
151 KiB
JavaScript
!function t(e,n,r){function i(o,a){if(!n[o]){if(!e[o]){var u="function"==typeof require&&require;if(!a&&u)return u(o,!0);if(s)return s(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[o]={exports:{}};e[o][0].call(c.exports,function(t){var n=e[o][1][t];return i(n?n:t)},c,c.exports,t,e,n,r)}return n[o].exports}for(var s="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(t,e,n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function e(t){var e=t.charCodeAt(0);return e===o?62:e===a?63:u>e?-1:u+10>e?e-u+26+26:c+26>e?e-c:l+26>e?e-l+26:void 0}function n(t){function n(t){l[h++]=t}var r,i,o,a,u,l;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=t.length;u="="===t.charAt(c-2)?2:"="===t.charAt(c-1)?1:0,l=new s(3*t.length/4-u),o=u>0?t.length-4:t.length;var h=0;for(r=0,i=0;o>r;r+=4,i+=3)a=e(t.charAt(r))<<18|e(t.charAt(r+1))<<12|e(t.charAt(r+2))<<6|e(t.charAt(r+3)),n((16711680&a)>>16),n((65280&a)>>8),n(255&a);return 2===u?(a=e(t.charAt(r))<<2|e(t.charAt(r+1))>>4,n(255&a)):1===u&&(a=e(t.charAt(r))<<10|e(t.charAt(r+1))<<4|e(t.charAt(r+2))>>2,n(a>>8&255),n(255&a)),l}function i(t){function e(t){return r.charAt(t)}function n(t){return e(t>>18&63)+e(t>>12&63)+e(t>>6&63)+e(63&t)}var i,s,o,a=t.length%3,u="";for(i=0,o=t.length-a;o>i;i+=3)s=(t[i]<<16)+(t[i+1]<<8)+t[i+2],u+=n(s);switch(a){case 1:s=t[t.length-1],u+=e(s>>2),u+=e(s<<4&63),u+="==";break;case 2:s=(t[t.length-2]<<8)+t[t.length-1],u+=e(s>>10),u+=e(s>>4&63),u+=e(s<<2&63),u+="="}return u}var s="undefined"!=typeof Uint8Array?Uint8Array:Array,o="+".charCodeAt(0),a="/".charCodeAt(0),u="0".charCodeAt(0),l="a".charCodeAt(0),c="A".charCodeAt(0);t.toByteArray=n,t.fromByteArray=i}("undefined"==typeof n?this.base64js={}:n)},{}],2:[function(t,e,n){function r(t,e,n){if(!(this instanceof r))return new r(t,e,n);var i,s=typeof t;if("number"===s)i=t>0?t>>>0:0;else if("string"===s)"base64"===e&&(t=k(t)),i=r.byteLength(t,e);else{if("object"!==s||null===t)throw new TypeError("must start with number, buffer, array or string");"Buffer"===t.type&&j(t.data)&&(t=t.data),i=+t.length>0?Math.floor(+t.length):0}if(this.length>N)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+N.toString(16)+" bytes");var o;r.TYPED_ARRAY_SUPPORT?o=r._augment(new Uint8Array(i)):(o=this,o.length=i,o._isBuffer=!0);var a;if(r.TYPED_ARRAY_SUPPORT&&"number"==typeof t.byteLength)o._set(t);else if(A(t))if(r.isBuffer(t))for(a=0;i>a;a++)o[a]=t.readUInt8(a);else for(a=0;i>a;a++)o[a]=(t[a]%256+256)%256;else if("string"===s)o.write(t,0,e);else if("number"===s&&!r.TYPED_ARRAY_SUPPORT&&!n)for(a=0;i>a;a++)o[a]=0;return o}function i(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var s=e.length;if(s%2!==0)throw new Error("Invalid hex string");r>s/2&&(r=s/2);for(var o=0;r>o;o++){var a=parseInt(e.substr(2*o,2),16);if(isNaN(a))throw new Error("Invalid hex string");t[n+o]=a}return o}function s(t,e,n,r){var i=D(S(e),t,n,r);return i}function o(t,e,n,r){var i=D(C(e),t,n,r);return i}function a(t,e,n,r){return o(t,e,n,r)}function u(t,e,n,r){var i=D(O(e),t,n,r);return i}function l(t,e,n,r){var i=D($(e),t,n,r,2);return i}function c(t,e,n){return 0===e&&n===t.length?M.fromByteArray(t):M.fromByteArray(t.slice(e,n))}function h(t,e,n){var r="",i="";n=Math.min(t.length,n);for(var s=e;n>s;s++)t[s]<=127?(r+=I(i)+String.fromCharCode(t[s]),i=""):i+="%"+t[s].toString(16);return r+I(i)}function f(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;n>i;i++)r+=String.fromCharCode(t[i]);return r}function p(t,e,n){return f(t,e,n)}function d(t,e,n){var r=t.length;(!e||0>e)&&(e=0),(!n||0>n||n>r)&&(n=r);for(var i="",s=e;n>s;s++)i+=T(t[s]);return i}function v(t,e,n){for(var r=t.slice(e,n),i="",s=0;s<r.length;s+=2)i+=String.fromCharCode(r[s]+256*r[s+1]);return i}function g(t,e,n){if(t%1!==0||0>t)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function m(t,e,n,i,s,o){if(!r.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");if(e>s||o>e)throw new TypeError("value is out of bounds");if(n+i>t.length)throw new TypeError("index out of range")}function b(t,e,n,r){0>e&&(e=65535+e+1);for(var i=0,s=Math.min(t.length-n,2);s>i;i++)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function y(t,e,n,r){0>e&&(e=4294967295+e+1);for(var i=0,s=Math.min(t.length-n,4);s>i;i++)t[n+i]=e>>>8*(r?i:3-i)&255}function w(t,e,n,r,i,s){if(e>i||s>e)throw new TypeError("value is out of bounds");if(n+r>t.length)throw new TypeError("index out of range")}function _(t,e,n,r,i){return i||w(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),P.write(t,e,n,r,23,4),n+4}function x(t,e,n,r,i){return i||w(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),P.write(t,e,n,r,52,8),n+8}function k(t){for(t=E(t).replace(B,"");t.length%4!==0;)t+="=";return t}function E(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function A(t){return j(t)||r.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function T(t){return 16>t?"0"+t.toString(16):t.toString(16)}function S(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);if(127>=r)e.push(r);else{var i=n;r>=55296&&57343>=r&&n++;for(var s=encodeURIComponent(t.slice(i,n+1)).substr(1).split("%"),o=0;o<s.length;o++)e.push(parseInt(s[o],16))}}return e}function C(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e}function $(t){for(var e,n,r,i=[],s=0;s<t.length;s++)e=t.charCodeAt(s),n=e>>8,r=e%256,i.push(r),i.push(n);return i}function O(t){return M.toByteArray(t)}function D(t,e,n,r,i){i&&(r-=r%i);for(var s=0;r>s&&!(s+n>=e.length||s>=t.length);s++)e[s+n]=t[s];return s}function I(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}var M=t("base64-js"),P=t("ieee754"),j=t("is-array");n.Buffer=r,n.SlowBuffer=r,n.INSPECT_MAX_BYTES=50,r.poolSize=8192;var N=1073741823;r.TYPED_ARRAY_SUPPORT=function(){try{var t=new ArrayBuffer(0),e=new Uint8Array(t);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray&&0===new Uint8Array(1).subarray(1,1).byteLength}catch(n){return!1}}(),r.isBuffer=function(t){return!(null==t||!t._isBuffer)},r.compare=function(t,e){if(!r.isBuffer(t)||!r.isBuffer(e))throw new TypeError("Arguments must be Buffers");for(var n=t.length,i=e.length,s=0,o=Math.min(n,i);o>s&&t[s]===e[s];s++);return s!==o&&(n=t[s],i=e[s]),i>n?-1:n>i?1:0},r.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},r.concat=function(t,e){if(!j(t))throw new TypeError("Usage: Buffer.concat(list[, length])");if(0===t.length)return new r(0);if(1===t.length)return t[0];var n;if(void 0===e)for(e=0,n=0;n<t.length;n++)e+=t[n].length;var i=new r(e),s=0;for(n=0;n<t.length;n++){var o=t[n];o.copy(i,s),s+=o.length}return i},r.byteLength=function(t,e){var n;switch(t+="",e||"utf8"){case"ascii":case"binary":case"raw":n=t.length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*t.length;break;case"hex":n=t.length>>>1;break;case"utf8":case"utf-8":n=S(t).length;break;case"base64":n=O(t).length;break;default:n=t.length}return n},r.prototype.length=void 0,r.prototype.parent=void 0,r.prototype.toString=function(t,e,n){var r=!1;if(e>>>=0,n=void 0===n||n===1/0?this.length:n>>>0,t||(t="utf8"),0>e&&(e=0),n>this.length&&(n=this.length),e>=n)return"";for(;;)switch(t){case"hex":return d(this,e,n);case"utf8":case"utf-8":return h(this,e,n);case"ascii":return f(this,e,n);case"binary":return p(this,e,n);case"base64":return c(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}},r.prototype.equals=function(t){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");return 0===r.compare(this,t)},r.prototype.inspect=function(){var t="",e=n.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},r.prototype.compare=function(t){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");return r.compare(this,t)},r.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},r.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},r.prototype.write=function(t,e,n,r){if(isFinite(e))isFinite(n)||(r=n,n=void 0);else{var c=r;r=e,e=n,n=c}e=Number(e)||0;var h=this.length-e;n?(n=Number(n),n>h&&(n=h)):n=h,r=String(r||"utf8").toLowerCase();var f;switch(r){case"hex":f=i(this,t,e,n);break;case"utf8":case"utf-8":f=s(this,t,e,n);break;case"ascii":f=o(this,t,e,n);break;case"binary":f=a(this,t,e,n);break;case"base64":f=u(this,t,e,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":f=l(this,t,e,n);break;default:throw new TypeError("Unknown encoding: "+r)}return f},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},r.prototype.slice=function(t,e){var n=this.length;if(t=~~t,e=void 0===e?n:~~e,0>t?(t+=n,0>t&&(t=0)):t>n&&(t=n),0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),t>e&&(e=t),r.TYPED_ARRAY_SUPPORT)return r._augment(this.subarray(t,e));for(var i=e-t,s=new r(i,void 0,!0),o=0;i>o;o++)s[o]=this[o+t];return s},r.prototype.readUInt8=function(t,e){return e||g(t,1,this.length),this[t]},r.prototype.readUInt16LE=function(t,e){return e||g(t,2,this.length),this[t]|this[t+1]<<8},r.prototype.readUInt16BE=function(t,e){return e||g(t,2,this.length),this[t]<<8|this[t+1]},r.prototype.readUInt32LE=function(t,e){return e||g(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},r.prototype.readUInt32BE=function(t,e){return e||g(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},r.prototype.readInt8=function(t,e){return e||g(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},r.prototype.readInt16LE=function(t,e){e||g(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},r.prototype.readInt16BE=function(t,e){e||g(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},r.prototype.readInt32LE=function(t,e){return e||g(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},r.prototype.readInt32BE=function(t,e){return e||g(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},r.prototype.readFloatLE=function(t,e){return e||g(t,4,this.length),P.read(this,t,!0,23,4)},r.prototype.readFloatBE=function(t,e){return e||g(t,4,this.length),P.read(this,t,!1,23,4)},r.prototype.readDoubleLE=function(t,e){return e||g(t,8,this.length),P.read(this,t,!0,52,8)},r.prototype.readDoubleBE=function(t,e){return e||g(t,8,this.length),P.read(this,t,!1,52,8)},r.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||m(this,t,e,1,255,0),r.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=t,e+1},r.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||m(this,t,e,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[e]=t,this[e+1]=t>>>8):b(this,t,e,!0),e+2},r.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||m(this,t,e,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=t):b(this,t,e,!1),e+2},r.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||m(this,t,e,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=t):y(this,t,e,!0),e+4},r.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||m(this,t,e,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t):y(this,t,e,!1),e+4},r.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||m(this,t,e,1,127,-128),r.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),0>t&&(t=255+t+1),this[e]=t,e+1},r.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||m(this,t,e,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[e]=t,this[e+1]=t>>>8):b(this,t,e,!0),e+2},r.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||m(this,t,e,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=t):b(this,t,e,!1),e+2},r.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||m(this,t,e,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[e]=t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):y(this,t,e,!0),e+4},r.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||m(this,t,e,4,2147483647,-2147483648),0>t&&(t=4294967295+t+1),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t):y(this,t,e,!1),e+4},r.prototype.writeFloatLE=function(t,e,n){return _(this,t,e,!0,n)},r.prototype.writeFloatBE=function(t,e,n){return _(this,t,e,!1,n)},r.prototype.writeDoubleLE=function(t,e,n){return x(this,t,e,!0,n)},r.prototype.writeDoubleBE=function(t,e,n){return x(this,t,e,!1,n)},r.prototype.copy=function(t,e,n,i){var s=this;if(n||(n=0),i||0===i||(i=this.length),e||(e=0),i!==n&&0!==t.length&&0!==s.length){if(n>i)throw new TypeError("sourceEnd < sourceStart");if(0>e||e>=t.length)throw new TypeError("targetStart out of bounds");if(0>n||n>=s.length)throw new TypeError("sourceStart out of bounds");if(0>i||i>s.length)throw new TypeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var o=i-n;if(1e3>o||!r.TYPED_ARRAY_SUPPORT)for(var a=0;o>a;a++)t[a+e]=this[a+n];else t._set(this.subarray(n,n+o),e)}},r.prototype.fill=function(t,e,n){if(t||(t=0),e||(e=0),n||(n=this.length),e>n)throw new TypeError("end < start");if(n!==e&&0!==this.length){if(0>e||e>=this.length)throw new TypeError("start out of bounds");if(0>n||n>this.length)throw new TypeError("end out of bounds");var r;if("number"==typeof t)for(r=e;n>r;r++)this[r]=t;else{var i=S(t.toString()),s=i.length;for(r=e;n>r;r++)this[r]=i[r%s]}return this}},r.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(r.TYPED_ARRAY_SUPPORT)return new r(this).buffer;for(var t=new Uint8Array(this.length),e=0,n=t.length;n>e;e+=1)t[e]=this[e];return t.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var L=r.prototype;r._augment=function(t){return t.constructor=r,t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=L.get,t.set=L.set,t.write=L.write,t.toString=L.toString,t.toLocaleString=L.toString,t.toJSON=L.toJSON,t.equals=L.equals,t.compare=L.compare,t.copy=L.copy,t.slice=L.slice,t.readUInt8=L.readUInt8,t.readUInt16LE=L.readUInt16LE,t.readUInt16BE=L.readUInt16BE,t.readUInt32LE=L.readUInt32LE,t.readUInt32BE=L.readUInt32BE,t.readInt8=L.readInt8,t.readInt16LE=L.readInt16LE,t.readInt16BE=L.readInt16BE,t.readInt32LE=L.readInt32LE,t.readInt32BE=L.readInt32BE,t.readFloatLE=L.readFloatLE,t.readFloatBE=L.readFloatBE,t.readDoubleLE=L.readDoubleLE,t.readDoubleBE=L.readDoubleBE,t.writeUInt8=L.writeUInt8,t.writeUInt16LE=L.writeUInt16LE,t.writeUInt16BE=L.writeUInt16BE,t.writeUInt32LE=L.writeUInt32LE,t.writeUInt32BE=L.writeUInt32BE,t.writeInt8=L.writeInt8,t.writeInt16LE=L.writeInt16LE,t.writeInt16BE=L.writeInt16BE,t.writeInt32LE=L.writeInt32LE,t.writeInt32BE=L.writeInt32BE,t.writeFloatLE=L.writeFloatLE,t.writeFloatBE=L.writeFloatBE,t.writeDoubleLE=L.writeDoubleLE,t.writeDoubleBE=L.writeDoubleBE,t.fill=L.fill,t.inspect=L.inspect,t.toArrayBuffer=L.toArrayBuffer,t};var B=/[^+\/0-9A-z]/g},{"base64-js":1,ieee754:14,"is-array":16}],3:[function(t,e,n){(function(t){var n=function(){"use strict";function e(n,r,i,s){function a(n,i){if(null===n)return null;if(0==i)return n;var u,f;if("object"!=typeof n)return n;if(e.__isArray(n))u=[];else if(e.__isRegExp(n))u=new RegExp(n.source,o(n)),n.lastIndex&&(u.lastIndex=n.lastIndex);else if(e.__isDate(n))u=new Date(n.getTime());else{if(h&&t.isBuffer(n))return u=new t(n.length),n.copy(u),u;"undefined"==typeof s?(f=Object.getPrototypeOf(n),u=Object.create(f)):(u=Object.create(s),f=s)}if(r){var p=l.indexOf(n);if(-1!=p)return c[p];l.push(n),c.push(u)}for(var d in n){var v;f&&(v=Object.getOwnPropertyDescriptor(f,d)),v&&null==v.set||(u[d]=a(n[d],i-1))}return u}var u;"object"==typeof r&&(i=r.depth,s=r.prototype,u=r.filter,r=r.circular);var l=[],c=[],h="undefined"!=typeof t;return"undefined"==typeof r&&(r=!0),"undefined"==typeof i&&(i=1/0),a(n,i)}function n(t){return Object.prototype.toString.call(t)}function r(t){return"object"==typeof t&&"[object Date]"===n(t)}function i(t){return"object"==typeof t&&"[object Array]"===n(t)}function s(t){return"object"==typeof t&&"[object RegExp]"===n(t)}function o(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return e.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},e.__objToStr=n,e.__isDate=r,e.__isArray=i,e.__isRegExp=s,e.__getRegExpFlags=o,e}();"object"==typeof e&&e.exports&&(e.exports=n)}).call(this,t("buffer").Buffer)},{buffer:2}],4:[function(t,e,n){function r(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}var i=t("color-name"),s={};for(var o in i)i.hasOwnProperty(o)&&(s[i[o]]=o);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var u in a)if(a.hasOwnProperty(u)){if(!("channels"in a[u]))throw new Error("missing channels property: "+u);if(!("labels"in a[u]))throw new Error("missing channel labels property: "+u);if(a[u].labels.length!==a[u].channels)throw new Error("channel and label counts mismatch: "+u);var l=a[u].channels,c=a[u].labels;delete a[u].channels,delete a[u].labels,Object.defineProperty(a[u],"channels",{value:l}),Object.defineProperty(a[u],"labels",{value:c})}a.rgb.hsl=function(t){var e,n,r,i=t[0]/255,s=t[1]/255,o=t[2]/255,a=Math.min(i,s,o),u=Math.max(i,s,o),l=u-a;return u===a?e=0:i===u?e=(s-o)/l:s===u?e=2+(o-i)/l:o===u&&(e=4+(i-s)/l),e=Math.min(60*e,360),0>e&&(e+=360),r=(a+u)/2,n=u===a?0:.5>=r?l/(u+a):l/(2-u-a),[e,100*n,100*r]},a.rgb.hsv=function(t){var e,n,r,i=t[0],s=t[1],o=t[2],a=Math.min(i,s,o),u=Math.max(i,s,o),l=u-a;return n=0===u?0:l/u*1e3/10,u===a?e=0:i===u?e=(s-o)/l:s===u?e=2+(o-i)/l:o===u&&(e=4+(i-s)/l),e=Math.min(60*e,360),0>e&&(e+=360),r=u/255*1e3/10,[e,n,r]},a.rgb.hwb=function(t){var e=t[0],n=t[1],r=t[2],i=a.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(n,r));return r=1-1/255*Math.max(e,Math.max(n,r)),[i,100*s,100*r]},a.rgb.cmyk=function(t){var e,n,r,i,s=t[0]/255,o=t[1]/255,a=t[2]/255;return i=Math.min(1-s,1-o,1-a),e=(1-s-i)/(1-i)||0,n=(1-o-i)/(1-i)||0,r=(1-a-i)/(1-i)||0,[100*e,100*n,100*r,100*i]},a.rgb.keyword=function(t){var e=s[t];if(e)return e;var n,o=1/0;for(var a in i)if(i.hasOwnProperty(a)){var u=i[a],l=r(t,u);o>l&&(o=l,n=a)}return n},a.keyword.rgb=function(t){return i[t]},a.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var i=.4124*e+.3576*n+.1805*r,s=.2126*e+.7152*n+.0722*r,o=.0193*e+.1192*n+.9505*r;return[100*i,100*s,100*o]},a.rgb.lab=function(t){var e,n,r,i=a.rgb.xyz(t),s=i[0],o=i[1],u=i[2];return s/=95.047,o/=100,u/=108.883,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,e=116*o-16,n=500*(s-o),r=200*(o-u),[e,n,r]},a.hsl.rgb=function(t){var e,n,r,i,s,o=t[0]/360,a=t[1]/100,u=t[2]/100;if(0===a)return s=255*u,[s,s,s];n=.5>u?u*(1+a):u+a-u*a,e=2*u-n,i=[0,0,0];for(var l=0;3>l;l++)r=o+1/3*-(l-1),0>r&&r++,r>1&&r--,s=1>6*r?e+6*(n-e)*r:1>2*r?n:2>3*r?e+(n-e)*(2/3-r)*6:e,i[l]=255*s;return i},a.hsl.hsv=function(t){var e,n,r=t[0],i=t[1]/100,s=t[2]/100,o=i,a=Math.max(s,.01);return s*=2,i*=1>=s?s:2-s,o*=1>=a?a:2-a,n=(s+i)/2,e=0===s?2*o/(a+o):2*i/(s+i),[r,100*e,100*n]},a.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*r*(1-n),a=255*r*(1-n*s),u=255*r*(1-n*(1-s));switch(r*=255,i){case 0:return[r,u,o];case 1:return[a,r,o];case 2:return[o,r,u];case 3:return[o,a,r];case 4:return[u,o,r];case 5:return[r,o,a]}},a.hsv.hsl=function(t){var e,n,r,i=t[0],s=t[1]/100,o=t[2]/100,a=Math.max(o,.01);return r=(2-s)*o,e=(2-s)*a,n=s*a,n/=1>=e?e:2-e,n=n||0,r/=2,[i,100*n,100*r]},a.hwb.rgb=function(t){var e,n,r,i,s=t[0]/360,o=t[1]/100,a=t[2]/100,u=o+a;u>1&&(o/=u,a/=u),e=Math.floor(6*s),n=1-a,r=6*s-e,0!==(1&e)&&(r=1-r),i=o+r*(n-o);var l,c,h;switch(e){default:case 6:case 0:l=n,c=i,h=o;break;case 1:l=i,c=n,h=o;break;case 2:l=o,c=n,h=i;break;case 3:l=o,c=i,h=n;break;case 4:l=i,c=o,h=n;break;case 5:l=n,c=o,h=i}return[255*l,255*c,255*h]},a.cmyk.rgb=function(t){var e,n,r,i=t[0]/100,s=t[1]/100,o=t[2]/100,a=t[3]/100;return e=1-Math.min(1,i*(1-a)+a),n=1-Math.min(1,s*(1-a)+a),r=1-Math.min(1,o*(1-a)+a),[255*e,255*n,255*r]},a.xyz.rgb=function(t){var e,n,r,i=t[0]/100,s=t[1]/100,o=t[2]/100;return e=3.2406*i+-1.5372*s+o*-.4986,n=i*-.9689+1.8758*s+.0415*o,r=.0557*i+s*-.204+1.057*o,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,e=Math.min(Math.max(0,e),1),n=Math.min(Math.max(0,n),1),r=Math.min(Math.max(0,r),1),[255*e,255*n,255*r]},a.xyz.lab=function(t){var e,n,r,i=t[0],s=t[1],o=t[2];return i/=95.047,s/=100,o/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,e=116*s-16,n=500*(i-s),r=200*(s-o),[e,n,r]},a.lab.xyz=function(t){var e,n,r,i=t[0],s=t[1],o=t[2];n=(i+16)/116,e=s/500+n,r=n-o/200;var a=Math.pow(n,3),u=Math.pow(e,3),l=Math.pow(r,3);return n=a>.008856?a:(n-16/116)/7.787,e=u>.008856?u:(e-16/116)/7.787,r=l>.008856?l:(r-16/116)/7.787,e*=95.047,n*=100,r*=108.883,[e,n,r]},a.lab.lch=function(t){var e,n,r,i=t[0],s=t[1],o=t[2];return e=Math.atan2(o,s),n=360*e/2/Math.PI,0>n&&(n+=360),r=Math.sqrt(s*s+o*o),[i,r,n]},a.lch.lab=function(t){var e,n,r,i=t[0],s=t[1],o=t[2];return r=o/360*2*Math.PI,e=s*Math.cos(r),n=s*Math.sin(r),[i,e,n]},a.rgb.ansi16=function(t){var e=t[0],n=t[1],r=t[2],i=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(i=Math.round(i/50),0===i)return 30;var s=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===i&&(s+=60),s},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],n=t[1],r=t[2];if(e===n&&n===r)return 8>e?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return i},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var n=.5*(~~(t>50)+1),r=(1&e)*n*255,i=(e>>1&1)*n*255,s=(e>>2&1)*n*255;return[r,i,s]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}t-=16;var n,r=Math.floor(t/36)/5*255,i=Math.floor((n=t%36)/6)/5*255,s=n%6/5*255;return[r,i,s]},a.rgb.hex=function(t){var e=((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2])),n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map(function(t){return t+t}).join(""));var r=parseInt(n,16),i=r>>16&255,s=r>>8&255,o=255&r;return[i,s,o]},a.rgb.hcg=function(t){var e,n,r=t[0]/255,i=t[1]/255,s=t[2]/255,o=Math.max(Math.max(r,i),s),a=Math.min(Math.min(r,i),s),u=o-a;return e=1>u?a/(1-u):0,n=0>=u?0:o===r?(i-s)/u%6:o===i?2+(s-r)/u:4+(r-i)/u+4,n/=6,n%=1,[360*n,100*u,100*e]},a.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=1,i=0;return r=.5>n?2*e*n:2*e*(1-n),1>r&&(i=(n-.5*r)/(1-r)),[t[0],100*r,100*i]},a.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=e*n,i=0;return 1>r&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},a.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,r=t[2]/100;if(0===n)return[255*r,255*r,255*r];var i=[0,0,0],s=e%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-n)*r,[255*(n*i[0]+u),255*(n*i[1]+u),255*(n*i[2]+u)]},a.hcg.hsv=function(t){var e=t[1]/100,n=t[2]/100,r=e+n*(1-e),i=0;return r>0&&(i=e/r),[t[0],100*i,100*r]},a.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100,r=n*(1-e)+.5*e,i=0;return r>0&&.5>r?i=e/(2*r):r>=.5&&1>r&&(i=e/(2*(1-r))),[t[0],100*i,100*r]},a.hcg.hwb=function(t){var e=t[1]/100,n=t[2]/100,r=e+n*(1-e);return[t[0],100*(r-e),100*(1-r)]},a.hwb.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=1-n,i=r-e,s=0;return 1>i&&(s=(r-i)/(1-i)),[t[0],100*i,100*s]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=(e<<16)+(e<<8)+e,r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r},a.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}},{"color-name":7}],5:[function(t,e,n){function r(t){var e=function(e){return void 0===e||null===e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}function i(t){var e=function(e){if(void 0===e||null===e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"==typeof n)for(var r=n.length,i=0;r>i;i++)n[i]=Math.round(n[i]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}var s=t("./conversions"),o=t("./route"),a={},u=Object.keys(s);u.forEach(function(t){a[t]={},Object.defineProperty(a[t],"channels",{value:s[t].channels}),Object.defineProperty(a[t],"labels",{value:s[t].labels});var e=o(t),n=Object.keys(e);n.forEach(function(n){var s=e[n];a[t][n]=i(s),a[t][n].raw=r(s)})}),e.exports=a},{"./conversions":4,"./route":6}],6:[function(t,e,n){function r(){for(var t={},e=u.length,n=0;e>n;n++)t[u[n]]={distance:-1,parent:null};return t}function i(t){var e=r(),n=[t];for(e[t].distance=0;n.length;)for(var i=n.pop(),s=Object.keys(a[i]),o=s.length,u=0;o>u;u++){var l=s[u],c=e[l];-1===c.distance&&(c.distance=e[i].distance+1,c.parent=i,n.unshift(l))}return e}function s(t,e){return function(n){return e(t(n))}}function o(t,e){for(var n=[e[t].parent,t],r=a[e[t].parent][t],i=e[t].parent;e[i].parent;)n.unshift(e[i].parent),r=s(a[e[i].parent][i],r),i=e[i].parent;return r.conversion=n,r}var a=t("./conversions"),u=Object.keys(a);e.exports=function(t){for(var e=i(t),n={},r=Object.keys(e),s=r.length,a=0;s>a;a++){var u=r[a],l=e[u];null!==l.parent&&(n[u]=o(u,e))}return n}},{"./conversions":4}],7:[function(t,e,n){e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],8:[function(t,e,n){function r(t){if(t){var e=/^#([a-fA-F0-9]{3})$/,n=/^#([a-fA-F0-9]{6})$/,r=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,s=/(\D+)/,o=[0,0,0],a=1,u=t.match(e);if(u){u=u[1];for(var l=0;l<o.length;l++)o[l]=parseInt(u[l]+u[l],16)}else if(u=t.match(n)){u=u[1];for(var l=0;l<o.length;l++)o[l]=parseInt(u.slice(2*l,2*l+2),16)}else if(u=t.match(r)){for(var l=0;l<o.length;l++)o[l]=parseInt(u[l+1]);a=parseFloat(u[4])}else if(u=t.match(i)){for(var l=0;l<o.length;l++)o[l]=Math.round(2.55*parseFloat(u[l+1]));a=parseFloat(u[4])}else if(u=t.match(s)){if("transparent"==u[1])return[0,0,0,0];if(o=w[u[1]],!o)return}for(var l=0;l<o.length;l++)o[l]=b(o[l],0,255);return a=a||0==a?b(a,0,1):1,o[3]=a,o}}function i(t){if(t){var e=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,n=t.match(e);if(n){var r=parseFloat(n[4]),i=b(parseInt(n[1]),0,360),s=b(parseFloat(n[2]),0,100),o=b(parseFloat(n[3]),0,100),a=b(isNaN(r)?1:r,0,1);return[i,s,o,a]}}}function s(t){if(t){var e=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,n=t.match(e);if(n){var r=parseFloat(n[4]),i=b(parseInt(n[1]),0,360),s=b(parseFloat(n[2]),0,100),o=b(parseFloat(n[3]),0,100),a=b(isNaN(r)?1:r,0,1);
|
|
return[i,s,o,a]}}}function o(t){var e=r(t);return e&&e.slice(0,3)}function a(t){var e=i(t);return e&&e.slice(0,3)}function u(t){var e=r(t);return e?e[3]:(e=i(t))?e[3]:(e=s(t))?e[3]:void 0}function l(t){return"#"+y(t[0])+y(t[1])+y(t[2])}function c(t,e){return 1>e||t[3]&&t[3]<1?h(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"}function h(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function f(t,e){if(1>e||t[3]&&t[3]<1)return p(t,e);var n=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return"rgb("+n+"%, "+r+"%, "+i+"%)"}function p(t,e){var n=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return"rgba("+n+"%, "+r+"%, "+i+"%, "+(e||t[3]||1)+")"}function d(t,e){return 1>e||t[3]&&t[3]<1?v(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"}function v(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function g(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"}function m(t){return _[t.slice(0,3)]}function b(t,e,n){return Math.min(Math.max(e,t),n)}function y(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var w=t("color-name");e.exports={getRgba:r,getHsla:i,getRgb:o,getHsl:a,getHwb:s,getAlpha:u,hexString:l,rgbString:c,rgbaString:h,percentString:f,percentaString:p,hslString:d,hslaString:v,hwbString:g,keyword:m};var _={};for(var x in w)_[w[x]]=x},{"color-name":7}],9:[function(t,e,n){var r=t("clone"),i=t("color-convert"),s=t("color-string"),o=function(t){if(t instanceof o)return t;if(!(this instanceof o))return new o(t);this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var e;if("string"==typeof t)if(e=s.getRgba(t))this.setValues("rgb",e);else if(e=s.getHsla(t))this.setValues("hsl",e);else{if(!(e=s.getHwb(t)))throw new Error('Unable to parse color from string "'+t+'"');this.setValues("hwb",e)}else if("object"==typeof t)if(e=t,void 0!==e.r||void 0!==e.red)this.setValues("rgb",e);else if(void 0!==e.l||void 0!==e.lightness)this.setValues("hsl",e);else if(void 0!==e.v||void 0!==e.value)this.setValues("hsv",e);else if(void 0!==e.w||void 0!==e.whiteness)this.setValues("hwb",e);else{if(void 0===e.c&&void 0===e.cyan)throw new Error("Unable to parse color from object "+JSON.stringify(t));this.setValues("cmyk",e)}};o.prototype={rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){return 1!==this.values.alpha?this.values.hwb.concat([this.values.alpha]):this.values.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values.rgb;return t.concat([this.values.alpha])},rgbaArrayNormalized:function(){for(var t=this.values.rgb,e=[],n=0;3>n;n++)e[n]=t[n]/255;return e.push(this.values.alpha),e},hslaArray:function(){var t=this.values.hsl;return t.concat([this.values.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t%=360,t=0>t?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return s.hexString(this.values.rgb)},rgbString:function(){return s.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return s.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return s.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return s.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return s.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return s.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return s.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){return this.values.rgb[0]<<16|this.values.rgb[1]<<8|this.values.rgb[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;n<t.length;n++){var r=t[n]/255;e[n]=.03928>=r?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb,e=(299*t[0]+587*t[1]+114*t[2])/1e3;return 128>e},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;3>e;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){return this.values.hsl[2]+=this.values.hsl[2]*t,this.setValues("hsl",this.values.hsl),this},darken:function(t){return this.values.hsl[2]-=this.values.hsl[2]*t,this.setValues("hsl",this.values.hsl),this},saturate:function(t){return this.values.hsl[1]+=this.values.hsl[1]*t,this.setValues("hsl",this.values.hsl),this},desaturate:function(t){return this.values.hsl[1]-=this.values.hsl[1]*t,this.setValues("hsl",this.values.hsl),this},whiten:function(t){return this.values.hwb[1]+=this.values.hwb[1]*t,this.setValues("hwb",this.values.hwb),this},blacken:function(t){return this.values.hwb[2]+=this.values.hwb[2]*t,this.setValues("hwb",this.values.hwb),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){return this.setValues("alpha",this.values.alpha-this.values.alpha*t),this},opaquer:function(t){return this.setValues("alpha",this.values.alpha+this.values.alpha*t),this},rotate:function(t){var e=this.values.hsl[0];return e=(e+t)%360,e=0>e?360+e:e,this.values.hsl[0]=e,this.setValues("hsl",this.values.hsl),this},mix:function(t,e){var n=this,r=t,i=void 0===e?.5:e,s=2*i-1,o=n.alpha()-r.alpha(),a=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,u=1-a;return this.rgb(a*n.red()+u*r.red(),a*n.green()+u*r.green(),a*n.blue()+u*r.blue()).alpha(n.alpha()*i+r.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var t=new o;return t.values=r(this.values),t}},o.prototype.getValues=function(t){for(var e={},n=0;n<t.length;n++)e[t.charAt(n)]=this.values[t][n];return 1!==this.values.alpha&&(e.a=this.values.alpha),e},o.prototype.setValues=function(t,e){var n,r={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},s={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},o=1;if("alpha"===t)o=e;else if(e.length)this.values[t]=e.slice(0,t.length),o=e[t.length];else if(void 0!==e[t.charAt(0)]){for(n=0;n<t.length;n++)this.values[t][n]=e[t.charAt(n)];o=e.a}else if(void 0!==e[r[t][0]]){var a=r[t];for(n=0;n<t.length;n++)this.values[t][n]=e[a[n]];o=e.alpha}if(this.values.alpha=Math.max(0,Math.min(1,void 0===o?this.values.alpha:o)),"alpha"===t)return!1;var u;for(n=0;n<t.length;n++)u=Math.max(0,Math.min(s[t][n],this.values[t][n])),this.values[t][n]=Math.round(u);for(var l in r)for(l!==t&&(this.values[l]=i[t][l](this.values[t])),n=0;n<l.length;n++)u=Math.max(0,Math.min(s[l][n],this.values[l][n])),this.values[l][n]=Math.round(u);return!0},o.prototype.setSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n),this)},o.prototype.setChannel=function(t,e,n){return void 0===n?this.values[t][e]:n===this.values[t][e]?this:(this.values[t][e]=n,this.setValues(t,this.values[t]),this)},e.exports=o},{clone:3,"color-convert":5,"color-string":8}],10:[function(t,e,n){var r=[].slice;e.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var n=r.call(arguments,2);return function(){return e.apply(t,n.concat(r.call(arguments)))}}},{}],11:[function(t,e,n){function r(t){return t?i(t):void 0}function i(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){r.off(t,n),e.apply(this,arguments)}var r=this;return this._callbacks=this._callbacks||{},n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks[t];if(!n)return this;if(1==arguments.length)return delete this._callbacks[t],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===e||r.fn===e){n.splice(i,1);break}return this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks[t];if(n){n=n.slice(0);for(var r=0,i=n.length;i>r;++r)n[r].apply(this,e)}return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},{}],12:[function(t,e,n){var n=e.exports=function(t){t||(t={}),"string"==typeof t&&(t={cookie:t}),void 0===t.cookie&&(t.cookie="");var e={};return e.get=function(e){for(var n=t.cookie.split(/;\s*/),r=0;r<n.length;r++){var i=n[r].split("="),s=unescape(i[0]);if(s===e)return unescape(i[1])}return void 0},e.set=function(e,n,r){r||(r={});var i=escape(e)+"="+escape(n);return r.expires&&(i+="; expires="+r.expires),r.path&&(i+="; path="+escape(r.path)),t.cookie=i,i},e};if("undefined"!=typeof document){var r=n(document);n.get=r.get,n.set=r.set}},{}],13:[function(t,e,n){"use strict";function r(t){var e=""+t,n=i.exec(e);if(!n)return e;var r,s="",o=0,a=0;for(o=n.index;o<e.length;o++){switch(e.charCodeAt(o)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}a!==o&&(s+=e.substring(a,o)),a=o+1,s+=r}return a!==o?s+e.substring(a,o):s}var i=/["'&<>]/;e.exports=r},{}],14:[function(t,e,n){n.read=function(t,e,n,r,i){var s,o,a=8*i-r-1,u=(1<<a)-1,l=u>>1,c=-7,h=n?i-1:0,f=n?-1:1,p=t[e+h];for(h+=f,s=p&(1<<-c)-1,p>>=-c,c+=a;c>0;s=256*s+t[e+h],h+=f,c-=8);for(o=s&(1<<-c)-1,s>>=-c,c+=r;c>0;o=256*o+t[e+h],h+=f,c-=8);if(0===s)s=1-l;else{if(s===u)return o?NaN:(p?-1:1)*(1/0);o+=Math.pow(2,r),s-=l}return(p?-1:1)*o*Math.pow(2,s-r)},n.write=function(t,e,n,r,i,s){var o,a,u,l=8*s-i-1,c=(1<<l)-1,h=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:s-1,d=r?1:-1,v=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),e+=o+h>=1?f/u:f*Math.pow(2,1-h),e*u>=2&&(o++,u/=2),o+h>=c?(a=0,o=c):o+h>=1?(a=(e*u-1)*Math.pow(2,i),o+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[n+p]=255&a,p+=d,a/=256,i-=8);for(o=o<<i|a,l+=i;l>0;t[n+p]=255&o,p+=d,o/=256,l-=8);t[n+p-d]|=128*v}},{}],15:[function(t,e,n){var r={};e.exports=function(t,e){if(!r[t]){r[t]=!0;var n=document.createElement("style");n.setAttribute("type","text/css"),"textContent"in n?n.textContent=t:n.styleSheet.cssText=t;var i=document.getElementsByTagName("head")[0];e&&e.prepend?i.insertBefore(n,i.childNodes[0]):i.appendChild(n)}}},{}],16:[function(t,e,n){var r=Array.isArray,i=Object.prototype.toString;e.exports=r||function(t){return!!t&&"[object Array]"==i.call(t)}},{}],17:[function(t,e,n){var r,i=Object.prototype,s=i.hasOwnProperty,o=i.toString;"function"==typeof Symbol&&(r=Symbol.prototype.valueOf);var a=function(t){return t!==t},u={"boolean":1,number:1,string:1,undefined:1},l=/^([A-Za-z0-9+\/]{4})*([A-Za-z0-9+\/]{4}|[A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{2}==)$/,c=/^[A-Fa-f0-9]+$/,h=e.exports={};h.a=h.type=function(t,e){return typeof t===e},h.defined=function(t){return"undefined"!=typeof t},h.empty=function(t){var e,n=o.call(t);if("[object Array]"===n||"[object Arguments]"===n||"[object String]"===n)return 0===t.length;if("[object Object]"===n){for(e in t)if(s.call(t,e))return!1;return!0}return!1},h.equal=function(t,e){var n=t===e;if(n)return!0;var r,i=o.call(t);if(i!==o.call(e))return!1;if("[object Object]"===i){for(r in t)if(!(h.equal(t[r],e[r])&&r in e))return!1;for(r in e)if(!(h.equal(t[r],e[r])&&r in t))return!1;return!0}if("[object Array]"===i){if(r=t.length,r!==e.length)return!1;for(;--r;)if(!h.equal(t[r],e[r]))return!1;return!0}return"[object Function]"===i?t.prototype===e.prototype:"[object Date]"===i?t.getTime()===e.getTime():n},h.hosted=function(t,e){var n=typeof e[t];return"object"===n?!!e[t]:!u[n]},h.instance=h["instanceof"]=function(t,e){return t instanceof e},h.nil=h["null"]=function(t){return null===t},h.undef=h.undefined=function(t){return"undefined"==typeof t},h.args=h.arguments=function(t){var e="[object Arguments]"===o.call(t),n=!h.array(t)&&h.arraylike(t)&&h.object(t)&&h.fn(t.callee);return e||n},h.array=function(t){return"[object Array]"===o.call(t)},h.args.empty=function(t){return h.args(t)&&0===t.length},h.array.empty=function(t){return h.array(t)&&0===t.length},h.arraylike=function(t){return!!t&&!h["boolean"](t)&&s.call(t,"length")&&isFinite(t.length)&&h.number(t.length)&&t.length>=0},h["boolean"]=function(t){return"[object Boolean]"===o.call(t)},h["false"]=function(t){return h["boolean"](t)&&Boolean(Number(t))===!1},h["true"]=function(t){return h["boolean"](t)&&Boolean(Number(t))===!0},h.date=function(t){return"[object Date]"===o.call(t)},h.element=function(t){return void 0!==t&&"undefined"!=typeof HTMLElement&&t instanceof HTMLElement&&1===t.nodeType},h.error=function(t){return"[object Error]"===o.call(t)},h.fn=h["function"]=function(t){var e="undefined"!=typeof window&&t===window.alert;return e||"[object Function]"===o.call(t)},h.number=function(t){return"[object Number]"===o.call(t)},h.infinite=function(t){return t===1/0||t===-(1/0)},h.decimal=function(t){return h.number(t)&&!a(t)&&!h.infinite(t)&&t%1!==0},h.divisibleBy=function(t,e){var n=h.infinite(t),r=h.infinite(e),i=h.number(t)&&!a(t)&&h.number(e)&&!a(e)&&0!==e;return n||r||i&&t%e===0},h["int"]=function(t){return h.number(t)&&!a(t)&&t%1===0},h.maximum=function(t,e){if(a(t))throw new TypeError("NaN is not a valid value");if(!h.arraylike(e))throw new TypeError("second argument must be array-like");for(var n=e.length;--n>=0;)if(t<e[n])return!1;return!0},h.minimum=function(t,e){if(a(t))throw new TypeError("NaN is not a valid value");if(!h.arraylike(e))throw new TypeError("second argument must be array-like");for(var n=e.length;--n>=0;)if(t>e[n])return!1;return!0},h.nan=function(t){return!h.number(t)||t!==t},h.even=function(t){return h.infinite(t)||h.number(t)&&t===t&&t%2===0},h.odd=function(t){return h.infinite(t)||h.number(t)&&t===t&&t%2!==0},h.ge=function(t,e){if(a(t)||a(e))throw new TypeError("NaN is not a valid value");return!h.infinite(t)&&!h.infinite(e)&&t>=e},h.gt=function(t,e){if(a(t)||a(e))throw new TypeError("NaN is not a valid value");return!h.infinite(t)&&!h.infinite(e)&&t>e},h.le=function(t,e){if(a(t)||a(e))throw new TypeError("NaN is not a valid value");return!h.infinite(t)&&!h.infinite(e)&&e>=t},h.lt=function(t,e){if(a(t)||a(e))throw new TypeError("NaN is not a valid value");return!h.infinite(t)&&!h.infinite(e)&&e>t},h.within=function(t,e,n){if(a(t)||a(e)||a(n))throw new TypeError("NaN is not a valid value");if(!h.number(t)||!h.number(e)||!h.number(n))throw new TypeError("all arguments must be numbers");var r=h.infinite(t)||h.infinite(e)||h.infinite(n);return r||t>=e&&n>=t},h.object=function(t){return"[object Object]"===o.call(t)},h.hash=function(t){return h.object(t)&&t.constructor===Object&&!t.nodeType&&!t.setInterval},h.regexp=function(t){return"[object RegExp]"===o.call(t)},h.string=function(t){return"[object String]"===o.call(t)},h.base64=function(t){return h.string(t)&&(!t.length||l.test(t))},h.hex=function(t){return h.string(t)&&(!t.length||c.test(t))},h.symbol=function(t){return"function"==typeof Symbol&&"[object Symbol]"===o.call(t)&&"symbol"==typeof r.call(t)}},{}],18:[function(t,e,n){var r=t("./_root"),i=r.Symbol;e.exports=i},{"./_root":27}],19:[function(t,e,n){function r(t){return null==t?void 0===t?u:a:l&&l in Object(t)?s(t):o(t)}var i=t("./_Symbol"),s=t("./_getRawTag"),o=t("./_objectToString"),a="[object Null]",u="[object Undefined]",l=i?i.toStringTag:void 0;e.exports=r},{"./_Symbol":18,"./_getRawTag":23,"./_objectToString":26}],20:[function(t,e,n){function r(t,e,n,r){for(var o=-1,a=s(i((e-t)/(n||1)),0),u=Array(a);a--;)u[r?a:++o]=t,t+=n;return u}var i=Math.ceil,s=Math.max;e.exports=r},{}],21:[function(t,e,n){function r(t){return function(e,n,r){return r&&"number"!=typeof r&&s(e,n,r)&&(n=r=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),r=void 0===r?n>e?1:-1:o(r),i(e,n,r,t)}}var i=t("./_baseRange"),s=t("./_isIterateeCall"),o=t("./toFinite");e.exports=r},{"./_baseRange":20,"./_isIterateeCall":25,"./toFinite":38}],22:[function(t,e,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],23:[function(t,e,n){function r(t){var e=o.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(i){}var s=a.call(t);return r&&(e?t[u]=n:delete t[u]),s}var i=t("./_Symbol"),s=Object.prototype,o=s.hasOwnProperty,a=s.toString,u=i?i.toStringTag:void 0;e.exports=r},{"./_Symbol":18}],24:[function(t,e,n){function r(t,e){return e=null==e?i:e,!!e&&("number"==typeof t||s.test(t))&&t>-1&&t%1==0&&e>t}var i=9007199254740991,s=/^(?:0|[1-9]\d*)$/;e.exports=r},{}],25:[function(t,e,n){function r(t,e,n){if(!a(n))return!1;var r=typeof e;return("number"==r?s(n)&&o(e,n.length):"string"==r&&e in n)?i(n[e],t):!1}var i=t("./eq"),s=t("./isArrayLike"),o=t("./_isIndex"),a=t("./isObject");e.exports=r},{"./_isIndex":24,"./eq":28,"./isArrayLike":29,"./isObject":34}],26:[function(t,e,n){function r(t){return s.call(t)}var i=Object.prototype,s=i.toString;e.exports=r},{}],27:[function(t,e,n){var r=t("./_freeGlobal"),i="object"==typeof self&&self&&self.Object===Object&&self,s=r||i||Function("return this")();e.exports=s},{"./_freeGlobal":22}],28:[function(t,e,n){function r(t,e){return t===e||t!==t&&e!==e}e.exports=r},{}],29:[function(t,e,n){function r(t){return null!=t&&s(t.length)&&!i(t)}var i=t("./isFunction"),s=t("./isLength");e.exports=r},{"./isFunction":31,"./isLength":32}],30:[function(t,e,n){function r(t){return t===!0||t===!1||s(t)&&i(t)==o}var i=t("./_baseGetTag"),s=t("./isObjectLike"),o="[object Boolean]";e.exports=r},{"./_baseGetTag":19,"./isObjectLike":35}],31:[function(t,e,n){function r(t){if(!s(t))return!1;var e=i(t);return e==a||e==u||e==o||e==l}var i=t("./_baseGetTag"),s=t("./isObject"),o="[object AsyncFunction]",a="[object Function]",u="[object GeneratorFunction]",l="[object Proxy]";e.exports=r},{"./_baseGetTag":19,"./isObject":34}],32:[function(t,e,n){function r(t){return"number"==typeof t&&t>-1&&t%1==0&&i>=t}var i=9007199254740991;e.exports=r},{}],33:[function(t,e,n){function r(t){return"number"==typeof t||s(t)&&i(t)==o}var i=t("./_baseGetTag"),s=t("./isObjectLike"),o="[object Number]";e.exports=r},{"./_baseGetTag":19,"./isObjectLike":35}],34:[function(t,e,n){function r(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}e.exports=r},{}],35:[function(t,e,n){function r(t){return null!=t&&"object"==typeof t}e.exports=r},{}],36:[function(t,e,n){function r(t){return"symbol"==typeof t||s(t)&&i(t)==o}var i=t("./_baseGetTag"),s=t("./isObjectLike"),o="[object Symbol]";e.exports=r},{"./_baseGetTag":19,"./isObjectLike":35}],37:[function(t,e,n){var r=t("./_createRange"),i=r();e.exports=i},{"./_createRange":21}],38:[function(t,e,n){function r(t){if(!t)return 0===t?t:0;if(t=i(t),t===s||t===-s){var e=0>t?-1:1;return e*o}return t===t?t:0}var i=t("./toNumber"),s=1/0,o=1.7976931348623157e308;e.exports=r},{"./toNumber":39}],39:[function(t,e,n){function r(t){if("number"==typeof t)return t;if(s(t))return o;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=l.test(t);return n||c.test(t)?h(t.slice(2),n?2:8):u.test(t)?o:+t}var i=t("./isObject"),s=t("./isSymbol"),o=NaN,a=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,h=parseInt;e.exports=r},{"./isObject":34,"./isSymbol":36}],40:[function(t,e,n){e.exports='<div\n class="nps-Bar"\n v-transition="nps-slide"\n v-show="visible"\n v-style="background-color: c(\'background\'), color: c(\'foreground\'),\n box-shadow: \'rgba(\' + c(\'shadow\') + \', 0.4) 0 1px 4px 0\',\n border-top: \'1px solid \' + c(\'border\')"\n >\n\n <div class="nps-Bar-close nps-fade" style="position: absolute; right: 10px; top: 0px; font-size: 18px; z-index: 1;" v-if="showCloseIcon" v-transition="nps-fade">\n <nps-button type="simple" action="close">✕</nps-button>\n </div>\n\n <div class="nps-Survey-bounding">\n <div class="nps-Survey-content">\n\n <div v-if="state == \'rating\'" v-transition="next">\n <div class="nps-Title nps-center">{{{ likelyHtml }}}</div>\n <template v-partial="rating"></template>\n </div>\n\n <div v-if="state == \'feedback\'" v-transition="next">\n <template v-partial="feedback"></template>\n </div>\n\n <div v-if="state == \'thanks\'" v-transition="next">\n <template v-partial="thanks"></template>\n </div>\n\n <div v-if="state == \'filled\'" v-transition="next">\n <template v-partial="filled"></template>\n </div>\n\n </div>\n </div>\n\n <template v-partial="powered-by"></template>\n\n\n</div>\n'},{}],41:[function(t,e,n){var r=t("vue"),i=r.extend({methods:{c:function(t){return this.$root.c(t)},t:function(t){return this.$root.t(t)}}});e.exports=i},{vue:126}],42:[function(t,e,n){e.exports='<button type="button"\nclass="nps-Button nps-Button--{{type}}"\ndisabled="{{disabled}}"\nv-style="background-color: background, color: foreground"\nv-on="click: submit"\n>\n <content>\n</button>\n'},{}],43:[function(t,e,n){var r=(t("color"),t("./base")),i=r.extend({template:t("./button.html"),paramAttributes:["action","type","disabled"],data:function(){return{action:"",type:"primary",disabled:!1}},computed:{background:function(){return"primary"===this.type?this.c("primary"):"icon"===this.type?this.c("primary"):"transparent"},foreground:function(){return"primary"===this.type?this.c("background"):"icon"===this.type?this.c("background"):this.c("foreground")}},methods:{submit:function(){this.$dispatch(this.action)}}});e.exports=i},{"./base":41,"./button.html":42,color:9}],44:[function(t,e,n){e.exports='<a href="{{href}}" target="{{target}}" class="nps-Link"\nv-style="background-color: c(\'primary\'), color: c(\'background\')">\n <content>\n</a>\n'},{}],45:[function(t,e,n){var r=(t("color"),t("./base")),i=r.extend({template:t("./link.html"),paramAttributes:["href","target"],data:function(){return{href:"",target:""}}});e.exports=i},{"./base":41,"./link.html":44,color:9}],46:[function(t,e,n){e.exports=' <div class="nps-Scale">\n <div class="nps-Scale-values">\n <div\n class="nps-Scale-value {{disabled ? \'is-disabled\' : \'\'}}"\n v-repeat="number: numbers"\n v-on="mouseenter: highlightValue(number), mouseleave: unhighlightValue, click: setValue(number)"\n >\n <div class="nps-Scale-button" v-style="getButtonStyle(number)">\n <template v-if="showNumbers">{{number}}</template>\n </div>\n </div>\n </div>\n\n <div class="nps-cf">\n <div class="nps-Scale-hint nps-Scale-hint--unlikely" v-style="color: c(\'foreground-light\')">\n {{lowLegend}}\n </div>\n <div class="nps-Scale-hint nps-Scale-hint--likely" v-style="color: c(\'foreground-light\')">\n {{highLegend}}</div>\n </div>\n </div>\n'},{}],47:[function(t,e,n){var r=t("./base"),i=t("is"),s=t("lodash/range");e.exports=r.extend({template:t("./scale.html"),paramAttributes:["action","value","show-numbers","min","max","low-legend","high-legend"],data:function(){return{min:0,max:10,highlightedValue:null,value:null,action:"",showNumbers:!1,lowLegend:"",highLegend:""}},computed:{visibleValue:function(){return i.number(this.highlightedValue)?this.highlightedValue:this.value},numbers:function(){return s(parseInt(this.min,10),parseInt(this.max,10)+1)}},methods:{highlightValue:function(t){this.highlightedValue=t},unhighlightValue:function(){this.highlightedValue=null},setValue:function(t){this.value=t,this.action&&this.$dispatch(this.action,t)},getButtonStyle:function(t){var e=this.visibleValue>=t&&null!=this.visibleValue;return{"background-color":e?this.c("primary"):this.c("light"),color:e?this.c("background"):this.c("foreground")}}}})},{"./base":41,"./scale.html":46,is:17,"lodash/range":37}],48:[function(t,e,n){e.exports='<textarea\n placeholder="{{placeholder}}"\n v-model="value"\n class="nps-Textarea"\n v-style="border-color: focused ? c(\'primary\'): c(\'light\'), background-color: focused ? c(\'background-light\') : c(\'background\'), color: c(\'foreground\')"\n v-on="focus: onFocus, blur: onBlur"\n v-el="textarea"\n></textarea>\n'},{}],49:[function(t,e,n){var r=(t("color"),t("./base")),i=r.extend({template:t("./textarea.html"),paramAttributes:["placeholder","value"],data:function(){return{value:"",placeholder:"",focused:!1}},methods:{focus:function(){this.$$.textarea.focus()},onFocus:function(){this.focused=!0},onBlur:function(){this.focused=!1}}});e.exports=i},{"./base":41,"./textarea.html":48,color:9}],50:[function(t,e,n){e.exports='<div\n class="nps-Dialog\n nps-Dialog--{{vertical}}\n nps-Dialog--{{horizontal}}"\n v-show="visible"\n v-transition="nps-show"\n v-style="border-color: c(\'primary\'), box-shadow: \'rgba(\' + c(\'primary\') + \', 0.4) 0 1px 4px 0\', background-color: c(\'background\'), color: c(\'foreground\')"\n >\n\n <div style="position: absolute; right: 0px; top: 0px; font-size: 18px;">\n <nps-button\n type="icon"\n v-if="showCloseIcon"\n action="close"\n v-transition="nps-fade"\n >✕</nps-button>\n </div>\n\n <div class="nps-Survey-bounding">\n <div class="nps-Survey-content">\n\n <div v-if="state == \'rating\'" v-transition="next">\n <div class="nps-Title">{{{ likelyHtml }}}</div>\n <template v-partial="rating"></template>\n <div v-partial="powered-by"></div>\n </div>\n\n <div v-if="state == \'feedback\'" v-transition="next">\n <div v-partial="feedback"></div>\n <div v-partial="powered-by" class="nps-Dialog-FeedbackPoweredBy"></div>\n </div>\n\n <div v-if="state == \'thanks\'" v-transition="next">\n <div v-partial="thanks"></div>\n <div v-partial="powered-by"></div>\n </div>\n\n <div v-if="state == \'filled\'" v-transition="next">\n <div v-partial="filled"></div>\n <div v-partial="powered-by"></div>\n </div>\n\n </div>\n </div>\n\n</div>\n'},{}],51:[function(t,e,n){e.exports='\n<div\nclass="nps-Feedback"\n>\n\n <template v-repeat="question: questions">\n <div class="nps-Title nps-left">{{question.label}}</div>\n\n <div style="padding-bottom: 20px;">\n <nps-scale value="{{answers[$index].value}}" show-numbers="{{showNumbers}}" min="1" max="5" low-legend="{{legend(\'low\', $index)}}" high-legend="{{legend(\'high\', $index)}}"></nps-scale>\n </div>\n </template>\n\n <div class="nps-Title nps-left">{{ t(\'FOLLOWUP\') }}</div>\n\n <div\n class="nps-Feedback-reason"\n v-if="hasReasons"\n >\n <label v-repeat="r: t(\'REASONS\')" v-el="reasons">\n <input type="radio" name="nps-reason" v-model="reason" value="{{r}}"> {{r}}\n </label>\n </div>\n\n <nps-textarea value="{{feedback}}" v-ref="feedback" placeholder="{{t(\'DETAILS\')}}"></nps-textarea>\n\n <div class="nps-cf">\n <div style="margin-top: 10px; float: right;">\n <nps-button action="submit" disabled="{{submitDisabled}}">{{t(\'SUBMIT\')}}</nps-button>\n </div>\n </div>\n</div>\n'},{}],52:[function(t,e,n){e.exports='<div class="nps-Filled">\n <div class="nps-Title">{{t(\'THANKS\')}}</div>\n</div>\n'},{}],53:[function(t,e,n){function r(t){t=t||{};var e={};o.forEach(function(n){i.defined(t[n])&&(e[n]=t[n])}),i.defined(t.preview)&&(e.embed=t.preview),e.state||(e.state=i.number(e.rating)?"feedback":"rating"),this.survey=new s({data:e}),this.survey.$mount(),this.survey.$appendTo(t.parent||document.body)}var i=t("is"),s=t("./survey"),o=["rating","feedback","reason","visible","state","translation","serviceName","poweredBy","skin","theme","position","embed","test","showNumbers","requireFeedback","colors","questions","answers","size"];r.prototype={get el(){return this.survey.$el},destroy:function(){this.survey.$destroy(!0)},remove:function(){this.survey.$remove()},on:function(t,e){return this.survey.$on(t,e)},show:function(){this.survey.show()},hide:function(){this.survey.hide()}},o.forEach(function(t){Object.defineProperty(r.prototype,t,{get:function(){return this.survey[t]},set:function(e){this.survey[t]=e}})}),Object.defineProperty(r.prototype,"preview",{get:function(){return this.survey.embed},set:function(t){this.survey.embed=t}}),e.exports=r},{"./survey":60,is:17}],54:[function(t,e,n){e.exports='.nps-fade{opacity:1;-webkit-transition:opacity 500ms;transition:opacity 500ms}.nps-fade-enter,.nps-fade-leave{opacity:0}.nps-slide-enter,.nps-slide-leave{bottom:-600px !important}.nps-next{-webkit-transition:height 500ms;transition:height 500ms}.nps-next>div{-webkit-transition:top 500ms;transition:top 500ms}.nps-next>div>div{-webkit-transition:opacity 500ms;transition:opacity 500ms}.nps-expand{max-height:800px;overflow:hidden;-webkit-transition:max-height 500ms, opacity 500ms;transition:max-height 500ms, opacity 500ms}.nps-expand-enter,.nps-expand-leave{max-height:0px;opacity:0}.nps-Bar{position:fixed;bottom:0;left:0;right:0;text-align:center;-webkit-transition:bottom 500ms;transition:bottom 500ms;z-index:2147483647;padding:0 20px;max-height:100vh;overflow:auto}.nps-embed .nps-Bar{position:absolute;max-height:100%}.nps-Bar .nps-PoweredBy{position:absolute;bottom:10px;right:20px}.nps-embed .nps-Bar .nps-PoweredBy{display:none}@media (max-width: 700px){.nps-Bar .nps-PoweredBy{display:none}}.nps-Bar .nps-Scale{margin-left:auto;margin-right:auto}.nps-Bar .nps-Survey-bounding{max-width:600px;margin:20px auto}.nps-Bar .nps-Title{font-size:14px}.nps-Dialog{background-color:white;border-width:2px;border-style:solid;margin:auto;padding:20px;position:fixed;width:417px;z-index:2147483647;-webkit-transition:all 500ms;transition:all 500ms;box-sizing:border-box}.nps-embed .nps-Dialog{position:absolute}.nps-Dialog--top{top:20px}.nps-Dialog--middle{top:50%;-webkit-transform:translate(0, -50%);transform:translate(0, -50%)}.nps-Dialog--bottom{bottom:20px}.nps-Dialog--left{-webkit-transition:left 500ms;transition:left 500ms;left:20px}.nps-Dialog--left.nps-show-enter,.nps-Dialog--left.nps-show-leave{left:-500px}.nps-Dialog--center{left:0;right:0}.nps-Dialog--center.nps-Dialog--top.nps-show-enter,.nps-Dialog--center.nps-Dialog--top.nps-show-leave{top:-500px}.nps-Dialog--center.nps-Dialog--middle{-webkit-transform:translate(0, -50%) scale(1);transform:translate(0, -50%) scale(1)}.nps-Dialog--center.nps-Dialog--middle.nps-show-enter,.nps-Dialog--center.nps-Dialog--middle.nps-show-leave{-webkit-transform:translate(0, -50%) scale(0);transform:translate(0, -50%) scale(0)}.nps-Dialog--center.nps-Dialog--bottom{bottom:20px}.nps-Dialog--center.nps-Dialog--bottom.nps-show-enter,.nps-Dialog--center.nps-Dialog--bottom.nps-show-leave{bottom:-500px}.nps-Dialog--right{right:20px}.nps-Dialog--right.nps-show-enter,.nps-Dialog--right.nps-show-leave{right:-500px}.nps-Dialog .nps-Title{margin-right:20px}.nps-Dialog-close{float:right;font-weight:bold;padding:0;cursor:pointer;background:transparent;border:0;font-size:16px;width:30px;height:30px;color:white;position:absolute;right:0;top:0}.nps-Dialog-close:focus{outline:0}.nps-Dialog-FeedbackPoweredBy{position:absolute;bottom:0;line-height:30px;left:0}.nps-Feedback{text-align:left}.nps-Feedback-reason{margin-top:10px}.nps-Feedback-reason label{display:block;font-weight:normal}.nps-Feedback-reason input{margin-right:8px;margin-left:4px;position:relative;top:-2px}.nps-Feedback-submit{margin-top:10px;float:right}.nps-Panel{border-width:2px;border-style:solid;background-color:white}.nps-Panel{font-size:16px;color:#333;max-width:600px;min-width:375px;margin:20px auto;padding:20px}@media (max-width: 480px){.nps-Survey .nps-Panel{border-width:0;min-width:initial;font-size:14px;box-shadow:none}}.nps-Panel .nps-Survey--powered-by{line-height:38px}.nps-Panel .nps-Title{font-size:18px}.nps-Panel .nps-Rating{margin-bottom:20px}.nps-PoweredBy{font-size:12px;margin-top:20px}.nps-PoweredBy>a{text-decoration:none;font-weight:bold}.nps-Survey{color:#333;font-family:sans-serif;font-weight:normal;font-size:14px;line-height:1.42857143}.nps-Survey-buttons{float:right;margin-top:14px}.nps-Survey-bounding{position:relative;overflow:hidden}.nps-Survey-content{position:relative;top:0}.nps-Title{font-size:16px}.nps-cf:before,.nps-cf:after{content:" ";display:table}.nps-cf:after{clear:both}.nps-left{text-align:left}.nps-center{text-align:center}.nps-margin-t20{margin-top:20px}.nps-Button{display:inline-block;zoom:1;line-height:normal;white-space:nowrap;vertical-align:baseline;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:inherit;font-size:100%;padding:0.5em 1em;text-decoration:none;border:0}.nps-Button::-moz-focus-inner{padding:0;border:0}.nps-Button:focus{outline:0}.nps-Button[disabled]{border:none;background-image:none;opacity:0.40;cursor:default;box-shadow:none}.nps-Button--simple{border:0;cursor:pointer;padding:10px}.nps-Button--icon{width:30px;height:30px;padding:0}.nps-Button--simple:focus,.nps-Button--simple:hover{outline:none}.nps-Link{padding:0.5em 1em;text-decoration:none}.nps-Textarea{margin-top:14px;height:80px;border-width:2px;border-style:solid;font-size:14px;padding:7px 10px;width:100%;resize:vertical;box-sizing:border-box;-webkit-transition:border-color 300ms, background-color 300ms;transition:border-color 300ms, background-color 300ms}.nps-Textarea:focus{outline:0}.nps-Scale{margin-top:14px;display:inline-block}.nps-Scale-values{margin-bottom:4px;text-align:center}.nps-Scale-value{display:inline-block;padding-right:2px;vertical-align:middle;line-height:1;font-size:1.5em}.nps-Scale-value:last-of-type{padding-right:0}.nps-Scale-value:hover{cursor:pointer}.nps-Scale-button{border-radius:50%;width:32px;height:32px;text-align:center;line-height:32px;font-size:12px}@media (max-width: 480px){.nps-Scale-button{width:22px;height:22px;line-height:22px}}.nps-small .nps-Scale-button{width:22px;height:22px;line-height:22px}.nps-Scale-hint{font-size:12px;font-style:italic}.nps-Scale-hint--unlikely{float:left;padding-right:10px}.nps-Scale-hint--likely{float:right;padding-left:10px}.nps-Survey[dir="rtl"] .nps-Scale-hint--unlikely{float:right}.nps-Survey[dir="rtl"] .nps-Scale-hint--likely{float:left}';
|
|
},{}],55:[function(t,e,n){e.exports={US:"us",HOW_LIKELY_US:"How likely are you to recommend us to your friends and colleagues?",HOW_LIKELY:"How likely are you to recommend {{service_name}} to your friends and colleagues?",UNLIKELY:"Not at all likely",LIKELY:"Extremely likely",FOLLOWUP:"What could we do to improve?",DISMISS:"Close",SUBMIT:"Submit Feedback",THANKS:"Thank you for your feedback!",FILLED:"You have already filled the survey.",POWERED_BY:"Powered by %s",LOW_LEGEND:"Disagree",HIGH_LEGEND:"Agree"}},{}],56:[function(t,e,n){e.exports='<div\n class="nps-Panel"\n v-show="visible"\n v-style="border-color: c(\'primary\'), box-shadow: \'rgba(\' + c(\'primary\') + \', 0.4) 0 1px 4px 0\', background-color: c(\'background\'), color: c(\'foreground\')"\n >\n\n <div class="nps-Survey-bounding">\n <div class="nps-Survey-content">\n\n <div v-if="state == \'rating\' || state == \'feedback\'" v-transition="next">\n <div class="nps-Title">{{{ likelyHtml }}}</div>\n <div v-partial="rating"></div>\n\n <div v-if="state == \'feedback\'" v-transition="nps-expand" class="nps-expand">\n <div v-partial="feedback"></div>\n </div>\n </div>\n\n <div v-partial="thanks" v-if="state == \'thanks\'" v-transition="next"></div>\n <div v-partial="filled" v-if="state == \'filled\'" v-transition="next"></div>\n\n </div>\n </div>\n\n</div>\n\n<div v-partial="powered-by" class="nps-center"></div>\n'},{}],57:[function(t,e,n){e.exports='<div\n class="nps-PoweredBy"\n v-if="poweredBy"\n >\n {{{ poweredByHtml }}}\n</div>\n'},{}],58:[function(t,e,n){e.exports='<div\n class="nps-Rating"\n >\n\n <nps-scale value="{{rating}}" show-numbers="{{showNumbers}}" action="selectRating" min="0" max="10" low-legend="{{t(\'UNLIKELY\')}}" high-legend="{{t(\'LIKELY\')}}">\n\n</div>\n'},{}],59:[function(t,e,n){e.exports='<div class="nps-Survey {{surveyClass}}" dir="{{direction}}" v-on="keydown: stopPropagation">\n <template v-partial="{{skin}}">\n</div>\n'},{}],60:[function(t,e,n){var r=t("vue"),i=t("color"),s=t("insert-css"),o=t("component-bind"),a=t("escape-html"),u=t("is"),l=t("vue/src/util/dom"),h=t("./messages");s(t("./index.scss"));var f={gray:"#666",pink:"#ff4981",green:"#4CD964",blue:"#007AFF",red:"#FF3A2D",yellow:"#FFCC00",orange:"#FF9500",violet:"#C643FC",lightBlue:"#3FA2D9",darkGreen:"#2FB12C"},p="rating",d="feedback",v="thanks",g="dialog",m="bar",b=r.extend({template:t("./survey.html"),partials:{rating:t("./rating.html"),feedback:t("./feedback.html"),thanks:t("./thanks.html"),filled:t("./filled.html"),"powered-by":t("./powered-by.html"),panel:t("./panel.html"),dialog:t("./dialog.html"),bar:t("./bar.html")},components:{"nps-textarea":t("./components/textarea"),"nps-button":t("./components/button"),"nps-link":t("./components/link"),"nps-scale":t("./components/scale")},replace:!0,data:function(){return{rating:null,feedback:"",reason:"",answers:[],visible:!1,state:p,translation:null,serviceName:null,poweredBy:!0,skin:g,embed:!1,position:"cr",test:!1,showNumbers:!1,requireFeedback:!1,colors:{background:"#FDFDFD",foreground:"#333",primary:"#ff4981"},size:"normal"}},computed:{questions:function(){return this.t("QUESTIONS")||[]},showCloseIcon:function(){return this.state===d||this.state===p},showFeedbackText:function(){return this.state===d},ratings:function(){return[0,1,2,3,4,5,6,7,8,9,10].map(o(this,function(t){var e=u.number(this.visibleRating)&&t<=this.visibleRating;return{rating:t,color:e?c("primary"):c("light")}}))},likelyHtml:function(){var t=u.string(this.serviceName)?this.serviceName.trim():null,e=this.t("HOW_LIKELY_US"),n=this.t("HOW_LIKELY").replace("%s","{{service_name}}");if(!t&&e)return a(e);var r=t?"<b>"+a(t)+"</b>":this.t("US");return"<span>"+a(n).replace("{{service_name}}",r)+"</span>"},poweredByHtml:function(){var t='<a href="https://satismeter.com" style="color: '+this.c("primary")+'" target="_blank">SatisMeter</a>';return a(this.t("POWERED_BY")).replace("%s",t)},hasReasons:function(){var t=this.t("REASONS");return t&&t.length>0},hasQuestions:function(){var t=this.t("QUESTIONS");return t&&t.length>0},vertical:function(){switch(this.position[0]){case"b":return"bottom";case"t":return"top";default:return"middle"}},horizontal:function(){switch(this.position[1]){case"l":return"left";case"r":return"right";default:return"center"}},surveyClass:function(){var t=[];return this.size&&t.push("nps-"+this.size),this.embed&&t.push("nps-embed"),t.join(" ")},category:function(){return u.number(this.rating)?this.rating<=6?"detractor":this.rating<=8?"passive":"promoter":null},direction:function(){return this._t("DIRECTION")||"ltr"},submitDisabled:function(){return this.requireFeedback&&!this.feedback}},ready:function(){this.initAnswers()},watch:{questions:function(){this.initAnswers()}},methods:{initAnswers:function(){this.answers=this.questions.map(function(t){return{name:t.name,label:t.label,value:null}})},inState:function(){var t=Array.prototype.slice.call(arguments);return-1!==t.indexOf(this.state)},nextTick:function(t){r.nextTick(o(this,function(){this._isDestroyed||t.call(this)}))},setTimeout:function(t,e){setTimeout(o(this,function(){this._isDestroyed||t.call(this)}),e)},_t:function(t){return this.translation&&this.translation[t]?this.translation[t]:h[t]},t:function(t){var e;if("FOLLOWUP"===t){if(e=this.t("IMPROVE"))return e;if(e=this.t("THANKS_IMPROVE"))return e}return this.category&&(e=this._t(t+"_"+this.category.toUpperCase()))?e:this._t(t,e)},_c:function(t){return this.colors[t]?this.colors[t]:"light"===t?i(this.colors.primary).mix(i(this.colors.background),.4).hexString():"background-light"===t?i(this.colors.primary).mix(i(this.colors.background),.04).hexString():"foreground-light"===t?i(this.colors.foreground).mix(i(this.colors.background),.6).hexString():"shadow"===t?i(this.colors.foreground).mix(i(this.colors.background),.1).hexString():"border"===t?i(this.colors.foreground).mix(i(this.colors.background),.15).hexString():void 0},c:function(t){var e=this._c(t);return e&&f[e]?f[e]:e},show:function(){this.visible=!0},hide:function(){this.visible=!1},stopPropagation:function(t){t.stopPropagation()},legend:function(t,e){var n=this.questions[e];return"low"===t?n&&n.lowLegend||this.t("LOW_LEGEND"):n&&n.highLegend||this.t("HIGH_LEGEND")}},events:{submit:function(){this.$dispatch("submit"),this.state=v,(this.skin===g||this.skin===m)&&this.setTimeout(function(){this.hide()},800)},selectRating:function(t){this.rating=t,this.state=d,this.$emit("ratingSelect"),this.setTimeout(function(){this.hasReasons?this.$$.reasons[0].focus():this.hasQuestions||this.$.feedback.focus()},400)},close:function(){this.hide(),this.$emit("dismiss")}},transitions:{next:{leave:function(t,e){return this.test?e():this.visible?(this.leave=t,void this.setTimeout(function(){e(),delete this.leave},600)):e()},enter:function(t,e){if(this.test)return e();if(!this.visible)return e();var n=t.parentNode,r=n.parentNode,i=this.leave;r.style.height=getComputedStyle(i||t).height,n.style.top=0,i&&(i.style.opacity=1),this.setTimeout(function(){l.addClass(r,"nps-next"),this.setTimeout(function(){n.style.top="-"+r.style.height,r.style.height=getComputedStyle(t).height,i&&(i.style.opacity=0),this.setTimeout(function(){l.removeClass(r,"nps-next"),n.style.top="",i&&(i.style.display="none"),r.style.height="",e()},500)},0)},0)}}}});e.exports=b},{"./bar.html":40,"./components/button":43,"./components/link":45,"./components/scale":47,"./components/textarea":49,"./dialog.html":50,"./feedback.html":51,"./filled.html":52,"./index.scss":54,"./messages":55,"./panel.html":56,"./powered-by.html":57,"./rating.html":58,"./survey.html":59,"./thanks.html":61,color:9,"component-bind":10,"escape-html":13,"insert-css":15,is:17,vue:126,"vue/src/util/dom":120}],61:[function(t,e,n){e.exports='<div class="nps-Thanks">\n <div class="nps-Title">{{t(\'THANKS\')}}</div>\n\n <div v-if="t(\'PROMOTION_INTRO\')" class="nps-Title nps-margin-t20">{{t(\'PROMOTION_INTRO\')}}</div>\n\n <template v-if="t(\'PROMOTION_TEXT\')">\n <div style="margin-top: 20px">\n <nps-link target="_blank" href="{{t(\'PROMOTION_LINK\')}}">{{t(\'PROMOTION_TEXT\')}}</nps-link> \n </div>\n </template>\n\n <div v-if="t(\'PROMOTION_OUTRO\')" class="nps-Title nps-margin-t20">{{t(\'PROMOTION_OUTRO\')}}</div>\n\n</div>\n'},{}],62:[function(t,e,n){e.exports=function(t,e,n){for(var r=0,i=t.length,s=3==arguments.length?n:t[r++];i>r;)s=e.call(null,s,t[r],++r,t);return s}},{}],63:[function(t,e,n){function r(){}function i(t){var e={}.toString.call(t);switch(e){case"[object File]":case"[object Blob]":case"[object FormData]":return!0;default:return!1}}function s(){if(m.XMLHttpRequest&&("file:"!=m.location.protocol||!m.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}return!1}function o(t){return t===Object(t)}function a(t){if(!o(t))return t;var e=[];for(var n in t)null!=t[n]&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e.join("&")}function u(t){for(var e,n,r={},i=t.split("&"),s=0,o=i.length;o>s;++s)n=i[s],e=n.split("="),r[decodeURIComponent(e[0])]=decodeURIComponent(e[1]);return r}function l(t){var e,n,r,i,s=t.split(/\r?\n/),o={};s.pop();for(var a=0,u=s.length;u>a;++a)n=s[a],e=n.indexOf(":"),r=n.slice(0,e).toLowerCase(),i=b(n.slice(e+1)),o[r]=i;return o}function c(t){return t.split(/ *; */).shift()}function h(t){return g(t.split(/ *; */),function(t,e){var n=e.split(/ *= */),r=n.shift(),i=n.shift();return r&&i&&(t[r]=i),t},{})}function f(t,e){e=e||{},this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!=this.req.method?this.xhr.responseText:null,this.setStatusProperties(this.xhr.status),this.header=this.headers=l(this.xhr.getAllResponseHeaders()),this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this.setHeaderProperties(this.header),this.body="HEAD"!=this.req.method?this.parseBody(this.text):null}function p(t,e){var n=this;v.call(this),this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",function(){var t=null,e=null;try{e=new f(n)}catch(r){t=new Error("Parser is unable to parse the response"),t.parse=!0,t.original=r}n.callback(t,e)})}function d(t,e){return"function"==typeof e?new p("GET",t).end(e):1==arguments.length?new p("GET",t):new p(t,e)}var v=t("emitter"),g=t("reduce"),m="undefined"==typeof window?this:window,b="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};d.serializeObject=a,d.parseString=u,d.types={html:"text/html",json:"application/json",xml:"application/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},d.serialize={"application/x-www-form-urlencoded":a,"application/json":JSON.stringify},d.parse={"application/x-www-form-urlencoded":u,"application/json":JSON.parse},f.prototype.get=function(t){return this.header[t.toLowerCase()]},f.prototype.setHeaderProperties=function(t){var e=this.header["content-type"]||"";this.type=c(e);var n=h(e);for(var r in n)this[r]=n[r]},f.prototype.parseBody=function(t){var e=d.parse[this.type];return e&&t&&t.length?e(t):null},f.prototype.setStatusProperties=function(t){var e=t/100|0;this.status=t,this.statusType=e,this.info=1==e,this.ok=2==e,this.clientError=4==e,this.serverError=5==e,this.error=4==e||5==e?this.toError():!1,this.accepted=202==t,this.noContent=204==t||1223==t,this.badRequest=400==t,this.unauthorized=401==t,this.notAcceptable=406==t,this.notFound=404==t,this.forbidden=403==t},f.prototype.toError=function(){var t=this.req,e=t.method,n=t.url,r="cannot "+e+" "+n+" ("+this.status+")",i=new Error(r);return i.status=this.status,i.method=e,i.url=n,i},d.Response=f,v(p.prototype),p.prototype.use=function(t){return t(this),this},p.prototype.timeout=function(t){return this._timeout=t,this},p.prototype.clearTimeout=function(){return this._timeout=0,clearTimeout(this._timer),this},p.prototype.abort=function(){return this.aborted?void 0:(this.aborted=!0,this.xhr.abort(),this.clearTimeout(),this.emit("abort"),this)},p.prototype.set=function(t,e){if(o(t)){for(var n in t)this.set(n,t[n]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},p.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},p.prototype.getHeader=function(t){return this._header[t.toLowerCase()]},p.prototype.type=function(t){return this.set("Content-Type",d.types[t]||t),this},p.prototype.accept=function(t){return this.set("Accept",d.types[t]||t),this},p.prototype.auth=function(t,e){var n=btoa(t+":"+e);return this.set("Authorization","Basic "+n),this},p.prototype.query=function(t){return"string"!=typeof t&&(t=a(t)),t&&this._query.push(t),this},p.prototype.field=function(t,e){return this._formData||(this._formData=new FormData),this._formData.append(t,e),this},p.prototype.attach=function(t,e,n){return this._formData||(this._formData=new FormData),this._formData.append(t,e,n),this},p.prototype.send=function(t){var e=o(t),n=this.getHeader("Content-Type");if(e&&o(this._data))for(var r in t)this._data[r]=t[r];else"string"==typeof t?(n||this.type("form"),n=this.getHeader("Content-Type"),"application/x-www-form-urlencoded"==n?this._data=this._data?this._data+"&"+t:t:this._data=(this._data||"")+t):this._data=t;return e?(n||this.type("json"),this):this},p.prototype.callback=function(t,e){var n=this._callback;return this.clearTimeout(),2==n.length?n(t,e):t?this.emit("error",t):void n(e)},p.prototype.crossDomainError=function(){var t=new Error("Origin is not allowed by Access-Control-Allow-Origin");t.crossDomain=!0,this.callback(t)},p.prototype.timeoutError=function(){var t=this._timeout,e=new Error("timeout of "+t+"ms exceeded");e.timeout=t,this.callback(e)},p.prototype.withCredentials=function(){return this._withCredentials=!0,this},p.prototype.end=function(t){var e=this,n=this.xhr=s(),o=this._query.join("&"),a=this._timeout,u=this._formData||this._data;if(this._callback=t||r,n.onreadystatechange=function(){return 4==n.readyState?0==n.status?e.aborted?e.timeoutError():e.crossDomainError():void e.emit("end"):void 0},n.upload&&(n.upload.onprogress=function(t){t.percent=t.loaded/t.total*100,e.emit("progress",t)}),a&&!this._timer&&(this._timer=setTimeout(function(){e.abort()},a)),o&&(o=d.serializeObject(o),this.url+=~this.url.indexOf("?")?"&"+o:"?"+o),n.open(this.method,this.url,!0),this._withCredentials&&(n.withCredentials=!0),"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof u&&!i(u)){var l=d.serialize[this.getHeader("Content-Type")];l&&(u=l(u))}for(var c in this.header)null!=this.header[c]&&n.setRequestHeader(c,this.header[c]);return this.emit("request",this),n.send(u),this},d.Request=p,d.get=function(t,e,n){var r=d("GET",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},d.head=function(t,e,n){var r=d("HEAD",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},d.del=function(t,e){var n=d("DELETE",t);return e&&n.end(e),n},d.patch=function(t,e,n){var r=d("PATCH",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},d.post=function(t,e,n){var r=d("POST",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},d.put=function(t,e,n){var r=d("PUT",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},e.exports=d},{emitter:11,reduce:62}],64:[function(t,e,n){(function(t){var n,r=t.crypto||t.msCrypto;if(r&&r.getRandomValues){var i=new Uint8Array(16);n=function(){return r.getRandomValues(i),i}}if(!n){var s=new Array(16);n=function(){for(var t,e=0;16>e;e++)0===(3&e)&&(t=4294967296*Math.random()),s[e]=t>>>((3&e)<<3)&255;return s}}e.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],65:[function(t,e,n){function r(t,e,n){var r=e&&n||0,i=0;for(e=e||[],t.toLowerCase().replace(/[0-9a-f]{2}/g,function(t){16>i&&(e[r+i++]=l[t])});16>i;)e[r+i++]=0;return e}function i(t,e){var n=e||0,r=u;return r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]}function s(t,e,n){var r=e&&n||0,s=e||[];t=t||{};var o=void 0!==t.clockseq?t.clockseq:p,a=void 0!==t.msecs?t.msecs:(new Date).getTime(),u=void 0!==t.nsecs?t.nsecs:v+1,l=a-d+(u-v)/1e4;if(0>l&&void 0===t.clockseq&&(o=o+1&16383),(0>l||a>d)&&void 0===t.nsecs&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=a,v=u,p=o,a+=122192928e5;var c=(1e4*(268435455&a)+u)%4294967296;s[r++]=c>>>24&255,s[r++]=c>>>16&255,s[r++]=c>>>8&255,s[r++]=255&c;var h=a/4294967296*1e4&268435455;s[r++]=h>>>8&255,s[r++]=255&h,s[r++]=h>>>24&15|16,s[r++]=h>>>16&255,s[r++]=o>>>8|128,s[r++]=255&o;for(var g=t.node||f,m=0;6>m;m++)s[r+m]=g[m];return e?e:i(s)}function o(t,e,n){var r=e&&n||0;"string"==typeof t&&(e="binary"==t?new Array(16):null,t=null),t=t||{};var s=t.random||(t.rng||a)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,e)for(var o=0;16>o;o++)e[r+o]=s[o];return e||i(s)}for(var a=t("./rng"),u=[],l={},c=0;256>c;c++)u[c]=(c+256).toString(16).substr(1),l[u[c]]=c;var h=a(),f=[1|h[0],h[1],h[2],h[3],h[4],h[5]],p=16383&(h[6]<<8|h[7]),d=0,v=0,g=o;g.v1=s,g.v4=o,g.parse=r,g.unparse=i,e.exports=g},{"./rng":64}],66:[function(t,e,n){var r=t("../util");n.$addChild=function(t,e){e=e||r.Vue,t=t||{};var n,i=this,s=void 0!==t.inherit?t.inherit:e.options.inherit;if(s){var o=i._childCtors;if(n=o[e.cid],!n){var a=e.options.name,u=a?r.camelize(a,!0):"VueComponent";n=new Function("return function "+u+" (options) {this.constructor = "+u+";this._init(options) }")(),n.options=e.options,n.prototype=this,o[e.cid]=n}}else n=e;t._parent=i,t._root=i.$root;var l=new n(t);return this._children.push(l),l}},{"../util":123}],67:[function(t,e,n){var r=t("../util"),i=t("../watcher"),s=t("../parsers/path"),o=t("../parsers/text"),a=t("../parsers/directive"),u=t("../parsers/expression"),l=/[^|]\|[^|]/;n.$get=function(t){var e=u.parse(t);return e?e.get.call(this,this):void 0},n.$set=function(t,e){var n=u.parse(t,!0);n&&n.set&&n.set.call(this,this,e)},n.$add=function(t,e){this._data.$add(t,e)},n.$delete=function(t){this._data.$delete(t)},n.$watch=function(t,e,n,r){var s=this,o=n?t+"**deep**":t,a=s._userWatchers[o],u=function(t,n){e.call(s,t,n)};return a?a.addCb(u):a=s._userWatchers[o]=new i(s,t,u,{deep:n,user:!0}),r&&u(a.value),function(){a.removeCb(u),a.active||(s._userWatchers[o]=null)}},n.$eval=function(t){if(l.test(t)){var e=a.parse(t)[0];return e.filters?r.applyFilters(this.$get(e.expression),r.resolveFilters(this,e.filters).read,this):this.$get(e.expression)}return this.$get(t)},n.$interpolate=function(t){var e=o.parse(t),n=this;return e?1===e.length?n.$eval(e[0].value):e.map(function(t){return t.tag?n.$eval(t.value):t.value}).join(""):t},n.$log=function(t){var e=t?s.get(this._data,t):this._data;e&&(e=JSON.parse(JSON.stringify(e))),console.log(e)}},{"../parsers/directive":111,"../parsers/expression":112,"../parsers/path":113,"../parsers/text":115,"../util":123,"../watcher":127}],68:[function(t,e,n){function r(t,e,n,r,o,a){e=s(e);var u=!l.inDoc(e),c=r===!1||u?o:a,h=!u&&!t._isAttached&&!l.inDoc(t.$el);return t._isBlock?i(t,e,c,n):c(t.$el,e,t,n),h&&t._callHook("attached"),t}function i(t,e,n,r){for(var i,s=t._blockStart,o=t._blockEnd;i!==o;)i=s.nextSibling,n(s,e,t),s=i;n(o,e,t,r)}function s(t){return"string"==typeof t?document.querySelector(t):t}function o(t,e,n,r){e.appendChild(t),r&&r()}function a(t,e,n,r){l.before(t,e),r&&r()}function u(t,e,n){l.remove(t),n&&n()}var l=t("../util"),c=t("../transition");n.$appendTo=function(t,e,n){return r(this,t,e,n,o,c.append)},n.$prependTo=function(t,e,n){return t=s(t),t.hasChildNodes()?this.$before(t.firstChild,e,n):this.$appendTo(t,e,n),this},n.$before=function(t,e,n){return r(this,t,e,n,a,c.before)},n.$after=function(t,e,n){return t=s(t),t.nextSibling?this.$before(t.nextSibling,e,n):this.$appendTo(t.parentNode,e,n),this},n.$remove=function(t,e){var n=this._isAttached&&l.inDoc(this.$el);n||(e=!1);var r,s=this,a=function(){n&&s._callHook("detached"),t&&t()};return this._isBlock&&!this._blockFragment.hasChildNodes()?(r=e===!1?o:c.removeThenAppend,i(this,this._blockFragment,r,a)):(r=e===!1?u:c.remove)(this.$el,this,a),this}},{"../transition":117,"../util":123}],69:[function(t,e,n){function r(t,e,n){var r=t.$parent;if(r&&n&&!s.test(e))for(;r;)r._eventsCount[e]=(r._eventsCount[e]||0)+n,r=r.$parent}var i=t("../util");n.$on=function(t,e){return(this._events[t]||(this._events[t]=[])).push(e),r(this,t,1),this},n.$once=function(t,e){function n(){r.$off(t,n),e.apply(this,arguments)}var r=this;return n.fn=e,this.$on(t,n),this},n.$off=function(t,e){var n;if(!arguments.length){if(this.$parent)for(t in this._events)n=this._events[t],n&&r(this,t,-n.length);return this._events={},this}if(n=this._events[t],!n)return this;if(1===arguments.length)return r(this,t,-n.length),this._events[t]=null,this;for(var i,s=n.length;s--;)if(i=n[s],i===e||i.fn===e){r(this,t,-1),n.splice(s,1);break}return this},n.$emit=function(t){this._eventCancelled=!1;var e=this._events[t];if(e){for(var n=arguments.length-1,r=new Array(n);n--;)r[n]=arguments[n+1];n=0,e=e.length>1?i.toArray(e):e;for(var s=e.length;s>n;n++)e[n].apply(this,r)===!1&&(this._eventCancelled=!0)}return this},n.$broadcast=function(t){if(this._eventsCount[t]){for(var e=this._children,n=0,r=e.length;r>n;n++){var i=e[n];i.$emit.apply(i,arguments),i._eventCancelled||i.$broadcast.apply(i,arguments)}return this}},n.$dispatch=function(){for(var t=this.$parent;t;)t.$emit.apply(t,arguments),t=t._eventCancelled?null:t.$parent;return this};var s=/^hook:/},{"../util":123}],70:[function(t,e,n){function r(t){return new Function("return function "+s.camelize(t,!0)+" (options) { this._init(options) }")()}function i(t){u.forEach(function(e){t[e]=function(t,n){return n?void(this.options[e+"s"][t]=n):this.options[e+"s"][t]}}),t.component=function(t,e){return e?(s.isPlainObject(e)&&(e.name=t,e=s.Vue.extend(e)),void(this.options.components[t]=e)):this.options.components[t]}}var s=t("../util"),o=t("../util/merge-option");n.util=s,n.nextTick=s.nextTick,n.config=t("../config"),n.compiler={compile:t("../compiler/compile"),transclude:t("../compiler/transclude")},n.parsers={path:t("../parsers/path"),text:t("../parsers/text"),template:t("../parsers/template"),directive:t("../parsers/directive"),expression:t("../parsers/expression")},n.cid=0;var a=1;n.extend=function(t){t=t||{};var e=this,n=r(t.name||"VueComponent");return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.cid=a++,n.options=o(e.options,t),n["super"]=e,n.extend=e.extend,i(n),n},n.use=function(t){var e=s.toArray(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),this};var u=["directive","filter","partial","transition"];i(n)},{"../compiler/compile":74,"../compiler/transclude":75,"../config":76,"../parsers/directive":111,"../parsers/expression":112,"../parsers/path":113,"../parsers/template":114,"../parsers/text":115,"../util":123,"../util/merge-option":125}],71:[function(t,e,n){function r(){this._isAttached=!0,this._isReady=!0,this._callHook("ready")}var i=t("../util"),s=t("../compiler/compile");n.$mount=function(t){if(this._isCompiled)return void i.warn("$mount() should be called only once.");if(t){if("string"==typeof t){var e=t;if(t=document.querySelector(t),!t)return void i.warn("Cannot find element: "+e)}}else t=document.createElement("div");return this._compile(t),this._isCompiled=!0,this._callHook("compiled"),i.inDoc(this.$el)?(this._callHook("attached"),this._initDOMHooks(),r.call(this)):(this._initDOMHooks(),this.$once("hook:attached",r)),this},n.$destroy=function(t,e){this._destroy(t,e)},n.$compile=function(t){return s(t,this.$options,!0)(this,t)}},{"../compiler/compile":74,"../util":123}],72:[function(t,e,n){function r(){u=[],l=[],c={},h=!1,f=!1}function i(){f=!0,s(u),s(l),r()}function s(t){for(var e=0;e<t.length;e++)t[e].run()}var o=t("./util"),a=10,u=[],l=[],c={},h=!1,f=!1;n.push=function(t){var e=t.id;if(!e||!c[e]||f){if(c[e]){if(c[e]++,c[e]>a)return void o.warn('You may have an infinite update loop for the watcher with expression: "'+t.expression+'".')}else c[e]=1;if(f&&!t.user)return void t.run();(t.user?l:u).push(t),h||(h=!0,o.nextTick(i))}}},{"./util":123}],73:[function(t,e,n){function r(t){this.size=0,this.limit=t,this.head=this.tail=void 0,this._keymap={}}var i=r.prototype;i.put=function(t,e){var n={key:t,value:e};return this._keymap[t]=n,this.tail?(this.tail.newer=n,n.older=this.tail):this.head=n,this.tail=n,this.size===this.limit?this.shift():void this.size++},i.shift=function(){var t=this.head;return t&&(this.head=this.head.newer,this.head.older=void 0,t.newer=t.older=void 0,this._keymap[t.key]=void 0),t},i.get=function(t,e){var n=this._keymap[t];if(void 0!==n)return n===this.tail?e?n:n.value:(n.newer&&(n===this.head&&(this.head=n.newer),n.newer.older=n.older),n.older&&(n.older.newer=n.newer),n.newer=void 0,n.older=this.tail,this.tail&&(this.tail.newer=n),this.tail=n,e?n:n.value)},e.exports=r},{}],74:[function(t,e,n){function r(t,e,n){var r=t.nodeType;return 1===r&&"SCRIPT"!==t.tagName?i(t,e,n):3===r&&w.interpolate?o(t,e):void 0}function i(t,e,n){var r,i,o;if(n||t.__vue__||(i=t.tagName.toLowerCase(),o=i.indexOf("-")>0&&e.components[i],o&&t.setAttribute(w.prefix+"component",i)),(o||t.hasAttributes())&&(n||(r=d(t,e)),!r)){var a=g(t,e,n);r=a.length?s(a):null}if("TEXTAREA"===t.tagName){var u=r;r=function(t,e){e.value=t.$interpolate(e.value),u&&u(t,e)},r.terminal=!0}return r}function s(t){return function(e,n){for(var r,i,s,o=t.length;o--;)if(r=t[o],r._link)r._link(e,n);else for(s=r.descriptors.length,i=0;s>i;i++)e._bindDir(r.name,n,r.descriptors[i],r.def)}}function o(t,e){var n=_.parse(t.nodeValue);if(!n)return null;for(var r,i,s=document.createDocumentFragment(),o=0,l=n.length;l>o;o++)i=n[o],r=i.tag?a(i,e):document.createTextNode(i.value),s.appendChild(r);return u(n,s,e)}function a(t,e){function n(n){t.type=n,t.def=e.directives[n],t.descriptor=x.parse(t.value)[0]}var r;return t.oneTime?r=document.createTextNode(t.value):t.html?(r=document.createComment("v-html"),n("html")):t.partial?(r=document.createComment("v-partial"),n("partial")):(r=document.createTextNode(" "),n("text")),r}function u(t,e){return function(n,r){for(var i,s,o,a=e.cloneNode(!0),u=y.toArray(a.childNodes),l=0,c=t.length;c>l;l++)i=t[l],s=i.value,i.tag&&(o=u[l],i.oneTime?(s=n.$eval(s),i.html?y.replace(o,k.parse(s,!0)):o.nodeValue=s):n._bindDir(i.type,o,i.descriptor,i.def));y.replace(r,a)}}function l(t,e){for(var n,i,s,o=[],a=0,u=t.length;u>a;a++)s=t[a],n=r(s,e),i=n&&n.terminal||"SCRIPT"===s.tagName||!s.hasChildNodes()?null:l(s.childNodes,e),o.push(n,i);return o.length?c(o):null}function c(t){return function(e,n){for(var r,i,s,o=0,a=0,u=t.length;u>o;a++){r=n[a],i=t[o++],s=t[o++];var l=y.toArray(r.childNodes);i&&i(e,r),s&&s(e,l)}}}function h(t,e,n){for(var r,i,s,o=[],a=e.length;a--;)if(r=e[a],/[A-Z]/.test(r)&&y.warn("You seem to be using camelCase for a paramAttribute, but HTML doesn't differentiate between upper and lower case. You should use hyphen-delimited attribute names. For more info see http://vuejs.org/api/options.html#paramAttributes"),i=t.getAttribute(r),null!==i){s={name:r,value:i};var u=_.parse(i);if(u){if(t.removeAttribute(r),u.length>1){y.warn('Invalid param attribute binding: "'+r+'="'+i+"\"\nDon't mix binding tags with plain text in param attribute bindings.");continue}s.dynamic=!0,s.value=u[0].value}o.push(s)}return f(o,n)}function f(t,e){var n=e.directives["with"];return function(e,r){for(var i,s,o=t.length;o--;)i=t[o],s=y.camelize(i.name.replace(E,"")),i.dynamic?e._bindDir("with",r,{arg:s,expression:i.value},n):e.$set(s,i.value)}}function p(){}function d(t,e){if(null!==y.attr(t,"pre"))return p;for(var n,r,i=0;3>i;i++)if(r=A[i],n=y.attr(t,r))return v(t,r,n,e)}function v(t,e,n,r){var i=x.parse(n)[0],s=r.directives[e],o=function(t,n){t._bindDir(e,n,i,s)};return o.terminal=!0,o}function g(t,e,n){for(var r,i,s,o,a,u=y.toArray(t.attributes),l=u.length,c=[];l--;)if(r=u[l],i=r.name,0===i.indexOf(w.prefix)){if(o=i.slice(w.prefix.length),n&&("with"===o||"component"===o))continue;a=e.directives[o],y.assertAsset(a,"directive",o),a&&c.push({name:o,descriptors:x.parse(r.value),def:a})}else w.interpolate&&(s=m(t,i,r.value,e),s&&c.push(s));return c.sort(b),c}function m(t,e,n,r){if(!(r._skipAttrs&&r._skipAttrs.indexOf(e)>-1)){var i=_.parse(n);if(i){for(var s=r.directives.attr,o=i.length,a=!0;o--;){var u=i[o];u.tag&&!u.oneTime&&(a=!1)}return{def:s,_link:a?function(t,r){r.setAttribute(e,t.$interpolate(n))}:function(t,n){var r=_.tokensToExp(i,t),o=x.parse(e+":"+r)[0];t._bindDir("attr",n,o,s)}}}}}function b(t,e){return t=t.def.priority||0,e=e.def.priority||0,t>e?1:-1}var y=t("../util"),w=t("../config"),_=t("../parsers/text"),x=t("../parsers/directive"),k=t("../parsers/template");e.exports=function(t,e,n,i){var s=!n&&e.paramAttributes,o=s?h(t,s,e):null,a=t instanceof DocumentFragment?null:r(t,e,i),u=a&&a.terminal||"SCRIPT"===t.tagName||!t.hasChildNodes()?null:l(t.childNodes,e);return function(t,e){var r=t._directives.length;o&&o(t,e);var i=y.toArray(e.childNodes);if(a&&a(t,e),u&&u(t,i),n){var s=t._directives.slice(r);return function(){for(var e=s.length;e--;)s[e]._teardown();e=t._directives.indexOf(s[0]),t._directives.splice(e,s.length)}}}};var E=/^data-/,A=["repeat","if","component"];p.terminal=!0},{"../config":76,"../parsers/directive":111,"../parsers/template":114,"../parsers/text":115,"../util":123}],75:[function(t,e,n){function r(t,e){var n=e.template,r=u.parse(n,!0);if(r){var s=e._content||a.extractContent(t);if(e.replace){if(r.childNodes.length>1)return i(r,s),r;var o=r.firstChild;return a.copyAttributes(t,o),i(o,s),o}return t.appendChild(r),i(t,s),t}a.warn("Invalid template option: "+n)}function i(t,e){var n=s(t),r=n.length;if(r){for(var i,u,l,c,h;r--;)i=n[r],e?(u=i.getAttribute("select"),u?(l=e.querySelectorAll(u),i.content=a.toArray(l.length?l:i.childNodes)):h=i):i.content=a.toArray(i.childNodes);for(r=0,c=n.length;c>r;r++)i=n[r],i!==h&&o(i,i.content);h&&o(h,a.toArray(e.childNodes))}}function s(t){return a.isArray(t)?l.apply([],t.map(s)):t.querySelectorAll?a.toArray(t.querySelectorAll("content")):[]}function o(t,e){for(var n=t.parentNode,r=0,i=e.length;i>r;r++)n.insertBefore(e[r],t);n.removeChild(t)}var a=t("../util"),u=t("../parsers/template");e.exports=function(t,e){return"TEMPLATE"===t.tagName&&(t=u.parse(t)),e&&e.template&&(t=r(t,e)),t instanceof DocumentFragment&&(a.prepend(document.createComment("v-start"),t),t.appendChild(document.createComment("v-end"))),t};var l=[].concat},{"../parsers/template":114,"../util":123}],76:[function(t,e,n){e.exports={prefix:"v-",debug:!1,silent:!1,proto:!0,interpolate:!0,async:!0,warnExpressionErrors:!0,_delimitersChanged:!0};var r=["{{","}}"];Object.defineProperty(e.exports,"delimiters",{get:function(){return r},set:function(t){r=t,this._delimitersChanged=!0}})},{}],77:[function(t,e,n){function r(t,e,n,r,s){this.name=t,this.el=e,this.vm=n,this.raw=r.raw,this.expression=r.expression,this.arg=r.arg,this.filters=i.resolveFilters(n,r.filters),this._locked=!1,this._bound=!1,this._bind(s)}var i=t("./util"),s=t("./config"),o=t("./watcher"),a=t("./parsers/text"),u=t("./parsers/expression"),l=r.prototype;l._bind=function(t){if("cloak"!==this.name&&this.el.removeAttribute&&this.el.removeAttribute(s.prefix+this.name),"function"==typeof t?this.update=t:i.extend(this,t),this._watcherExp=this.expression,this._checkDynamicLiteral(),this.bind&&this.bind(),this._watcherExp&&(this.update||this.twoWay)&&(!this.isLiteral||this._isDynamicLiteral)&&!this._checkStatement()){var e=this,n=this._update=this.update?function(t,n){e._locked||e.update(t,n)}:function(){},r=this.vm._watchers[this.raw];r&&"repeat"!==this.name?r.addCb(n):r=this.vm._watchers[this.raw]=new o(this.vm,this._watcherExp,n,{
|
|
filters:this.filters,twoWay:this.twoWay,deep:this.deep}),this._watcher=r,null!=this._initValue?r.set(this._initValue):this.update&&this.update(r.value)}this._bound=!0},l._checkDynamicLiteral=function(){var t=this.expression;if(t&&this.isLiteral){var e=a.parse(t);if(e){var n=a.tokensToExp(e);this.expression=this.vm.$get(n),this._watcherExp=n,this._isDynamicLiteral=!0}}},l._checkStatement=function(){var t=this.expression;if(t&&this.acceptStatement&&!u.pathTestRE.test(t)){var e=u.parse(t).get,n=this.vm,r=function(){e.call(n,n)};return this.filters&&(r=i.applyFilters(r,this.filters.read,n)),this.update(r),!0}},l._checkParam=function(t){var e=this.el.getAttribute(t);return null!==e&&this.el.removeAttribute(t),e},l._teardown=function(){if(this._bound){this.unbind&&this.unbind();var t=this._watcher;t&&t.active&&(t.removeCb(this._update),t.active||(this.vm._watchers[this.raw]=null)),this._bound=!1,this.vm=this.el=this._watcher=null}},l.set=function(t,e){if(this.twoWay&&(e&&(this._locked=!0),this._watcher.set(t),e)){var n=this;i.nextTick(function(){n._locked=!1})}},e.exports=r},{"./config":76,"./parsers/expression":112,"./parsers/text":115,"./util":123,"./watcher":127}],78:[function(t,e,n){function r(t){t||0===t?this.el.setAttribute(this.arg,t):this.el.removeAttribute(this.arg)}function i(t){null!=t?this.el.setAttributeNS(s,this.arg,t):this.el.removeAttributeNS(s,"href")}var s="http://www.w3.org/1999/xlink",o=/^xlink:/;e.exports={priority:850,bind:function(){var t=this.arg;this.update=o.test(t)?i:r}}},{}],79:[function(t,e,n){var r=t("../util"),i=r.addClass,s=r.removeClass;e.exports=function(t){if(this.arg){var e=t?i:s;e(this.el,this.arg)}else this.lastVal&&s(this.el,this.lastVal),t&&(i(this.el,t),this.lastVal=t)}},{"../util":123}],80:[function(t,e,n){var r=t("../config");e.exports={bind:function(){var t=this.el;this.vm.$once("hook:compiled",function(){t.removeAttribute(r.prefix+"cloak")})}}},{"../config":76}],81:[function(t,e,n){var r=t("../util"),i=t("../parsers/template");e.exports={isLiteral:!0,bind:function(){if(this.el.__vue__)r.warn('v-component="'+this.expression+'" cannot be used on an already mounted instance.');else if(this.ref=document.createComment("v-component"),r.replace(this.el,this.ref),this.keepAlive=null!=this._checkParam("keep-alive"),this.refID=r.attr(this.el,"ref"),this.keepAlive&&(this.cache={}),this._isDynamicLiteral)this.readyEvent=this._checkParam("wait-for"),this.transMode=this._checkParam("transition-mode");else{this.resolveCtor(this.expression);var t=this.build();t.$before(this.ref),this.setCurrent(t)}},resolveCtor:function(t){this.ctorId=t,this.Ctor=this.vm.$options.components[t],r.assertAsset(this.Ctor,"component",t)},build:function(){if(this.keepAlive){var t=this.cache[this.ctorId];if(t)return t}var e=this.vm,n=i.clone(this.el);if(this.Ctor){var r=e.$addChild({el:n,_asComponent:!0},this.Ctor);return this.keepAlive&&(this.cache[this.ctorId]=r),r}},unbuild:function(){var t=this.childVM;t&&!this.keepAlive&&t.$destroy(!1,!0)},remove:function(t,e){var n=this.keepAlive;t?t.$remove(function(){n||t._cleanup(),e&&e()}):e&&e()},update:function(t){if(t){this.resolveCtor(t),this.unbuild();var e=this.build(),n=this;this.readyEvent?e.$once(this.readyEvent,function(){n.swapTo(e)}):this.swapTo(e)}else this.unbuild(),this.remove(this.childVM),this.unsetCurrent()},swapTo:function(t){var e=this,n=this.childVM;switch(this.unsetCurrent(),this.setCurrent(t),e.transMode){case"in-out":t.$before(e.ref,function(){e.remove(n)});break;case"out-in":e.remove(n,function(){t.$before(e.ref)});break;default:e.remove(n),t.$before(e.ref)}},setCurrent:function(t){this.childVM=t;var e=t._refID||this.refID;e&&(this.vm.$[e]=t)},unsetCurrent:function(){var t=this.childVM;this.childVM=null;var e=t&&t._refID||this.refID;e&&(this.vm.$[e]=null)},unbind:function(){if(this.unbuild(),this.cache){for(var t in this.cache)this.cache[t].$destroy();this.cache=null}}}},{"../parsers/template":114,"../util":123}],82:[function(t,e,n){e.exports={isLiteral:!0,bind:function(){this.vm.$$[this.expression]=this.el},unbind:function(){delete this.vm.$$[this.expression]}}},{}],83:[function(t,e,n){var r=t("../util");e.exports={bind:function(){var t=this.el.__vue__;if(!t||this.vm!==t.$parent)return void r.warn("`v-events` should only be used on a child component from the parent template.");var e=this.vm[this.expression];e||r.warn('`v-events` cannot find method "'+this.expression+'" on the parent instance.'),t.$on(this.arg,e)}}},{"../util":123}],84:[function(t,e,n){var r=t("../util"),i=t("../parsers/template");e.exports={bind:function(){8===this.el.nodeType&&(this.nodes=[])},update:function(t){t=r.toString(t),this.nodes?this.swap(t):this.el.innerHTML=t},swap:function(t){for(var e=this.nodes.length;e--;)r.remove(this.nodes[e]);var n=i.parse(t,!0,!0);this.nodes=r.toArray(n.childNodes),r.before(n,this.el)}}},{"../parsers/template":114,"../util":123}],85:[function(t,e,n){var r=t("../util"),i=t("../compiler/compile"),s=t("../parsers/template"),o=t("../transition");e.exports={bind:function(){var t=this.el;t.__vue__?(this.invalid=!0,r.warn('v-if="'+this.expression+'" cannot be used on an already mounted instance.')):(this.start=document.createComment("v-if-start"),this.end=document.createComment("v-if-end"),r.replace(t,this.end),r.before(this.start,this.end),"TEMPLATE"===t.tagName?this.template=s.parse(t,!0):(this.template=document.createDocumentFragment(),this.template.appendChild(t)),this.linker=i(this.template,this.vm.$options,!0))},update:function(t){this.invalid||(t?this.insert():this.teardown())},insert:function(){this.unlink||this.compile(this.template)},compile:function(t){var e=this.vm,n=s.clone(t),i=e._children.length;this.unlink=this.linker?this.linker(e,n):e.$compile(n),o.blockAppend(n,this.end,e),this.children=e._children.slice(i),this.children.length&&r.inDoc(e.$el)&&this.children.forEach(function(t){t._callHook("attached")})},teardown:function(){this.unlink&&(o.blockRemove(this.start,this.end,this.vm),this.children&&r.inDoc(this.vm.$el)&&this.children.forEach(function(t){t._isDestroyed||t._callHook("detached")}),this.unlink(),this.unlink=null)}}},{"../compiler/compile":74,"../parsers/template":114,"../transition":117,"../util":123}],86:[function(t,e,n){n.text=t("./text"),n.html=t("./html"),n.attr=t("./attr"),n.show=t("./show"),n["class"]=t("./class"),n.el=t("./el"),n.ref=t("./ref"),n.cloak=t("./cloak"),n.style=t("./style"),n.partial=t("./partial"),n.transition=t("./transition"),n.on=t("./on"),n.model=t("./model"),n.component=t("./component"),n.repeat=t("./repeat"),n["if"]=t("./if"),n["with"]=t("./with"),n.events=t("./events")},{"./attr":78,"./class":79,"./cloak":80,"./component":81,"./el":82,"./events":83,"./html":84,"./if":85,"./model":89,"./on":92,"./partial":93,"./ref":94,"./repeat":95,"./show":96,"./style":97,"./text":98,"./transition":99,"./with":100}],87:[function(t,e,n){var r=t("../../util");e.exports={bind:function(){var t=this,e=this.el;this.listener=function(){t.set(e.checked,!0)},r.on(e,"change",this.listener),e.checked&&(this._initValue=e.checked)},update:function(t){this.el.checked=!!t},unbind:function(){r.off(this.el,"change",this.listener)}}},{"../../util":123}],88:[function(t,e,n){var r=t("../../util");e.exports={bind:function(){function t(){e.set(s?r.toNumber(n.value):n.value,!0)}var e=this,n=this.el,i=null!=this._checkParam("lazy"),s=null!=this._checkParam("number"),o=!1;this.cpLock=function(){o=!0},this.cpUnlock=function(){o=!1,t()},r.on(n,"compositionstart",this.cpLock),r.on(n,"compositionend",this.cpUnlock),this.listener=this.filters||"range"===n.type?function(){if(!o){var i;try{i=n.value.length-n.selectionStart}catch(s){}0>i||(t(),r.nextTick(function(){var t=e._watcher.value;if(e.update(t),null!=i){var s=r.toString(t).length-i;n.setSelectionRange(s,s)}}))}}:function(){o||t()},this.event=i?"change":"input",r.on(n,this.event,this.listener),!i&&r.isIE9&&(this.onCut=function(){r.nextTick(e.listener)},this.onDel=function(t){(46===t.keyCode||8===t.keyCode)&&e.listener()},r.on(n,"cut",this.onCut),r.on(n,"keyup",this.onDel)),(n.hasAttribute("value")||"TEXTAREA"===n.tagName&&n.value.trim())&&(this._initValue=s?r.toNumber(n.value):n.value)},update:function(t){this.el.value=r.toString(t)},unbind:function(){var t=this.el;r.off(t,this.event,this.listener),r.off(t,"compositionstart",this.cpLock),r.off(t,"compositionend",this.cpUnlock),this.onCut&&(r.off(t,"cut",this.onCut),r.off(t,"keyup",this.onDel))}}},{"../../util":123}],89:[function(t,e,n){var r=t("../../util"),i={_default:t("./default"),radio:t("./radio"),select:t("./select"),checkbox:t("./checkbox")};e.exports={priority:800,twoWay:!0,handlers:i,bind:function(){var t=this.filters;t&&t.read&&!t.write&&r.warn("It seems you are using a read-only filter with v-model. You might want to use a two-way filter to ensure correct behavior.");var e,n=this.el,s=n.tagName;if("INPUT"===s)e=i[n.type]||i._default;else if("SELECT"===s)e=i.select;else{if("TEXTAREA"!==s)return void r.warn("v-model doesn't support element type: "+s);e=i._default}e.bind.call(this),this.update=e.update,this.unbind=e.unbind}}},{"../../util":123,"./checkbox":87,"./default":88,"./radio":90,"./select":91}],90:[function(t,e,n){var r=t("../../util");e.exports={bind:function(){var t=this,e=this.el;this.listener=function(){t.set(e.value,!0)},r.on(e,"change",this.listener),e.checked&&(this._initValue=e.value)},update:function(t){this.el.checked=t==this.el.value},unbind:function(){r.off(this.el,"change",this.listener)}}},{"../../util":123}],91:[function(t,e,n){function r(t){function e(t){c.isArray(t)?(n.el.innerHTML="",i(n.el,t),n._watcher&&n.update(n._watcher.value)):c.warn("Invalid options value for v-model: "+t)}var n=this;this.optionWatcher=new h(this.vm,t,e,{deep:!0}),e(this.optionWatcher.value)}function i(t,e){for(var n,r,s=0,o=e.length;o>s;s++)n=e[s],n.options?(r=document.createElement("optgroup"),r.label=n.label,i(r,n.options)):(r=document.createElement("option"),"string"==typeof n?r.text=r.value=n:(r.text=n.text,r.value=n.value)),t.appendChild(r)}function s(){for(var t,e=this.el.options,n=0,r=e.length;r>n;n++)e[n].hasAttribute("selected")&&(this.multiple?(t||(t=[])).push(e[n].value):t=e[n].value);t&&(this._initValue=this.number?c.toNumber(t):t)}function o(t){return Array.prototype.filter.call(t.options,a).map(u)}function a(t){return t.selected}function u(t){return t.value||t.text}function l(t,e){for(var n=t.length;n--;)if(t[n]==e)return n;return-1}var c=t("../../util"),h=t("../../watcher");e.exports={bind:function(){var t=this,e=this.el,n=this._checkParam("options");n&&r.call(this,n),this.number=null!=this._checkParam("number"),this.multiple=e.hasAttribute("multiple"),this.listener=function(){var n=t.multiple?o(e):e.value;n=t.number?c.toNumber(n):n,t.set(n,!0)},c.on(e,"change",this.listener),s.call(this)},update:function(t){var e=this.el;e.selectedIndex=-1;for(var n,r=this.multiple&&c.isArray(t),i=e.options,s=i.length;s--;)n=i[s],n.selected=r?l(t,n.value)>-1:t==n.value},unbind:function(){c.off(this.el,"change",this.listener),this.optionWatcher&&this.optionWatcher.teardown()}}},{"../../util":123,"../../watcher":127}],92:[function(t,e,n){var r=t("../util");e.exports={acceptStatement:!0,priority:700,bind:function(){if("IFRAME"===this.el.tagName&&"load"!==this.arg){var t=this;this.iframeBind=function(){r.on(t.el.contentWindow,t.arg,t.handler)},r.on(this.el,"load",this.iframeBind)}},update:function(t){if("function"!=typeof t)return void r.warn('Directive "v-on:'+this.expression+'" expects a function value.');this.reset();var e=this.vm;this.handler=function(n){n.targetVM=e,e.$event=n;var r=t(n);return e.$event=null,r},this.iframeBind?this.iframeBind():r.on(this.el,this.arg,this.handler)},reset:function(){var t=this.iframeBind?this.el.contentWindow:this.el;this.handler&&r.off(t,this.arg,this.handler)},unbind:function(){this.reset(),r.off(this.el,"load",this.iframeBind)}}},{"../util":123}],93:[function(t,e,n){var r=t("../util"),i=t("../parsers/template"),s=t("./if");e.exports={isLiteral:!0,compile:s.compile,teardown:s.teardown,bind:function(){var t=this.el;this.start=document.createComment("v-partial-start"),this.end=document.createComment("v-partial-end"),8!==t.nodeType&&(t.innerHTML=""),"TEMPLATE"===t.tagName||8===t.nodeType?r.replace(t,this.end):t.appendChild(this.end),r.before(this.start,this.end),this._isDynamicLiteral||this.insert(this.expression)},update:function(t){this.teardown(),this.insert(t)},insert:function(t){var e=this.vm.$options.partials[t];r.assertAsset(e,"partial",t),e&&this.compile(i.parse(e))}}},{"../parsers/template":114,"../util":123,"./if":85}],94:[function(t,e,n){var r=t("../util");e.exports={isLiteral:!0,bind:function(){var t=this.el.__vue__;return t?void(t._refID=this.expression):void r.warn("v-ref should only be used on a component root element.")}}},{"../util":123}],95:[function(t,e,n){function r(t,e){for(var n=(t._blockEnd||t.$el).nextSibling;!n.__vue__&&n!==e;)n=n.nextSibling;return n.__vue__}function i(t){if(!u(t))return t;for(var e,n=Object.keys(t),r=n.length,i=new Array(r);r--;)e=n[r],i[r]={key:e,value:t[e]};return this.converted=!0,i}function s(t){for(var e=-1,n=new Array(t);++e<t;)n[e]=e;return n}var o=t("../util"),a=o.isObject,u=o.isPlainObject,l=t("../parsers/text"),c=t("../parsers/expression"),h=t("../parsers/template"),f=t("../compiler/compile"),p=t("../compiler/transclude"),d=t("../util/merge-option"),v=0;e.exports={bind:function(){this.id="__v_repeat_"+ ++v,this.filters||(this.filters={});var t=o.bind(i,this);this.filters.read?this.filters.read.unshift(t):this.filters.read=[t],this.ref=document.createComment("v-repeat"),o.replace(this.el,this.ref),this.template="TEMPLATE"===this.el.tagName?h.parse(this.el,!0):this.el,this.checkIf(),this.checkRef(),this.checkComponent(),this.idKey=this._checkParam("track-by")||this._checkParam("trackby"),this.cache=Object.create(null)},checkIf:function(){null!==o.attr(this.el,"if")&&o.warn('Don\'t use v-if with v-repeat. Use v-show or the "filterBy" filter instead.')},checkRef:function(){var t=o.attr(this.el,"ref");this.refID=t?this.vm.$interpolate(t):null;var e=o.attr(this.el,"el");this.elId=e?this.vm.$interpolate(e):null},checkComponent:function(){var t=o.attr(this.el,"component"),e=this.vm.$options;if(t){this._asComponent=!0;var n=l.parse(t);if(n){var r=l.tokensToExp(n);this.ctorGetter=c.parse(r).get}else{var i=this.Ctor=e.components[t];if(o.assertAsset(i,"component",t),!this.el.hasChildNodes()&&!this.el.hasAttributes()){var s=d(i.options,{},{$parent:this.vm});this.template=p(this.template,s),this._linkFn=f(this.template,s,!1,!0)}}}else this.Ctor=o.Vue,this.inherit=!0,this.template=p(this.template),this._linkFn=f(this.template,e)},update:function(t){"number"==typeof t&&(t=s(t)),this.vms=this.diff(t||[],this.vms),this.refID&&(this.vm.$[this.refID]=this.vms),this.elId&&(this.vm.$$[this.elId]=this.vms.map(function(t){return t.$el}))},diff:function(t,e){var n,i,s,o,a,u=this.idKey,l=this.converted,c=this.ref,h=this.arg,f=!e,p=new Array(t.length);for(o=0,a=t.length;a>o;o++)n=t[o],i=l?n.value:n,s=!f&&this.getVm(i),s?(s._reused=!0,s.$index=o,l&&(s.$key=n.key),u&&(h?s[h]=i:s._setData(i))):(s=this.build(n,o),s._new=!0),p[o]=s,f&&s.$before(c);if(f)return p;for(o=0,a=e.length;a>o;o++)s=e[o],s._reused||(this.uncacheVm(s),s.$destroy(!0));var d,v;for(o=p.length;o--;)s=p[o],d=p[o+1],d?s._reused?(v=r(s,c),v!==d&&s.$before(d.$el,null,!1)):s.$before(d.$el):s._reused||s.$before(c),s._new=!1,s._reused=!1;return p},build:function(t,e){var n=t,r={$index:e};this.converted&&(r.$key=n.key);var i=this.converted?t.value:t,s=this.arg,o=!u(i)||s;t=o?{}:i,s?t[s]=i:o&&(r.$value=i);var a=this.Ctor||this.resolveCtor(t,r),l=this.vm.$addChild({el:h.clone(this.template),_asComponent:this._asComponent,_linkFn:this._linkFn,_meta:r,data:t,inherit:this.inherit},a);return this.cacheVm(i,l),l},resolveCtor:function(t,e){var n,r=Object.create(this.vm);for(n in t)o.define(r,n,t[n]);for(n in e)o.define(r,n,e[n]);var i=this.ctorGetter.call(r,r),s=this.vm.$options.components[i];return o.assertAsset(s,"component",i),s},unbind:function(){if(this.refID&&(this.vm.$[this.refID]=null),this.vms)for(var t,e=this.vms.length;e--;)t=this.vms[e],this.uncacheVm(t),t.$destroy()},cacheVm:function(t,e){var n,r=this.idKey,i=this.cache;r?(n=t[r],i[n]?o.warn("Duplicate ID in v-repeat: "+n):i[n]=e):a(t)?(n=this.id,t.hasOwnProperty(n)?null===t[n]?t[n]=e:o.warn("Duplicate objects are not supported in v-repeat."):o.define(t,this.id,e)):i[t]?i[t].push(e):i[t]=[e],e._raw=t},getVm:function(t){if(this.idKey)return this.cache[t[this.idKey]];if(a(t))return t[this.id];var e=this.cache[t];if(e){for(var n=0,r=e[n];r&&(r._reused||r._new);)r=e[++n];return r}},uncacheVm:function(t){var e=t._raw;this.idKey?this.cache[e[this.idKey]]=null:a(e)?(e[this.id]=null,t._raw=null):this.cache[e].pop()}}},{"../compiler/compile":74,"../compiler/transclude":75,"../parsers/expression":112,"../parsers/template":114,"../parsers/text":115,"../util":123,"../util/merge-option":125}],96:[function(t,e,n){var r=t("../transition");e.exports=function(t){var e=this.el;r.apply(e,t?1:-1,function(){e.style.display=t?"":"none"},this.vm)}},{"../transition":117}],97:[function(t,e,n){function r(t){if(h[t])return h[t];var e=i(t);return h[t]=h[e]=e,e}function i(t){t=t.replace(l,"$1-$2").toLowerCase();var e=s.camelize(t),n=e.charAt(0).toUpperCase()+e.slice(1);if(c||(c=document.createElement("div")),e in c.style)return t;for(var r,i=o.length;i--;)if(r=a[i]+n,r in c.style)return o[i]+t}var s=t("../util"),o=["-webkit-","-moz-","-ms-"],a=["Webkit","Moz","ms"],u=/!important;?$/,l=/([a-z])([A-Z])/g,c=null,h={};e.exports={deep:!0,update:function(t){if(this.arg)this.setProp(this.arg,t);else if("object"==typeof t){this.cache||(this.cache={});for(var e in t)this.setProp(e,t[e]),t[e]!=this.cache[e]&&(this.cache[e]=t[e],this.setProp(e,t[e]))}else this.el.style.cssText=t},setProp:function(t,e){if(t=r(t))if(null!=e&&(e+=""),e){var n=u.test(e)?"important":"";n&&(e=e.replace(u,"").trim()),this.el.style.setProperty(t,e,n)}else this.el.style.removeProperty(t)}}},{"../util":123}],98:[function(t,e,n){var r=t("../util");e.exports={bind:function(){this.attr=3===this.el.nodeType?"nodeValue":"textContent"},update:function(t){this.el[this.attr]=r.toString(t)}}},{"../util":123}],99:[function(t,e,n){e.exports={priority:1e3,isLiteral:!0,bind:function(){this.el.__v_trans={id:this.expression,fns:this.vm.$options.transitions[this.expression]}}}},{}],100:[function(t,e,n){var r=t("../util"),i=t("../watcher");e.exports={priority:900,bind:function(){var t=this.vm,e=t.$parent,n=this.arg||"$data",s=this.expression;if(this.el!==t.$el)r.warn("v-with can only be used on instance root elements.");else if(e){var o=!1,a=function(){o=!0,r.nextTick(u)},u=function(){o=!1};this.parentWatcher=new i(e,s,function(e){o||(a(),t.$set(n,e))}),t.$set(n,this.parentWatcher.value),this.childWatcher=new i(t,n,function(t){o||(a(),e.$set(s,t))})}else r.warn("v-with must be used on an instance with a parent.")},unbind:function(){this.parentWatcher&&(this.parentWatcher.teardown(),this.childWatcher.teardown())}}},{"../util":123,"../watcher":127}],101:[function(t,e,n){function r(t,e){if(i.isObject(t)){for(var n in t)if(r(t[n],e))return!0}else if(null!=t)return t.toString().toLowerCase().indexOf(e)>-1}var i=t("../util"),s=t("../parsers/path");n.filterBy=function(t,e,n,o){n&&"in"!==n&&(o=n);var a=i.stripQuotes(e)||this.$get(e);return a?(a=(""+a).toLowerCase(),o=o&&(i.stripQuotes(o)||this.$get(o)),t.filter(function(t){return o?r(s.get(t,o),a):r(t,a)})):t},n.orderBy=function(t,e,n){var r=i.stripQuotes(e)||this.$get(e);if(!r)return t;var o=1;return n&&("-1"===n?o=-1:33===n.charCodeAt(0)?(n=n.slice(1),o=this.$get(n)?1:-1):o=this.$get(n)?-1:1),t.slice().sort(function(t,e){return t=s.get(t,r),e=s.get(e,r),t===e?0:t>e?o:-o})}},{"../parsers/path":113,"../util":123}],102:[function(t,e,n){var r=t("../util");n.json={read:function(t,e){return"string"==typeof t?t:JSON.stringify(t,null,Number(e)||2)},write:function(t){try{return JSON.parse(t)}catch(e){return t}}},n.capitalize=function(t){return t||0===t?(t=t.toString(),t.charAt(0).toUpperCase()+t.slice(1)):""},n.uppercase=function(t){return t||0===t?t.toString().toUpperCase():""},n.lowercase=function(t){return t||0===t?t.toString().toLowerCase():""};var i=/(\d{3})(?=\d)/g;n.currency=function(t,e){if(t=parseFloat(t),!t&&0!==t)return"";e=e||"$";var n=Math.floor(Math.abs(t)).toString(),r=n.length%3,s=r>0?n.slice(0,r)+(n.length>3?",":""):"",o="."+t.toFixed(2).slice(-2);return(0>t?"-":"")+e+s+n.slice(r).replace(i,"$1,")+o},n.pluralize=function(t){var e=r.toArray(arguments,1);return e.length>1?e[t%10-1]||e[e.length-1]:e[0]+(1===t?"":"s")};var s={enter:13,tab:9,"delete":46,up:38,left:37,right:39,down:40,esc:27};n.key=function(t,e){if(t){var n=s[e];return n||(n=parseInt(e,10)),function(e){return e.keyCode===n?t.call(this,e):void 0}}},n.key.keyCodes=s,r.extend(n,t("./array-filters"))},{"../util":123,"./array-filters":101}],103:[function(t,e,n){var r=t("../util"),i=t("../directive"),s=t("../compiler/compile"),o=t("../compiler/transclude");n._compile=function(t){var e=this.$options,n=e._parent;if(e._linkFn)this._initElement(t),e._linkFn(this,t);else{var i=t;if(e._asComponent){var a=e._content=r.extractContent(i),u=n.$options;u._skipAttrs=e.paramAttributes;var l=s(i,u,!0,!0);if(u._skipAttrs=null,a){var c=n._children.length,h=s(a,u,!0);this._contentUnlinkFn=h(n,a),this._transCpnts=n._children.slice(c)}t=o(t,e),this._initElement(t),this._containerUnlinkFn=l(n,t)}else t=o(t,e),this._initElement(t);var f=s(t,e);f(this,t),e.replace&&r.replace(i,t)}return t},n._initElement=function(t){t instanceof DocumentFragment?(this._isBlock=!0,this.$el=this._blockStart=t.firstChild,this._blockEnd=t.lastChild,this._blockFragment=t):this.$el=t,this.$el.__vue__=this,this._callHook("beforeCompile")},n._bindDir=function(t,e,n,r){this._directives.push(new i(t,e,this,n,r))},n._destroy=function(t,e){if(!this._isBeingDestroyed){this._callHook("beforeDestroy"),this._isBeingDestroyed=!0;var n,r=this.$parent;for(r&&!r._isBeingDestroyed&&(n=r._children.indexOf(this),r._children.splice(n,1)),n=this._children.length;n--;)this._children[n].$destroy();for(this._containerUnlinkFn&&this._containerUnlinkFn(),this._contentUnlinkFn&&this._contentUnlinkFn(),n=0;n<this._directives.length;n++)this._directives[n]._teardown();for(n in this._userWatchers)this._userWatchers[n].teardown();this.$el&&(this.$el.__vue__=null);var i=this;t&&this.$el?this.$remove(function(){i._cleanup()}):e||this._cleanup()}},n._cleanup=function(){this._data.__ob__.removeVm(this),this._data=this._watchers=this._userWatchers=this._watcherList=this.$el=this.$parent=this.$root=this._children=this._transCpnts=this._directives=null,this._isDestroyed=!0,this._callHook("destroyed"),this.$off()}},{"../compiler/compile":74,"../compiler/transclude":75,"../directive":77,"../util":123}],104:[function(t,e,n){function r(t,e,n){if(n){var r,s,o,a;for(s in n)if(r=n[s],l.isArray(r))for(o=0,a=r.length;a>o;o++)i(t,e,s,r[o]);else i(t,e,s,r)}}function i(t,e,n,r){var i=typeof r;if("function"===i)t[e](n,r);else if("string"===i){var s=t.$options.methods,o=s&&s[r];o?t[e](n,o):l.warn('Unknown method: "'+r+'" when registering callback for '+e+': "'+n+'".')}}function s(){this._isAttached=!0,this._children.forEach(o),this._transCpnts&&this._transCpnts.forEach(o)}function o(t){!t._isAttached&&c(t.$el)&&t._callHook("attached")}function a(){this._isAttached=!1,this._children.forEach(u),this._transCpnts&&this._transCpnts.forEach(u)}function u(t){t._isAttached&&!c(t.$el)&&t._callHook("detached")}var l=t("../util"),c=l.inDoc;n._initEvents=function(){var t=this.$options;r(this,"$on",t.events),r(this,"$watch",t.watch)},n._initDOMHooks=function(){this.$on("hook:attached",s),this.$on("hook:detached",a)},n._callHook=function(t){var e=this.$options[t];if(e)for(var n=0,r=e.length;r>n;n++)e[n].call(this);this.$emit("hook:"+t)}},{"../util":123}],105:[function(t,e,n){var r=t("../util/merge-option");n._init=function(t){t=t||{},this.$el=null,this.$parent=t._parent,this.$root=t._root||this,this.$={},this.$$={},this._watcherList=[],this._watchers={},this._userWatchers={},this._directives=[],this._isVue=!0,this._events={},this._eventsCount={},this._eventCancelled=!1,this._isBlock=!1,this._blockStart=this._blockEnd=null,this._isCompiled=this._isDestroyed=this._isReady=this._isAttached=this._isBeingDestroyed=!1,this._children=[],this._childCtors={},this._transCpnts=null,t=this.$options=r(this.constructor.options,t,this),this._data=t.data||{},this._initScope(),this._initEvents(),this._callHook("created"),t.el&&this.$mount(t.el)}},{"../util/merge-option":125}],106:[function(t,e,n){function r(){}var i=t("../util"),s=t("../observer"),o=t("../observer/dep");n._initScope=function(){this._initData(),this._initComputed(),this._initMethods(),this._initMeta()},n._initData=function(){for(var t,e=this._data,n=Object.keys(e),r=n.length;r--;)t=n[r],i.isReserved(t)||this._proxy(t);s.create(e).addVm(this)},n._setData=function(t){t=t||{};var e=this._data;this._data=t;var n,r,o;for(n=Object.keys(e),o=n.length;o--;)r=n[o],i.isReserved(r)||r in t||this._unproxy(r);for(n=Object.keys(t),o=n.length;o--;)r=n[o],this.hasOwnProperty(r)||i.isReserved(r)||this._proxy(r);e.__ob__.removeVm(this),s.create(t).addVm(this),this._digest()},n._proxy=function(t){var e=this;Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return e._data[t]},set:function(n){e._data[t]=n}})},n._unproxy=function(t){delete this[t]},n._digest=function(){for(var t=this._watcherList.length;t--;)this._watcherList[t].update();var e=this._children;for(t=e.length;t--;){var n=e[t];n.$options.inherit&&n._digest()}},n._initComputed=function(){var t=this.$options.computed;if(t)for(var e in t){var n=t[e],s={enumerable:!0,configurable:!0};"function"==typeof n?(s.get=i.bind(n,this),s.set=r):(s.get=n.get?i.bind(n.get,this):r,s.set=n.set?i.bind(n.set,this):r),Object.defineProperty(this,e,s)}},n._initMethods=function(){var t=this.$options.methods;if(t)for(var e in t)this[e]=i.bind(t[e],this)},n._initMeta=function(){var t=this.$options._meta;if(t)for(var e in t)this._defineMeta(e,t[e])},n._defineMeta=function(t,e){var n=new o;Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:function(){return s.target&&s.target.addDep(n),e},set:function(t){t!==e&&(e=t,n.notify())}})}},{"../observer":109,"../observer/dep":108,"../util":123}],107:[function(t,e,n){var r=t("../util"),i=Array.prototype,s=Object.create(i);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=i[t];r.define(s,t,function(){for(var n=arguments.length,r=new Array(n);n--;)r[n]=arguments[n];var i,s=e.apply(this,r),o=this.__ob__;switch(t){case"push":i=r;break;case"unshift":i=r;break;case"splice":i=r.slice(2)}return i&&o.observeArray(i),o.notify(),s})}),r.define(i,"$set",function(t,e){return t>=this.length&&(this.length=t+1),this.splice(t,1,e)[0]}),r.define(i,"$remove",function(t){return"number"!=typeof t&&(t=this.indexOf(t)),t>-1?this.splice(t,1)[0]:void 0}),e.exports=s},{"../util":123}],108:[function(t,e,n){function r(){this.id=++i,this.subs=[]}var i=0,s=r.prototype;s.addSub=function(t){this.subs.push(t)},s.removeSub=function(t){if(this.subs.length){var e=this.subs.indexOf(t);e>-1&&this.subs.splice(e,1)}},s.notify=function(){for(var t=0,e=this.subs;t<e.length;t++)e[t].update()},e.exports=r},{}],109:[function(t,e,n){function r(t,e){t.__proto__=e}function i(t,e,n){for(var r,i=n.length;i--;)r=n[i],o.define(t,r,e[r])}function s(t,e){if(this.id=++h,this.value=t,this.active=!0,this.deps=[],o.define(t,"__ob__",this),e===f){var n=a.proto&&o.hasProto?r:i;n(t,l,c),this.observeArray(t)}else e===p&&this.walk(t)}var o=t("../util"),a=t("../config"),u=t("./dep"),l=t("./array"),c=Object.getOwnPropertyNames(l);t("./object");var h=0,f=0,p=1;s.target=null;var d=s.prototype;s.create=function(t){return t&&t.hasOwnProperty("__ob__")&&t.__ob__ instanceof s?t.__ob__:o.isArray(t)?new s(t,f):o.isPlainObject(t)&&!t._isVue?new s(t,p):void 0},d.walk=function(t){for(var e,n,r=Object.keys(t),i=r.length;i--;)e=r[i],n=e.charCodeAt(0),36!==n&&95!==n&&this.convert(e,t[e])},d.observe=function(t){return s.create(t)},d.observeArray=function(t){for(var e=t.length;e--;)this.observe(t[e])},d.convert=function(t,e){var n=this,r=n.observe(e),i=new u;r&&r.deps.push(i),Object.defineProperty(n.value,t,{enumerable:!0,configurable:!0,get:function(){return n.active&&s.target&&s.target.addDep(i),e},set:function(t){if(t!==e){var r=e&&e.__ob__;if(r){var s=r.deps;s.splice(s.indexOf(i),1)}e=t;var o=n.observe(t);o&&o.deps.push(i),i.notify()}}})},d.notify=function(){for(var t=this.deps,e=0,n=t.length;n>e;e++)t[e].notify()},d.addVm=function(t){(this.vms=this.vms||[]).push(t)},d.removeVm=function(t){this.vms.splice(this.vms.indexOf(t),1)},e.exports=s},{"../config":76,"../util":123,"./array":107,"./dep":108,"./object":110}],110:[function(t,e,n){var r=t("../util"),i=Object.prototype;r.define(i,"$add",function(t,e){if(!this.hasOwnProperty(t)){var n=this.__ob__;if(!n||r.isReserved(t))return void(this[t]=e);if(n.convert(t,e),n.vms)for(var i=n.vms.length;i--;){var s=n.vms[i];s._proxy(t),s._digest()}else n.notify()}}),r.define(i,"$delete",function(t){if(this.hasOwnProperty(t)){delete this[t];var e=this.__ob__;if(e&&!r.isReserved(t))if(e.vms)for(var n=e.vms.length;n--;){var i=e.vms[n];i._unproxy(t),i._digest()}else e.notify()}})},{"../util":123}],111:[function(t,e,n){function r(){m.raw=s.slice(d,a).trim(),void 0===m.expression?m.expression=s.slice(v,a).trim():b!==d&&i(),(0===a||m.expression)&&g.push(m)}function i(){var t,e=s.slice(b,a).trim();if(e){t={};var n=e.match(E);t.name=n[0],t.args=n.length>1?n.slice(1):null}t&&(m.filters=m.filters||[]).push(t),b=a+1}var s,o,a,u,l,c,h,f,p,d,v,g,m,b,y,w=t("../util"),_=t("../cache"),x=new _(1e3),k=/^[^\{\?]+$|^'[^']*'$|^"[^"]*"$/,E=/[^\s'"]+|'[^']+'|"[^"]+"/g;n.parse=function(t){var e=x.get(t);if(e)return e;for(s=t,l=c=!1,h=f=p=d=v=0,b=0,g=[],m={},y=null,a=0,u=s.length;u>a;a++)if(o=s.charCodeAt(a),l)39===o&&(l=!l);else if(c)34===o&&(c=!c);else if(44!==o||p||h||f)if(58!==o||m.expression||m.arg)if(124===o&&124!==s.charCodeAt(a+1)&&124!==s.charCodeAt(a-1))void 0===m.expression?(b=a+1,m.expression=s.slice(v,a).trim()):i();else switch(o){case 34:c=!0;break;case 39:l=!0;break;case 40:p++;break;case 41:p--;break;case 91:f++;break;case 93:f--;break;case 123:h++;break;case 125:h--}else y=s.slice(d,a).trim(),k.test(y)&&(v=a+1,m.arg=w.stripQuotes(y)||y);else r(),m={},d=v=b=a+1;return(0===a||d!==a)&&r(),x.put(t,g),g}},{"../cache":73,"../util":123}],112:[function(t,e,n){function r(t){var e=k.length;return k[e]=t.replace(m,"\\n"),'"'+e+'"'}function i(t){var e=t.charAt(0),n=t.slice(1);return x.test(n)?t:(n=n.indexOf('"')>-1?n.replace(y,s):n,e+"scope."+n)}function s(t,e){return k[e]}function o(t,e){k.length=0;var n=t.replace(b,r).replace(g,"");n=(" "+n).replace(_,i).replace(y,s);var o=u(n);return o?{get:o,body:n,set:e?l(n):null}:void 0}function a(t){var e,n;return t.indexOf("[")<0?(n=t.split("."),e=f.compileGetter(n)):(n=f.parse(t),e=n.get),{get:e,set:function(t,e){f.set(t,n,e)}}}function u(t){try{return new Function("scope","return "+t+";")}catch(e){h.warn("Invalid expression. Generated function body: "+t)}}function l(t){try{return new Function("scope","value",t+"=value;")}catch(e){h.warn("Invalid setter function body: "+t)}}function c(t){t.set||(t.set=l(t.body))}var h=t("../util"),f=t("./path"),p=t("../cache"),d=new p(1e3),v="Math,break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,undefined,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield",g=/\s/g,m=/\n/g,b=/[\{,]\s*[\w\$_]+\s*:|'[^']*'|"[^"]*"/g,y=/"(\d+)"/g,w=/^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\]|\[\d+\])*$/,_=/[^\w$\.]([A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\])*)/g,x=new RegExp("^("+v.replace(/,/g,"\\b|")+"\\b)"),k=[];
|
|
n.parse=function(t,e){t=t.trim();var n=d.get(t);if(n)return e&&c(n),n;var r=w.test(t)&&"Math."!==t.slice(0,5)?a(t):o(t,e);return d.put(t,r),r},n.pathTestRE=w},{"../cache":73,"../util":123,"./path":113}],113:[function(t,e,n){function r(){}function i(t){if(void 0===t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:case 48:return t;case 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return e>=97&&122>=e||e>=65&&90>=e?"ident":e>=49&&57>=e?"number":"else"}function s(t){function e(){var e=t[p+1];return"inSingleQuote"===d&&"'"===e||"inDoubleQuote"===d&&'"'===e?(p++,s=e,v.append(),!0):void 0}for(var n,s,o,a,u,l,c,f=[],p=-1,d="beforePath",v={push:function(){void 0!==o&&(f.push(o),o=void 0)},append:function(){void 0===o?o=s:o+=s}};d;)if(p++,n=t[p],"\\"!==n||!e()){if(a=i(n),c=h[d],u=c[a]||c["else"]||"error","error"===u)return;if(d=u[0],l=v[u[1]]||r,s=void 0===u[2]?n:u[2],l(),"afterPath"===d)return f}}function o(t){return c.test(t)?"."+t:+t===t>>>0?"["+t+"]":'["'+t.replace(/"/g,'\\"')+'"]'}var a=t("../util"),u=t("../cache"),l=new u(1e3),c=/^[$_a-zA-Z]+[\w$]*$/,h={beforePath:{ws:["beforePath"],ident:["inIdent","append"],"[":["beforeElement"],eof:["afterPath"]},inPath:{ws:["inPath"],".":["beforeIdent"],"[":["beforeElement"],eof:["afterPath"]},beforeIdent:{ws:["beforeIdent"],ident:["inIdent","append"]},inIdent:{ident:["inIdent","append"],0:["inIdent","append"],number:["inIdent","append"],ws:["inPath","push"],".":["beforeIdent","push"],"[":["beforeElement","push"],eof:["afterPath","push"]},beforeElement:{ws:["beforeElement"],0:["afterZero","append"],number:["inIndex","append"],"'":["inSingleQuote","append",""],'"':["inDoubleQuote","append",""]},afterZero:{ws:["afterElement","push"],"]":["inPath","push"]},inIndex:{0:["inIndex","append"],number:["inIndex","append"],ws:["afterElement"],"]":["inPath","push"]},inSingleQuote:{"'":["afterElement"],eof:"error","else":["inSingleQuote","append"]},inDoubleQuote:{'"':["afterElement"],eof:"error","else":["inDoubleQuote","append"]},afterElement:{ws:["afterElement"],"]":["inPath","push"]}};n.compileGetter=function(t){var e="return o"+t.map(o).join("");return new Function("o",e)},n.parse=function(t){var e=l.get(t);return e||(e=s(t),e&&(e.get=n.compileGetter(e),l.put(t,e))),e},n.get=function(t,e){return e=n.parse(e),e?e.get(t):void 0},n.set=function(t,e,r){if("string"==typeof e&&(e=n.parse(e)),!e||!a.isObject(t))return!1;for(var i,s,o=0,u=e.length-1;u>o;o++)i=t,s=e[o],t=t[s],a.isObject(t)||(t={},i.$add(s,t));return s=e[o],s in t?t[s]=r:t.$add(s,r),!0}},{"../cache":73,"../util":123}],114:[function(t,e,n){function r(t){var e=a.get(t);if(e)return e;var n=document.createDocumentFragment(),r=t.match(c),i=h.test(t);if(r||i){var s=r&&r[1],o=l[s]||l._default,u=o[0],f=o[1],p=o[2],d=document.createElement("div");for(d.innerHTML=f+t.trim()+p;u--;)d=d.lastChild;for(var v;v=d.firstChild;)n.appendChild(v)}else n.appendChild(document.createTextNode(t));return a.put(t,n),n}function i(t){var e=t.tagName;return"TEMPLATE"===e&&t.content instanceof DocumentFragment?t.content:r("SCRIPT"===e?t.textContent:t.innerHTML)}var s=t("../util"),o=t("../cache"),a=new o(1e3),u=new o(1e3),l={_default:[0,"",""],legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]};l.td=l.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],l.option=l.optgroup=[1,'<select multiple="multiple">',"</select>"],l.thead=l.tbody=l.colgroup=l.caption=l.tfoot=[1,"<table>","</table>"],l.g=l.defs=l.symbol=l.use=l.image=l.text=l.circle=l.ellipse=l.line=l.path=l.polygon=l.polyline=l.rect=[1,'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events"version="1.1">',"</svg>"];var c=/<([\w:]+)/,h=/&\w+;/,f=s.inBrowser?function(){var t=document.createElement("div");return t.innerHTML="<template>1</template>",!t.cloneNode(!0).firstChild.innerHTML}():!1,p=s.inBrowser?function(){var t=document.createElement("textarea");return t.placeholder="t","t"===t.cloneNode(!0).value}():!1;n.clone=function(t){var e,n,r,i=t.cloneNode(!0);if(f&&(n=t.querySelectorAll("template"),n.length))for(r=i.querySelectorAll("template"),e=r.length;e--;)r[e].parentNode.replaceChild(n[e].cloneNode(!0),r[e]);if(p)if("TEXTAREA"===t.tagName)i.value=t.value;else if(n=t.querySelectorAll("textarea"),n.length)for(r=i.querySelectorAll("textarea"),e=r.length;e--;)r[e].value=n[e].value;return i},n.parse=function(t,e,s){var o,a;return t instanceof DocumentFragment?e?t.cloneNode(!0):t:("string"==typeof t?s||"#"!==t.charAt(0)?a=r(t):(a=u.get(t),a||(o=document.getElementById(t.slice(1)),o&&(a=i(o),u.put(t,a)))):t.nodeType&&(a=i(t)),a&&e?n.clone(a):a)}},{"../cache":73,"../util":123}],115:[function(t,e,n){function r(t){return t.replace(v,"\\$&")}function i(){p._delimitersChanged=!1;var t=p.delimiters[0],e=p.delimiters[1];c=t.charAt(0),h=e.charAt(e.length-1);var n=r(c),i=r(h),s=r(t),o=r(e);u=new RegExp(n+"?"+s+"(.+?)"+o+i+"?","g"),l=new RegExp("^"+n+s+".*"+o+i+"$"),a=new f(1e3)}function s(t,e,n){return t.tag?e&&t.oneTime?'"'+e.$eval(t.value)+'"':n?t.value:o(t.value):'"'+t.value+'"'}function o(t){if(g.test(t)){var e=d.parse(t)[0];if(e.filters){t=e.expression;for(var n=0,r=e.filters.length;r>n;n++){var i=e.filters[n],s=i.args?',"'+i.args.join('","')+'"':"";t='this.$options.filters["'+i.name+'"].apply(this,['+t+s+"])"}return t}return"("+t+")"}return"("+t+")"}var a,u,l,c,h,f=t("../cache"),p=t("../config"),d=t("./directive"),v=/[-.*+?^${}()|[\]\/\\]/g;n.parse=function(t){p._delimitersChanged&&i();var e=a.get(t);if(e)return e;if(!u.test(t))return null;for(var n,r,s,o,c,h,f=[],d=u.lastIndex=0;n=u.exec(t);)r=n.index,r>d&&f.push({value:t.slice(d,r)}),o=n[1].charCodeAt(0),c=42===o,h=62===o,s=c||h?n[1].slice(1):n[1],f.push({tag:!0,value:s.trim(),html:l.test(n[0]),oneTime:c,partial:h}),d=r+n[0].length;return d<t.length&&f.push({value:t.slice(d)}),a.put(t,f),f},n.tokensToExp=function(t,e){return t.length>1?t.map(function(t){return s(t,e)}).join("+"):s(t[0],e,!0)};var g=/[^|]\|[^|]/},{"../cache":73,"../config":76,"./directive":111}],116:[function(t,e,n){function r(t,e,n,r,s){f.push({el:t,dir:e,cb:s,cls:r,op:n}),p||(p=!0,a.nextTick(i))}function i(){document.documentElement.offsetHeight;f.forEach(s),f=[],p=!1}function s(t){function e(t,e){r.event=t;var i=r.callback=function(o){o.target===n&&(a.off(n,t,i),r.event=r.callback=null,e&&e(),s&&s())};a.on(n,t,i)}var n=t.el,r=n.__v_trans,i=t.cls,s=t.cb,u=t.op,c=o(n,r,i);if(t.dir>0)1===c?(l(n,i),s&&e(a.transitionEndEvent)):2===c?e(a.animationEndEvent,function(){l(n,i)}):(l(n,i),s&&s());else if(c){var h=1===c?a.transitionEndEvent:a.animationEndEvent;e(h,function(){u(),l(n,i)})}else u(),l(n,i),s&&s()}function o(t,e,n){var r=e.cache&&e.cache[n];if(r)return r;var i=t.style,s=window.getComputedStyle(t),o=i[c]||s[c];if(o&&"0s"!==o)r=1;else{var a=i[h]||s[h];a&&"0s"!==a&&(r=2)}return r&&(e.cache||(e.cache={}),e.cache[n]=r),r}var a=t("../util"),u=a.addClass,l=a.removeClass,c=a.transitionProp+"Duration",h=a.animationProp+"Duration",f=[],p=!1;e.exports=function(t,e,n,i,s){var o=i.id||"v",c=o+"-enter",h=o+"-leave";i.callback&&(a.off(t,i.event,i.callback),l(t,c),l(t,h),i.event=i.callback=null),e>0?(u(t,c),n(),r(t,e,null,c,s)):(u(t,h),r(t,e,n,h,s))}},{"../util":123}],117:[function(t,e,n){var r=t("../util"),i=t("./css"),s=t("./js");n.append=function(t,e,n,r){o(t,1,function(){e.appendChild(t)},n,r)},n.before=function(t,e,n,i){o(t,1,function(){r.before(t,e)},n,i)},n.remove=function(t,e,n){o(t,-1,function(){r.remove(t)},e,n)},n.removeThenAppend=function(t,e,n,r){o(t,-1,function(){e.appendChild(t)},n,r)},n.blockAppend=function(t,e,i){for(var s=r.toArray(t.childNodes),o=0,a=s.length;a>o;o++)n.before(s[o],e,i)},n.blockRemove=function(t,e,r){for(var i,s=t.nextSibling;s!==e;)i=s.nextSibling,n.remove(s,r),s=i};var o=n.apply=function(t,e,n,o,a){var u=t.__v_trans;if(!u||!o._isCompiled||o.$parent&&!o.$parent._isCompiled)return n(),void(a&&a());var l=u.fns;l?s(t,e,n,u,l,o,a):r.transitionEndEvent?i(t,e,n,u,a):(n(),a&&a())}},{"../util":123,"./css":116,"./js":118}],118:[function(t,e,n){e.exports=function(t,e,n,r,i,s,o){r.cancel&&(r.cancel(),r.cancel=null),e>0?(i.beforeEnter&&i.beforeEnter.call(s,t),n(),i.enter?r.cancel=i.enter.call(s,t,function(){r.cancel=null,o&&o()}):o&&o()):i.leave?r.cancel=i.leave.call(s,t,function(){r.cancel=null,n(),o&&o()}):(n(),o&&o())}},{}],119:[function(t,e,n){function r(){var t="undefined"!=typeof console;n.log=function(e){t&&i.debug&&console.log("[Vue info]: "+e)};var e=!1;n.warn=function(n){!t||i.silent&&!i.debug||(i.debug||e||(e=!0,console.log("Set `Vue.config.debug = true` to enable debug mode.")),console.warn("[Vue warn]: "+n),i.debug)},n.assertAsset=function(t,e,r){t||n.warn("Failed to resolve "+e+": "+r)}}var i=t("../config");r()},{"../config":76}],120:[function(t,e,n){var r=t("../config"),i="undefined"!=typeof document&&document.documentElement;n.inDoc=function(t){return i&&i.contains(t)},n.attr=function(t,e){e=r.prefix+e;var n=t.getAttribute(e);return null!==n&&t.removeAttribute(e),n},n.before=function(t,e){e.parentNode.insertBefore(t,e)},n.after=function(t,e){e.nextSibling?n.before(t,e.nextSibling):e.parentNode.appendChild(t)},n.remove=function(t){t.parentNode.removeChild(t)},n.prepend=function(t,e){e.firstChild?n.before(t,e.firstChild):e.appendChild(t)},n.replace=function(t,e){var n=t.parentNode;n&&n.replaceChild(e,t)},n.copyAttributes=function(t,e){if(t.hasAttributes())for(var n=t.attributes,r=0,i=n.length;i>r;r++){var s=n[r];e.setAttribute(s.name,s.value)}},n.on=function(t,e,n){t.addEventListener(e,n)},n.off=function(t,e,n){t.removeEventListener(e,n)},n.addClass=function(t,e){if(t.classList)t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}},n.removeClass=function(t,e){if(t.classList)t.classList.remove(e);else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");t.setAttribute("class",n.trim())}},n.extractContent=function(t){var e,n;if(t.hasChildNodes())for(n=document.createElement("div");e=t.firstChild;)n.appendChild(e);return n}},{"../config":76}],121:[function(t,e,n){function r(t){var e=[],n=document.createTextNode("0"),r=0;return new t(function(){for(var t=e.length,n=0;t>n;n++)e[n]();e=e.slice(t)}).observe(n,{characterData:!0}),function(t){e.push(t),n.nodeValue=r=++r%2}}n.hasProto="__proto__"in{};var i,s=Object.prototype.toString,o=n.inBrowser="undefined"!=typeof window&&"[object Object]"!==s.call(window);if(i="undefined"!=typeof MutationObserver?r(MutationObserver):"undefined"!=typeof WebkitMutationObserver?r(WebkitMutationObserver):setTimeout,n.nextTick=function(t,e){e?i(function(){t.call(e)},0):i(t,0)},n.isIE9=o&&navigator.userAgent.indexOf("MSIE 9.0")>0,o&&!n.isIE9){var a=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,u=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;n.transitionProp=a?"WebkitTransition":"transition",n.transitionEndEvent=a?"webkitTransitionEnd":"transitionend",n.animationProp=u?"WebkitAnimation":"animation",n.animationEndEvent=u?"webkitAnimationEnd":"animationend"}},{}],122:[function(t,e,n){var r=t("./debug");n.resolveFilters=function(t,e,n){if(e){var i=n||{};return e.forEach(function(e){var n=t.$options.filters[e.name];if(r.assertAsset(n,"filter",e.name),n){var s,o,a=e.args;"function"==typeof n?s=n:(s=n.read,o=n.write),s&&(i.read||(i.read=[]),i.read.push(function(e){return a?s.apply(t,[e].concat(a)):s.call(t,e)})),o&&(i.write||(i.write=[]),i.write.push(function(e,n){return a?o.apply(t,[e,n].concat(a)):o.call(t,e,n)}))}}),i}},n.applyFilters=function(t,e,n,r){if(!e)return t;for(var i=0,s=e.length;s>i;i++)t=e[i].call(n,t,r);return t}},{"./debug":119}],123:[function(t,e,n){var r=t("./lang"),i=r.extend;i(n,r),i(n,t("./env")),i(n,t("./dom")),i(n,t("./filter")),i(n,t("./debug"))},{"./debug":119,"./dom":120,"./env":121,"./filter":122,"./lang":124}],124:[function(t,e,n){n.isReserved=function(t){var e=t.charCodeAt(0);return 36===e||95===e},n.toString=function(t){return null==t?"":t.toString()},n.toNumber=function(t){return isNaN(t)||null===t||"boolean"==typeof t?t:Number(t)},n.stripQuotes=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e!==n||34!==e&&39!==e?!1:t.slice(1,-1)};var r=/[-_](\w)/g,i=/(?:^|[-_])(\w)/g;n.camelize=function(t,e){var n=e?i:r;return t.replace(n,function(t,e){return e?e.toUpperCase():""})},n.bind=function(t,e){return function(){return t.apply(e,arguments)}},n.toArray=function(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r},n.extend=function(t,e){for(var n in e)t[n]=e[n];return t},n.isObject=function(t){return t&&"object"==typeof t};var s=Object.prototype.toString;n.isPlainObject=function(t){return"[object Object]"===s.call(t)},n.isArray=function(t){return Array.isArray(t)},n.define=function(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}},{}],125:[function(t,e,n){function r(t,e){var n,i,o;for(n in e)i=t[n],o=e[n],t.hasOwnProperty(n)?s.isObject(i)&&s.isObject(o)&&r(i,o):t.$add(n,o);return t}function i(t){if(t){var e;for(var n in t)e=t[n],s.isPlainObject(e)&&(e.name=n,t[n]=s.Vue.extend(e))}}var s=t("./index"),o=s.extend,a=Object.create(null);a.data=function(t,e,n){if(n){var i="function"==typeof e?e.call(n):e,o="function"==typeof t?t.call(n):void 0;return i?r(i,o):o}return e?"function"!=typeof e?(s.warn('The "data" option should be a function that returns a per-instance value in component definitions.'),t):t?function(){return r(e.call(this),t.call(this))}:e:t},a.el=function(t,e,n){if(!n&&e&&"function"!=typeof e)return void s.warn('The "el" option should be a function that returns a per-instance value in component definitions.');var r=e||t;return n&&"function"==typeof r?r.call(n):r},a.created=a.ready=a.attached=a.detached=a.beforeCompile=a.compiled=a.beforeDestroy=a.destroyed=a.paramAttributes=function(t,e){return e?t?t.concat(e):s.isArray(e)?e:[e]:t},a.directives=a.filters=a.partials=a.transitions=a.components=function(t,e,n,r){var i=Object.create(n&&n.$parent?n.$parent.$options[r]:s.Vue.options[r]);if(t)for(var a,u=Object.keys(t),l=u.length;l--;)a=u[l],i[a]=t[a];return e&&o(i,e),i},a.watch=a.events=function(t,e){if(!e)return t;if(!t)return e;var n={};o(n,t);for(var r in e){var i=n[r],a=e[r];i&&!s.isArray(i)&&(i=[i]),n[r]=i?i.concat(a):[a]}return n},a.methods=a.computed=function(t,e){if(!e)return t;if(!t)return e;var n=Object.create(t);return o(n,e),n};var u=function(t,e){return void 0===e?t:e};e.exports=function l(t,e,n){function r(r){var i=a[r]||u;o[r]=i(t[r],e[r],n,r)}i(e.components);var s,o={};if(e.mixins)for(var c=0,h=e.mixins.length;h>c;c++)t=l(t,e.mixins[c],n);for(s in t)r(s);for(s in e)t.hasOwnProperty(s)||r(s);return o}},{"./index":123}],126:[function(t,e,n){function r(t){this._init(t)}var i=t("./util"),s=i.extend;s(r,t("./api/global")),r.options={directives:t("./directives"),filters:t("./filters"),partials:{},transitions:{},components:{}};var o=r.prototype;Object.defineProperty(o,"$data",{get:function(){return this._data},set:function(t){this._setData(t)}}),s(o,t("./instance/init")),s(o,t("./instance/events")),s(o,t("./instance/scope")),s(o,t("./instance/compile")),s(o,t("./api/data")),s(o,t("./api/dom")),s(o,t("./api/events")),s(o,t("./api/child")),s(o,t("./api/lifecycle")),e.exports=i.Vue=r},{"./api/child":66,"./api/data":67,"./api/dom":68,"./api/events":69,"./api/global":70,"./api/lifecycle":71,"./directives":86,"./filters":102,"./instance/compile":103,"./instance/events":104,"./instance/init":105,"./instance/scope":106,"./util":123}],127:[function(t,e,n){function r(t,e,n,r){this.vm=t,t._watcherList.push(this),this.expression=e,this.cbs=[n],this.id=++c,this.active=!0,r=r||{},this.deep=r.deep,this.user=r.user,this.deps=Object.create(null),r.filters&&(this.readFilters=r.filters.read,this.writeFilters=r.filters.write);var i=u.parse(e,r.twoWay);this.getter=i.get,this.setter=i.set,this.value=this.get()}function i(t){var e,n,r;for(e in t)if(n=t[e],s.isArray(n))for(r=n.length;r--;)i(n[r]);else s.isObject(n)&&i(n)}var s=t("./util"),o=t("./config"),a=t("./observer"),u=t("./parsers/expression"),l=t("./batcher"),c=0,h=r.prototype;h.addDep=function(t){var e=t.id;this.newDeps[e]||(this.newDeps[e]=t,this.deps[e]||(this.deps[e]=t,t.addSub(this)))},h.get=function(){this.beforeGet();var t,e=this.vm;try{t=this.getter.call(e,e)}catch(n){o.warnExpressionErrors&&s.warn('Error when evaluating expression "'+this.expression+'":\n '+n)}return this.deep&&i(t),t=s.applyFilters(t,this.readFilters,e),this.afterGet(),t},h.set=function(t){var e=this.vm;t=s.applyFilters(t,this.writeFilters,e,this.value);try{this.setter.call(e,e,t)}catch(n){o.warnExpressionErrors&&s.warn('Error when evaluating setter "'+this.expression+'":\n '+n)}},h.beforeGet=function(){a.target=this,this.newDeps={}},h.afterGet=function(){a.target=null;for(var t in this.deps)this.newDeps[t]||this.deps[t].removeSub(this);this.deps=this.newDeps},h.update=function(){!o.async||o.debug?this.run():l.push(this)},h.run=function(){if(this.active){var t=this.get();if(t!==this.value||Array.isArray(t)||this.deep){var e=this.value;this.value=t;for(var n=this.cbs,r=0,i=n.length;i>r;r++){n[r](t,e);var s=i-n.length;s&&(r-=s,i-=s)}}}},h.addCb=function(t){this.cbs.push(t)},h.removeCb=function(t){var e=this.cbs;if(e.length>1){var n=e.indexOf(t);n>-1&&e.splice(n,1)}else t===e[0]&&this.teardown()},h.teardown=function(){if(this.active){if(!this.vm._isBeingDestroyed){var t=this.vm._watcherList;t.splice(t.indexOf(this))}for(var e in this.deps)this.deps[e].removeSub(this);this.active=!1,this.vm=this.cbs=this.value=null}},e.exports=r},{"./batcher":72,"./config":76,"./observer":109,"./parsers/expression":112,"./util":123}],128:[function(t,e,n){function r(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var r in n)i.call(n,r)&&(t[r]=n[r])}return t}e.exports=r;var i=Object.prototype.hasOwnProperty},{}],129:[function(t,e,n){"use strict";function r(){if(window.analytics)try{return window.analytics.user().anonymousId()}catch(t){}var e=i.get(o);if(!e){e=s();var n=new Date,r=new Date(n.getTime()+31536e6);i.set(o,e,{expires:r,path:"/"})}return e}n.__esModule=!0;var i=t("cookie-cutter"),s=t("uuid"),o="sm_anonymous_id";n["default"]=r},{"cookie-cutter":12,uuid:65}],130:[function(t,e,n){"use strict";n.__esModule=!0;var r=t("./service"),i=t("./store"),s=r["default"](new i["default"]),o=window.satismeter&&window.satismeter.q;o&&o.forEach(function(t){s.apply(null,t)}),window.satismeter=s},{"./service":131,"./store":132}],131:[function(t,e,n){"use strict";function r(t){function e(e){w||(e=s(e,{writeKey:p,userId:d,anonymousId:v,referrer:window.location.href,method:m,traits:b,campaign:y,displayed:k}),t.saveResponse(e))}function n(){try{x.dismiss&&x.dismiss()}catch(t){console.log("error in event hook",t)}e("rating"===f.state?{dismissed:!0}:{rating:f.rating,completed:!0}),f=null}function r(){var t={rating:f.rating,feedback:f.feedback,reason:f.reason,answers:f.answers,completed:!0};try{x.submit&&x.submit(t)}catch(n){console.log("error in event hook",n)}e(t),f=null}function h(h){h=s(window.satismeterSettings,h),h.server&&(t.server=h.server),p=h.writeKey||h.token;var E=h.user||h.visitor||{};g=!!h.trackAnonymous,m=h.method||l,w=!!h.preview,_=a(h.forceSurvey)?h.forceSurvey:!1,x=h.events||{};var A=h.language;d=h.userId||E.userId||E.id,v=h.anonymousId||E.anonymousId,d||v||(v=i["default"]()),h.traits?b=h.traits:(b=s(h),["server","token","writeKey","user","visitor","userId","id","trackAnonymous","attributes","method","language","skin","rating","showFilledMessage","translation","showNumbers","requireFeedback","preview","forceSurvey","type","events","serviceName"].forEach(function(t){delete b[t]}),(E.signUpDate||E.createdAt)&&(b.createdAt=E.signUpDate||E.createdAt),E.name&&(b.name=E.name),E.email&&(b.email=E.email)),t.identify({writeKey:p,userId:d,anonymousId:v,trackAnonymous:g,language:A,method:m,traits:b,referrer:window.location.href,preview:w,forceSurvey:_,type:h.type||"identify",libVersion:"44fadd6590e617c77dedf98e8c18116ed399f564"},function(t,i){function s(){f||(f=new o(C),f.on("dismiss",n),f.on("submit",r),m===l&&f.on("ratingSelect",function(){e({rating:f.rating})}),f.show())}if(!t&&!(i.status>=400||f)){var p=i.body.widget,d=p.position||p.position||"mr",v=h.skin||p.skin||("footer"===d?"bar":"dialog"),g=u(h.rating)?h.rating:null,b=h.serviceName||p.serviceName||null,w=!!h.showFilledMessage,_=h.translation||p.translation||{},E=a(h.showNumbers)?h.showNumbers:a(p.showNumbers)?p.showNumbers:!1,A=a(h.requireFeedback)?h.requireFeedback:a(p.requireFeedback)?p.requireFeedback:!1,T=a(p.showPoweredBy)?p.showPoweredBy:!0,S=u(p.surveyDelay)?p.surveyDelay:0;y=p.campaign,k=p.displayed;var C={language:h.language||p.language,skin:v,colors:{primary:p.primaryColor,foreground:p.foregroundColor,background:p.backgroundColor},position:d,rating:g,serviceName:b,translation:_,parent:h.parent,embed:h.embed,size:h.size,showNumbers:E,requireFeedback:A,poweredBy:T},$=!1;if(p.visible){$=!0;try{x.display&&x.display()}catch(t){console.log("error in event hook",t)}u(g)&&(C.state="feedback")}else w&&(C.state="filled",$=!0);$&&(m===l&&S>0?setTimeout(function(){s()},1e3*S):s(),p.visible&&m===c&&u(g)&&e({rating:g}))}})}var f,p,d,v,g,m,b,y,w,_,x,k;return h}n.__esModule=!0;var i=t("./anonymous-id"),s=t("xtend"),o=t("nps-widget"),a=t("lodash/isBoolean"),u=t("lodash/isNumber"),l="In-app",c="Form";n["default"]=r},{"./anonymous-id":129,"lodash/isBoolean":30,"lodash/isNumber":33,"nps-widget":53,xtend:128}],132:[function(t,e,n){"use strict";n.__esModule=!0;var r=t("superagent"),i="https://app.satismeter.com",s=function(){function t(t){var e=(void 0===t?{}:t).server,n=void 0===e?i:e;this.buffer=[],this.responseUrl=null,this.authToken=null,this.saving=!1,this.server=n}return t.prototype.identify=function(t,e){r.post(this.server+"/api/widget").send(t).set("Content-Type","application/json").set("Accept","application/json").end(e)},t.prototype.saveResponse=function(t){var e=this;if(this.saving)return void this.buffer.push(t);this.saving=!0;var n;n=this.responseUrl?r.put(this.responseUrl).set("auth-token",this.authToken):r.post(this.server+"/api/responses"),n.send(t).set("Content-Type","application/json").set("Accept","application/json").end(function(t){t.error&&console.log(t.error),e.responseUrl=t.header.location,e.authToken=t.header["auth-token"],e.saving=!1,e.buffer.length>0&&e.saveResponse(e.buffer.shift())})},t}();n["default"]=s},{superagent:63}]},{},[130]); |