@cainiaofe/cn-ui-charts
Version:
1 lines • 1.36 MB
JavaScript
!function t(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react"),require("@alife/cn-ui"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","@alife/cn-ui","react-dom"],n):"object"==typeof exports?exports.CNUICHARTS=n(require("react"),require("@alife/cn-ui"),require("react-dom")):e.CNUICHARTS=n(e.React,e.CNUI,e.ReactDOM)}(window,(function(t,e,n){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function e(){return t.default}:function e(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="./dist/",n(n.s=408)}([function(t,e,n){"use strict";n.d(e,"e",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"h",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return h})),n.d(e,"f",(function(){return g})),n.d(e,"k",(function(){return v})),n.d(e,"g",(function(){return b})),n.d(e,"j",(function(){return x})),n.d(e,"i",(function(){return w})),n.d(e,"c",(function(){return T}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function t(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function s(t,e,n,r){var i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(o=(i<3?a(o):i>3?a(e,n,o):a(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o}function c(t,e){return function(n,r){e(n,r,t)}}function u(t,e,n,r,i,o){function a(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var s=r.kind,c="getter"===s?"get":"setter"===s?"set":"value",u=!e&&t?r.static?t:t.prototype:null,l=e||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),f,d=!1,p=n.length-1;p>=0;p--){var h={};for(var g in r)h[g]="access"===g?{}:r[g];for(var g in r.access)h.access[g]=r.access[g];h.addInitializer=function(t){if(d)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(t||null))};var y=(0,n[p])("accessor"===s?{get:l.get,set:l.set}:l[c],h);if("accessor"===s){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw new TypeError("Object expected");(f=a(y.get))&&(l.get=f),(f=a(y.set))&&(l.set=f),(f=a(y.init))&&i.unshift(f)}else(f=a(y))&&("field"===s?i.unshift(f):l[c]=f)}u&&Object.defineProperty(u,r.name,l),d=!0}function l(t,e,n){for(var r=arguments.length>2,i=0;i<e.length;i++)n=r?e[i].call(t,n):e[i].call(t);return r?n:void 0}function f(t){return"symbol"==typeof t?t:"".concat(t)}function d(t,e,n){return"symbol"==typeof e&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:n?"".concat(n," ",e):e})}function p(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function h(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){t.done?n(t.value):i(t.value).then(a,s)}c((r=r.apply(t,e||[])).next())}))}function g(t,e){var n={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=2&s[0]?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(!(o=n.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){n=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(6===s[0]&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=e.call(t,n)}catch(t){s=[6,t],i=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}var y=Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]};function m(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||y(e,t,n)}function v(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(t){a={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function O(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function x(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function w(t,e,n){if(n||2===arguments.length)for(var r=0,i=e.length,o;r<i;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function j(t){return this instanceof j?(this.v=t,this):new j(t)}function E(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){r[t]&&(i[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{c(r[t](e))}catch(t){f(o[0][3],t)}}function c(t){t.value instanceof j?Promise.resolve(t.value.v).then(u,l):f(o[0][2],t)}function u(t){s("next",t)}function l(t){s("throw",t)}function f(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function M(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:j(t[r](e)),done:!1}:i?i(e):e}:i}}function S(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=v(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){i(r,o,(n=t[e](n)).done,n.value)}))}}function i(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}}function k(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var _=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function P(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&y(e,t,n);return _(e,t),e}function A(t){return t&&t.__esModule?t:{default:t}}function T(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function C(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}function N(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}function L(t,e,n){if(null!=e){if("object"!=typeof e)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}var R="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function I(t){function e(e){t.error=t.hasError?new R(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}function n(){for(;t.stack.length;){var r=t.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,(function(t){return e(t),n()}))}catch(t){e(t)}}if(t.hasError)throw t.error}return n()}var D=i,F=o,B=a,z=s,W=c,q=p,G=h,H=g,V=y,$=m,U=v,Y=b,X=O,K=x,Z=w,J=j,Q=E,tt=M,et=S,nt=k,rt=P,it=A,ot=T,at=C,st=N,ct=L,ut=I},function(e,n){e.exports=t},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return a}));var r={};n.r(r),n.d(r,"create",(function(){return y})),n.d(r,"fromMat4",(function(){return m})),n.d(r,"clone",(function(){return v})),n.d(r,"copy",(function(){return b})),n.d(r,"fromValues",(function(){return O})),n.d(r,"set",(function(){return x})),n.d(r,"identity",(function(){return w})),n.d(r,"transpose",(function(){return j})),n.d(r,"invert",(function(){return E})),n.d(r,"adjoint",(function(){return M})),n.d(r,"determinant",(function(){return S})),n.d(r,"multiply",(function(){return k})),n.d(r,"translate",(function(){return _})),n.d(r,"rotate",(function(){return P})),n.d(r,"scale",(function(){return A})),n.d(r,"fromTranslation",(function(){return T})),n.d(r,"fromRotation",(function(){return C})),n.d(r,"fromScaling",(function(){return N})),n.d(r,"fromMat2d",(function(){return L})),n.d(r,"fromQuat",(function(){return R})),n.d(r,"normalFromMat4",(function(){return I})),n.d(r,"projection",(function(){return D})),n.d(r,"str",(function(){return F})),n.d(r,"frob",(function(){return B})),n.d(r,"add",(function(){return z})),n.d(r,"subtract",(function(){return W})),n.d(r,"multiplyScalar",(function(){return q})),n.d(r,"multiplyScalarAndAdd",(function(){return G})),n.d(r,"exactEquals",(function(){return H})),n.d(r,"equals",(function(){return V})),n.d(r,"mul",(function(){return $})),n.d(r,"sub",(function(){return U}));var i={};n.r(i),n.d(i,"create",(function(){return Y})),n.d(i,"clone",(function(){return X})),n.d(i,"copy",(function(){return K})),n.d(i,"fromValues",(function(){return Z})),n.d(i,"set",(function(){return J})),n.d(i,"identity",(function(){return Q})),n.d(i,"transpose",(function(){return tt})),n.d(i,"invert",(function(){return et})),n.d(i,"adjoint",(function(){return nt})),n.d(i,"determinant",(function(){return rt})),n.d(i,"multiply",(function(){return it})),n.d(i,"translate",(function(){return ot})),n.d(i,"scale",(function(){return at})),n.d(i,"rotate",(function(){return st})),n.d(i,"rotateX",(function(){return ct})),n.d(i,"rotateY",(function(){return ut})),n.d(i,"rotateZ",(function(){return lt})),n.d(i,"fromTranslation",(function(){return ft})),n.d(i,"fromScaling",(function(){return dt})),n.d(i,"fromRotation",(function(){return pt})),n.d(i,"fromXRotation",(function(){return ht})),n.d(i,"fromYRotation",(function(){return gt})),n.d(i,"fromZRotation",(function(){return yt})),n.d(i,"fromRotationTranslation",(function(){return mt})),n.d(i,"fromQuat2",(function(){return vt})),n.d(i,"getTranslation",(function(){return bt})),n.d(i,"getScaling",(function(){return Ot})),n.d(i,"getRotation",(function(){return xt})),n.d(i,"fromRotationTranslationScale",(function(){return wt})),n.d(i,"fromRotationTranslationScaleOrigin",(function(){return jt})),n.d(i,"fromQuat",(function(){return Et})),n.d(i,"frustum",(function(){return Mt})),n.d(i,"perspectiveNO",(function(){return St})),n.d(i,"perspective",(function(){return kt})),n.d(i,"perspectiveZO",(function(){return _t})),n.d(i,"perspectiveFromFieldOfView",(function(){return Pt})),n.d(i,"orthoNO",(function(){return At})),n.d(i,"ortho",(function(){return Tt})),n.d(i,"orthoZO",(function(){return Ct})),n.d(i,"lookAt",(function(){return Nt})),n.d(i,"targetTo",(function(){return Lt})),n.d(i,"str",(function(){return Rt})),n.d(i,"frob",(function(){return It})),n.d(i,"add",(function(){return Dt})),n.d(i,"subtract",(function(){return Ft})),n.d(i,"multiplyScalar",(function(){return Bt})),n.d(i,"multiplyScalarAndAdd",(function(){return zt})),n.d(i,"exactEquals",(function(){return Wt})),n.d(i,"equals",(function(){return qt})),n.d(i,"mul",(function(){return Gt})),n.d(i,"sub",(function(){return Ht}));var o={};n.r(o),n.d(o,"create",(function(){return Vt})),n.d(o,"clone",(function(){return $t})),n.d(o,"length",(function(){return Ut})),n.d(o,"fromValues",(function(){return Yt})),n.d(o,"copy",(function(){return Xt})),n.d(o,"set",(function(){return Kt})),n.d(o,"add",(function(){return Zt})),n.d(o,"subtract",(function(){return Jt})),n.d(o,"multiply",(function(){return Qt})),n.d(o,"divide",(function(){return te})),n.d(o,"ceil",(function(){return ee})),n.d(o,"floor",(function(){return ne})),n.d(o,"min",(function(){return re})),n.d(o,"max",(function(){return ie})),n.d(o,"round",(function(){return oe})),n.d(o,"scale",(function(){return ae})),n.d(o,"scaleAndAdd",(function(){return se})),n.d(o,"distance",(function(){return ce})),n.d(o,"squaredDistance",(function(){return ue})),n.d(o,"squaredLength",(function(){return le})),n.d(o,"negate",(function(){return fe})),n.d(o,"inverse",(function(){return de})),n.d(o,"normalize",(function(){return pe})),n.d(o,"dot",(function(){return he})),n.d(o,"cross",(function(){return ge})),n.d(o,"lerp",(function(){return ye})),n.d(o,"hermite",(function(){return me})),n.d(o,"bezier",(function(){return ve})),n.d(o,"random",(function(){return be})),n.d(o,"transformMat4",(function(){return Oe})),n.d(o,"transformMat3",(function(){return xe})),n.d(o,"transformQuat",(function(){return we})),n.d(o,"rotateX",(function(){return je})),n.d(o,"rotateY",(function(){return Ee})),n.d(o,"rotateZ",(function(){return Me})),n.d(o,"angle",(function(){return Se})),n.d(o,"zero",(function(){return ke})),n.d(o,"str",(function(){return _e})),n.d(o,"exactEquals",(function(){return Pe})),n.d(o,"equals",(function(){return Ae})),n.d(o,"sub",(function(){return Te})),n.d(o,"mul",(function(){return Ce})),n.d(o,"div",(function(){return Ne})),n.d(o,"dist",(function(){return Le})),n.d(o,"sqrDist",(function(){return Re})),n.d(o,"len",(function(){return Ie})),n.d(o,"sqrLen",(function(){return De})),n.d(o,"forEach",(function(){return Fe}));var a={};n.r(a),n.d(a,"create",(function(){return ze})),n.d(a,"clone",(function(){return We})),n.d(a,"fromValues",(function(){return qe})),n.d(a,"copy",(function(){return Ge})),n.d(a,"set",(function(){return He})),n.d(a,"add",(function(){return Ve})),n.d(a,"subtract",(function(){return $e})),n.d(a,"multiply",(function(){return Ue})),n.d(a,"divide",(function(){return Ye})),n.d(a,"ceil",(function(){return Xe})),n.d(a,"floor",(function(){return Ke})),n.d(a,"min",(function(){return Ze})),n.d(a,"max",(function(){return Je})),n.d(a,"round",(function(){return Qe})),n.d(a,"scale",(function(){return tn})),n.d(a,"scaleAndAdd",(function(){return en})),n.d(a,"distance",(function(){return nn})),n.d(a,"squaredDistance",(function(){return rn})),n.d(a,"length",(function(){return on})),n.d(a,"squaredLength",(function(){return an})),n.d(a,"negate",(function(){return sn})),n.d(a,"inverse",(function(){return cn})),n.d(a,"normalize",(function(){return un})),n.d(a,"dot",(function(){return ln})),n.d(a,"cross",(function(){return fn})),n.d(a,"lerp",(function(){return dn})),n.d(a,"random",(function(){return pn})),n.d(a,"transformMat4",(function(){return hn})),n.d(a,"transformQuat",(function(){return gn})),n.d(a,"zero",(function(){return yn})),n.d(a,"str",(function(){return mn})),n.d(a,"exactEquals",(function(){return vn})),n.d(a,"equals",(function(){return bn})),n.d(a,"sub",(function(){return On})),n.d(a,"mul",(function(){return xn})),n.d(a,"div",(function(){return wn})),n.d(a,"dist",(function(){return jn})),n.d(a,"sqrDist",(function(){return En})),n.d(a,"len",(function(){return Mn})),n.d(a,"sqrLen",(function(){return Sn})),n.d(a,"forEach",(function(){return kn}));var s={};n.r(s),n.d(s,"create",(function(){return _n})),n.d(s,"identity",(function(){return Pn})),n.d(s,"setAxisAngle",(function(){return An})),n.d(s,"getAxisAngle",(function(){return Tn})),n.d(s,"getAngle",(function(){return Cn})),n.d(s,"multiply",(function(){return Nn})),n.d(s,"rotateX",(function(){return Ln})),n.d(s,"rotateY",(function(){return Rn})),n.d(s,"rotateZ",(function(){return In})),n.d(s,"calculateW",(function(){return Dn})),n.d(s,"exp",(function(){return Fn})),n.d(s,"ln",(function(){return Bn})),n.d(s,"pow",(function(){return zn})),n.d(s,"slerp",(function(){return Wn})),n.d(s,"random",(function(){return qn})),n.d(s,"invert",(function(){return Gn})),n.d(s,"conjugate",(function(){return Hn})),n.d(s,"fromMat3",(function(){return Vn})),n.d(s,"fromEuler",(function(){return $n})),n.d(s,"str",(function(){return Un})),n.d(s,"clone",(function(){return Yn})),n.d(s,"fromValues",(function(){return Xn})),n.d(s,"copy",(function(){return Kn})),n.d(s,"set",(function(){return Zn})),n.d(s,"add",(function(){return Jn})),n.d(s,"mul",(function(){return Qn})),n.d(s,"scale",(function(){return tr})),n.d(s,"dot",(function(){return er})),n.d(s,"lerp",(function(){return nr})),n.d(s,"length",(function(){return rr})),n.d(s,"len",(function(){return ir})),n.d(s,"squaredLength",(function(){return or})),n.d(s,"sqrLen",(function(){return ar})),n.d(s,"normalize",(function(){return sr})),n.d(s,"exactEquals",(function(){return cr})),n.d(s,"equals",(function(){return ur})),n.d(s,"rotationTo",(function(){return lr})),n.d(s,"sqlerp",(function(){return hr})),n.d(s,"setAxes",(function(){return mr}));var c={};n.r(c),n.d(c,"create",(function(){return br})),n.d(c,"clone",(function(){return Or})),n.d(c,"fromValues",(function(){return xr})),n.d(c,"copy",(function(){return wr})),n.d(c,"set",(function(){return jr})),n.d(c,"add",(function(){return Er})),n.d(c,"subtract",(function(){return Mr})),n.d(c,"multiply",(function(){return Sr})),n.d(c,"divide",(function(){return kr})),n.d(c,"ceil",(function(){return _r})),n.d(c,"floor",(function(){return Pr})),n.d(c,"min",(function(){return Ar})),n.d(c,"max",(function(){return Tr})),n.d(c,"round",(function(){return Cr})),n.d(c,"scale",(function(){return Nr})),n.d(c,"scaleAndAdd",(function(){return Lr})),n.d(c,"distance",(function(){return Rr})),n.d(c,"squaredDistance",(function(){return Ir})),n.d(c,"length",(function(){return Dr})),n.d(c,"squaredLength",(function(){return Fr})),n.d(c,"negate",(function(){return Br})),n.d(c,"inverse",(function(){return zr})),n.d(c,"normalize",(function(){return Wr})),n.d(c,"dot",(function(){return qr})),n.d(c,"cross",(function(){return Gr})),n.d(c,"lerp",(function(){return Hr})),n.d(c,"random",(function(){return Vr})),n.d(c,"transformMat2",(function(){return $r})),n.d(c,"transformMat2d",(function(){return Ur})),n.d(c,"transformMat3",(function(){return Yr})),n.d(c,"transformMat4",(function(){return Xr})),n.d(c,"rotate",(function(){return Kr})),n.d(c,"angle",(function(){return Zr})),n.d(c,"zero",(function(){return Jr})),n.d(c,"str",(function(){return Qr})),n.d(c,"exactEquals",(function(){return ti})),n.d(c,"equals",(function(){return ei})),n.d(c,"len",(function(){return ni})),n.d(c,"sub",(function(){return ri})),n.d(c,"mul",(function(){return ii})),n.d(c,"div",(function(){return oi})),n.d(c,"dist",(function(){return ai})),n.d(c,"sqrDist",(function(){return si})),n.d(c,"sqrLen",(function(){return ci})),n.d(c,"forEach",(function(){return ui}));var u=1e-6,l="undefined"!=typeof Float32Array?Float32Array:Array,f=Math.random;function d(t){l=t}var p=Math.PI/180;function h(t){return t*p}function g(t,e){return Math.abs(t-e)<=u*Math.max(1,Math.abs(t),Math.abs(e))}function y(){var t=new l(9);return l!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function m(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function v(t){var e=new l(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function b(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function O(t,e,n,r,i,o,a,s,c){var u=new l(9);return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=i,u[5]=o,u[6]=a,u[7]=s,u[8]=c,u}function x(t,e,n,r,i,o,a,s,c,u){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=c,t[8]=u,t}function w(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function j(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function E(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],c=e[6],u=e[7],l=e[8],f=l*a-s*u,d=-l*o+s*c,p=u*o-a*c,h=n*f+r*d+i*p;return h?(h=1/h,t[0]=f*h,t[1]=(-l*r+i*u)*h,t[2]=(s*r-i*a)*h,t[3]=d*h,t[4]=(l*n-i*c)*h,t[5]=(-s*n+i*o)*h,t[6]=p*h,t[7]=(-u*n+r*c)*h,t[8]=(a*n-r*o)*h,t):null}function M(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],c=e[6],u=e[7],l=e[8];return t[0]=a*l-s*u,t[1]=i*u-r*l,t[2]=r*s-i*a,t[3]=s*c-o*l,t[4]=n*l-i*c,t[5]=i*o-n*s,t[6]=o*u-a*c,t[7]=r*c-n*u,t[8]=n*a-r*o,t}function S(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],c=t[7],u=t[8];return e*(u*o-a*c)+n*(-u*i+a*s)+r*(c*i-o*s)}function k(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],c=e[5],u=e[6],l=e[7],f=e[8],d=n[0],p=n[1],h=n[2],g=n[3],y=n[4],m=n[5],v=n[6],b=n[7],O=n[8];return t[0]=d*r+p*a+h*u,t[1]=d*i+p*s+h*l,t[2]=d*o+p*c+h*f,t[3]=g*r+y*a+m*u,t[4]=g*i+y*s+m*l,t[5]=g*o+y*c+m*f,t[6]=v*r+b*a+O*u,t[7]=v*i+b*s+O*l,t[8]=v*o+b*c+O*f,t}function _(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],c=e[5],u=e[6],l=e[7],f=e[8],d=n[0],p=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=c,t[6]=d*r+p*a+u,t[7]=d*i+p*s+l,t[8]=d*o+p*c+f,t}function P(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],c=e[5],u=e[6],l=e[7],f=e[8],d=Math.sin(n),p=Math.cos(n);return t[0]=p*r+d*a,t[1]=p*i+d*s,t[2]=p*o+d*c,t[3]=p*a-d*r,t[4]=p*s-d*i,t[5]=p*c-d*o,t[6]=u,t[7]=l,t[8]=f,t}function A(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function T(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function C(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function N(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function L(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function R(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,c=i+i,u=n*a,l=r*a,f=r*s,d=i*a,p=i*s,h=i*c,g=o*a,y=o*s,m=o*c;return t[0]=1-f-h,t[3]=l-m,t[6]=d+y,t[1]=l+m,t[4]=1-u-h,t[7]=p-g,t[2]=d-y,t[5]=p+g,t[8]=1-u-f,t}function I(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],c=e[6],u=e[7],l=e[8],f=e[9],d=e[10],p=e[11],h=e[12],g=e[13],y=e[14],m=e[15],v=n*s-r*a,b=n*c-i*a,O=n*u-o*a,x=r*c-i*s,w=r*u-o*s,j=i*u-o*c,E=l*g-f*h,M=l*y-d*h,S=l*m-p*h,k=f*y-d*g,_=f*m-p*g,P=d*m-p*y,A=v*P-b*_+O*k+x*S-w*M+j*E;return A?(A=1/A,t[0]=(s*P-c*_+u*k)*A,t[1]=(c*S-a*P-u*M)*A,t[2]=(a*_-s*S+u*E)*A,t[3]=(i*_-r*P-o*k)*A,t[4]=(n*P-i*S+o*M)*A,t[5]=(r*S-n*_-o*E)*A,t[6]=(g*j-y*w+m*x)*A,t[7]=(y*O-h*j-m*b)*A,t[8]=(h*w-g*O+m*v)*A,t):null}function D(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function F(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function B(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function z(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function W(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function q(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function G(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t}function H(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function V(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],c=t[6],l=t[7],f=t[8],d=e[0],p=e[1],h=e[2],g=e[3],y=e[4],m=e[5],v=e[6],b=e[7],O=e[8];return Math.abs(n-d)<=u*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(r-p)<=u*Math.max(1,Math.abs(r),Math.abs(p))&&Math.abs(i-h)<=u*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(o-g)<=u*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(a-y)<=u*Math.max(1,Math.abs(a),Math.abs(y))&&Math.abs(s-m)<=u*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(c-v)<=u*Math.max(1,Math.abs(c),Math.abs(v))&&Math.abs(l-b)<=u*Math.max(1,Math.abs(l),Math.abs(b))&&Math.abs(f-O)<=u*Math.max(1,Math.abs(f),Math.abs(O))}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var $=k,U=W;function Y(){var t=new l(16);return l!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function X(t){var e=new l(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function K(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Z(t,e,n,r,i,o,a,s,c,u,f,d,p,h,g,y){var m=new l(16);return m[0]=t,m[1]=e,m[2]=n,m[3]=r,m[4]=i,m[5]=o,m[6]=a,m[7]=s,m[8]=c,m[9]=u,m[10]=f,m[11]=d,m[12]=p,m[13]=h,m[14]=g,m[15]=y,m}function J(t,e,n,r,i,o,a,s,c,u,l,f,d,p,h,g,y){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=c,t[8]=u,t[9]=l,t[10]=f,t[11]=d,t[12]=p,t[13]=h,t[14]=g,t[15]=y,t}function Q(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function tt(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function et(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],c=e[6],u=e[7],l=e[8],f=e[9],d=e[10],p=e[11],h=e[12],g=e[13],y=e[14],m=e[15],v=n*s-r*a,b=n*c-i*a,O=n*u-o*a,x=r*c-i*s,w=r*u-o*s,j=i*u-o*c,E=l*g-f*h,M=l*y-d*h,S=l*m-p*h,k=f*y-d*g,_=f*m-p*g,P=d*m-p*y,A=v*P-b*_+O*k+x*S-w*M+j*E;return A?(A=1/A,t[0]=(s*P-c*_+u*k)*A,t[1]=(i*_-r*P-o*k)*A,t[2]=(g*j-y*w+m*x)*A,t[3]=(d*w-f*j-p*x)*A,t[4]=(c*S-a*P-u*M)*A,t[5]=(n*P-i*S+o*M)*A,t[6]=(y*O-h*j-m*b)*A,t[7]=(l*j-d*O+p*b)*A,t[8]=(a*_-s*S+u*E)*A,t[9]=(r*S-n*_-o*E)*A,t[10]=(h*w-g*O+m*v)*A,t[11]=(f*O-l*w-p*v)*A,t[12]=(s*M-a*k-c*E)*A,t[13]=(n*k-r*M+i*E)*A,t[14]=(g*b-h*x-y*v)*A,t[15]=(l*x-f*b+d*v)*A,t):null}function nt(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],c=e[6],u=e[7],l=e[8],f=e[9],d=e[10],p=e[11],h=e[12],g=e[13],y=e[14],m=e[15];return t[0]=s*(d*m-p*y)-f*(c*m-u*y)+g*(c*p-u*d),t[1]=-(r*(d*m-p*y)-f*(i*m-o*y)+g*(i*p-o*d)),t[2]=r*(c*m-u*y)-s*(i*m-o*y)+g*(i*u-o*c),t[3]=-(r*(c*p-u*d)-s*(i*p-o*d)+f*(i*u-o*c)),t[4]=-(a*(d*m-p*y)-l*(c*m-u*y)+h*(c*p-u*d)),t[5]=n*(d*m-p*y)-l*(i*m-o*y)+h*(i*p-o*d),t[6]=-(n*(c*m-u*y)-a*(i*m-o*y)+h*(i*u-o*c)),t[7]=n*(c*p-u*d)-a*(i*p-o*d)+l*(i*u-o*c),t[8]=a*(f*m-p*g)-l*(s*m-u*g)+h*(s*p-u*f),t[9]=-(n*(f*m-p*g)-l*(r*m-o*g)+h*(r*p-o*f)),t[10]=n*(s*m-u*g)-a*(r*m-o*g)+h*(r*u-o*s),t[11]=-(n*(s*p-u*f)-a*(r*p-o*f)+l*(r*u-o*s)),t[12]=-(a*(f*y-d*g)-l*(s*y-c*g)+h*(s*d-c*f)),t[13]=n*(f*y-d*g)-l*(r*y-i*g)+h*(r*d-i*f),t[14]=-(n*(s*y-c*g)-a*(r*y-i*g)+h*(r*c-i*s)),t[15]=n*(s*d-c*f)-a*(r*d-i*f)+l*(r*c-i*s),t}function rt(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],c=t[7],u=t[8],l=t[9],f=t[10],d=t[11],p=t[12],h=t[13],g=t[14],y=t[15],m,v,b,O,x,w,j,E,M,S,k,_;return(e*a-n*o)*(f*y-d*g)-(e*s-r*o)*(l*y-d*h)+(e*c-i*o)*(l*g-f*h)+(n*s-r*a)*(u*y-d*p)-(n*c-i*a)*(u*g-f*p)+(r*c-i*s)*(u*h-l*p)}function it(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],c=e[5],u=e[6],l=e[7],f=e[8],d=e[9],p=e[10],h=e[11],g=e[12],y=e[13],m=e[14],v=e[15],b=n[0],O=n[1],x=n[2],w=n[3];return t[0]=b*r+O*s+x*f+w*g,t[1]=b*i+O*c+x*d+w*y,t[2]=b*o+O*u+x*p+w*m,t[3]=b*a+O*l+x*h+w*v,b=n[4],O=n[5],x=n[6],w=n[7],t[4]=b*r+O*s+x*f+w*g,t[5]=b*i+O*c+x*d+w*y,t[6]=b*o+O*u+x*p+w*m,t[7]=b*a+O*l+x*h+w*v,b=n[8],O=n[9],x=n[10],w=n[11],t[8]=b*r+O*s+x*f+w*g,t[9]=b*i+O*c+x*d+w*y,t[10]=b*o+O*u+x*p+w*m,t[11]=b*a+O*l+x*h+w*v,b=n[12],O=n[13],x=n[14],w=n[15],t[12]=b*r+O*s+x*f+w*g,t[13]=b*i+O*c+x*d+w*y,t[14]=b*o+O*u+x*p+w*m,t[15]=b*a+O*l+x*h+w*v,t}function ot(t,e,n){var r=n[0],i=n[1],o=n[2],a,s,c,u,l,f,d,p,h,g,y,m;return e===t?(t[12]=e[0]*r+e[4]*i+e[8]*o+e[12],t[13]=e[1]*r+e[5]*i+e[9]*o+e[13],t[14]=e[2]*r+e[6]*i+e[10]*o+e[14],t[15]=e[3]*r+e[7]*i+e[11]*o+e[15]):(a=e[0],s=e[1],c=e[2],u=e[3],l=e[4],f=e[5],d=e[6],p=e[7],h=e[8],g=e[9],y=e[10],m=e[11],t[0]=a,t[1]=s,t[2]=c,t[3]=u,t[4]=l,t[5]=f,t[6]=d,t[7]=p,t[8]=h,t[9]=g,t[10]=y,t[11]=m,t[12]=a*r+l*i+h*o+e[12],t[13]=s*r+f*i+g*o+e[13],t[14]=c*r+d*i+y*o+e[14],t[15]=u*r+p*i+m*o+e[15]),t}function at(t,e,n){var r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function st(t,e,n,r){var i=r[0],o=r[1],a=r[2],s=Math.hypot(i,o,a),c,l,f,d,p,h,g,y,m,v,b,O,x,w,j,E,M,S,k,_,P,A,T,C;return s<u?null:(i*=s=1/s,o*=s,a*=s,c=Math.sin(n),f=1-(l=Math.cos(n)),d=e[0],p=e[1],h=e[2],g=e[3],y=e[4],m=e[5],v=e[6],b=e[7],O=e[8],x=e[9],w=e[10],j=e[11],E=i*i*f+l,M=o*i*f+a*c,S=a*i*f-o*c,k=i*o*f-a*c,_=o*o*f+l,P=a*o*f+i*c,A=i*a*f+o*c,T=o*a*f-i*c,C=a*a*f+l,t[0]=d*E+y*M+O*S,t[1]=p*E+m*M+x*S,t[2]=h*E+v*M+w*S,t[3]=g*E+b*M+j*S,t[4]=d*k+y*_+O*P,t[5]=p*k+m*_+x*P,t[6]=h*k+v*_+w*P,t[7]=g*k+b*_+j*P,t[8]=d*A+y*T+O*C,t[9]=p*A+m*T+x*C,t[10]=h*A+v*T+w*C,t[11]=g*A+b*T+j*C,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function ct(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[4],a=e[5],s=e[6],c=e[7],u=e[8],l=e[9],f=e[10],d=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*i+u*r,t[5]=a*i+l*r,t[6]=s*i+f*r,t[7]=c*i+d*r,t[8]=u*i-o*r,t[9]=l*i-a*r,t[10]=f*i-s*r,t[11]=d*i-c*r,t}function ut(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],c=e[3],u=e[8],l=e[9],f=e[10],d=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i-u*r,t[1]=a*i-l*r,t[2]=s*i-f*r,t[3]=c*i-d*r,t[8]=o*r+u*i,t[9]=a*r+l*i,t[10]=s*r+f*i,t[11]=c*r+d*i,t}function lt(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],c=e[3],u=e[4],l=e[5],f=e[6],d=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i+u*r,t[1]=a*i+l*r,t[2]=s*i+f*r,t[3]=c*i+d*r,t[4]=u*i-o*r,t[5]=l*i-a*r,t[6]=f*i-s*r,t[7]=d*i-c*r,t}function ft(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function dt(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function pt(t,e,n){var r=n[0],i=n[1],o=n[2],a=Math.hypot(r,i,o),s,c,l;return a<u?null:(r*=a=1/a,i*=a,o*=a,s=Math.sin(e),l=1-(c=Math.cos(e)),t[0]=r*r*l+c,t[1]=i*r*l+o*s,t[2]=o*r*l-i*s,t[3]=0,t[4]=r*i*l-o*s,t[5]=i*i*l+c,t[6]=o*i*l+r*s,t[7]=0,t[8]=r*o*l+i*s,t[9]=i*o*l-r*s,t[10]=o*o*l+c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function ht(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function gt(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function yt(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function mt(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=r+r,c=i+i,u=o+o,l=r*s,f=r*c,d=r*u,p=i*c,h=i*u,g=o*u,y=a*s,m=a*c,v=a*u;return t[0]=1-(p+g),t[1]=f+v,t[2]=d-m,t[3]=0,t[4]=f-v,t[5]=1-(l+g),t[6]=h+y,t[7]=0,t[8]=d+m,t[9]=h-y,t[10]=1-(l+p),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function vt(t,e){var n=new l(3),r=-e[0],i=-e[1],o=-e[2],a=e[3],s=e[4],c=e[5],u=e[6],f=e[7],d=r*r+i*i+o*o+a*a;return d>0?(n[0]=2*(s*a+f*r+c*o-u*i)/d,n[1]=2*(c*a+f*i+u*r-s*o)/d,n[2]=2*(u*a+f*o+s*i-c*r)/d):(n[0]=2*(s*a+f*r+c*o-u*i),n[1]=2*(c*a+f*i+u*r-s*o),n[2]=2*(u*a+f*o+s*i-c*r)),mt(t,e,n),t}function bt(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function Ot(t,e){var n=e[0],r=e[1],i=e[2],o=e[4],a=e[5],s=e[6],c=e[8],u=e[9],l=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(o,a,s),t[2]=Math.hypot(c,u,l),t}function xt(t,e){var n=new l(3);Ot(n,e);var r=1/n[0],i=1/n[1],o=1/n[2],a=e[0]*r,s=e[1]*i,c=e[2]*o,u=e[4]*r,f=e[5]*i,d=e[6]*o,p=e[8]*r,h=e[9]*i,g=e[10]*o,y=a+f+g,m=0;return y>0?(m=2*Math.sqrt(y+1),t[3]=.25*m,t[0]=(d-h)/m,t[1]=(p-c)/m,t[2]=(s-u)/m):a>f&&a>g?(m=2*Math.sqrt(1+a-f-g),t[3]=(d-h)/m,t[0]=.25*m,t[1]=(s+u)/m,t[2]=(p+c)/m):f>g?(m=2*Math.sqrt(1+f-a-g),t[3]=(p-c)/m,t[0]=(s+u)/m,t[1]=.25*m,t[2]=(d+h)/m):(m=2*Math.sqrt(1+g-a-f),t[3]=(s-u)/m,t[0]=(p+c)/m,t[1]=(d+h)/m,t[2]=.25*m),t}function wt(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=e[3],c=i+i,u=o+o,l=a+a,f=i*c,d=i*u,p=i*l,h=o*u,g=o*l,y=a*l,m=s*c,v=s*u,b=s*l,O=r[0],x=r[1],w=r[2];return t[0]=(1-(h+y))*O,t[1]=(d+b)*O,t[2]=(p-v)*O,t[3]=0,t[4]=(d-b)*x,t[5]=(1-(f+y))*x,t[6]=(g+m)*x,t[7]=0,t[8]=(p+v)*w,t[9]=(g-m)*w,t[10]=(1-(f+h))*w,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function jt(t,e,n,r,i){var o=e[0],a=e[1],s=e[2],c=e[3],u=o+o,l=a+a,f=s+s,d=o*u,p=o*l,h=o*f,g=a*l,y=a*f,m=s*f,v=c*u,b=c*l,O=c*f,x=r[0],w=r[1],j=r[2],E=i[0],M=i[1],S=i[2],k=(1-(g+m))*x,_=(p+O)*x,P=(h-b)*x,A=(p-O)*w,T=(1-(d+m))*w,C=(y+v)*w,N=(h+b)*j,L=(y-v)*j,R=(1-(d+g))*j;return t[0]=k,t[1]=_,t[2]=P,t[3]=0,t[4]=A,t[5]=T,t[6]=C,t[7]=0,t[8]=N,t[9]=L,t[10]=R,t[11]=0,t[12]=n[0]+E-(k*E+A*M+N*S),t[13]=n[1]+M-(_*E+T*M+L*S),t[14]=n[2]+S-(P*E+C*M+R*S),t[15]=1,t}function Et(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,c=i+i,u=n*a,l=r*a,f=r*s,d=i*a,p=i*s,h=i*c,g=o*a,y=o*s,m=o*c;return t[0]=1-f-h,t[1]=l+m,t[2]=d-y,t[3]=0,t[4]=l-m,t[5]=1-u-h,t[6]=p+g,t[7]=0,t[8]=d+y,t[9]=p-g,t[10]=1-u-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function Mt(t,e,n,r,i,o,a){var s=1/(n-e),c=1/(i-r),u=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*c,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*c,t[10]=(a+o)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*u,t[15]=0,t}function St(t,e,n,r,i){var o=1/Math.tan(e/2),a;return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(r-i),t[10]=(i+r)*a,t[14]=2*i*r*a):(t[10]=-1,t[14]=-2*r),t}var kt=St;function _t(t,e,n,r,i){var o=1/Math.tan(e/2),a;return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(r-i),t[10]=i*a,t[14]=i*r*a):(t[10]=-1,t[14]=-r),t}function Pt(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),c=2/(a+s),u=2/(i+o);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(a-s)*c*.5,t[9]=(i-o)*u*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t}function At(t,e,n,r,i,o,a){var s=1/(e-n),c=1/(r-i),u=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*c,t[14]=(a+o)*u,t[15]=1,t}var Tt=At;function Ct(t,e,n,r,i,o,a){var s=1/(e-n),c=1/(r-i),u=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*c,t[14]=o*u,t[15]=1,t}function Nt(t,e,n,r){var i,o,a,s,c,l,f,d,p,h,g=e[0],y=e[1],m=e[2],v=r[0],b=r[1],O=r[2],x=n[0],w=n[1],j=n[2];return Math.abs(g-x)<u&&Math.abs(y-w)<u&&Math.abs(m-j)<u?Q(t):(f=g-x,d=y-w,p=m-j,i=b*(p*=h=1/Math.hypot(f,d,p))-O*(d*=h),o=O*(f*=h)-v*p,a=v*d-b*f,(h=Math.hypot(i,o,a))?(i*=h=1/h,o*=h,a*=h):(i=0,o=0,a=0),s=d*a-p*o,c=p*i-f*a,l=f*o-d*i,(h=Math.hypot(s,c,l))?(s*=h=1/h,c*=h,l*=h):(s=0,c=0,l=0),t[0]=i,t[1]=s,t[2]=f,t[3]=0,t[4]=o,t[5]=c,t[6]=d,t[7]=0,t[8]=a,t[9]=l,t[10]=p,t[11]=0,t[12]=-(i*g+o*y+a*m),t[13]=-(s*g+c*y+l*m),t[14]=-(f*g+d*y+p*m),t[15]=1,t)}function Lt(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=r[0],c=r[1],u=r[2],l=i-n[0],f=o-n[1],d=a-n[2],p=l*l+f*f+d*d;p>0&&(l*=p=1/Math.sqrt(p),f*=p,d*=p);var h=c*d-u*f,g=u*l-s*d,y=s*f-c*l;return(p=h*h+g*g+y*y)>0&&(h*=p=1/Math.sqrt(p),g*=p,y*=p),t[0]=h,t[1]=g,t[2]=y,t[3]=0,t[4]=f*y-d*g,t[5]=d*h-l*y,t[6]=l*g-f*h,t[7]=0,t[8]=l,t[9]=f,t[10]=d,t[11]=0,t[12]=i,t[13]=o,t[14]=a,t[15]=1,t}function Rt(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function It(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function Dt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function Ft(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function Bt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}function zt(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t}function Wt(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function qt(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],c=t[6],l=t[7],f=t[8],d=t[9],p=t[10],h=t[11],g=t[12],y=t[13],m=t[14],v=t[15],b=e[0],O=e[1],x=e[2],w=e[3],j=e[4],E=e[5],M=e[6],S=e[7],k=e[8],_=e[9],P=e[10],A=e[11],T=e[12],C=e[13],N=e[14],L=e[15];return Math.abs(n-b)<=u*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(r-O)<=u*Math.max(1,Math.abs(r),Math.abs(O))&&Math.abs(i-x)<=u*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(o-w)<=u*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(a-j)<=u*Math.max(1,Math.abs(a),Math.abs(j))&&Math.abs(s-E)<=u*Math.max(1,Math.abs(s),Math.abs(E))&&Math.abs(c-M)<=u*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(l-S)<=u*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(f-k)<=u*Math.max(1,Math.abs(f),Math.abs(k))&&Math.abs(d-_)<=u*Math.max(1,Math.abs(d),Math.abs(_))&&Math.abs(p-P)<=u*Math.max(1,Math.abs(p),Math.abs(P))&&Math.abs(h-A)<=u*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(g-T)<=u*Math.max(1,Math.abs(g),Math.abs(T))&&Math.abs(y-C)<=u*Math.max(1,Math.abs(y),Math.abs(C))&&Math.abs(m-N)<=u*Math.max(1,Math.abs(m),Math.abs(N))&&Math.abs(v-L)<=u*Math.max(1,Math.abs(v),Math.abs(L))}var Gt=it,Ht=Ft;function Vt(){var t=new l(3);return l!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function $t(t){var e=new l(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function Ut(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function Yt(t,e,n){var r=new l(3);return r[0]=t,r[1]=e,r[2]=n,r}function Xt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Kt(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function Zt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function Jt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function Qt(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function te(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function ee(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function ne(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function re(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function ie(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function oe(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function ae(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function se(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function ce(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function ue(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function le(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function fe(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function de(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function pe(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function he(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function ge(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],c=n[2];return t[0]=i*c-o*s,t[1]=o*a-r*c,t[2]=r*s-i*a,t}function ye(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t}function me(t,e,n,r,i,o){var a=o*o,s=a*(2*o-3)+1,c=a*(o-2)+o,u=a*(o-1),l=a*(3-2*o);return t[0]=e[0]*s+n[0]*c+r[0]*u+i[0]*l,t[1]=e[1]*s+n[1]*c+r[1]*u+i[1]*l,t[2]=e[2]*s+n[2]*c+r[2]*u+i[2]*l,t}function ve(t,e,n,r,i,o){var a=1-o,s=a*a,c=o*o,u=s*a,l=3*o*s,f=3*c*a,d=c*o;return t[0]=e[0]*u+n[0]*l+r[0]*f+i[0]*d,t[1]=e[1]*u+n[1]*l+r[1]*f+i[1]*d,t[2]=e[2]*u+n[2]*l+r[2]*f+i[2]*d,t}function be(t,e){e=e||1;var n=2*f()*Math.PI,r=2*f()-1,i=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*i,t[1]=Math.sin(n)*i,t[2]=r*e,t}function Oe(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t}function xe(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function we(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],c=e[1],u=e[2],l=i*u-o*c,f=o*s-r*u,d=r*c-i*s,p=i*d-o*f,h=o*l-r*d,g=r*f-i*l,y=2*a;return l*=y,f*=y,d*=y,p*=2,h*=2,g*=2,t[0]=s+l+p,t[1]=c+f+h,t[2]=u+d+g,t}function je(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function Ee(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function Me(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function Se(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],s=e[2],c,u,l=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(o*o+a*a+s*s),f=l&&he(t,e)/l;return Math.acos(Math.min(Math.max(f,-1),1))}function ke(t){return t[0]=0,t[1]=0,t[2]=0,t}function _e(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function Pe(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function Ae(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],s=e[2];return Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-s)<=u*Math.max(1,Math.abs(i),Math.abs(s))}var Te=Jt,Ce=Qt,Ne=te,Le=ce,Re=ue,Ie=Ut,De=le,Fe=(Be=Vt(),function(t,e,n,r,i,o){var a,s;for(e||(e=3),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;a<s;a+=e)Be[0]=t[a],Be[1]=t[a+1],Be[2]=t[a+2],i(Be,Be,o),t[a]=Be[0],t[a+1]=Be[1],t[a+2]=Be[2];return t}),Be;function ze(){var t=new l(4);return l!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function We(t){var e=new l(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function qe(t,e,n,r){var i=new l(4);return i[0]=t,i[1]=e,i[2]=n,i[3]=r,i}function Ge(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function He(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function Ve(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function $e(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function Ue(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function Ye(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function Xe(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t}function Ke(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t}function Ze(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}function Je(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}function Qe(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function tn(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function en(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t}function nn(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return Math.hypot(n,r,i,o)}function rn(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return n*n+r*r+i*i+o*o}function on(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.hypot(e,n,r,i)}function an(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}function sn(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}function cn(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}function un(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*n+r*r+i*i+o*o;return a>0&&(a=1/Math.sqrt(a)),t[0]=n*a,t[1]=r*a,t[2]=i*a,t[3]=o*a,t}function ln(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function fn(t,e,n,r){var i=n[0]*r[1]-n[1]*r[0],o=n[0]*r[2]-n[2]*r[0],a=n[0]*r[3]-n[3]*r[0],s=n[1]*r[2]-n[2]*r[1],c=n[1]*r[3]-n[3]*r[1],u=n[2]*r[3]-n[3]*r[2],l=e[0],f=e[1],d=e[2],p=e[3];return t[0]=f*u-d*c+p*s,t[1]=-l*u+d*a-p*o,t[2]=l*c-f*a+p*i,t[3]=-l*s+f*o-d*i,t}function dn(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t[3]=s+r*(n[3]-s),t}function pn(t,e){var n,r,i,o,a,s;e=e||1;do{a=(n=2*f()-1)*n+(r=2*f()-1)*r}while(a>=1);do{s=(i=2*f()-1)*i+(o=2*f()-1)*o}while(s>=1);var c=Math.sqrt((1-a)/s);return t[0]=e*n,t[1]=e*r,t[2]=e*i*c,t[3]=e*o*c,t}function hn(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,t[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,t[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,t[3]=n[3]*r+n[7]*i+n[11]*o+n[15