SaiDAV-SaverSTL/dist/saver.min.js

31 lines
637 KiB
JavaScript
Raw Normal View History

2020-04-06 21:42:59 +02:00
var t;t=function(){"use strict";function t(){}function e(t,e){this.x=t||0,this.y=e||0}function n(t,e,n,i){this._x=t||0,this._y=e||0,this._z=n||0,this._w=void 0!==i?i:1}function i(t,e,n){this.x=t||0,this.y=e||0,this.z=n||0}function r(){this.elements=[1,0,0,0,1,0,0,0,1],arguments.length}function o(t,n,i,a,s,c,l,u,h,p){Object.defineProperty(this,"id",{value:lc++}),this.uuid=ic.generateUUID(),this.name="",this.image=void 0!==t?t:o.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=void 0!==n?n:o.DEFAULT_MAPPING,this.wrapS=void 0!==i?i:Ba,this.wrapT=void 0!==a?a:Ba,this.magFilter=void 0!==s?s:Wa,this.minFilter=void 0!==c?c:qa,this.anisotropy=void 0!==h?h:1,this.format=void 0!==l?l:ss,this.type=void 0!==u?u:Xa,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 r,this.generateMipmaps=1,this.premultiplyAlpha=0,this.flipY=1,this.unpackAlignment=4,this.encoding=void 0!==p?p:js,this.version=0,this.onUpdate=null}function a(t,e,n,i){this.x=t||0,this.y=e||0,this.z=n||0,this.w=void 0!==i?i:1}function s(t,e,n){this.width=t,this.height=e,this.scissor=new a(0,0,t,e),this.scissorTest=0,this.viewport=new a(0,0,t,e),n=n||{},this.texture=new o(void 0,void 0,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:Wa,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 c(t,e,n){s.call(this,t,e,n),this.samples=4}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(){var t,e,o,a;Object.defineProperty(this,"id",{value:xc++}),this.uuid=ic.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=p.DefaultUp.clone(),t=new i,e=new u,o=new n,a=new i(1,1,1),e._onChange((function(){o.setFromEuler(e,0)})),o._onChange((function(){e.setFromQuaternion(o,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:o},scale:{configurable:1,enumerable:1,value:a},modelViewMatrix:{value:new l},normalMatrix:{value:new r}}),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.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 i(1/0,1/0,1/0),this.max=void 0!==e?e:new i(-1/0,-1/0,-1/0)}function m(t,e,n,i,r){var o,a,s,c,l,u;for(o=0,a=t.length-3;o<=a;o+=3)if(Gc.fromArray(t,o),s=r.x*Math.abs(Gc.x)+r.y*Math.abs(Gc.y)+r.z*Math.abs(Gc.z),c=e.dot(Gc),l=n.dot(Gc),u=i.dot(Gc),Math.max(-Math.max(c,l,u),Math.min(c,l,u))>s)return 0;return 1}function g(t,e){this.center=void 0!==t?t:new i,this.radius=void 0!==e?e:0}function v(t,e){this.origin=void 0!==t?t:new i,this.direction=void 0!==e?e:new i}function y(t,e,n){this.a=void 0!==t?t:new i,this.b=void 0!==e?e:new i,this.c=void 0!==n?n:new i}function x(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 _(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}function w(t){return t<.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}function M(t,e,n,r,o,a){this.a=t,this.b=e,this.c=n,this.normal=r&&r.isVector3?r:new i,this.vertexNormals=Array.isArray(r)?
//!\ DECLARE ALIAS AFTER assign prototype !
Object.assign(Pi.prototype,{beforeStart_:Pi.prototype.copySampleValue_,afterEnd_:Pi.prototype.copySampleValue_}),Ei.prototype=Object.assign(Object.create(Pi.prototype),{constructor:Ei,DefaultSettings_:{endingStart:Fs,endingEnd:Fs},intervalChanged_:function(t,e,n){var i,r,o=this.parameterPositions,a=t-2,s=t+1,c=o[a],l=o[s];if(void 0===c)switch(this.getSettings_().endingStart){case 2401:a=t,c=2*e-n;break;case 2402:c=e+o[a=o.length-2]-o[a+1];break;default:a=t,c=n}if(void 0===l)switch(this.getSettings_().endingEnd){case 2401:s=t,l=2*n-e;break;case 2402:s=1,l=n+o[1]-o[0];break;default:s=t-1,l=e}i=.5*(n-e),r=this.valueSize,this._weightPrev=i/(e-c),this._weightNext=i/(l-n),this._offsetPrev=a*r,this._offsetNext=s*r},interpolate_:function(t,e,n,i){var r,o=this.resultBuffer,a=this.sampleValues,s=this.valueSize,c=t*s,l=c-s,u=this._offsetPrev,h=this._offsetNext,p=this._weightPrev,d=this._weightNext,f=(n-e)/(i-e),m=f*f,g=m*f,v=-p*g+2*p*m-p*f,y=(1+p)*g+(-1.5-2*p)*m+(-.5+p)*f+1,x=(-1-d)*g+(1.5+d)*m+.5*f,b=d*g-d*m;for(r=0;r!==s;++r)o[r]=v*a[u+r]+y*a[l+r]+x*a[c+r]+b*a[h+r];return o}}),Ni.prototype=Object.assign(Object.create(Pi.prototype),{constructor:Ni,interpolate_:function(t,e,n,i){var r,o=this.resultBuffer,a=this.sampleValues,s=this.valueSize,c=t*s,l=c-s,u=(n-e)/(i-e),h=1-u;for(r=0;r!==s;++r)o[r]=a[l+r]*h+a[c+r]*u;return o}}),Oi.prototype=Object.assign(Object.create(Pi.prototype),{constructor:Oi,interpolate_:function(t){return this.copySampleValue_(t-1)}}),Object.assign(Di,{toJSON:function(t){var e,n,i=t.constructor;return void 0!==i.toJSON?e=i.toJSON(t):(e={name:t.name,times:Zu.convertArray(t.times,Array),values:Zu.convertArray(t.values,Array)},(n=t.getInterpolation())!==t.DefaultInterpolation&&(e.interpolation=n)),e.type=t.ValueTypeName,e}}),Object.assign(Di.prototype,{constructor:Di,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:2301,InterpolantFactoryMethodDiscrete:function(t){return new Oi(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodLinear:function(t){return new Ni(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:function(t){return new Ei(this.times,this.values,this.getValueSize(),t)},setInterpolation:function(t){var e,n;switch(t){case 2300:e=this.InterpolantFactoryMethodDiscrete;break;case 2301:e=this.InterpolantFactoryMethodLinear;break;case 2302:e=this.InterpolantFactoryMethodSmooth}if(void 0===e){if(n="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name,void 0===this.createInterpolant){if(t===this.DefaultInterpolation)throw Error(n);this.setInterpolation(this.DefaultInterpolation)}return this}return this.createInterpolant=e,this},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return 2300;case this.InterpolantFactoryMethodLinear:return 2301;case this.InterpolantFactoryMethodSmooth:return 2302}},getValueSize:function(){return this.values.length/this.times.length},shift:function(t){var e,n,i;if(0!==t)for(n=0,i=(e=this.times).length;n!==i;++n)e[n]+=t;return this},scale:function(t){var e,n,i;if(1!==t)for(n=0,i=(e=this.times).length;n!==i;++n)e[n]*=t;return this},trim:function(t,e){for(var n,i=this.times,r=i.length,o=0,a=r-1;o!==r&&i[o]<t;)++o;for(;-1!==a&&i[a]>e;)--a;return++a,0===o&&a===r||(o>=a&&(o=(a=Math.max(a,1))-1),n=this.getValueSize(),this.times=Zu.arraySlice(i,o,a),this.values=Zu.arraySlice(this.values,o*n,a*n)),this},validate:function(){var t,e,n,i,r,o,a,s,c=1,l=this.getValueSize();for(l-Math.floor(l)!=0&&(c=0),t=this.times,e=this.values,0===(n=t.length)&&(c=0),i=null,r=0;r!==n;r++){if("number"==typeof(o=t[r])&&isNaN(o)){c=0;break}if(null!==i&&i>o){c=0;break}i=o}if(void 0!==e&&Zu.isTypedArray(e))for(r=0,a=e.length;r!==a;++r)if(s=e[r],isNaN(s)){c=0;break}return c},optimize:function(){var t,e,n,i,r,o,a,s,c,l,u=this.times,h=this.values,p=this.getValueSize(),d=2302===this.getInterpolation(),f=1,m=u.length-1;for(t=1;t<m;++t){if(e=0,(n=u[t])!==u[t+1]&&(1!==t||n!==n[0]))if(d)e=1;else for(r=(i=t*p)-p,o=i+p,a=0;a!==p;++a)if((s=h[i+a])!==h[r+a]||s!==h[o+a]
//!\ DECLARE ALIAS AFTER assign prototype !
Object.assign(Jr.prototype,{_getValue_unbound:Jr.prototype.getValue,_setValue_unbound:Jr.prototype.setValue}),Object.assign(function(){var t,e,n,i;for(this.uuid=ic.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0,t={},this._indicesByUUID=t,e=0,n=arguments.length;e!==n;++e)t[arguments[e].uuid]=e;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={},i=this,this.stats={objects:{get total(){return i._objects.length},get inUse(){return this.total-i.nCachedObjects_}},get bindingsPerObject(){return i._bindings.length}}}.prototype,{isAnimationObjectGroup:1,add:function(){var t,e,n,i,r,o,a,s,c,l,u,h,p=this._objects,d=p.length,f=this.nCachedObjects_,m=this._indicesByUUID,g=this._paths,v=this._parsedPaths,y=this._bindings,x=y.length;for(t=0,e=arguments.length;t!==e;++t)if(void 0===(r=m[i=(n=arguments[t]).uuid]))for(r=d++,m[i]=r,p.push(n),o=0,a=x;o!==a;++o)y[o].push(new Jr(n,g[o],v[o]));else if(r<f)for(p[r],m[(c=p[s=--f]).uuid]=r,p[r]=c,m[i]=s,p[s]=n,o=0,a=x;o!==a;++o)u=(l=y[o])[s],h=l[r],l[r]=u,void 0===h&&(h=new Jr(n,g[o],v[o])),l[s]=h;else p[r];this.nCachedObjects_=f},remove:function(){var t,e,n,i,r,o,a,s,c,l,u,h,p=this._objects,d=this.nCachedObjects_,f=this._indicesByUUID,m=this._bindings,g=m.length;for(t=0,e=arguments.length;t!==e;++t)if(void 0!==(r=f[i=(n=arguments[t]).uuid])&&r>=d)for(f[(a=p[o=d++]).uuid]=r,p[r]=a,f[i]=o,p[o]=n,s=0,c=g;s!==c;++s)u=(l=m[s])[o],h=l[r],l[r]=u,l[o]=h;this.nCachedObjects_=d},uncache:function(){var t,e,n,i,r,o,a,s,c,l,u,h,p,d=this._objects,f=d.length,m=this.nCachedObjects_,g=this._indicesByUUID,v=this._bindings,y=v.length;for(t=0,e=arguments.length;t!==e;++t)if(void 0!==(i=g[n=arguments[t].uuid]))if(delete g[n],i<m)for(o=d[r=--m],s=d[a=--f],g[o.uuid]=i,d[i]=o,g[s.uuid]=r,d[r]=s,d.pop(),c=0,l=y;c!==l;++c)h=(u=v[c])[r],p=u[a],u[i]=h,u[r]=p,u.pop();else for(g[(s=d[a=--f]).uuid]=i,d[i]=s,d.pop(),c=0,l=y;c!==l;++c)(u=v[c])[i]=u[a],u.pop();this.nCachedObjects_=m},subscribe_:function(t,e){var n,i,r,o,a,s,c,l,u,h=this._bindingsIndicesByPath,p=h[t],d=this._bindings;if(void 0!==p)return d[p];for(n=this._paths,i=this._parsedPaths,o=(r=this._objects).length,a=this.nCachedObjects_,s=Array(o),p=d.length,h[t]=p,n.push(t),i.push(e),d.push(s),c=a,l=r.length;c!==l;++c)u=r[c],s[c]=new Jr(u,t,e);return s},unsubscribe_:function(t){var e,n,i,r,o,a=this._bindingsIndicesByPath,s=a[t];void 0!==s&&(e=this._paths,n=this._parsedPaths,o=(i=this._bindings)[r=i.length-1],a[t[r]]=s,i[s]=o,i.pop(),n[s]=n[r],n.pop(),e[s]=e[r],e.pop())}}),Object.assign($r.prototype,{play:function(){return this._mixer._activateAction(this),this},stop:function(){return this._mixer._deactivateAction(this),this.reset()},reset:function(){return this.paused=0,this.enabled=1,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()},isRunning:function(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)},isScheduled:function(){return this._mixer._isActiveAction(this)},startAt:function(t){return this._startTime=t,this},setLoop:function(t,e){return this.loop=t,this.repetitions=e,this},setEffectiveWeight:function(t){return this.weight=t,this._effectiveWeight=this.enabled?t:0,this.stopFading()},getEffectiveWeight:function(){return this._effectiveWeight},fadeIn:function(t){return this._scheduleFading(t,0,1)},fadeOut:function(t){return this._scheduleFading(t,1,0)},crossFadeFrom:function(t,e,n){if(t.fadeOut(e),this.fadeIn(e),n){var i=this._clip.duration,r=t._clip.duration,o=r/i,a=i/r;t.warp(1,o,e),this.warp(a,1,e)}return this},crossFadeTo:function(t,e,n){return t.crossFadeFrom(this,e,n)},stopFading:function(){var t=this._weightInterpolant;return null!==t&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},setEffectiveTimeScale:function(t){return this.timeScale=t,this._effectiveTimeScale=this.paused?0:t,this.stopWarping()},getEffectiveTimeScale:function(){return this._effectiveTimeScale},setDuration:function(t){return this.timeScale=this._clip.duration/t,this.stopWarping()},syn
/*!
* 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:ip,(function(t,e){function n(t,e,n){var i,r,o=(n=n||Ie).createElement("script");if(o.text=t,e)for(i in Ye)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function i(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?Ue[je.call(t)]||"object":typeof t}function r(t){var e=!!t&&"length"in t&&t.length,n=i(t);return qe(t)||Xe(t)?0:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}function o(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function a(t,e,n){return qe(e)?Ze.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?Ze.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?Ze.grep(t,(function(t){return Be.call(e,t)>-1!==n})):Ze.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&&qe(r=t.promise)?r.call(t).done(e).fail(n):t&&qe(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.call(void 0,t)}}function h(){Ie.removeEventListener("DOMContentLoaded",h),t.removeEventListener("load",h),Ze.ready()}function p(t,e){return e.toUpperCase()}function d(t){return t.replace(pt,"ms-").replace(dt,p)}function f(){this.expando=Ze.expando+f.uid++}function m(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(yt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t?1:"false"===t?0:"null"===t?null:t===+t+""?+t:vt.test(t)?JSON.parse(t):t}(n)}catch(t){}gt.set(t,e,n)}else n=void 0;return n}function g(t,e,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return Ze.css(t,e,"")},c=s(),l=n&&n[3]||(Ze.cssNumber[e]?"":"px"),u=t.nodeType&&(Ze.cssNumber[e]||"px"!==l&&+c)&&bt.exec(Ze.css(t,e));if(u&&u[3]!==l){for(c/=2,l=l||u[3],u=+c||1;a--;)Ze.style(t,e,u+l),(1-o)*(1-(o=s()/c||.5))<=0&&(a=0),u/=o;u*=2,Ze.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 v(t){var e,n=t.ownerDocument,i=t.nodeName,r=Lt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=Ze.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),Lt[i]=r,r)}function y(t,e){for(var n,i,r=[],o=0,a=t.length;o<a;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=mt.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&Tt(i)&&(r[o]=v(i))):"none"!==n&&(r[o]="none",mt.set(i,"display",n)));for(o=0;o<a;o++)null!=r[o]&&(t[o].style.display=r[o]);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&&o(t,e)?Ze.merge([t],n):n}function b(t,e){for(var n=0,i=t.length;n<i;n++)mt.set(t[n],"globalEval",!e||mt.get(e[n],"globalEval"))}function _(t,e,n,r,o){for(var a,s,c,l,u,h,p=e.createDocumentFragment(),d=[],f=0,m=t.length;f<m;f++)if((a=t[f])||0===a)if("object"===i(a))Ze.merge(d,a.nodeType?[a]:a);else if(Ot.test(a)){for(s=s||p.appendChild(e.createElement("div")),c=(Pt.exec(a)||["",""])[1].toLowerCase(),l=Nt[c]||Nt._default,s.innerHTML=l[1]+Ze.htmlPrefilter(a)+l[2],h=l[0];h--;)s=s.lastChild;Ze.merge(d,s.childNodes),(s=p.firstChild).textContent=""}else d.push(e.createTextNode(a));for(p.textContent="",f=0;a=d[f++];)if(r&&Ze.inArray(a,r)>-1)o&&o.push(a);else if(u=Mt(a),s=x(p.appendChild(a),"script"),u&&b(s),n)for(h=0;a=s[h++];)Et.test(a.type||"")&&n.push(a);return p}function w(){return 1}function M(){return 0}function S(t,e){return t===function(){try{return Ie.activeElement}catch(t){}}()==("focus"===e)}function T(t,e,n,i,r,o){var a,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],o);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=M;else if(!r)return t;return 1===o&&(a=r,(r=function(t){return Ze().off(t),a.apply(this,argume
/*!
* 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,o,a,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&&E(e),e=e||N,D)){if(11!==f&&(c=ft.exec(t)))if(r=c[1]){if(9===f){if(!(a=e.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(p&&(a=p.getElementById(r))&&F(e,a)&&a.id===r)return n.push(a),n}else{if(c[2])return $.apply(n,e.getElementsByTagName(t)),n;if((r=c[3])&&b.getElementsByClassName&&e.getElementsByClassName)return $.apply(n,e.getElementsByClassName(r)),n}if(b.qsa&&!H[t+" "]&&(!I||!I.test(t))&&(1!==f||"object"!==e.nodeName.toLowerCase())){if(u=t,p=e,1===f&&at.test(t)){for((s=e.getAttribute("id"))?s=s.replace(yt,xt):e.setAttribute("id",s=k),o=(l=S(t)).length;o--;)l[o]="#"+s+" "+d(l[o]);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===k&&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+" ")>_.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function i(t){return t[k]=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 o(t,e){for(var n=t.split("|"),i=n.length;i--;)_.attrHandle[n[i]]=e}function a(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&&_t(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,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(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,o=r||i,a=n&&"parentNode"===o,s=j++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,r);return 0}:function(e,n,c){var l,u,h,p=[U,s];if(c){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,c))return 1}else for(;e=e[i];)if(1===e.nodeType||a)if(u=(h=e[k]||(e[k]={}))[e.uniqueID]||(h[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[i]||e;else{if((l=u[o])&&l[0]===U&&l[1]===s)return p[2]=l[2];if(u[o]=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 g(t,e,n,i,r){for(var o,a=[],s=0,c=t.length,l=null!=e;s<c;s++)(o=t[s])&&(n&&!n(o,i,r)||(a.push(o),l&&e.push(s)));return a}function v(t,n,r,o,a,s){return o&&!o[k]&&(o=v(o)),a&&!a[k]&&(a=v(a,s)),i((function(i,s,c,l){var u,h,p,d=[],f=[],m=s.length,v=i||function(t,n,i){for(var r=0,o=n.length;r<o;r++)e(t,n[r],i);return i}(n||"*",c.nodeType?[c]:c,[]),y=!t||!i&&n?v:g(v,d,t,c,l),x=r?a||(i?t:m||o)?[]:s:y;if(r&&r(y,x,c,l),o)for(u=g(x,f),o(u,[],c,l),h=u.length;h--;)(p=u[h])&&(x[f[h]]=!(y[f[h]]=p));if(i){if(a||t){if(a){for(u=[],h=x.length;h--;)(p=x[h])&&u.push(y[h]=p);a(null,x=[],u,l)}for(h=x.length;h--;)(p=x[h])&&(u=a?K(i,p):d[h])>-1&&(i[u]=!(s[u]=p))}}else x=g(x===s?x.splice(m,x.length):x),a?a(null,s,x,l):$.apply(s,x)}))}function y(t){for(var e,n,i,r=t.length,o=_.relative[t[0].type],a=o||_.relative[" "],s=o?1:0,c=f((function(t){return t===e}),a,1),l=f((function(t){return K(e,t)>-1}),a,1),u=[function(t,n,i){var r=!o&&(i||n!==L)||((e=n).nodeType?c(t,n,i):l(t,n,i));return e=null,r}];s<r;s++)if(n=_.relative[t[s].type])u=[f(m(u),n)];else{if((n=_.filter[t[s].type].apply(null,t[s].matches))[k]){for(i=++s;i<r&&!_.relative[t[i].type];i++);return v(s>1&&m(u),s>1&&d(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(it,"$