<!DOCTYPE html>
<html ng-app="plunker">

  <head>
    <meta charset="utf-8" />
    <title>AngularJS Plunker</title>
    <link data-require="bootstrap-css@3.x" data-semver="3.1.0" rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" />
    <link data-require="font-awesome@*" data-semver="4.0.3" rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" />
    <!-- inject:css -->
    <link rel="stylesheet" href="style.css">
    <!-- endinject -->
    <script src="http://ace.c9.io/build/src/ace.js"></script>
    <script src="https://cdn.firebase.com/js/client/1.0.2/firebase.js"></script>
    <!-- inject:js -->
    <script src="script.js"></script>
    <!-- endinject -->

  </head>

  <body ui-view=""></body>

</html>
!function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);throw new Error("Cannot find module '"+a+"'")}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return o(n?n:e)},l,l.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(){},{buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7}],2:[function(e,t,n){(function(t,r,o){function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);var r=typeof e;if("base64"===t&&"string"===r)for(e=A(e);e.length%4!==0;)e+="=";var i;if("number"===r)i=P(e);else if("string"===r)i=o.byteLength(e,t);else{if("object"!==r)throw new Error("First argument needs to be a number, array or string.");i=P(e.length)}var a;o._useTypedArrays?a=D(new Uint8Array(i)):(a=this,a.length=i,a._isBuffer=!0);var s;if(o._useTypedArrays&&"function"==typeof Uint8Array&&e instanceof Uint8Array)a._set(e);else if(M(e))for(s=0;i>s;s++)a[s]=o.isBuffer(e)?e.readUInt8(s):e[s];else if("string"===r)a.write(e,0,t);else if("number"===r&&!o._useTypedArrays&&!n)for(s=0;i>s;s++)a[s]=0;return a}function i(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var a=t.length;V(a%2===0,"Invalid hex string"),r>a/2&&(r=a/2);for(var s=0;r>s;s++){var u=parseInt(t.substr(2*s,2),16);V(!isNaN(u),"Invalid hex string"),e[n+s]=u}return o._charsWritten=2*s,s}function a(e,t,n,r){var i=o._charsWritten=U(L(t),e,n,r);return i}function s(e,t,n,r){var i=o._charsWritten=U(N(t),e,n,r);return i}function u(e,t,n,r){return s(e,t,n,r)}function l(e,t,n,r){var i=o._charsWritten=U(B(t),e,n,r);return i}function c(e,t,n,r){var i=o._charsWritten=U(R(t),e,n,r);return i}function f(e,t,n){return W.fromByteArray(0===t&&n===e.length?e:e.slice(t,n))}function p(e,t,n){var r="",o="";n=Math.min(e.length,n);for(var i=t;n>i;i++)e[i]<=127?(r+=F(o)+String.fromCharCode(e[i]),o=""):o+="%"+e[i].toString(16);return r+F(o)}function d(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;n>o;o++)r+=String.fromCharCode(e[o]);return r}function h(e,t,n){return d(e,t,n)}function g(e,t,n){var r=e.length;(!t||0>t)&&(t=0),(!n||0>n||n>r)&&(n=r);for(var o="",i=t;n>i;i++)o+=I(e[i]);return o}function m(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function v(e,t,n,r){r||(V("boolean"==typeof n,"missing or invalid endian"),V(void 0!==t&&null!==t,"missing offset"),V(t+1<e.length,"Trying to read beyond buffer length"));var o=e.length;if(!(t>=o)){var i;return n?(i=e[t],o>t+1&&(i|=e[t+1]<<8)):(i=e[t]<<8,o>t+1&&(i|=e[t+1])),i}}function y(e,t,n,r){r||(V("boolean"==typeof n,"missing or invalid endian"),V(void 0!==t&&null!==t,"missing offset"),V(t+3<e.length,"Trying to read beyond buffer length"));var o=e.length;if(!(t>=o)){var i;return n?(o>t+2&&(i=e[t+2]<<16),o>t+1&&(i|=e[t+1]<<8),i|=e[t],o>t+3&&(i+=e[t+3]<<24>>>0)):(o>t+1&&(i=e[t+1]<<16),o>t+2&&(i|=e[t+2]<<8),o>t+3&&(i|=e[t+3]),i+=e[t]<<24>>>0),i}}function b(e,t,n,r){r||(V("boolean"==typeof n,"missing or invalid endian"),V(void 0!==t&&null!==t,"missing offset"),V(t+1<e.length,"Trying to read beyond buffer length"));var o=e.length;if(!(t>=o)){var i=v(e,t,n,!0),a=32768&i;return a?-1*(65535-i+1):i}}function $(e,t,n,r){r||(V("boolean"==typeof n,"missing or invalid endian"),V(void 0!==t&&null!==t,"missing offset"),V(t+3<e.length,"Trying to read beyond buffer length"));var o=e.length;if(!(t>=o)){var i=y(e,t,n,!0),a=2147483648&i;return a?-1*(4294967295-i+1):i}}function w(e,t,n,r){return r||(V("boolean"==typeof n,"missing or invalid endian"),V(t+3<e.length,"Trying to read beyond buffer length")),K.read(e,t,n,23,4)}function x(e,t,n,r){return r||(V("boolean"==typeof n,"missing or invalid endian"),V(t+7<e.length,"Trying to read beyond buffer length")),K.read(e,t,n,52,8)}function _(e,t,n,r,o){o||(V(void 0!==t&&null!==t,"missing value"),V("boolean"==typeof r,"missing or invalid endian"),V(void 0!==n&&null!==n,"missing offset"),V(n+1<e.length,"trying to write beyond buffer length"),H(t,65535));var i=e.length;if(!(n>=i))for(var a=0,s=Math.min(i-n,2);s>a;a++)e[n+a]=(t&255<<8*(r?a:1-a))>>>8*(r?a:1-a)}function k(e,t,n,r,o){o||(V(void 0!==t&&null!==t,"missing value"),V("boolean"==typeof r,"missing or invalid endian"),V(void 0!==n&&null!==n,"missing offset"),V(n+3<e.length,"trying to write beyond buffer length"),H(t,4294967295));var i=e.length;if(!(n>=i))for(var a=0,s=Math.min(i-n,4);s>a;a++)e[n+a]=t>>>8*(r?a:3-a)&255}function S(e,t,n,r,o){o||(V(void 0!==t&&null!==t,"missing value"),V("boolean"==typeof r,"missing or invalid endian"),V(void 0!==n&&null!==n,"missing offset"),V(n+1<e.length,"Trying to write beyond buffer length"),q(t,32767,-32768));var i=e.length;n>=i||(t>=0?_(e,t,n,r,o):_(e,65535+t+1,n,r,o))}function E(e,t,n,r,o){o||(V(void 0!==t&&null!==t,"missing value"),V("boolean"==typeof r,"missing or invalid endian"),V(void 0!==n&&null!==n,"missing offset"),V(n+3<e.length,"Trying to write beyond buffer length"),q(t,2147483647,-2147483648));var i=e.length;n>=i||(t>=0?k(e,t,n,r,o):k(e,4294967295+t+1,n,r,o))}function C(e,t,n,r,o){o||(V(void 0!==t&&null!==t,"missing value"),V("boolean"==typeof r,"missing or invalid endian"),V(void 0!==n&&null!==n,"missing offset"),V(n+3<e.length,"Trying to write beyond buffer length"),z(t,3.4028234663852886e38,-3.4028234663852886e38));var i=e.length;n>=i||K.write(e,t,n,r,23,4)}function T(e,t,n,r,o){o||(V(void 0!==t&&null!==t,"missing value"),V("boolean"==typeof r,"missing or invalid endian"),V(void 0!==n&&null!==n,"missing offset"),V(n+7<e.length,"Trying to write beyond buffer length"),z(t,1.7976931348623157e308,-1.7976931348623157e308));var i=e.length;n>=i||K.write(e,t,n,r,52,8)}function A(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function D(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=Y.get,e.set=Y.set,e.write=Y.write,e.toString=Y.toString,e.toLocaleString=Y.toString,e.toJSON=Y.toJSON,e.copy=Y.copy,e.slice=Y.slice,e.readUInt8=Y.readUInt8,e.readUInt16LE=Y.readUInt16LE,e.readUInt16BE=Y.readUInt16BE,e.readUInt32LE=Y.readUInt32LE,e.readUInt32BE=Y.readUInt32BE,e.readInt8=Y.readInt8,e.readInt16LE=Y.readInt16LE,e.readInt16BE=Y.readInt16BE,e.readInt32LE=Y.readInt32LE,e.readInt32BE=Y.readInt32BE,e.readFloatLE=Y.readFloatLE,e.readFloatBE=Y.readFloatBE,e.readDoubleLE=Y.readDoubleLE,e.readDoubleBE=Y.readDoubleBE,e.writeUInt8=Y.writeUInt8,e.writeUInt16LE=Y.writeUInt16LE,e.writeUInt16BE=Y.writeUInt16BE,e.writeUInt32LE=Y.writeUInt32LE,e.writeUInt32BE=Y.writeUInt32BE,e.writeInt8=Y.writeInt8,e.writeInt16LE=Y.writeInt16LE,e.writeInt16BE=Y.writeInt16BE,e.writeInt32LE=Y.writeInt32LE,e.writeInt32BE=Y.writeInt32BE,e.writeFloatLE=Y.writeFloatLE,e.writeFloatBE=Y.writeFloatBE,e.writeDoubleLE=Y.writeDoubleLE,e.writeDoubleBE=Y.writeDoubleBE,e.fill=Y.fill,e.inspect=Y.inspect,e.toArrayBuffer=Y.toArrayBuffer,e}function O(e,t,n){return"number"!=typeof e?n:(e=~~e,e>=t?t:e>=0?e:(e+=t,e>=0?e:0))}function P(e){return e=~~Math.ceil(+e),0>e?0:e}function j(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function M(e){return j(e)||o.isBuffer(e)||e&&"object"==typeof e&&"number"==typeof e.length}function I(e){return 16>e?"0"+e.toString(16):e.toString(16)}function L(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(127>=r)t.push(e.charCodeAt(n));else{var o=n;r>=55296&&57343>=r&&n++;for(var i=encodeURIComponent(e.slice(o,n+1)).substr(1).split("%"),a=0;a<i.length;a++)t.push(parseInt(i[a],16))}}return t}function N(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}function R(e){for(var t,n,r,o=[],i=0;i<e.length;i++)t=e.charCodeAt(i),n=t>>8,r=t%256,o.push(r),o.push(n);return o}function B(e){return W.toByteArray(e)}function U(e,t,n,r){for(var o=0;r>o&&!(o+n>=t.length||o>=e.length);o++)t[o+n]=e[o];return o}function F(e){try{return decodeURIComponent(e)}catch(t){return String.fromCharCode(65533)}}function H(e,t){V("number"==typeof e,"cannot write a non-number as a number"),V(e>=0,"specified a negative value for writing an unsigned value"),V(t>=e,"value is larger than maximum value for type"),V(Math.floor(e)===e,"value has a fractional component")}function q(e,t,n){V("number"==typeof e,"cannot write a non-number as a number"),V(t>=e,"value larger than maximum allowed value"),V(e>=n,"value smaller than minimum allowed value"),V(Math.floor(e)===e,"value has a fractional component")}function z(e,t,n){V("number"==typeof e,"cannot write a non-number as a number"),V(t>=e,"value larger than maximum allowed value"),V(e>=n,"value smaller than minimum allowed value")}function V(e,t){if(!e)throw new Error(t||"Failed assertion")}var W=e("base64-js"),K=e("ieee754");n.Buffer=o,n.SlowBuffer=o,n.INSPECT_MAX_BYTES=50,o.poolSize=8192,o._useTypedArrays=function(){if("undefined"==typeof Uint8Array||"undefined"==typeof ArrayBuffer)return!1;try{var e=new Uint8Array(0);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray}catch(t){return!1}}(),o.isEncoding=function(e){switch(String(e).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}},o.isBuffer=function(e){return!(null===e||void 0===e||!e._isBuffer)},o.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=L(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=B(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw new Error("Unknown encoding")}return n},o.concat=function(e,t){if(V(j(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new o(0);if(1===e.length)return e[0];var n;if("number"!=typeof t)for(t=0,n=0;n<e.length;n++)t+=e[n].length;var r=new o(t),i=0;for(n=0;n<e.length;n++){var a=e[n];a.copy(r,i),i+=a.length}return r},o.prototype.write=function(e,t,n,r){if(isFinite(t))isFinite(n)||(r=n,n=void 0);else{var o=r;r=t,t=n,n=o}t=Number(t)||0;var f=this.length-t;n?(n=Number(n),n>f&&(n=f)):n=f,r=String(r||"utf8").toLowerCase();var p;switch(r){case"hex":p=i(this,e,t,n);break;case"utf8":case"utf-8":p=a(this,e,t,n);break;case"ascii":p=s(this,e,t,n);break;case"binary":p=u(this,e,t,n);break;case"base64":p=l(this,e,t,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":p=c(this,e,t,n);break;default:throw new Error("Unknown encoding")}return p},o.prototype.toString=function(e,t,n){var r=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,n=void 0!==n?Number(n):n=r.length,n===t)return"";var o;switch(e){case"hex":o=g(r,t,n);break;case"utf8":case"utf-8":o=p(r,t,n);break;case"ascii":o=d(r,t,n);break;case"binary":o=h(r,t,n);break;case"base64":o=f(r,t,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":o=m(r,t,n);break;default:throw new Error("Unknown encoding")}return o},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.copy=function(e,t,n,r){var o=this;if(n||(n=0),r||0===r||(r=this.length),t||(t=0),r!==n&&0!==e.length&&0!==o.length){V(r>=n,"sourceEnd < sourceStart"),V(t>=0&&t<e.length,"targetStart out of bounds"),V(n>=0&&n<o.length,"sourceStart out of bounds"),V(r>=0&&r<=o.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);for(var i=0;r-n>i;i++)e[i+t]=this[i+n]}},o.prototype.slice=function(e,t){var n=this.length;if(e=O(e,n,0),t=O(t,n,n),o._useTypedArrays)return D(this.subarray(e,t));for(var r=t-e,i=new o(r,void 0,!0),a=0;r>a;a++)i[a]=this[a+e];return i},o.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},o.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},o.prototype.readUInt8=function(e,t){return t||(V(void 0!==e&&null!==e,"missing offset"),V(e<this.length,"Trying to read beyond buffer length")),e>=this.length?void 0:this[e]},o.prototype.readUInt16LE=function(e,t){return v(this,e,!0,t)},o.prototype.readUInt16BE=function(e,t){return v(this,e,!1,t)},o.prototype.readUInt32LE=function(e,t){return y(this,e,!0,t)},o.prototype.readUInt32BE=function(e,t){return y(this,e,!1,t)},o.prototype.readInt8=function(e,t){if(t||(V(void 0!==e&&null!==e,"missing offset"),V(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length)){var n=128&this[e];return n?-1*(255-this[e]+1):this[e]}},o.prototype.readInt16LE=function(e,t){return b(this,e,!0,t)},o.prototype.readInt16BE=function(e,t){return b(this,e,!1,t)},o.prototype.readInt32LE=function(e,t){return $(this,e,!0,t)},o.prototype.readInt32BE=function(e,t){return $(this,e,!1,t)},o.prototype.readFloatLE=function(e,t){return w(this,e,!0,t)},o.prototype.readFloatBE=function(e,t){return w(this,e,!1,t)},o.prototype.readDoubleLE=function(e,t){return x(this,e,!0,t)},o.prototype.readDoubleBE=function(e,t){return x(this,e,!1,t)},o.prototype.writeUInt8=function(e,t,n){n||(V(void 0!==e&&null!==e,"missing value"),V(void 0!==t&&null!==t,"missing offset"),V(t<this.length,"trying to write beyond buffer length"),H(e,255)),t>=this.length||(this[t]=e)},o.prototype.writeUInt16LE=function(e,t,n){_(this,e,t,!0,n)},o.prototype.writeUInt16BE=function(e,t,n){_(this,e,t,!1,n)},o.prototype.writeUInt32LE=function(e,t,n){k(this,e,t,!0,n)},o.prototype.writeUInt32BE=function(e,t,n){k(this,e,t,!1,n)},o.prototype.writeInt8=function(e,t,n){n||(V(void 0!==e&&null!==e,"missing value"),V(void 0!==t&&null!==t,"missing offset"),V(t<this.length,"Trying to write beyond buffer length"),q(e,127,-128)),t>=this.length||(e>=0?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},o.prototype.writeInt16LE=function(e,t,n){S(this,e,t,!0,n)},o.prototype.writeInt16BE=function(e,t,n){S(this,e,t,!1,n)},o.prototype.writeInt32LE=function(e,t,n){E(this,e,t,!0,n)},o.prototype.writeInt32BE=function(e,t,n){E(this,e,t,!1,n)},o.prototype.writeFloatLE=function(e,t,n){C(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){C(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){T(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){T(this,e,t,!1,n)},o.prototype.fill=function(e,t,n){if(e||(e=0),t||(t=0),n||(n=this.length),"string"==typeof e&&(e=e.charCodeAt(0)),V("number"==typeof e&&!isNaN(e),"value is not a number"),V(n>=t,"end < start"),n!==t&&0!==this.length){V(t>=0&&t<this.length,"start out of bounds"),V(n>=0&&n<=this.length,"end out of bounds");for(var r=t;n>r;r++)this[r]=e}},o.prototype.inspect=function(){for(var e=[],t=this.length,r=0;t>r;r++)if(e[r]=I(this[r]),r===n.INSPECT_MAX_BYTES){e[r+1]="...";break}return"<Buffer "+e.join(" ")+">"},o.prototype.toArrayBuffer=function(){if("function"==typeof Uint8Array){if(o._useTypedArrays)return new o(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;n>t;t+=1)e[t]=this[t];return e.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var Y=o.prototype}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\..\\..\\..\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\buffer\\index.js","/..\\..\\..\\..\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\buffer")},{"base64-js":3,buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7,ieee754:4}],3:[function(e,t){(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(){"use strict";function n(e){var t=e.charCodeAt(0);return t===a?62:t===s?63:u>t?-1:u+10>t?t-u+26+26:c+26>t?t-c:l+26>t?t-l+26:void 0}function r(e){function t(e){l[f++]=e}var r,o,a,s,u,l;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=e.length;u="="===e.charAt(c-2)?2:"="===e.charAt(c-1)?1:0,l=new i(3*e.length/4-u),a=u>0?e.length-4:e.length;var f=0;for(r=0,o=0;a>r;r+=4,o+=3)s=n(e.charAt(r))<<18|n(e.charAt(r+1))<<12|n(e.charAt(r+2))<<6|n(e.charAt(r+3)),t((16711680&s)>>16),t((65280&s)>>8),t(255&s);return 2===u?(s=n(e.charAt(r))<<2|n(e.charAt(r+1))>>4,t(255&s)):1===u&&(s=n(e.charAt(r))<<10|n(e.charAt(r+1))<<4|n(e.charAt(r+2))>>2,t(s>>8&255),t(255&s)),l}function o(t){function n(t){return e.charAt(t)}function r(e){return n(e>>18&63)+n(e>>12&63)+n(e>>6&63)+n(63&e)}var o,i,a,s=t.length%3,u="";for(o=0,a=t.length-s;a>o;o+=3)i=(t[o]<<16)+(t[o+1]<<8)+t[o+2],u+=r(i);switch(s){case 1:i=t[t.length-1],u+=n(i>>2),u+=n(i<<4&63),u+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],u+=n(i>>10),u+=n(i>>4&63),u+=n(i<<2&63),u+="="}return u}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,a=("0".charCodeAt(0),"+".charCodeAt(0)),s="/".charCodeAt(0),u="0".charCodeAt(0),l="a".charCodeAt(0),c="A".charCodeAt(0);t.exports.toByteArray=r,t.exports.fromByteArray=o}()}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\..\\..\\..\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\buffer\\node_modules\\base64-js\\lib\\b64.js","/..\\..\\..\\..\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\buffer\\node_modules\\base64-js\\lib")},{buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7}],4:[function(e,t,n){(function(){n.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?o-1:0,p=n?-1:1,d=e[t+f];for(f+=p,i=d&(1<<-c)-1,d>>=-c,c+=s;c>0;i=256*i+e[t+f],f+=p,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=p,c-=8);if(0===i)i=1-l;else{if(i===u)return a?0/0:1/0*(d?-1:1);a+=Math.pow(2,r),i-=l}return(d?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,t,n,r,o,i){var a,s,u,l=8*i-o-1,c=(1<<l)-1,f=c>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,h=r?1:-1,g=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||1/0===t?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),t+=a+f>=1?p/u:p*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+d]=255&s,d+=h,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;e[n+d]=255&a,d+=h,a/=256,l-=8);e[n+d-h]|=128*g}}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\..\\..\\..\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\buffer\\node_modules\\ieee754\\index.js","/..\\..\\..\\..\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\buffer\\node_modules\\ieee754")},{buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7}],5:[function(e,t){(function(){function e(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function r(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function i(e){return void 0===e}t.exports=e,e.EventEmitter=e,e.prototype._events=void 0,e.prototype._maxListeners=void 0,e.defaultMaxListeners=10,e.prototype.setMaxListeners=function(e){if(!r(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},e.prototype.emit=function(e){var t,r,a,s,u,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length))throw t=arguments[1],t instanceof Error?t:TypeError('Uncaught, unspecified "error" event.');if(r=this._events[e],i(r))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(a=arguments.length,s=new Array(a-1),u=1;a>u;u++)s[u-1]=arguments[u];r.apply(this,s)}else if(o(r)){for(a=arguments.length,s=new Array(a-1),u=1;a>u;u++)s[u-1]=arguments[u];for(l=r.slice(),a=l.length,u=0;a>u;u++)l[u].apply(this,s)}return!0},e.prototype.addListener=function(t,r){var a;if(!n(r))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,n(r.listener)?r.listener:r),this._events[t]?o(this._events[t])?this._events[t].push(r):this._events[t]=[this._events[t],r]:this._events[t]=r,o(this._events[t])&&!this._events[t].warned){var a;a=i(this._maxListeners)?e.defaultMaxListeners:this._maxListeners,a&&a>0&&this._events[t].length>a&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),console.trace())}return this},e.prototype.on=e.prototype.addListener,e.prototype.once=function(e,t){function r(){this.removeListener(e,r),o||(o=!0,t.apply(this,arguments))}if(!n(t))throw TypeError("listener must be a function");var o=!1;return r.listener=t,this.on(e,r),this},e.prototype.removeListener=function(e,t){var r,i,a,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],a=r.length,i=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(r)){for(s=a;s-->0;)if(r[s]===t||r[s].listener&&r[s].listener===t){i=s;break}if(0>i)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},e.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],n(r))this.removeListener(e,r);else for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},e.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},e.listenerCount=function(e,t){var r;return r=e._events&&e._events[t]?n(e._events[t])?1:e._events[t].length:0}}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\..\\..\\..\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\events\\events.js","/..\\..\\..\\..\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\events")},{buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7}],6:[function(e,t){(function(){t.exports="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\..\\..\\..\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\inherits\\inherits_browser.js","/..\\..\\..\\..\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\inherits")},{buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7}],7:[function(e,t){(function(e){var e=t.exports={};e.nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",function(e){var t=e.source;if((t===window||null===t)&&"process-tick"===e.data&&(e.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.binding=function(){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(){throw new Error("process.chdir is not supported")}}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\..\\..\\..\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js","/..\\..\\..\\..\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process")},{buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7}],8:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var o=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return o.exec(e).slice(1)};n.resolve=function(){for(var n="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(n=a+"/"+n,o="/"===a.charAt(0))}return n=t(r(n.split("/"),function(e){return!!e}),!o).join("/"),(o?"/":"")+n||"."},n.normalize=function(e){var o=n.isAbsolute(e),i="/"===a(e,-1);return e=t(r(e.split("/"),function(e){return!!e}),!o).join("/"),e||o||(e="."),e&&i&&(e+="/"),(o?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,function(e){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var o=r(e.split("/")),i=r(t.split("/")),a=Math.min(o.length,i.length),s=a,u=0;a>u;u++)if(o[u]!==i[u]){s=u;break}for(var l=[],u=s;u<o.length;u++)l.push("..");return l=l.concat(i.slice(s)),l.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){var t=i(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},n.basename=function(e,t){var n=i(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return i(e)[3]};var a="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return 0>t&&(t=e.length+t),e.substr(t,n)}}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\..\\..\\..\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\path-browserify\\index.js","/..\\..\\..\\..\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\path-browserify")},{buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7}],9:[function(e,t){(function(){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\..\\..\\..\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\util\\support\\isBufferBrowser.js","/..\\..\\..\\..\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\util\\support")},{buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7}],10:[function(e,t,n){(function(t,r){function o(e,t){var r={seen:[],stylize:a};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),g(t)?r.showHidden=t:t&&n._extend(r,t),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=i),u(r,e,r.depth)}function i(e,t){var n=o.styles[t];return n?"["+o.colors[n][0]+"m"+e+"["+o.colors[n][1]+"m":e}function a(e){return e}function s(e){var t={};return e.forEach(function(e){t[e]=!0}),t}function u(e,t,r){if(e.customInspect&&t&&E(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(r,e);return b(o)||(o=u(e,o,r)),o}var i=l(e,t);if(i)return i;var a=Object.keys(t),g=s(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),S(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return c(t);if(0===a.length){if(E(t)){var m=t.name?": "+t.name:"";return e.stylize("[Function"+m+"]","special")}if(x(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(k(t))return e.stylize(Date.prototype.toString.call(t),"date");if(S(t))return c(t)}var v="",y=!1,$=["{","}"];if(h(t)&&(y=!0,$=["[","]"]),E(t)){var w=t.name?": "+t.name:"";v=" [Function"+w+"]"}if(x(t)&&(v=" "+RegExp.prototype.toString.call(t)),k(t)&&(v=" "+Date.prototype.toUTCString.call(t)),S(t)&&(v=" "+c(t)),0===a.length&&(!y||0==t.length))return $[0]+v+$[1];if(0>r)return x(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");
e.seen.push(t);var _;return _=y?f(e,t,r,g,a):a.map(function(n){return p(e,t,r,g,n,y)}),e.seen.pop(),d(_,v,$)}function l(e,t){if(w(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return y(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,o){for(var i=[],a=0,s=t.length;s>a;++a)i.push(O(t,String(a))?p(e,t,n,r,String(a),!0):"");return o.forEach(function(o){o.match(/^\d+$/)||i.push(p(e,t,n,r,o,!0))}),i}function p(e,t,n,r,o,i){var a,s,l;if(l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},l.get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),O(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(l.value)<0?(s=m(n)?u(e,l.value,null):u(e,l.value,n-1),s.indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return"   "+e}).join("\n"))):s=e.stylize("[Circular]","special")),w(a)){if(i&&o.match(/^\d+$/))return s;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e,t,n){var r=0,o=e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function h(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function m(e){return null===e}function v(e){return null==e}function y(e){return"number"==typeof e}function b(e){return"string"==typeof e}function $(e){return"symbol"==typeof e}function w(e){return void 0===e}function x(e){return _(e)&&"[object RegExp]"===T(e)}function _(e){return"object"==typeof e&&null!==e}function k(e){return _(e)&&"[object Date]"===T(e)}function S(e){return _(e)&&("[object Error]"===T(e)||e instanceof Error)}function E(e){return"function"==typeof e}function C(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function T(e){return Object.prototype.toString.call(e)}function A(e){return 10>e?"0"+e.toString(10):e.toString(10)}function D(){var e=new Date,t=[A(e.getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":");return[e.getDate(),I[e.getMonth()],t].join(" ")}function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var P=/%[sdj%]/g;n.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(o(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,i=r.length,a=String(e).replace(P,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}}),s=r[n];i>n;s=r[++n])a+=m(s)||!_(s)?" "+s:" "+o(s);return a},n.deprecate=function(e,o){function i(){if(!a){if(t.throwDeprecation)throw new Error(o);t.traceDeprecation?console.trace(o):console.error(o),a=!0}return e.apply(this,arguments)}if(w(r.process))return function(){return n.deprecate(e,o).apply(this,arguments)};if(t.noDeprecation===!0)return e;var a=!1;return i};var j,M={};n.debuglog=function(e){if(w(j)&&(j=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!M[e])if(new RegExp("\\b"+e+"\\b","i").test(j)){var r=t.pid;M[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else M[e]=function(){};return M[e]},n.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=h,n.isBoolean=g,n.isNull=m,n.isNullOrUndefined=v,n.isNumber=y,n.isString=b,n.isSymbol=$,n.isUndefined=w,n.isRegExp=x,n.isObject=_,n.isDate=k,n.isError=S,n.isFunction=E,n.isPrimitive=C,n.isBuffer=e("./support/isBuffer");var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];n.log=function(){console.log("%s - %s",D(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!_(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\..\\..\\..\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\util\\util.js","/..\\..\\..\\..\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\util")},{"./support/isBuffer":9,buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7,inherits:6}],11:[function(e){(function(){e("../../vendor/angular/angular.js"),e("../../vendor/ui-bootstrap/ui-bootstrap.js"),e("../../vendor/ui-router/ui-router.js"),e("../routes/editor"),e("../routes/landing");var t=angular.module("plunker",["ui.bootstrap","ui.router","plunker.routes.landing","plunker.routes.editor"]);t.config(["$locationProvider","$urlRouterProvider",function(e,t){t.otherwise("/")}])}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/plunker.js","/")},{"../../vendor/angular/angular.js":23,"../../vendor/ui-bootstrap/ui-bootstrap.js":28,"../../vendor/ui-router/ui-router.js":29,"../routes/editor":15,"../routes/landing":16,buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7}],12:[function(e){(function(){e("../services/textops");var t=angular.module("plunker.directive.codeEditor",["plunker.service.textops"]);t.directive("codeEditor",["$rootScope","$q","textops",function(e,t){function n(e){var n=t.defer();return ace.config.loadModule(e,function(e){e?n.resolve(e):n.reject("Failed to load module")}),n.promise}var r=ace.require("ace/editor").Editor,o=ace.require("ace/virtual_renderer").VirtualRenderer;return{restrict:"E",replace:!0,template:"<div></div>",scope:{editSession:"="},link:function(e,t){var i=new r(new o(t[0],"ace/theme/textmate"));i.setSession(e.editSession),n("ace/ext/language_tools").then(function(){i.setOptions({enableBasicAutocompletion:!0,enableSnippets:!0})}),e.$on("pane-active",function(){i.focus()}),e.$on("fa-pane-resize",function(){i.resize()}),e.$on("$destroy",function(){i.blur()})}}}])}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\directives\\codeEditor.js","/..\\directives")},{"../services/textops":21,buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7}],13:[function(e){(function(){e("fs");e("../services/workspace");var t=angular.module("plunker.directive.fileTree",["plunker.service.commands","plunker.service.workspace"]);t.run(["$templateCache",function(e){e.put("partials/directives/fileTree.html",'<ul class="file-tree fa-ul">\r\n  <li ng-repeat="entry in tree" ng-switch="entry.type">\r\n    <div class="tree-entry tree-folder" ng-switch-when="directory" ng-class="{collapsed: collapsed}">\r\n      <div class="tree-inner" ng-click="collapsed=!collapsed">\r\n        <i class="tree-icon fa-li fa fa-folder{{!collapsed && \'-open\' || \'\'}}"></i>\r\n        <span class="tree-filename" >{{entry.filename}} <span class="label label-default" ng-show="collapsed" ng-bind="entry.children.length"></span></span>\r\n        <div class="tree-actions">\r\n          <button class="btn btn-xs btn-link tree-add-file" tooltip="Create directory" tooltip-append-to-body="true" ng-click="createDir($event, entry)"><i class="fa fa-folder"></i></button>\r\n          <button class="btn btn-xs btn-link tree-add-dir" tooltip="Create file" tooltip-append-to-body="true" ng-click="createFile($event, entry)"><i class="fa fa-file"></i></button>\r\n          <button class="btn btn-xs btn-link tree-remove-entry" tooltip="Delete this directory and all its files" tooltip-append-to-body="true" ng-click="remove($event, entry)" ng-if="!entry.isRoot"><i class="fa fa-times"></i></button>\r\n        </div>\r\n      </div>\r\n      <div class="tree-bg"></div>\r\n      <file-tree-recurse tree="entry.children"></file-tree-recurse>\r\n    </div>\r\n    <div class="tree-entry tree-file" ng-switch-when="file" ng-class="{active: isActive(entry), open: isOpen(entry)}">\r\n      <div class="tree-inner" ng-click="open($event, entry)" ng-dblclick="rename($event, entry)">\r\n        <i class="tree-icon fa-li fa fa-file-text{{!isOpen(entry) && \'-o\' || \'\'}}"></i>\r\n        <div class="tree-filename" ng-bind="entry.filename"></div>\r\n        <div class="tree-actions">\r\n          <button class="btn btn-xs btn-link tree-open-down" tooltip="Open in new space below (CTRL-Click)" tooltip-append-to-body="true" ng-hide="isOpen(entry)" ng-click="open($event, entry, {target: \'col\'})"><i class="fa fa-caret-square-o-down"></i></button>\r\n          <button class="btn btn-xs btn-link tree-open-right" tooltip="Open in new space to the right (SHIFT-Click)" tooltip-append-to-body="true" ng-hide="isOpen(entry)" ng-click="open($event, entry, {target: \'row\'})"><i class="fa fa-caret-square-o-right"></i></button>\r\n          <button class="btn btn-xs btn-link tree-remove-entry" tooltip="Delete this file" tooltip-append-to-body="true" ng-click="remove($event, entry)"><i class="fa fa-times"></i></button>\r\n        </div>\r\n      </div>\r\n      <div class="tree-bg"></div>\r\n    </div>\r\n  </li>\r\n</ul>\r\n')}]),t.directive("fileTree",["$q","$window","commands","workspace",function(e,t,n,r){return{restrict:"E",replace:!0,scope:{tree:"=",closed:"@"},templateUrl:"partials/directives/fileTree.html",link:function(o,i){function a(e){var t=!1;e.ctrlKey&&(t|=!u,i.addClass("control-key"),u=!0),e.shiftKey&&(t|=!l,i.addClass("shift-key"),l=!0),t&&o.$digest()}function s(e){var t=!1;e.ctrlKey||(t|=u,i.removeClass("control-key"),u=!1),e.shiftKey||(t|=u,i.removeClass("shift-key"),l=!1),t&&o.$digest()}var u=!1,l=!1,c={confirm:function(t){return e.when(confirm(t))},prompt:function(t,n){return e.when(prompt(t,n||""))}};t.addEventListener("keydown",a),t.addEventListener("keyup",s),o.open=function(e,t,o){e.stopPropagation();var i={entry:t,options:o};return i.options||(i.options={}),u&&l?void(r.isOpenById(t.id)&&n.exec("space.close",{coords:r.getPaneCoords(t.id)})):(u?i.options.target="col":l&&(i.options.target="row"),void n.exec("file.open",i))},o.rename=function(e,t){e.stopPropagation(),c.prompt("New filename?",t.filename).then(function(e){e&&n.exec("file.rename",{parent:t.parent,entryId:t.id,filename:e})})},o.remove=function(e,t){e.stopPropagation(),t.isRoot||("directory"===t.type?c.confirm("Are you sure that you would like to remove this folder and all its children?").then(function(e){e&&n.exec("directory.remove",{parent:t.parent,entryId:t.id})}):"file"===t.type&&c.confirm("Are you sure that you would like to remove this file?").then(function(e){e&&n.exec("file.remove",{parent:t.parent,entryId:t.id})}))},o.createDir=function(e,t){e.stopPropagation(),c.prompt("Directory name?").then(function(e){e&&n.exec("directory.create",{parent:t,filename:e})})},o.createFile=function(e,t){e.stopPropagation(),c.prompt("Filename?").then(function(e){e&&n.exec("file.create",{parent:t,filename:e})})},o.isActive=function(e){return r.isActiveById(e.id)},o.isOpen=function(e){return r.isOpenById(e.id)},o.$on("$destroy",function(){t.removeEventListener("keydown",a),t.removeEventListener("keyup",s)})}}}]),t.directive("fileTreeRecurse",["$compile",function(e){return{restrict:"E",replace:!0,template:"<div></div>",scope:{tree:"="},link:function(t,n){var r=angular.element('<file-tree tree="tree"></file-tree>');e(r)(t),n.replaceWith(r)}}}])}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\directives\\fileTree.js","/..\\directives")},{"../services/workspace":22,buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7,fs:1}],14:[function(e){(function(){var t=e("genid"),n=e("lodash");e("../../vendor/qrcode/qrcode"),e("../services/settings");var r=angular.module("plunker.directive.previewer",["plunker.service.settings"]);r.directive("plunkerPreviewer",["$rootScope","$timeout","$interval","$http","commands","keybindings","project","settings",function(e,r,o,i,a,s,u,l){function c(){f(),p()}function f(){if(y){b=!0;var e=angular.element(document.getElementById("plunkerPreviewIframe")),t={files:{}};return n.forEach(u.entries,function(e){"file"===e.type&&(t.files[e.path]={content:e.contents})}),i.post(d,t).then(function(){e.attr("src",d)},function(){e.attr("src","about:blank")})}}function p(){if(g&&!g.closed){var e=document.createElement("form");e.style.display="none",e.setAttribute("method","post"),e.setAttribute("action",d),e.setAttribute("target","plunkerPreviewWindow");for(var t in u.entries){var n=u.entries[t];"file"===n.type&&(field=document.createElement("input"),field.setAttribute("type","hidden"),field.setAttribute("name","files["+n.path+"][content]"),field.setAttribute("value",n.contents),e.appendChild(field))}document.body.appendChild(e),e.submit(),document.body.removeChild(e)}}var d="http://run.plnkr.co/"+t()+"/",h=u.localStream.fork().filter(function(){return l.previewer.autoRefresh&&b&&(y||g)}),g=null,m=null,v=null,y=!1,b=!1;a.register("preview.refresh",c),s.bindKey({win:"CTRL-ENTER",mac:"COMMAND-ENTER"},"preview.refresh"),e.$watch(function(){return l.previewer.refreshInterval},function(e){v&&h._removeConsumer(v),v=h.debounce(e).each(function(){f(),p()})});var $={restrict:"E",replace:!0,template:'<iframe id="plunkerPreviewIframe" name="plunkerPreviewIframe" src="about:blank" width="100%" height="100%" frameborder="0"></iframe>',link:function(e){e.previewUrl=d,e.refresh=f,e.showQRCode=!1,e.showPreviewWindow=!!g,e.toggleQRCode=function(){e.showQRCode=!e.showQRCode},e.togglePreviewWindow=function(t){function n(){g&&g.close(),g=null,e.showPreviewWindow=!1}function r(){(!g||g.closed)&&(n(),o.cancel(m))}void 0===t&&(t=!e.showPreviewWindow),n(),t&&(g=window.open("about:blank","plunkerPreviewWindow","resizable=yes,scrollbars=yes,status=yes,toolbar=yes"),e.showPreviewWindow=!0,m=o(r,100),p())},y=!0,e.$on("$destroy",function(){y=!1}),r(function(){f(),p()})}};return $}]),r.directive("qrcode",function(){return{restrict:"E",replace:!0,template:'<a ng-href="{{url}}" target="_blank"><span class="qrcode"></span></a>',scope:{url:"@",width:"@",height:"@"},link:function(e,t){var n=t.children()[0],r=new QRCode(n,{text:e.url,width:e.width,height:e.height});e.$watch("url",function(e){r.makeCode(e)})}}})}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\directives\\previewer.js","/..\\directives")},{"../../vendor/qrcode/qrcode":27,"../services/settings":20,buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7,genid:30,lodash:32}],15:[function(e){(function(){e("fs");e("../../vendor/borderLayout/borderLayout.coffee"),e("../../vendor/ngTagsInput/ngTagsInput"),e("../directives/fileTree"),e("../directives/previewer"),e("../services/commands"),e("../services/project"),e("../services/keybindings");var t=angular.module("plunker.routes.editor",["fa.directive.borderLayout","ngTagsInput","plunker.directive.fileTree","plunker.directive.previewer","plunker.service.commands","plunker.service.keybindings","plunker.service.project","plunker.service.workspace"]);t.config(["$stateProvider","$urlRouterProvider",function(e){e.state("editor",{url:"/edit",templateUrl:"partials/views/editor.html",controller:["$scope","project","workspace","commands","keybindings",function(e,t,n,r){r.exec("project.reset"),r.exec("project.openDefault"),r.exec("file.openDefault")}]}),e.state("editor.plunk",{url:"/:plunkId",template:"",resolve:{plunk:["$stateParams","project",function(e,t){return t.project.plunk&&t.project.plunk.id===e.plunkId?t.plunk:t.open(e.plunkId)}]},controller:["$scope","$stateParams","commands",function(){}]})}]),t.run(["$rootScope","$state",function(e,t){e.$on("project:save",function(e,n){console.log("project:save",arguments),t.go("editor.plunk",{plunkId:n.plunk.id})}),e.$on("$routeChangeError",function(e,n){"editor.plunk"===n.name&&t.go("editor")})}]),t.controller("SidebarController",["$scope","project","workspace",function(e,t,n){e.tree=[t.root],e.project=t.project,e.workspace=n}]),t.controller("ToolbarController",["$scope","project","workspace","commands",function(e,t,n,r){e.project=t,e.workspace=n,e.togglePreview=function(){r.exec("preview.toggle")},e.save=function(){r.exec("project.save")},e.new=function(){r.exec("preview.close"),r.exec("project.reset"),r.exec("project.openDefault"),r.exec("file.openDefault")}}]),t.run(["$templateCache",function(e){e.put("partials/views/editor.html",'<div fa-pane="container" keybindings>\n  <div fa-pane="toolbar" pane-anchor="north" pane-size="38px" ng-controller="ToolbarController">\n    <h1 class="plunker-brand"><a ui-sref="landing">Plunker</a></h1>\n    <div class="toolbar-ops">\n      <div class="toolbar-group">\n        <div class="btn-group" ng-if="project.isSavable() && project.isForkable()">\n          <button class="btn btn-sm btn-primary" ng-click="save()" tooltip="Save a new version" tooltip-placement="bottom" tooltip-append-to-body="true">Save</button>\n          <button class="btn btn-sm btn-primary" ng-click="fork()" tooltip="Create a fork this plunk" tooltip-placement="bottom" tooltip-append-to-body="true"><i class="fa fa-code-fork"></i></button>\n        </div>\n        <div class="btn-group" ng-if="project.isSavable() && !project.isForkable()">\n          <button class="btn btn-sm btn-primary" ng-click="save()" tooltip="Save your work" tooltip-placement="bottom" tooltip-append-to-body="true">Save</button>\n        </div>\n        <div class="btn-group" ng-if="!project.isSavable() && project.isForkable()">\n          <button class="btn btn-sm btn-default" ng-show="project.isForkable()" tooltip="Create a fork of this plunk" tooltip-placement="bottom" tooltip-append-to-body="true">Fork</button>\n        </div>\n        <div class="btn-group">\n          <button class="btn btn-sm btn-success" ng-click="new()" tooltip="Start a new project (CTL-N)" tooltip-placement="bottom" tooltip-append-to-body="true">New</button>\n          <button class="btn btn-sm btn-success" ng-click="newFromTemplate()" tooltip="Start a new project based on a template (CTL-SHIFT-N" tooltip-placement="bottom" tooltip-append-to-body="true"><i class="fa fa-archive"></i></button>\n        </div>\n        <div class="btn-group" ng-if="project.isSaved() && project.isOwnPlunk()">\n          <button class="btn btn-sm btn-danger" ng-click="delete()" tooltip="Delete this plunk" tooltip-placement="bottom" tooltip-append-to-body="true">Delete</button>\n        </div>\n      </div>\n      <div class="toolbar-group">\n        <div class="btn-group">\n          <button class="btn btn-sm btn-info" ng-class="{active:workspace.isPreviewOpen()}" ng-click="togglePreview()" tooltip="Toggle preview (CTRL-SHIFT-ENTER)" tooltip-append-to-body="true" tooltip-placement="bottom">Preview</button>\n        </div>\n      </div>\n    </div>\n  </div>\n  \n  <div fa-pane="sidebar" pane-anchor="west" pane-size="250px" pane-min="200px" pane-max="300px" pane-handle="4px" ng-controller="SidebarController">\n    <div fa-pane="sidebar-info" pane-anchor="south" pane-size="195px" pane-max="50%" pane-handle="16px">\n      <div class="form-group">\n        <textarea class="plunk-description form-control" ng-model="project.description" placeholder="Description" size-append="\\n"></textarea>\n      </div>\n      <div class="form-group">\n        <tags-input custom-class="bootstrap" ng-model="project.tags"></tags-input>\n      </div>\n      <div class="checkbox">\n        <label>\n          <input type="checkbox" ng-model="project.public"> public\n        </label>\n      </div>\n    </div>\n    <div fa-pane="sidebar-tree">\n      <file-tree tree="tree"></file-tree>\n      <ul class="file-tree plunker-revisions fa-ul" ng-show="project.isSaved()" ng-init="showHistory = false; maxRevisions = 5">\n        <li>\n          <div class="tree-entry tree-folder" ng-class="{collapsed: !showHistory}">\n            <div class="tree-inner" ng-click="showHistory = !showHistory">\n              <i class="tree-icon fa fa-li fa-clock-o"></i>\n              <span class="tree-filename">History <span class="label label-default" ng-bind="project.plunk.revisions.length | number" ng-show="!showHistory && project.plunk.revisions"></span></span>\n            </div>\n            <div class="tree-bg"></div>\n          </div>\n          <ul class="file-tree fa-ul" ng-show="showHistory">\n            <li ng-repeat="revision in project.plunk.revisions | orderBy:\'-created_at\' | limitTo:maxRevisions">\n              <div class="tree-entry tree-file">\n                <div class="tree-inner" ng-switch="revision.event">\n                  <i class="tree-icon fa fa-li fa-save" ng-switch-when="update"></i>\n                  <i class="tree-icon fa fa-li fa-asterisk" ng-switch-when="create"></i>\n                  <span class="tree-filename">{{revision.created_at | date:\'hh:mm\'}}</span>\n                </div>\n                <div class="tree-bg"></div>\n              </div>\n            </li>\n            <li ng-if="project.plunk.revisions.length > maxRevisions">\n              <div class="tree-entry tree-file">\n                <div class="tree-inner" ng-click="$parent.maxRevisions = maxRevisions + 5">\n                  <i class="tree-icon fa fa-li fa-plus-square-o"></i>\n                  <span class="tree-filename">Show more...</span>\n                </div>\n                <div class="tree-bg"></div>\n              </div>\n            </li>\n          </ul>\n        </li>\n      </ul>\n    </div>\n\n  </div>\n  \n  <div fa-pane="editor">\n    <pane-hierarchy></pane-hierarchy>\n  </div>\n</div>\n\n<div ui-view></div>')}])}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\routes\\editor.js","/..\\routes")},{"../../vendor/borderLayout/borderLayout.coffee":24,"../../vendor/ngTagsInput/ngTagsInput":25,"../directives/fileTree":13,"../directives/previewer":14,"../services/commands":17,"../services/keybindings":18,"../services/project":19,buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7,fs:1}],16:[function(e){(function(){var e=angular.module("plunker.routes.landing",[]);e.config(["$stateProvider","$urlRouterProvider",function(e){e.state("landing",{url:"/",templateUrl:"partials/views/landing.html",controller:["$scope","$state",function(e,t){t.go("editor")}]})}])}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\routes\\landing.js","/..\\routes")},{buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7}],17:[function(e){(function(){var t=e("lodash"),n=angular.module("plunker.service.commands",[]);n.factory("commands",["$rootScope","$injector",function(e,n){function r(e,t,n){a[e]={id:e,handler:t||angular.noop,defaults:n||{}}}function o(e){return a[e]}function i(r,i){var s,u=o(r);if(!u)throw console.error("Trying to execute",r,a),new Error("No such command: "+r);var i=angular.isFunction(i)?i():i,l=angular.isFunction(u.defaults)?u.defaults(i):u.defaults||{};return i=void 0===i?{}:i,s=n.invoke(u.handler,{},t.defaults(i,l)),e.$$phase||e.$digest(),s}var a={};return e.$command=i,{register:r,getById:o,exec:i}}])}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\services\\commands.js","/..\\services")},{buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7,lodash:32}],18:[function(e){(function(){var t=e("lodash"),n=angular.module("plunker.service.keybindings",["plunker.service.commands"]);n.directive("keybindings",["keybindings",function(e){return{link:function(t,n){e.attachTo(n[0])}}}]),n.factory("keybindings",["$injector","commands",function(e,n){function r(){this.commands=new i,this.commands.exec=function(e){return e.exec(),!0},this.keyBinding=new o(this)}var o=ace.require("ace/keyboard/keybinding").KeyBinding,i=ace.require("ace/keyboard/hash_handler").HashHandler,a=ace.require("ace/lib/event");return r.prototype.attachTo=function(e){a.addCommandKeyListener(e,this.keyBinding.onCommandKey.bind(this.keyBinding))},r.prototype.bindKey=function(e,r,o){this.commands.addCommand({exec:t.bind(n.exec,n,r,o),bindKey:e,name:r})},new r}])}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\services\\keybindings.js","/..\\services")},{buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7,lodash:32}],19:[function(e){(function(){var t=e("highland"),n=e("path"),r=e("genid"),o=e("lodash");e("../services/commands"),e("../services/keybindings"),e("../services/textops");var i=angular.module("plunker.service.project",["plunker.service.commands","plunker.service.keybindings","plunker.service.textops"]);i.value("defaultProjectFiles",[{type:"file",filename:"index.html",contents:'<!DOCTYPE html>\n<html>\n\n<head>\n  <link rel="stylesheet" href="lib/style.css">\n  <script src="lib/script.js"></script>\n</head>\n\n<body>\n  <h1>Hello Plunker</h1>\n</body>\n\n</html>'},{type:"directory",filename:"lib",children:[{type:"file",filename:"style.css",contents:"h1 {\n  color: red;\n}"},{type:"file",filename:"script.js",contents:"// comment"}]}]),i.factory("project",["$rootScope","$http","$q","commands","keybindings","textops","defaultProjectFiles",function(e,i,a,s,u,l,c){function f(){return angular.equals(C(),W)}function p(){return h()}function d(){return h()&&!0}function h(){return!!K.plunk}function g(){return!h()||h()&&d()}function m(n,i){if(i=i.trim(),!o.find(q,{path:(n.path?n.path+"/":"")+i})){var a={id:r(),type:"file",filename:i,path:(n.path?n.path+"/":"")+i,parent:n,contents:"",editSession:new B("")};e.$watch(function(){return a.filename},function(){R("ace/ext/modelist").then(function(e){a.editSession.setMode(e.getModeForPath(a.filename).mode)})});var s=a.editSession.doc,u=s.getNewLineCharacter();return a.remote=H.fork(),a.local=t(),s.on("change",function(e){var t;switch(e.data.action){case"insertText":t=l.createInsertOp(s.positionToIndex(e.data.range.start),e.data.text);break;case"insertLines":t=l.createInsertOp(s.positionToIndex(e.data.range.start),e.data.lines.join(u)+u);break;case"removeText":t=l.createRemoveOp(s.positionToIndex(e.data.range.start),e.data.text);break;case"removeLines":t=l.createRemoveOp(s.positionToIndex(e.data.range.start),e.data.lines.join(u)+u)}a.contents=s.getValue(),a.local.write({t:"text",op:t,eid:a.id,uid:Y.id})}),a.remote.each(function(e){e.eid===a.id&&e.uid!==Y.id&&l.each(e.op,function(e){switch(e.type){case"insert":s.insert(s.indexToPosition(e.offset),e.text);break;case"remove":s.remove(U.fromPoints(s.indexToPosition(e.offset),s.indexToPosition(e.offset+e.text.length)))}})}),a.local.pipe(F),n.children.push(a),q[a.id]=a,F.write({t:"tree",uid:Y.id,eid:a.id,op:{t:"mkfile",nn:i,pid:n.id}}),a}}function v(e,t){var n=q[t];if(n){F.write({t:"tree",uid:Y.id,eid:n.id,op:{t:"remove",pid:e.id}}),n.editSession.doc.removeAllListeners(),n.editSession.removeAllListeners(),n.editSession=null,delete n.editSession;var r=e.children.indexOf(n);r>=0&&e.children.splice(r,1),o.forEach(n.local._consumers,function(e){n.local._removeConsumer(e)}),console.log("destroying",n.id,n.local),n.local.destroy(),n.remote.destroy(),delete n.local,delete n.remote,delete q[t],s.exec("file.close",{entry:n})}}function y(e,t,r){var i=q[t];return r=r.trim(),o.find(q,{path:(e.path?e.path+"/":"")+r})?void 0:(i&&(F.write({t:"tree",uid:Y.id,eid:i.id,op:{t:"rename",nn:r}}),i.path=n.dirname(i.path)+"/"+r,i.filename=r),i)}function b(e,t){if(t=t.trim(),!o.find(q,{path:(e.path?e.path+"/":"")+t})){var n={id:r(),type:"directory",filename:t,path:(e.path?e.path+"/":"")+t,children:[]};return e.children.push(n),q[n.id]=n,F.write({t:"tree",uid:Y.id,eid:n.id,op:{t:"mkdir",pid:e.id,nn:t}}),n}}function $(e,t){var n=q[t];if(n){for(var r=n.children.length-1;r>=0;r--){var o=n.children[r];"directory"===o.type?$(n,o.id):"file"===o.type&&v(n,o.id)}F.write({t:"tree",uid:Y.id,eid:n.id,op:{t:"rmdir",pid:e.id}}),0<=(r=e.children.indexOf(n))&&e.children.splice(r,1),delete q[t]}}function w(e,t,n){n=n.trim(),o.find(q,{path:(e.path?e.path+"/":"")+n})}function x(){s.exec("project.reset"),s.exec("project.openDefault"),s.exec("file.openDefault")
}function _(){for(var t=z.children.length-1;t>=0;t--){var n=z.children[t];"directory"===n.type?$(z,n.id):"file"===n.type&&v(z,n.id)}z.children.length=0,angular.copy({},q),K.plunk=null,K.public=!1,K.description="",K.tags.length=0,e.$emit("project:reset",K)}function k(t){var n="http://localhost:3000/api/plunks/"+t;i.get(n).then(function(t){var r=t.data,a=t.data.revisions[t.data.revisions.length-1];return i.get(n+"/trees/"+a.tree).then(function(t){s.exec("project.reset"),s.exec("tree.reset",{tree:t.data}),angular.copy(C(),V),angular.copy(C(),W),K.plunk=o.cloneDeep(r),K.description=r.description,K.public=!!r.public,angular.copy(r.tags,K.tags),console.log("tags",K.tags),s.exec("file.openDefault"),e.$emit("project:save",K)})})}function S(){s.exec("project.reset"),j(c)}function E(){}function C(){return{description:K.description.trim(),tags:o(K.tags).map(function(e){return e.toLowerCase()}).unique().valueOf(),"public":!!K.public,files:o.map(q,function(e){return"directory"===e.type?{type:"directory",path:e.path.trim()}:"file"===e.type?{type:"file",path:e.path.trim(),contents:e.contents}:void 0})}}function T(){var t=C(),n="http://localhost:3000/api/plunks",r=o.cloneDeep(t.files);h()&&(n+="/"+K.plunk.id+"/revisions");var a=i.post(n,t).then(function(t){angular.copy(r,V),angular.copy(r,W),K.plunk=o.cloneDeep(t.data),e.$emit("project:save",K)});return a.finally(function(){r=null}),a}function A(){}function D(){}function O(e,t,n){var r,o=q[e];o&&o.editSession&&(r=o.editSession.doc)&&r.insert(r.indexToPosition(t),n)}function P(e,t,n){var r,o,i=q[e];i&&i.editSession&&(r=i.editSession.doc)&&(o=U.fromPoints(r.indexToPosition(t),r.indexToPosition(t+n.length)),r.remove(o))}function j(e){function t(e,n){for(var r=0;r<e.length;r++){var o=e[r];if("file"===o.type){var i=s.exec("file.create",{parent:n,filename:o.filename});s.exec("text.insert",{entryId:i.id,offset:0,text:o.contents})}else if("directory"===o.type){var a=s.exec("directory.create",{parent:n,filename:o.filename});t(o.children,a)}}}console.log("treeReset",e),t(e,z)}function M(e){var t=L(e);return t?t.editSession:void 0}function I(e){var t=N(e);return t?t.editSession:void 0}function L(e){return o.find(q,{filename:e})}function N(e){return q[e]}function R(e){var t=a.defer();return ace.config.loadModule(e,function(e){e?t.resolve(e):t.reject("Failed to load module")}),t.promise}var B=ace.require("ace/edit_session").EditSession,U=ace.require("ace/range").Range,F=t(),H=t(),q={},z={isRoot:!0,parent:null,type:"directory",filename:"Project",path:"",children:[]},V=[],W=[],K={description:"",tags:[],"public":!1,plunk:null,tree:z.children,isClean:f,isForkable:p,isOwnPlunk:d,isSaved:h,isSavable:g},Y={id:r()};return s.register("project.new",x),s.register("project.reset",_),s.register("project.openDefault",S),s.register("project.open",["plunkId",k]),s.register("project.import",["plunkId",E]),s.register("project.save",T),s.register("project.markClean",A),s.register("project.markDirty",D),s.register("tree.reset",["tree",j]),s.register("directory.create",["parent","filename",b],{parent:z}),s.register("directory.remove",["parent","entryId",$],{parent:z}),s.register("directory.rename",["parent","entryId","filename",w],{parent:z}),s.register("file.create",["parent","filename",m],{parent:z}),s.register("file.remove",["parent","entryId",v],{parent:z}),s.register("file.rename",["parent","entryId","filename",y],{parent:z}),s.register("text.insert",["entryId","offset","text",O]),s.register("text.remove",["entryId","offset","text",P]),u.bindKey({win:"CTRL-S",mac:"OPTION-S"},"project.save"),u.bindKey({win:"CTRL-N",mac:"OPTION-N"},"project.new"),{entries:q,root:z,project:K,getEditSessionByFilename:M,getEditSessionById:I,getEntryByFilename:L,getEntryById:N,isClean:f,isForkable:p,isOwnPlunk:d,isSaved:h,isSavable:g,localStream:F,open:k}}])}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\services\\project.js","/..\\services")},{"../services/commands":17,"../services/keybindings":18,"../services/textops":21,buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7,genid:30,highland:31,lodash:32,path:8}],20:[function(e){(function(){var e=angular.module("plunker.service.settings",[]);e.factory("settings",[function(){return{previewer:{autoRefresh:!0,refreshInterval:1e3}}}])}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\services\\settings.js","/..\\services")},{buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7}],21:[function(e){(function(){var t=e("lodash"),n=e("../../vendor/ottypes/ottypes"),r=angular.module("plunker.service.textops",[]);r.factory("textops",[function(){function e(e,t){return n.ot.apply(e,t)}function r(e,t){return[{p:e,i:t}]}function o(e,t){return[{p:e,d:t}]}function i(e,n){t.forEach(e,function(e){e.d?n({type:"remove",offset:e.p,text:e.d}):e.i&&n({type:"insert",offset:e.p,text:e.i})})}return{apply:e,createInsertOp:r,createRemoveOp:o,forEach:i}}])}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\services\\textops.js","/..\\services")},{"../../vendor/ottypes/ottypes":26,buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7,lodash:32}],22:[function(e){(function(){var t=(e("fs"),e("lodash"));e("../services/commands"),e("../services/project"),e("../services/settings"),e("../directives/codeEditor");var n=angular.module("plunker.service.workspace",["plunker.service.commands","plunker.service.project","plunker.service.settings","plunker.directive.codeEditor"]);n.run(["$templateCache",function(e){e.put("partials/directives/workspace.html",'<div class="pane-hierarchy">\r\n  <div fa-pane>\r\n    <div fa-pane pane-anchor="west" pane-size="{{100/(layout.length - $index) + \'&\'}}" pane-min="80px" pane-handle="{{$index!=layout.length-1&&4}}px" pane-no-toggle="true" pane-order="{{colIndex}}" ng-repeat="(colIndex, verticalSplits) in layout">\r\n      <div class="pane-container" pane-min="80px" ng-class="{active: isActive(paneId)}" fa-pane pane-anchor="north" pane-size="{{100/(verticalSplits.length-$index) + \'&\'}}" pane-handle="{{$index!=verticalSplits.length-1&&4}}px" pane-no-toggle="true" pane-order="{{rowIndex}}" ng-repeat="(rowIndex, paneId) in verticalSplits track by paneId" workspace-pane="{{paneId}}">\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>')}]),n.factory("workspace",["commands","keybindings","project",function(e,n,r){function o(e){return P[e]}function i(e,t){P[e]=t}function a(e){T.col=Math.max(0,Math.min(A.length-1,e.col)),T.row=Math.max(0,Math.min(A[T.col].length-1,e.row)),angular.copy(t.without(D,c()),D),D.unshift(c())}function s(e){var t=D[(D.length+e)%D.length],n=h(t);a(n)}function u(){return f(c())}function l(){return T}function c(){return m(l())}function f(e){return O[e]}function p(){return g(c())}function d(e){return A[e.col]?f(A[e.col][e.row]):void 0}function h(e){for(var t=0;t<A.length;t++)for(var n=A[t],r=0;r<n.length;r++)if(n[r]===e)return{row:r,col:t}}function g(e){return f(e).data}function m(e){return A[e.col]?A[e.col][e.row]:void 0}function v(e){return c()===e}function y(e){return!!O[e]}function b(e,n,r){var o={id:C++,title:"Empty",type:"empty"};return n||(n="horizontal"),e.row||(e.row=0),e.col||(e.col=0),"h"===n[0]?(e.row=0,e.col+=1,A.splice(e.col,0,[o.id])):"v"===n[0]&&(e.row+=1,e.col=Math.max(0,Math.min(A.length-1,e.col)),A[e.col].splice(e.row,0,o.id)),O[o.id]=o,angular.copy(t.without(D,o.id),D),D.push(o.id),r&&a(e),e}function $(n){var r=m(n);A.length<=n.col||A[n.col].length<=n.row||(A[n.col].splice(n.row,1),delete O[r],angular.copy(t.without(D,r),D),A[n.col].length||A.splice(n.col,1),A.length||b(T,"h",!1),e.exec("space.activate",{coords:h(D[0])}))}function w(){var n=t.find(r.entries,function(e){return 0<=["index.html"].indexOf(e.filename)});n&&e.exec("file.open",{entry:n})}function x(){for(var e=0;e<D.length;e++){var t=D[e],n=O[t];if(!n.locked)return h(t)}return b(l(),"h")}function _(e,n){var o=null;if(n||(n={}),angular.isString(e)&&(e=r.getEntryById(e)),e){if(o=h(e.id))return void a(o);o="col"===n.target?b(l(),"v"):"row"===n.target?b(l(),"h"):n.coords||x();var i=d(o);delete O[i.id],A[o.col][o.row]=e.id,O[e.id]={id:e.id,type:"code",title:e.path,data:e},angular.copy(t.without(D,i.id),D),a(o)}}function k(e){var t=h(e.id);t&&$(t)}function S(e){console.log("previewToggle",e,h("preview"));var n=h("preview");if(void 0===e&&(e=!n),e){if(!n){console.log("max",t.max(A,"length"),t.max(A,"length").length>1,A.length<=A[A.length-1].length),n=n||"empty"!==u().type?t.max(A,"length").length>1&&A.length>A[A.length-1].length?b({row:0,col:A.length-1},"v"):b({row:0,col:A.length-1},"h"):l();var r=d(n);delete O[r.id],angular.copy(t.without(D,r.id),D),A[n.col][n.row]="preview",O.preview={id:"preview",type:"preview",title:"Live preview",locked:!0,data:{}},D.unshift("preview")}}else n&&$(n)}function E(){return!!h("preview")}var C=0,T={row:0,col:0},A=[],D=[],O={},P={};return b(T),e.register("space.activate",["coords",a]),e.register("space.next",["direction",s],{direction:1}),e.register("space.prev",["direction",s],{direction:-1}),e.register("space.close",["coords",$],function(){return{coords:l()}}),e.register("space.split",["coords","direction","activateOnSplit",b],function(){return{activateOnSplit:!1,coords:l(),direction:"h"}}),e.register("file.open",["entry","options",_],{options:{}}),e.register("file.close",["entry",k]),e.register("file.openDefault",w,{options:{}}),e.register("preview.close",["open",S],{open:!1}),e.register("preview.open",["open",S],{open:!0}),e.register("preview.toggle",["open",S],{open:void 0}),n.bindKey({win:"CTRL-SHIFT-ENTER",mac:"OPTION-SHIFT-ENTER"},"preview.toggle"),n.bindKey({win:"CTRL-UP",mac:"OPTION-UP"},"space.prev"),n.bindKey({win:"CTRL-DOWN",mac:"OPTION-DOWN"},"space.next"),{getActivePaneCoords:l,getActivePaneId:c,getActivePaneData:p,getPane:f,getPaneById:f,getPaneCoords:h,getPaneData:g,getPaneIdByCoords:m,getPanes:function(){return O},getLayout:function(){return A},isActiveById:v,isOpenById:y,isPreviewOpen:E,history:D,registerPaneHandler:i,getPaneHandler:o}}]),n.directive("paneHierarchy",["workspace",function(e){return{restrict:"E",replace:!0,templateUrl:"partials/directives/workspace.html",controller:["$scope",function(t){t.layout=e.getLayout(),t.panes=e.getPanes(),t.active=e.active,t.getPane=e.getPane,t.isActive=e.isActiveById}]}}]),n.directive("workspacePane",["$compile","$injector","workspace",function(e,t,n){return{restrict:"A",replace:!1,link:function(r,o,i){var a=null;i.$observe("workspacePane",function(i){var s,u=n.getPane(i);if(a&&a.$destroy(),a=r.$new(),u&&(s=n.getPaneHandler(u.type))){var l=angular.element(s.template);a.entry=u,e(l)(a),o.empty().append(l),s.controller&&t.invoke(s.controller,s,{$scope:a,$element:l})}})}}}]),n.run(["workspace",function(e){e.registerPaneHandler("code",{template:'<div class="pane-header">\r\n  <div class="pane-title" ng-bind="entry.data.path" ng-click="$command(\'space.activate\', {coords: {row: rowIndex, col: colIndex}})"></div>\r\n  <div class="pane-actions">\r\n    <button class="btn btn-xs btn-primary" ng-click="$command(\'space.split\', {direction: \'h\', coords: {row: rowIndex, col: colIndex}, activateOnSplit: true})" tooltip="Split horizontally" tooltip-placement="bottom" tooltip-append-to-body="true">|</button>\r\n    <button class="btn btn-xs btn-primary" ng-click="$command(\'space.split\', {direction: \'v\', coords: {row: rowIndex, col: colIndex}, activateOnSplit: true})" tooltip="Split vertically" tooltip-placement="bottom" tooltip-append-to-body="true">-</button>\r\n    <button class="btn btn-xs btn-danger" ng-click="$command(\'space.close\', {coords: {row: rowIndex, col: colIndex}})" tooltip="Close" tooltip-placement="bottom" tooltip-append-to-body="true">X</button>\r\n  </div>\r\n</div>\r\n<div class="pane-content" ng-click="$command(\'space.activate\', {coords: {row: rowIndex, col: colIndex}})">\r\n	<code-editor edit-session="entry.data.editSession"></code-editor>\r\n</div>\r\n'}),e.registerPaneHandler("preview",{template:'<div class="pane-header">\r\n  <div class="pane-title" ng-click="$command(\'space.activate\', {coords: {row: rowIndex, col: colIndex}})">Live preview</div>\r\n  <div class="pane-actions">\r\n  	<div class="pane-options">\r\n	  	<button class="btn btn-xs btn-link" ng-class="{active: showQRCode}" ng-click="toggleQRCode()" tooltip="Show QR code for preview link" tooltip-placement="bottom" tooltip-append-to-body="true"><i class="fa fa-qrcode"></i></button>\r\n	  	<button class="btn btn-xs btn-link" ng-class="{active: showPreviewWindow}" ng-click="togglePreviewWindow()" tooltip="Toggle the preview in a separate window" tooltip-placement="bottom" tooltip-append-to-body="true"><i class="fa fa-external-link-square"></i></button>\r\n	  	<button class="btn btn-xs btn-link" ng-class="{active: settings.previewer.autoRefresh}" ng-click="settings.previewer.autoRefresh = !settings.previewer.autoRefresh" tooltip="Toggle auto-refresh ({{settings.previewer.autoRefresh && \'enabled\' || \'disabled\'}})" tooltip-placement="bottom" tooltip-append-to-body="true"><i class="fa fa-refresh"></i></button>\r\n	  </div>\r\n    <button class="btn btn-xs btn-primary" ng-click="$command(\'space.split\', {direction: \'h\', coords: {row: rowIndex, col: colIndex}, activateOnSplit: true})" tooltip="Split horizontally" tooltip-placement="bottom" tooltip-append-to-body="true">|</button>\r\n    <button class="btn btn-xs btn-primary" ng-click="$command(\'space.split\', {direction: \'v\', coords: {row: rowIndex, col: colIndex}, activateOnSplit: true})" tooltip="Split vertically" tooltip-placement="bottom" tooltip-append-to-body="true">-</button>\r\n    <button class="btn btn-xs btn-danger" ng-click="$command(\'space.close\', {coords: {row: rowIndex, col: colIndex}})" tooltip="Close" tooltip-placement="bottom" tooltip-append-to-body="true">X</button>\r\n  </div>\r\n</div>\r\n<div class="pane-content" ng-click="$command(\'space.activate\', {coords: {row: rowIndex, col: colIndex}})">\r\n	<div class="qrcode-overlay" ng-class="{active: showQRCode}">\r\n		<h3>Scan the QR code below to open the preview on your phone of tablet</h3>\r\n		<p><a ng-href="{{previewUrl}}" target="_blank" ng-bind="previewUrl"></a></p>\r\n		<p><qrcode url="{{previewUrl}}" width="256" height="256"></qrcode></p>\r\n	</div>\r\n	<plunker-previewer></plunker-previewer>\r\n</div>\r\n',controller:["$scope","settings","commands",function(e,t,n){e.settings=t,e.$watch("settings.previewer.autoRefresh",function(e,t){e&&t===!1&&n.exec("preview.refresh")})}]}),e.registerPaneHandler("empty",{template:'<div class="pane-header">\r\n  <div class="pane-title" ng-click="$command(\'space.activate\', {coords: {row: rowIndex, col: colIndex}})">Empty pane</div>\r\n  <div class="pane-actions">\r\n    <button class="btn btn-xs btn-primary" ng-click="$command(\'space.split\', {direction: \'h\', coords: {row: rowIndex, col: colIndex}, activateOnSplit: true})" tooltip="Split horizontally" tooltip-placement="bottom" tooltip-append-to-body="true">|</button>\r\n    <button class="btn btn-xs btn-primary" ng-click="$command(\'space.split\', {direction: \'v\', coords: {row: rowIndex, col: colIndex}, activateOnSplit: true})" tooltip="Split vertically" tooltip-placement="bottom" tooltip-append-to-body="true">-</button>\r\n    <button class="btn btn-xs btn-danger" ng-click="$command(\'space.close\', {coords: {row: rowIndex, col: colIndex}})" tooltip="Close" tooltip-placement="bottom" tooltip-append-to-body="true">X</button>\r\n  </div>\r\n</div>\r\n<div class="pane-content" ng-click="$command(\'space.activate\', {coords: {row: rowIndex, col: colIndex}})">\r\n	EMPTY\r\n</div>\r\n'})}]),n.directive("paneViewer",["$compile","workspace",function(e,t){return{restrict:"A",replace:!0,template:"<div></div>",link:function(n,r,o){function i(){return s&&t.isActiveById(s.id)}var a,s=null,u="";n.$watch(i,function(e){e&&n.$broadcast("pane-active")}),o.$observe("paneViewer",function(o){if(s=t.getPaneById(o),s&&s.type){switch(s.type){case"code":u="<ace-editor></ace-editor>";break;case"preview":u="<plunker-previewer></plunker-previewer>";break;default:u="<strong>EMPTY</strong>"}var i=angular.element(u);a&&a.$destroy(),r.empty(),a=n.$new(),a.pane=s,e(i)(a),r.append(i)}})}}}])}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\services\\workspace.js","/..\\services")},{"../directives/codeEditor":12,"../services/commands":17,"../services/project":19,"../services/settings":20,buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7,fs:1,lodash:32}],23:[function(){!function(e,t,n){"use strict";function r(e){return function(){var t,n,r=arguments[0],o="["+(e?e+":":"")+r+"] ",i=arguments[1],a=arguments,s=function(e){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof e?"undefined":"string"!=typeof e?JSON.stringify(e):e};for(t=o+i.replace(/\{\d+\}/g,function(e){var t,n=+e.slice(1,-1);return n+2<a.length?(t=a[n+2],"function"==typeof t?t.toString().replace(/ ?\{[\s\S]*$/,""):"undefined"==typeof t?"undefined":"string"!=typeof t?H(t):t):e}),t=t+"\nhttp://errors.angularjs.org/1.2.12/"+(e?e+"/":"")+r,n=2;n<arguments.length;n++)t=t+(2==n?"?":"&")+"p"+(n-2)+"="+encodeURIComponent(s(arguments[n]));return new Error(t)}}function o(e){if(null==e||E(e))return!1;var t=e.length;return 1===e.nodeType&&t?!0:$(e)||_(e)||0===t||"number"==typeof t&&t>0&&t-1 in e}function i(e,t,n){var r;if(e)if(k(e))for(r in e)"prototype"==r||"length"==r||"name"==r||e.hasOwnProperty&&!e.hasOwnProperty(r)||t.call(n,e[r],r);else if(e.forEach&&e.forEach!==i)e.forEach(t,n);else if(o(e))for(r=0;r<e.length;r++)t.call(n,e[r],r);else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r);return e}function a(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t.sort()}function s(e,t,n){for(var r=a(e),o=0;o<r.length;o++)t.call(n,e[r[o]],r[o]);return r}function u(e){return function(t,n){e(n,t)}}function l(){for(var e,t=$r.length;t;){if(t--,e=$r[t].charCodeAt(0),57==e)return $r[t]="A",$r.join("");if(90!=e)return $r[t]=String.fromCharCode(e+1),$r.join("");$r[t]="0"}return $r.unshift("0"),$r.join("")}function c(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function f(e){var t=e.$$hashKey;return i(arguments,function(t){t!==e&&i(t,function(t,n){e[n]=t})}),c(e,t),e}function p(e){return parseInt(e,10)}function d(e,t){return f(new(f(function(){},{prototype:e})),t)}function h(){}function g(e){return e}function m(e){return function(){return e}}function v(e){return"undefined"==typeof e}function y(e){return"undefined"!=typeof e}function b(e){return null!=e&&"object"==typeof e}function $(e){return"string"==typeof e}function w(e){return"number"==typeof e}function x(e){return"[object Date]"===vr.call(e)}function _(e){return"[object Array]"===vr.call(e)}function k(e){return"function"==typeof e}function S(e){return"[object RegExp]"===vr.call(e)}function E(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function C(e){return e&&e.$evalAsync&&e.$watch}function T(e){return"[object File]"===vr.call(e)}function A(e){return!(!e||!(e.nodeName||e.on&&e.find))}function D(e,t,n){var r=[];return i(e,function(e,o,i){r.push(t.call(n,e,o,i))}),r}function O(e,t){return-1!=P(e,t)}function P(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;n++)if(t===e[n])return n;return-1}function j(e,t){var n=P(e,t);return n>=0&&e.splice(n,1),t}function M(e,t){if(E(e)||C(e))throw yr("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");if(t){if(e===t)throw yr("cpi","Can't copy! Source and destination are identical.");if(_(e)){t.length=0;for(var n=0;n<e.length;n++)t.push(M(e[n]))}else{var r=t.$$hashKey;i(t,function(e,n){delete t[n]});for(var o in e)t[o]=M(e[o]);c(t,r)}}else t=e,e&&(_(e)?t=M(e,[]):x(e)?t=new Date(e.getTime()):S(e)?t=new RegExp(e.source):b(e)&&(t=M(e,{})));return t}function I(e,t){t=t||{};for(var n in e)!e.hasOwnProperty(n)||"$"===n.charAt(0)&&"$"===n.charAt(1)||(t[n]=e[n]);return t}function L(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var r,o,i,a=typeof e,s=typeof t;if(a==s&&"object"==a){if(!_(e)){if(x(e))return x(t)&&e.getTime()==t.getTime();if(S(e)&&S(t))return e.toString()==t.toString();if(C(e)||C(t)||E(e)||E(t)||_(t))return!1;i={};for(o in e)if("$"!==o.charAt(0)&&!k(e[o])){if(!L(e[o],t[o]))return!1;i[o]=!0}for(o in t)if(!i.hasOwnProperty(o)&&"$"!==o.charAt(0)&&t[o]!==n&&!k(t[o]))return!1;return!0}if(!_(t))return!1;if((r=e.length)==t.length){for(o=0;r>o;o++)if(!L(e[o],t[o]))return!1;return!0}}return!1}function N(){return t.securityPolicy&&t.securityPolicy.isActive||t.querySelector&&!(!t.querySelector("[ng-csp]")&&!t.querySelector("[data-ng-csp]"))}function R(e,t,n){return e.concat(gr.call(t,n))}function B(e,t){return gr.call(e,t||0)}function U(e,t){var n=arguments.length>2?B(arguments,2):[];return!k(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,n.concat(gr.call(arguments,0))):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function F(e,r){var o=r;return"string"==typeof e&&"$"===e.charAt(0)?o=n:E(r)?o="$WINDOW":r&&t===r?o="$DOCUMENT":C(r)&&(o="$SCOPE"),o}function H(e,t){return"undefined"==typeof e?n:JSON.stringify(e,F,t?"  ":null)}function q(e){return $(e)?JSON.parse(e):e}function z(e){if("function"==typeof e)e=!0;else if(e&&0!==e.length){var t=ar(""+e);e=!("f"==t||"0"==t||"false"==t||"no"==t||"n"==t||"[]"==t)}else e=!1;return e}function V(e){e=fr(e).clone();try{e.empty()}catch(t){}var n=3,r=fr("<div>").append(e).html();try{return e[0].nodeType===n?ar(r):r.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+ar(t)})}catch(t){return ar(r)}}function W(e){try{return decodeURIComponent(e)}catch(t){}}function K(e){var t,n,r={};return i((e||"").split("&"),function(e){if(e&&(t=e.split("="),n=W(t[0]),y(n))){var o=y(t[1])?W(t[1]):!0;r[n]?_(r[n])?r[n].push(o):r[n]=[r[n],o]:r[n]=o}}),r}function Y(e){var t=[];return i(e,function(e,n){_(e)?i(e,function(e){t.push(Q(n,!0)+(e===!0?"":"="+Q(e,!0)))}):t.push(Q(n,!0)+(e===!0?"":"="+Q(e,!0)))}),t.length?t.join("&"):""}function G(e){return Q(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Q(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")}function J(e,n){function r(e){e&&s.push(e)}var o,a,s=[e],u=["ng:app","ng-app","x-ng-app","data-ng-app"],l=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;i(u,function(n){u[n]=!0,r(t.getElementById(n)),n=n.replace(":","\\:"),e.querySelectorAll&&(i(e.querySelectorAll("."+n),r),i(e.querySelectorAll("."+n+"\\:"),r),i(e.querySelectorAll("["+n+"]"),r))}),i(s,function(e){if(!o){var t=" "+e.className+" ",n=l.exec(t);n?(o=e,a=(n[2]||"").replace(/\s+/g,",")):i(e.attributes,function(t){!o&&u[t.name]&&(o=e,a=t.value)})}}),o&&n(o,a?[a]:[])}function X(n,r){var o=function(){if(n=fr(n),n.injector()){var e=n[0]===t?"document":V(n);throw yr("btstrpd","App Already Bootstrapped with this Element '{0}'",e)}r=r||[],r.unshift(["$provide",function(e){e.value("$rootElement",n)}]),r.unshift("ng");var o=Dt(r);return o.invoke(["$rootScope","$rootElement","$compile","$injector","$animate",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),o},a=/^NG_DEFER_BOOTSTRAP!/;return e&&!a.test(e.name)?o():(e.name=e.name.replace(a,""),void(br.resumeBootstrap=function(e){i(e,function(e){r.push(e)}),o()}))}function Z(e,t){return t=t||"_",e.replace(xr,function(e,n){return(n?t:"")+e.toLowerCase()})}function et(){pr=e.jQuery,pr?(fr=pr,f(pr.fn,{scope:Pr.scope,isolateScope:Pr.isolateScope,controller:Pr.controller,injector:Pr.injector,inheritedData:Pr.inheritedData}),ct("remove",!0,!0,!1),ct("empty",!1,!1,!1),ct("html",!1,!1,!0)):fr=ft,br.element=fr}function tt(e,t,n){if(!e)throw yr("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function nt(e,t,n){return n&&_(e)&&(e=e[e.length-1]),tt(k(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function rt(e,t){if("hasOwnProperty"===e)throw yr("badname","hasOwnProperty is not a valid {0} name",t)}function ot(e,t,n){if(!t)return e;for(var r,o=t.split("."),i=e,a=o.length,s=0;a>s;s++)r=o[s],e&&(e=(i=e)[r]);return!n&&k(e)?U(i,e):e}function it(e){var t=e[0],n=e[e.length-1];if(t===n)return fr(t);var r=t,o=[r];do{if(r=r.nextSibling,!r)break;o.push(r)}while(r!==n);return fr(o)}function at(e){function t(e,t,n){return e[t]||(e[t]=n())}var n=r("$injector"),o=r("ng"),i=t(e,"angular",Object);return i.$$minErr=i.$$minErr||r,t(i,"module",function(){var e={};return function(r,i,a){var s=function(e,t){if("hasOwnProperty"===e)throw o("badname","hasOwnProperty is not a valid {0} name",t)};return s(r,"module"),i&&e.hasOwnProperty(r)&&(e[r]=null),t(e,r,function(){function e(e,n,r){return function(){return t[r||"push"]([e,n,arguments]),u}}if(!i)throw n("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",r);var t=[],o=[],s=e("$injector","invoke"),u={_invokeQueue:t,_runBlocks:o,requires:i,name:r,provider:e("$provide","provider"),factory:e("$provide","factory"),service:e("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),animation:e("$animateProvider","register"),filter:e("$filterProvider","register"),controller:e("$controllerProvider","register"),directive:e("$compileProvider","directive"),config:s,run:function(e){return o.push(e),this}};return a&&s(a),u})}})}function st(t){f(t,{bootstrap:X,copy:M,extend:f,equals:L,element:fr,forEach:i,injector:Dt,noop:h,bind:U,toJson:H,fromJson:q,identity:g,isUndefined:v,isDefined:y,isString:$,isFunction:k,isObject:b,isNumber:w,isElement:A,isArray:_,version:_r,isDate:x,lowercase:ar,uppercase:sr,callbacks:{counter:0},$$minErr:r,$$csp:N}),dr=at(e);try{dr("ngLocale")}catch(n){dr("ngLocale",[]).provider("$locale",Xt)}dr("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Sn}),e.provider("$compile",Lt).directive({a:po,input:_o,textarea:_o,form:vo,script:oi,select:si,style:li,option:ui,ngBind:Io,ngBindHtml:No,ngBindTemplate:Lo,ngClass:Ro,ngClassEven:Uo,ngClassOdd:Bo,ngCloak:Fo,ngController:Ho,ngForm:yo,ngHide:Xo,ngIf:zo,ngInclude:Vo,ngInit:Ko,ngNonBindable:Yo,ngPluralize:Go,ngRepeat:Qo,ngShow:Jo,ngStyle:Zo,ngSwitch:ei,ngSwitchWhen:ti,ngSwitchDefault:ni,ngOptions:ai,ngTransclude:ri,ngModel:Ao,ngList:Po,ngChange:Do,required:Oo,ngRequired:Oo,ngValue:Mo}).directive({ngInclude:Wo}).directive(ho).directive(qo),e.provider({$anchorScroll:Ot,$animate:Fr,$browser:jt,$cacheFactory:Mt,$controller:Bt,$document:Ut,$exceptionHandler:Ft,$filter:Ln,$interpolate:Qt,$interval:Jt,$http:Wt,$httpBackend:Yt,$location:pn,$log:dn,$parse:wn,$rootScope:kn,$q:xn,$sce:Dn,$sceDelegate:An,$sniffer:On,$templateCache:It,$timeout:Pn,$window:In})}])}function ut(){return++Er}function lt(e){return e.replace(Ar,function(e,t,n,r){return r?n.toUpperCase():n}).replace(Dr,"Moz$1")}function ct(e,t,n,r){function o(e){var o,a,s,u,l,c,f,p=n&&e?[this.filter(e)]:[this],d=t;if(!r||null!=e)for(;p.length;)for(o=p.shift(),a=0,s=o.length;s>a;a++)for(u=fr(o[a]),d?u.triggerHandler("$destroy"):d=!d,l=0,c=(f=u.children()).length;c>l;l++)p.push(pr(f[l]));return i.apply(this,arguments)}var i=pr.fn[e];i=i.$original||i,o.$original=i,pr.fn[e]=o}function ft(e){if(e instanceof ft)return e;if($(e)&&(e=wr(e)),!(this instanceof ft)){if($(e)&&"<"!=e.charAt(0))throw Or("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new ft(e)}if($(e)){var n=t.createElement("div");n.innerHTML="<div>&#160;</div>"+e,n.removeChild(n.firstChild),wt(this,n.childNodes);var r=fr(t.createDocumentFragment());r.append(this)}else wt(this,e)}function pt(e){return e.cloneNode(!0)}function dt(e){gt(e);for(var t=0,n=e.childNodes||[];t<n.length;t++)dt(n[t])}function ht(e,t,n,r){if(y(r))throw Or("offargs","jqLite#off() does not support the `selector` argument");var o=mt(e,"events"),a=mt(e,"handle");a&&(v(t)?i(o,function(t,n){Tr(e,n,t),delete o[n]}):i(t.split(" "),function(t){v(n)?(Tr(e,t,o[t]),delete o[t]):j(o[t]||[],n)}))}function gt(e,t){var r=e[Sr],o=kr[r];if(o){if(t)return void delete kr[r].data[t];o.handle&&(o.events.$destroy&&o.handle({},"$destroy"),ht(e)),delete kr[r],e[Sr]=n}}function mt(e,t,n){var r=e[Sr],o=kr[r||-1];return y(n)?(o||(e[Sr]=r=ut(),o=kr[r]={}),void(o[t]=n)):o&&o[t]}function vt(e,t,n){var r=mt(e,"data"),o=y(n),i=!o&&y(t),a=i&&!b(t);if(r||a||mt(e,"data",r={}),o)r[t]=n;else{if(!i)return r;if(a)return r&&r[t];f(r,t)}}function yt(e,t){return e.getAttribute?(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1:!1}function bt(e,t){t&&e.setAttribute&&i(t.split(" "),function(t){e.setAttribute("class",wr((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+wr(t)+" "," ")))})}function $t(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");i(t.split(" "),function(e){e=wr(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")}),e.setAttribute("class",wr(n))}}function wt(e,t){if(t){t=t.nodeName||!y(t.length)||E(t)?[t]:t;for(var n=0;n<t.length;n++)e.push(t[n])}}function xt(e,t){return _t(e,"$"+(t||"ngController")+"Controller")}function _t(e,t,r){e=fr(e),9==e[0].nodeType&&(e=e.find("html"));for(var o=_(t)?t:[t];e.length;){for(var i=0,a=o.length;a>i;i++)if((r=e.data(o[i]))!==n)return r;e=e.parent()}}function kt(e){for(var t=0,n=e.childNodes;t<n.length;t++)dt(n[t]);for(;e.firstChild;)e.removeChild(e.firstChild)}function St(e,t){var n=jr[t.toLowerCase()];return n&&Mr[e.nodeName]&&n}function Et(e,n){var r=function(r,o){if(r.preventDefault||(r.preventDefault=function(){r.returnValue=!1}),r.stopPropagation||(r.stopPropagation=function(){r.cancelBubble=!0}),r.target||(r.target=r.srcElement||t),v(r.defaultPrevented)){var a=r.preventDefault;r.preventDefault=function(){r.defaultPrevented=!0,a.call(r)},r.defaultPrevented=!1}r.isDefaultPrevented=function(){return r.defaultPrevented||r.returnValue===!1};var s=I(n[o||r.type]||[]);i(s,function(t){t.call(e,r)}),8>=cr?(r.preventDefault=null,r.stopPropagation=null,r.isDefaultPrevented=null):(delete r.preventDefault,delete r.stopPropagation,delete r.isDefaultPrevented)};return r.elem=e,r}function Ct(e){var t,r=typeof e;return"object"==r&&null!==e?"function"==typeof(t=e.$$hashKey)?t=e.$$hashKey():t===n&&(t=e.$$hashKey=l()):t=e,r+":"+t
}function Tt(e){i(e,this.put,this)}function At(e){var t,n,r,o;return"function"==typeof e?(t=e.$inject)||(t=[],e.length&&(n=e.toString().replace(Rr,""),r=n.match(Ir),i(r[1].split(Lr),function(e){e.replace(Nr,function(e,n,r){t.push(r)})})),e.$inject=t):_(e)?(o=e.length-1,nt(e[o],"fn"),t=e.slice(0,o)):nt(e,"fn",!0),t}function Dt(e){function t(e){return function(t,n){return b(t)?void i(t,u(e)):e(t,n)}}function n(e,t){if(rt(e,"service"),(k(t)||_(t))&&(t=w.instantiate(t)),!t.$get)throw Br("pget","Provider '{0}' must define $get factory method.",e);return y[e+d]=t}function r(e,t){return n(e,{$get:t})}function o(e,t){return r(e,["$injector",function(e){return e.instantiate(t)}])}function a(e,t){return r(e,m(t))}function s(e,t){rt(e,"constant"),y[e]=t,x[e]=t}function l(e,t){var n=w.get(e+d),r=n.$get;n.$get=function(){var e=S.invoke(r,n);return S.invoke(t,null,{$delegate:e})}}function c(e){var t,n,r,o,a=[];return i(e,function(e){if(!v.get(e)){v.put(e,!0);try{if($(e))for(t=dr(e),a=a.concat(c(t.requires)).concat(t._runBlocks),n=t._invokeQueue,r=0,o=n.length;o>r;r++){var i=n[r],s=w.get(i[0]);s[i[1]].apply(s,i[2])}else k(e)?a.push(w.invoke(e)):_(e)?a.push(w.invoke(e)):nt(e,"module")}catch(u){throw _(e)&&(e=e[e.length-1]),u.message&&u.stack&&-1==u.stack.indexOf(u.message)&&(u=u.message+"\n"+u.stack),Br("modulerr","Failed to instantiate module {0} due to:\n{1}",e,u.stack||u.message||u)}}}),a}function f(e,t){function n(n){if(e.hasOwnProperty(n)){if(e[n]===p)throw Br("cdep","Circular dependency found: {0}",g.join(" <- "));return e[n]}try{return g.unshift(n),e[n]=p,e[n]=t(n)}catch(r){throw e[n]===p&&delete e[n],r}finally{g.shift()}}function r(e,t,r){var o,i,a,s=[],u=At(e);for(i=0,o=u.length;o>i;i++){if(a=u[i],"string"!=typeof a)throw Br("itkn","Incorrect injection token! Expected service name as string, got {0}",a);s.push(r&&r.hasOwnProperty(a)?r[a]:n(a))}return e.$inject||(e=e[o]),e.apply(t,s)}function o(e,t){var n,o,i=function(){};return i.prototype=(_(e)?e[e.length-1]:e).prototype,n=new i,o=r(e,n,t),b(o)||k(o)?o:n}return{invoke:r,instantiate:o,get:n,annotate:At,has:function(t){return y.hasOwnProperty(t+d)||e.hasOwnProperty(t)}}}var p={},d="Provider",g=[],v=new Tt,y={$provide:{provider:t(n),factory:t(r),service:t(o),value:t(a),constant:t(s),decorator:l}},w=y.$injector=f(y,function(){throw Br("unpr","Unknown provider: {0}",g.join(" <- "))}),x={},S=x.$injector=f(x,function(e){var t=w.get(e+d);return S.invoke(t.$get,t)});return i(c(e),function(e){S.invoke(e||h)}),S}function Ot(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function o(e){var t=null;return i(e,function(e){t||"a"!==ar(e.nodeName)||(t=e)}),t}function a(){var e,r=n.hash();r?(e=s.getElementById(r))?e.scrollIntoView():(e=o(s.getElementsByName(r)))?e.scrollIntoView():"top"===r&&t.scrollTo(0,0):t.scrollTo(0,0)}var s=t.document;return e&&r.$watch(function(){return n.hash()},function(){r.$evalAsync(a)}),a}]}function Pt(e,t,r,o){function a(e){try{e.apply(null,B(arguments,1))}finally{if(y--,0===y)for(;b.length;)try{b.pop()()}catch(t){r.error(t)}}}function s(e,t){!function n(){i(x,function(e){e()}),w=t(n,e)}()}function u(){S=null,_!=l.url()&&(_=l.url(),i(E,function(e){e(l.url())}))}var l=this,c=t[0],f=e.location,p=e.history,d=e.setTimeout,g=e.clearTimeout,m={};l.isMock=!1;var y=0,b=[];l.$$completeOutstandingRequest=a,l.$$incOutstandingRequestCount=function(){y++},l.notifyWhenNoOutstandingRequests=function(e){i(x,function(e){e()}),0===y?e():b.push(e)};var w,x=[];l.addPollFn=function(e){return v(w)&&s(100,d),x.push(e),e};var _=f.href,k=t.find("base"),S=null;l.url=function(t,n){if(f!==e.location&&(f=e.location),p!==e.history&&(p=e.history),t){if(_==t)return;return _=t,o.history?n?p.replaceState(null,"",t):(p.pushState(null,"",t),k.attr("href",k.attr("href"))):(S=t,n?f.replace(t):f.href=t),l}return S||f.href.replace(/%27/g,"'")};var E=[],C=!1;l.onUrlChange=function(t){return C||(o.history&&fr(e).on("popstate",u),o.hashchange?fr(e).on("hashchange",u):l.addPollFn(u),C=!0),E.push(t),t},l.baseHref=function(){var e=k.attr("href");return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var T={},A="",D=l.baseHref();l.cookies=function(e,t){var o,i,a,s,u;if(!e){if(c.cookie!==A)for(A=c.cookie,i=A.split("; "),T={},s=0;s<i.length;s++)a=i[s],u=a.indexOf("="),u>0&&(e=unescape(a.substring(0,u)),T[e]===n&&(T[e]=unescape(a.substring(u+1))));return T}t===n?c.cookie=escape(e)+"=;path="+D+";expires=Thu, 01 Jan 1970 00:00:00 GMT":$(t)&&(o=(c.cookie=escape(e)+"="+escape(t)+";path="+D).length+1,o>4096&&r.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+o+" > 4096 bytes)!"))},l.defer=function(e,t){var n;return y++,n=d(function(){delete m[n],a(e)},t||0),m[n]=!0,n},l.defer.cancel=function(e){return m[e]?(delete m[e],g(e),a(h),!0):!1}}function jt(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new Pt(e,r,t,n)}]}function Mt(){this.$get=function(){function e(e,n){function o(e){e!=p&&(d?d==e&&(d=e.n):d=e,i(e.n,e.p),i(e,p),p=e,p.n=null)}function i(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}if(e in t)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,s=f({},n,{id:e}),u={},l=n&&n.capacity||Number.MAX_VALUE,c={},p=null,d=null;return t[e]={put:function(e,t){var n=c[e]||(c[e]={key:e});return o(n),v(t)?void 0:(e in u||a++,u[e]=t,a>l&&this.remove(d.key),t)},get:function(e){var t=c[e];if(t)return o(t),u[e]},remove:function(e){var t=c[e];t&&(t==p&&(p=t.p),t==d&&(d=t.n),i(t.n,t.p),delete c[e],delete u[e],a--)},removeAll:function(){u={},a=0,c={},p=d=null},destroy:function(){u=null,s=null,c=null,delete t[e]},info:function(){return f({},s,{size:a})}}}var t={};return e.info=function(){var e={};return i(t,function(t,n){e[n]=t.info()}),e},e.get=function(e){return t[e]},e}}function It(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function Lt(e,r){var o={},a="Directive",s=/^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,l=/(([\d\w\-_]+)(?:\:([^;]+))?;?)/,c=/^(on[a-z]+|formaction)$/;this.directive=function p(t,n){return rt(t,"directive"),$(t)?(tt(n,"directiveFactory"),o.hasOwnProperty(t)||(o[t]=[],e.factory(t+a,["$injector","$exceptionHandler",function(e,n){var r=[];return i(o[t],function(o,i){try{var a=e.invoke(o);k(a)?a={compile:m(a)}:!a.compile&&a.link&&(a.compile=m(a.link)),a.priority=a.priority||0,a.index=i,a.name=a.name||t,a.require=a.require||a.controller&&a.name,a.restrict=a.restrict||"A",r.push(a)}catch(s){n(s)}}),r}])),o[t].push(n)):i(t,u(p)),this},this.aHrefSanitizationWhitelist=function(e){return y(e)?(r.aHrefSanitizationWhitelist(e),this):r.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return y(e)?(r.imgSrcSanitizationWhitelist(e),this):r.imgSrcSanitizationWhitelist()},this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(e,r,u,p,h,v,y,w,x,S,E,C){function T(e,t,n,r,o){e instanceof fr||(e=fr(e)),i(e,function(t,n){3==t.nodeType&&t.nodeValue.match(/\S+/)&&(e[n]=t=fr(t).wrap("<span></span>").parent()[0])});var a=D(e,t,e,n,r,o);return A(e,"ng-scope"),function(t,n,r){tt(t,"scope");var o=n?Pr.clone.call(e):e;i(r,function(e,t){o.data("$"+t+"Controller",e)});for(var s=0,u=o.length;u>s;s++){var l=o[s],c=l.nodeType;(1===c||9===c)&&o.eq(s).data("$scope",t)}return n&&n(o,t),a&&a(t,o,o),o}}function A(e,t){try{e.addClass(t)}catch(n){}}function D(e,t,r,o,i,a){function s(e,r,o,i){var a,s,u,l,c,f,p,d,g,m=r.length,v=new Array(m);for(p=0;m>p;p++)v[p]=r[p];for(p=0,g=0,d=h.length;d>p;g++)u=v[g],a=h[p++],s=h[p++],l=fr(u),a?(a.scope?(c=e.$new(),l.data("$scope",c)):c=e,f=a.transclude,f||!i&&t?a(s,c,u,o,O(e,f||t)):a(s,c,u,o,i)):s&&s(e,u.childNodes,n,i)}for(var u,l,c,f,p,d,h=[],g=0;g<e.length;g++)u=new X,l=P(e[g],[],u,0===g?o:n,i),c=l.length?N(l,e[g],u,t,r,null,[],[],a):null,c&&c.scope&&A(fr(e[g]),"ng-scope"),p=c&&c.terminal||!(f=e[g].childNodes)||!f.length?null:D(f,c?c.transclude:t),h.push(c,p),d=d||c||p,a=null;return d?s:null}function O(e,t){return function(n,r,o){var i=!1;n||(n=e.$new(),n.$$transcluded=!0,i=!0);var a=t(n,r,o);return i&&a.on("$destroy",U(n,n.$destroy)),a}}function P(e,t,n,r,o){var i,a,u=e.nodeType,c=n.$attr;switch(u){case 1:F(t,Nt(hr(e).toLowerCase()),"E",r,o);for(var f,p,d,h,g,m=e.attributes,v=0,y=m&&m.length;y>v;v++){var b=!1,w=!1;if(f=m[v],!cr||cr>=8||f.specified){p=f.name,h=Nt(p),ot.test(h)&&(p=Z(h.substr(6),"-"));var x=h.replace(/(Start|End)$/,"");h===x+"Start"&&(b=p,w=p.substr(0,p.length-5)+"end",p=p.substr(0,p.length-6)),d=Nt(p.toLowerCase()),c[d]=p,n[d]=g=wr(f.value),St(e,d)&&(n[d]=!0),G(e,t,g,d),F(t,d,"A",r,o,b,w)}}if(a=e.className,$(a)&&""!==a)for(;i=l.exec(a);)d=Nt(i[2]),F(t,d,"C",r,o)&&(n[d]=wr(i[3])),a=a.substr(i.index+i[0].length);break;case 3:K(t,e.nodeValue);break;case 8:try{i=s.exec(e.nodeValue),i&&(d=Nt(i[1]),F(t,d,"M",r,o)&&(n[d]=wr(i[2])))}catch(_){}}return t.sort(z),t}function j(e,t,n){var r=[],o=0;if(t&&e.hasAttribute&&e.hasAttribute(t)){do{if(!e)throw Hr("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);1==e.nodeType&&(e.hasAttribute(t)&&o++,e.hasAttribute(n)&&o--),r.push(e),e=e.nextSibling}while(o>0)}else r.push(e);return fr(r)}function M(e,t,n){return function(r,o,i,a,s){return o=j(o[0],t,n),e(r,o,i,a,s)}}function N(e,o,a,s,l,c,f,p,d){function h(e,t,n,r){e&&(n&&(e=M(e,n,r)),e.require=x.require,(U===x||x.$$isolateScope)&&(e=J(e,{isolateScope:!0})),f.push(e)),t&&(n&&(t=M(t,n,r)),t.require=x.require,(U===x||x.$$isolateScope)&&(t=J(t,{isolateScope:!0})),p.push(t))}function g(e,t,n){var r,o="data",a=!1;if($(e)){for(;"^"==(r=e.charAt(0))||"?"==r;)e=e.substr(1),"^"==r&&(o="inheritedData"),a=a||"?"==r;if(r=null,n&&"data"===o&&(r=n[e]),r=r||t[o]("$"+e+"Controller"),!r&&!a)throw Hr("ctreq","Controller '{0}', required by directive '{1}', can't be found!",e,S);return r}return _(e)&&(r=[],i(e,function(e){r.push(g(e,t,n))})),r}function m(e,t,s,l,c){function d(e,t){var r;return arguments.length<2&&(t=e,e=n),Y&&(r=S),c(e,t,r)}var h,m,b,$,w,x,_,k,S={};if(h=o===s?a:I(a,new X(fr(s),a.$attr)),m=h.$$element,U){var E=/^\s*([@=&])(\??)\s*(\w*)\s*$/,C=fr(s);_=t.$new(!0),F&&F===U.$$originalDirective?C.data("$isolateScope",_):C.data("$isolateScopeNoTemplate",_),A(C,"ng-isolate-scope"),i(U.scope,function(e,n){var o,i,a,s,u=e.match(E)||[],l=u[3]||n,c="?"==u[2],f=u[1];switch(_.$$isolateBindings[n]=f+l,f){case"@":h.$observe(l,function(e){_[n]=e}),h.$$observers[l].$$scope=t,h[l]&&(_[n]=r(h[l])(t));break;case"=":if(c&&!h[l])return;i=v(h[l]),s=i.literal?L:function(e,t){return e===t},a=i.assign||function(){throw o=_[n]=i(t),Hr("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",h[l],U.name)},o=_[n]=i(t),_.$watch(function(){var e=i(t);return s(e,_[n])||(s(e,o)?a(t,e=_[n]):_[n]=e),o=e},null,i.literal);break;case"&":i=v(h[l]),_[n]=function(e){return i(t,e)};break;default:throw Hr("iscp","Invalid isolate scope definition for directive '{0}'. Definition: {... {1}: '{2}' ...}",U.name,n,e)}})}for(k=c&&d,N&&i(N,function(e){var n,r={$scope:e===U||e.$$isolateScope?_:t,$element:m,$attrs:h,$transclude:k};x=e.controller,"@"==x&&(x=h[e.name]),n=y(x,r),S[e.name]=n,Y||m.data("$"+e.name+"Controller",n),e.controllerAs&&(r.$scope[e.controllerAs]=n)}),b=0,$=f.length;$>b;b++)try{w=f[b],w(w.isolateScope?_:t,m,h,w.require&&g(w.require,m,S),k)}catch(T){u(T,V(m))}var D=t;for(U&&(U.template||null===U.templateUrl)&&(D=_),e&&e(D,s.childNodes,n,c),b=p.length-1;b>=0;b--)try{w=p[b],w(w.isolateScope?_:t,m,h,w.require&&g(w.require,m,S),k)}catch(T){u(T,V(m))}}d=d||{};for(var w,x,S,E,C,D,O=-Number.MAX_VALUE,N=d.controllerDirectives,U=d.newIsolateScopeDirective,F=d.templateDirective,z=d.nonTlbTranscludeDirective,K=!1,Y=!1,G=a.$$element=fr(o),Z=c,et=s,tt=0,nt=e.length;nt>tt;tt++){x=e[tt];var ot=x.$$start,it=x.$$end;if(ot&&(G=j(o,ot,it)),E=n,O>x.priority)break;if((D=x.scope)&&(w=w||x,x.templateUrl||(W("new/isolated scope",U,x,G),b(D)&&(U=x))),S=x.name,!x.templateUrl&&x.controller&&(D=x.controller,N=N||{},W("'"+S+"' controller",N[S],x,G),N[S]=x),(D=x.transclude)&&(K=!0,x.$$tlb||(W("transclusion",z,x,G),z=x),"element"==D?(Y=!0,O=x.priority,E=j(o,ot,it),G=a.$$element=fr(t.createComment(" "+S+": "+a[S]+" ")),o=G[0],Q(l,fr(B(E)),o),et=T(E,s,O,Z&&Z.name,{nonTlbTranscludeDirective:z})):(E=fr(pt(o)).contents(),G.empty(),et=T(E,s))),x.template)if(W("template",F,x,G),F=x,D=k(x.template)?x.template(G,a):x.template,D=rt(D),x.replace){if(Z=x,E=fr("<div>"+wr(D)+"</div>").contents(),o=E[0],1!=E.length||1!==o.nodeType)throw Hr("tplrt","Template for directive '{0}' must have exactly one root element. {1}",S,"");Q(l,G,o);var at={$attr:{}},st=P(o,[],at),ut=e.splice(tt+1,e.length-(tt+1));U&&R(st),e=e.concat(st).concat(ut),H(a,at),nt=e.length}else G.html(D);if(x.templateUrl)W("template",F,x,G),F=x,x.replace&&(Z=x),m=q(e.splice(tt,e.length-tt),G,a,l,et,f,p,{controllerDirectives:N,newIsolateScopeDirective:U,templateDirective:F,nonTlbTranscludeDirective:z}),nt=e.length;else if(x.compile)try{C=x.compile(G,a,et),k(C)?h(null,C,ot,it):C&&h(C.pre,C.post,ot,it)}catch(lt){u(lt,V(G))}x.terminal&&(m.terminal=!0,O=Math.max(O,x.priority))}return m.scope=w&&w.scope===!0,m.transclude=K&&et,m}function R(e){for(var t=0,n=e.length;n>t;t++)e[t]=d(e[t],{$$isolateScope:!0})}function F(t,r,i,s,l,c,f){if(r===l)return null;var p=null;if(o.hasOwnProperty(r))for(var h,g=e.get(r+a),m=0,v=g.length;v>m;m++)try{h=g[m],(s===n||s>h.priority)&&-1!=h.restrict.indexOf(i)&&(c&&(h=d(h,{$$start:c,$$end:f})),t.push(h),p=h)}catch(y){u(y)}return p}function H(e,t){var n=t.$attr,r=e.$attr,o=e.$$element;i(e,function(r,o){"$"!=o.charAt(0)&&(t[o]&&(r+=("style"===o?";":" ")+t[o]),e.$set(o,r,!0,n[o]))}),i(t,function(t,i){"class"==i?(A(o,t),e["class"]=(e["class"]?e["class"]+" ":"")+t):"style"==i?(o.attr("style",o.attr("style")+";"+t),e.style=(e.style?e.style+";":"")+t):"$"==i.charAt(0)||e.hasOwnProperty(i)||(e[i]=t,r[i]=n[i])})}function q(e,t,n,r,o,a,s,u){var l,c,d=[],g=t[0],m=e.shift(),v=f({},m,{templateUrl:null,transclude:null,replace:null,$$originalDirective:m}),y=k(m.templateUrl)?m.templateUrl(t,n):m.templateUrl;return t.empty(),p.get(S.getTrustedResourceUrl(y),{cache:h}).success(function(f){var p,h,$,w;if(f=rt(f),m.replace){if($=fr("<div>"+wr(f)+"</div>").contents(),p=$[0],1!=$.length||1!==p.nodeType)throw Hr("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m.name,y);h={$attr:{}},Q(r,t,p);var x=P(p,[],h);b(m.scope)&&R(x),e=x.concat(e),H(n,h)}else p=g,t.html(f);for(e.unshift(v),l=N(e,p,n,o,t,m,a,s,u),i(r,function(e,n){e==p&&(r[n]=t[0])}),c=D(t[0].childNodes,o);d.length;){var _=d.shift(),k=d.shift(),S=d.shift(),E=d.shift(),C=t[0];if(k!==g){var T=k.className;C=pt(p),Q(S,fr(k),C),A(fr(C),T)}w=l.transclude?O(_,l.transclude):E,l(c,_,C,r,w)}d=null}).error(function(e,t,n,r){throw Hr("tpload","Failed to load template: {0}",r.url)}),function(e,t,n,r,o){d?(d.push(t),d.push(n),d.push(r),d.push(o)):l(c,t,n,r,o)}}function z(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function W(e,t,n,r){if(t)throw Hr("multidir","Multiple directives [{0}, {1}] asking for {2} on: {3}",t.name,n.name,e,V(r))}function K(e,t){var n=r(t,!0);n&&e.push({priority:0,compile:m(function(e,t){var r=t.parent(),o=r.data("$binding")||[];o.push(n),A(r.data("$binding",o),"ng-binding"),e.$watch(n,function(e){t[0].nodeValue=e})})})}function Y(e,t){if("srcdoc"==t)return S.HTML;var n=hr(e);return"xlinkHref"==t||"FORM"==n&&"action"==t||"IMG"!=n&&("src"==t||"ngSrc"==t)?S.RESOURCE_URL:void 0}function G(e,t,n,o){var i=r(n,!0);if(i){if("multiple"===o&&"SELECT"===hr(e))throw Hr("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",V(e));t.push({priority:100,compile:function(){return{pre:function(t,n,a){var s=a.$$observers||(a.$$observers={});if(c.test(o))throw Hr("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");i=r(a[o],!0,Y(e,o)),i&&(a[o]=i(t),(s[o]||(s[o]=[])).$$inter=!0,(a.$$observers&&a.$$observers[o].$$scope||t).$watch(i,function(e,t){"class"===o&&e!=t?a.$updateClass(e,t):a.$set(o,e)}))}}}})}}function Q(e,n,r){var o,i,a=n[0],s=n.length,u=a.parentNode;if(e)for(o=0,i=e.length;i>o;o++)if(e[o]==a){e[o++]=r;for(var l=o,c=l+s-1,f=e.length;f>l;l++,c++)f>c?e[l]=e[c]:delete e[l];e.length-=s-1;break}u&&u.replaceChild(r,a);var p=t.createDocumentFragment();p.appendChild(a),r[fr.expando]=a[fr.expando];for(var d=1,h=n.length;h>d;d++){var g=n[d];fr(g).remove(),p.appendChild(g),delete n[d]}n[0]=r,n.length=1}function J(e,t){return f(function(){return e.apply(null,arguments)},e,t)}var X=function(e,t){this.$$element=e,this.$attr=t||{}};X.prototype={$normalize:Nt,$addClass:function(e){e&&e.length>0&&E.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&E.removeClass(this.$$element,e)},$updateClass:function(e,t){this.$removeClass(Rt(t,e)),this.$addClass(Rt(e,t))},$set:function(e,t,r,o){var a,s=St(this.$$element[0],e);s&&(this.$$element.prop(e,t),o=s),this[e]=t,o?this.$attr[e]=o:(o=this.$attr[e],o||(this.$attr[e]=o=Z(e,"-"))),a=hr(this.$$element),("A"===a&&"href"===e||"IMG"===a&&"src"===e)&&(this[e]=t=C(t,"src"===e)),r!==!1&&(null===t||t===n?this.$$element.removeAttr(o):this.$$element.attr(o,t));var l=this.$$observers;l&&i(l[e],function(e){try{e(t)}catch(n){u(n)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers={}),o=r[e]||(r[e]=[]);return o.push(t),w.$evalAsync(function(){o.$$inter||t(n[e])}),t}};var et=r.startSymbol(),nt=r.endSymbol(),rt="{{"==et||"}}"==nt?g:function(e){return e.replace(/\{\{/g,et).replace(/}}/g,nt)},ot=/^ngAttr[A-Z]/;return T}]}function Nt(e){return lt(e.replace(qr,""))}function Rt(e,t){var n="",r=e.split(/\s+/),o=t.split(/\s+/);e:for(var i=0;i<r.length;i++){for(var a=r[i],s=0;s<o.length;s++)if(a==o[s])continue e;n+=(n.length>0?" ":"")+a}return n}function Bt(){var e={},t=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(t,n){rt(t,"controller"),b(t)?f(e,t):e[t]=n},this.$get=["$injector","$window",function(n,o){return function(i,a){var s,u,l,c;if($(i)&&(u=i.match(t),l=u[1],c=u[3],i=e.hasOwnProperty(l)?e[l]:ot(a.$scope,l,!0)||ot(o,l,!0),nt(i,l,!0)),s=n.instantiate(i,a),c){if(!a||"object"!=typeof a.$scope)throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",l||i.name,c);a.$scope[c]=s}return s}}]}function Ut(){this.$get=["$window",function(e){return fr(e.document)}]}function Ft(){this.$get=["$log",function(e){return function(){e.error.apply(e,arguments)}}]}function Ht(e){var t,n,r,o={};return e?(i(e.split("\n"),function(e){r=e.indexOf(":"),t=ar(wr(e.substr(0,r))),n=wr(e.substr(r+1)),t&&(o[t]?o[t]+=", "+n:o[t]=n)}),o):o}function qt(e){var t=b(e)?e:n;return function(n){return t||(t=Ht(e)),n?t[ar(n)]||null:t}}function zt(e,t,n){return k(n)?n(e,t):(i(n,function(n){e=n(e,t)}),e)}function Vt(e){return e>=200&&300>e}function Wt(){var e=/^\s*(\[|\{[^\{])/,t=/[\}\]]\s*$/,r=/^\)\]\}',?\n/,o={"Content-Type":"application/json;charset=utf-8"},a=this.defaults={transformResponse:[function(n){return $(n)&&(n=n.replace(r,""),e.test(n)&&t.test(n)&&(n=q(n))),n}],transformRequest:[function(e){return b(e)&&!T(e)?H(e):e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:M(o),put:M(o),patch:M(o)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},u=this.interceptors=[],l=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(e,t,r,o,c,p){function d(e){function r(e){var t=f({},e,{data:zt(e.data,e.headers,s.transformResponse)});return Vt(e.status)?t:c.reject(t)}function o(e){function t(e){var t;i(e,function(n,r){k(n)&&(t=n(),null!=t?e[r]=t:delete e[r])})}var n,r,o,s=a.headers,u=f({},e.headers);s=f({},s.common,s[ar(e.method)]),t(s),t(u);e:for(n in s){r=ar(n);for(o in u)if(ar(o)===r)continue e;u[n]=s[n]}return u}var s={transformRequest:a.transformRequest,transformResponse:a.transformResponse},u=o(e);f(s,e),s.headers=u,s.method=sr(s.method);var l=Mn(s.url)?t.cookies()[s.xsrfCookieName||a.xsrfCookieName]:n;l&&(u[s.xsrfHeaderName||a.xsrfHeaderName]=l);var p=function(e){u=e.headers;var t=zt(e.data,qt(u),e.transformRequest);return v(e.data)&&i(u,function(e,t){"content-type"===ar(t)&&delete u[t]}),v(e.withCredentials)&&!v(a.withCredentials)&&(e.withCredentials=a.withCredentials),m(e,t,u).then(r,r)},d=[p,n],h=c.when(s);for(i(S,function(e){(e.request||e.requestError)&&d.unshift(e.request,e.requestError),(e.response||e.responseError)&&d.push(e.response,e.responseError)});d.length;){var g=d.shift(),y=d.shift();h=h.then(g,y)}return h.success=function(e){return h.then(function(t){e(t.data,t.status,t.headers,s)}),h},h.error=function(e){return h.then(null,function(t){e(t.data,t.status,t.headers,s)}),h},h}function h(){i(arguments,function(e){d[e]=function(t,n){return d(f(n||{},{method:e,url:t}))}})}function g(){i(arguments,function(e){d[e]=function(t,n,r){return d(f(r||{},{method:e,url:t,data:n}))}})}function m(t,n,r){function i(e,t,n){l&&(Vt(e)?l.put(g,[e,t,Ht(n)]):l.remove(g)),s(t,e,n),o.$$phase||o.$apply()}function s(e,n,r){n=Math.max(n,0),(Vt(n)?p.resolve:p.reject)({data:e,status:n,headers:qt(r),config:t})}function u(){var e=P(d.pendingRequests,t);-1!==e&&d.pendingRequests.splice(e,1)}var l,f,p=c.defer(),h=p.promise,g=w(t.url,t.params);if(d.pendingRequests.push(t),h.then(u,u),(t.cache||a.cache)&&t.cache!==!1&&"GET"==t.method&&(l=b(t.cache)?t.cache:b(a.cache)?a.cache:x),l)if(f=l.get(g),y(f)){if(f.then)return f.then(u,u),f;_(f)?s(f[1],f[0],M(f[2])):s(f,200,{})}else l.put(g,h);return v(f)&&e(t.method,g,n,i,r,t.timeout,t.withCredentials,t.responseType),h}function w(e,t){if(!t)return e;var n=[];return s(t,function(e,t){null===e||v(e)||(_(e)||(e=[e]),i(e,function(e){b(e)&&(e=H(e)),n.push(Q(t)+"="+Q(e))}))}),e+(-1==e.indexOf("?")?"?":"&")+n.join("&")}var x=r("$http"),S=[];return i(u,function(e){S.unshift($(e)?p.get(e):p.invoke(e))}),i(l,function(e,t){var n=$(e)?p.get(e):p.invoke(e);S.splice(t,0,{response:function(e){return n(c.when(e))},responseError:function(e){return n(c.reject(e))}})}),d.pendingRequests=[],h("get","delete","head","jsonp"),g("post","put"),d.defaults=a,d}]}function Kt(t){if(8>=cr&&(!t.match(/^(get|post|head|put|delete|options)$/i)||!e.XMLHttpRequest))return new e.ActiveXObject("Microsoft.XMLHTTP");if(e.XMLHttpRequest)return new e.XMLHttpRequest;throw r("$httpBackend")("noxhr","This browser does not support XMLHttpRequest.")}function Yt(){this.$get=["$browser","$window","$document",function(e,t,n){return Gt(e,Kt,e.defer,t.angular.callbacks,n[0])}]}function Gt(e,t,n,r,o){function a(e,t){var n=o.createElement("script"),r=function(){n.onreadystatechange=n.onload=n.onerror=null,o.body.removeChild(n),t&&t()};return n.type="text/javascript",n.src=e,cr&&8>=cr?n.onreadystatechange=function(){/loaded|complete/.test(n.readyState)&&r()}:n.onload=n.onerror=function(){r()},o.body.appendChild(n),r}var s=-1;return function(o,u,l,c,f,p,d,g){function m(){b=s,w&&w(),x&&x.abort()}function v(t,r,o,i){k&&n.cancel(k),w=x=null,r=0===r?o?200:404:r,r=1223==r?204:r,t(r,o,i),e.$$completeOutstandingRequest(h)}var b;if(e.$$incOutstandingRequestCount(),u=u||e.url(),"jsonp"==ar(o)){var $="_"+(r.counter++).toString(36);r[$]=function(e){r[$].data=e};var w=a(u.replace("JSON_CALLBACK","angular.callbacks."+$),function(){r[$].data?v(c,200,r[$].data):v(c,b||-2),r[$]=br.noop})}else{var x=t(o);if(x.open(o,u,!0),i(f,function(e,t){y(e)&&x.setRequestHeader(t,e)}),x.onreadystatechange=function(){if(x&&4==x.readyState){var e=null,t=null;b!==s&&(e=x.getAllResponseHeaders(),t="response"in x?x.response:x.responseText),v(c,b||x.status,t,e)}},d&&(x.withCredentials=!0),g)try{x.responseType=g}catch(_){if("json"!==g)throw _}x.send(l||null)}if(p>0)var k=n(m,p);else p&&p.then&&p.then(m)}}function Qt(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,o){function i(i,u,l){for(var c,f,p,d,h=0,g=[],m=i.length,y=!1,b=[];m>h;)-1!=(c=i.indexOf(e,h))&&-1!=(f=i.indexOf(t,c+a))?(h!=c&&g.push(i.substring(h,c)),g.push(p=n(d=i.substring(c+a,f))),p.exp=d,h=f+s,y=!0):(h!=m&&g.push(i.substring(h)),h=m);if((m=g.length)||(g.push(""),m=1),l&&g.length>1)throw zr("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",i);return!u||y?(b.length=m,p=function(e){try{for(var t,n=0,a=m;a>n;n++)"function"==typeof(t=g[n])&&(t=t(e),t=l?o.getTrusted(l,t):o.valueOf(t),null===t||v(t)?t="":"string"!=typeof t&&(t=H(t))),b[n]=t;return b.join("")}catch(s){var u=zr("interr","Can't interpolate: {0}\n{1}",i,s.toString());r(u)}},p.exp=i,p.parts=g,p):void 0}var a=e.length,s=t.length;return i.startSymbol=function(){return e},i.endSymbol=function(){return t},i}]}function Jt(){this.$get=["$rootScope","$window","$q",function(e,t,n){function r(r,i,a,s){var u=t.setInterval,l=t.clearInterval,c=n.defer(),f=c.promise,p=0,d=y(s)&&!s;return a=y(a)?a:0,f.then(null,null,r),f.$$intervalId=u(function(){c.notify(p++),a>0&&p>=a&&(c.resolve(p),l(f.$$intervalId),delete o[f.$$intervalId]),d||e.$apply()},i),o[f.$$intervalId]=c,f}var o={};return r.cancel=function(e){return e&&e.$$intervalId in o?(o[e.$$intervalId].reject("canceled"),clearInterval(e.$$intervalId),delete o[e.$$intervalId],!0):!1},r}]}function Xt(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(e){return 1===e?"one":"other"}}}}function Zt(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=G(t[n]);return t.join("/")}function en(e,t,n){var r=jn(e,n);t.$$protocol=r.protocol,t.$$host=r.hostname,t.$$port=p(r.port)||Wr[r.protocol]||null}function tn(e,t,n){var r="/"!==e.charAt(0);r&&(e="/"+e);var o=jn(e,n);t.$$path=decodeURIComponent(r&&"/"===o.pathname.charAt(0)?o.pathname.substring(1):o.pathname),t.$$search=K(o.search),t.$$hash=decodeURIComponent(o.hash),t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function nn(e,t){return 0===t.indexOf(e)?t.substr(e.length):void 0}function rn(e){var t=e.indexOf("#");return-1==t?e:e.substr(0,t)}function on(e){return e.substr(0,rn(e).lastIndexOf("/")+1)}function an(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function sn(e,t){this.$$html5=!0,t=t||"";var r=on(e);en(e,this,e),this.$$parse=function(t){var n=nn(r,t);if(!$(n))throw Kr("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,r);tn(n,this,e),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=Y(this.$$search),t=this.$$hash?"#"+G(this.$$hash):"";this.$$url=Zt(this.$$path)+(e?"?"+e:"")+t,this.$$absUrl=r+this.$$url.substr(1)},this.$$rewrite=function(o){var i,a;return(i=nn(e,o))!==n?(a=i,(i=nn(t,i))!==n?r+(nn("/",i)||i):e+a):(i=nn(r,o))!==n?r+i:r==o+"/"?r:void 0}}function un(e,t){var n=on(e);en(e,this,e),this.$$parse=function(r){function o(e,t,n){var r,o=/^\/?.*?:(\/.*)/;return 0===t.indexOf(n)&&(t=t.replace(n,"")),o.exec(t)?e:(r=o.exec(e),r?r[1]:e)}var i=nn(e,r)||nn(n,r),a="#"==i.charAt(0)?nn(t,i):this.$$html5?i:"";if(!$(a))throw Kr("ihshprfx",'Invalid url "{0}", missing hash prefix "{1}".',r,t);tn(a,this,e),this.$$path=o(this.$$path,a,e),this.$$compose()},this.$$compose=function(){var n=Y(this.$$search),r=this.$$hash?"#"+G(this.$$hash):"";this.$$url=Zt(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=e+(this.$$url?t+this.$$url:"")},this.$$rewrite=function(t){return rn(e)==rn(t)?t:void 0}}function ln(e,t){this.$$html5=!0,un.apply(this,arguments);var n=on(e);this.$$rewrite=function(r){var o;return e==rn(r)?r:(o=nn(n,r))?e+t+o:n===r+"/"?n:void 0}}function cn(e){return function(){return this[e]}}function fn(e,t){return function(n){return v(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function pn(){var t="",n=!1;this.hashPrefix=function(e){return y(e)?(t=e,this):t},this.html5Mode=function(e){return y(e)?(n=e,this):n},this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(r,o,i,a){function s(e){r.$broadcast("$locationChangeSuccess",u.absUrl(),e)}var u,l,c,f=o.baseHref(),p=o.url();n?(c=an(p)+(f||"/"),l=i.history?sn:ln):(c=rn(p),l=un),u=new l(c,"#"+t),u.$$parse(u.$$rewrite(p)),a.on("click",function(t){if(!t.ctrlKey&&!t.metaKey&&2!=t.which){for(var n=fr(t.target);"a"!==ar(n[0].nodeName);)if(n[0]===a[0]||!(n=n.parent())[0])return;var i=n.prop("href");b(i)&&"[object SVGAnimatedString]"===i.toString()&&(i=jn(i.animVal).href);var s=u.$$rewrite(i);i&&!n.attr("target")&&s&&!t.isDefaultPrevented()&&(t.preventDefault(),s!=o.url()&&(u.$$parse(s),r.$apply(),e.angular["ff-684208-preventDefault"]=!0))}}),u.absUrl()!=p&&o.url(u.absUrl(),!0),o.onUrlChange(function(e){u.absUrl()!=e&&(r.$evalAsync(function(){var t=u.absUrl();u.$$parse(e),r.$broadcast("$locationChangeStart",e,t).defaultPrevented?(u.$$parse(t),o.url(t)):s(t)}),r.$$phase||r.$digest())});var d=0;return r.$watch(function(){var e=o.url(),t=u.$$replace;return d&&e==u.absUrl()||(d++,r.$evalAsync(function(){r.$broadcast("$locationChangeStart",u.absUrl(),e).defaultPrevented?u.$$parse(e):(o.url(u.absUrl(),t),s(e))})),u.$$replace=!1,d}),u}]}function dn(){var e=!0,t=this;this.debugEnabled=function(t){return y(t)?(e=t,this):e},this.$get=["$window",function(n){function r(e){return e instanceof Error&&(e.stack?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function o(e){var t=n.console||{},o=t[e]||t.log||h,a=!1;try{a=!!o.apply}catch(s){}return a?function(){var e=[];return i(arguments,function(t){e.push(r(t))}),o.apply(t,e)}:function(e,t){o(e,null==t?"":t)}}return{log:o("log"),info:o("info"),warn:o("warn"),error:o("error"),debug:function(){var n=o("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function hn(e,t){if("constructor"===e)throw Gr("isecfld",'Referencing "constructor" field in Angular expressions is disallowed! Expression: {0}',t);return e}function gn(e,t){if(e){if(e.constructor===e)throw Gr("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e.document&&e.location&&e.alert&&e.setInterval)throw Gr("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(e.children&&(e.nodeName||e.on&&e.find))throw Gr("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t)}return e}function mn(e,t,r,o,i){i=i||{};for(var a,s=t.split("."),u=0;s.length>1;u++){a=hn(s.shift(),o);var l=e[a];l||(l={},e[a]=l),e=l,e.then&&i.unwrapPromises&&(Yr(o),"$$v"in e||!function(e){e.then(function(t){e.$$v=t})}(e),e.$$v===n&&(e.$$v={}),e=e.$$v)}return a=hn(s.shift(),o),e[a]=r,r}function vn(e,t,r,o,i,a,s){return hn(e,a),hn(t,a),hn(r,a),hn(o,a),hn(i,a),s.unwrapPromises?function(s,u){var l,c=u&&u.hasOwnProperty(e)?u:s;return null==c?c:(c=c[e],c&&c.then&&(Yr(a),"$$v"in c||(l=c,l.$$v=n,l.then(function(e){l.$$v=e})),c=c.$$v),t?null==c?n:(c=c[t],c&&c.then&&(Yr(a),"$$v"in c||(l=c,l.$$v=n,l.then(function(e){l.$$v=e})),c=c.$$v),r?null==c?n:(c=c[r],c&&c.then&&(Yr(a),"$$v"in c||(l=c,l.$$v=n,l.then(function(e){l.$$v=e})),c=c.$$v),o?null==c?n:(c=c[o],c&&c.then&&(Yr(a),"$$v"in c||(l=c,l.$$v=n,l.then(function(e){l.$$v=e
})),c=c.$$v),i?null==c?n:(c=c[i],c&&c.then&&(Yr(a),"$$v"in c||(l=c,l.$$v=n,l.then(function(e){l.$$v=e})),c=c.$$v),c):c):c):c):c)}:function(a,s){var u=s&&s.hasOwnProperty(e)?s:a;return null==u?u:(u=u[e],t?null==u?n:(u=u[t],r?null==u?n:(u=u[r],o?null==u?n:(u=u[o],i?null==u?n:u=u[i]:u):u):u):u)}}function yn(e,t){return hn(e,t),function(t,r){return null==t?n:(r&&r.hasOwnProperty(e)?r:t)[e]}}function bn(e,t,r){return hn(e,r),hn(t,r),function(r,o){return null==r?n:(r=(o&&o.hasOwnProperty(e)?o:r)[e],null==r?n:r[t])}}function $n(e,t,r){if(to.hasOwnProperty(e))return to[e];var o,a=e.split("."),s=a.length;if(t.unwrapPromises||1!==s)if(t.unwrapPromises||2!==s)if(t.csp)o=6>s?vn(a[0],a[1],a[2],a[3],a[4],r,t):function(e,o){var i,u=0;do i=vn(a[u++],a[u++],a[u++],a[u++],a[u++],r,t)(e,o),o=n,e=i;while(s>u);return i};else{var u="var p;\n";i(a,function(e,n){hn(e,r),u+="if(s == null) return undefined;\ns="+(n?"s":'((k&&k.hasOwnProperty("'+e+'"))?k:s)')+'["'+e+'"];\n'+(t.unwrapPromises?'if (s && s.then) {\n pw("'+r.replace(/(["\r\n])/g,"\\$1")+'");\n if (!("$$v" in s)) {\n p=s;\n p.$$v = undefined;\n p.then(function(v) {p.$$v=v;});\n}\n s=s.$$v\n}\n':"")}),u+="return s;";var l=new Function("s","k","pw",u);l.toString=m(u),o=t.unwrapPromises?function(e,t){return l(e,t,Yr)}:l}else o=bn(a[0],a[1],r);else o=yn(a[0],r);return"hasOwnProperty"!==e&&(to[e]=o),o}function wn(){var e={},t={csp:!1,unwrapPromises:!1,logPromiseWarnings:!0};this.unwrapPromises=function(e){return y(e)?(t.unwrapPromises=!!e,this):t.unwrapPromises},this.logPromiseWarnings=function(e){return y(e)?(t.logPromiseWarnings=e,this):t.logPromiseWarnings},this.$get=["$filter","$sniffer","$log",function(n,r,o){return t.csp=r.csp,Yr=function(e){t.logPromiseWarnings&&!Qr.hasOwnProperty(e)&&(Qr[e]=!0,o.warn("[$parse] Promise found in the expression `"+e+"`. Automatic unwrapping of promises in Angular expressions is deprecated."))},function(r){var o;switch(typeof r){case"string":if(e.hasOwnProperty(r))return e[r];var i=new Zr(t),a=new eo(i,n,t);return o=a.parse(r,!1),"hasOwnProperty"!==r&&(e[r]=o),o;case"function":return r;default:return h}}}]}function xn(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return _n(function(t){e.$evalAsync(t)},t)}]}function _n(e,t){function r(e){return e}function o(e){return l(e)}function a(e){var t=s(),n=0,r=_(e)?[]:{};return i(e,function(e,o){n++,u(e).then(function(e){r.hasOwnProperty(o)||(r[o]=e,--n||t.resolve(r))},function(e){r.hasOwnProperty(o)||t.reject(e)})}),0===n&&t.resolve(r),t.promise}var s=function(){var i,a,l=[];return a={resolve:function(t){if(l){var r=l;l=n,i=u(t),r.length&&e(function(){for(var e,t=0,n=r.length;n>t;t++)e=r[t],i.then(e[0],e[1],e[2])})}},reject:function(e){a.resolve(c(e))},notify:function(t){if(l){var n=l;l.length&&e(function(){for(var e,r=0,o=n.length;o>r;r++)e=n[r],e[2](t)})}},promise:{then:function(e,n,a){var u=s(),c=function(n){try{u.resolve((k(e)?e:r)(n))}catch(o){u.reject(o),t(o)}},f=function(e){try{u.resolve((k(n)?n:o)(e))}catch(r){u.reject(r),t(r)}},p=function(e){try{u.notify((k(a)?a:r)(e))}catch(n){t(n)}};return l?l.push([c,f,p]):i.then(c,f,p),u.promise},"catch":function(e){return this.then(null,e)},"finally":function(e){function t(e,t){var n=s();return t?n.resolve(e):n.reject(e),n.promise}function n(n,o){var i=null;try{i=(e||r)()}catch(a){return t(a,!1)}return i&&k(i.then)?i.then(function(){return t(n,o)},function(e){return t(e,!1)}):t(n,o)}return this.then(function(e){return n(e,!0)},function(e){return n(e,!1)})}}}},u=function(t){return t&&k(t.then)?t:{then:function(n){var r=s();return e(function(){r.resolve(n(t))}),r.promise}}},l=function(e){var t=s();return t.reject(e),t.promise},c=function(n){return{then:function(r,i){var a=s();return e(function(){try{a.resolve((k(i)?i:o)(n))}catch(e){a.reject(e),t(e)}}),a.promise}}},f=function(n,i,a,c){var f,p=s(),d=function(e){try{return(k(i)?i:r)(e)}catch(n){return t(n),l(n)}},h=function(e){try{return(k(a)?a:o)(e)}catch(n){return t(n),l(n)}},g=function(e){try{return(k(c)?c:r)(e)}catch(n){t(n)}};return e(function(){u(n).then(function(e){f||(f=!0,p.resolve(u(e).then(d,h,g)))},function(e){f||(f=!0,p.resolve(h(e)))},function(e){f||p.notify(g(e))})}),p.promise};return{defer:s,reject:l,when:f,all:a}}function kn(){var e=10,t=r("$rootScope"),n=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,a,s,u){function c(){this.$id=l(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this["this"]=this.$root=this,this.$$destroyed=!1,this.$$asyncQueue=[],this.$$postDigestQueue=[],this.$$listeners={},this.$$listenerCount={},this.$$isolateBindings={}}function f(e){if(v.$$phase)throw t("inprog","{0} already in progress",v.$$phase);v.$$phase=e}function p(){v.$$phase=null}function d(e,t){var n=s(e);return nt(n,t),n}function g(e,t,n){do e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n];while(e=e.$parent)}function m(){}c.prototype={constructor:c,$new:function(e){var t,n;return e?(n=new c,n.$root=this.$root,n.$$asyncQueue=this.$$asyncQueue,n.$$postDigestQueue=this.$$postDigestQueue):(t=function(){},t.prototype=this,n=new t,n.$id=l()),n["this"]=n,n.$$listeners={},n.$$listenerCount={},n.$parent=this,n.$$watchers=n.$$nextSibling=n.$$childHead=n.$$childTail=null,n.$$prevSibling=this.$$childTail,this.$$childHead?(this.$$childTail.$$nextSibling=n,this.$$childTail=n):this.$$childHead=this.$$childTail=n,n},$watch:function(e,t,r){var o=this,i=d(e,"watch"),a=o.$$watchers,s={fn:t,last:m,get:i,exp:e,eq:!!r};if(n=null,!k(t)){var u=d(t||h,"listener");s.fn=function(e,t,n){u(n)}}if("string"==typeof e&&i.constant){var l=s.fn;s.fn=function(e,t,n){l.call(this,e,t,n),j(a,s)}}return a||(a=o.$$watchers=[]),a.unshift(s),function(){j(a,s),n=null}},$watchCollection:function(e,t){function n(){a=c(u);var e,t;if(b(a))if(o(a)){i!==f&&(i=f,d=i.length=0,l++),e=a.length,d!==e&&(l++,i.length=d=e);for(var n=0;e>n;n++)i[n]!==a[n]&&(l++,i[n]=a[n])}else{i!==p&&(i=p={},d=0,l++),e=0;for(t in a)a.hasOwnProperty(t)&&(e++,i.hasOwnProperty(t)?i[t]!==a[t]&&(l++,i[t]=a[t]):(d++,i[t]=a[t],l++));if(d>e){l++;for(t in i)i.hasOwnProperty(t)&&!a.hasOwnProperty(t)&&(d--,delete i[t])}}else i!==a&&(i=a,l++);return l}function r(){t(a,i,u)}var i,a,u=this,l=0,c=s(e),f=[],p={},d=0;return this.$watch(n,r)},$digest:function(){var r,o,i,s,u,l,c,d,h,g,v,y=this.$$asyncQueue,b=this.$$postDigestQueue,$=e,w=this,x=[];f("$digest"),n=null;do{for(l=!1,d=w;y.length;){try{v=y.shift(),v.scope.$eval(v.expression)}catch(_){p(),a(_)}n=null}e:do{if(s=d.$$watchers)for(u=s.length;u--;)try{if(r=s[u])if((o=r.get(d))===(i=r.last)||(r.eq?L(o,i):"number"==typeof o&&"number"==typeof i&&isNaN(o)&&isNaN(i))){if(r===n){l=!1;break e}}else l=!0,n=r,r.last=r.eq?M(o):o,r.fn(o,i===m?o:i,d),5>$&&(h=4-$,x[h]||(x[h]=[]),g=k(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,g+="; newVal: "+H(o)+"; oldVal: "+H(i),x[h].push(g))}catch(_){p(),a(_)}if(!(c=d.$$childHead||d!==w&&d.$$nextSibling))for(;d!==w&&!(c=d.$$nextSibling);)d=d.$parent}while(d=c);if((l||y.length)&&!$--)throw p(),t("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,H(x))}while(l||y.length);for(p();b.length;)try{b.shift()()}catch(_){a(_)}},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this!==v&&(i(this.$$listenerCount,U(null,g,this)),e.$$childHead==this&&(e.$$childHead=this.$$nextSibling),e.$$childTail==this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null)}},$eval:function(e,t){return s(e)(this,t)},$evalAsync:function(e){v.$$phase||v.$$asyncQueue.length||u.defer(function(){v.$$asyncQueue.length&&v.$digest()}),this.$$asyncQueue.push({scope:this,expression:e})},$$postDigest:function(e){this.$$postDigestQueue.push(e)},$apply:function(e){try{return f("$apply"),this.$eval(e)}catch(t){a(t)}finally{p();try{v.$digest()}catch(t){throw a(t),t}}},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++;while(r=r.$parent);var o=this;return function(){n[P(n,t)]=null,g(o,1,e)}},$emit:function(e){var t,n,r,o=[],i=this,s=!1,u={name:e,targetScope:i,stopPropagation:function(){s=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},l=R([u],arguments,1);do{for(t=i.$$listeners[e]||o,u.currentScope=i,n=0,r=t.length;r>n;n++)if(t[n])try{t[n].apply(null,l)}catch(c){a(c)}else t.splice(n,1),n--,r--;if(s)return u;i=i.$parent}while(i);return u},$broadcast:function(e){for(var t,n,r,o=this,i=o,s=o,u={name:e,targetScope:o,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},l=R([u],arguments,1);i=s;){for(u.currentScope=i,t=i.$$listeners[e]||[],n=0,r=t.length;r>n;n++)if(t[n])try{t[n].apply(null,l)}catch(c){a(c)}else t.splice(n,1),n--,r--;if(!(s=i.$$listenerCount[e]&&i.$$childHead||i!==o&&i.$$nextSibling))for(;i!==o&&!(s=i.$$nextSibling);)i=i.$parent}return u}};var v=new c;return v}]}function Sn(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*(https?|ftp|file):|data:image\//;this.aHrefSanitizationWhitelist=function(t){return y(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return y(e)?(t=e,this):t},this.$get=function(){return function(n,r){var o,i=r?t:e;return cr&&!(cr>=8)||(o=jn(n).href,""===o||o.match(i))?n:"unsafe:"+o}}}function En(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}function Cn(e){if("self"===e)return e;if($(e)){if(e.indexOf("***")>-1)throw no("iwcard","Illegal sequence *** in string matcher.  String: {0}",e);return e=En(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+e+"$")}if(S(e))return new RegExp("^"+e.source+"$");throw no("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Tn(e){var t=[];return y(e)&&i(e,function(e){t.push(Cn(e))}),t}function An(){this.SCE_CONTEXTS=ro;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=Tn(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=Tn(e)),t},this.$get=["$injector",function(r){function o(e,t){return"self"===e?Mn(t):!!e.exec(t.href)}function i(n){var r,i,a=jn(n.toString()),s=!1;for(r=0,i=e.length;i>r;r++)if(o(e[r],a)){s=!0;break}if(s)for(r=0,i=t.length;i>r;r++)if(o(t[r],a)){s=!1;break}return s}function a(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function s(e,t){var r=p.hasOwnProperty(e)?p[e]:null;if(!r)throw no("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||t===n||""===t)return t;if("string"!=typeof t)throw no("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new r(t)}function u(e){return e instanceof f?e.$$unwrapTrustedValue():e}function l(e,t){if(null===t||t===n||""===t)return t;var r=p.hasOwnProperty(e)?p[e]:null;if(r&&t instanceof r)return t.$$unwrapTrustedValue();if(e===ro.RESOURCE_URL){if(i(t))return t;throw no("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",t.toString())}if(e===ro.HTML)return c(t);throw no("unsafe","Attempting to use an unsafe value in a safe context.")}var c=function(){throw no("unsafe","Attempting to use an unsafe value in a safe context.")};r.has("$sanitize")&&(c=r.get("$sanitize"));var f=a(),p={};return p[ro.HTML]=a(f),p[ro.CSS]=a(f),p[ro.URL]=a(f),p[ro.JS]=a(f),p[ro.RESOURCE_URL]=a(p[ro.URL]),{trustAs:s,getTrusted:l,valueOf:u}}]}function Dn(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sniffer","$sceDelegate",function(t,n,r){if(e&&n.msie&&n.msieDocumentMode<8)throw no("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 9 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");var o=M(ro);o.isEnabled=function(){return e},o.trustAs=r.trustAs,o.getTrusted=r.getTrusted,o.valueOf=r.valueOf,e||(o.trustAs=o.getTrusted=function(e,t){return t},o.valueOf=g),o.parseAs=function(e,n){var r=t(n);return r.literal&&r.constant?r:function(t,n){return o.getTrusted(e,r(t,n))}};var a=o.parseAs,s=o.getTrusted,u=o.trustAs;return i(ro,function(e,t){var n=ar(t);o[lt("parse_as_"+n)]=function(t){return a(e,t)},o[lt("get_trusted_"+n)]=function(t){return s(e,t)},o[lt("trust_as_"+n)]=function(t){return u(e,t)}}),o}]}function On(){this.$get=["$window","$document",function(e,t){var n,r,o={},i=p((/android (\d+)/.exec(ar((e.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((e.navigator||{}).userAgent),s=t[0]||{},u=s.documentMode,l=/^(Moz|webkit|O|ms)(?=[A-Z])/,c=s.body&&s.body.style,f=!1,d=!1;if(c){for(var h in c)if(r=l.exec(h)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in c&&"webkit"),f=!!("transition"in c||n+"Transition"in c),d=!!("animation"in c||n+"Animation"in c),!i||f&&d||(f=$(s.body.style.webkitTransition),d=$(s.body.style.webkitAnimation))}return{history:!(!e.history||!e.history.pushState||4>i||a),hashchange:"onhashchange"in e&&(!u||u>7),hasEvent:function(e){if("input"==e&&9==cr)return!1;if(v(o[e])){var t=s.createElement("div");o[e]="on"+e in t}return o[e]},csp:N(),vendorPrefix:n,transitions:f,animations:d,android:i,msie:cr,msieDocumentMode:u}}]}function Pn(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(e,t,n,r){function o(o,a,s){var u,l=n.defer(),c=l.promise,f=y(s)&&!s;return u=t.defer(function(){try{l.resolve(o())}catch(t){l.reject(t),r(t)}finally{delete i[c.$$timeoutId]}f||e.$apply()},a),c.$$timeoutId=u,i[u]=l,c}var i={};return o.cancel=function(e){return e&&e.$$timeoutId in i?(i[e.$$timeoutId].reject("canceled"),delete i[e.$$timeoutId],t.defer.cancel(e.$$timeoutId)):!1},o}]}function jn(e){var t=e;return cr&&(oo.setAttribute("href",t),t=oo.href),oo.setAttribute("href",t),{href:oo.href,protocol:oo.protocol?oo.protocol.replace(/:$/,""):"",host:oo.host,search:oo.search?oo.search.replace(/^\?/,""):"",hash:oo.hash?oo.hash.replace(/^#/,""):"",hostname:oo.hostname,port:oo.port,pathname:"/"===oo.pathname.charAt(0)?oo.pathname:"/"+oo.pathname}}function Mn(e){var t=$(e)?jn(e):e;return t.protocol===io.protocol&&t.host===io.host}function In(){this.$get=m(e)}function Ln(e){function t(r,o){if(b(r)){var a={};return i(r,function(e,n){a[n]=t(n,e)}),a}return e.factory(r+n,o)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",Rn),t("date",Wn),t("filter",Nn),t("json",Kn),t("limitTo",Yn),t("lowercase",co),t("number",Bn),t("orderBy",Gn),t("uppercase",fo)}function Nn(){return function(e,t,n){if(!_(e))return e;var r=typeof n,o=[];o.check=function(e){for(var t=0;t<o.length;t++)if(!o[t](e))return!1;return!0},"function"!==r&&(n="boolean"===r&&n?function(e,t){return br.equals(e,t)}:function(e,t){return t=(""+t).toLowerCase(),(""+e).toLowerCase().indexOf(t)>-1});var i=function(e,t){if("string"==typeof t&&"!"===t.charAt(0))return!i(e,t.substr(1));switch(typeof e){case"boolean":case"number":case"string":return n(e,t);case"object":switch(typeof t){case"object":return n(e,t);default:for(var r in e)if("$"!==r.charAt(0)&&i(e[r],t))return!0}return!1;case"array":for(var o=0;o<e.length;o++)if(i(e[o],t))return!0;return!1;default:return!1}};switch(typeof t){case"boolean":case"number":case"string":t={$:t};case"object":for(var a in t)!function(e){"undefined"!=typeof t[e]&&o.push(function(n){return i("$"==e?n:n&&n[e],t[e])})}(a);break;case"function":o.push(t);break;default:return e}for(var s=[],u=0;u<e.length;u++){var l=e[u];o.check(l)&&s.push(l)}return s}}function Rn(e){var t=e.NUMBER_FORMATS;return function(e,n){return v(n)&&(n=t.CURRENCY_SYM),Un(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,2).replace(/\u00A4/g,n)}}function Bn(e){var t=e.NUMBER_FORMATS;return function(e,n){return Un(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function Un(e,t,n,r,o){if(isNaN(e)||!isFinite(e))return"";var i=0>e;e=Math.abs(e);var a=e+"",s="",u=[],l=!1;if(-1!==a.indexOf("e")){var c=a.match(/([\d\.]+)e(-?)(\d+)/);c&&"-"==c[2]&&c[3]>o+1?a="0":(s=a,l=!0)}if(l)o>0&&e>-1&&1>e&&(s=e.toFixed(o));else{var f=(a.split(ao)[1]||"").length;v(o)&&(o=Math.min(Math.max(t.minFrac,f),t.maxFrac));var p=Math.pow(10,o);e=Math.round(e*p)/p;var d=(""+e).split(ao),h=d[0];d=d[1]||"";var g,m=0,y=t.lgSize,b=t.gSize;if(h.length>=y+b)for(m=h.length-y,g=0;m>g;g++)(m-g)%b===0&&0!==g&&(s+=n),s+=h.charAt(g);for(g=m;g<h.length;g++)(h.length-g)%y===0&&0!==g&&(s+=n),s+=h.charAt(g);for(;d.length<o;)d+="0";o&&"0"!==o&&(s+=r+d.substr(0,o))}return u.push(i?t.negPre:t.posPre),u.push(s),u.push(i?t.negSuf:t.posSuf),u.join("")}function Fn(e,t,n){var r="";for(0>e&&(r="-",e=-e),e=""+e;e.length<t;)e="0"+e;return n&&(e=e.substr(e.length-t)),r+e}function Hn(e,t,n,r){return n=n||0,function(o){var i=o["get"+e]();return(n>0||i>-n)&&(i+=n),0===i&&-12==n&&(i=12),Fn(i,t,r)}}function qn(e,t){return function(n,r){var o=n["get"+e](),i=sr(t?"SHORT"+e:e);return r[i][o]}}function zn(e){var t=-1*e.getTimezoneOffset(),n=t>=0?"+":"";return n+=Fn(Math[t>0?"floor":"ceil"](t/60),2)+Fn(Math.abs(t%60),2)}function Vn(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function Wn(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),o=0,i=0,a=t[8]?r.setUTCFullYear:r.setFullYear,s=t[8]?r.setUTCHours:r.setHours;t[9]&&(o=p(t[9]+t[10]),i=p(t[9]+t[11])),a.call(r,p(t[1]),p(t[2])-1,p(t[3]));var u=p(t[4]||0)-o,l=p(t[5]||0)-i,c=p(t[6]||0),f=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,u,l,c,f),r}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r){var o,a,s="",u=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,$(n)&&(n=lo.test(n)?p(n):t(n)),w(n)&&(n=new Date(n)),!x(n))return n;for(;r;)a=uo.exec(r),a?(u=R(u,a,1),r=u.pop()):(u.push(r),r=null);return i(u,function(t){o=so[t],s+=o?o(n,e.DATETIME_FORMATS):t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),s}}function Kn(){return function(e){return H(e,!0)}}function Yn(){return function(e,t){if(!_(e)&&!$(e))return e;if(t=p(t),$(e))return t?t>=0?e.slice(0,t):e.slice(t,e.length):"";var n,r,o=[];for(t>e.length?t=e.length:t<-e.length&&(t=-e.length),t>0?(n=0,r=t):(n=e.length+t,r=e.length);r>n;n++)o.push(e[n]);return o}}function Gn(e){return function(t,n,r){function o(e,t){for(var r=0;r<n.length;r++){var o=n[r](e,t);if(0!==o)return o}return 0}function i(e,t){return z(t)?function(t,n){return e(n,t)}:e}function a(e,t){var n=typeof e,r=typeof t;return n==r?("string"==n&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t?0:t>e?-1:1):r>n?-1:1}if(!_(t))return t;if(!n)return t;n=_(n)?n:[n],n=D(n,function(t){var n=!1,r=t||g;return $(t)&&(("+"==t.charAt(0)||"-"==t.charAt(0))&&(n="-"==t.charAt(0),t=t.substring(1)),r=e(t)),i(function(e,t){return a(r(e),r(t))},n)});for(var s=[],u=0;u<t.length;u++)s.push(t[u]);return s.sort(i(o,r))}}function Qn(e){return k(e)&&(e={link:e}),e.restrict=e.restrict||"AC",m(e)}function Jn(e,t){function n(t,n){n=n?"-"+Z(n,"-"):"",e.removeClass((t?So:ko)+n).addClass((t?ko:So)+n)}var r=this,o=e.parent().controller("form")||go,a=0,s=r.$error={},u=[];r.$name=t.name||t.ngForm,r.$dirty=!1,r.$pristine=!0,r.$valid=!0,r.$invalid=!1,o.$addControl(r),e.addClass(Eo),n(!0),r.$addControl=function(e){rt(e.$name,"input"),u.push(e),e.$name&&(r[e.$name]=e)},r.$removeControl=function(e){e.$name&&r[e.$name]===e&&delete r[e.$name],i(s,function(t,n){r.$setValidity(n,!0,e)}),j(u,e)},r.$setValidity=function(e,t,i){var u=s[e];if(t)u&&(j(u,i),u.length||(a--,a||(n(t),r.$valid=!0,r.$invalid=!1),s[e]=!1,n(!0,e),o.$setValidity(e,!0,r)));else{if(a||n(t),u){if(O(u,i))return}else s[e]=u=[],a++,n(!1,e),o.$setValidity(e,!1,r);u.push(i),r.$valid=!1,r.$invalid=!0}},r.$setDirty=function(){e.removeClass(Eo).addClass(Co),r.$dirty=!0,r.$pristine=!1,o.$setDirty()},r.$setPristine=function(){e.removeClass(Co).addClass(Eo),r.$dirty=!1,r.$pristine=!0,i(u,function(e){e.$setPristine()})}}function Xn(e,t,r,o){return e.$setValidity(t,r),r?o:n}function Zn(e,t,n,o,i,a){if(!i.android){var s=!1;t.on("compositionstart",function(){s=!0}),t.on("compositionend",function(){s=!1})}var u=function(){if(!s){var r=t.val();z(n.ngTrim||"T")&&(r=wr(r)),o.$viewValue!==r&&(e.$$phase?o.$setViewValue(r):e.$apply(function(){o.$setViewValue(r)}))}};if(i.hasEvent("input"))t.on("input",u);else{var l,c=function(){l||(l=a.defer(function(){u(),l=null}))};t.on("keydown",function(e){var t=e.keyCode;91===t||t>15&&19>t||t>=37&&40>=t||c()}),i.hasEvent("paste")&&t.on("paste cut",c)}t.on("change",u),o.$render=function(){t.val(o.$isEmpty(o.$viewValue)?"":o.$viewValue)};var f,d,h=n.ngPattern;if(h){var g=function(e,t){return Xn(o,"pattern",o.$isEmpty(t)||e.test(t),t)};d=h.match(/^\/(.*)\/([gim]*)$/),d?(h=new RegExp(d[1],d[2]),f=function(e){return g(h,e)}):f=function(n){var o=e.$eval(h);if(!o||!o.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",h,o,V(t));return g(o,n)},o.$formatters.push(f),o.$parsers.push(f)}if(n.ngMinlength){var m=p(n.ngMinlength),v=function(e){return Xn(o,"minlength",o.$isEmpty(e)||e.length>=m,e)};o.$parsers.push(v),o.$formatters.push(v)}if(n.ngMaxlength){var y=p(n.ngMaxlength),b=function(e){return Xn(o,"maxlength",o.$isEmpty(e)||e.length<=y,e)};o.$parsers.push(b),o.$formatters.push(b)}}function er(e,t,r,o,i,a){if(Zn(e,t,r,o,i,a),o.$parsers.push(function(e){var t=o.$isEmpty(e);return t||wo.test(e)?(o.$setValidity("number",!0),""===e?null:t?e:parseFloat(e)):(o.$setValidity("number",!1),n)}),o.$formatters.push(function(e){return o.$isEmpty(e)?"":""+e}),r.min){var s=function(e){var t=parseFloat(r.min);return Xn(o,"min",o.$isEmpty(e)||e>=t,e)};o.$parsers.push(s),o.$formatters.push(s)}if(r.max){var u=function(e){var t=parseFloat(r.max);return Xn(o,"max",o.$isEmpty(e)||t>=e,e)};o.$parsers.push(u),o.$formatters.push(u)}o.$formatters.push(function(e){return Xn(o,"number",o.$isEmpty(e)||w(e),e)})}function tr(e,t,n,r,o,i){Zn(e,t,n,r,o,i);var a=function(e){return Xn(r,"url",r.$isEmpty(e)||bo.test(e),e)};r.$formatters.push(a),r.$parsers.push(a)}function nr(e,t,n,r,o,i){Zn(e,t,n,r,o,i);var a=function(e){return Xn(r,"email",r.$isEmpty(e)||$o.test(e),e)};r.$formatters.push(a),r.$parsers.push(a)}function rr(e,t,n,r){v(n.name)&&t.attr("name",l()),t.on("click",function(){t[0].checked&&e.$apply(function(){r.$setViewValue(n.value)})}),r.$render=function(){var e=n.value;t[0].checked=e==r.$viewValue},n.$observe("value",r.$render)}function or(e,t,n,r){var o=n.ngTrueValue,i=n.ngFalseValue;$(o)||(o=!0),$(i)||(i=!1),t.on("click",function(){e.$apply(function(){r.$setViewValue(t[0].checked)})}),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return e!==o},r.$formatters.push(function(e){return e===o}),r.$parsers.push(function(e){return e?o:i})}function ir(e,t){return e="ngClass"+e,function(){return{restrict:"AC",link:function(n,r,o){function a(e){if(t===!0||n.$index%2===t){var r=s(e||"");u?L(e,u)||o.$updateClass(r,s(u)):o.$addClass(r)}u=M(e)}function s(e){if(_(e))return e.join(" ");if(b(e)){var t=[];return i(e,function(e,n){e&&t.push(n)}),t.join(" ")}return e}var u;n.$watch(o[e],a,!0),o.$observe("class",function(){a(n.$eval(o[e]))}),"ngClass"!==e&&n.$watch("$index",function(r,i){var a=1&r;if(a!==i&1){var u=s(n.$eval(o[e]));a===t?o.$addClass(u):o.$removeClass(u)}})}}}}var ar=function(e){return $(e)?e.toLowerCase():e},sr=function(e){return $(e)?e.toUpperCase():e},ur=function(e){return $(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},lr=function(e){return $(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e};"i"!=="I".toLowerCase()&&(ar=ur,sr=lr);var cr,fr,pr,dr,hr,gr=[].slice,mr=[].push,vr=Object.prototype.toString,yr=r("ng"),br=(e.angular,e.angular||(e.angular={})),$r=["0","0","0"];cr=p((/msie (\d+)/.exec(ar(navigator.userAgent))||[])[1]),isNaN(cr)&&(cr=p((/trident\/.*; rv:(\d+)/.exec(ar(navigator.userAgent))||[])[1])),h.$inject=[],g.$inject=[];var wr=function(){return String.prototype.trim?function(e){return $(e)?e.trim():e}:function(e){return $(e)?e.replace(/^\s\s*/,"").replace(/\s\s*$/,""):e}}();hr=9>cr?function(e){return e=e.nodeName?e:e[0],e.scopeName&&"HTML"!=e.scopeName?sr(e.scopeName+":"+e.nodeName):e.nodeName}:function(e){return e.nodeName?e.nodeName:e[0].nodeName};var xr=/[A-Z]/g,_r={full:"1.2.12",major:1,minor:2,dot:12,codeName:"cauliflower-eradication"},kr=ft.cache={},Sr=ft.expando="ng-"+(new Date).getTime(),Er=1,Cr=e.document.addEventListener?function(e,t,n){e.addEventListener(t,n,!1)}:function(e,t,n){e.attachEvent("on"+t,n)},Tr=e.document.removeEventListener?function(e,t,n){e.removeEventListener(t,n,!1)}:function(e,t,n){e.detachEvent("on"+t,n)},Ar=/([\:\-\_]+(.))/g,Dr=/^moz([A-Z])/,Or=r("jqLite"),Pr=ft.prototype={ready:function(n){function r(){o||(o=!0,n())}var o=!1;"complete"===t.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),ft(e).on("load",r))},toString:function(){var e=[];return i(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return fr(e>=0?this[e]:this[this.length+e])},length:0,push:mr,sort:[].sort,splice:[].splice},jr={};i("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){jr[ar(e)]=e});var Mr={};i("input,select,option,textarea,button,form,details".split(","),function(e){Mr[sr(e)]=!0}),i({data:vt,inheritedData:_t,scope:function(e){return fr(e).data("$scope")||_t(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return fr(e).data("$isolateScope")||fr(e).data("$isolateScopeNoTemplate")},controller:xt,injector:function(e){return _t(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:yt,css:function(e,t,r){if(t=lt(t),!y(r)){var o;return 8>=cr&&(o=e.currentStyle&&e.currentStyle[t],""===o&&(o="auto")),o=o||e.style[t],8>=cr&&(o=""===o?n:o),o}e.style[t]=r},attr:function(e,t,r){var o=ar(t);if(jr[o]){if(!y(r))return e[t]||(e.attributes.getNamedItem(t)||h).specified?o:n;r?(e[t]=!0,e.setAttribute(t,o)):(e[t]=!1,e.removeAttribute(o))}else if(y(r))e.setAttribute(t,r);else if(e.getAttribute){var i=e.getAttribute(t,2);return null===i?n:i}},prop:function(e,t,n){return y(n)?void(e[t]=n):e[t]},text:function(){function e(e,n){var r=t[e.nodeType];return v(n)?r?e[r]:"":void(e[r]=n)}var t=[];return 9>cr?(t[1]="innerText",t[3]="nodeValue"):t[1]=t[3]="textContent",e.$dv="",e}(),val:function(e,t){if(v(t)){if("SELECT"===hr(e)&&e.multiple){var n=[];return i(e.options,function(e){e.selected&&n.push(e.value||e.text)}),0===n.length?null:n}return e.value}e.value=t},html:function(e,t){if(v(t))return e.innerHTML;for(var n=0,r=e.childNodes;n<r.length;n++)dt(r[n]);e.innerHTML=t},empty:kt},function(e,t){ft.prototype[t]=function(t,r){var o,i;if(e!==kt&&(2==e.length&&e!==yt&&e!==xt?t:r)===n){if(b(t)){for(o=0;o<this.length;o++)if(e===vt)e(this[o],t);else for(i in t)e(this[o],i,t[i]);return this}for(var a=e.$dv,s=a===n?Math.min(this.length,1):this.length,u=0;s>u;u++){var l=e(this[u],t,r);a=a?a+l:l}return a}for(o=0;o<this.length;o++)e(this[o],t,r);return this}}),i({removeData:gt,dealoc:dt,on:function ci(e,n,r,o){if(y(o))throw Or("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");var a=mt(e,"events"),s=mt(e,"handle");a||mt(e,"events",a={}),s||mt(e,"handle",s=Et(e,a)),i(n.split(" "),function(n){var o=a[n];if(!o){if("mouseenter"==n||"mouseleave"==n){var i=t.body.contains||t.body.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1};a[n]=[];var u={mouseleave:"mouseout",mouseenter:"mouseover"};ci(e,u[n],function(e){var t=this,r=e.relatedTarget;(!r||r!==t&&!i(t,r))&&s(e,n)})}else Cr(e,n,s),a[n]=[];o=a[n]}o.push(r)})},off:ht,one:function(e,t,n){e=fr(e),e.on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;dt(e),i(new ft(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return i(e.childNodes,function(e){1===e.nodeType&&t.push(e)}),t},contents:function(e){return e.childNodes||[]},append:function(e,t){i(new ft(t),function(t){(1===e.nodeType||11===e.nodeType)&&e.appendChild(t)})},prepend:function(e,t){if(1===e.nodeType){var n=e.firstChild;i(new ft(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){t=fr(t)[0];var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)},remove:function(e){dt(e);var t=e.parentNode;t&&t.removeChild(e)},after:function(e,t){var n=e,r=e.parentNode;i(new ft(t),function(e){r.insertBefore(e,n.nextSibling),n=e})},addClass:$t,removeClass:bt,toggleClass:function(e,t,n){v(n)&&(n=!yt(e,t)),(n?$t:bt)(e,t)},parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},next:function(e){if(e.nextElementSibling)return e.nextElementSibling;for(var t=e.nextSibling;null!=t&&1!==t.nodeType;)t=t.nextSibling;return t},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:pt,triggerHandler:function(e,t,n){var r=(mt(e,"events")||{})[t];n=n||[];var o=[{preventDefault:h,stopPropagation:h}];i(r,function(t){t.apply(e,o.concat(n))})}},function(e,t){ft.prototype[t]=function(t,n,r){for(var o,i=0;i<this.length;i++)v(o)?(o=e(this[i],t,n,r),y(o)&&(o=fr(o))):wt(o,e(this[i],t,n,r));return y(o)?o:this},ft.prototype.bind=ft.prototype.on,ft.prototype.unbind=ft.prototype.off}),Tt.prototype={put:function(e,t){this[Ct(e)]=t},get:function(e){return this[Ct(e)]},remove:function(e){var t=this[e=Ct(e)];return delete this[e],t}};var Ir=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,Lr=/,/,Nr=/^\s*(_?)(\S+?)\1\s*$/,Rr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Br=r("$injector"),Ur=r("$animate"),Fr=["$provide",function(e){this.$$selectors={},this.register=function(t,n){var r=t+"-animation";if(t&&"."!=t.charAt(0))throw Ur("notcsel","Expecting class selector starting with '.' got '{0}'.",t);this.$$selectors[t.substr(1)]=r,e.factory(r,n)},this.classNameFilter=function(e){return 1===arguments.length&&(this.$$classNameFilter=e instanceof RegExp?e:null),this.$$classNameFilter},this.$get=["$timeout",function(e){return{enter:function(t,n,r,o){r?r.after(t):(n&&n[0]||(n=r.parent()),n.append(t)),o&&e(o,0,!1)},leave:function(t,n){t.remove(),n&&e(n,0,!1)},move:function(e,t,n,r){this.enter(e,t,n,r)},addClass:function(t,n,r){n=$(n)?n:_(n)?n.join(" "):"",i(t,function(e){$t(e,n)}),r&&e(r,0,!1)},removeClass:function(t,n,r){n=$(n)?n:_(n)?n.join(" "):"",i(t,function(e){bt(e,n)}),r&&e(r,0,!1)},enabled:h}}]}],Hr=r("$compile");Lt.$inject=["$provide","$$sanitizeUriProvider"];var qr=/^(x[\:\-_]|data[\:\-_])/i,zr=r("$interpolate"),Vr=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,Wr={http:80,https:443,ftp:21},Kr=r("$location");ln.prototype=un.prototype=sn.prototype={$$html5:!1,$$replace:!1,absUrl:cn("$$absUrl"),url:function(e,t){if(v(e))return this.$$url;var n=Vr.exec(e);return n[1]&&this.path(decodeURIComponent(n[1])),(n[2]||n[1])&&this.search(n[3]||""),this.hash(n[5]||"",t),this},protocol:cn("$$protocol"),host:cn("$$host"),port:cn("$$port"),path:fn("$$path",function(e){return"/"==e.charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if($(e))this.$$search=K(e);else{if(!b(e))throw Kr("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");this.$$search=e}break;default:v(t)||null===t?delete this.$$search[e]:this.$$search[e]=t
}return this.$$compose(),this},hash:fn("$$hash",g),replace:function(){return this.$$replace=!0,this}};var Yr,Gr=r("$parse"),Qr={},Jr={"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:h,"+":function(e,t,r,o){return r=r(e,t),o=o(e,t),y(r)?y(o)?r+o:r:y(o)?o:n},"-":function(e,t,n,r){return n=n(e,t),r=r(e,t),(y(n)?n:0)-(y(r)?r:0)},"*":function(e,t,n,r){return n(e,t)*r(e,t)},"/":function(e,t,n,r){return n(e,t)/r(e,t)},"%":function(e,t,n,r){return n(e,t)%r(e,t)},"^":function(e,t,n,r){return n(e,t)^r(e,t)},"=":h,"===":function(e,t,n,r){return n(e,t)===r(e,t)},"!==":function(e,t,n,r){return n(e,t)!==r(e,t)},"==":function(e,t,n,r){return n(e,t)==r(e,t)},"!=":function(e,t,n,r){return n(e,t)!=r(e,t)},"<":function(e,t,n,r){return n(e,t)<r(e,t)},">":function(e,t,n,r){return n(e,t)>r(e,t)},"<=":function(e,t,n,r){return n(e,t)<=r(e,t)},">=":function(e,t,n,r){return n(e,t)>=r(e,t)},"&&":function(e,t,n,r){return n(e,t)&&r(e,t)},"||":function(e,t,n,r){return n(e,t)||r(e,t)},"&":function(e,t,n,r){return n(e,t)&r(e,t)},"|":function(e,t,n,r){return r(e,t)(e,t,n(e,t))},"!":function(e,t,n){return!n(e,t)}},Xr={n:"\n",f:"\f",r:"\r",t:"	",v:"","'":"'",'"':'"'},Zr=function(e){this.options=e};Zr.prototype={constructor:Zr,lex:function(e){this.text=e,this.index=0,this.ch=n,this.lastCh=":",this.tokens=[];for(var t,r=[];this.index<this.text.length;){if(this.ch=this.text.charAt(this.index),this.is("\"'"))this.readString(this.ch);else if(this.isNumber(this.ch)||this.is(".")&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(this.ch))this.readIdent(),this.was("{,")&&"{"===r[0]&&(t=this.tokens[this.tokens.length-1])&&(t.json=-1===t.text.indexOf("."));else if(this.is("(){}[].,;:?"))this.tokens.push({index:this.index,text:this.ch,json:this.was(":[,")&&this.is("{[")||this.is("}]:,")}),this.is("{[")&&r.unshift(this.ch),this.is("}]")&&r.shift(),this.index++;else{if(this.isWhitespace(this.ch)){this.index++;continue}var o=this.ch+this.peek(),i=o+this.peek(2),a=Jr[this.ch],s=Jr[o],u=Jr[i];u?(this.tokens.push({index:this.index,text:i,fn:u}),this.index+=3):s?(this.tokens.push({index:this.index,text:o,fn:s}),this.index+=2):a?(this.tokens.push({index:this.index,text:this.ch,fn:a,json:this.was("[,:")&&this.is("+-")}),this.index+=1):this.throwError("Unexpected next character ",this.index,this.index+1)}this.lastCh=this.ch}return this.tokens},is:function(e){return-1!==e.indexOf(this.ch)},was:function(e){return-1!==e.indexOf(this.lastCh)},peek:function(e){var t=e||1;return this.index+t<this.text.length?this.text.charAt(this.index+t):!1},isNumber:function(e){return e>="0"&&"9">=e},isWhitespace:function(e){return" "===e||"\r"===e||"	"===e||"\n"===e||""===e||" "===e},isIdent:function(e){return e>="a"&&"z">=e||e>="A"&&"Z">=e||"_"===e||"$"===e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=y(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw Gr("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=ar(this.text.charAt(this.index));if("."==n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}e=1*e,this.tokens.push({index:t,text:e,json:!0,fn:function(){return e}})},readIdent:function(){for(var e,t,n,r,o=this,i="",a=this.index;this.index<this.text.length&&(r=this.text.charAt(this.index),"."===r||this.isIdent(r)||this.isNumber(r));)"."===r&&(e=this.index),i+=r,this.index++;if(e)for(t=this.index;t<this.text.length;){if(r=this.text.charAt(t),"("===r){n=i.substr(e-a+1),i=i.substr(0,e-a),this.index=t;break}if(!this.isWhitespace(r))break;t++}var s={index:a,text:i};if(Jr.hasOwnProperty(i))s.fn=Jr[i],s.json=Jr[i];else{var u=$n(i,this.options,this.text);s.fn=f(function(e,t){return u(e,t)},{assign:function(e,t){return mn(e,i,t,o.text,o.options)}})}this.tokens.push(s),n&&(this.tokens.push({index:e,text:".",json:!1}),this.tokens.push({index:e+1,text:n,json:!1}))},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,o=!1;this.index<this.text.length;){var i=this.text.charAt(this.index);if(r+=i,o){if("u"===i){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{var s=Xr[i];n+=s?s:i}o=!1}else if("\\"===i)o=!0;else{if(i===e)return this.index++,void this.tokens.push({index:t,text:r,string:n,json:!0,fn:function(){return n}});n+=i}this.index++}this.throwError("Unterminated quote",t)}};var eo=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n};eo.ZERO=function(){return 0},eo.prototype={constructor:eo,parse:function(e,t){this.text=e,this.json=t,this.tokens=this.lexer.lex(e),t&&(this.assignment=this.logicalOR,this.functionCall=this.fieldAccess=this.objectIndex=this.filterChain=function(){this.throwError("is not valid json",{text:e,index:0})});var n=t?this.primary():this.statements();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),n.literal=!!n.literal,n.constant=!!n.constant,n},primary:function(){var e;if(this.expect("("))e=this.filterChain(),this.consume(")");else if(this.expect("["))e=this.arrayDeclaration();else if(this.expect("{"))e=this.object();else{var t=this.expect();e=t.fn,e||this.throwError("not a primary expression",t),t.json&&(e.constant=!0,e.literal=!0)}for(var n,r;n=this.expect("(","[",".");)"("===n.text?(e=this.functionCall(e,r),r=null):"["===n.text?(r=e,e=this.objectIndex(e)):"."===n.text?(r=e,e=this.fieldAccess(e)):this.throwError("IMPOSSIBLE");return e},throwError:function(e,t){throw Gr("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},peekToken:function(){if(0===this.tokens.length)throw Gr("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){if(this.tokens.length>0){var o=this.tokens[0],i=o.text;if(i===e||i===t||i===n||i===r||!e&&!t&&!n&&!r)return o}return!1},expect:function(e,t,n,r){var o=this.peek(e,t,n,r);return o?(this.json&&!o.json&&this.throwError("is not valid json",o),this.tokens.shift(),o):!1},consume:function(e){this.expect(e)||this.throwError("is unexpected, expecting ["+e+"]",this.peek())},unaryFn:function(e,t){return f(function(n,r){return e(n,r,t)},{constant:t.constant})},ternaryFn:function(e,t,n){return f(function(r,o){return e(r,o)?t(r,o):n(r,o)},{constant:e.constant&&t.constant&&n.constant})},binaryFn:function(e,t,n){return f(function(r,o){return t(r,o,e,n)},{constant:e.constant&&n.constant})},statements:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.filterChain()),!this.expect(";"))return 1===e.length?e[0]:function(t,n){for(var r,o=0;o<e.length;o++){var i=e[o];i&&(r=i(t,n))}return r}},filterChain:function(){for(var e,t=this.expression();;){if(!(e=this.expect("|")))return t;t=this.binaryFn(t,e.fn,this.filter())}},filter:function(){for(var e=this.expect(),t=this.$filter(e.text),n=[];;){if(!(e=this.expect(":"))){var r=function(e,r,o){for(var i=[o],a=0;a<n.length;a++)i.push(n[a](e,r));return t.apply(e,i)};return function(){return r}}n.push(this.expression())}},expression:function(){return this.assignment()},assignment:function(){var e,t,n=this.ternary();return(t=this.expect("="))?(n.assign||this.throwError("implies assignment but ["+this.text.substring(0,t.index)+"] can not be assigned to",t),e=this.ternary(),function(t,r){return n.assign(t,e(t,r),r)}):n},ternary:function(){var e,t,n=this.logicalOR();return(t=this.expect("?"))?(e=this.ternary(),(t=this.expect(":"))?this.ternaryFn(n,e,this.ternary()):void this.throwError("expected :",t)):n},logicalOR:function(){for(var e,t=this.logicalAND();;){if(!(e=this.expect("||")))return t;t=this.binaryFn(t,e.fn,this.logicalAND())}},logicalAND:function(){var e,t=this.equality();return(e=this.expect("&&"))&&(t=this.binaryFn(t,e.fn,this.logicalAND())),t},equality:function(){var e,t=this.relational();return(e=this.expect("==","!=","===","!=="))&&(t=this.binaryFn(t,e.fn,this.equality())),t},relational:function(){var e,t=this.additive();return(e=this.expect("<",">","<=",">="))&&(t=this.binaryFn(t,e.fn,this.relational())),t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t=this.binaryFn(t,e.fn,this.multiplicative());return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t=this.binaryFn(t,e.fn,this.unary());return t},unary:function(){var e;return this.expect("+")?this.primary():(e=this.expect("-"))?this.binaryFn(eo.ZERO,e.fn,this.unary()):(e=this.expect("!"))?this.unaryFn(e.fn,this.unary()):this.primary()},fieldAccess:function(e){var t=this,n=this.expect().text,r=$n(n,this.options,this.text);return f(function(t,n,o){return r(o||e(t,n))},{assign:function(r,o,i){return mn(e(r,i),n,o,t.text,t.options)}})},objectIndex:function(e){var t=this,r=this.expression();return this.consume("]"),f(function(o,i){var a,s,u=e(o,i),l=r(o,i);return u?(a=gn(u[l],t.text),a&&a.then&&t.options.unwrapPromises&&(s=a,"$$v"in a||(s.$$v=n,s.then(function(e){s.$$v=e})),a=a.$$v),a):n},{assign:function(n,o,i){var a=r(n,i),s=gn(e(n,i),t.text);return s[a]=o}})},functionCall:function(e,t){var n=[];if(")"!==this.peekToken().text)do n.push(this.expression());while(this.expect(","));this.consume(")");var r=this;return function(o,i){for(var a=[],s=t?t(o,i):o,u=0;u<n.length;u++)a.push(n[u](o,i));var l=e(o,i,s)||h;gn(s,r.text),gn(l,r.text);var c=l.apply?l.apply(s,a):l(a[0],a[1],a[2],a[3],a[4]);return gn(c,r.text)}},arrayDeclaration:function(){var e=[],t=!0;if("]"!==this.peekToken().text)do{var n=this.expression();e.push(n),n.constant||(t=!1)}while(this.expect(","));return this.consume("]"),f(function(t,n){for(var r=[],o=0;o<e.length;o++)r.push(e[o](t,n));return r},{literal:!0,constant:t})},object:function(){var e=[],t=!0;if("}"!==this.peekToken().text)do{var n=this.expect(),r=n.string||n.text;this.consume(":");var o=this.expression();e.push({key:r,value:o}),o.constant||(t=!1)}while(this.expect(","));return this.consume("}"),f(function(t,n){for(var r={},o=0;o<e.length;o++){var i=e[o];r[i.key]=i.value(t,n)}return r},{literal:!0,constant:t})}};var to={},no=r("$sce"),ro={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},oo=t.createElement("a"),io=jn(e.location.href,!0);Ln.$inject=["$provide"],Rn.$inject=["$locale"],Bn.$inject=["$locale"];var ao=".",so={yyyy:Hn("FullYear",4),yy:Hn("FullYear",2,0,!0),y:Hn("FullYear",1),MMMM:qn("Month"),MMM:qn("Month",!0),MM:Hn("Month",2,1),M:Hn("Month",1,1),dd:Hn("Date",2),d:Hn("Date",1),HH:Hn("Hours",2),H:Hn("Hours",1),hh:Hn("Hours",2,-12),h:Hn("Hours",1,-12),mm:Hn("Minutes",2),m:Hn("Minutes",1),ss:Hn("Seconds",2),s:Hn("Seconds",1),sss:Hn("Milliseconds",3),EEEE:qn("Day"),EEE:qn("Day",!0),a:Vn,Z:zn},uo=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,lo=/^\-?\d+$/;Wn.$inject=["$locale"];var co=m(ar),fo=m(sr);Gn.$inject=["$parse"];var po=m({restrict:"E",compile:function(e,n){return 8>=cr&&(n.href||n.name||n.$set("href",""),e.append(t.createComment("IE fix"))),n.href||n.xlinkHref||n.name?void 0:function(e,t){var n="[object SVGAnimatedString]"===vr.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}),ho={};i(jr,function(e,t){if("multiple"!=e){var n=Nt("ng-"+t);ho[n]=function(){return{priority:100,link:function(e,r,o){e.$watch(o[n],function(e){o.$set(t,!!e)})}}}}}),i(["src","srcset","href"],function(e){var t=Nt("ng-"+e);ho[t]=function(){return{priority:99,link:function(n,r,o){o.$observe(t,function(t){t&&(o.$set(e,t),cr&&r.prop(e,o[e]))})}}}});var go={$addControl:h,$removeControl:h,$setValidity:h,$setDirty:h,$setPristine:h};Jn.$inject=["$element","$attrs","$scope"];var mo=function(e){return["$timeout",function(t){var r={name:"form",restrict:e?"EAC":"E",controller:Jn,compile:function(){return{pre:function(e,r,o,i){if(!o.action){var a=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1};Cr(r[0],"submit",a),r.on("$destroy",function(){t(function(){Tr(r[0],"submit",a)},0,!1)})}var s=r.parent().controller("form"),u=o.name||o.ngForm;u&&mn(e,u,i,u),s&&r.on("$destroy",function(){s.$removeControl(i),u&&mn(e,u,n,u),f(i,go)})}}}};return r}]},vo=mo(),yo=mo(!0),bo=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,$o=/^[a-z0-9!#$%&'*+/=?^_`{|}~.-]+@[a-z0-9-]+(\.[a-z0-9-]+)*$/i,wo=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,xo={text:Zn,number:er,url:tr,email:nr,radio:rr,checkbox:or,hidden:h,button:h,submit:h,reset:h},_o=["$browser","$sniffer",function(e,t){return{restrict:"E",require:"?ngModel",link:function(n,r,o,i){i&&(xo[ar(o.type)]||xo.text)(n,r,o,i,t,e)}}}],ko="ng-valid",So="ng-invalid",Eo="ng-pristine",Co="ng-dirty",To=["$scope","$exceptionHandler","$attrs","$element","$parse",function(e,t,n,o,a){function s(e,t){t=t?"-"+Z(t,"-"):"",o.removeClass((e?So:ko)+t).addClass((e?ko:So)+t)}this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$name=n.name;var u=a(n.ngModel),l=u.assign;if(!l)throw r("ngModel")("nonassign","Expression '{0}' is non-assignable. Element: {1}",n.ngModel,V(o));this.$render=h,this.$isEmpty=function(e){return v(e)||""===e||null===e||e!==e};var c=o.inheritedData("$formController")||go,f=0,p=this.$error={};o.addClass(Eo),s(!0),this.$setValidity=function(e,t){p[e]!==!t&&(t?(p[e]&&f--,f||(s(!0),this.$valid=!0,this.$invalid=!1)):(s(!1),this.$invalid=!0,this.$valid=!1,f++),p[e]=!t,s(t,e),c.$setValidity(e,t,this))},this.$setPristine=function(){this.$dirty=!1,this.$pristine=!0,o.removeClass(Co).addClass(Eo)},this.$setViewValue=function(n){this.$viewValue=n,this.$pristine&&(this.$dirty=!0,this.$pristine=!1,o.removeClass(Eo).addClass(Co),c.$setDirty()),i(this.$parsers,function(e){n=e(n)}),this.$modelValue!==n&&(this.$modelValue=n,l(e,n),i(this.$viewChangeListeners,function(e){try{e()}catch(n){t(n)}}))};var d=this;e.$watch(function(){var t=u(e);if(d.$modelValue!==t){var n=d.$formatters,r=n.length;for(d.$modelValue=t;r--;)t=n[r](t);d.$viewValue!==t&&(d.$viewValue=t,d.$render())}return t})}],Ao=function(){return{require:["ngModel","^?form"],controller:To,link:function(e,t,n,r){var o=r[0],i=r[1]||go;i.$addControl(o),e.$on("$destroy",function(){i.$removeControl(o)})}}},Do=m({require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),Oo=function(){return{require:"?ngModel",link:function(e,t,n,r){if(r){n.required=!0;var o=function(e){return n.required&&r.$isEmpty(e)?void r.$setValidity("required",!1):(r.$setValidity("required",!0),e)};r.$formatters.push(o),r.$parsers.unshift(o),n.$observe("required",function(){o(r.$viewValue)})}}}},Po=function(){return{require:"ngModel",link:function(e,t,r,o){var a=/\/(.*)\//.exec(r.ngList),s=a&&new RegExp(a[1])||r.ngList||",",u=function(e){if(!v(e)){var t=[];return e&&i(e.split(s),function(e){e&&t.push(wr(e))}),t}};o.$parsers.push(u),o.$formatters.push(function(e){return _(e)?e.join(", "):n}),o.$isEmpty=function(e){return!e||!e.length}}}},jo=/^(true|false|\d+)$/,Mo=function(){return{priority:100,compile:function(e,t){return jo.test(t.ngValue)?function(e,t,n){n.$set("value",e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,function(e){n.$set("value",e)})}}}},Io=Qn(function(e,t,r){t.addClass("ng-binding").data("$binding",r.ngBind),e.$watch(r.ngBind,function(e){t.text(e==n?"":e)})}),Lo=["$interpolate",function(e){return function(t,n,r){var o=e(n.attr(r.$attr.ngBindTemplate));n.addClass("ng-binding").data("$binding",o),r.$observe("ngBindTemplate",function(e){n.text(e)})}}],No=["$sce","$parse",function(e,t){return function(n,r,o){function i(){return(a(n)||"").toString()}r.addClass("ng-binding").data("$binding",o.ngBindHtml);var a=t(o.ngBindHtml);n.$watch(i,function(){r.html(e.getTrustedHtml(a(n))||"")})}}],Ro=ir("",!0),Bo=ir("Odd",0),Uo=ir("Even",1),Fo=Qn({compile:function(e,t){t.$set("ngCloak",n),e.removeClass("ng-cloak")}}),Ho=[function(){return{scope:!0,controller:"@",priority:500}}],qo={};i("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=Nt("ng-"+e);qo[t]=["$parse",function(n){return{compile:function(r,o){var i=n(o[t]);return function(t,n){n.on(ar(e),function(e){t.$apply(function(){i(t,{$event:e})})})}}}}]});var zo=["$animate",function(e){return{transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,o,i,a){var s,u;n.$watch(o.ngIf,function(i){z(i)?u||(u=n.$new(),a(u,function(n){n[n.length++]=t.createComment(" end ngIf: "+o.ngIf+" "),s={clone:n},e.enter(n,r.parent(),r)})):(u&&(u.$destroy(),u=null),s&&(e.leave(it(s.clone)),s=null))})}}}],Vo=["$http","$templateCache","$anchorScroll","$animate","$sce",function(e,t,n,r,o){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:br.noop,compile:function(i,a){var s=a.ngInclude||a.src,u=a.onload||"",l=a.autoscroll;return function(i,a,c,f,p){var d,h,g=0,m=function(){d&&(d.$destroy(),d=null),h&&(r.leave(h),h=null)};i.$watch(o.parseAsResourceUrl(s),function(o){var s=function(){!y(l)||l&&!i.$eval(l)||n()},c=++g;o?(e.get(o,{cache:t}).success(function(e){if(c===g){var t=i.$new();f.template=e;var n=p(t,function(e){m(),r.enter(e,null,a,s)});d=t,h=n,d.$emit("$includeContentLoaded"),i.$eval(u)}}).error(function(){c===g&&m()}),i.$emit("$includeContentRequested")):(m(),f.template=null)})}}}}],Wo=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(t,n,r,o){n.html(o.template),e(n.contents())(t)}}}],Ko=Qn({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),Yo=Qn({terminal:!0,priority:1e3}),Go=["$locale","$interpolate",function(e,t){var n=/{}/g;return{restrict:"EA",link:function(r,o,a){var s=a.count,u=a.$attr.when&&o.attr(a.$attr.when),l=a.offset||0,c=r.$eval(u)||{},f={},p=t.startSymbol(),d=t.endSymbol(),h=/^when(Minus)?(.+)$/;i(a,function(e,t){h.test(t)&&(c[ar(t.replace("when","").replace("Minus","-"))]=o.attr(a.$attr[t]))}),i(c,function(e,r){f[r]=t(e.replace(n,p+s+"-"+l+d))}),r.$watch(function(){var t=parseFloat(r.$eval(s));return isNaN(t)?"":(t in c||(t=e.pluralCat(t-l)),f[t](r,o,!0))},function(e){o.text(e)})}}}],Qo=["$parse","$animate",function(e,n){function a(e){return e.clone[0]}function s(e){return e.clone[e.clone.length-1]}var u="$$NG_REMOVED",l=r("ngRepeat");return{transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,link:function(r,c,f,p,d){var h,g,m,v,y,b,$,w,x,_=f.ngRepeat,k=_.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),S={$id:Ct};if(!k)throw l("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",_);if(b=k[1],$=k[2],h=k[3],h?(g=e(h),m=function(e,t,n){return x&&(S[x]=e),S[w]=t,S.$index=n,g(r,S)}):(v=function(e,t){return Ct(t)},y=function(e){return e}),k=b.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/),!k)throw l("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",b);w=k[3]||k[1],x=k[2];var E={};r.$watchCollection($,function(e){var f,p,h,g,b,$,k,S,C,T,A,D,O=c[0],P={},j=[];if(o(e))T=e,C=m||v;else{C=m||y,T=[];for($ in e)e.hasOwnProperty($)&&"$"!=$.charAt(0)&&T.push($);T.sort()}for(g=T.length,p=j.length=T.length,f=0;p>f;f++)if($=e===T?f:T[f],k=e[$],S=C($,k,f),rt(S,"`track by` id"),E.hasOwnProperty(S))A=E[S],delete E[S],P[S]=A,j[f]=A;else{if(P.hasOwnProperty(S))throw i(j,function(e){e&&e.scope&&(E[e.id]=e)}),l("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}",_,S);j[f]={id:S},P[S]=!1}for($ in E)E.hasOwnProperty($)&&(A=E[$],D=it(A.clone),n.leave(D),i(D,function(e){e[u]=!0}),A.scope.$destroy());for(f=0,p=T.length;p>f;f++){if($=e===T?f:T[f],k=e[$],A=j[f],j[f-1]&&(O=s(j[f-1])),A.scope){b=A.scope,h=O;do h=h.nextSibling;while(h&&h[u]);a(A)!=h&&n.move(it(A.clone),null,fr(O)),O=s(A)}else b=r.$new();b[w]=k,x&&(b[x]=$),b.$index=f,b.$first=0===f,b.$last=f===g-1,b.$middle=!(b.$first||b.$last),b.$odd=!(b.$even=0===(1&f)),A.scope||d(b,function(e){e[e.length++]=t.createComment(" end ngRepeat: "+_+" "),n.enter(e,null,fr(O)),O=e,A.scope=b,A.clone=e,P[A.id]=A})}E=P})}}}],Jo=["$animate",function(e){return function(t,n,r){t.$watch(r.ngShow,function(t){e[z(t)?"removeClass":"addClass"](n,"ng-hide")})}}],Xo=["$animate",function(e){return function(t,n,r){t.$watch(r.ngHide,function(t){e[z(t)?"addClass":"removeClass"](n,"ng-hide")})}}],Zo=Qn(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&i(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),ei=["$animate",function(e){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(t,n,r,o){var a,s,u=r.ngSwitch||r.on,l=[];t.$watch(u,function(n){for(var u=0,c=l.length;c>u;u++)l[u].$destroy(),e.leave(s[u]);s=[],l=[],(a=o.cases["!"+n]||o.cases["?"])&&(t.$eval(r.change),i(a,function(n){var r=t.$new();l.push(r),n.transclude(r,function(t){var r=n.element;s.push(t),e.enter(t,r.parent(),r)})}))})}}}],ti=Qn({transclude:"element",priority:800,require:"^ngSwitch",link:function(e,t,n,r,o){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:o,element:t})}}),ni=Qn({transclude:"element",priority:800,require:"^ngSwitch",link:function(e,t,n,r,o){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:o,element:t})}}),ri=Qn({controller:["$element","$transclude",function(e,t){if(!t)throw r("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",V(e));this.$transclude=t}],link:function(e,t,n,r){r.$transclude(function(e){t.empty(),t.append(e)})}}),oi=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"==n.type){var r=n.id,o=t[0].text;e.put(r,o)}}}}],ii=r("ngOptions"),ai=m({terminal:!0}),si=["$compile","$parse",function(e,r){var o=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,s={$setViewValue:h};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(e,t,n){var r,o,i=this,a={},u=s;i.databound=n.ngModel,i.init=function(e,t,n){u=e,r=t,o=n},i.addOption=function(t){rt(t,'"option value"'),a[t]=!0,u.$viewValue==t&&(e.val(t),o.parent()&&o.remove())},i.removeOption=function(e){this.hasOption(e)&&(delete a[e],u.$viewValue==e&&this.renderUnknownOption(e))},i.renderUnknownOption=function(t){var n="? "+Ct(t)+" ?";o.val(n),e.prepend(o),e.val(n),o.prop("selected",!0)},i.hasOption=function(e){return a.hasOwnProperty(e)},t.$on("$destroy",function(){i.renderUnknownOption=h})}],link:function(s,u,l,c){function f(e,t,n,r){n.$render=function(){var e=n.$viewValue;r.hasOption(e)?(S.parent()&&S.remove(),t.val(e),""===e&&h.prop("selected",!0)):v(e)&&h?t.val(""):r.renderUnknownOption(e)},t.on("change",function(){e.$apply(function(){S.parent()&&S.remove(),n.$setViewValue(t.val())})})}function p(e,t,n){var r;n.$render=function(){var e=new Tt(n.$viewValue);i(t.find("option"),function(t){t.selected=y(e.get(t.value))})},e.$watch(function(){L(r,n.$viewValue)||(r=M(n.$viewValue),n.$render())}),t.on("change",function(){e.$apply(function(){var e=[];i(t.find("option"),function(t){t.selected&&e.push(t.value)}),n.$setViewValue(e)})})}function d(t,i,s){function u(){var e,n,r,o,u,l,m,$,E,C,T,A,D,O,P,j={"":[]},M=[""],I=s.$modelValue,L=g(t)||[],N=p?a(L):L,R={},B=!1;if(b)if(v&&_(I)){B=new Tt([]);for(var U=0;U<I.length;U++)R[f]=I[U],B.put(v(t,R),I[U])}else B=new Tt(I);for(T=0;E=N.length,E>T;T++){if(m=T,p){if(m=N[T],"$"===m.charAt(0))continue;R[p]=m}if(R[f]=L[m],e=d(t,R)||"",(n=j[e])||(n=j[e]=[],M.push(e)),b)A=y(B.remove(v?v(t,R):h(t,R)));else{if(v){var F={};F[f]=I,A=v(t,F)===v(t,R)}else A=I===h(t,R);B=B||A}P=c(t,R),P=y(P)?P:"",n.push({id:v?v(t,R):p?N[T]:T,label:P,selected:A})}for(b||(w||null===I?j[""].unshift({id:"",label:"",selected:!B}):B||j[""].unshift({id:"?",label:"",selected:!0})),C=0,$=M.length;$>C;C++){for(e=M[C],n=j[e],S.length<=C?(o={element:k.clone().attr("label",e),label:n.label},u=[o],S.push(u),i.append(o.element)):(u=S[C],o=u[0],o.label!=e&&o.element.attr("label",o.label=e)),D=null,T=0,E=n.length;E>T;T++)r=n[T],(l=u[T+1])?(D=l.element,l.label!==r.label&&D.text(l.label=r.label),l.id!==r.id&&D.val(l.id=r.id),D[0].selected!==r.selected&&D.prop("selected",l.selected=r.selected)):(""===r.id&&w?O=w:(O=x.clone()).val(r.id).attr("selected",r.selected).text(r.label),u.push(l={element:O,label:r.label,id:r.id,selected:r.selected}),D?D.after(O):o.element.append(O),D=O);for(T++;u.length>T;)u.pop().element.remove()}for(;S.length>C;)S.pop()[0].element.remove()}var l;if(!(l=$.match(o)))throw ii("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",$,V(i));var c=r(l[2]||l[1]),f=l[4]||l[6],p=l[5],d=r(l[3]||""),h=r(l[2]?l[1]:f),g=r(l[7]),m=l[8],v=m?r(l[8]):null,S=[[{element:i,label:""}]];w&&(e(w)(t),w.removeClass("ng-scope"),w.remove()),i.empty(),i.on("change",function(){t.$apply(function(){var e,r,o,a,u,l,c,d,m,y=g(t)||[],$={};if(b){for(o=[],l=0,d=S.length;d>l;l++)for(e=S[l],u=1,c=e.length;c>u;u++)if((a=e[u].element)[0].selected){if(r=a.val(),p&&($[p]=r),v)for(m=0;m<y.length&&($[f]=y[m],v(t,$)!=r);m++);else $[f]=y[r];o.push(h(t,$))}}else if(r=i.val(),"?"==r)o=n;else if(""===r)o=null;else if(v){for(m=0;m<y.length;m++)if($[f]=y[m],v(t,$)==r){o=h(t,$);break}}else $[f]=y[r],p&&($[p]=r),o=h(t,$);s.$setViewValue(o)})}),s.$render=u,t.$watch(u)}if(c[1]){for(var h,g=c[0],m=c[1],b=l.multiple,$=l.ngOptions,w=!1,x=fr(t.createElement("option")),k=fr(t.createElement("optgroup")),S=x.clone(),E=0,C=u.children(),T=C.length;T>E;E++)if(""===C[E].value){h=w=C.eq(E);break}g.init(m,w,S),b&&(m.$isEmpty=function(e){return!e||0===e.length}),$?d(s,u,m):b?p(s,u,m):f(s,u,m,g)}}}}],ui=["$interpolate",function(e){var t={addOption:h,removeOption:h};return{restrict:"E",priority:100,compile:function(n,r){if(v(r.value)){var o=e(n.text(),!0);o||r.$set("value",n.text())}return function(e,n,r){var i="$selectController",a=n.parent(),s=a.data(i)||a.parent().data(i);s&&s.databound?n.prop("selected",!1):s=t,o?e.$watch(o,function(e,t){r.$set("value",e),e!==t&&s.removeOption(t),s.addOption(e)}):s.addOption(r.value),n.on("$destroy",function(){s.removeOption(r.value)})}}}}],li=m({restrict:"E",terminal:!0});et(),st(br),fr(t).ready(function(){J(t,X)})}(window,document),!angular.$$csp()&&angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\\:form{display:block;}</style>')},{}],24:[function(e){(function(){var e,t=[].slice;e=angular.module("fa.directive.borderLayout",[]),e.factory("paneManager",function(){return{panes:{},get:function(e){return this.panes[e]},set:function(e,t){return this.panes[e]=t},remove:function(e){return delete this.panes[e]}}}),e.directive("faPane",["$window","$rootScope","paneManager",function(e,t,n){var r,o,i,a,s;return r=function(){function e(e,t,n,r,o,i){this.width=null!=e?e:0,this.height=null!=t?t:0,this.top=null!=n?n:0,this.right=null!=r?r:0,this.bottom=null!=o?o:0,this.left=null!=i?i:0}return e.prototype.clone=function(){return new e(this.width,this.height,this.top,this.right,this.bottom,this.left)},e.prototype.calculateSize=function(e,t){var n,r,o,i;if(null==t&&(t=0),i=this.getSize(e),n=this.getAvailableSize(e),angular.isNumber(t))return t>=1?Math.round(t):t>=0?Math.round(t*i):0;if(t=t.replace(/\s+/gm,""),(o=t.split("-")).length>1)return this.calculateSize(e,o.shift())-this.calculateSize(e,o.join("+"));if((o=t.split("+")).length>1)return this.calculateSize(e,o.shift())+this.calculateSize(e,o.join("+"));if(r=t.match(/^(\d+)px$/))return parseInt(r[1],10);if(r=t.match(/^(\d+(?:\.\d+)?)&$/))return Math.round(n*parseFloat(r[1])/100);if(r=t.match(/^(\d+(?:\.\d+)?)%$/))return Math.round(i*parseFloat(r[1])/100);throw new Error("Unsupported size: "+t)},e.prototype.consume=function(e,t){var n;switch(null==t&&(t=0),e){case"north":n={top:""+this.top+"px",right:""+this.right+"px",bottom:"auto",left:""+this.left+"px",height:""+t+"px",width:"auto"},this.top+=t;break;case"east":n={top:""+this.top+"px",right:""+this.right+"px",bottom:""+this.bottom+"px",left:"auto",width:""+t+"px",height:"auto"},this.right+=t;break;case"south":n={top:"auto",right:""+this.right+"px",bottom:""+this.bottom+"px",left:""+this.left+"px",height:""+t+"px",width:"auto"},this.bottom+=t;break;case"west":n={top:""+this.top+"px",right:"auto",bottom:""+this.bottom+"px",left:""+this.left+"px",width:""+t+"px",height:"auto"},this.left+=t}return 0===t&&(n.display="none"),n},e.prototype.getInnerRegion=function(){return new e(this.width-this.right-this.left,this.height-this.top-this.bottom)},e.prototype.getSize=function(e){switch(e){case"vertical":return this.height;case"horizontal":return this.width}},e.prototype.getAvailableSize=function(e){switch(e){case"vertical":return this.height-this.top-this.bottom;case"horizontal":return this.width-this.right-this.left}},e.prototype.toString=function(){return"{"+this.top+", "+this.right+", "+this.bottom+", "+this.left+"}, {"+this.width+", "+this.height+"}"},e}(),a=function(e){switch(e){case"north":case"south":return"vertical";case"east":case"west":return"horizontal"}},s=function(e,t){var n;if(n={top:0,right:0,bottom:0,left:0},t)switch(e){case"north":n.bottom="auto",n.height=""+t+"px";break;case"east":n.left="auto",n.width=""+t+"px";break;case"south":n.top="auto",n.height=""+t+"px";break;case"west":n.right="auto",n.width=""+t+"px"}return n},i=function(e,t,n){switch(e){case"north":return{height:""+t.calculateSize("vertical",n)+"px",right:0,left:0,bottom:0};case"south":return{height:""+t.calculateSize("vertical",n)+"px",right:0,left:0,top:0};case"east":return{width:""+t.calculateSize("horizontal",n)+"px",top:0,bottom:0,left:0};case"west":return{width:""+t.calculateSize("horizontal",n)+"px",top:0,bottom:0,right:0}}},o=function(){var e,t;return e=0,t=function(){return e++},t.peek=function(){return e},t}(),{restrict:"A",replace:!0,require:"faPane",priority:1,transclude:"element",scope:{anchor:"@paneAnchor",paneId:"@faPane",size:"@paneSize",min:"@paneMin",max:"@paneMax",handle:"@paneHandle",closed:"=paneClosed",order:"@paneOrder",noToggle:"@paneNoToggle"},template:'<div class="fa-pane pane-{{$pane.id}}">\n  <div class="fa-pane-overlay"></div>\n  <div class="fa-pane-handle" fa-pane-resizer>\n    <div ng-if="!$pane.noToggle" class="fa-pane-toggle" ng-click="$pane.toggle()"></div>\n  </div>\n</div>',controllerAs:"$pane",controller:function(){var e,n;return e=new(n=function(){function n(){this.children=[],this.closed=!1,this.noToggle=!1,this.max=Number.MAX_VALUE,this.min=0}return n.prototype.$scheduleReflow=function(){return e.parent?e.parent.$scheduleReflow():e.$reflowScheduled?void 0:(e.$reflowScheduled=!0,t.$evalAsync(function(){return e.$reflowScheduled&&e.reflow(),e.$reflowScheduled=!1}))},n.prototype.$onStartResize=function(){return e.$parent?e.parent.$containerEl.addClass("fa-pane-resizing"):e.$containerEl.addClass("fa-pane-resizing")},n.prototype.$onStopResize=function(){return e.$parent?e.parent.$containerEl.removeClass("fa-pane-resizing"):e.$containerEl.removeClass("fa-pane-resizing")},n.prototype.getOptions=function(){return{anchor:this.anchor,targetSize:this.targetSize,size:this.size,min:this.min,max:this.max,order:this.order||0,handle:{open:this.handleSizeOpen||0,closed:this.handleSizeClosed||0},noToggle:!!this.noToggle,closed:this.closed}
},n.prototype.setOptions=function(e){return null==e&&(e={}),null!=e.anchor&&this.setAnchor(e.anchor),null!=e.size&&this.setTargetSize(e.size),null!=e.min&&this.setMinSize(e.min),null!=e.max&&this.setMaxSize(e.max),null!=e.handle&&this.setHandleSize(e.handle),null!=e.order&&this.setOrder(e.order),null!=e.noToggle&&this.setNoToggle(e.noToggle),null!=e.closed?this.toggle(!e.closed):void 0},n.prototype.setAnchor=function(e){return this.anchor=e,this.$scheduleReflow()},n.prototype.setTargetSize=function(e){return this.targetSize=e,this.$scheduleReflow()},n.prototype.setMinSize=function(e){return this.min=e,this.$scheduleReflow()},n.prototype.setMaxSize=function(e){return this.max=e,this.$scheduleReflow()},n.prototype.setOrder=function(e){return this.order=e,this.$scheduleReflow()},n.prototype.setNoToggle=function(e){return this.noToggle=e,this.$scheduleReflow()},n.prototype.setHandleSize=function(e){return(null!=e?e.open:void 0)||(null!=e?e.closed:void 0)?(this.handleSizeOpen=e.open||0,this.handleSizeClosed=e.closed||0):this.handleSizeOpen=this.handleSizeClosed=parseInt(e,10),this.$scheduleReflow()},n.prototype.addChild=function(t){return t.parent=e,this.children.push(t),this.children.length&&e.$containerEl.addClass("fa-pane-parent"),e.$scheduleReflow()},n.prototype.getOrientation=function(){return a(e.anchor)},n.prototype.onHandleDown=function(){return e.$containerEl.addClass("active")},n.prototype.onHandleUp=function(){return e.$containerEl.removeClass("active"),e.$scheduleReflow()},n.prototype.removeChild=function(t){var n;return 0>(n=this.children.indexOf(t))||this.children.splice(n,1),this.children.length||e.$containerEl.removeClass("fa-pane-parent"),e.$scheduleReflow()},n.prototype.reflow=function(t){var n,o,u,l,c,f,p,d,h;return d=e.$containerEl[0].offsetWidth,o=e.$containerEl[0].offsetHeight,t||(t=new r(d,o)),"north"===(h=e.anchor)||"east"===h||"south"===h||"west"===h?(e.$containerEl.removeClass("fa-pane-orientation-vertical"),e.$containerEl.removeClass("fa-pane-orientation-horizontal"),u=a(e.anchor),e.$containerEl.addClass("fa-pane-orientation-"+u),n=t.calculateSize(u,!e.closed&&e.handleSizeOpen||e.handleSizeClosed),e.closed?l=n:(l=t.calculateSize(u,!e.closed&&e.targetSize||n),l=Math.min(l,t.calculateSize(u,e.max)),l=Math.max(l,t.calculateSize(u,e.min)),l=Math.min(l,t.getAvailableSize(u)),l=Math.max(l,n)),this.size=l,c=t.consume(e.anchor,l),p=s(e.anchor,l-n),f=i(e.anchor,t,n),e.$containerEl.attr("style","").css(c),e.$overlayEl.attr("style","").css(p),e.$handleEl.attr("style","").css(f),e.$scrollerEl.attr("style","").css(p)):e.$containerEl.css({top:""+t.top+"px",right:""+t.right+"px",bottom:""+t.bottom+"px",left:""+t.left+"px",width:"auto",height:"auto"}),e.$region=t.clone(),e.reflowChildren(t.getInnerRegion()),e.$transcludeScope.$broadcast("fa-pane-resize",e)},n.prototype.reflowChildren=function(t){var n,r,o,i,a;for(t||(t=e.$region),e.children.sort(function(e,t){return e.order-t.order}),i=e.children,a=[],r=0,o=i.length;o>r;r++)n=i[r],a.push(n.reflow(t));return a},n.prototype.resize=function(t){return null==t&&(t=e.targetSize),e.targetSize=t,e.parent.reflowChildren(e.parent.$region.getInnerRegion()),t!==e.size?e.$containerEl.addClass("fa-pane-constrained"):e.$containerEl.removeClass("fa-pane-constrained")},n.prototype.toggle=function(t){var n;return null==t&&(t=!!e.closed),e.closed=!t,n=function(){return e.parent?e.parent.$scheduleReflow():e.$scheduleReflow()},e.closed?e.$containerEl.addClass("fa-pane-closed"):e.$containerEl.removeClass("fa-pane-closed"),n()},n}())},compile:function(t,r,i){var a,s;return s=o(),a=function(t,r,o,a){var u,l;return u=t.$parent.$new(),u.$pane=t.$pane=a,l=u.$new(),null==a.order&&(a.order=s),a.$isolateScope=t,a.$directiveScope=u,a.$transcludeScope=l,i(l,function(o){return o.addClass("fa-pane-scroller"),r.append(o),a.$containerEl=r,a.$overlayEl=r.children().eq(0),a.$handleEl=r.children().eq(1),a.$scrollerEl=r.children().eq(2),t.$watch("anchor",function(e){return a.setAnchor(e)}),t.$watch("size",function(e){return a.setTargetSize(e)}),t.$watch("closed",function(e){return a.toggle(!e)}),t.$watch("min",function(e){return a.setMinSize(null!=e?e:0)}),t.$watch("max",function(e){return a.setMaxSize(null!=e?e:Number.MAX_VALUE)}),t.$watch("order",function(e){return a.setOrder(e)}),t.$watch("noToggle",function(e){return a.setNoToggle(!!e)}),t.$watch("paneId",function(e,t){return t&&n.remove(t),n.set(e,a),a.id=e}),t.$watch("handle",function(e){return a.setHandleSize(e)}),a.$directiveScope.$on("fa-pane-attach",function(e,t){return t!==a?(e.stopPropagation(),a.addChild(t)):void 0}),a.$directiveScope.$on("fa-pane-detach",function(e,t){return t!==a?(e.stopPropagation(),a.removeChild(t)):void 0}),e.addEventListener("resize",function(e){return e.stopPropagation(),a.$scheduleReflow()}),a.$directiveScope.$on("$stateChangeSuccess",function(){return a.$scheduleReflow()}),a.$directiveScope.$emit("fa-pane-attach",a),a.$directiveScope.$on("$destroy",function(){return a.$directiveScope.$emit("fa-pane-detach",a)})})}}}}]),e.directive("faPaneToggle",["paneManager",function(){return{link:function(e,t,n){return n.$observe("faPaneToggle",function(){})}}}]),e.directive("faPaneResizer",["$window",function(e){var n;return n=function(e,n){var r;return r=!1,function(){return r?void 0:(r=!0,setTimeout(function(){return r=!1},e),n.call.apply(n,[this].concat(t.call(arguments))))}},{restrict:"A",link:function(t,r,o,i){var a,s,u;return i||(i=t.$pane),u=r[0],a=5,s=300,t.$watch(function(){return i.getOrientation()},function(e){switch(r.removeClass("vertical"),r.removeClass("horizontal"),e){case"vertical":return r.addClass("vertical");case"horizontal":return r.addClass("horizontal")}}),u.addEventListener("mousedown",function(r){var o,l,c,f,p,d,h,g,m,v;if(0===r.button)return o=i.anchor,"north"===o||"south"===o?l="screenY":("west"===o||"east"===o)&&(l="screenX"),"north"===o||"west"===o?d=1:("south"===o||"east"===o)&&(d=-1),g={x:r.screenX,y:r.screenY},h=r[l],m=i.size,v=Date.now(),u.unselectable="on",u.onselectstart=function(){return!1},u.style.userSelect=u.style.MozUserSelect="none",r.preventDefault(),r.defaultPrevented=!0,r=null,c=function(e){return i.$onStartResize(),t.$apply(function(){var t;return t=m+d*(e[l]-h),i.resize(t)}),e.preventDefault(),e.defaultPrevented=!0,e=null},p=function(t){var n,r,o;return r=Math.pow(t.screenX-g.x,2)+Math.pow(t.screenY-g.y,2),o=Date.now()-v,e.removeEventListener("mousemove",f,!0),e.removeEventListener("mouseup",p,!0),n=function(){return i.$onStopResize(),t.preventDefault(),t.defaultPrevented=!0,t=null},r<=Math.pow(a,2)&&s>=o?void n():(c(t),n())},f=n(10,c),e.addEventListener("mouseup",p,!0),e.addEventListener("mousemove",f,!0)})}}}])}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\..\\vendor\\borderLayout\\borderLayout.coffee","/..\\..\\vendor\\borderLayout")},{buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7}],25:[function(e){(function(){!function(){"use strict";var e={backspace:8,tab:9,enter:13,escape:27,space:32,up:38,down:40,comma:188},t=angular.module("ngTagsInput",[]);t.directive("tagsInput",["$timeout","$document","tagsInputConfig",function(t,n,r){function o(){var e={};return{on:function(t,n){e[t]||(e[t]=[]),e[t].push(n)},trigger:function(t,n){angular.forEach(e[t],function(e){e.call(null,n)})}}}return{restrict:"E",require:"ngModel",scope:{tags:"=ngModel",onTagAdded:"&",onTagRemoved:"&"},replace:!1,transclude:!0,templateUrl:"ngTagsInput/tags-input.html",controller:["$scope","$attrs","$element",function(e,t,n){var i;r.load("tagsInput",e,t,{customClass:[String],placeholder:[String,"Add a tag"],tabindex:[Number],removeTagSymbol:[String,String.fromCharCode(215)],replaceSpacesWithDashes:[Boolean,!0],minLength:[Number,3],maxLength:[Number],addOnEnter:[Boolean,!0],addOnSpace:[Boolean,!1],addOnComma:[Boolean,!0],addOnBlur:[Boolean,!0],allowedTagsPattern:[RegExp,/^[a-zA-Z0-9\s]+$/],enableEditingLastTag:[Boolean,!1],minTags:[Number],maxTags:[Number]}),e.events=new o,e.events.on("tag-added",e.onTagAdded),e.events.on("tag-removed",e.onTagRemoved),e.newTag="",e.tags=e.tags||[],e.tryAdd=function(){var t=!1,n=e.newTag;return n.length>=e.options.minLength&&e.options.allowedTagsPattern.test(n)&&(e.options.replaceSpacesWithDashes&&(n=n.replace(/\s/g,"-")),-1===e.tags.indexOf(n)&&(e.tags.push(n),e.events.trigger("tag-added",{$tag:n})),e.newTag="",e.events.trigger("input-change",""),t=!0),t},e.tryRemoveLast=function(){var t=!1;return e.tags.length>0&&(e.options.enableEditingLastTag?e.newTag=e.remove(e.tags.length-1):i?(e.remove(e.tags.length-1),i=!1):i=!0,t=!0),t},e.remove=function(t){var n=e.tags.splice(t,1)[0];return e.events.trigger("tag-removed",{$tag:n}),n},e.getCssClass=function(t){var n=t===e.tags.length-1;return i&&n?"selected":""},e.$watch(function(){return e.newTag.length>0},function(){i=!1}),this.registerAutocomplete=function(){var t=n.find("input");return t.on("keydown",function(t){e.events.trigger("input-keydown",t)}),e.newTagChange=function(){e.events.trigger("input-change",e.newTag)},{tryAddTag:function(t){return e.newTag=t,e.tryAdd()},focusInput:function(){t[0].focus()},getTags:function(){return e.tags},on:function(t,n){return e.events.on(t,n),this}}}}],link:function(r,o,i,a){var s=[e.enter,e.comma,e.space,e.backspace],u=o.find("input");u.on("keydown",function(t){if(!t.isImmediatePropagationStopped||!t.isImmediatePropagationStopped()){var n=t.keyCode,o=t.shiftKey||t.altKey||t.ctrlKey||t.metaKey;o||-1===s.indexOf(n)||(n===e.enter&&r.options.addOnEnter||n===e.comma&&r.options.addOnComma||n===e.space&&r.options.addOnSpace?(r.tryAdd()&&r.$apply(),t.preventDefault()):n===e.backspace&&0===this.value.length&&r.tryRemoveLast()&&(r.$apply(),t.preventDefault()))}}).on("focus",function(){r.hasFocus||(r.hasFocus=!0,r.$apply())}).on("blur",function(){t(function(){var e=angular.element(n[0].activeElement).parent();e[0]!==o[0]&&(r.hasFocus=!1,r.options.addOnBlur&&r.tryAdd(),r.events.trigger("input-blur"),r.$apply())},0,!1)}),o.find("div").on("click",function(){u[0].focus()}),r.$watch("tags.length",function(){a.$setValidity("maxTags",angular.isUndefined(r.options.maxTags)||r.tags.length<=r.options.maxTags),a.$setValidity("minTags",angular.isUndefined(r.options.minTags)||r.tags.length>=r.options.minTags)})}}}]),t.directive("autoComplete",["$document","$timeout","$sce","tagsInputConfig",function(t,n,r,o){function i(e,t){var r,o,i,a={};return o=function(e,t){var n=[];return e.forEach(function(e){-1===t.indexOf(e)&&n.push(e)}),n},a.reset=function(){i=null,a.items=[],a.visible=!1,a.index=-1,a.selected=null,a.query=null,n.cancel(r)},a.show=function(){a.selected=null,a.visible=!0},a.load=function(s,u){return s.length<t.minLength?void a.reset():(n.cancel(r),void(r=n(function(){a.query=s;var t=e({$query:s});i=t,t.then(function(e){t===i&&(a.items=o(e.data||e,u),a.items.length>0?a.show():a.reset())})},t.debounceDelay,!1)))},a.selectNext=function(){a.select(++a.index)},a.selectPrior=function(){a.select(--a.index)},a.select=function(e){0>e?e=a.items.length-1:e>=a.items.length&&(e=0),a.index=e,a.selected=a.items[e]},a.reset(),a}function a(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}return{restrict:"E",require:"^tagsInput",scope:{source:"&"},templateUrl:"ngTagsInput/auto-complete.html",link:function(n,s,u,l){var c,f,p,d=[e.enter,e.tab,e.escape,e.up,e.down];o.load("autoComplete",n,u,{debounceDelay:[Number,100],minLength:[Number,3],highlightMatchedText:[Boolean,!0],maxResultsToShow:[Number,10]}),f=l.registerAutocomplete(),c=new i(n.source,n.options),p=n.options.highlightMatchedText?function(e,t){var n=new RegExp(t,"gi");return e.replace(n,"**$&**")}:function(e){return e},n.suggestionList=c,n.addSuggestion=function(){var e=!1;return c.selected&&(f.tryAddTag(c.selected),c.reset(),f.focusInput(),e=!0),e},n.highlight=function(e){return e=p(e,c.query),e=a(e),e=e.replace(/\*\*(.+?)\*\*/g,"<em>$1</em>"),r.trustAsHtml(e)},f.on("input-change",function(e){e?c.load(e,f.getTags()):c.reset()}).on("input-keydown",function(t){var r,o;if(-1!==d.indexOf(t.keyCode)){var i=!1;t.stopImmediatePropagation=function(){i=!0,t.stopPropagation()},t.isImmediatePropagationStopped=function(){return i},c.visible&&(r=t.keyCode,o=!1,r===e.down?(c.selectNext(),o=!0):r===e.up?(c.selectPrior(),o=!0):r===e.escape?(c.reset(),o=!0):(r===e.enter||r===e.tab)&&(o=n.addSuggestion()),o&&(t.preventDefault(),t.stopImmediatePropagation(),n.$apply()))}}).on("input-blur",function(){c.reset()}),t.on("click",function(){c.visible&&(c.reset(),n.$apply())})}}}]),t.directive("tiTranscludeAppend",function(){return function(e,t,n,r,o){o(function(e){t.append(e)})}}),t.directive("tiAutosize",function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){var o,i;o=angular.element('<span class="tag-input"></span>'),o.css("display","none").css("visibility","hidden").css("width","auto"),t.parent().append(o),i=function(e){var n=e;angular.isString(e)&&0===e.length&&(e=t.attr("placeholder")),o.text(e),o.css("display","");try{t.css("width",o.prop("offsetWidth")+"px")}finally{o.css("display","none")}return n},r.$parsers.unshift(i),r.$formatters.unshift(i)}}}),t.provider("tagsInputConfig",function(){var e={};this.setDefaults=function(t,n){return e[t]=n,this},this.$get=["$interpolate",function(t){var n={};return n[String]=function(e){return e},n[Number]=function(e){return parseInt(e,10)},n[Boolean]=function(e){return"true"===e.toLowerCase()},n[RegExp]=function(e){return new RegExp(e)},{load:function(r,o,i,a){o.options={},angular.forEach(a,function(a,s){var u=i[s]&&t(i[s])(o.$parent),l=n[a[0]],c=function(t){var n=e[r]&&e[r][t];return angular.isDefined(n)?n:a[1]};o.options[s]=u?l(u):c(s)})}}}]}),t.run(["$templateCache",function(e){e.put("ngTagsInput/tags-input.html",'<div class="ngTagsInput" tabindex="-1" ng-class="options.customClass" ti-transclude-append=""><div class="tags" ng-class="{focused: hasFocus}"><ul class="tag-list"><li class="tag-item" ng-repeat="tag in tags" ng-class="getCssClass($index)"><span>{{tag}}</span> <button type="button" ng-click="remove($index)">{{options.removeTagSymbol}}</button></li></ul><input class="tag-input" placeholder="{{options.placeholder}}" maxlength="{{options.maxLength}}" tabindex="{{options.tabindex}}" ng-model="newTag" ng-change="newTagChange()" ti-autosize=""></div></div>'),e.put("ngTagsInput/auto-complete.html",'<div class="autocomplete" ng-show="suggestionList.visible"><ul class="suggestion-list"><li class="suggestion-item" ng-repeat="item in suggestionList.items | limitTo:options.maxResultsToShow" ng-class="{selected: item == suggestionList.selected}" ng-click="addSuggestion()" ng-mouseenter="suggestionList.select($index)" ng-bind-html="highlight(item)"></li></ul></div>')}])}()}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\..\\vendor\\ngTagsInput\\ngTagsInput.js","/..\\..\\vendor\\ngTagsInput")},{buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7}],26:[function(){!function(){var e={exports:{}},t=window.ottypes=e.exports;t._bootstrapTransform=function(e,t,n,r){var o=function(e,n,r,o){t(r,e,n,"left"),t(o,n,e,"right")},i=e.transformX=function(e,t){n(e),n(t);for(var a=[],s=0;s<t.length;s++){for(var u=t[s],l=[],c=0;c<e.length;){var f=[];if(o(e[c],u,l,f),c++,1!==f.length){if(0===f.length){for(var p=c;p<e.length;p++)r(l,e[p]);u=null;break}for(var d=i(e.slice(c),f),h=0;h<d[0].length;h++)r(l,d[0][h]);for(var g=0;g<d[1].length;g++)r(a,d[1][g]);u=null;break}u=f[0]}null!=u&&r(a,u),e=l}return[e,a]};e.transform=e.transform=function(e,n,r){if("left"!==r&&"right"!==r)throw new Error("type must be 'left' or 'right'");return 0===n.length?e:1===e.length&&1===n.length?t([],e[0],n[0],r):"left"===r?i(e,n)[0]:i(n,e)[1]}};var n=e.exports.text0={name:"text0",uri:"http://sharejs.org/types/textv0",create:function(e){if(null!=e&&"string"!=typeof e)throw new Error("Initial data must be a string");return e||""}},r=function(e,t,n){return e.slice(0,t)+n+e.slice(t)},o=function(e){if("number"!=typeof e.p)throw new Error("component missing position field");if("string"==typeof e.i==("string"==typeof e.d))throw new Error("component needs an i or d field");if(e.p<0)throw new Error("position cannot be negative")},i=function(e){for(var t=0;t<e.length;t++)o(e[t])};n.apply=function(e,t){var n;i(t);for(var o=0;o<t.length;o++){var a=t[o];if(null!=a.i)e=r(e,a.p,a.i);else{if(n=e.slice(a.p,a.p+a.d.length),a.d!==n)throw new Error("Delete component '"+a.d+"' does not match deleted text '"+n+"'");e=e.slice(0,a.p)+e.slice(a.p+a.d.length)}}return e};var a=n._append=function(e,t){if(""!==t.i&&""!==t.d)if(0===e.length)e.push(t);else{var n=e[e.length-1];null!=n.i&&null!=t.i&&n.p<=t.p&&t.p<=n.p+n.i.length?e[e.length-1]={i:r(n.i,t.p-n.p,t.i),p:n.p}:null!=n.d&&null!=t.d&&t.p<=n.p&&n.p<=t.p+t.d.length?e[e.length-1]={d:r(t.d,n.p-t.p,n.d),p:t.p}:e.push(t)}};n.compose=function(e,t){i(e),i(t);for(var n=e.slice(),r=0;r<t.length;r++)a(n,t[r]);return n},n.normalize=function(e){var t=[];(null!=e.i||null!=e.p)&&(e=[e]);for(var n=0;n<e.length;n++){var r=e[n];null==r.p&&(r.p=0),a(t,r)}return t};var s=function(e,t,n){return null!=t.i?t.p<e||t.p===e&&n?e+t.i.length:e:e<=t.p?e:e<=t.p+t.d.length?t.p:e-t.d.length};n.transformCursor=function(e,t,n){for(var r="right"===n,o=0;o<t.length;o++)e=s(e,t[o],r);return e};var u=n._tc=function(e,t,n,r){if(o(t),o(n),null!=t.i)a(e,{i:t.i,p:s(t.p,n,"right"===r)});else if(null!=n.i){var i=t.d;t.p<n.p&&(a(e,{d:i.slice(0,n.p-t.p),p:t.p}),i=i.slice(n.p-t.p)),""!==i&&a(e,{d:i,p:t.p+n.i.length})}else if(t.p>=n.p+n.d.length)a(e,{d:t.d,p:t.p-n.d.length});else if(t.p+t.d.length<=n.p)a(e,t);else{var u={d:"",p:t.p};t.p<n.p&&(u.d=t.d.slice(0,n.p-t.p)),t.p+t.d.length>n.p+n.d.length&&(u.d+=t.d.slice(n.p+n.d.length-t.p));var l=Math.max(t.p,n.p),c=Math.min(t.p+t.d.length,n.p+n.d.length),f=t.d.slice(l-t.p,c-t.p),p=n.d.slice(l-n.p,c-n.p);if(f!==p)throw new Error("Delete ops delete different text in the same region of the document");""!==u.d&&(u.p=s(u.p,n),a(e,u))}return e},l=function(e){return null!=e.i?{d:e.i,p:e.p}:{i:e.d,p:e.p}};n.invert=function(e){e=e.slice().reverse();for(var t=0;t<e.length;t++)e[t]=l(e[t]);return e},t._bootstrapTransform(n,u,i,a);var c=function(e){return"[object Array]"==Object.prototype.toString.call(e)},f=function(e){return JSON.parse(JSON.stringify(e))};if("undefined"==typeof n)var n=window.ottypes.text;var p=e.exports.json0={name:"json0",uri:"http://sharejs.org/types/JSONv0"};p.create=function(e){return void 0===e?null:e},p.invertComponent=function(e){var t={p:e.p};return void 0!==e.si&&(t.sd=e.si),void 0!==e.sd&&(t.si=e.sd),void 0!==e.oi&&(t.od=e.oi),void 0!==e.od&&(t.oi=e.od),void 0!==e.li&&(t.ld=e.li),void 0!==e.ld&&(t.li=e.ld),void 0!==e.na&&(t.na=-e.na),void 0!==e.lm&&(t.lm=e.p[e.p.length-1],t.p=e.p.slice(0,e.p.length-1).concat([e.lm])),t},p.invert=function(e){for(var t=e.slice().reverse(),n=[],r=0;r<t.length;r++)n.push(p.invertComponent(t[r]));return n},p.checkValidOp=function(e){for(var t=0;t<e.length;t++)if(!c(e[t].p))throw new Error("Missing path")},p.checkList=function(e){if(!c(e))throw new Error("Referenced element not a list")},p.checkObj=function(e){if(e.constructor!==Object)throw new Error("Referenced element not an object (it was "+JSON.stringify(e)+")")},p.apply=function(e,t){p.checkValidOp(t),t=f(t);for(var n={data:e},r=0;r<t.length;r++){for(var o=t[r],i=null,a=null,s=n,u="data",l=0;l<o.p.length;l++){var c=o.p[l];if(i=s,a=u,s=s[u],u=c,null==i)throw new Error("Path invalid")}if(void 0!==o.na){if("number"!=typeof s[u])throw new Error("Referenced element not a number");s[u]+=o.na}else if(void 0!==o.si){if("string"!=typeof s)throw new Error("Referenced element not a string (it was "+JSON.stringify(s)+")");i[a]=s.slice(0,u)+o.si+s.slice(u)}else if(void 0!==o.sd){if("string"!=typeof s)throw new Error("Referenced element not a string");if(s.slice(u,u+o.sd.length)!==o.sd)throw new Error("Deleted string does not match");i[a]=s.slice(0,u)+s.slice(u+o.sd.length)}else if(void 0!==o.li&&void 0!==o.ld)p.checkList(s),s[u]=o.li;else if(void 0!==o.li)p.checkList(s),s.splice(u,0,o.li);else if(void 0!==o.ld)p.checkList(s),s.splice(u,1);else if(void 0!==o.lm){if(p.checkList(s),o.lm!=u){var d=s[u];s.splice(u,1),s.splice(o.lm,0,d)}}else if(void 0!==o.oi)p.checkObj(s),s[u]=o.oi;else{if(void 0===o.od)throw new Error("invalid / missing instruction in op");p.checkObj(s),delete s[u]}}return n.data},p.incrementalApply=function(e,t,n){for(var r=0;r<t.length;r++){var o=[t[r]];e=p.apply(e,o),n(o,e)}return e};var d=p.pathMatches=function(e,t,n){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r]&&(!n||r!==e.length-1))return!1;return!0},h=function(e){var t={p:e.p[e.p.length-1]};return null!=e.si?t.i=e.si:t.d=e.sd,t};p.append=function(e,t){t=f(t);var r;if(0!=e.length&&d(t.p,(r=e[e.length-1]).p))null!=r.na&&null!=t.na?e[e.length-1]={p:r.p,na:r.na+t.na}:void 0!==r.li&&void 0===t.li&&t.ld===r.li?void 0!==r.ld?delete r.li:e.pop():void 0!==r.od&&void 0===r.oi&&void 0!==t.oi&&void 0===t.od?r.oi=t.oi:void 0!==r.oi&&void 0!==t.od?void 0!==t.oi?r.oi=t.oi:void 0!==r.od?delete r.oi:e.pop():void 0!==t.lm&&t.p[t.p.length-1]===t.lm||e.push(t);else if(0!=e.length&&d(t.p,r.p,!0))if(null==t.si&&null==t.sd||null==r.si&&null==r.sd)e.push(t);else{var o=[h(r)];if(n._append(o,h(t)),1!==o.length)e.push(t);else{var i=o[0];r.p[r.p.length-1]=i.p,null!=i.i?r.si=i.i:r.sd=i.d}}else e.push(t)},p.compose=function(e,t){p.checkValidOp(e),p.checkValidOp(t);for(var n=f(e),r=0;r<t.length;r++)p.append(n,t[r]);return n},p.normalize=function(e){var t=[];e=c(e)?e:[e];for(var n=0;n<e.length;n++){var r=e[n];null==r.p&&(r.p=[]),p.append(t,r)}return t},p.canOpAffectOp=function(e,t){if(0===e.length)return!0;if(0===t.length)return!1;t=t.slice(0,t.length-1),e=e.slice(0,e.length-1);for(var n=0;n<e.length;n++){var r=e[n];if(n>=t.length||r!=t[n])return!1}return!0},p.transformComponent=function(e,t,r,o){t=f(t),void 0!==t.na&&t.p.push(0),void 0!==r.na&&r.p.push(0);var i;p.canOpAffectOp(r.p,t.p)&&(i=r.p.length-1);var a;p.canOpAffectOp(t.p,r.p)&&(a=t.p.length-1);var s=t.p.length,u=r.p.length;if(void 0!==t.na&&t.p.pop(),void 0!==r.na&&r.p.pop(),r.na){if(null!=a&&u>=s&&r.p[a]==t.p[a])if(void 0!==t.ld){var l=f(r);l.p=l.p.slice(s),t.ld=p.apply(f(t.ld),[l])}else if(void 0!==t.od){var l=f(r);l.p=l.p.slice(s),t.od=p.apply(f(t.od),[l])}return p.append(e,t),e}if(null!=a&&u>s&&t.p[a]==r.p[a])if(void 0!==t.ld){var l=f(r);l.p=l.p.slice(s),t.ld=p.apply(f(t.ld),[l])}else if(void 0!==t.od){var l=f(r);l.p=l.p.slice(s),t.od=p.apply(f(t.od),[l])}if(null!=i){var c=s==u;if(void 0!==r.na);else if(void 0!==r.si||void 0!==r.sd){if(void 0!==t.si||void 0!==t.sd){if(!c)throw new Error("must be a string?");var d=h(t),g=h(r),m=[];n._tc(m,d,g,o);for(var v=0;v<m.length;v++){var y=m[v],b={p:t.p.slice(0,i)};b.p.push(y.p),null!=y.i&&(b.si=y.i),null!=y.d&&(b.sd=y.d),p.append(e,b)}return e}}else if(void 0!==r.li&&void 0!==r.ld){if(r.p[i]===t.p[i]){if(!c)return e;if(void 0!==t.ld){if(void 0===t.li||"left"!==o)return e;t.ld=f(r.li)}}}else if(void 0!==r.li)void 0!==t.li&&void 0===t.ld&&c&&t.p[i]===r.p[i]?"right"===o&&t.p[i]++:r.p[i]<=t.p[i]&&t.p[i]++,void 0!==t.lm&&c&&r.p[i]<=t.lm&&t.lm++;else if(void 0!==r.ld){if(void 0!==t.lm&&c){if(r.p[i]===t.p[i])return e;var $=r.p[i],w=t.p[i],x=t.lm;(x>$||$===x&&x>w)&&t.lm--}if(r.p[i]<t.p[i])t.p[i]--;else if(r.p[i]===t.p[i]){if(s>u)return e;if(void 0!==t.ld){if(void 0===t.li)return e;delete t.ld}}}else if(void 0!==r.lm)if(void 0!==t.lm&&s===u){var w=t.p[i],x=t.lm,_=r.p[i],k=r.lm;if(_!==k)if(w===_){if("left"!==o)return e;t.p[i]=k,w===x&&(t.lm=k)}else w>_&&t.p[i]--,w>k?t.p[i]++:w===k&&_>k&&(t.p[i]++,w===x&&t.lm++),x>_?t.lm--:x===_&&x>w&&t.lm--,x>k?t.lm++:x===k&&(k>_&&x>w||_>k&&w>x?"right"===o&&t.lm++:x>w?t.lm++:x===_&&t.lm--)}else if(void 0!==t.li&&void 0===t.ld&&c){var w=r.p[i],x=r.lm;$=t.p[i],$>w&&t.p[i]--,$>x&&t.p[i]++}else{var w=r.p[i],x=r.lm;$=t.p[i],$===w?t.p[i]=x:($>w&&t.p[i]--,$>x?t.p[i]++:$===x&&w>x&&t.p[i]++)}else if(void 0!==r.oi&&void 0!==r.od){if(t.p[i]===r.p[i]){if(void 0===t.oi||!c)return e;if("right"===o)return e;t.od=r.oi}}else if(void 0!==r.oi){if(void 0!==t.oi&&t.p[i]===r.p[i]){if("left"!==o)return e;p.append(e,{p:t.p,od:r.oi})}}else if(void 0!==r.od&&t.p[i]==r.p[i]){if(!c)return e;if(void 0===t.oi)return e;delete t.od}}return p.append(e,t),e},t._bootstrapTransform(p,p.transformComponent,p.checkValidOp,p.append)}()},{}],27:[function(e){(function(){var e;!function(){function t(e){this.mode=c.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,n=this.data.length;n>t;t++){var r=[],o=this.data.charCodeAt(t);o>65536?(r[0]=240|(1835008&o)>>>18,r[1]=128|(258048&o)>>>12,r[2]=128|(4032&o)>>>6,r[3]=128|63&o):o>2048?(r[0]=224|(61440&o)>>>12,r[1]=128|(4032&o)>>>6,r[2]=128|63&o):o>128?(r[0]=192|(1984&o)>>>6,r[1]=128|63&o):r[0]=o,this.parsedData.push(r)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function n(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function r(e,t){if(void 0==e.length)throw new Error(e.length+"/"+t);for(var n=0;n<e.length&&0==e[n];)n++;this.num=new Array(e.length-n+t);for(var r=0;r<e.length-n;r++)this.num[r]=e[r+n]}function o(e,t){this.totalCount=e,this.dataCount=t}function i(){this.buffer=[],this.length=0}function a(){return"undefined"!=typeof CanvasRenderingContext2D}function s(){var e=!1,t=navigator.userAgent;return/android/i.test(t)&&(e=!0,aMat=t.toString().match(/android ([0-9]\.[0-9])/i),aMat&&aMat[1]&&(e=parseFloat(aMat[1]))),e}function u(e,t){for(var n=1,r=l(e),o=0,i=m.length;i>=o;o++){var a=0;switch(t){case f.L:a=m[o][0];break;case f.M:a=m[o][1];break;case f.Q:a=m[o][2];break;case f.H:a=m[o][3]}if(a>=r)break;n++}if(n>m.length)throw new Error("Too long data");return n}function l(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=e?3:0)}t.prototype={getLength:function(){return this.parsedData.length},write:function(e){for(var t=0,n=this.parsedData.length;n>t;t++)e.put(this.parsedData[t],8)}},n.prototype={addData:function(e){var n=new t(e);this.dataList.push(n),this.dataCache=null},isDark:function(e,t){if(0>e||this.moduleCount<=e||0>t||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var o=0;o<this.moduleCount;o++)this.modules[r][o]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=n.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var n=-1;7>=n;n++)if(!(-1>=e+n||this.moduleCount<=e+n))for(var r=-1;7>=r;r++)-1>=t+r||this.moduleCount<=t+r||(this.modules[e+n][t+r]=n>=0&&6>=n&&(0==r||6==r)||r>=0&&6>=r&&(0==n||6==n)||n>=2&&4>=n&&r>=2&&4>=r?!0:!1)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;8>n;n++){this.makeImpl(!0,n);var r=d.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},createMovieClip:function(e,t,n){var r=e.createEmptyMovieClip(t,n),o=1;this.make();for(var i=0;i<this.modules.length;i++)for(var a=i*o,s=0;s<this.modules[i].length;s++){var u=s*o,l=this.modules[i][s];l&&(r.beginFill(0,100),r.moveTo(u,a),r.lineTo(u+o,a),r.lineTo(u+o,a+o),r.lineTo(u,a+o),r.endFill())}return r},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=d.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var r=e[t],o=e[n];if(null==this.modules[r][o])for(var i=-2;2>=i;i++)for(var a=-2;2>=a;a++)this.modules[r+i][o+a]=-2==i||2==i||-2==a||2==a||0==i&&0==a?!0:!1}},setupTypeNumber:function(e){for(var t=d.getBCHTypeNumber(this.typeNumber),n=0;18>n;n++){var r=!e&&1==(t>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;18>n;n++){var r=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},setupTypeInfo:function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=d.getBCHTypeInfo(n),o=0;15>o;o++){var i=!e&&1==(r>>o&1);6>o?this.modules[o][8]=i:8>o?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(var o=0;15>o;o++){var i=!e&&1==(r>>o&1);8>o?this.modules[8][this.moduleCount-o-1]=i:9>o?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var n=-1,r=this.moduleCount-1,o=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;2>s;s++)if(null==this.modules[r][a-s]){var u=!1;i<e.length&&(u=1==(e[i]>>>o&1));var l=d.getMask(t,r,a-s);l&&(u=!u),this.modules[r][a-s]=u,o--,-1==o&&(i++,o=7)}if(r+=n,0>r||this.moduleCount<=r){r-=n,n=-n;break}}}},n.PAD0=236,n.PAD1=17,n.createData=function(e,t,r){for(var a=o.getRSBlocks(e,t),s=new i,u=0;u<r.length;u++){var l=r[u];s.put(l.mode,4),s.put(l.getLength(),d.getLengthInBits(l.mode,e)),l.write(s)}for(var c=0,u=0;u<a.length;u++)c+=a[u].dataCount;if(s.getLengthInBits()>8*c)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*c+")");for(s.getLengthInBits()+4<=8*c&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;;){if(s.getLengthInBits()>=8*c)break;if(s.put(n.PAD0,8),s.getLengthInBits()>=8*c)break;s.put(n.PAD1,8)}return n.createBytes(s,a)},n.createBytes=function(e,t){for(var n=0,o=0,i=0,a=new Array(t.length),s=new Array(t.length),u=0;u<t.length;u++){var l=t[u].dataCount,c=t[u].totalCount-l;o=Math.max(o,l),i=Math.max(i,c),a[u]=new Array(l);for(var f=0;f<a[u].length;f++)a[u][f]=255&e.buffer[f+n];n+=l;var p=d.getErrorCorrectPolynomial(c),h=new r(a[u],p.getLength()-1),g=h.mod(p);s[u]=new Array(p.getLength()-1);for(var f=0;f<s[u].length;f++){var m=f+g.getLength()-s[u].length;s[u][f]=m>=0?g.get(m):0}}for(var v=0,f=0;f<t.length;f++)v+=t[f].totalCount;for(var y=new Array(v),b=0,f=0;o>f;f++)for(var u=0;u<t.length;u++)f<a[u].length&&(y[b++]=a[u][f]);for(var f=0;i>f;f++)for(var u=0;u<t.length;u++)f<s[u].length&&(y[b++]=s[u][f]);return y};for(var c={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},f={L:1,M:0,Q:3,H:2},p={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},d={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;d.getBCHDigit(t)-d.getBCHDigit(d.G15)>=0;)t^=d.G15<<d.getBCHDigit(t)-d.getBCHDigit(d.G15);
return(e<<10|t)^d.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;d.getBCHDigit(t)-d.getBCHDigit(d.G18)>=0;)t^=d.G18<<d.getBCHDigit(t)-d.getBCHDigit(d.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return d.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case p.PATTERN000:return(t+n)%2==0;case p.PATTERN001:return t%2==0;case p.PATTERN010:return n%3==0;case p.PATTERN011:return(t+n)%3==0;case p.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case p.PATTERN101:return t*n%2+t*n%3==0;case p.PATTERN110:return(t*n%2+t*n%3)%2==0;case p.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new r([1],0),n=0;e>n;n++)t=t.multiply(new r([1,h.gexp(n)],0));return t},getLengthInBits:function(e,t){if(t>=1&&10>t)switch(e){case c.MODE_NUMBER:return 10;case c.MODE_ALPHA_NUM:return 9;case c.MODE_8BIT_BYTE:return 8;case c.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(27>t)switch(e){case c.MODE_NUMBER:return 12;case c.MODE_ALPHA_NUM:return 11;case c.MODE_8BIT_BYTE:return 16;case c.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(41>t))throw new Error("type:"+t);switch(e){case c.MODE_NUMBER:return 14;case c.MODE_ALPHA_NUM:return 13;case c.MODE_8BIT_BYTE:return 16;case c.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,r=0;t>r;r++)for(var o=0;t>o;o++){for(var i=0,a=e.isDark(r,o),s=-1;1>=s;s++)if(!(0>r+s||r+s>=t))for(var u=-1;1>=u;u++)0>o+u||o+u>=t||(0!=s||0!=u)&&a==e.isDark(r+s,o+u)&&i++;i>5&&(n+=3+i-5)}for(var r=0;t-1>r;r++)for(var o=0;t-1>o;o++){var l=0;e.isDark(r,o)&&l++,e.isDark(r+1,o)&&l++,e.isDark(r,o+1)&&l++,e.isDark(r+1,o+1)&&l++,(0==l||4==l)&&(n+=3)}for(var r=0;t>r;r++)for(var o=0;t-6>o;o++)e.isDark(r,o)&&!e.isDark(r,o+1)&&e.isDark(r,o+2)&&e.isDark(r,o+3)&&e.isDark(r,o+4)&&!e.isDark(r,o+5)&&e.isDark(r,o+6)&&(n+=40);for(var o=0;t>o;o++)for(var r=0;t-6>r;r++)e.isDark(r,o)&&!e.isDark(r+1,o)&&e.isDark(r+2,o)&&e.isDark(r+3,o)&&e.isDark(r+4,o)&&!e.isDark(r+5,o)&&e.isDark(r+6,o)&&(n+=40);for(var c=0,o=0;t>o;o++)for(var r=0;t>r;r++)e.isDark(r,o)&&c++;var f=Math.abs(100*c/t/t-50)/5;return n+=10*f}},h={glog:function(e){if(1>e)throw new Error("glog("+e+")");return h.LOG_TABLE[e]},gexp:function(e){for(;0>e;)e+=255;for(;e>=256;)e-=255;return h.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},g=0;8>g;g++)h.EXP_TABLE[g]=1<<g;for(var g=8;256>g;g++)h.EXP_TABLE[g]=h.EXP_TABLE[g-4]^h.EXP_TABLE[g-5]^h.EXP_TABLE[g-6]^h.EXP_TABLE[g-8];for(var g=0;255>g;g++)h.LOG_TABLE[h.EXP_TABLE[g]]=g;r.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var o=0;o<e.getLength();o++)t[n+o]^=h.gexp(h.glog(this.get(n))+h.glog(e.get(o)));return new r(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=h.glog(this.get(0))-h.glog(e.get(0)),n=new Array(this.getLength()),o=0;o<this.getLength();o++)n[o]=this.get(o);for(var o=0;o<e.getLength();o++)n[o]^=h.gexp(h.glog(e.get(o))+t);return new r(n,0).mod(e)}},o.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],o.getRSBlocks=function(e,t){var n=o.getRsBlockTable(e,t);if(void 0==n)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var r=n.length/3,i=[],a=0;r>a;a++)for(var s=n[3*a+0],u=n[3*a+1],l=n[3*a+2],c=0;s>c;c++)i.push(new o(u,l));return i},o.getRsBlockTable=function(e,t){switch(t){case f.L:return o.RS_BLOCK_TABLE[4*(e-1)+0];case f.M:return o.RS_BLOCK_TABLE[4*(e-1)+1];case f.Q:return o.RS_BLOCK_TABLE[4*(e-1)+2];case f.H:return o.RS_BLOCK_TABLE[4*(e-1)+3];default:return void 0}},i.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;t>n;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var m=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]],v=function(){var e=function(e,t){this._el=e,this._htOption=t};return e.prototype.draw=function(e){function t(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg",e);for(var r in t)t.hasOwnProperty(r)&&n.setAttribute(r,t[r]);return n}{var n=this._htOption,r=this._el,o=e.getModuleCount();Math.floor(n.width/o),Math.floor(n.height/o)}this.clear();var i=t("svg",{viewBox:"0 0 "+String(o)+" "+String(o),width:"100%",height:"100%",fill:n.colorLight});i.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),r.appendChild(i),i.appendChild(t("rect",{fill:n.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;o>a;a++)for(var s=0;o>s;s++)if(e.isDark(a,s)){var u=t("use",{x:String(a),y:String(s)});u.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),i.appendChild(u)}},e.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},e}(),y="svg"===document.documentElement.tagName.toLowerCase(),b=y?v:a()?function(){function e(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}function t(e,t){var n=this;if(n._fFail=t,n._fSuccess=e,null===n._bSupportDataURI){var r=document.createElement("img"),o=function(){n._bSupportDataURI=!1,n._fFail&&_fFail.call(n)},i=function(){n._bSupportDataURI=!0,n._fSuccess&&n._fSuccess.call(n)};return r.onabort=o,r.onerror=o,r.onload=i,void(r.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==")}n._bSupportDataURI===!0&&n._fSuccess?n._fSuccess.call(n):n._bSupportDataURI===!1&&n._fFail&&n._fFail.call(n)}if(this._android&&this._android<=2.1){var n=1/window.devicePixelRatio,r=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(e,t,o,i,a,s,u,l){if("nodeName"in e&&/img/i.test(e.nodeName))for(var c=arguments.length-1;c>=1;c--)arguments[c]=arguments[c]*n;else"undefined"==typeof l&&(arguments[1]*=n,arguments[2]*=n,arguments[3]*=n,arguments[4]*=n);r.apply(this,arguments)}}var o=function(e,t){this._bIsPainted=!1,this._android=s(),this._htOption=t,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=t.width,this._elCanvas.height=t.height,e.appendChild(this._elCanvas),this._el=e,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null};return o.prototype.draw=function(e){var t=this._elImage,n=this._oContext,r=this._htOption,o=e.getModuleCount(),i=r.width/o,a=r.height/o,s=Math.round(i),u=Math.round(a);t.style.display="none",this.clear();for(var l=0;o>l;l++)for(var c=0;o>c;c++){var f=e.isDark(l,c),p=c*i,d=l*a;n.strokeStyle=f?r.colorDark:r.colorLight,n.lineWidth=1,n.fillStyle=f?r.colorDark:r.colorLight,n.fillRect(p,d,i,a),n.strokeRect(Math.floor(p)+.5,Math.floor(d)+.5,s,u),n.strokeRect(Math.ceil(p)-.5,Math.ceil(d)-.5,s,u)}this._bIsPainted=!0},o.prototype.makeImage=function(){this._bIsPainted&&t.call(this,e)},o.prototype.isPainted=function(){return this._bIsPainted},o.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},o.prototype.round=function(e){return e?Math.floor(1e3*e)/1e3:e},o}():function(){var e=function(e,t){this._el=e,this._htOption=t};return e.prototype.draw=function(e){for(var t=this._htOption,n=this._el,r=e.getModuleCount(),o=Math.floor(t.width/r),i=Math.floor(t.height/r),a=['<table style="border:0;border-collapse:collapse;">'],s=0;r>s;s++){a.push("<tr>");for(var u=0;r>u;u++)a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+o+"px;height:"+i+"px;background-color:"+(e.isDark(s,u)?t.colorDark:t.colorLight)+';"></td>');a.push("</tr>")}a.push("</table>"),n.innerHTML=a.join("");var l=n.childNodes[0],c=(t.width-l.offsetWidth)/2,f=(t.height-l.offsetHeight)/2;c>0&&f>0&&(l.style.margin=f+"px "+c+"px")},e.prototype.clear=function(){this._el.innerHTML=""},e}();e=function(e,t){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:f.H},"string"==typeof t&&(t={text:t}),t)for(var n in t)this._htOption[n]=t[n];"string"==typeof e&&(e=document.getElementById(e)),this._android=s(),this._el=e,this._oQRCode=null,this._oDrawing=new b(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},e.prototype.makeCode=function(e){this._oQRCode=new n(u(e,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(e),this._oQRCode.make(),this._el.title=e,this._oDrawing.draw(this._oQRCode),this.makeImage()},e.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},e.prototype.clear=function(){this._oDrawing.clear()},e.CorrectLevel=f}(),window.QRCode=e}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\..\\vendor\\qrcode\\qrcode.js","/..\\..\\vendor\\qrcode")},{buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7}],28:[function(){angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdownToggle","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/popup.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.transition",[]).factory("$transition",["$q","$timeout","$rootScope",function(e,t,n){function r(e){for(var t in e)if(void 0!==i.style[t])return e[t]}var o=function(r,i,a){a=a||{};var s=e.defer(),u=o[a.animation?"animationEndEventName":"transitionEndEventName"],l=function(){n.$apply(function(){r.unbind(u,l),s.resolve(r)})};return u&&r.bind(u,l),t(function(){angular.isString(i)?r.addClass(i):angular.isFunction(i)?i(r):angular.isObject(i)&&r.css(i),u||s.resolve(r)}),s.promise.cancel=function(){u&&r.unbind(u,l),s.reject("Transition cancelled")},s.promise},i=document.createElement("trans"),a={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},s={WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"};return o.transitionEndEventName=r(a),o.animationEndEventName=r(s),o}]),angular.module("ui.bootstrap.collapse",["ui.bootstrap.transition"]).directive("collapse",["$transition",function(e){return{link:function(t,n,r){function o(t){function r(){l===o&&(l=void 0)}var o=e(n,t);return l&&l.cancel(),l=o,o.then(r,r),o}function i(){c?(c=!1,a()):(n.removeClass("collapse").addClass("collapsing"),o({height:n[0].scrollHeight+"px"}).then(a))}function a(){n.removeClass("collapsing"),n.addClass("collapse in"),n.css({height:"auto"})}function s(){if(c)c=!1,u(),n.css({height:0});else{n.css({height:n[0].scrollHeight+"px"});{n[0].offsetWidth}n.removeClass("collapse in").addClass("collapsing"),o({height:0}).then(u)}}function u(){n.removeClass("collapsing"),n.addClass("collapse")}var l,c=!0;t.$watch(r.collapse,function(e){e?s():i()})}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("accordionConfig",{closeOthers:!0}).controller("AccordionController",["$scope","$attrs","accordionConfig",function(e,t,n){this.groups=[],this.closeOthers=function(r){var o=angular.isDefined(t.closeOthers)?e.$eval(t.closeOthers):n.closeOthers;o&&angular.forEach(this.groups,function(e){e!==r&&(e.isOpen=!1)})},this.addGroup=function(e){var t=this;this.groups.push(e),e.$on("$destroy",function(){t.removeGroup(e)})},this.removeGroup=function(e){var t=this.groups.indexOf(e);-1!==t&&this.groups.splice(this.groups.indexOf(e),1)}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",transclude:!0,replace:!1,templateUrl:"template/accordion/accordion.html"}}).directive("accordionGroup",["$parse",function(e){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/accordion/accordion-group.html",scope:{heading:"@"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(t,n,r,o){var i,a;o.addGroup(t),t.isOpen=!1,r.isOpen&&(i=e(r.isOpen),a=i.assign,t.$parent.$watch(i,function(e){t.isOpen=!!e})),t.$watch("isOpen",function(e){e&&o.closeOthers(t),a&&a(t.$parent,e)})}}}]).directive("accordionHeading",function(){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",compile:function(e,t,n){return function(e,t,r,o){o.setHeading(n(e,function(){}))}}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(e,t,n,r){e.$watch(function(){return r[n.accordionTransclude]},function(e){e&&(t.html(""),t.append(e))})}}}),angular.module("ui.bootstrap.alert",[]).controller("AlertController",["$scope","$attrs",function(e,t){e.closeable="close"in t}]).directive("alert",function(){return{restrict:"EA",controller:"AlertController",templateUrl:"template/alert/alert.html",transclude:!0,replace:!0,scope:{type:"=",close:"&"}}}),angular.module("ui.bootstrap.bindHtml",[]).directive("bindHtmlUnsafe",function(){return function(e,t,n){t.addClass("ng-binding").data("$binding",n.bindHtmlUnsafe),e.$watch(n.bindHtmlUnsafe,function(e){t.html(e||"")})}}),angular.module("ui.bootstrap.buttons",[]).constant("buttonConfig",{activeClass:"active",toggleEvent:"click"}).controller("ButtonsController",["buttonConfig",function(e){this.activeClass=e.activeClass||"active",this.toggleEvent=e.toggleEvent||"click"}]).directive("btnRadio",function(){return{require:["btnRadio","ngModel"],controller:"ButtonsController",link:function(e,t,n,r){var o=r[0],i=r[1];i.$render=function(){t.toggleClass(o.activeClass,angular.equals(i.$modelValue,e.$eval(n.btnRadio)))},t.bind(o.toggleEvent,function(){t.hasClass(o.activeClass)||e.$apply(function(){i.$setViewValue(e.$eval(n.btnRadio)),i.$render()})})}}}).directive("btnCheckbox",function(){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",link:function(e,t,n,r){function o(){return a(n.btnCheckboxTrue,!0)}function i(){return a(n.btnCheckboxFalse,!1)}function a(t,n){var r=e.$eval(t);return angular.isDefined(r)?r:n}var s=r[0],u=r[1];u.$render=function(){t.toggleClass(s.activeClass,angular.equals(u.$modelValue,o()))},t.bind(s.toggleEvent,function(){e.$apply(function(){u.$setViewValue(t.hasClass(s.activeClass)?i():o()),u.$render()})})}}}),angular.module("ui.bootstrap.carousel",["ui.bootstrap.transition"]).controller("CarouselController",["$scope","$timeout","$transition","$q",function(e,t,n){function r(){o();var n=+e.interval;!isNaN(n)&&n>=0&&(a=t(i,n))}function o(){a&&(t.cancel(a),a=null)}function i(){s?(e.next(),r()):e.pause()}var a,s,u=this,l=u.slides=[],c=-1;u.currentSlide=null;var f=!1;u.select=function(o,i){function a(){if(!f){if(u.currentSlide&&angular.isString(i)&&!e.noTransition&&o.$element){o.$element.addClass(i);{o.$element[0].offsetWidth}angular.forEach(l,function(e){angular.extend(e,{direction:"",entering:!1,leaving:!1,active:!1})}),angular.extend(o,{direction:i,active:!0,entering:!0}),angular.extend(u.currentSlide||{},{direction:i,leaving:!0}),e.$currentTransition=n(o.$element,{}),function(t,n){e.$currentTransition.then(function(){s(t,n)},function(){s(t,n)})}(o,u.currentSlide)}else s(o,u.currentSlide);u.currentSlide=o,c=p,r()}}function s(t,n){angular.extend(t,{direction:"",active:!0,leaving:!1,entering:!1}),angular.extend(n||{},{direction:"",active:!1,leaving:!1,entering:!1}),e.$currentTransition=null}var p=l.indexOf(o);void 0===i&&(i=p>c?"next":"prev"),o&&o!==u.currentSlide&&(e.$currentTransition?(e.$currentTransition.cancel(),t(a)):a())},e.$on("$destroy",function(){f=!0}),u.indexOfSlide=function(e){return l.indexOf(e)},e.next=function(){var t=(c+1)%l.length;return e.$currentTransition?void 0:u.select(l[t],"next")},e.prev=function(){var t=0>c-1?l.length-1:c-1;return e.$currentTransition?void 0:u.select(l[t],"prev")},e.select=function(e){u.select(e)},e.isActive=function(e){return u.currentSlide===e},e.slides=function(){return l},e.$watch("interval",r),e.$on("$destroy",o),e.play=function(){s||(s=!0,r())},e.pause=function(){e.noPause||(s=!1,o())},u.addSlide=function(t,n){t.$element=n,l.push(t),1===l.length||t.active?(u.select(l[l.length-1]),1==l.length&&e.play()):t.active=!1},u.removeSlide=function(e){var t=l.indexOf(e);l.splice(t,1),l.length>0&&e.active?u.select(t>=l.length?l[t-1]:l[t]):c>t&&c--}}]).directive("carousel",[function(){return{restrict:"EA",transclude:!0,replace:!0,controller:"CarouselController",require:"carousel",templateUrl:"template/carousel/carousel.html",scope:{interval:"=",noTransition:"=",noPause:"="}}}]).directive("slide",["$parse",function(e){return{require:"^carousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/carousel/slide.html",scope:{},link:function(t,n,r,o){if(r.active){var i=e(r.active),a=i.assign,s=t.active=i(t.$parent);t.$watch(function(){var e=i(t.$parent);return e!==t.active&&(e!==s?s=t.active=e:a(t.$parent,e=s=t.active)),e})}o.addSlide(t,n),t.$on("$destroy",function(){o.removeSlide(t)}),t.$watch("active",function(e){e&&o.select(t)})}}}]),angular.module("ui.bootstrap.position",[]).factory("$position",["$document","$window",function(e,t){function n(e,n){return e.currentStyle?e.currentStyle[n]:t.getComputedStyle?t.getComputedStyle(e)[n]:e.style[n]}function r(e){return"static"===(n(e,"position")||"static")}var o=function(t){for(var n=e[0],o=t.offsetParent||n;o&&o!==n&&r(o);)o=o.offsetParent;return o||n};return{position:function(t){var n=this.offset(t),r={top:0,left:0},i=o(t[0]);i!=e[0]&&(r=this.offset(angular.element(i)),r.top+=i.clientTop-i.scrollTop,r.left+=i.clientLeft-i.scrollLeft);var a=t[0].getBoundingClientRect();return{width:a.width||t.prop("offsetWidth"),height:a.height||t.prop("offsetHeight"),top:n.top-r.top,left:n.left-r.left}},offset:function(n){var r=n[0].getBoundingClientRect();return{width:r.width||n.prop("offsetWidth"),height:r.height||n.prop("offsetHeight"),top:r.top+(t.pageYOffset||e[0].body.scrollTop||e[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||e[0].body.scrollLeft||e[0].documentElement.scrollLeft)}}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.position"]).constant("datepickerConfig",{dayFormat:"dd",monthFormat:"MMMM",yearFormat:"yyyy",dayHeaderFormat:"EEE",dayTitleFormat:"MMMM yyyy",monthTitleFormat:"yyyy",showWeeks:!0,startingDay:0,yearRange:20,minDate:null,maxDate:null}).controller("DatepickerController",["$scope","$attrs","dateFilter","datepickerConfig",function(e,t,n,r){function o(t,n){return angular.isDefined(t)?e.$parent.$eval(t):n}function i(e,t){return new Date(e,t,0).getDate()}function a(e,t){for(var n=new Array(t),r=e,o=0;t>o;)n[o++]=new Date(r),r.setDate(r.getDate()+1);return n}function s(e,t,r,o){return{date:e,label:n(e,t),selected:!!r,secondary:!!o}}var u={day:o(t.dayFormat,r.dayFormat),month:o(t.monthFormat,r.monthFormat),year:o(t.yearFormat,r.yearFormat),dayHeader:o(t.dayHeaderFormat,r.dayHeaderFormat),dayTitle:o(t.dayTitleFormat,r.dayTitleFormat),monthTitle:o(t.monthTitleFormat,r.monthTitleFormat)},l=o(t.startingDay,r.startingDay),c=o(t.yearRange,r.yearRange);this.minDate=r.minDate?new Date(r.minDate):null,this.maxDate=r.maxDate?new Date(r.maxDate):null,this.modes=[{name:"day",getVisibleDates:function(e,t){var r=e.getFullYear(),o=e.getMonth(),c=new Date(r,o,1),f=l-c.getDay(),p=f>0?7-f:-f,d=new Date(c),h=0;p>0&&(d.setDate(-p+1),h+=p),h+=i(r,o+1),h+=(7-h%7)%7;for(var g=a(d,h),m=new Array(7),v=0;h>v;v++){var y=new Date(g[v]);g[v]=s(y,u.day,t&&t.getDate()===y.getDate()&&t.getMonth()===y.getMonth()&&t.getFullYear()===y.getFullYear(),y.getMonth()!==o)}for(var b=0;7>b;b++)m[b]=n(g[b].date,u.dayHeader);return{objects:g,title:n(e,u.dayTitle),labels:m}},compare:function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},split:7,step:{months:1}},{name:"month",getVisibleDates:function(e,t){for(var r=new Array(12),o=e.getFullYear(),i=0;12>i;i++){var a=new Date(o,i,1);r[i]=s(a,u.month,t&&t.getMonth()===i&&t.getFullYear()===o)}return{objects:r,title:n(e,u.monthTitle)}},compare:function(e,t){return new Date(e.getFullYear(),e.getMonth())-new Date(t.getFullYear(),t.getMonth())},split:3,step:{years:1}},{name:"year",getVisibleDates:function(e,t){for(var n=new Array(c),r=e.getFullYear(),o=parseInt((r-1)/c,10)*c+1,i=0;c>i;i++){var a=new Date(o+i,0,1);n[i]=s(a,u.year,t&&t.getFullYear()===a.getFullYear())}return{objects:n,title:[n[0].label,n[c-1].label].join(" - ")}},compare:function(e,t){return e.getFullYear()-t.getFullYear()},split:5,step:{years:c}}],this.isDisabled=function(t,n){var r=this.modes[n||0];return this.minDate&&r.compare(t,this.minDate)<0||this.maxDate&&r.compare(t,this.maxDate)>0||e.dateDisabled&&e.dateDisabled({date:t,mode:r.name})}}]).directive("datepicker",["dateFilter","$parse","datepickerConfig","$log",function(e,t,n,r){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/datepicker.html",scope:{dateDisabled:"&"},require:["datepicker","?^ngModel"],controller:"DatepickerController",link:function(e,o,i,a){function s(){e.showWeekNumbers=0===h&&m}function u(e,t){for(var n=[];e.length>0;)n.push(e.splice(0,t));return n}function l(t){var n=null,o=!0;d.$modelValue&&(n=new Date(d.$modelValue),isNaN(n)?(o=!1,r.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):t&&(g=n)),d.$setValidity("date",o);var i=p.modes[h],a=i.getVisibleDates(g,n);angular.forEach(a.objects,function(e){e.disabled=p.isDisabled(e.date,h)}),d.$setValidity("date-disabled",!n||!p.isDisabled(n)),e.rows=u(a.objects,i.split),e.labels=a.labels||[],e.title=a.title}function c(e){h=e,s(),l()}function f(e){var t=new Date(e);t.setDate(t.getDate()+4-(t.getDay()||7));var n=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t)/864e5)/7)+1}var p=a[0],d=a[1];if(d){var h=0,g=new Date,m=n.showWeeks;i.showWeeks?e.$parent.$watch(t(i.showWeeks),function(e){m=!!e,s()}):s(),i.min&&e.$parent.$watch(t(i.min),function(e){p.minDate=e?new Date(e):null,l()}),i.max&&e.$parent.$watch(t(i.max),function(e){p.maxDate=e?new Date(e):null,l()}),d.$render=function(){l(!0)},e.select=function(e){if(0===h){var t=d.$modelValue?new Date(d.$modelValue):new Date(0,0,0,0,0,0,0);t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),d.$setViewValue(t),l(!0)}else g=e,c(h-1)},e.move=function(e){var t=p.modes[h].step;g.setMonth(g.getMonth()+e*(t.months||0)),g.setFullYear(g.getFullYear()+e*(t.years||0)),l()},e.toggleMode=function(){c((h+1)%p.modes.length)},e.getWeekNumber=function(t){return 0===h&&e.showWeekNumbers&&7===t.length?f(t[0].date):null}}}}}]).constant("datepickerPopupConfig",{dateFormat:"yyyy-MM-dd",currentText:"Today",toggleWeeksText:"Weeks",clearText:"Clear",closeText:"Done",closeOnDateSelection:!0,appendToBody:!1,showButtonBar:!0}).directive("datepickerPopup",["$compile","$parse","$document","$position","dateFilter","datepickerPopupConfig","datepickerConfig",function(e,t,n,r,o,i,a){return{restrict:"EA",require:"ngModel",link:function(s,u,l,c){function f(e){$?$(s,!!e):m.isOpen=!!e}function p(e){if(e){if(angular.isDate(e))return c.$setValidity("date",!0),e;if(angular.isString(e)){var t=new Date(e);return isNaN(t)?void c.$setValidity("date",!1):(c.$setValidity("date",!0),t)}return void c.$setValidity("date",!1)}return c.$setValidity("date",!0),null}function d(e,n,r){e&&(s.$watch(t(e),function(e){m[n]=e}),k.attr(r||n,n))}function h(){m.position=y?r.offset(u):r.position(u),m.position.top=m.position.top+u.prop("offsetHeight")}var g,m=s.$new(),v=angular.isDefined(l.closeOnDateSelection)?s.$eval(l.closeOnDateSelection):i.closeOnDateSelection,y=angular.isDefined(l.datepickerAppendToBody)?s.$eval(l.datepickerAppendToBody):i.appendToBody;l.$observe("datepickerPopup",function(e){g=e||i.dateFormat,c.$render()}),m.showButtonBar=angular.isDefined(l.showButtonBar)?s.$eval(l.showButtonBar):i.showButtonBar,s.$on("$destroy",function(){T.remove(),m.$destroy()}),l.$observe("currentText",function(e){m.currentText=angular.isDefined(e)?e:i.currentText}),l.$observe("toggleWeeksText",function(e){m.toggleWeeksText=angular.isDefined(e)?e:i.toggleWeeksText}),l.$observe("clearText",function(e){m.clearText=angular.isDefined(e)?e:i.clearText}),l.$observe("closeText",function(e){m.closeText=angular.isDefined(e)?e:i.closeText});var b,$;l.isOpen&&(b=t(l.isOpen),$=b.assign,s.$watch(b,function(e){m.isOpen=!!e})),m.isOpen=b?b(s):!1;var w=function(e){m.isOpen&&e.target!==u[0]&&m.$apply(function(){f(!1)})},x=function(){m.$apply(function(){f(!0)})},_=angular.element("<div datepicker-popup-wrap><div datepicker></div></div>");_.attr({"ng-model":"date","ng-change":"dateSelection()"});var k=angular.element(_.children()[0]),S={};l.datepickerOptions&&(S=s.$eval(l.datepickerOptions),k.attr(angular.extend({},S))),c.$parsers.unshift(p),m.dateSelection=function(e){angular.isDefined(e)&&(m.date=e),c.$setViewValue(m.date),c.$render(),v&&f(!1)},u.bind("input change keyup",function(){m.$apply(function(){m.date=c.$modelValue})}),c.$render=function(){var e=c.$viewValue?o(c.$viewValue,g):"";u.val(e),m.date=c.$modelValue},d(l.min,"min"),d(l.max,"max"),l.showWeeks?d(l.showWeeks,"showWeeks","show-weeks"):(m.showWeeks="show-weeks"in S?S["show-weeks"]:a.showWeeks,k.attr("show-weeks","showWeeks")),l.dateDisabled&&k.attr("date-disabled",l.dateDisabled);var E=!1,C=!1;m.$watch("isOpen",function(e){e?(h(),n.bind("click",w),C&&u.unbind("focus",x),u[0].focus(),E=!0):(E&&n.unbind("click",w),u.bind("focus",x),C=!0),$&&$(s,e)}),m.today=function(){m.dateSelection(new Date)},m.clear=function(){m.dateSelection(null)};var T=e(_)(m);y?n.find("body").append(T):u.after(T)}}}]).directive("datepickerPopupWrap",function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"template/datepicker/popup.html",link:function(e,t){t.bind("click",function(e){e.preventDefault(),e.stopPropagation()})}}}),angular.module("ui.bootstrap.dropdownToggle",[]).directive("dropdownToggle",["$document","$location",function(e){var t=null,n=angular.noop;return{restrict:"CA",link:function(r,o){r.$watch("$location.path",function(){n()}),o.parent().bind("click",function(){n()}),o.bind("click",function(r){var i=o===t;r.preventDefault(),r.stopPropagation(),t&&n(),i||o.hasClass("disabled")||o.prop("disabled")||(o.parent().addClass("open"),t=o,n=function(r){r&&(r.preventDefault(),r.stopPropagation()),e.unbind("click",n),o.parent().removeClass("open"),n=angular.noop,t=null},e.bind("click",n))})}}}]),angular.module("ui.bootstrap.modal",["ui.bootstrap.transition"]).factory("$$stackedMap",function(){return{createNew:function(){var e=[];
return{add:function(t,n){e.push({key:t,value:n})},get:function(t){for(var n=0;n<e.length;n++)if(t==e[n].key)return e[n]},keys:function(){for(var t=[],n=0;n<e.length;n++)t.push(e[n].key);return t},top:function(){return e[e.length-1]},remove:function(t){for(var n=-1,r=0;r<e.length;r++)if(t==e[r].key){n=r;break}return e.splice(n,1)[0]},removeTop:function(){return e.splice(e.length-1,1)[0]},length:function(){return e.length}}}}}).directive("modalBackdrop",["$timeout",function(e){return{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",link:function(t){t.animate=!1,e(function(){t.animate=!0})}}}]).directive("modalWindow",["$modalStack","$timeout",function(e,t){return{restrict:"EA",scope:{index:"@",animate:"="},replace:!0,transclude:!0,templateUrl:"template/modal/window.html",link:function(n,r,o){n.windowClass=o.windowClass||"",t(function(){n.animate=!0,r[0].focus()}),n.close=function(t){var n=e.getTop();n&&n.value.backdrop&&"static"!=n.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),e.dismiss(n.key,"backdrop click"))}}}}]).factory("$modalStack",["$transition","$timeout","$document","$compile","$rootScope","$$stackedMap",function(e,t,n,r,o,i){function a(){for(var e=-1,t=d.keys(),n=0;n<t.length;n++)d.get(t[n]).value.backdrop&&(e=n);return e}function s(e){var t=n.find("body").eq(0),r=d.get(e).value;d.remove(e),l(r.modalDomEl,r.modalScope,300,u),t.toggleClass(p,d.length()>0)}function u(){if(c&&-1==a()){var e=f;l(c,f,150,function(){e.$destroy(),e=null}),c=void 0,f=void 0}}function l(n,r,o,i){function a(){a.done||(a.done=!0,n.remove(),i&&i())}r.animate=!1;var s=e.transitionEndEventName;if(s){var u=t(a,o);n.bind(s,function(){t.cancel(u),a(),r.$apply()})}else t(a,0)}var c,f,p="modal-open",d=i.createNew(),h={};return o.$watch(a,function(e){f&&(f.index=e)}),n.bind("keydown",function(e){var t;27===e.which&&(t=d.top(),t&&t.value.keyboard&&o.$apply(function(){h.dismiss(t.key)}))}),h.open=function(e,t){d.add(e,{deferred:t.deferred,modalScope:t.scope,backdrop:t.backdrop,keyboard:t.keyboard});var i=n.find("body").eq(0),s=a();s>=0&&!c&&(f=o.$new(!0),f.index=s,c=r("<div modal-backdrop></div>")(f),i.append(c));var u=angular.element("<div modal-window></div>");u.attr("window-class",t.windowClass),u.attr("index",d.length()-1),u.attr("animate","animate"),u.html(t.content);var l=r(u)(t.scope);d.top().value.modalDomEl=l,i.append(l),i.addClass(p)},h.close=function(e,t){var n=d.get(e).value;n&&(n.deferred.resolve(t),s(e))},h.dismiss=function(e,t){var n=d.get(e).value;n&&(n.deferred.reject(t),s(e))},h.dismissAll=function(e){for(var t=this.getTop();t;)this.dismiss(t.key,e),t=this.getTop()},h.getTop=function(){return d.top()},h}]).provider("$modal",function(){var e={options:{backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$http","$templateCache","$controller","$modalStack",function(t,n,r,o,i,a,s){function u(e){return e.template?r.when(e.template):o.get(e.templateUrl,{cache:i}).then(function(e){return e.data})}function l(e){var n=[];return angular.forEach(e,function(e){(angular.isFunction(e)||angular.isArray(e))&&n.push(r.when(t.invoke(e)))}),n}var c={};return c.open=function(t){var o=r.defer(),i=r.defer(),c={result:o.promise,opened:i.promise,close:function(e){s.close(c,e)},dismiss:function(e){s.dismiss(c,e)}};if(t=angular.extend({},e.options,t),t.resolve=t.resolve||{},!t.template&&!t.templateUrl)throw new Error("One of template or templateUrl options is required.");var f=r.all([u(t)].concat(l(t.resolve)));return f.then(function(e){var r=(t.scope||n).$new();r.$close=c.close,r.$dismiss=c.dismiss;var i,u={},l=1;t.controller&&(u.$scope=r,u.$modalInstance=c,angular.forEach(t.resolve,function(t,n){u[n]=e[l++]}),i=a(t.controller,u)),s.open(c,{scope:r,deferred:o,content:e[0],backdrop:t.backdrop,keyboard:t.keyboard,windowClass:t.windowClass})},function(e){o.reject(e)}),f.then(function(){i.resolve(!0)},function(){i.reject(!1)}),c},c}]};return e}),angular.module("ui.bootstrap.pagination",[]).controller("PaginationController",["$scope","$attrs","$parse","$interpolate",function(e,t,n,r){var o=this,i=t.numPages?n(t.numPages).assign:angular.noop;this.init=function(r){t.itemsPerPage?e.$parent.$watch(n(t.itemsPerPage),function(t){o.itemsPerPage=parseInt(t,10),e.totalPages=o.calculateTotalPages()}):this.itemsPerPage=r},this.noPrevious=function(){return 1===this.page},this.noNext=function(){return this.page===e.totalPages},this.isActive=function(e){return this.page===e},this.calculateTotalPages=function(){var t=this.itemsPerPage<1?1:Math.ceil(e.totalItems/this.itemsPerPage);return Math.max(t||0,1)},this.getAttributeValue=function(t,n,o){return angular.isDefined(t)?o?r(t)(e.$parent):e.$parent.$eval(t):n},this.render=function(){this.page=parseInt(e.page,10)||1,this.page>0&&this.page<=e.totalPages&&(e.pages=this.getPages(this.page,e.totalPages))},e.selectPage=function(t){!o.isActive(t)&&t>0&&t<=e.totalPages&&(e.page=t,e.onSelectPage({page:t}))},e.$watch("page",function(){o.render()}),e.$watch("totalItems",function(){e.totalPages=o.calculateTotalPages()}),e.$watch("totalPages",function(t){i(e.$parent,t),o.page>t?e.selectPage(t):o.render()})}]).constant("paginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("pagination",["$parse","paginationConfig",function(e,t){return{restrict:"EA",scope:{page:"=",totalItems:"=",onSelectPage:" &"},controller:"PaginationController",templateUrl:"template/pagination/pagination.html",replace:!0,link:function(n,r,o,i){function a(e,t,n,r){return{number:e,text:t,active:n,disabled:r}}var s,u=i.getAttributeValue(o.boundaryLinks,t.boundaryLinks),l=i.getAttributeValue(o.directionLinks,t.directionLinks),c=i.getAttributeValue(o.firstText,t.firstText,!0),f=i.getAttributeValue(o.previousText,t.previousText,!0),p=i.getAttributeValue(o.nextText,t.nextText,!0),d=i.getAttributeValue(o.lastText,t.lastText,!0),h=i.getAttributeValue(o.rotate,t.rotate);i.init(t.itemsPerPage),o.maxSize&&n.$parent.$watch(e(o.maxSize),function(e){s=parseInt(e,10),i.render()}),i.getPages=function(e,t){var n=[],r=1,o=t,g=angular.isDefined(s)&&t>s;g&&(h?(r=Math.max(e-Math.floor(s/2),1),o=r+s-1,o>t&&(o=t,r=o-s+1)):(r=(Math.ceil(e/s)-1)*s+1,o=Math.min(r+s-1,t)));for(var m=r;o>=m;m++){var v=a(m,m,i.isActive(m),!1);n.push(v)}if(g&&!h){if(r>1){var y=a(r-1,"...",!1,!1);n.unshift(y)}if(t>o){var b=a(o+1,"...",!1,!1);n.push(b)}}if(l){var $=a(e-1,f,!1,i.noPrevious());n.unshift($);var w=a(e+1,p,!1,i.noNext());n.push(w)}if(u){var x=a(1,c,!1,i.noPrevious());n.unshift(x);var _=a(t,d,!1,i.noNext());n.push(_)}return n}}}}]).constant("pagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("pager",["pagerConfig",function(e){return{restrict:"EA",scope:{page:"=",totalItems:"=",onSelectPage:" &"},controller:"PaginationController",templateUrl:"template/pagination/pager.html",replace:!0,link:function(t,n,r,o){function i(e,t,n,r,o){return{number:e,text:t,disabled:n,previous:u&&r,next:u&&o}}var a=o.getAttributeValue(r.previousText,e.previousText,!0),s=o.getAttributeValue(r.nextText,e.nextText,!0),u=o.getAttributeValue(r.align,e.align);o.init(e.itemsPerPage),o.getPages=function(e){return[i(e-1,a,o.noPrevious(),!0,!1),i(e+1,s,o.noNext(),!1,!0)]}}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",function(){function e(e){var t=/[A-Z]/g,n="-";return e.replace(t,function(e,t){return(t?n:"")+e.toLowerCase()})}var t={placement:"top",animation:!0,popupDelay:0},n={mouseenter:"mouseleave",click:"click",focus:"blur"},r={};this.options=function(e){angular.extend(r,e)},this.setTriggers=function(e){angular.extend(n,e)},this.$get=["$window","$compile","$timeout","$parse","$document","$position","$interpolate",function(o,i,a,s,u,l,c){return function(o,f,p){function d(e){var t=e||h.trigger||p,r=n[t]||t;return{show:t,hide:r}}var h=angular.extend({},t,r),g=e(o),m=c.startSymbol(),v=c.endSymbol(),y="<div "+g+'-popup title="'+m+"tt_title"+v+'" content="'+m+"tt_content"+v+'" placement="'+m+"tt_placement"+v+'" animation="tt_animation" is-open="tt_isOpen"></div>';return{restrict:"EA",scope:!0,compile:function(){var e=i(y);return function(t,n,r){function i(){t.tt_isOpen?p():c()}function c(){(!S||t.$eval(r[f+"Enable"]))&&(t.tt_popupDelay?(w=a(g,t.tt_popupDelay,!1),w.then(function(e){e()})):g()())}function p(){t.$apply(function(){m()})}function g(){return t.tt_content?(v(),$&&a.cancel($),b.css({top:0,left:0,display:"block"}),x?u.find("body").append(b):n.after(b),E(),t.tt_isOpen=!0,t.$digest(),E):angular.noop}function m(){t.tt_isOpen=!1,a.cancel(w),t.tt_animation?$=a(y,500):y()}function v(){b&&y(),b=e(t,function(){}),t.$digest()}function y(){b&&(b.remove(),b=null)}var b,$,w,x=angular.isDefined(h.appendToBody)?h.appendToBody:!1,_=d(void 0),k=!1,S=angular.isDefined(r[f+"Enable"]),E=function(){var e,r,o,i;switch(e=x?l.offset(n):l.position(n),r=b.prop("offsetWidth"),o=b.prop("offsetHeight"),t.tt_placement){case"right":i={top:e.top+e.height/2-o/2,left:e.left+e.width};break;case"bottom":i={top:e.top+e.height,left:e.left+e.width/2-r/2};break;case"left":i={top:e.top+e.height/2-o/2,left:e.left-r};break;default:i={top:e.top-o,left:e.left+e.width/2-r/2}}i.top+="px",i.left+="px",b.css(i)};t.tt_isOpen=!1,r.$observe(o,function(e){t.tt_content=e,!e&&t.tt_isOpen&&m()}),r.$observe(f+"Title",function(e){t.tt_title=e}),r.$observe(f+"Placement",function(e){t.tt_placement=angular.isDefined(e)?e:h.placement}),r.$observe(f+"PopupDelay",function(e){var n=parseInt(e,10);t.tt_popupDelay=isNaN(n)?h.popupDelay:n});var C=function(){k&&(n.unbind(_.show,c),n.unbind(_.hide,p))};r.$observe(f+"Trigger",function(e){C(),_=d(e),_.show===_.hide?n.bind(_.show,i):(n.bind(_.show,c),n.bind(_.hide,p)),k=!0});var T=t.$eval(r[f+"Animation"]);t.tt_animation=angular.isDefined(T)?!!T:h.animation,r.$observe(f+"AppendToBody",function(e){x=angular.isDefined(e)?s(e)(t):x}),x&&t.$on("$locationChangeSuccess",function(){t.tt_isOpen&&m()}),t.$on("$destroy",function(){a.cancel($),a.cancel(w),C(),y()})}}}}}]}).directive("tooltipPopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}}).directive("tooltip",["$tooltip",function(e){return e("tooltip","tooltip","mouseenter")}]).directive("tooltipHtmlUnsafePopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}}).directive("tooltipHtmlUnsafe",["$tooltip",function(e){return e("tooltipHtmlUnsafe","tooltip","mouseenter")}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("popoverPopup",function(){return{restrict:"EA",replace:!0,scope:{title:"@",content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html"}}).directive("popover",["$tooltip",function(e){return e("popover","popover","click")}]),angular.module("ui.bootstrap.progressbar",["ui.bootstrap.transition"]).constant("progressConfig",{animate:!0,max:100}).controller("ProgressController",["$scope","$attrs","progressConfig","$transition",function(e,t,n,r){var o=this,i=[],a=angular.isDefined(t.max)?e.$parent.$eval(t.max):n.max,s=angular.isDefined(t.animate)?e.$parent.$eval(t.animate):n.animate;this.addBar=function(e,t){var n=0,r=e.$parent.$index;angular.isDefined(r)&&i[r]&&(n=i[r].value),i.push(e),this.update(t,e.value,n),e.$watch("value",function(e,n){e!==n&&o.update(t,e,n)}),e.$on("$destroy",function(){o.removeBar(e)})},this.update=function(e,t,n){var o=this.getPercentage(t);s?(e.css("width",this.getPercentage(n)+"%"),r(e,{width:o+"%"})):e.css({transition:"none",width:o+"%"})},this.removeBar=function(e){i.splice(i.indexOf(e),1)},this.getPercentage=function(e){return Math.round(100*e/a)}}]).directive("progress",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",require:"progress",scope:{},template:'<div class="progress" ng-transclude></div>'}}).directive("bar",function(){return{restrict:"EA",replace:!0,transclude:!0,require:"^progress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(e,t,n,r){r.addBar(e,t)}}}).directive("progressbar",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(e,t,n,r){r.addBar(e,angular.element(t.children()[0]))}}}),angular.module("ui.bootstrap.rating",[]).constant("ratingConfig",{max:5,stateOn:null,stateOff:null}).controller("RatingController",["$scope","$attrs","$parse","ratingConfig",function(e,t,n,r){this.maxRange=angular.isDefined(t.max)?e.$parent.$eval(t.max):r.max,this.stateOn=angular.isDefined(t.stateOn)?e.$parent.$eval(t.stateOn):r.stateOn,this.stateOff=angular.isDefined(t.stateOff)?e.$parent.$eval(t.stateOff):r.stateOff,this.createRateObjects=function(e){for(var t={stateOn:this.stateOn,stateOff:this.stateOff},n=0,r=e.length;r>n;n++)e[n]=angular.extend({index:n},t,e[n]);return e},e.range=this.createRateObjects(angular.isDefined(t.ratingStates)?angular.copy(e.$parent.$eval(t.ratingStates)):new Array(this.maxRange)),e.rate=function(t){e.value===t||e.readonly||(e.value=t)},e.enter=function(t){e.readonly||(e.val=t),e.onHover({value:t})},e.reset=function(){e.val=angular.copy(e.value),e.onLeave()},e.$watch("value",function(t){e.val=t}),e.readonly=!1,t.readonly&&e.$parent.$watch(n(t.readonly),function(t){e.readonly=!!t})}]).directive("rating",function(){return{restrict:"EA",scope:{value:"=",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0}}),angular.module("ui.bootstrap.tabs",[]).controller("TabsetController",["$scope",function(e){var t=this,n=t.tabs=e.tabs=[];t.select=function(e){angular.forEach(n,function(e){e.active=!1}),e.active=!0},t.addTab=function(e){n.push(e),(1===n.length||e.active)&&t.select(e)},t.removeTab=function(e){var r=n.indexOf(e);if(e.active&&n.length>1){var o=r==n.length-1?r-1:r+1;t.select(n[o])}n.splice(r,1)}}]).directive("tabset",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(e,t,n){e.vertical=angular.isDefined(n.vertical)?e.$parent.$eval(n.vertical):!1,e.justified=angular.isDefined(n.justified)?e.$parent.$eval(n.justified):!1,e.type=angular.isDefined(n.type)?e.$parent.$eval(n.type):"tabs"}}}).directive("tab",["$parse",function(e){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},compile:function(t,n,r){return function(t,n,o,i){var a,s;o.active?(a=e(o.active),s=a.assign,t.$parent.$watch(a,function(e,n){e!==n&&(t.active=!!e)}),t.active=a(t.$parent)):s=a=angular.noop,t.$watch("active",function(e){s(t.$parent,e),e?(i.select(t),t.onSelect()):t.onDeselect()}),t.disabled=!1,o.disabled&&t.$parent.$watch(e(o.disabled),function(e){t.disabled=!!e}),t.select=function(){t.disabled||(t.active=!0)},i.addTab(t),t.$on("$destroy",function(){i.removeTab(t)}),t.$transcludeFn=r}}}}]).directive("tabHeadingTransclude",[function(){return{restrict:"A",require:"^tab",link:function(e,t){e.$watch("headingElement",function(e){e&&(t.html(""),t.append(e))})}}}]).directive("tabContentTransclude",function(){function e(e){return e.tagName&&(e.hasAttribute("tab-heading")||e.hasAttribute("data-tab-heading")||"tab-heading"===e.tagName.toLowerCase()||"data-tab-heading"===e.tagName.toLowerCase())}return{restrict:"A",require:"^tabset",link:function(t,n,r){var o=t.$eval(r.tabContentTransclude);o.$transcludeFn(o.$parent,function(t){angular.forEach(t,function(t){e(t)?o.headingElement=t:n.append(t)})})}}}),angular.module("ui.bootstrap.timepicker",[]).constant("timepickerConfig",{hourStep:1,minuteStep:1,showMeridian:!0,meridians:null,readonlyInput:!1,mousewheel:!0}).directive("timepicker",["$parse","$log","timepickerConfig","$locale",function(e,t,n,r){return{restrict:"EA",require:"?^ngModel",replace:!0,scope:{},templateUrl:"template/timepicker/timepicker.html",link:function(o,i,a,s){function u(){var e=parseInt(o.hours,10),t=o.showMeridian?e>0&&13>e:e>=0&&24>e;return t?(o.showMeridian&&(12===e&&(e=0),o.meridian===m[1]&&(e+=12)),e):void 0}function l(){var e=parseInt(o.minutes,10);return e>=0&&60>e?e:void 0}function c(e){return angular.isDefined(e)&&e.toString().length<2?"0"+e:e}function f(e){p(),s.$setViewValue(new Date(g)),d(e)}function p(){s.$setValidity("time",!0),o.invalidHours=!1,o.invalidMinutes=!1}function d(e){var t=g.getHours(),n=g.getMinutes();o.showMeridian&&(t=0===t||12===t?12:t%12),o.hours="h"===e?t:c(t),o.minutes="m"===e?n:c(n),o.meridian=g.getHours()<12?m[0]:m[1]}function h(e){var t=new Date(g.getTime()+6e4*e);g.setHours(t.getHours(),t.getMinutes()),f()}if(s){var g=new Date,m=angular.isDefined(a.meridians)?o.$parent.$eval(a.meridians):n.meridians||r.DATETIME_FORMATS.AMPMS,v=n.hourStep;a.hourStep&&o.$parent.$watch(e(a.hourStep),function(e){v=parseInt(e,10)});var y=n.minuteStep;a.minuteStep&&o.$parent.$watch(e(a.minuteStep),function(e){y=parseInt(e,10)}),o.showMeridian=n.showMeridian,a.showMeridian&&o.$parent.$watch(e(a.showMeridian),function(e){if(o.showMeridian=!!e,s.$error.time){var t=u(),n=l();angular.isDefined(t)&&angular.isDefined(n)&&(g.setHours(t),f())}else d()});var b=i.find("input"),$=b.eq(0),w=b.eq(1),x=angular.isDefined(a.mousewheel)?o.$eval(a.mousewheel):n.mousewheel;if(x){var _=function(e){e.originalEvent&&(e=e.originalEvent);var t=e.wheelDelta?e.wheelDelta:-e.deltaY;return e.detail||t>0};$.bind("mousewheel wheel",function(e){o.$apply(_(e)?o.incrementHours():o.decrementHours()),e.preventDefault()}),w.bind("mousewheel wheel",function(e){o.$apply(_(e)?o.incrementMinutes():o.decrementMinutes()),e.preventDefault()})}if(o.readonlyInput=angular.isDefined(a.readonlyInput)?o.$eval(a.readonlyInput):n.readonlyInput,o.readonlyInput)o.updateHours=angular.noop,o.updateMinutes=angular.noop;else{var k=function(e,t){s.$setViewValue(null),s.$setValidity("time",!1),angular.isDefined(e)&&(o.invalidHours=e),angular.isDefined(t)&&(o.invalidMinutes=t)};o.updateHours=function(){var e=u();angular.isDefined(e)?(g.setHours(e),f("h")):k(!0)},$.bind("blur",function(){!o.validHours&&o.hours<10&&o.$apply(function(){o.hours=c(o.hours)})}),o.updateMinutes=function(){var e=l();angular.isDefined(e)?(g.setMinutes(e),f("m")):k(void 0,!0)},w.bind("blur",function(){!o.invalidMinutes&&o.minutes<10&&o.$apply(function(){o.minutes=c(o.minutes)})})}s.$render=function(){var e=s.$modelValue?new Date(s.$modelValue):null;isNaN(e)?(s.$setValidity("time",!1),t.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(e&&(g=e),p(),d())},o.incrementHours=function(){h(60*v)},o.decrementHours=function(){h(60*-v)},o.incrementMinutes=function(){h(y)},o.decrementMinutes=function(){h(-y)},o.toggleMeridian=function(){h(720*(g.getHours()<12?1:-1))}}}}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).factory("typeaheadParser",["$parse",function(e){var t=/^\s*(.*?)(?:\s+as\s+(.*?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+(.*)$/;return{parse:function(n){var r=n.match(t);if(!r)throw new Error("Expected typeahead specification in form of '_modelValue_ (as _label_)? for _item_ in _collection_' but got '"+n+"'.");return{itemName:r[3],source:e(r[4]),viewMapper:e(r[2]||r[1]),modelMapper:e(r[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$position","typeaheadParser",function(e,t,n,r,o,i,a){var s=[9,13,27,38,40];return{require:"ngModel",link:function(u,l,c,f){var p,d=u.$eval(c.typeaheadMinLength)||1,h=u.$eval(c.typeaheadWaitMs)||0,g=u.$eval(c.typeaheadEditable)!==!1,m=t(c.typeaheadLoading).assign||angular.noop,v=t(c.typeaheadOnSelect),y=c.typeaheadInputFormatter?t(c.typeaheadInputFormatter):void 0,b=c.typeaheadAppendToBody?t(c.typeaheadAppendToBody):!1,$=t(c.ngModel).assign,w=a.parse(c.typeahead),x=angular.element("<div typeahead-popup></div>");x.attr({matches:"matches",active:"activeIdx",select:"select(activeIdx)",query:"query",position:"position"}),angular.isDefined(c.typeaheadTemplateUrl)&&x.attr("template-url",c.typeaheadTemplateUrl);var _=u.$new();u.$on("$destroy",function(){_.$destroy()});var k=function(){_.matches=[],_.activeIdx=-1},S=function(e){var t={$viewValue:e};m(u,!0),n.when(w.source(u,t)).then(function(n){if(e===f.$viewValue&&p){if(n.length>0){_.activeIdx=0,_.matches.length=0;for(var r=0;r<n.length;r++)t[w.itemName]=n[r],_.matches.push({label:w.viewMapper(_,t),model:n[r]});_.query=e,_.position=b?i.offset(l):i.position(l),_.position.top=_.position.top+l.prop("offsetHeight")}else k();m(u,!1)}},function(){k(),m(u,!1)})};k(),_.query=void 0;var E;f.$parsers.unshift(function(e){return p=!0,e&&e.length>=d?h>0?(E&&r.cancel(E),E=r(function(){S(e)},h)):S(e):(m(u,!1),k()),g?e:e?void f.$setValidity("editable",!1):(f.$setValidity("editable",!0),e)}),f.$formatters.push(function(e){var t,n,r={};return y?(r.$model=e,y(u,r)):(r[w.itemName]=e,t=w.viewMapper(u,r),r[w.itemName]=void 0,n=w.viewMapper(u,r),t!==n?t:e)}),_.select=function(e){var t,n,r={};r[w.itemName]=n=_.matches[e].model,t=w.modelMapper(u,r),$(u,t),f.$setValidity("editable",!0),v(u,{$item:n,$model:t,$label:w.viewMapper(u,r)}),k(),l[0].focus()},l.bind("keydown",function(e){0!==_.matches.length&&-1!==s.indexOf(e.which)&&(e.preventDefault(),40===e.which?(_.activeIdx=(_.activeIdx+1)%_.matches.length,_.$digest()):38===e.which?(_.activeIdx=(_.activeIdx?_.activeIdx:_.matches.length)-1,_.$digest()):13===e.which||9===e.which?_.$apply(function(){_.select(_.activeIdx)}):27===e.which&&(e.stopPropagation(),k(),_.$digest()))}),l.bind("blur",function(){p=!1});var C=function(e){l[0]!==e.target&&(k(),_.$digest())};o.bind("click",C),u.$on("$destroy",function(){o.unbind("click",C)});var T=e(x)(_);b?o.find("body").append(T):l.after(T)}}}]).directive("typeaheadPopup",function(){return{restrict:"EA",scope:{matches:"=",query:"=",active:"=",position:"=",select:"&"},replace:!0,templateUrl:"template/typeahead/typeahead-popup.html",link:function(e,t,n){e.templateUrl=n.templateUrl,e.isOpen=function(){return e.matches.length>0},e.isActive=function(t){return e.active==t},e.selectActive=function(t){e.active=t},e.selectMatch=function(t){e.select({activeIdx:t})}}}}).directive("typeaheadMatch",["$http","$templateCache","$compile","$parse",function(e,t,n,r){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(o,i,a){var s=r(a.templateUrl)(o.$parent)||"template/typeahead/typeahead-match.html";e.get(s,{cache:t}).success(function(e){i.replaceWith(n(e.trim())(o))})}}}]).filter("typeaheadHighlight",function(){function e(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(t,n){return n?t.replace(new RegExp(e(n),"gi"),"<strong>$&</strong>"):t}}),angular.module("template/accordion/accordion-group.html",[]).run(["$templateCache",function(e){e.put("template/accordion/accordion-group.html",'<div class="panel panel-default">\n  <div class="panel-heading">\n    <h4 class="panel-title">\n      <a class="accordion-toggle" ng-click="isOpen = !isOpen" accordion-transclude="heading">{{heading}}</a>\n    </h4>\n  </div>\n  <div class="panel-collapse" collapse="!isOpen">\n	  <div class="panel-body" ng-transclude></div>\n  </div>\n</div>')}]),angular.module("template/accordion/accordion.html",[]).run(["$templateCache",function(e){e.put("template/accordion/accordion.html",'<div class="panel-group" ng-transclude></div>')}]),angular.module("template/alert/alert.html",[]).run(["$templateCache",function(e){e.put("template/alert/alert.html","<div class='alert' ng-class='\"alert-\" + (type || \"warning\")'>\n    <button ng-show='closeable' type='button' class='close' ng-click='close()'>&times;</button>\n    <div ng-transclude></div>\n</div>\n")}]),angular.module("template/carousel/carousel.html",[]).run(["$templateCache",function(e){e.put("template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel">\n    <ol class="carousel-indicators" ng-show="slides().length > 1">\n        <li ng-repeat="slide in slides()" ng-class="{active: isActive(slide)}" ng-click="select(slide)"></li>\n    </ol>\n    <div class="carousel-inner" ng-transclude></div>\n    <a class="left carousel-control" ng-click="prev()" ng-show="slides().length > 1"><span class="icon-prev"></span></a>\n    <a class="right carousel-control" ng-click="next()" ng-show="slides().length > 1"><span class="icon-next"></span></a>\n</div>\n')}]),angular.module("template/carousel/slide.html",[]).run(["$templateCache",function(e){e.put("template/carousel/slide.html","<div ng-class=\"{\n    'active': leaving || (active && !entering),\n    'prev': (next || active) && direction=='prev',\n    'next': (next || active) && direction=='next',\n    'right': direction=='prev',\n    'left': direction=='next'\n  }\" class=\"item text-center\" ng-transclude></div>\n")}]),angular.module("template/datepicker/datepicker.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/datepicker.html",'<table>\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th colspan="{{rows[0].length - 2 + showWeekNumbers}}"><button type="button" class="btn btn-default btn-sm btn-block" ng-click="toggleMode()"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n    <tr ng-show="labels.length > 0" class="h6">\n      <th ng-show="showWeekNumbers" class="text-center">#</th>\n      <th ng-repeat="label in labels" class="text-center">{{label}}</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr ng-repeat="row in rows">\n      <td ng-show="showWeekNumbers" class="text-center"><em>{{ getWeekNumber(row) }}</em></td>\n      <td ng-repeat="dt in row" class="text-center">\n        <button type="button" style="width:100%;" class="btn btn-default btn-sm" ng-class="{\'btn-info\': dt.selected}" ng-click="select(dt.date)" ng-disabled="dt.disabled"><span ng-class="{\'text-muted\': dt.secondary}">{{dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("template/datepicker/popup.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/popup.html","<ul class=\"dropdown-menu\" ng-style=\"{display: (isOpen && 'block') || 'none', top: position.top+'px', left: position.left+'px'}\">\n	<li ng-transclude></li>\n"+'	<li ng-show="showButtonBar" style="padding:10px 9px 2px">\n		<span class="btn-group">\n			<button type="button" class="btn btn-sm btn-info" ng-click="today()">{{currentText}}</button>\n			<button type="button" class="btn btn-sm btn-default" ng-click="showWeeks = ! showWeeks" ng-class="{active: showWeeks}">{{toggleWeeksText}}</button>\n			<button type="button" class="btn btn-sm btn-danger" ng-click="clear()">{{clearText}}</button>\n		</span>\n		<button type="button" class="btn btn-sm btn-success pull-right" ng-click="isOpen = false">{{closeText}}</button>\n	</li>\n</ul>\n')}]),angular.module("template/modal/backdrop.html",[]).run(["$templateCache",function(e){e.put("template/modal/backdrop.html",'<div class="modal-backdrop fade" ng-class="{in: animate}" ng-style="{\'z-index\': 1040 + index*10}"></div>')}]),angular.module("template/modal/window.html",[]).run(["$templateCache",function(e){e.put("template/modal/window.html",'<div tabindex="-1" class="modal fade {{ windowClass }}" ng-class="{in: animate}" ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}" ng-click="close($event)">\n    <div class="modal-dialog"><div class="modal-content" ng-transclude></div></div>\n</div>')}]),angular.module("template/pagination/pager.html",[]).run(["$templateCache",function(e){e.put("template/pagination/pager.html",'<ul class="pager">\n  <li ng-repeat="page in pages" ng-class="{disabled: page.disabled, previous: page.previous, next: page.next}"><a ng-click="selectPage(page.number)">{{page.text}}</a></li>\n</ul>')}]),angular.module("template/pagination/pagination.html",[]).run(["$templateCache",function(e){e.put("template/pagination/pagination.html",'<ul class="pagination">\n  <li ng-repeat="page in pages" ng-class="{active: page.active, disabled: page.disabled}"><a ng-click="selectPage(page.number)">{{page.text}}</a></li>\n</ul>')}]),angular.module("template/tooltip/tooltip-html-unsafe-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-html-unsafe-popup.html",'<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner" bind-html-unsafe="content"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-popup.html",'<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}]),angular.module("template/popover/popover.html",[]).run(["$templateCache",function(e){e.put("template/popover/popover.html",'<div class="popover {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="arrow"></div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="title" ng-show="title"></h3>\n      <div class="popover-content" ng-bind="content"></div>\n  </div>\n</div>\n')}]),angular.module("template/progressbar/bar.html",[]).run(["$templateCache",function(e){e.put("template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" ng-transclude></div>')}]),angular.module("template/progressbar/progress.html",[]).run(["$templateCache",function(e){e.put("template/progressbar/progress.html",'<div class="progress" ng-transclude></div>')}]),angular.module("template/progressbar/progressbar.html",[]).run(["$templateCache",function(e){e.put("template/progressbar/progressbar.html",'<div class="progress"><div class="progress-bar" ng-class="type && \'progress-bar-\' + type" ng-transclude></div></div>')}]),angular.module("template/rating/rating.html",[]).run(["$templateCache",function(e){e.put("template/rating/rating.html",'<span ng-mouseleave="reset()">\n    <i ng-repeat="r in range" ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < val && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')"></i>\n</span>')}]),angular.module("template/tabs/tab.html",[]).run(["$templateCache",function(e){e.put("template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}">\n  <a ng-click="select()" tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("template/tabs/tabset-titles.html",[]).run(["$templateCache",function(e){e.put("template/tabs/tabset-titles.html","<ul class=\"nav {{type && 'nav-' + type}}\" ng-class=\"{'nav-stacked': vertical}\">\n</ul>\n")}]),angular.module("template/tabs/tabset.html",[]).run(["$templateCache",function(e){e.put("template/tabs/tabset.html",'\n<div class="tabbable">\n  <ul class="nav {{type && \'nav-\' + type}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n  <div class="tab-content">\n    <div class="tab-pane" \n         ng-repeat="tab in tabs" \n         ng-class="{active: tab.active}"\n         tab-content-transclude="tab">\n    </div>\n  </div>\n</div>\n')}]),angular.module("template/timepicker/timepicker.html",[]).run(["$templateCache",function(e){e.put("template/timepicker/timepicker.html",'<table>\n	<tbody>\n		<tr class="text-center">\n			<td><a ng-click="incrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n			<td>&nbsp;</td>\n			<td><a ng-click="incrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n			<td ng-show="showMeridian"></td>\n		</tr>\n		<tr>\n			<td style="width:50px;" class="form-group" ng-class="{\'has-error\': invalidHours}">\n				<input type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-mousewheel="incrementHours()" ng-readonly="readonlyInput" maxlength="2">\n			</td>\n			<td>:</td>\n			<td style="width:50px;" class="form-group" ng-class="{\'has-error\': invalidMinutes}">\n				<input type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2">\n			</td>\n			<td ng-show="showMeridian"><button type="button" class="btn btn-default text-center" ng-click="toggleMeridian()">{{meridian}}</button></td>\n		</tr>\n		<tr class="text-center">\n			<td><a ng-click="decrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n			<td>&nbsp;</td>\n			<td><a ng-click="decrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n			<td ng-show="showMeridian"></td>\n		</tr>\n	</tbody>\n</table>\n')
}]),angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(e){e.put("template/typeahead/typeahead-match.html",'<a tabindex="-1" bind-html-unsafe="match.label | typeaheadHighlight:query"></a>')}]),angular.module("template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(e){e.put("template/typeahead/typeahead-popup.html","<ul class=\"dropdown-menu\" ng-style=\"{display: isOpen()&&'block' || 'none', top: position.top+'px', left: position.left+'px'}\">\n"+'    <li ng-repeat="match in matches" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)">\n        <div typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n    </li>\n</ul>')}])},{}],29:[function(e,t,n){"undefined"!=typeof t&&"undefined"!=typeof n&&t.exports===n&&(t.exports="ui.router"),function(e,t,n){"use strict";function r(e,t){return j(new(j(function(){},{prototype:e})),t)}function o(e){return P(arguments,function(t){t!==e&&P(t,function(t,n){e.hasOwnProperty(n)||(e[n]=t)})}),e}function i(e,t){var n=[];for(var r in e.path){if(e.path[r]!==t.path[r])break;n.push(e.path[r])}return n}function a(e,t){if(Array.prototype.indexOf)return e.indexOf(t,Number(arguments[2])||0);var n=e.length>>>0,r=Number(arguments[2])||0;for(r=0>r?Math.ceil(r):Math.floor(r),0>r&&(r+=n);n>r;r++)if(r in e&&e[r]===t)return r;return-1}function s(e,t,n,r){var o,s=i(n,r),u={},l=[];for(var c in s)if(s[c].params&&s[c].params.length){o=s[c].params;for(var f in o)a(l,o[f])>=0||(l.push(o[f]),u[o[f]]=e[o[f]])}return j({},u,t)}function u(e,t){var n={};return P(e,function(e){var r=t[e];n[e]=null!=r?String(r):null}),n}function l(e,t,n){if(!n){n=[];for(var r in e)n.push(r)}for(var o=0;o<n.length;o++){var i=n[o];if(e[i]!=t[i])return!1}return!0}function c(e,t){var n={};return P(e,function(e){n[e]=t[e]}),n}function f(e,t){var r=1,i=2,a={},s=[],u=a,l=j(e.when(a),{$$promises:a,$$values:a});this.study=function(a){function c(e,n){if(h[n]!==i){if(d.push(n),h[n]===r)throw d.splice(0,d.indexOf(n)),new Error("Cyclic dependency: "+d.join(" -> "));if(h[n]=r,A(e))p.push(n,[function(){return t.get(e)}],s);else{var o=t.annotate(e);P(o,function(e){e!==n&&a.hasOwnProperty(e)&&c(a[e],e)}),p.push(n,e,o)}d.pop(),h[n]=i}}function f(e){return D(e)&&e.then&&e.$$promises}if(!D(a))throw new Error("'invocables' must be an object");var p=[],d=[],h={};return P(a,c),a=d=h=null,function(r,i,a){function s(){--y||(b||o(v,i.$$values),g.$$values=v,g.$$promises=!0,h.resolve(v))}function c(e){g.$$failure=e,h.reject(e)}function d(n,o,i){function u(e){f.reject(e),c(e)}function l(){if(!C(g.$$failure))try{f.resolve(t.invoke(o,a,v)),f.promise.then(function(e){v[n]=e,s()},u)}catch(e){u(e)}}var f=e.defer(),p=0;P(i,function(e){m.hasOwnProperty(e)&&!r.hasOwnProperty(e)&&(p++,m[e].then(function(t){v[e]=t,--p||l()},u))}),p||l(),m[n]=f.promise}if(f(r)&&a===n&&(a=i,i=r,r=null),r){if(!D(r))throw new Error("'locals' must be an object")}else r=u;if(i){if(!f(i))throw new Error("'parent' must be a promise returned by $resolve.resolve()")}else i=l;var h=e.defer(),g=h.promise,m=g.$$promises={},v=j({},r),y=1+p.length/3,b=!1;if(C(i.$$failure))return c(i.$$failure),g;i.$$values?(b=o(v,i.$$values),s()):(j(m,i.$$promises),i.then(s,c));for(var $=0,w=p.length;w>$;$+=3)r.hasOwnProperty(p[$])?s():d(p[$],p[$+1],p[$+2]);return g}},this.resolve=function(e,t,n,r){return this.study(e)(t,n,r)}}function p(e,t,n){this.fromConfig=function(e,t,n){return C(e.template)?this.fromString(e.template,t):C(e.templateUrl)?this.fromUrl(e.templateUrl,t):C(e.templateProvider)?this.fromProvider(e.templateProvider,t,n):null},this.fromString=function(e,t){return T(e)?e(t):e},this.fromUrl=function(n,r){return T(n)&&(n=n(r)),null==n?null:e.get(n,{cache:t}).then(function(e){return e.data})},this.fromProvider=function(e,t,r){return n.invoke(e,null,r||{params:t})}}function d(e){function t(t){if(!/^\w+(-+\w+)*$/.test(t))throw new Error("Invalid parameter name '"+t+"' in pattern '"+e+"'");if(i[t])throw new Error("Duplicate parameter name '"+t+"' in pattern '"+e+"'");i[t]=!0,l.push(t)}function n(e){return e.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&")}var r,o=/([:*])(\w+)|\{(\w+)(?:\:((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,i={},a="^",s=0,u=this.segments=[],l=this.params=[];this.source=e;for(var c,f,p;(r=o.exec(e))&&(c=r[2]||r[3],f=r[4]||("*"==r[1]?".*":"[^/]*"),p=e.substring(s,r.index),!(p.indexOf("?")>=0));)a+=n(p)+"("+f+")",t(c),u.push(p),s=o.lastIndex;p=e.substring(s);var d=p.indexOf("?");if(d>=0){var h=this.sourceSearch=p.substring(d);p=p.substring(0,d),this.sourcePath=e.substring(0,s+d),P(h.substring(1).split(/[&?]/),t)}else this.sourcePath=e,this.sourceSearch="";a+=n(p)+"$",u.push(p),this.regexp=new RegExp(a),this.prefix=u[0]}function h(){this.compile=function(e){return new d(e)},this.isMatcher=function(e){return D(e)&&T(e.exec)&&T(e.format)&&T(e.concat)},this.$get=function(){return this}}function g(e){function t(e){var t=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(e.source);return null!=t?t[1].replace(/\\(.)/g,"$1"):""}function n(e,t){return e.replace(/\$(\$|\d{1,2})/,function(e,n){return t["$"===n?0:Number(n)]})}function r(e,t,n){if(!n)return!1;var r=e.invoke(t,t,{$match:n});return C(r)?r:!0}var o=[],i=null;this.rule=function(e){if(!T(e))throw new Error("'rule' must be a function");return o.push(e),this},this.otherwise=function(e){if(A(e)){var t=e;e=function(){return t}}else if(!T(e))throw new Error("'rule' must be a function");return i=e,this},this.when=function(o,i){var a,s=A(i);if(A(o)&&(o=e.compile(o)),!s&&!T(i)&&!O(i))throw new Error("invalid 'handler' in when()");var u={matcher:function(t,n){return s&&(a=e.compile(n),n=["$match",function(e){return a.format(e)}]),j(function(e,o){return r(e,n,t.exec(o.path(),o.search()))},{prefix:A(t.prefix)?t.prefix:""})},regex:function(e,o){if(e.global||e.sticky)throw new Error("when() RegExp must not be global or sticky");return s&&(a=o,o=["$match",function(e){return n(a,e)}]),j(function(t,n){return r(t,o,e.exec(n.path()))},{prefix:t(e)})}},l={matcher:e.isMatcher(o),regex:o instanceof RegExp};for(var c in l)if(l[c])return this.rule(u[c](o,i));throw new Error("invalid 'what' in when()")},this.$get=["$location","$rootScope","$injector",function(e,t,n){function r(t){function r(t){var r=t(n,e);return r?(A(r)&&e.replace().url(r),!0):!1}if(!t||!t.defaultPrevented){var a,s=o.length;for(a=0;s>a;a++)if(r(o[a]))return;i&&r(i)}}return t.$on("$locationChangeSuccess",r),{sync:function(){r()}}}]}function m(e,o,i){function a(e){return 0===e.indexOf(".")||0===e.indexOf("^")}function f(e,t){var r=A(e),o=r?e:e.name,i=a(o);if(i){if(!t)throw new Error("No reference point given for path '"+o+"'");for(var s=o.split("."),u=0,l=s.length,c=t;l>u;u++)if(""!==s[u]||0!==u){if("^"!==s[u])break;if(!c.parent)throw new Error("Path '"+o+"' not valid for state '"+t.name+"'");c=c.parent}else c=t;s=s.slice(u).join("."),o=c.name+(c.name&&s?".":"")+s}var f=$[o];return!f||!r&&(r||f!==e&&f.self!==e)?n:f}function p(e,t){w[e]||(w[e]=[]),w[e].push(t)}function d(t){t=r(t,{self:t,resolve:t.resolve||{},toString:function(){return this.name}});var n=t.name;if(!A(n)||n.indexOf("@")>=0)throw new Error("State must have a valid name");if($.hasOwnProperty(n))throw new Error("State '"+n+"'' is already defined");var o=-1!==n.indexOf(".")?n.substring(0,n.lastIndexOf(".")):A(t.parent)?t.parent:"";if(o&&!$[o])return p(o,t.self);for(var i in _)T(_[i])&&(t[i]=_[i](t,_.$delegates[i]));if($[n]=t,!t[x]&&t.url&&e.when(t.url,["$match","$stateParams",function(e,n){b.$current.navigable==t&&l(e,n)||b.transitionTo(t,e,{location:!1})}]),w[n])for(var a=0;a<w[n].length;a++)d(w[n][a]);return t}function h(e,t){return A(e)&&!C(t)?_[e]:T(t)&&A(e)?(_[e]&&!_.$delegates[e]&&(_.$delegates[e]=_[e]),_[e]=t,this):this}function g(e,t){return D(e)?t=e:t.name=e,d(t),this}function m(e,o,a,p,d,h,g){function m(){g.url()!==A&&(g.url(A),g.replace())}function w(e,n,r,i,s){var u=r?n:c(e.params,n),l={$stateParams:u};s.resolve=d.resolve(e.resolve,l,s.resolve,e);var f=[s.resolve.then(function(e){s.globals=e})];return i&&f.push(i),P(e.views,function(n,r){var o=n.resolve&&n.resolve!==e.resolve?n.resolve:{};o.$template=[function(){return a.load(r,{view:n,locals:l,params:u,notify:!1})||""}],f.push(d.resolve(o,l,s.resolve,e).then(function(i){if(T(n.controllerProvider)||O(n.controllerProvider)){var a=t.extend({},o,l);i.$$controller=p.invoke(n.controllerProvider,null,a)}else i.$$controller=n.controller;i.$$state=e,s[r]=i}))}),o.all(f).then(function(){return s})}var _=o.reject(new Error("transition superseded")),k=o.reject(new Error("transition prevented")),S=o.reject(new Error("transition aborted")),E=o.reject(new Error("transition failed")),A=g.url();return y.locals={resolve:null,globals:{$stateParams:{}}},b={params:{},current:y.self,$current:y,transition:null},b.reload=function(){b.transitionTo(b.current,h,{reload:!0,inherit:!1,notify:!1})},b.go=function(e,t,n){return this.transitionTo(e,t,j({inherit:!0,relative:b.$current},n))},b.transitionTo=function(t,n,i){n=n||{},i=j({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},i||{});var a,c=b.$current,d=b.params,$=c.path,T=f(t,i.relative);if(!C(T)){var D={to:t,toParams:n,options:i};if(a=e.$broadcast("$stateNotFound",D,c.self,d),a.defaultPrevented)return m(),S;if(a.retry){if(i.$retry)return m(),E;var O=b.transition=o.when(a.retry);return O.then(function(){return O!==b.transition?_:(D.options.$retry=!0,b.transitionTo(D.to,D.toParams,D.options))},function(){return S}),m(),O}if(t=D.to,n=D.toParams,i=D.options,T=f(t,i.relative),!C(T)){if(i.relative)throw new Error("Could not resolve '"+t+"' from state '"+i.relative+"'");throw new Error("No such state '"+t+"'")}}if(T[x])throw new Error("Cannot transition to abstract state '"+t+"'");i.inherit&&(n=s(h,n||{},b.$current,T)),t=T;var P,I,L=t.path,N=y.locals,R=[];for(P=0,I=L[P];I&&I===$[P]&&l(n,d,I.ownParams)&&!i.reload;P++,I=L[P])N=R[P]=I.locals;if(v(t,c,N,i))return t.self.reloadOnSearch!==!1&&m(),b.transition=null,o.when(b.current);if(n=u(t.params,n||{}),i.notify&&(a=e.$broadcast("$stateChangeStart",t.self,n,c.self,d),a.defaultPrevented))return m(),k;for(var B=o.when(N),U=P;U<L.length;U++,I=L[U])N=R[U]=r(N),B=w(I,n,I===t,B,N);var F=b.transition=B.then(function(){var r,o,a;if(b.transition!==F)return _;for(r=$.length-1;r>=P;r--)a=$[r],a.self.onExit&&p.invoke(a.self.onExit,a.self,a.locals.globals),a.locals=null;for(r=P;r<L.length;r++)o=L[r],o.locals=R[r],o.self.onEnter&&p.invoke(o.self.onEnter,o.self,o.locals.globals);if(b.transition!==F)return _;b.$current=t,b.current=t.self,b.params=n,M(b.params,h),b.transition=null;var s=t.navigable;return i.location&&s&&(g.url(s.url.format(s.locals.globals.$stateParams)),"replace"===i.location&&g.replace()),i.notify&&e.$broadcast("$stateChangeSuccess",t.self,n,c.self,d),A=g.url(),b.current},function(r){return b.transition!==F?_:(b.transition=null,e.$broadcast("$stateChangeError",t.self,n,c.self,d,r),m(),o.reject(r))});return F},b.is=function(e,r){var o=f(e);return C(o)?b.$current!==o?!1:C(r)&&null!==r?t.equals(h,r):!0:n},b.includes=function(e,r){var o=f(e);if(!C(o))return n;if(!C(b.$current.includes[o.name]))return!1;var i=!0;return t.forEach(r,function(e,t){C(h[t])&&h[t]===e||(i=!1)}),i},b.href=function(e,t,n){n=j({lossy:!0,inherit:!1,absolute:!1,relative:b.$current},n||{});var r=f(e,n.relative);if(!C(r))return null;t=s(h,t||{},b.$current,r);var o=r&&n.lossy?r.navigable:r,a=o&&o.url?o.url.format(u(r.params,t||{})):null;return!i.html5Mode()&&a&&(a="#"+i.hashPrefix()+a),n.absolute&&a&&(a=g.protocol()+"://"+g.host()+(80==g.port()||443==g.port()?"":":"+g.port())+(!i.html5Mode()&&a?"/":"")+a),a},b.get=function(e,t){if(!C(e)){var n=[];return P($,function(e){n.push(e.self)}),n}var r=f(e,t);return r&&r.self?r.self:null},b}function v(e,t,n,r){return e!==t||(n!==t.locals||r.reload)&&e.self.reloadOnSearch!==!1?void 0:!0}var y,b,$={},w={},x="abstract",_={parent:function(e){if(C(e.parent)&&e.parent)return f(e.parent);var t=/^(.+)\.[^.]+$/.exec(e.name);return t?f(t[1]):y},data:function(e){return e.parent&&e.parent.data&&(e.data=e.self.data=j({},e.parent.data,e.data)),e.data},url:function(e){var t=e.url;if(A(t))return"^"==t.charAt(0)?o.compile(t.substring(1)):(e.parent.navigable||y).url.concat(t);if(o.isMatcher(t)||null==t)return t;throw new Error("Invalid url '"+t+"' in state '"+e+"'")},navigable:function(e){return e.url?e:e.parent?e.parent.navigable:null},params:function(e){if(!e.params)return e.url?e.url.parameters():e.parent.params;if(!O(e.params))throw new Error("Invalid params in state '"+e+"'");if(e.url)throw new Error("Both params and url specicified in state '"+e+"'");return e.params},views:function(e){var t={};return P(C(e.views)?e.views:{"":e},function(n,r){r.indexOf("@")<0&&(r+="@"+e.parent.name),t[r]=n}),t},ownParams:function(e){if(!e.parent)return e.params;var t={};P(e.params,function(e){t[e]=!0}),P(e.parent.params,function(n){if(!t[n])throw new Error("Missing required parameter '"+n+"' in state '"+e.name+"'");t[n]=!1});var n=[];return P(t,function(e,t){e&&n.push(t)}),n},path:function(e){return e.parent?e.parent.path.concat(e):[]},includes:function(e){var t=e.parent?j({},e.parent.includes):{};return t[e.name]=!0,t},$delegates:{}};y=d({name:"",url:"^",views:null,"abstract":!0}),y.navigable=null,this.decorator=h,this.state=g,this.$get=m,m.$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$location","$urlRouter"]}function v(){function e(e,t){return{load:function(n,r){var o,i={template:null,controller:null,view:null,locals:null,notify:!0,async:!0,params:{}};return r=j(i,r),r.view&&(o=t.fromConfig(r.view,r.params,r.locals)),o&&r.notify&&e.$broadcast("$viewContentLoading",r),o}}}this.$get=e,e.$inject=["$rootScope","$templateFactory"]}function y(){var e=!1;this.useAnchorScroll=function(){e=!0},this.$get=["$anchorScroll","$timeout",function(t,n){return e?t:function(e){n(function(){e[0].scrollIntoView()},0,!1)}}]}function b(e,n,r,o,i,a){function s(){return o.has?function(e){return o.has(e)?o.get(e):null}:function(e){try{return o.get(e)}catch(t){return null}}}function u(e,t,n){var r=function(){return{leave:function(e){e.remove()},enter:function(e,t,n){n.after(e)}}};if(p)return function(e){return e?{enter:function(e,t,n){p.enter(e,null,n)},leave:function(e){p.leave(e,function(){e.remove()})}}:r()};if(f){var o=f&&f(n,t);return function(e){return e?{enter:function(e,t){o.enter(e,t)},leave:function(e){o.leave(e.contents(),e)}}:r()}}return r}var l=!1,c=s(),f=c("$animator"),p=c("$animate"),d={restrict:"ECA",compile:function(o,s){var c=o.html(),f=!0,p=t.element(a[0].createComment(" ui-view-anchor ")),h=o.parent();return o.prepend(p),function(a){function g(){y&&(k(!0).leave(y),y=null),v&&(v.$destroy(),v=null)}function m(s){var u=e.$current&&e.$current.locals[w];if(f&&(f=!1,o.replaceWith(p)),!u)return g(),y=o.clone(),y.html(c),k(s).enter(y,h,p),v=a.$new(),void n(y.contents())(v);if(u!==b){g(),y=o.clone(),y.html(u.$template?u.$template:c),k(!0).enter(y,h,p),y.data("$uiView",S),b=u,S.state=u.$$state;var l=n(y.contents());if(v=a.$new(),u.$$controller){u.$scope=v;var d=r(u.$$controller,u);y.children().data("$ngControllerController",d)}l(v),v.$emit("$viewContentLoaded"),x&&v.$eval(x),t.isDefined(_)&&_&&!a.$eval(_)||i(y)}}var v,y,b,$=h.inheritedData("$uiView"),w=s[d.name]||s.name||"",x=s.onload||"",_=s.autoscroll,k=u(o,s,a);w.indexOf("@")<0&&(w=w+"@"+($?$.state.name:""));var S={name:w,state:null},E=function(){if(!l){l=!0;try{m(!0)}catch(e){throw l=!1,e}l=!1}};a.$on("$stateChangeSuccess",E),a.$on("$viewContentLoading",E),m(!1)}}};return d}function $(e){var t=e.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/);if(!t||4!==t.length)throw new Error("Invalid state ref '"+e+"'");return{state:t[1],paramExpr:t[3]||null}}function w(e){var t=e.parent().inheritedData("$uiView");return t&&t.state&&t.state.name?t.state:void 0}function x(e,t){return{restrict:"A",require:"?^uiSrefActive",link:function(n,r,o,i){var a=$(o.uiSref),s=null,u=w(r)||e.$current,l="FORM"===r[0].nodeName,c=l?"action":"href",f=!0,p=function(t){if(t&&(s=t),f){var n=e.href(a.state,s,{relative:u});return i&&i.$$setStateInfo(a.state,s),n?void(r[0][c]=n):(f=!1,!1)}};a.paramExpr&&(n.$watch(a.paramExpr,function(e){e!==s&&p(e)},!0),s=n.$eval(a.paramExpr)),p(),l||r.bind("click",function(n){var o=n.which||n.button;0!==o&&1!=o||n.ctrlKey||n.metaKey||n.shiftKey||r.attr("target")||(t(function(){e.go(a.state,s,{relative:u})}),n.preventDefault())})}}}function _(e,t,n){return{restrict:"A",controller:["$scope","$element","$attrs",function(r,o,i){function a(){e.$current.self===u&&s()?o.addClass(f):o.removeClass(f)}function s(){return!c||l(c,t)}var u,c,f;f=n(i.uiSrefActive||"",!1)(r),this.$$setStateInfo=function(t,n){u=e.get(t,w(o)),c=n,a()},r.$on("$stateChangeSuccess",a)}]}}function k(e){return function(t){return e.is(t)}}function S(e){return function(t){return e.includes(t)}}function E(e,t){function o(e){this.locals=e.locals.globals,this.params=this.locals.$stateParams}function i(){this.locals=null,this.params=null}function a(n,a){if(null!=a.redirectTo){var s,l=a.redirectTo;if(A(l))s=l;else{if(!T(l))throw new Error("Invalid 'redirectTo' in when()");s=function(e,t){return l(e,t.path(),t.search())}}t.when(n,s)}else e.state(r(a,{parent:null,name:"route:"+encodeURIComponent(n),url:n,onEnter:o,onExit:i}));return u.push(a),this}function s(e,t,r){function o(e){return""!==e.name?e:n}var i={routes:u,params:r,current:n};return t.$on("$stateChangeStart",function(e,n,r,i){t.$broadcast("$routeChangeStart",o(n),o(i))}),t.$on("$stateChangeSuccess",function(e,n,r,a){i.current=o(n),t.$broadcast("$routeChangeSuccess",o(n),o(a)),M(r,i.params)}),t.$on("$stateChangeError",function(e,n,r,i,a,s){t.$broadcast("$routeChangeError",o(n),o(i),s)}),i}var u=[];o.$inject=["$$state"],this.when=a,this.$get=s,s.$inject=["$state","$rootScope","$routeParams"]}var C=t.isDefined,T=t.isFunction,A=t.isString,D=t.isObject,O=t.isArray,P=t.forEach,j=t.extend,M=t.copy;t.module("ui.router.util",["ng"]),t.module("ui.router.router",["ui.router.util"]),t.module("ui.router.state",["ui.router.router","ui.router.util"]),t.module("ui.router",["ui.router.state"]),t.module("ui.router.compat",["ui.router"]),f.$inject=["$q","$injector"],t.module("ui.router.util").service("$resolve",f),p.$inject=["$http","$templateCache","$injector"],t.module("ui.router.util").service("$templateFactory",p),d.prototype.concat=function(e){return new d(this.sourcePath+e+this.sourceSearch)},d.prototype.toString=function(){return this.source},d.prototype.exec=function(e,t){var n=this.regexp.exec(e);if(!n)return null;var r,o=this.params,i=o.length,a=this.segments.length-1,s={};if(a!==n.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");for(r=0;a>r;r++)s[o[r]]=n[r+1];for(;i>r;r++)s[o[r]]=t[o[r]];return s},d.prototype.parameters=function(){return this.params},d.prototype.format=function(e){var t=this.segments,n=this.params;if(!e)return t.join("");var r,o,i,a=t.length-1,s=n.length,u=t[0];for(r=0;a>r;r++)i=e[n[r]],null!=i&&(u+=encodeURIComponent(i)),u+=t[r+1];for(;s>r;r++)i=e[n[r]],null!=i&&(u+=(o?"&":"?")+n[r]+"="+encodeURIComponent(i),o=!0);return u},t.module("ui.router.util").provider("$urlMatcherFactory",h),g.$inject=["$urlMatcherFactoryProvider"],t.module("ui.router.router").provider("$urlRouter",g),m.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider","$locationProvider"],t.module("ui.router.state").value("$stateParams",{}).provider("$state",m),v.$inject=[],t.module("ui.router.state").provider("$view",v),t.module("ui.router.state").provider("$uiViewScroll",y),b.$inject=["$state","$compile","$controller","$injector","$uiViewScroll","$document"],t.module("ui.router.state").directive("uiView",b),x.$inject=["$state","$timeout"],_.$inject=["$state","$stateParams","$interpolate"],t.module("ui.router.state").directive("uiSref",x).directive("uiSrefActive",_),k.$inject=["$state"],S.$inject=["$state"],t.module("ui.router.state").filter("isState",k).filter("includedByState",S),E.$inject=["$stateProvider","$urlRouterProvider"],t.module("ui.router.compat").provider("$route",E).directive("ngView",b)}(window,window.angular)},{}],30:[function(e,t){(function(){t.exports=function(e,t,n){for(null==e&&(e=32),null==t&&(t=""),null==n&&(n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");e-->0;)t+=n.charAt(Math.floor(Math.random()*n.length));return t}}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\..\\..\\node_modules\\genid\\index.js","/..\\..\\..\\node_modules\\genid")},{buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7}],31:[function(e,t,n){(function(r,o){function i(e){return"function"==typeof e}function a(e){return"object"==typeof e&&null!==e}function s(e){return"string"==typeof e}function u(e,t){if(e&&h.isStream(e))return e;d.call(this);var n=this;if(n.__HighlandStream__=!0,n.id=(""+Math.random()).substr(2,6),this.paused=!0,this._incoming=[],this._outgoing=[],this._consumers=[],this._observers=[],this._destructors=[],this._send_events=!1,this.source=null,this.writable=!0,n.on("newListener",function(e){"data"===e?(n._send_events=!0,setImmediate(n.resume.bind(n))):"end"===e&&(n._send_events=!0)}),n.on("removeListener",function(e){if("end"===e||"data"===e){var t=n.listeners("end").length,r=n.listeners("data").length;t+r===0&&(n._send_events=!1)}}),void 0===e);else if(Array.isArray(e))n._incoming=e.concat([v]);else if("function"==typeof e)this._generator=e,this._generator_push=function(e,t){n.write(e?new c(e):t)},this._generator_next=function(e){if(e){var t=n.paused;t||n.pause(),n.write(new f(e)),t||n.resume()}else n._generator_running=!1;n.paused||n.resume()};else if(a(e)){if(i(e.then))return h(function(t){e.then(function(e){return t(null,e),t(null,v)},function(e){return t(e),t(null,v)})});this._generator=function(){delete n._generator,e.pipe(n)}}else{if("string"!=typeof e)throw new Error("Unexpected argument type to Stream(): "+typeof e);t.on(e,function(e){n.write(e)})}}function l(e){var t=u.prototype[e],n=t.length;h[e]=h.ncurry(n+1,function(){var e=Array.prototype.slice.call(arguments),n=h(e.pop());return t.apply(n,e)})}function c(e){this.__HighlandStreamError__=!0,this.error=e}function f(e){this.__HighlandStreamRedirect__=!0,this.to=e}var p=e("util").inherits,d=e("events").EventEmitter;n=t.exports=function(e,t){return new u(e,t)};var h=n,g=Array.prototype,m=g.slice;Object.defineProperty&&"undefined"!=typeof o&&Object.defineProperty(h,"nil",{get:function(){return o.__highland_nil__},set:function(e){o.__highland_nil__||(o.__highland_nil__=e)}});var v=h.nil={};h.curry=function(e){var t=m.call(arguments);return h.ncurry.apply(this,[e.length].concat(t))},h.ncurry=function(e,t){var n=m.call(arguments,2);return n.length>=e?t.apply(this,n.slice(0,e)):function(){var r=n.concat(m.call(arguments));return r.length<e?h.ncurry.apply(this,[e,t].concat(r)):t.apply(this,r.slice(0,e))}},h.partial=function(e){var t=m.call(arguments,1);return function(){return e.apply(this,t.concat(m.call(arguments)))}},h.flip=h.curry(function(e,t,n){return e(n,t)}),h.compose=function(){var e=m.call(arguments).reverse();return h.seq.apply(null,e)},h.seq=function(){var e=m.call(arguments);return function(){if(e.length){for(var t=e[0].apply(this,arguments),n=1;n<e.length;n++)t=e[n].call(this,t);return t}}},p(u,d),h.isStream=function(e){return a(e)&&e.__HighlandStream__},h._isStreamError=function(e){return a(e)&&e.__HighlandStreamError__},h._isStreamRedirect=function(e){return a(e)&&e.__HighlandStreamRedirect__},u.prototype._send=function(e,t){if(t===v&&(this.ended=!0),this._consumers.length)for(var n=0,r=this._consumers.length;r>n;n++){var o=this._consumers[n];o.write(e?new c(e):t)}if(this._observers.length)for(var i=0,a=this._observers.length;a>i;i++)this._observers[i].write(t);this._send_events&&(t===v?this.emit("end"):this.emit("data",t))},u.prototype.pause=function(){this.paused=!0,this.source&&this.source._checkBackPressure()},u.prototype._checkBackPressure=function(){if(!this._consumers.length)return this.pause();for(var e=0,t=this._consumers.length;t>e;e++)if(this._consumers[e].paused)return this.pause();return this.resume()},u.prototype._readFromBuffer=function(){for(var e=this._incoming.length,t=0;e>t&&!this.paused;){var n=this._incoming[t];h._isStreamError(n)?this._send(n.error):h._isStreamRedirect(n)?this._redirect(n.to):this._send(null,n),t++}this._incoming.splice(0,t)},u.prototype._sendOutgoing=function(){for(var e=this._outgoing.length,t=0;e>t&&!this.paused;){var n=this._outgoing[t];h._isStreamError(n)?u.prototype._send.call(this,n.error):h._isStreamRedirect(n)?this._redirect(n.to):u.prototype._send.call(this,null,n),t++}this._outgoing.splice(0,t)},u.prototype.resume=function(){if(this._resume_running)return void(this._repeat_resume=!0);this._resume_running=!0;do this._repeat_resume=!1,this.paused=!1,this._sendOutgoing(),this._readFromBuffer(),this.paused||(this.source?this.source._checkBackPressure():this._generator?this._runGenerator():this.emit("drain"));while(this._repeat_resume);this._resume_running=!1},u.prototype.end=function(){this.write(v)},u.prototype.pipe=function(e){function t(){i.resume()}var n=this,o=e!==r.stdout&&e!==r.stderr,i=n.consume(function(t,r,i,a){return t?void n.emit("error",t):void(r===v?o&&e.end():e.write(r)!==!1&&a())});return e.on("drain",t),this._destructors.push(function(){e.removeListener("drain",t)}),i.resume(),e},u.prototype.destroy=function(){var e=this;this.end(),h(this._consumers).each(function(t){e._removeConsumer(t)}),this.source&&this.source._removeConsumer(this),h(this._destructors).each(function(e){e()})},u.prototype._runGenerator=function(){this._generator_running||(this._generator_running=!0,this._generator(this._generator_push,this._generator_next))},u.prototype._redirect=function(e){e=h(e),e._consumers=this._consumers.map(function(t){return t.source=e,t}),this._consumers=[],this.consume=function(){return e.consume.apply(e,arguments)},this._removeConsumer=function(){return e._removeConsumer.apply(e,arguments)},this.paused?e.pause():(this.pause(),e._checkBackPressure())},u.prototype._addConsumer=function(e){if(this._consumers.length)throw new Error("Stream already being consumed, you must either fork() or observe()");e.source=this,this._consumers.push(e),this._checkBackPressure()},u.prototype._removeConsumer=function(e){this._consumers=this._consumers.filter(function(t){return t!==e}),e.source===this&&(e.source=null),this._checkBackPressure()},u.prototype.consume=function(e){var t,n,r=this,o=new u,i=o._send,a=function(e,t){t===v&&r._removeConsumer(o),o.paused?o._outgoing.push(e?new c(e):t):i.call(o,e,t)},s=function(e){if(e){var r=o.paused;r||o.pause(),o.write(new f(e)),r||o.resume()}else t?o.resume():n=!0};return o._send=function(r,i){t=!1,n=!1,e(r,i,a,s),t=!0,n||o.pause()},r._addConsumer(o),o},u.prototype.pull=function(e){var t=this.consume(function(n,r){t.source._removeConsumer(t),e(n,r)});t.resume()},u.prototype.write=function(e){return this.paused?this._incoming.push(e):h._isStreamError(e)?this._send(e.error):this._send(null,e),!this.paused},u.prototype.fork=function(){var e=new u;return e.id="fork:"+e.id,e.source=this,this._consumers.push(e),this._checkBackPressure(),e},u.prototype.observe=function(){var e=new u;return e.id="observe:"+e.id,e.source=this,this._observers.push(e),e},u.prototype.errors=function(e){return this.consume(function(t,n,r,o){t?(e(t,r),o()):n===v?r(null,v):(r(null,n),o())})},l("errors"),u.prototype.stopOnError=function(e){return this.consume(function(t,n,r,o){t?(e(t,r),r(null,v)):n===v?r(null,v):(r(null,n),o())})},l("stopOnError"),u.prototype.each=function(e){var t=this;return this.consume(function(n,r,o,i){n?t.emit("error",n):r!==v&&(e(r),i())}).resume()},l("each"),u.prototype.apply=function(e){return this.toArray(function(t){e.apply(null,t)})},l("apply"),u.prototype.toArray=function(e){var t=this,n=[];return this.consume(function(r,o,i,a){r?t.emit("error",r):o===v?e(n):(n.push(o),a())}).resume()},u.prototype.map=function(e){if(!i(e)){var t=e;e=function(){return t}}return this.consume(function(t,n,r,o){t?(r(t),o()):n===v?r(t,n):(r(null,e(n)),o())})},l("map"),u.prototype.flatMap=function(e){return this.map(e).flatten()},l("flatMap"),u.prototype.pluck=function(e){return this.consume(function(t,n,r,o){t?(r(t),o()):n===v?r(t,n):a(n)?(r(null,n[e]),o()):(r(new Error("Expected Object, got "+typeof n)),o())})},l("pluck"),u.prototype.filter=function(e){return this.consume(function(t,n,r,o){t?(r(t),o()):n===v?r(t,n):(e(n)&&r(null,n),o())})},l("filter"),u.prototype.flatFilter=function(e){var t=this.observe(),n=this.flatMap(function(t){return e(t).take(1)});return t.zip(n).filter(function(e){return e[1]}).map(function(e){return e[0]})},l("flatFilter"),u.prototype.reject=function(e){return this.filter(h.compose(h.not,e))},l("reject"),u.prototype.find=function(e){return this.consume(function(t,n,r,o){t?(r(t),o()):n===v?r(t,n):(e(n)&&(r(null,n),r(null,v)),o())}.bind(this))},l("find"),u.prototype.group=function(e){var t=s(e)?h.get(e):e;return this.reduce({},function(e,n){var r=t(n);return e.hasOwnProperty(r)||(e[r]=[]),e[r].push(n),e}.bind(this))},l("group"),u.prototype.compact=function(){return this.filter(function(e){return e})},l("compact"),u.prototype.where=function(e){return this.filter(function(t){for(var n in e)if(t[n]!==e[n])return!1;return!0})},l("where"),u.prototype.zip=function(e){function t(e,n,i,a,s){i.pull(function(u,l){u?(a(null,u),t(e,n,i,a,s)):l===h.nil?a(null,v):(r++,o[e]=l,r===n&&(a(null,o),s()))})}e=h(e);var n=this,r=0,o=[];return h(function(i,a){r=0,o=[],t(0,2,n,i,a),t(1,2,e,i,a)})},l("zip"),u.prototype.take=function(e){return 0===e?h([]):this.consume(function(t,n,r,o){t?(r(t),e>0?o():r(null,v)):n===v?r(null,v):(e--,r(null,n),e>0?o():r(null,v))})},l("take"),u.prototype.last=function(){var e={},t=e;return this.consume(function(n,r,o,i){n?(o(n),i()):r===v?(t!==e&&o(null,t),o(null,v)):(t=r,i())})},l("last"),u.prototype.sequence=function(){var e=this,t=this;return h(function(n,r){t.pull(function(o,i){return o?(n(o),r()):Array.isArray(i)?(i.forEach(function(e){n(null,e)}),r()):h.isStream(i)?t===e?(t=i,r()):(n(null,i),r()):i!==v?t===e?(n(new Error("Expected Stream, got "+typeof i)),r()):(n(null,i),r()):t!==e?(t=e,r()):void n(null,v)})})},l("sequence"),u.prototype.series=u.prototype.sequence,h.series=h.sequence,u.prototype.flatten=function(){var e=this,t=[];return h(function(n,r){e.pull(function(o,i){return o?(n(o),r()):(Array.isArray(i)&&(i=h(i)),void(h.isStream(i)?(t.push(e),e=i,r()):i===v?t.length?(e=t.pop(),r()):n(null,v):(n(null,i),r())))})})},l("flatten"),u.prototype.parallel=function(e){var t=[],n=0,r=this,o=null;return h(function(i,a){o=null;var s=t.length;if(!r.ended&&e>n){var u=0;r.take(e-n).each(function(e){n++;var r=t[s+u]=[];u++,e.consume(function(e,i,a,s){i===v?(n--,r.push([null,v])):(r.push([e,i]),s()),r===t[0]&&o&&o()}).resume()})}if(t.length)if(t[0].length){var l=t[0].shift(),c=l[0],f=l[1];f===v?t.shift():i(c,f),a()}else o=function(){o=null,a()};else{if(r.ended&&0===n)return void i(null,v);o=function(){o=null,a()}}})},l("parallel"),u.prototype.otherwise=function(e){var t=this;return t.consume(function(n,r,o,i){n&&(o(n),i()),r===v?i(e):(o(null,r),i(t))})},l("otherwise"),u.prototype.append=function(e){return this.consume(function(t,n,r,o){n===v?(r(null,e),r(null,h.nil)):(r(t,n),o())})},l("append"),u.prototype.reduce=function(e,t){return this.consume(function(n,r,o,i){r===v?(o(null,e),o(null,h.nil)):n?(o(n),i()):(e=t(e,r),i())})},l("reduce"),u.prototype.reduce1=function(e){var t=this;return h(function(n,r){t.pull(function(o,i){o&&(n(o),r()),i===v?n(null,v):r(t.reduce(i,e))
})})},l("reduce1"),u.prototype.collect=function(){var e=[];return this.consume(function(t,n,r,o){t?(r(t),o()):n===v?(r(null,e),r(null,v)):(e.push(n),o())})},l("collect"),u.prototype.scan=function(e,t){var n=this;return h([e]).concat(n.consume(function(n,r,o,i){r===v?o(null,h.nil):n?(o(n),i()):(e=t(e,r),o(null,e),i())}))},l("scan"),u.prototype.scan1=function(e){var t=this;return h(function(n,r){t.pull(function(o,i){o&&(n(o),r()),i===v?n(null,v):r(t.scan(i,e))})})},l("scan1"),u.prototype.concat=function(e){return this.consume(function(t,n,r,o){n===v?o(e):(r(t,n),o())})},l("concat"),u.prototype.invoke=function(e,t){return this.map(function(n){return n[e].apply(n,t)})},l("invoke"),u.prototype.throttle=function(e){var t=new u,n=0-e,r=t.write;return t.write=function(t){var o=(new Date).getTime();return h._isStreamError(t)||t===v?r.apply(this,arguments):o-e>=n?(n=o,r.apply(this,arguments)):void 0},this._addConsumer(t),t},l("throttle"),u.prototype.debounce=function(e){var t=new u,n=null,r={},o=r,i=t.write;return t.write=function(a){return h._isStreamError(a)?i.apply(this,arguments):a===v?(n&&clearTimeout(n),o!==r&&i.call(t,o),i.apply(this,arguments)):(o=a,n&&clearTimeout(n),n=setTimeout(function(){i.call(t,o)},e),!this.paused)},this._addConsumer(t),t},l("debounce"),u.prototype.latest=function(){var e=new u,t=e.write;return e.pause=function(){this.paused=!0},e.write=function(e){return h._isStreamError(e)?t.call(this,e):e===v?t.call(this,e):this.paused?(this._incoming=this._incoming.filter(function(e){return h._isStreamError(e)||e===v}),this._incoming.push(e)):t.call(this,e),!0},this._addConsumer(e),e.resume(),e},l("latest"),h.values=function(e){return h.keys(e).map(function(t){return e[t]})},h.keys=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return h(t)},h.pairs=function(e){return h.keys(e).map(function(t){return[t,e[t]]})},h.extend=h.curry(function(e,t){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}),h.get=h.curry(function(e,t){return t[e]}),h.set=h.curry(function(e,t,n){return n[e]=t,n}),h.log=function(){console.log.apply(console,arguments)},h.wrapCallback=function(e){return function(){var t=m.call(arguments);return h(function(n){var r=function(e,t){e?n(e):n(null,t),n(null,v)};e.apply(null,t.concat([r]))})}},h.add=h.curry(function(e,t){return e+t}),h.not=function(e){return!e}}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\..\\..\\node_modules\\highland\\lib\\index.js","/..\\..\\..\\node_modules\\highland\\lib")},{buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7,events:5,util:10}],32:[function(e,t,n){(function(e,r){(function(){function e(e,t,n){for(var r=(n||0)-1,o=e?e.length:0;++r<o;)if(e[r]===t)return r;return-1}function o(t,n){var r=typeof n;if(t=t.cache,"boolean"==r||null==n)return t[n]?0:-1;"number"!=r&&"string"!=r&&(r="object");var o="number"==r?n:$+n;return t=(t=t[r])&&t[o],"object"==r?t&&e(t,n)>-1?0:-1:t?0:-1}function i(e){var t=this.cache,n=typeof e;if("boolean"==n||null==e)t[e]=!0;else{"number"!=n&&"string"!=n&&(n="object");var r="number"==n?e:$+e,o=t[n]||(t[n]={});"object"==n?(o[r]||(o[r]=[])).push(e):o[r]=!0}}function a(e){return e.charCodeAt(0)}function s(e,t){for(var n=e.criteria,r=t.criteria,o=-1,i=n.length;++o<i;){var a=n[o],s=r[o];if(a!==s){if(a>s||"undefined"==typeof a)return 1;if(s>a||"undefined"==typeof s)return-1}}return e.index-t.index}function u(e){var t=-1,n=e.length,r=e[0],o=e[n/2|0],a=e[n-1];if(r&&"object"==typeof r&&o&&"object"==typeof o&&a&&"object"==typeof a)return!1;var s=f();s["false"]=s["null"]=s["true"]=s.undefined=!1;var u=f();for(u.array=e,u.cache=s,u.push=i;++t<n;)u.push(e[t]);return u}function l(e){return"\\"+Q[e]}function c(){return v.pop()||[]}function f(){return y.pop()||{array:null,cache:null,criteria:null,"false":!1,index:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,value:null}}function p(e){e.length=0,v.length<x&&v.push(e)}function d(e){var t=e.cache;t&&d(t),e.array=e.cache=e.criteria=e.object=e.number=e.string=e.value=null,y.length<x&&y.push(e)}function h(e,t,n){t||(t=0),"undefined"==typeof n&&(n=e?e.length:0);for(var r=-1,o=n-t||0,i=Array(0>o?0:o);++r<o;)i[r]=e[t+r];return i}function g(t){function n(e){return e&&"object"==typeof e&&!Xr(e)&&Mr.call(e,"__wrapped__")?e:new r(e)}function r(e,t){this.__chain__=!!t,this.__wrapped__=e}function i(e){function t(){if(r){var e=h(r);Ir.apply(e,arguments)}if(this instanceof t){var i=y(n.prototype),a=n.apply(i,e||arguments);return Dt(a)?a:i}return n.apply(o,e||arguments)}var n=e[0],r=e[2],o=e[4];return Jr(t,e),t}function v(e,t,n,r,o){if(n){var i=n(e);if("undefined"!=typeof i)return i}var a=Dt(e);if(!a)return e;var s=Cr.call(e);if(!W[s])return e;var u=Gr[s];switch(s){case B:case U:return new u(+e);case H:case V:return new u(e);case z:return i=u(e.source,T.exec(e)),i.lastIndex=e.lastIndex,i}var l=Xr(e);if(t){var f=!r;r||(r=c()),o||(o=c());for(var d=r.length;d--;)if(r[d]==e)return o[d];i=l?u(e.length):{}}else i=l?h(e):io({},e);return l&&(Mr.call(e,"index")&&(i.index=e.index),Mr.call(e,"input")&&(i.input=e.input)),t?(r.push(e),o.push(i),(l?Qt:uo)(e,function(e,a){i[a]=v(e,t,n,r,o)}),f&&(p(r),p(o)),i):i}function y(e){return Dt(e)?Ur(e):{}}function x(e,t,n){if("function"!=typeof e)return Xn;if("undefined"==typeof t||!("prototype"in e))return e;var r=e.__bindData__;if("undefined"==typeof r&&(Qr.funcNames&&(r=!e.name),r=r||!Qr.funcDecomp,!r)){var o=Pr.call(e);Qr.funcNames||(r=!A.test(o)),r||(r=j.test(o),Jr(e,r))}if(r===!1||r!==!0&&1&r[1])return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)}}return In(e,t)}function Q(e){function t(){var e=u?a:this;if(o){var d=h(o);Ir.apply(d,arguments)}if((i||c)&&(d||(d=h(arguments)),i&&Ir.apply(d,i),c&&d.length<s))return r|=16,Q([n,f?r:-4&r,d,null,a,s]);if(d||(d=arguments),l&&(n=e[p]),this instanceof t){e=y(n.prototype);var g=n.apply(e,d);return Dt(g)?g:e}return n.apply(e,d)}var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],u=1&r,l=2&r,c=4&r,f=8&r,p=n;return Jr(t,e),t}function X(t,n){var r=-1,i=ut(),a=t?t.length:0,s=a>=w&&i===e,l=[];if(s){var c=u(n);c?(i=o,n=c):s=!1}for(;++r<a;){var f=t[r];i(n,f)<0&&l.push(f)}return s&&d(n),l}function Z(e,t,n,r){for(var o=(r||0)-1,i=e?e.length:0,a=[];++o<i;){var s=e[o];if(s&&"object"==typeof s&&"number"==typeof s.length&&(Xr(s)||pt(s))){t||(s=Z(s,t,n));var u=-1,l=s.length,c=a.length;for(a.length+=l;++u<l;)a[c++]=s[u]}else n||a.push(s)}return a}function et(e,t,n,r,o,i){if(n){var a=n(e,t);if("undefined"!=typeof a)return!!a}if(e===t)return 0!==e||1/e==1/t;var s=typeof e,u=typeof t;if(!(e!==e||e&&G[s]||t&&G[u]))return!1;if(null==e||null==t)return e===t;var l=Cr.call(e),f=Cr.call(t);if(l==N&&(l=q),f==N&&(f=q),l!=f)return!1;switch(l){case B:case U:return+e==+t;case H:return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case z:case V:return e==xr(t)}var d=l==R;if(!d){var h=Mr.call(e,"__wrapped__"),g=Mr.call(t,"__wrapped__");if(h||g)return et(h?e.__wrapped__:e,g?t.__wrapped__:t,n,r,o,i);if(l!=q)return!1;var m=e.constructor,v=t.constructor;if(m!=v&&!(At(m)&&m instanceof m&&At(v)&&v instanceof v)&&"constructor"in e&&"constructor"in t)return!1}var y=!o;o||(o=c()),i||(i=c());for(var b=o.length;b--;)if(o[b]==e)return i[b]==t;var $=0;if(a=!0,o.push(e),i.push(t),d){if(b=e.length,$=t.length,a=$==b,a||r)for(;$--;){var w=b,x=t[$];if(r)for(;w--&&!(a=et(e[w],x,n,r,o,i)););else if(!(a=et(e[$],x,n,r,o,i)))break}}else so(t,function(t,s,u){return Mr.call(u,s)?($++,a=Mr.call(e,s)&&et(e[s],t,n,r,o,i)):void 0}),a&&!r&&so(e,function(e,t,n){return Mr.call(n,t)?a=--$>-1:void 0});return o.pop(),i.pop(),y&&(p(o),p(i)),a}function tt(e,t,n,r,o){(Xr(t)?Qt:uo)(t,function(t,i){var a,s,u=t,l=e[i];if(t&&((s=Xr(t))||lo(t))){for(var c=r.length;c--;)if(a=r[c]==t){l=o[c];break}if(!a){var f;n&&(u=n(l,t),(f="undefined"!=typeof u)&&(l=u)),f||(l=s?Xr(l)?l:[]:lo(l)?l:{}),r.push(t),o.push(l),f||tt(l,t,n,r,o)}}else n&&(u=n(l,t),"undefined"==typeof u&&(u=t)),"undefined"!=typeof u&&(l=u);e[i]=l})}function rt(e,t){return e+Or(Yr()*(t-e+1))}function ot(t,n,r){var i=-1,a=ut(),s=t?t.length:0,l=[],f=!n&&s>=w&&a===e,h=r||f?c():l;if(f){var g=u(h);a=o,h=g}for(;++i<s;){var m=t[i],v=r?r(m,i,t):m;(n?!i||h[h.length-1]!==v:a(h,v)<0)&&((r||f)&&h.push(v),l.push(m))}return f?(p(h.array),d(h)):r&&p(h),l}function it(e){return function(t,r,o){var i={};r=n.createCallback(r,o,3);var a=-1,s=t?t.length:0;if("number"==typeof s)for(;++a<s;){var u=t[a];e(i,u,r(u,a,t),t)}else uo(t,function(t,n,o){e(i,t,r(t,n,o),o)});return i}}function at(e,t,n,r,o,a){var s=1&t,u=2&t,l=4&t,c=16&t,f=32&t;if(!u&&!At(e))throw new _r;c&&!n.length&&(t&=-17,c=n=!1),f&&!r.length&&(t&=-33,f=r=!1);var p=e&&e.__bindData__;if(p&&p!==!0)return p=h(p),p[2]&&(p[2]=h(p[2])),p[3]&&(p[3]=h(p[3])),!s||1&p[1]||(p[4]=o),!s&&1&p[1]&&(t|=8),!l||4&p[1]||(p[5]=a),c&&Ir.apply(p[2]||(p[2]=[]),n),f&&Rr.apply(p[3]||(p[3]=[]),r),p[1]|=t,at.apply(null,p);var d=1==t||17===t?i:Q;return d([e,t,n,r,o,a])}function st(e){return to[e]}function ut(){var t=(t=n.indexOf)===yn?e:t;return t}function lt(e){return"function"==typeof e&&Tr.test(e)}function ct(e){var t,n;return e&&Cr.call(e)==q&&(t=e.constructor,!At(t)||t instanceof t)?(so(e,function(e,t){n=t}),"undefined"==typeof n||Mr.call(e,n)):!1}function ft(e){return no[e]}function pt(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Cr.call(e)==N||!1}function dt(e,t,n,r){return"boolean"!=typeof t&&null!=t&&(r=n,n=t,t=!1),v(e,t,"function"==typeof n&&x(n,r,1))}function ht(e,t,n){return v(e,!0,"function"==typeof t&&x(t,n,1))}function gt(e,t){var n=y(e);return t?io(n,t):n}function mt(e,t,r){var o;return t=n.createCallback(t,r,3),uo(e,function(e,n,r){return t(e,n,r)?(o=n,!1):void 0}),o}function vt(e,t,r){var o;return t=n.createCallback(t,r,3),bt(e,function(e,n,r){return t(e,n,r)?(o=n,!1):void 0}),o}function yt(e,t,n){var r=[];so(e,function(e,t){r.push(t,e)});var o=r.length;for(t=x(t,n,3);o--&&t(r[o--],r[o],e)!==!1;);return e}function bt(e,t,n){var r=eo(e),o=r.length;for(t=x(t,n,3);o--;){var i=r[o];if(t(e[i],i,e)===!1)break}return e}function $t(e){var t=[];return so(e,function(e,n){At(e)&&t.push(n)}),t.sort()}function wt(e,t){return e?Mr.call(e,t):!1}function xt(e){for(var t=-1,n=eo(e),r=n.length,o={};++t<r;){var i=n[t];o[e[i]]=i}return o}function _t(e){return e===!0||e===!1||e&&"object"==typeof e&&Cr.call(e)==B||!1}function kt(e){return e&&"object"==typeof e&&Cr.call(e)==U||!1}function St(e){return e&&1===e.nodeType||!1}function Et(e){var t=!0;if(!e)return t;var n=Cr.call(e),r=e.length;return n==R||n==V||n==N||n==q&&"number"==typeof r&&At(e.splice)?!r:(uo(e,function(){return t=!1}),t)}function Ct(e,t,n,r){return et(e,t,"function"==typeof n&&x(n,r,2))}function Tt(e){return Hr(e)&&!qr(parseFloat(e))}function At(e){return"function"==typeof e}function Dt(e){return!(!e||!G[typeof e])}function Ot(e){return jt(e)&&e!=+e}function Pt(e){return null===e}function jt(e){return"number"==typeof e||e&&"object"==typeof e&&Cr.call(e)==H||!1}function Mt(e){return e&&"object"==typeof e&&Cr.call(e)==z||!1}function It(e){return"string"==typeof e||e&&"object"==typeof e&&Cr.call(e)==V||!1}function Lt(e){return"undefined"==typeof e}function Nt(e,t,r){var o={};return t=n.createCallback(t,r,3),uo(e,function(e,n,r){o[n]=t(e,n,r)}),o}function Rt(e){var t=arguments,n=2;if(!Dt(e))return e;if("number"!=typeof t[2]&&(n=t.length),n>3&&"function"==typeof t[n-2])var r=x(t[--n-1],t[n--],2);else n>2&&"function"==typeof t[n-1]&&(r=t[--n]);for(var o=h(arguments,1,n),i=-1,a=c(),s=c();++i<n;)tt(e,o[i],r,a,s);return p(a),p(s),e}function Bt(e,t,r){var o={};if("function"!=typeof t){var i=[];so(e,function(e,t){i.push(t)}),i=X(i,Z(arguments,!0,!1,1));for(var a=-1,s=i.length;++a<s;){var u=i[a];o[u]=e[u]}}else t=n.createCallback(t,r,3),so(e,function(e,n,r){t(e,n,r)||(o[n]=e)});return o}function Ut(e){for(var t=-1,n=eo(e),r=n.length,o=hr(r);++t<r;){var i=n[t];o[t]=[i,e[i]]}return o}function Ft(e,t,r){var o={};if("function"!=typeof t)for(var i=-1,a=Z(arguments,!0,!1,1),s=Dt(e)?a.length:0;++i<s;){var u=a[i];u in e&&(o[u]=e[u])}else t=n.createCallback(t,r,3),so(e,function(e,n,r){t(e,n,r)&&(o[n]=e)});return o}function Ht(e,t,r,o){var i=Xr(e);if(null==r)if(i)r=[];else{var a=e&&e.constructor,s=a&&a.prototype;r=y(s)}return t&&(t=n.createCallback(t,o,4),(i?Qt:uo)(e,function(e,n,o){return t(r,e,n,o)})),r}function qt(e){for(var t=-1,n=eo(e),r=n.length,o=hr(r);++t<r;)o[t]=e[n[t]];return o}function zt(e){for(var t=arguments,n=-1,r=Z(t,!0,!1,1),o=t[2]&&t[2][t[1]]===e?1:r.length,i=hr(o);++n<o;)i[n]=e[r[n]];return i}function Vt(e,t,n){var r=-1,o=ut(),i=e?e.length:0,a=!1;return n=(0>n?Vr(0,i+n):n)||0,Xr(e)?a=o(e,t,n)>-1:"number"==typeof i?a=(It(e)?e.indexOf(t,n):o(e,t,n))>-1:uo(e,function(e){return++r>=n?!(a=e===t):void 0}),a}function Wt(e,t,r){var o=!0;t=n.createCallback(t,r,3);var i=-1,a=e?e.length:0;if("number"==typeof a)for(;++i<a&&(o=!!t(e[i],i,e)););else uo(e,function(e,n,r){return o=!!t(e,n,r)});return o}function Kt(e,t,r){var o=[];t=n.createCallback(t,r,3);var i=-1,a=e?e.length:0;if("number"==typeof a)for(;++i<a;){var s=e[i];t(s,i,e)&&o.push(s)}else uo(e,function(e,n,r){t(e,n,r)&&o.push(e)});return o}function Yt(e,t,r){t=n.createCallback(t,r,3);var o=-1,i=e?e.length:0;if("number"!=typeof i){var a;return uo(e,function(e,n,r){return t(e,n,r)?(a=e,!1):void 0}),a}for(;++o<i;){var s=e[o];if(t(s,o,e))return s}}function Gt(e,t,r){var o;return t=n.createCallback(t,r,3),Jt(e,function(e,n,r){return t(e,n,r)?(o=e,!1):void 0}),o}function Qt(e,t,n){var r=-1,o=e?e.length:0;if(t=t&&"undefined"==typeof n?t:x(t,n,3),"number"==typeof o)for(;++r<o&&t(e[r],r,e)!==!1;);else uo(e,t);return e}function Jt(e,t,n){var r=e?e.length:0;if(t=t&&"undefined"==typeof n?t:x(t,n,3),"number"==typeof r)for(;r--&&t(e[r],r,e)!==!1;);else{var o=eo(e);r=o.length,uo(e,function(e,n,i){return n=o?o[--r]:--r,t(i[n],n,i)})}return e}function Xt(e,t){var n=h(arguments,2),r=-1,o="function"==typeof t,i=e?e.length:0,a=hr("number"==typeof i?i:0);return Qt(e,function(e){a[++r]=(o?t:e[t]).apply(e,n)}),a}function Zt(e,t,r){var o=-1,i=e?e.length:0;if(t=n.createCallback(t,r,3),"number"==typeof i)for(var a=hr(i);++o<i;)a[o]=t(e[o],o,e);else a=[],uo(e,function(e,n,r){a[++o]=t(e,n,r)});return a}function en(e,t,r){var o=-1/0,i=o;if("function"!=typeof t&&r&&r[t]===e&&(t=null),null==t&&Xr(e))for(var s=-1,u=e.length;++s<u;){var l=e[s];l>i&&(i=l)}else t=null==t&&It(e)?a:n.createCallback(t,r,3),Qt(e,function(e,n,r){var a=t(e,n,r);a>o&&(o=a,i=e)});return i}function tn(e,t,r){var o=1/0,i=o;if("function"!=typeof t&&r&&r[t]===e&&(t=null),null==t&&Xr(e))for(var s=-1,u=e.length;++s<u;){var l=e[s];i>l&&(i=l)}else t=null==t&&It(e)?a:n.createCallback(t,r,3),Qt(e,function(e,n,r){var a=t(e,n,r);o>a&&(o=a,i=e)});return i}function nn(e,t,r,o){if(!e)return r;var i=arguments.length<3;t=n.createCallback(t,o,4);var a=-1,s=e.length;if("number"==typeof s)for(i&&(r=e[++a]);++a<s;)r=t(r,e[a],a,e);else uo(e,function(e,n,o){r=i?(i=!1,e):t(r,e,n,o)});return r}function rn(e,t,r,o){var i=arguments.length<3;return t=n.createCallback(t,o,4),Jt(e,function(e,n,o){r=i?(i=!1,e):t(r,e,n,o)}),r}function on(e,t,r){return t=n.createCallback(t,r,3),Kt(e,function(e,n,r){return!t(e,n,r)})}function an(e,t,n){if(e&&"number"!=typeof e.length&&(e=qt(e)),null==t||n)return e?e[rt(0,e.length-1)]:m;var r=sn(e);return r.length=Wr(Vr(0,t),r.length),r}function sn(e){var t=-1,n=e?e.length:0,r=hr("number"==typeof n?n:0);return Qt(e,function(e){var n=rt(0,++t);r[t]=r[n],r[n]=e}),r}function un(e){var t=e?e.length:0;return"number"==typeof t?t:eo(e).length}function ln(e,t,r){var o;t=n.createCallback(t,r,3);var i=-1,a=e?e.length:0;if("number"==typeof a)for(;++i<a&&!(o=t(e[i],i,e)););else uo(e,function(e,n,r){return!(o=t(e,n,r))});return!!o}function cn(e,t,r){var o=-1,i=Xr(t),a=e?e.length:0,u=hr("number"==typeof a?a:0);for(i||(t=n.createCallback(t,r,3)),Qt(e,function(e,n,r){var a=u[++o]=f();i?a.criteria=Zt(t,function(t){return e[t]}):(a.criteria=c())[0]=t(e,n,r),a.index=o,a.value=e}),a=u.length,u.sort(s);a--;){var l=u[a];u[a]=l.value,i||p(l.criteria),d(l)}return u}function fn(e){return e&&"number"==typeof e.length?h(e):qt(e)}function pn(e){for(var t=-1,n=e?e.length:0,r=[];++t<n;){var o=e[t];o&&r.push(o)}return r}function dn(e){return X(e,Z(arguments,!0,!0,1))}function hn(e,t,r){var o=-1,i=e?e.length:0;for(t=n.createCallback(t,r,3);++o<i;)if(t(e[o],o,e))return o;return-1}function gn(e,t,r){var o=e?e.length:0;for(t=n.createCallback(t,r,3);o--;)if(t(e[o],o,e))return o;return-1}function mn(e,t,r){var o=0,i=e?e.length:0;if("number"!=typeof t&&null!=t){var a=-1;for(t=n.createCallback(t,r,3);++a<i&&t(e[a],a,e);)o++}else if(o=t,null==o||r)return e?e[0]:m;return h(e,0,Wr(Vr(0,o),i))}function vn(e,t,n,r){return"boolean"!=typeof t&&null!=t&&(r=n,n="function"!=typeof t&&r&&r[t]===e?null:t,t=!1),null!=n&&(e=Zt(e,n,r)),Z(e,t)}function yn(t,n,r){if("number"==typeof r){var o=t?t.length:0;r=0>r?Vr(0,o+r):r||0}else if(r){var i=Cn(t,n);return t[i]===n?i:-1}return e(t,n,r)}function bn(e,t,r){var o=0,i=e?e.length:0;if("number"!=typeof t&&null!=t){var a=i;for(t=n.createCallback(t,r,3);a--&&t(e[a],a,e);)o++}else o=null==t||r?1:t||o;return h(e,0,Wr(Vr(0,i-o),i))}function $n(){for(var t=[],n=-1,r=arguments.length,i=c(),a=ut(),s=a===e,l=c();++n<r;){var f=arguments[n];(Xr(f)||pt(f))&&(t.push(f),i.push(s&&f.length>=w&&u(n?t[n]:l)))}var h=t[0],g=-1,m=h?h.length:0,v=[];e:for(;++g<m;){var y=i[0];if(f=h[g],(y?o(y,f):a(l,f))<0){for(n=r,(y||l).push(f);--n;)if(y=i[n],(y?o(y,f):a(t[n],f))<0)continue e;v.push(f)}}for(;r--;)y=i[r],y&&d(y);return p(i),p(l),v}function wn(e,t,r){var o=0,i=e?e.length:0;if("number"!=typeof t&&null!=t){var a=i;for(t=n.createCallback(t,r,3);a--&&t(e[a],a,e);)o++}else if(o=t,null==o||r)return e?e[i-1]:m;return h(e,Vr(0,i-o))}function xn(e,t,n){var r=e?e.length:0;for("number"==typeof n&&(r=(0>n?Vr(0,r+n):Wr(n,r-1))+1);r--;)if(e[r]===t)return r;return-1}function _n(e){for(var t=arguments,n=0,r=t.length,o=e?e.length:0;++n<r;)for(var i=-1,a=t[n];++i<o;)e[i]===a&&(Nr.call(e,i--,1),o--);return e}function kn(e,t,n){e=+e||0,n="number"==typeof n?n:+n||1,null==t&&(t=e,e=0);for(var r=-1,o=Vr(0,Ar((t-e)/(n||1))),i=hr(o);++r<o;)i[r]=e,e+=n;return i}function Sn(e,t,r){var o=-1,i=e?e.length:0,a=[];for(t=n.createCallback(t,r,3);++o<i;){var s=e[o];t(s,o,e)&&(a.push(s),Nr.call(e,o--,1),i--)}return a}function En(e,t,r){if("number"!=typeof t&&null!=t){var o=0,i=-1,a=e?e.length:0;for(t=n.createCallback(t,r,3);++i<a&&t(e[i],i,e);)o++}else o=null==t||r?1:Vr(0,t);return h(e,o)}function Cn(e,t,r,o){var i=0,a=e?e.length:i;for(r=r?n.createCallback(r,o,1):Xn,t=r(t);a>i;){var s=i+a>>>1;r(e[s])<t?i=s+1:a=s}return i}function Tn(){return ot(Z(arguments,!0,!0))}function An(e,t,r,o){return"boolean"!=typeof t&&null!=t&&(o=r,r="function"!=typeof t&&o&&o[t]===e?null:t,t=!1),null!=r&&(r=n.createCallback(r,o,3)),ot(e,t,r)}function Dn(e){return X(e,h(arguments,1))}function On(){for(var e=-1,t=arguments.length;++e<t;){var n=arguments[e];if(Xr(n)||pt(n))var r=r?ot(X(r,n).concat(X(n,r))):n}return r||[]}function Pn(){for(var e=arguments.length>1?arguments:arguments[0],t=-1,n=e?en(ho(e,"length")):0,r=hr(0>n?0:n);++t<n;)r[t]=ho(e,t);return r}function jn(e,t){var n=-1,r=e?e.length:0,o={};for(t||!r||Xr(e[0])||(t=[]);++n<r;){var i=e[n];t?o[i]=t[n]:i&&(o[i[0]]=i[1])}return o}function Mn(e,t){if(!At(t))throw new _r;return function(){return--e<1?t.apply(this,arguments):void 0}}function In(e,t){return arguments.length>2?at(e,17,h(arguments,2),null,t):at(e,1,null,null,t)}function Ln(e){for(var t=arguments.length>1?Z(arguments,!0,!1,1):$t(e),n=-1,r=t.length;++n<r;){var o=t[n];e[o]=at(e[o],1,null,null,e)}return e}function Nn(e,t){return arguments.length>2?at(t,19,h(arguments,2),null,e):at(t,3,null,null,e)}function Rn(){for(var e=arguments,t=e.length;t--;)if(!At(e[t]))throw new _r;return function(){for(var t=arguments,n=e.length;n--;)t=[e[n].apply(this,t)];return t[0]}}function Bn(e,t){return t="number"==typeof t?t:+t||e.length,at(e,4,null,null,null,t)}function Un(e,t,n){var r,o,i,a,s,u,l,c=0,f=!1,p=!0;if(!At(e))throw new _r;if(t=Vr(0,t)||0,n===!0){var d=!0;p=!1}else Dt(n)&&(d=n.leading,f="maxWait"in n&&(Vr(t,n.maxWait)||0),p="trailing"in n?n.trailing:p);var h=function(){var n=t-(mo()-a);if(0>=n){o&&Dr(o);var f=l;o=u=l=m,f&&(c=mo(),i=e.apply(s,r),u||o||(r=s=null))}else u=Lr(h,n)},g=function(){u&&Dr(u),o=u=l=m,(p||f!==t)&&(c=mo(),i=e.apply(s,r),u||o||(r=s=null))};return function(){if(r=arguments,a=mo(),s=this,l=p&&(u||!d),f===!1)var n=d&&!u;else{o||d||(c=a);var m=f-(a-c),v=0>=m;v?(o&&(o=Dr(o)),c=a,i=e.apply(s,r)):o||(o=Lr(g,m))}return v&&u?u=Dr(u):u||t===f||(u=Lr(h,t)),n&&(v=!0,i=e.apply(s,r)),!v||u||o||(r=s=null),i}}function Fn(e){if(!At(e))throw new _r;var t=h(arguments,1);return Lr(function(){e.apply(m,t)},1)}function Hn(e,t){if(!At(e))throw new _r;var n=h(arguments,2);return Lr(function(){e.apply(m,n)},t)}function qn(e,t){if(!At(e))throw new _r;var n=function(){var r=n.cache,o=t?t.apply(this,arguments):$+arguments[0];return Mr.call(r,o)?r[o]:r[o]=e.apply(this,arguments)};return n.cache={},n}function zn(e){var t,n;if(!At(e))throw new _r;return function(){return t?n:(t=!0,n=e.apply(this,arguments),e=null,n)}}function Vn(e){return at(e,16,h(arguments,1))}function Wn(e){return at(e,32,null,h(arguments,1))}function Kn(e,t,n){var r=!0,o=!0;if(!At(e))throw new _r;return n===!1?r=!1:Dt(n)&&(r="leading"in n?n.leading:r,o="trailing"in n?n.trailing:o),K.leading=r,K.maxWait=t,K.trailing=o,Un(e,t,K)}function Yn(e,t){return at(t,16,[e])}function Gn(e){return function(){return e}}function Qn(e,t,n){var r=typeof e;if(null==e||"function"==r)return x(e,t,n);if("object"!=r)return nr(e);var o=eo(e),i=o[0],a=e[i];return 1!=o.length||a!==a||Dt(a)?function(t){for(var n=o.length,r=!1;n--&&(r=et(t[o[n]],e[o[n]],null,!0)););return r}:function(e){var t=e[i];return a===t&&(0!==a||1/a==1/t)}}function Jn(e){return null==e?"":xr(e).replace(oo,st)}function Xn(e){return e}function Zn(e,t,o){var i=!0,a=t&&$t(t);t&&(o||a.length)||(null==o&&(o=t),s=r,t=e,e=n,a=$t(t)),o===!1?i=!1:Dt(o)&&"chain"in o&&(i=o.chain);var s=e,u=At(s);Qt(a,function(n){var r=e[n]=t[n];u&&(s.prototype[n]=function(){var t=this.__chain__,n=this.__wrapped__,o=[n];Ir.apply(o,arguments);var a=r.apply(e,o);if(i||t){if(n===a&&Dt(a))return this;a=new s(a),a.__chain__=t}return a})})}function er(){return t._=Er,this}function tr(){}function nr(e){return function(t){return t[e]}}function rr(e,t,n){var r=null==e,o=null==t;if(null==n&&("boolean"==typeof e&&o?(n=e,e=1):o||"boolean"!=typeof t||(n=t,o=!0)),r&&o&&(t=1),e=+e||0,o?(t=e,e=0):t=+t||0,n||e%1||t%1){var i=Yr();return Wr(e+i*(t-e+parseFloat("1e-"+((i+"").length-1))),t)}return rt(e,t)}function or(e,t){if(e){var n=e[t];return At(n)?e[t]():n}}function ir(e,t,r){var o=n.templateSettings;e=xr(e||""),r=ao({},r,o);var i,a=ao({},r.imports,o.imports),s=eo(a),u=qt(a),c=0,f=r.interpolate||P,p="__p += '",d=wr((r.escape||P).source+"|"+f.source+"|"+(f===D?C:P).source+"|"+(r.evaluate||P).source+"|$","g");e.replace(d,function(t,n,r,o,a,s){return r||(r=o),p+=e.slice(c,s).replace(M,l),n&&(p+="' +\n__e("+n+") +\n'"),a&&(i=!0,p+="';\n"+a+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+t.length,t}),p+="';\n";var h=r.variable,g=h;g||(h="obj",p="with ("+h+") {\n"+p+"\n}\n"),p=(i?p.replace(k,""):p).replace(S,"$1").replace(E,"$1;"),p="function("+h+") {\n"+(g?"":h+" || ("+h+" = {});\n")+"var __t, __p = '', __e = _.escape"+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v="\n/*\n//# sourceURL="+(r.sourceURL||"/lodash/template/source["+L++ +"]")+"\n*/";try{var y=vr(s,"return "+p+v).apply(m,u)}catch(b){throw b.source=p,b}return t?y(t):(y.source=p,y)}function ar(e,t,n){e=(e=+e)>-1?e:0;var r=-1,o=hr(e);for(t=x(t,n,1);++r<e;)o[r]=t(r);return o}function sr(e){return null==e?"":xr(e).replace(ro,ft)}function ur(e){var t=++b;return xr(null==e?"":e)+t}function lr(e){return e=new r(e),e.__chain__=!0,e}function cr(e,t){return t(e),e}function fr(){return this.__chain__=!0,this}function pr(){return xr(this.__wrapped__)}function dr(){return this.__wrapped__}t=t?nt.defaults(J.Object(),t,nt.pick(J,I)):J;var hr=t.Array,gr=t.Boolean,mr=t.Date,vr=t.Function,yr=t.Math,br=t.Number,$r=t.Object,wr=t.RegExp,xr=t.String,_r=t.TypeError,kr=[],Sr=$r.prototype,Er=t._,Cr=Sr.toString,Tr=wr("^"+xr(Cr).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),Ar=yr.ceil,Dr=t.clearTimeout,Or=yr.floor,Pr=vr.prototype.toString,jr=lt(jr=$r.getPrototypeOf)&&jr,Mr=Sr.hasOwnProperty,Ir=kr.push,Lr=t.setTimeout,Nr=kr.splice,Rr=kr.unshift,Br=function(){try{var e={},t=lt(t=$r.defineProperty)&&t,n=t(e,e,e)&&t}catch(r){}return n}(),Ur=lt(Ur=$r.create)&&Ur,Fr=lt(Fr=hr.isArray)&&Fr,Hr=t.isFinite,qr=t.isNaN,zr=lt(zr=$r.keys)&&zr,Vr=yr.max,Wr=yr.min,Kr=t.parseInt,Yr=yr.random,Gr={};Gr[R]=hr,Gr[B]=gr,Gr[U]=mr,Gr[F]=vr,Gr[q]=$r,Gr[H]=br,Gr[z]=wr,Gr[V]=xr,r.prototype=n.prototype;var Qr=n.support={};Qr.funcDecomp=!lt(t.WinRTError)&&j.test(g),Qr.funcNames="string"==typeof vr.name,n.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:D,variable:"",imports:{_:n}},Ur||(y=function(){function e(){}return function(n){if(Dt(n)){e.prototype=n;var r=new e;e.prototype=null}return r||t.Object()}}());var Jr=Br?function(e,t){Y.value=t,Br(e,"__bindData__",Y)}:tr,Xr=Fr||function(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Cr.call(e)==R||!1},Zr=function(e){var t,n=e,r=[];if(!n)return r;if(!G[typeof e])return r;for(t in n)Mr.call(n,t)&&r.push(t);return r},eo=zr?function(e){return Dt(e)?zr(e):[]}:Zr,to={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},no=xt(to),ro=wr("("+eo(no).join("|")+")","g"),oo=wr("["+eo(to).join("")+"]","g"),io=function(e,t,n){var r,o=e,i=o;if(!o)return i;var a=arguments,s=0,u="number"==typeof n?2:a.length;if(u>3&&"function"==typeof a[u-2])var l=x(a[--u-1],a[u--],2);else u>2&&"function"==typeof a[u-1]&&(l=a[--u]);for(;++s<u;)if(o=a[s],o&&G[typeof o])for(var c=-1,f=G[typeof o]&&eo(o),p=f?f.length:0;++c<p;)r=f[c],i[r]=l?l(i[r],o[r]):o[r];return i},ao=function(e,t,n){var r,o=e,i=o;if(!o)return i;for(var a=arguments,s=0,u="number"==typeof n?2:a.length;++s<u;)if(o=a[s],o&&G[typeof o])for(var l=-1,c=G[typeof o]&&eo(o),f=c?c.length:0;++l<f;)r=c[l],"undefined"==typeof i[r]&&(i[r]=o[r]);return i},so=function(e,t,n){var r,o=e,i=o;if(!o)return i;if(!G[typeof o])return i;t=t&&"undefined"==typeof n?t:x(t,n,3);for(r in o)if(t(o[r],r,e)===!1)return i;return i},uo=function(e,t,n){var r,o=e,i=o;if(!o)return i;if(!G[typeof o])return i;t=t&&"undefined"==typeof n?t:x(t,n,3);for(var a=-1,s=G[typeof o]&&eo(o),u=s?s.length:0;++a<u;)if(r=s[a],t(o[r],r,e)===!1)return i;return i},lo=jr?function(e){if(!e||Cr.call(e)!=q)return!1;var t=e.valueOf,n=lt(t)&&(n=jr(t))&&jr(n);return n?e==n||jr(e)==n:ct(e)}:ct,co=it(function(e,t,n){Mr.call(e,n)?e[n]++:e[n]=1}),fo=it(function(e,t,n){(Mr.call(e,n)?e[n]:e[n]=[]).push(t)}),po=it(function(e,t,n){e[n]=t}),ho=Zt,go=Kt,mo=lt(mo=mr.now)&&mo||function(){return(new mr).getTime()},vo=8==Kr(_+"08")?Kr:function(e,t){return Kr(It(e)?e.replace(O,""):e,t||0)};return n.after=Mn,n.assign=io,n.at=zt,n.bind=In,n.bindAll=Ln,n.bindKey=Nn,n.chain=lr,n.compact=pn,n.compose=Rn,n.constant=Gn,n.countBy=co,n.create=gt,n.createCallback=Qn,n.curry=Bn,n.debounce=Un,n.defaults=ao,n.defer=Fn,n.delay=Hn,n.difference=dn,n.filter=Kt,n.flatten=vn,n.forEach=Qt,n.forEachRight=Jt,n.forIn=so,n.forInRight=yt,n.forOwn=uo,n.forOwnRight=bt,n.functions=$t,n.groupBy=fo,n.indexBy=po,n.initial=bn,n.intersection=$n,n.invert=xt,n.invoke=Xt,n.keys=eo,n.map=Zt,n.mapValues=Nt,n.max=en,n.memoize=qn,n.merge=Rt,n.min=tn,n.omit=Bt,n.once=zn,n.pairs=Ut,n.partial=Vn,n.partialRight=Wn,n.pick=Ft,n.pluck=ho,n.property=nr,n.pull=_n,n.range=kn,n.reject=on,n.remove=Sn,n.rest=En,n.shuffle=sn,n.sortBy=cn,n.tap=cr,n.throttle=Kn,n.times=ar,n.toArray=fn,n.transform=Ht,n.union=Tn,n.uniq=An,n.values=qt,n.where=go,n.without=Dn,n.wrap=Yn,n.xor=On,n.zip=Pn,n.zipObject=jn,n.collect=Zt,n.drop=En,n.each=Qt,n.eachRight=Jt,n.extend=io,n.methods=$t,n.object=jn,n.select=Kt,n.tail=En,n.unique=An,n.unzip=Pn,Zn(n),n.clone=dt,n.cloneDeep=ht,n.contains=Vt,n.escape=Jn,n.every=Wt,n.find=Yt,n.findIndex=hn,n.findKey=mt,n.findLast=Gt,n.findLastIndex=gn,n.findLastKey=vt,n.has=wt,n.identity=Xn,n.indexOf=yn,n.isArguments=pt,n.isArray=Xr,n.isBoolean=_t,n.isDate=kt,n.isElement=St,n.isEmpty=Et,n.isEqual=Ct,n.isFinite=Tt,n.isFunction=At,n.isNaN=Ot,n.isNull=Pt,n.isNumber=jt,n.isObject=Dt,n.isPlainObject=lo,n.isRegExp=Mt,n.isString=It,n.isUndefined=Lt,n.lastIndexOf=xn,n.mixin=Zn,n.noConflict=er,n.noop=tr,n.now=mo,n.parseInt=vo,n.random=rr,n.reduce=nn,n.reduceRight=rn,n.result=or,n.runInContext=g,n.size=un,n.some=ln,n.sortedIndex=Cn,n.template=ir,n.unescape=sr,n.uniqueId=ur,n.all=Wt,n.any=ln,n.detect=Yt,n.findWhere=Yt,n.foldl=nn,n.foldr=rn,n.include=Vt,n.inject=nn,Zn(function(){var e={};return uo(n,function(t,r){n.prototype[r]||(e[r]=t)}),e}(),!1),n.first=mn,n.last=wn,n.sample=an,n.take=mn,n.head=mn,uo(n,function(e,t){var o="sample"!==t;n.prototype[t]||(n.prototype[t]=function(t,n){var i=this.__chain__,a=e(this.__wrapped__,t,n);return i||null!=t&&(!n||o&&"function"==typeof t)?new r(a,i):a})}),n.VERSION="2.4.1",n.prototype.chain=fr,n.prototype.toString=pr,n.prototype.value=dr,n.prototype.valueOf=dr,Qt(["join","pop","shift"],function(e){var t=kr[e];n.prototype[e]=function(){var e=this.__chain__,n=t.apply(this.__wrapped__,arguments);return e?new r(n,e):n}}),Qt(["push","reverse","sort","unshift"],function(e){var t=kr[e];n.prototype[e]=function(){return t.apply(this.__wrapped__,arguments),this}}),Qt(["concat","slice","splice"],function(e){var t=kr[e];n.prototype[e]=function(){return new r(t.apply(this.__wrapped__,arguments),this.__chain__)}}),n}var m,v=[],y=[],b=0,$=+new Date+"",w=75,x=40,_=" 	\f \n\r\u2028\u2029 ᠎              ",k=/\b__p \+= '';/g,S=/\b(__p \+=) '' \+/g,E=/(__e\(.*?\)|\b__t\)) \+\n'';/g,C=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,T=/\w*$/,A=/^\s*function[ \n\r\t]+\w/,D=/<%=([\s\S]+?)%>/g,O=RegExp("^["+_+"]*0+(?=.$)"),P=/($^)/,j=/\bthis\b/,M=/['\n\r\t\u2028\u2029\\]/g,I=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],L=0,N="[object Arguments]",R="[object Array]",B="[object Boolean]",U="[object Date]",F="[object Function]",H="[object Number]",q="[object Object]",z="[object RegExp]",V="[object String]",W={};W[F]=!1,W[N]=W[R]=W[B]=W[U]=W[H]=W[q]=W[z]=W[V]=!0;var K={leading:!1,maxWait:0,trailing:!1},Y={configurable:!1,enumerable:!1,value:null,writable:!1},G={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},Q={"\\":"\\","'":"'","\n":"n","\r":"r","	":"t","\u2028":"u2028","\u2029":"u2029"},J=G[typeof window]&&window||this,X=G[typeof n]&&n&&!n.nodeType&&n,Z=G[typeof t]&&t&&!t.nodeType&&t,et=Z&&Z.exports===X&&X,tt=G[typeof r]&&r;!tt||tt.global!==tt&&tt.window!==tt||(J=tt);var nt=g();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(J._=nt,define(function(){return nt})):X&&Z?et?(Z.exports=nt)._=nt:X._=nt:J._=nt}).call(this)}).call(this,e("c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\..\\..\\node_modules\\lodash\\dist\\lodash.js","/..\\..\\..\\node_modules\\lodash\\dist")},{buffer:2,"c:\\Users\\geoffrey.goodman\\Documents\\My Sites\\plunker\\node_modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":7}]},{},[11]);
.fa-pane {
  overflow: visible;
}
.fa-pane,
.fa-pane-overlay,
.fa-pane-handle,
.fa-pane-scroller {
  display: block;
  position: absolute;
  box-sizing: border-box;
}
.fa-pane,
.fa-pane-overlay,
.fa-pane-scroller {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.fa-pane-scroller {
  overflow: auto;
}
.fa-pane.fa-pane-closed > .fa-pane-scroller {
  display: none;
}
.fa-pane-overlay {
  display: none;
  z-index: 9999;
}
.fa-pane-resizing > .fa-pane-overlay {
  display: block;
}
.fa-pane-resizing ~ .fa-pane > .fa-pane-overlay {
  display: block;
}
.fa-pane-orientation-vertical > .fa-pane-handle {
  cursor: row-resize;
}
.fa-pane-orientation-horizontal > .fa-pane-handle {
  cursor: col-resize;
}
.fa-pane-orientation-horizontal > .fa-pane-handle > .fa-pane-toggle {
  margin: auto;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100px;
  max-height: 20%;
  cursor: pointer;
}
.fa-pane-orientation-vertical > .fa-pane-handle > .fa-pane-toggle {
  margin: auto;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100px;
  max-width: 20%;
  cursor: pointer;
}
.fa-pane-closed > .fa-pane-scroller {
  display: none;
}
.ngTagsInput *,
:after,
:before {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.ngTagsInput {
  position: relative;
}
.ngTagsInput:active {
  outline: 0;
}
.ngTagsInput .tags {
  -moz-appearance: textfield;
  -webkit-appearance: textfield;
  background-color: #fff;
  background-color: -moz-field;
  border: 1px solid #a9a9a9;
  box-shadow: 1px 1px 1px 0 #d3d3d3 inset;
  margin-top: 5px;
  padding: 2px;
  overflow-y: auto;
  overflow-x: hidden;
  word-wrap: break-word;
  font-size: 14px;
  cursor: text;
}
.ngTagsInput .tags.focused {
  outline: 0;
  -webkit-box-shadow: 0 0 3px 1px rgba(5, 139, 242, 0.6);
  -moz-box-shadow: 0 0 3px 1px rgba(5, 139, 242, 0.6);
  box-shadow: 0 0 3px 1px rgba(5, 139, 242, 0.6);
}
.ngTagsInput .tags .tag-list {
  margin: 0;
  padding: 0;
  overflow: visible;
  list-style-type: none;
}
.ngTagsInput .tags .tag-item {
  margin: 2px;
  padding-left: 4px;
  display: inline-block;
  border-radius: 3px;
  height: 21px;
  line-height: 1.3;
  border: 1px solid #acacac;
  float: left;
  background: #f0f9ff;
  background: -moz-linear-gradient(top, #f0f9ff 0, #cbebff 47%, #a1dbff 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f0f9ff), color-stop(47%, #cbebff), color-stop(100%, #a1dbff));
  background: -webkit-linear-gradient(top, #f0f9ff 0, #cbebff 47%, #a1dbff 100%);
  background: -o-linear-gradient(top, #f0f9ff 0, #cbebff 47%, #a1dbff 100%);
  background: -ms-linear-gradient(top, #f0f9ff 0, #cbebff 47%, #a1dbff 100%);
  background: linear-gradient(to bottom, #f0f9ff 0, #cbebff 47%, #a1dbff 100%);
}
.ngTagsInput .tags .tag-item.selected {
  background: #febbbb;
  background: -moz-linear-gradient(top, #febbbb 0, #fe9090 45%, #ff5c5c 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #febbbb), color-stop(45%, #fe9090), color-stop(100%, #ff5c5c));
  background: -webkit-linear-gradient(top, #febbbb 0, #fe9090 45%, #ff5c5c 100%);
  background: -o-linear-gradient(top, #febbbb 0, #fe9090 45%, #ff5c5c 100%);
  background: -ms-linear-gradient(top, #febbbb 0, #fe9090 45%, #ff5c5c 100%);
  background: linear-gradient(to bottom, #febbbb 0, #fe9090 45%, #ff5c5c 100%);
}
.ngTagsInput .tags .tag-item span {
  font: 13px "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.ngTagsInput .tags .tag-item button {
  margin: 0;
  border: 0;
  background: 0 0;
  color: #585858;
  cursor: pointer;
  font: 700 16px Arial, sans-serif;
  vertical-align: middle;
}
.ngTagsInput .tags .tag-item button:active {
  color: #ff0000;
}
.ngTagsInput .tags .tag-input {
  border: 0;
  outline: 0;
  margin: 2px;
  padding: 0 0 0 4px;
  height: 21px;
  float: left;
  font: 13px "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.ngTagsInput .tags input::-ms-clear {
  display: none;
}
.ngTagsInput .autocomplete {
  margin-top: 5px;
  position: absolute;
  padding: 8px 0;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  width: 100%;
  z-index: 999;
}
.ngTagsInput .autocomplete .suggestion-list {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
.ngTagsInput .autocomplete .suggestion-item {
  padding: 3px 16px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 20px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ngTagsInput .autocomplete .suggestion-item.selected {
  color: #fff;
  background-color: #0097cf;
}
.ngTagsInput .autocomplete .suggestion-item em {
  font-weight: 700;
  font-style: normal;
}
.bootstrap .tags {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}
.bootstrap .tags.focused {
  border-color: #66afe9;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}
.bootstrap .tags .tag-item {
  background: #428bca;
  border: 1px solid #357ebd;
  border-radius: 4px;
  color: #fff;
}
.bootstrap .tags .tag-item.selected {
  background: #d9534f;
  border: 1px solid #d43f3a;
  border-radius: 4px;
  color: #fff;
}
.bootstrap .tags .tag-item button {
  background: transparent;
  color: #000;
  opacity: .4;
}
.bootstrap .autocomplete {
  border-radius: 4px;
}
.bootstrap .autocomplete .tag-item.selected {
  color: #262626;
  background-color: #e9e9e9;
}
.file-tree .file-tree {
  margin-left: 1em;
}
.tree-bg {
  position: absolute;
  top: 0;
  right: 0;
  left: -999px;
  height: 26px;
}
.tree-entry .tree-bg {
  position: absolute;
  top: 0;
  right: 0;
  left: -999px;
  height: 26px;
  pointer-events: none;
  z-index: -1;
}
.tree-entry .tree-inner {
  line-height: 26px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.tree-entry .tree-inner .tree-icon {
  line-height: 22px;
}
.tree-entry .tree-inner .tree-actions {
  visibility: hidden;
  position: absolute;
  top: -1px;
  right: 0;
}
.tree-entry .tree-inner .tree-actions .btn {
  padding: 1px 2px;
}
.tree-entry .tree-inner .tree-actions .btn > .fa {
  color: #666;
  font-size: 1.3em;
  line-height: 1.3em;
}
.tree-entry .tree-inner .tree-actions .btn:hover > .fa {
  color: #333;
}
.tree-entry .tree-inner .tree-remover {
  visibility: hidden;
  position: absolute;
  right: 4px;
  top: 4px;
  z-index: 1;
}
.tree-entry .tree-inner .tree-remover:hover {
  color: red;
}
.tree-entry .tree-inner:hover {
  cursor: pointer;
}
.tree-entry .tree-inner:hover .tree-actions {
  visibility: visible;
}
.tree-entry .tree-inner:hover .tree-remover {
  visibility: visible;
}
.tree-entry .tree-inner:hover ~ .tree-bg {
  background-color: #eeeeee;
}
.tree-entry.active > .tree-bg {
  background-color: #0088cc;
}
.tree-entry.active > .tree-inner {
  color: #f5f5f5;
}
.tree-entry.active:hover > .tree-bg {
  background-color: #277ba5;
}
.tree-entry.active .tree-actions .btn > .fa {
  color: #f5f5f5;
}
.tree-entry.active .tree-actions .btn:hover > .fa {
  color: #e5e5e5;
}
.tree-entry.open > .tree-inner > .tree-filename {
  font-weight: bold;
}
.tree-entry.collapsed > .file-tree {
  display: none;
}
.shift-key .tree-inner:hover .tree-open-right .fa {
  color: #0088cc;
}
.control-key .tree-inner:hover .tree-open-down .fa {
  color: #0088cc;
}
.shift-key.control-key .tree-entry.open .tree-inner:hover .tree-filename {
  color: red;
}
#plunkerPreviewIframe {
  position: absolute;
  width: 100%;
  height: 100%;
}
.qrcode-overlay {
  display: none;
  background: rgba(255, 255, 255, 0.8);
  padding: 10%;
  text-align: center;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.qrcode-overlay.active {
  display: block;
  z-index: 20;
}
.qrcode-overlay .qrcode > img {
  display: inline-block !important;
}
/* Put your css in here */
.fa-pane-handle {
  background: #ccc;
}
.fa-pane:hover > .fa-pane-handle > .fa-pane-toggle {
  background: #666;
}
.fa-pane-resizing > .fa-pane-handle,
.fa-pane-handle:hover {
  background-color: #C4E1A4;
}
.fa-pane-parent > .fa-pane-scroller {
  border: none;
}
.fa-pane-constrained.fa-pane-resizing > .fa-pane-handle {
  background-color: #e1c1a4;
}
.pane-toolbar {
  background-color: #33454d;
  color: #f5f5f5;
}
.plunker-brand {
  background: url('http://plnkr.co/img/plunker.png') no-repeat;
  background-size: 38px 38px;
  background-position: 0 center;
  margin: 0;
  padding: 0;
  padding-left: 38px !important;
  margin-left: 10px;
  font-size: 20px;
  font-weight: 900;
  color: #777777;
  height: 38px;
  line-height: 38px;
  text-decoration: none;
  float: left;
}
.plunker-brand a {
  color: #f5f5f5;
}
.plunker-brand a:hover {
  color: #e5e5e5;
  text-decoration: none;
  text-shadow: #eee 0 0 2px;
}
.pane-toolbar > .fa-pane-scroller {
  overflow: visible;
}
.pane-hierarchy .fa-pane-scroller {
  border: 4px solid #526e7b;
}
.pane-hierarchy .fa-pane-scroller.active {
  border: 4px solid #3a7793;
}
.pane-hierarchy .fa-pane-parent > .fa-pane-scroller {
  border: none;
}
.pane-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 20px;
  background-color: #526e7b;
  color: #f3f3f3;
}
.fa-pane-scroller.active .pane-header {
  background-color: #3a7793;
}
.pane-actions {
  position: absolute;
  top: 0;
  right: 1px;
  width: auto;
  height: auto;
  line-height: 1;
}
.pane-actions .pane-options {
  display: inline-block;
  margin-right: 0.5em;
}
.pane-actions .btn-xs {
  font-size: 8px;
  width: 17px;
}
.pane-content {
  position: absolute;
  top: 20px;
  right: 0;
  bottom: 0;
  left: 0;
}
.ace_editor {
  position: absolute !important;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.fadeIn {
  animation-name: fadeIn;
}
.pane-toolbar .brand {
  display: inline-block;
}
.pane-toolbar .toolbar-ops {
  display: inline-block;
}
.pane-toolbar .toolbar-group {
  display: inline-block;
  margin-left: 1em;
  margin-top: 4px;
}
.pane-sidebar {
  background-image: url(http://i.imgur.com/Xekh6w4.png);
}
.pane-sidebar-info .fa-pane-scroller {
  padding: 5px;
}
.pane-header .btn-link {
  color: #b5b5b5;
  -webkit-box-shadow: none;
  box-shadow: none;
  font-size: 10px;
  padding: 1px;
}
.pane-header .btn-link.active {
  color: #f5f5f5;
  text-shadow: #333 0 0 4px,white 0 0 1px;
}