scratch-render/render.min.js

26 lines
179 KiB
JavaScript
Raw Normal View History

2016-08-08 15:00:04 -04:00
!function(t){function r(e){if(n[e])return n[e].exports;var i=n[e]={exports:{},id:e,loaded:!1};return t[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}var n={};return r.m=t,r.c=n,r.p="",r(0)}([function(t,r,n){"use strict";n(1);var e=n(298);window.RenderWebGLLocal=e},function(t,r,n){(function(t){"use strict";function r(t,r,n){t[r]||Object[e](t,r,{writable:!0,configurable:!0,value:n})}if(n(2),n(293),n(295),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var e="defineProperty";r(String.prototype,"padLeft","".padStart),r(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&r(Array,t,Function.call.bind([][t]))})}).call(r,function(){return this}())},function(t,r,n){n(3),n(52),n(53),n(54),n(55),n(57),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(70),n(72),n(74),n(76),n(79),n(80),n(81),n(85),n(87),n(89),n(92),n(93),n(94),n(95),n(97),n(98),n(99),n(100),n(101),n(102),n(103),n(105),n(106),n(107),n(109),n(110),n(111),n(113),n(114),n(115),n(116),n(117),n(118),n(119),n(120),n(121),n(122),n(123),n(124),n(125),n(126),n(131),n(132),n(136),n(137),n(138),n(139),n(141),n(142),n(143),n(144),n(145),n(146),n(147),n(148),n(149),n(150),n(151),n(152),n(153),n(154),n(155),n(156),n(157),n(159),n(160),n(166),n(167),n(169),n(170),n(171),n(175),n(176),n(177),n(178),n(179),n(181),n(182),n(183),n(184),n(187),n(189),n(190),n(191),n(193),n(195),n(197),n(198),n(199),n(201),n(202),n(203),n(204),n(211),n(214),n(215),n(217),n(218),n(221),n(222),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(244),n(245),n(246),n(247),n(248),n(249),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(260),n(261),n(263),n(264),n(265),n(266),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(291),n(292),t.exports=n(9)},function(t,r,n){"use strict";var e=n(4),i=n(5),o=n(6),u=n(8),a=n(18),f=n(22).KEY,c=n(7),s=n(23),l=n(24),h=n(19),p=n(25),v=n(26),d=n(27),g=n(29),y=n(42),_=n(45),m=n(12),E=n(32),w=n(16),b=n(17),A=n(46),x=n(49),S=n(51),T=n(11),R=n(30),I=S.f,O=T.f,P=x.f,M=e.Symbol,F=e.JSON,B=F&&F.stringify,U="prototype",C=p("_hidden"),L=p("toPrimitive"),N={}.propertyIsEnumerable,D=s("symbol-registry"),k=s("symbols"),j=s("op-symbols"),z=Object[U],G="function"==typeof M,W=e.QObject,Y=!W||!W[U]||!W[U].findChild,V=o&&c(function(){return 7!=A(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(t,r,n){var e=I(z,r);e&&delete z[r],O(t,r,n),e&&t!==z&&O(z,r,e)}:O,X=function(t){var r=k[t]=A(M[U]);return r._k=t,r},H=G&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},q=function(t,r,n){return t===z&&q(j,r,n),m(t),r=w(r,!0),m(n),i(k,r)?(n.enumerable?(i(t,C)&&t[C][r]&&(t[C][r]=!1),n=A(n,{enumerable:b(0,!1)})):(i(t,C)||O(t,C,b(1,{})),t[C][r]=!0),V(t,r,n)):O(t,r,n)},K=function(t,r){m(t);for(var n,e=y(r=E(r)),i=0,o=e.length;o>i;)q(t,n=e[i++],r[n]);return t},Z=function(t,r){return void 0===r?A(t):K(A(t),r)},J=function(t){var r=N.call(this,t=w(t,!0));return!(this===z&&i(k,t)&&!i(j,t))&&(!(r||!i(this,t)||!i(k,t)||i(this,C)&&this[C][t])||r)},Q=function(t,r){if(t=E(t),r=w(r,!0),t!==z||!i(k,r)||i(j,r)){var n=I(t,r);return!n||!i(k,r)||i(t,C)&&t[C][r]||(n.enumerable=!0),n}},$=function(t){for(var r,n=P(E(t)),e=[],o=0;n.length>o;)i(k,r=n[o++])||r==C||r==f||e.push(r);return e},tt=function(t){for(var r,n=t===z,e=P(n?j:E(t)),o=[],u=0;e.length>u;)!i(k,r=e[u++])||n&&!i(z,r)||o.push(k[r]);return o};G||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),r=function(n){this===z&&r.call(j,n),i(this,C)&&i(this[C],t)&&(this[C][t]=!1),V(this,t,b(1,n))};return o&&Y&&V(z,t,{configurable:!0,set:r}),X(t)},a(M[U],"toString",
return e+("00000"+Math.abs(r)).slice(e?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(n>99?n:"0"+u(n))+"Z"}})},function(t,r,n){var e=Date.prototype,i="Invalid Date",o="toString",u=e[o],a=e.getTime;new Date(NaN)+""!=i&&n(18)(e,o,function(){var t=a.call(this);return t===t?u.call(this):i})},function(t,r,n){var e=n(25)("toPrimitive"),i=Date.prototype;e in i||n(10)(i,e,n(158))},function(t,r,n){"use strict";var e=n(12),i=n(16),o="number";t.exports=function(t){if("string"!==t&&t!==o&&"default"!==t)throw TypeError("Incorrect hint");return i(e(this),t!=o)}},function(t,r,n){var e=n(8);e(e.S,"Array",{isArray:n(45)})},function(t,r,n){"use strict";var e=n(20),i=n(8),o=n(58),u=n(161),a=n(162),f=n(37),c=n(163),s=n(164);i(i.S+i.F*!n(165)(function(t){Array.from(t)}),"Array",{from:function(t){var r,n,i,l,h=o(t),p="function"==typeof this?this:Array,v=arguments.length,d=v>1?arguments[1]:void 0,g=void 0!==d,y=0,_=s(h);if(g&&(d=e(d,v>2?arguments[2]:void 0,2)),void 0==_||p==Array&&a(_))for(r=f(h.length),n=new p(r);r>y;y++)c(n,y,g?d(h[y],y):h[y]);else for(l=_.call(h),n=new p;!(i=l.next()).done;y++)c(n,y,g?u(l,d,[i.value,y],!0):i.value);return n.length=y,n}})},function(t,r,n){var e=n(12);t.exports=function(t,r,n,i){try{return i?r(e(n)[0],n[1]):r(n)}catch(o){var u=t["return"];throw void 0!==u&&e(u.call(t)),o}}},function(t,r,n){var e=n(129),i=n(25)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||o[i]===t)}},function(t,r,n){"use strict";var e=n(11),i=n(17);t.exports=function(t,r,n){r in t?e.f(t,r,i(0,n)):t[r]=n}},function(t,r,n){var e=n(75),i=n(25)("iterator"),o=n(129);t.exports=n(9).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[e(t)]}},function(t,r,n){var e=n(25)("iterator"),i=!1;try{var o=[7][e]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(u){}t.exports=function(t,r){if(!r&&!i)return!1;var n=!1;try{var o=[7],u=o[e]();u.next=function(){return{done:n=!0}},o[e]=function(){return u},t(o)}catch(a){}return n}},function(t,r,n){"use strict";var e=n(8),i=n(163);e(e.S+e.F*n(7)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,r=arguments.length,n=new("function"==typeof this?this:Array)(r);r>t;)i(n,t,arguments[t++]);return n.length=r,n}})},function(t,r,n){"use strict";var e=n(8),i=n(32),o=[].join;e(e.P+e.F*(n(33)!=Object||!n(168)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,r,n){var e=n(7);t.exports=function(t,r){return!!t&&e(function(){r?t.call(null,function(){},1):t.call(null)})}},function(t,r,n){"use strict";var e=n(8),i=n(48),o=n(34),u=n(39),a=n(37),f=[].slice;e(e.P+e.F*n(7)(function(){i&&f.call(i)}),"Array",{slice:function(t,r){var n=a(this.length),e=o(this);if(r=void 0===r?n:r,"Array"==e)return f.call(this,t,r);for(var i=u(t,n),c=u(r,n),s=a(c-i),l=Array(s),h=0;h<s;h++)l[h]="String"==e?this.charAt(i+h):this[i+h];return l}})},function(t,r,n){"use strict";var e=n(8),i=n(21),o=n(58),u=n(7),a=[].sort,f=[1,2,3];e(e.P+e.F*(u(function(){f.sort(void 0)})||!u(function(){f.sort(null)})||!n(168)(a)),"Array",{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),i(t))}})},function(t,r,n){"use strict";var e=n(8),i=n(172)(0),o=n(168)([].forEach,!0);e(e.P+e.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,r,n){var e=n(20),i=n(33),o=n(58),u=n(37),a=n(173);t.exports=function(t,r){var n=1==t,f=2==t,c=3==t,s=4==t,l=6==t,h=5==t||l,p=r||a;return function(r,a,v){for(var d,g,y=o(r),_=i(y),m=e(a,v,3),E=u(_.length),w=0,b=n?p(r,E):f?p(r,0):void 0;E>w;w++)if((h||w in _)&&(d=_[w],g=m(d,w,y),t))if(n)b[w]=g;else if(g)switch(t){case 3:return!0;case 5:return d;case 6:return w;case 2:b.push(d)}else if(s)return!1;return l?-1:c||s?s:b}}},function(t,r,n){var e=n(174);t.exports=function(t,r){return new(e(t))(r)}},function(t,r,n){var e=n(13),i=n(45),o=n(25)("species");t.exports=function(t){var r;return i(t)&&(r=t.constructor,"function"!=typeof r||r!==Array&&!i(r.prototype)||(r=void 0),
}),$(_!==Function.prototype?T(y).concat(T(_)):T(y),function(t){t in g||h(g,t,y[t])}),g[K]=A,e||(A.constructor=g));var P=A[_t],M=!!P&&("values"==P.name||void 0==P.name),F=Wt.values;h(g,Et,!0),h(A,At,c),h(A,xt,!0),h(A,wt,g),(f?new g(1)[mt]==c:mt in A)||z(A,mt,{get:function(){return c}}),b[c]=g,u(u.G+u.W+u.F*(g!=y),b),u(u.S,c,{BYTES_PER_ELEMENT:r,from:Lt,of:Nt}),q in A||h(A,q,r),u(u.P,c,jt),L(c),u(u.P+u.F*It,c,{set:Gt}),u(u.P+u.F*!M,c,Wt),u(u.P+u.F*(A.toString!=gt),c,{toString:gt}),u(u.P+u.F*o(function(){new g(1).slice()}),c,{slice:zt}),u(u.P+u.F*(o(function(){return[1,2].toLocaleString()!=new g([1,2]).toLocaleString()})||!o(function(){A.toLocaleString.call([1,2])})),c,{toLocaleString:kt}),U[c]=M?P:F,e||M||h(A,_t,F)}}else t.exports=function(){}},function(t,r,n){n(223)("Uint8",1,function(t){return function(r,n,e){return t(this,r,n,e)}})},function(t,r,n){n(223)("Uint8",1,function(t){return function(r,n,e){return t(this,r,n,e)}},!0)},function(t,r,n){n(223)("Int16",2,function(t){return function(r,n,e){return t(this,r,n,e)}})},function(t,r,n){n(223)("Uint16",2,function(t){return function(r,n,e){return t(this,r,n,e)}})},function(t,r,n){n(223)("Int32",4,function(t){return function(r,n,e){return t(this,r,n,e)}})},function(t,r,n){n(223)("Uint32",4,function(t){return function(r,n,e){return t(this,r,n,e)}})},function(t,r,n){n(223)("Float32",4,function(t){return function(r,n,e){return t(this,r,n,e)}})},function(t,r,n){n(223)("Float64",8,function(t){return function(r,n,e){return t(this,r,n,e)}})},function(t,r,n){var e=n(8),i=n(21),o=n(12),u=(n(4).Reflect||{}).apply,a=Function.apply;e(e.S+e.F*!n(7)(function(){u(function(){})}),"Reflect",{apply:function(t,r,n){var e=i(t),f=o(n);return u?u(e,r,f):a.call(e,r,f)}})},function(t,r,n){var e=n(8),i=n(46),o=n(21),u=n(12),a=n(13),f=n(7),c=n(77),s=(n(4).Reflect||{}).construct,l=f(function(){function t(){}return!(s(function(){},[],t)instanceof t)}),h=!f(function(){s(function(){})});e(e.S+e.F*(l||h),"Reflect",{construct:function(t,r){o(t),u(r);var n=arguments.length<3?t:o(arguments[2]);if(h&&!l)return s(t,r,n);if(t==n){switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3])}var e=[null];return e.push.apply(e,r),new(c.apply(t,e))}var f=n.prototype,p=i(a(f)?f:Object.prototype),v=Function.apply.call(t,p,r);return a(v)?v:p}})},function(t,r,n){var e=n(11),i=n(8),o=n(12),u=n(16);i(i.S+i.F*n(7)(function(){Reflect.defineProperty(e.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,r,n){o(t),r=u(r,!0),o(n);try{return e.f(t,r,n),!0}catch(i){return!1}}})},function(t,r,n){var e=n(8),i=n(51).f,o=n(12);e(e.S,"Reflect",{deleteProperty:function(t,r){var n=i(o(t),r);return!(n&&!n.configurable)&&delete t[r]}})},function(t,r,n){"use strict";var e=n(8),i=n(12),o=function(t){this._t=i(t),this._i=0;var r,n=this._k=[];for(r in t)n.push(r)};n(130)(o,"Object",function(){var t,r=this,n=r._k;do if(r._i>=n.length)return{value:void 0,done:!0};while(!((t=n[r._i++])in r._t));return{value:t,done:!1}}),e(e.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,r,n){function e(t,r){var n,a,s=arguments.length<3?t:arguments[2];return c(t)===s?t[r]:(n=i.f(t,r))?u(n,"value")?n.value:void 0!==n.get?n.get.call(s):void 0:f(a=o(t))?e(a,r,s):void 0}var i=n(51),o=n(59),u=n(5),a=n(8),f=n(13),c=n(12);a(a.S,"Reflect",{get:e})},function(t,r,n){var e=n(51),i=n(8),o=n(12);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,r){return e.f(o(t),r)}})},function(t,r,n){var e=n(8),i=n(59),o=n(12);e(e.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,r,n){var e=n(8);e(e.S,"Reflect",{has:function(t,r){return r in t}})},function(t,r,n){var e=n(8),i=n(12),o=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,r,n){var e=n(8);e(e.S,"Reflect",{ownKeys:n(243)})},function(t,r,n){var e=n(50),i=n(43),o=n(12),u=n(4).Reflect;t.exports=u&&u.ownKeys||function(t){var r=e.f(o(t)),n=i.f;return n?r.concat(n(t)):r}},function(t,r,n){var e=n(8),i=n(12),o=Object.preven
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
2016-08-08 15:00:04 -04:00
"use strict";function i(){function t(){}try{var r=new Uint8Array(1);return r.foo=function(){return 42},r.constructor=t,42===r.foo()&&r.constructor===t&&"function"==typeof r.subarray&&0===r.subarray(1,1).byteLength}catch(n){return!1}}function o(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function t(r){return this instanceof t?(t.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof r?u(this,r):"string"==typeof r?a(this,r,arguments.length>1?arguments[1]:"utf8"):f(this,r)):arguments.length>1?new t(r,arguments[1]):new t(r)}function u(r,n){if(r=d(r,n<0?0:0|g(n)),!t.TYPED_ARRAY_SUPPORT)for(var e=0;e<n;e++)r[e]=0;return r}function a(t,r,n){"string"==typeof n&&""!==n||(n="utf8");var e=0|_(r,n);return t=d(t,e),t.write(r,n),t}function f(r,n){if(t.isBuffer(n))return c(r,n);if(Z(n))return s(r,n);if(null==n)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(n.buffer instanceof ArrayBuffer)return l(r,n);if(n instanceof ArrayBuffer)return h(r,n)}return n.length?p(r,n):v(r,n)}function c(t,r){var n=0|g(r.length);return t=d(t,n),r.copy(t,0,0,n),t}function s(t,r){var n=0|g(r.length);t=d(t,n);for(var e=0;e<n;e+=1)t[e]=255&r[e];return t}function l(t,r){var n=0|g(r.length);t=d(t,n);for(var e=0;e<n;e+=1)t[e]=255&r[e];return t}function h(r,n){return t.TYPED_ARRAY_SUPPORT?(n.byteLength,r=t._augment(new Uint8Array(n))):r=l(r,new Uint8Array(n)),r}function p(t,r){var n=0|g(r.length);t=d(t,n);for(var e=0;e<n;e+=1)t[e]=255&r[e];return t}function v(t,r){var n,e=0;"Buffer"===r.type&&Z(r.data)&&(n=r.data,e=0|g(n.length)),t=d(t,e);for(var i=0;i<e;i+=1)t[i]=255&n[i];return t}function d(r,n){t.TYPED_ARRAY_SUPPORT?(r=t._augment(new Uint8Array(n)),r.__proto__=t.prototype):(r.length=n,r._isBuffer=!0);var e=0!==n&&n<=t.poolSize>>>1;return e&&(r.parent=J),r}function g(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function y(r,n){if(!(this instanceof y))return new y(r,n);var e=new t(r,n);return delete e.parent,e}function _(t,r){"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var e=!1;;)switch(r){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":return W(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(t).length;default:if(e)return W(t).length;r=(""+r).toLowerCase(),e=!0}}function m(t,r,n){var e=!1;if(r=0|r,n=void 0===n||n===1/0?this.length:0|n,t||(t="utf8"),r<0&&(r=0),n>this.length&&(n=this.length),n<=r)return"";for(;;)switch(t){case"hex":return M(this,r,n);case"utf8":case"utf-8":return R(this,r,n);case"ascii":return O(this,r,n);case"binary":return P(this,r,n);case"base64":return T(this,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,r,n);default:if(e)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),e=!0}}function E(t,r,n,e){n=Number(n)||0;var i=t.length-n;e?(e=Number(e),e>i&&(e=i)):e=i;var o=r.length;if(o%2!==0)throw new Error("Invalid hex string");e>o/2&&(e=o/2);for(var u=0;u<e;u++){var a=parseInt(r.substr(2*u,2),16);if(isNaN(a))throw new Error("Invalid hex string");t[n+u]=a}return u}function w(t,r,n,e){return H(W(r,t.length-n),t,n,e)}function b(t,r,n,e){return H(Y(r),t,n,e)}function A(t,r,n,e){return b(t,r,n,e)}function x(t,r,n,e){return H(X(r),t,n,e)}function S(t,r,n,e){return H(V(r,t.length-n),t,n,e)}function T(t,r,n){return 0===r&&n===t.length?q.fromByteArray(t):q.fromByteArray(t.slice(r,n))}function R(t,r,n){n=Math.min(t.length,n);for(var e=[],i=r;i<n;){var o=t[i],u=null,a=o>239?4:o>223?3:o>191?2:1;if(i+a<=n){var f,c,s,l;switch(a){case 1:o<128&&(u=o);break;case 2:f=t[i+1],128===(192&f)&&(l=(31&o)<<6|63&f,l>127&&(u=l));break;case 3:f=t[i+1],c=t[i+2],128===(192&f)&&128===(192&c)&&(l=(15&o)<<12|(63&f)<<6|63&c,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:f=t[i+1],c=t[i+2],s=t[i+3],128===(192&f)&&128===(192&c)&&128===(192&s)&&(l=(15&o)<<18|(63&f)<<12|(63&c)<<6|63&s,l>65535&&l<1114112&&(u=l))}}null===u?(u=65533,a=1):u>65535&&(u-=65536,e
* @license twgl.js 1.5.2 Copyright (c) 2015, Gregg Tavares All Rights Reserved.
* Available via the MIT license.
* see: http://github.com/greggman/twgl.js for details
*/
/**
* @license almond 0.3.1 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/almond for details
*/
!function(n,u){i=[],e=u,o="function"==typeof e?e.apply(r,i):e,!(void 0!==o&&(t.exports=o)),"undefined"!=typeof t&&t.exports?t.exports=u():n.twgl=u()}(this,function(){/**
* @license almond 0.3.1 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/almond for details
*/
var t,r,n;return function(e){function i(t,r){return E.call(t,r)}function o(t,r){var n,e,i,o,u,a,f,c,s,l,h,p=r&&r.split("/"),v=_.map,d=v&&v["*"]||{};if(t&&"."===t.charAt(0))if(r){for(t=t.split("/"),u=t.length-1,_.nodeIdCompat&&b.test(t[u])&&(t[u]=t[u].replace(b,"")),t=p.slice(0,p.length-1).concat(t),s=0;s<t.length;s+=1)if(h=t[s],"."===h)t.splice(s,1),s-=1;else if(".."===h){if(1===s&&(".."===t[2]||".."===t[0]))break;s>0&&(t.splice(s-1,2),s-=2)}t=t.join("/")}else 0===t.indexOf("./")&&(t=t.substring(2));if((p||d)&&v){for(n=t.split("/"),s=n.length;s>0;s-=1){if(e=n.slice(0,s).join("/"),p)for(l=p.length;l>0;l-=1)if(i=v[p.slice(0,l).join("/")],i&&(i=i[e])){o=i,a=s;break}if(o)break;!f&&d&&d[e]&&(f=d[e],c=s)}!o&&f&&(o=f,a=c),o&&(n.splice(0,a,o),t=n.join("/"))}return t}function u(t,r){return function(){var n=w.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),p.apply(e,n.concat([t,r]))}}function a(t){return function(r){return o(r,t)}}function f(t){return function(r){g[t]=r}}function c(t){if(i(y,t)){var r=y[t];delete y[t],m[t]=!0,h.apply(e,r)}if(!i(g,t)&&!i(m,t))throw new Error("No "+t);return g[t]}function s(t){var r,n=t?t.indexOf("!"):-1;return n>-1&&(r=t.substring(0,n),t=t.substring(n+1,t.length)),[r,t]}function l(t){return function(){return _&&_.config&&_.config[t]||{}}}var h,p,v,d,g={},y={},_={},m={},E=Object.prototype.hasOwnProperty,w=[].slice,b=/\.js$/;v=function(t,r){var n,e=s(t),i=e[0];return t=e[1],i&&(i=o(i,r),n=c(i)),i?t=n&&n.normalize?n.normalize(t,a(r)):o(t,r):(t=o(t,r),e=s(t),i=e[0],t=e[1],i&&(n=c(i))),{f:i?i+"!"+t:t,n:t,pr:i,p:n}},d={notrequirebecasebrowserifymessesup:function(t){return u(t)},exports:function(t){var r=g[t];return"undefined"!=typeof r?r:g[t]={}},module:function(t){return{id:t,uri:"",exports:g[t],config:l(t)}}},h=function(t,r,n,o){var a,s,l,h,p,_,E=[],w=typeof n;if(o=o||t,"undefined"===w||"function"===w){for(r=!r.length&&n.length?["notrequirebecasebrowserifymessesup","exports","module"]:r,p=0;p<r.length;p+=1)if(h=v(r[p],o),s=h.f,"notrequirebecasebrowserifymessesup"===s)E[p]=d.notrequirebecasebrowserifymessesup(t);else if("exports"===s)E[p]=d.exports(t),_=!0;else if("module"===s)a=E[p]=d.module(t);else if(i(g,s)||i(y,s)||i(m,s))E[p]=c(s);else{if(!h.p)throw new Error(t+" missing "+s);h.p.load(h.n,u(o,!0),f(s),{}),E[p]=g[s]}l=n?n.apply(g[t],E):void 0,t&&(a&&a.exports!==e&&a.exports!==g[t]?g[t]=a.exports:l===e&&_||(g[t]=l))}else t&&(g[t]=n)},t=r=p=function(t,r,n,i,o){if("string"==typeof t)return d[t]?d[t](r):c(v(t,r).f);if(!t.splice){if(_=t,_.deps&&p(_.deps,_.callback),!r)return;r.splice?(t=r,r=n,n=null):t=e}return r=r||function(){},"function"==typeof n&&(n=i,i=o),i?h(e,t,r,n):setTimeout(function(){h(e,t,r,n)},4),p},p.config=function(t){return p(t)},t._defined=g,n=function(t,r,n){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");r.splice||(n=r,r=[]),i(g,t)||i(y,t)||(y[t]=[t,r,n])},n.amd={jQuery:!0}}(),n("node_modules/almond/almond.js",function(){}),n("twgl/typedarrays",[],function(){function t(t){if(t instanceof Int8Array)return e;if(t instanceof Uint8Array)return i;if(t instanceof Uint8ClampedArray)return i;if(t instanceof Int16Array)return o;if(t instanceof Uint16Array)return u;if(t instanceof Int32Array)return a;if(t instanceof Uint32Array)return f;if(t instanceof Float32Array)return c;throw"unsupported typed array type"}function r(t){switch(t){case e:return Int8Array;case i:return Uint8Array;case o:return Int16Array;case u:return Uint16Array;case a:return Int32Array;case f:return Uint32Array;case c:return Float32Array;default:throw"unknown gl type"}}function n(t){return t&&t.buffer&&t.buffer instanceof ArrayBuffer}var e=5120,i=5121,o=5122,u=5123,a=5124,f=5125,c=5126;return{getGLTypeForTypedArray:t,getTypedArrayTypeForGLType:r,isArrayBuffer:n}}),n("twgl/utils",[],function(){function t(t){var r={};return Object.keys(t).forEach(function(n){r[n]=t[n]}),r}function r(t,r,n){t.forEach(function(t){var e=r[t];void 0!==e&&(n[t]=e)})}function n(t,r){Object.keys(r).forEach(function(n){r.hasOwnProperty(n)&&t.hasOwnProperty(n)&&(r[n]=t[n])})}f
2016-08-08 15:00:04 -04:00
r[14]=H*(N*f+G*g+U*i-(z*g+B*i+D*f)),r[15]=H*(z*h+C*i+j*f-(k*f+G*h+L*i)),r}function a(t,r,n){n=n||new M(16);var e=t[0],i=t[1],o=t[2],u=t[3],a=t[4],f=t[5],c=t[6],s=t[7],l=t[8],h=t[9],p=t[10],v=t[11],d=t[12],g=t[13],y=t[14],_=t[15],m=r[0],E=r[1],w=r[2],b=r[3],A=r[4],x=r[5],S=r[6],T=r[7],R=r[8],I=r[9],O=r[10],P=r[11],F=r[12],B=r[13],U=r[14],C=r[15];return n[0]=e*m+i*A+o*R+u*F,n[1]=e*E+i*x+o*I+u*B,n[2]=e*w+i*S+o*O+u*U,n[3]=e*b+i*T+o*P+u*C,n[4]=a*m+f*A+c*R+s*F,n[5]=a*E+f*x+c*I+s*B,n[6]=a*w+f*S+c*O+s*U,n[7]=a*b+f*T+c*P+s*C,n[8]=l*m+h*A+p*R+v*F,n[9]=l*E+h*x+p*I+v*B,n[10]=l*w+h*S+p*O+v*U,n[11]=l*b+h*T+p*P+v*C,n[12]=d*m+g*A+y*R+_*F,n[13]=d*E+g*x+y*I+_*B,n[14]=d*w+g*S+y*O+_*U,n[15]=d*b+g*T+y*P+_*C,n}function f(t,r,n){return n=n||i(),t!==n&&(n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11]),n[12]=r[0],n[13]=r[1],n[14]=r[2],n[15]=1,n}function c(r,n){return n=n||t.create(),n[0]=r[12],n[1]=r[13],n[2]=r[14],n}function s(r,n,e){e=e||t.create();var i=4*n;return e[0]=r[i+0],e[1]=r[i+1],e[2]=r[i+2],e}function l(t,r,n,i){i!==t&&(i=e(t,i));var o=4*n;return i[o+0]=r[0],i[o+1]=r[1],i[o+2]=r[2],i}function h(t,r,n,e,i){i=i||new M(16);var o=Math.tan(.5*Math.PI-.5*t),u=1/(n-e);return i[0]=o/r,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=o,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=(n+e)*u,i[11]=-1,i[12]=0,i[13]=0,i[14]=n*e*u*2,i[15]=0,i}function p(t,r,n,e,i,o,u){return u=u||new M(16),u[0]=2/(r-t),u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=2/(e-n),u[6]=0,u[7]=0,u[8]=0,u[9]=0,u[10]=-1/(o-i),u[11]=0,u[12]=(r+t)/(t-r),u[13]=(e+n)/(n-e),u[14]=-i/(i-o),u[15]=1,u}function v(t,r,n,e,i,o,u){u=u||new M(16);var a=r-t,f=e-n,c=i-o;return u[0]=2*i/a,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=2*i/f,u[6]=0,u[7]=0,u[8]=(t+r)/a,u[9]=(e+n)/f,u[10]=o/c,u[11]=-1,u[12]=0,u[13]=0,u[14]=i*o/c,u[15]=0,u}function d(r,n,e,i){i=i||new M(16);var o=F,u=B,a=U;return t.normalize(t.subtract(r,n,a),a),t.normalize(t.cross(e,a,o),o),t.normalize(t.cross(a,o,u),u),i[0]=o[0],i[1]=o[1],i[2]=o[2],i[3]=0,i[4]=u[0],i[5]=u[1],i[6]=u[2],i[7]=0,i[8]=a[0],i[9]=a[1],i[10]=a[2],i[11]=0,i[12]=r[0],i[13]=r[1],i[14]=r[2],i[15]=1,i}function g(t,r){return r=r||new M(16),r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=t[0],r[13]=t[1],r[14]=t[2],r[15]=1,r}function y(t,r,n){n=n||new M(16);var e=r[0],i=r[1],o=r[2],u=t[0],a=t[1],f=t[2],c=t[3],s=t[4],l=t[5],h=t[6],p=t[7],v=t[8],d=t[9],g=t[10],y=t[11],_=t[12],m=t[13],E=t[14],w=t[15];return t!==n&&(n[0]=u,n[1]=a,n[2]=f,n[3]=c,n[4]=s,n[5]=l,n[6]=h,n[7]=p,n[8]=v,n[9]=d,n[10]=g,n[11]=y),n[12]=u*e+s*i+v*o+_,n[13]=a*e+l*i+d*o+m,n[14]=f*e+h*i+g*o+E,n[15]=c*e+p*i+y*o+w,n}function _(t,r){r=r||new M(16);var n=Math.cos(t),e=Math.sin(t);return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=n,r[6]=e,r[7]=0,r[8]=0,r[9]=-e,r[10]=n,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function m(t,r,n){n=n||new M(16);var e=t[4],i=t[5],o=t[6],u=t[7],a=t[8],f=t[9],c=t[10],s=t[11],l=Math.cos(r),h=Math.sin(r);return n[4]=l*e+h*a,n[5]=l*i+h*f,n[6]=l*o+h*c,n[7]=l*u+h*s,n[8]=l*a-h*e,n[9]=l*f-h*i,n[10]=l*c-h*o,n[11]=l*s-h*u,t!==n&&(n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15]),n}function E(t,r){r=r||new M(16);var n=Math.cos(t),e=Math.sin(t);return r[0]=n,r[1]=0,r[2]=-e,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=e,r[9]=0,r[10]=n,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function w(t,r,n){n=n||new M(16);var e=t[0],i=t[1],o=t[2],u=t[3],a=t[8],f=t[9],c=t[10],s=t[11],l=Math.cos(r),h=Math.sin(r);return n[0]=l*e-h*a,n[1]=l*i-h*f,n[2]=l*o-h*c,n[3]=l*u-h*s,n[8]=l*a+h*e,n[9]=l*f+h*i,n[10]=l*c+h*o,n[11]=l*s+h*u,t!==n&&(n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15]),n}function b(t,r){r=r||new M(16);var n=Math.cos(t),e=Math.sin(t);return r[0]=n,r[1]=e,r[2]=0,r[3]=0,r[4]=-e,r[5]=n,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function A(t,r,n){n=n||new M(16);var e=t[0],i=t[1],o=t[2],u=t[3],a=t[4],f=t[5],c=t[6],s=t[7],l=Math.cos(r),h=Math.sin(r);return n[0]=l*e+h*a,n[1]=l*i+h*f,n[2]=l*o+h*c,n[3]=l*u+h*s,n[4]=l*a-h*e,n[5]=l*f-
},function(t,r){"use strict";var n={ToRenderer:{Ping:"Ping",CreateDrawable:"CreateDrawable",DestroyDrawable:"DestroyDrawable",Draw:"Draw",IsTouchingColor:"IsTouchingColor",Pick:"Pick",UpdateDrawableProperties:"UpdateDrawableProperties"},FromRenderer:{RendererConnected:"RendererConnected",Pong:"Pong",ResultValue:"ResultValue"}};t.exports=n}]);