lkspencer-Herosaver/dist/saver.min.js

27 lines
641 KiB
JavaScript
Raw Normal View History

var t;t=function(){"use strict";function t(){}function e(t,e){this.x=t||0,this.y=e||0}function n(){this.elements=[1,0,0,0,1,0,0,0,1],arguments.length}function i(t,r,a,o,s,c,l,u,h,p){Object.defineProperty(this,"id",{value:za++}),this.uuid=Da.generateUUID(),this.name="",this.image=void 0!==t?t:i.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=void 0!==r?r:i.DEFAULT_MAPPING,this.wrapS=void 0!==a?a:1001,this.wrapT=void 0!==o?o:1001,this.magFilter=void 0!==s?s:1006,this.minFilter=void 0!==c?c:1008,this.anisotropy=void 0!==h?h:1,this.format=void 0!==l?l:1023,this.internalFormat=null,this.type=void 0!==u?u:1009,this.offset=new e(0,0),this.repeat=new e(1,1),this.center=new e(0,0),this.rotation=0,this.matrixAutoUpdate=1,this.matrix=new n,this.generateMipmaps=1,this.premultiplyAlpha=0,this.flipY=1,this.unpackAlignment=4,this.encoding=void 0!==p?p:3e3,this.version=0,this.onUpdate=null}function r(t,e,n,i){this.x=t||0,this.y=e||0,this.z=n||0,this.w=void 0!==i?i:1}function a(t,e,n){this.width=t,this.height=e,this.scissor=new r(0,0,t,e),this.scissorTest=0,this.viewport=new r(0,0,t,e),n=n||{},this.texture=new i(void 0,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.texture.image={},this.texture.image.width=t,this.texture.image.height=e,this.texture.generateMipmaps=void 0!==n.generateMipmaps?n.generateMipmaps:0,this.texture.minFilter=void 0!==n.minFilter?n.minFilter:1006,this.depthBuffer=void 0!==n.depthBuffer?n.depthBuffer:1,this.stencilBuffer=void 0!==n.stencilBuffer?n.stencilBuffer:1,this.depthTexture=void 0!==n.depthTexture?n.depthTexture:null}function o(t,e,n){a.call(this,t,e,n),this.samples=4}function s(t,e,n,i){this._x=t||0,this._y=e||0,this._z=n||0,this._w=void 0!==i?i:1}function c(t,e,n){this.x=t||0,this.y=e||0,this.z=n||0}function l(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],arguments.length}function u(t,e,n,i){this._x=t||0,this._y=e||0,this._z=n||0,this._order=i||u.DefaultOrder}function h(){this.mask=1}function p(){Object.defineProperty(this,"id",{value:Xa++}),this.uuid=Da.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=p.DefaultUp.clone();var t=new c,e=new u,i=new s,r=new c(1,1,1);e._onChange((function(){i.setFromEuler(e,0)})),i._onChange((function(){e.setFromQuaternion(i,void 0,0)})),Object.defineProperties(this,{position:{configurable:1,enumerable:1,value:t},rotation:{configurable:1,enumerable:1,value:e},quaternion:{configurable:1,enumerable:1,value:i},scale:{configurable:1,enumerable:1,value:r},modelViewMatrix:{value:new l},normalMatrix:{value:new n}}),this.matrix=new l,this.matrixWorld=new l,this.matrixAutoUpdate=p.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=0,this.layers=new h,this.visible=1,this.castShadow=0,this.receiveShadow=0,this.frustumCulled=1,this.renderOrder=0,this.userData={}}function d(){p.call(this),this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=1,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}function f(t,e){this.min=void 0!==t?t:new c(1/0,1/0,1/0),this.max=void 0!==e?e:new c(-1/0,-1/0,-1/0)}function m(t,e,n,i,r){var a,o;for(a=0,o=t.length-3;a<=o;a+=3){xo.fromArray(t,a);var s=r.x*Math.abs(xo.x)+r.y*Math.abs(xo.y)+r.z*Math.abs(xo.z),c=e.dot(xo),l=n.dot(xo),u=i.dot(xo);if(Math.max(-Math.max(c,l,u),Math.min(c,l,u))>s)return 0}return 1}function v(t,e){this.center=void 0!==t?t:new c,this.radius=void 0!==e?e:0}function g(t,e){this.origin=void 0!==t?t:new c,this.direction=void 0!==e?e:new c(0,0,-1)}function y(t,e){this.normal=void 0!==t?t:new c(1,0,0),this.constant=void 0!==e?e:0}function x(t,e,n){this.a=void 0!==t?t:new c,this.b=void 0!==e?e:new c,this.c=void 0!==n?n:new c}function _(t,e,n){return void 0===e&&void 0===n?this.set(t):this.setRGB(t,e,n)}function b(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+6*(e-t)*(2/3-n):t}function M(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}function w(t){return t<.0031308?12.92*t:1.055*M
2020-03-26 06:10:06 +01:00
/*!
* jQuery JavaScript Library v3.4.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2019-05-01T21:04Z
*/
!function(e,n){t.exports=e.document?n(e,1):function(t){if(!t.document)throw Error("jQuery requires a window with a document");return n(t)}}("undefined"!=typeof window?window:Il,(function(t,e){function n(t,e,n){var i,r,a=(n=n||tt).createElement("script");if(a.text=t,e)for(i in ft)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&a.setAttribute(i,r);n.head.appendChild(a).parentNode.removeChild(a)}function i(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?ot[st.call(t)]||"object":typeof t}function r(t){var e=!!t&&"length"in t&&t.length,n=i(t);return pt(t)||dt(t)?0:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}function a(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function o(t,e,n){return pt(e)?mt.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?mt.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?mt.grep(t,(function(t){return at.call(e,t)>-1!==n})):mt.filter(e,t,n)}function s(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function c(t){return t}function l(t){throw t}function u(t,e,n,i){var r;try{t&&pt(r=t.promise)?r.call(t).done(e).fail(n):t&&pt(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.call(void 0,t)}}function h(){tt.removeEventListener("DOMContentLoaded",h),t.removeEventListener("load",h),mt.ready()}function p(t,e){return e.toUpperCase()}function d(t){return t.replace(Pt,"ms-").replace(Nt,p)}function f(){this.expando=mt.expando+f.uid++}function m(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(Rt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t?1:"false"===t?0:"null"===t?null:t===+t+""?+t:zt.test(t)?JSON.parse(t):t}(n)}catch(t){}It.set(t,e,n)}else n=void 0;return n}function v(t,e,n,i){var r,a,o=20,s=i?function(){return i.cur()}:function(){return mt.css(t,e,"")},c=s(),l=n&&n[3]||(mt.cssNumber[e]?"":"px"),u=t.nodeType&&(mt.cssNumber[e]||"px"!==l&&+c)&&Ut.exec(mt.css(t,e));if(u&&u[3]!==l){for(c/=2,l=l||u[3],u=+c||1;o--;)mt.style(t,e,u+l),(1-a)*(1-(a=s()/c||.5))<=0&&(o=0),u/=a;u*=2,mt.style(t,e,u+l),n=n||[]}return n&&(u=+u||+c||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=l,i.start=u,i.end=r)),r}function g(t){var e,n=t.ownerDocument,i=t.nodeName,r=Ht[i];return r||(e=n.body.appendChild(n.createElement(i)),r=mt.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),Ht[i]=r,r)}function y(t,e){for(var n,i,r=[],a=0,o=t.length;a<o;a++)(i=t[a]).style&&(n=i.style.display,e?("none"===n&&(r[a]=Dt.get(i,"display")||null,r[a]||(i.style.display="")),""===i.style.display&&Gt(i)&&(r[a]=g(i))):"none"!==n&&(r[a]="none",Dt.set(i,"display",n)));for(a=0;a<o;a++)null!=r[a]&&(t[a].style.display=r[a]);return t}function x(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&a(t,e)?mt.merge([t],n):n}function _(t,e){for(var n=0,i=t.length;n<i;n++)Dt.set(t[n],"globalEval",!e||Dt.get(e[n],"globalEval"))}function b(t,e,n,r,a){for(var o,s,c,l,u,h,p=e.createDocumentFragment(),d=[],f=0,m=t.length;f<m;f++)if((o=t[f])||0===o)if("object"===i(o))mt.merge(d,o.nodeType?[o]:o);else if(Qt.test(o)){for(s=s||p.appendChild(e.createElement("div")),c=(Xt.exec(o)||["",""])[1].toLowerCase(),l=Zt[c]||Zt._default,s.innerHTML=l[1]+mt.htmlPrefilter(o)+l[2],h=l[0];h--;)s=s.lastChild;mt.merge(d,s.childNodes),(s=p.firstChild).textContent=""}else d.push(e.createTextNode(o));for(p.textContent="",f=0;o=d[f++];)if(r&&mt.inArray(o,r)>-1)a&&a.push(o);else if(u=jt(o),s=x(p.appendChild(o),"script"),u&&_(s),n)for(h=0;o=s[h++];)Yt.test(o.type||"")&&n.push(o);return p}function M(){return 1}function w(){return 0}function S(t,e){return t===function(){try{return tt.activeElement}catch(t){}}()==("focus"===e)}function T(t,e,n,i,r,a){var o,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)T(t,s,n,i,e[s],a);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),0==r)r=w;else if(!r)return t;return 1===a&&(o=r,(r=function(t){return mt().off(t),o.apply(this,argume
2020-03-26 06:10:06 +01:00
/*!
* Sizzle CSS Selector Engine v2.3.4
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://js.foundation/
*
* Date: 2019-04-08
*/
function(t){function e(t,e,n,i){var r,a,o,s,c,l,u,p=e&&e.ownerDocument,f=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==f&&9!==f&&11!==f)return n;if(!i&&((e?e.ownerDocument||e:B)!==N&&P(e),e=e||N,D)){if(11!==f&&(c=ft.exec(t)))if(r=c[1]){if(9===f){if(!(o=e.getElementById(r)))return n;if(o.id===r)return n.push(o),n}else if(p&&(o=p.getElementById(r))&&F(e,o)&&o.id===r)return n.push(o),n}else{if(c[2])return $.apply(n,e.getElementsByTagName(t)),n;if((r=c[3])&&_.getElementsByClassName&&e.getElementsByClassName)return $.apply(n,e.getElementsByClassName(r)),n}if(_.qsa&&!H[t+" "]&&(!I||!I.test(t))&&(1!==f||"object"!==e.nodeName.toLowerCase())){if(u=t,p=e,1===f&&ot.test(t)){for((s=e.getAttribute("id"))?s=s.replace(yt,xt):e.setAttribute("id",s=U),a=(l=S(t)).length;a--;)l[a]="#"+s+" "+d(l[a]);u=l.join(","),p=mt.test(t)&&h(e.parentNode)||e}try{return $.apply(n,p.querySelectorAll(u)),n}catch(e){H(t,1)}finally{s===U&&e.removeAttribute("id")}}}return A(t.replace(it,"$1"),e,n,i)}function n(){var t=[];return function e(n,i){return t.push(n+" ")>b.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function i(t){return t[U]=1,t}function r(t){var e=N.createElement("fieldset");try{return!!t(e)}catch(t){return 0}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function a(t,e){for(var n=t.split("|"),i=n.length;i--;)b.attrHandle[n[i]]=e}function o(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function s(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function c(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function l(t){return function(e){return"form"in e?e.parentNode&&0==e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&bt(e)===t:e.disabled===t:"label"in e?e.disabled===t:0}}function u(t){return i((function(e){return e=+e,i((function(n,i){for(var r,a=t([],n.length,e),o=a.length;o--;)n[r=a[o]]&&(n[r]=!(i[r]=n[r]))}))}))}function h(t){return t&&void 0!==t.getElementsByTagName&&t}function p(){}function d(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function f(t,e,n){var i=e.dir,r=e.next,a=r||i,o=n&&"parentNode"===a,s=j++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||o)return t(e,n,r);return 0}:function(e,n,c){var l,u,h,p=[k,s];if(c){for(;e=e[i];)if((1===e.nodeType||o)&&t(e,n,c))return 1}else for(;e=e[i];)if(1===e.nodeType||o)if(u=(h=e[U]||(e[U]={}))[e.uniqueID]||(h[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[i]||e;else{if((l=u[a])&&l[0]===k&&l[1]===s)return p[2]=l[2];if(u[a]=p,p[2]=t(e,n,c))return 1}return 0}}function m(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return 0;return 1}:t[0]}function v(t,e,n,i,r){for(var a,o=[],s=0,c=t.length,l=null!=e;s<c;s++)(a=t[s])&&(n&&!n(a,i,r)||(o.push(a),l&&e.push(s)));return o}function g(t,n,r,a,o,s){return a&&!a[U]&&(a=g(a)),o&&!o[U]&&(o=g(o,s)),i((function(i,s,c,l){var u,h,p,d=[],f=[],m=s.length,g=i||function(t,n,i){for(var r=0,a=n.length;r<a;r++)e(t,n[r],i);return i}(n||"*",c.nodeType?[c]:c,[]),y=!t||!i&&n?g:v(g,d,t,c,l),x=r?o||(i?t:m||a)?[]:s:y;if(r&&r(y,x,c,l),a)for(u=v(x,f),a(u,[],c,l),h=u.length;h--;)(p=u[h])&&(x[f[h]]=!(y[f[h]]=p));if(i){if(o||t){if(o){for(u=[],h=x.length;h--;)(p=x[h])&&u.push(y[h]=p);o(null,x=[],u,l)}for(h=x.length;h--;)(p=x[h])&&(u=o?K(i,p):d[h])>-1&&(i[u]=!(s[u]=p))}}else x=v(x===s?x.splice(m,x.length):x),o?o(null,s,x,l):$.apply(s,x)}))}function y(t){for(var e,n,i,r=t.length,a=b.relative[t[0].type],o=a||b.relative[" "],s=a?1:0,c=f((function(t){return t===e}),o,1),l=f((function(t){return K(e,t)>-1}),o,1),u=[function(t,n,i){var r=!a&&(i||n!==L)||((e=n).nodeType?c(t,n,i):l(t,n,i));return e=null,r}];s<r;s++)if(n=b.relative[t[s].type])u=[f(m(u),n)];else{if((n=b.filter[t[s].type].apply(null,t[s].matches))[U]){for(i=++s;i<r&&!b.relative[t[i].type];i++);return g(s>1&&m(u),s>1&&d(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(it,"$