mxdraw 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,7 +16,7 @@ var extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__p
16
16
  //!\ DECLARE ALIAS AFTER assign prototype !
17
17
  Object.assign(Interpolant.prototype,{beforeStart_:Interpolant.prototype.copySampleValue_,afterEnd_:Interpolant.prototype.copySampleValue_}),CubicInterpolant.prototype=Object.assign(Object.create(Interpolant.prototype),{constructor:CubicInterpolant,DefaultSettings_:{endingStart:ZeroCurvatureEnding,endingEnd:ZeroCurvatureEnding},intervalChanged_:function(e,t,n){var r=this.parameterPositions,i=e-2,a=e+1,o=r[i],s=r[a];if(void 0===o)switch(this.getSettings_().endingStart){case ZeroSlopeEnding:i=e,o=2*t-n;break;case WrapAroundEnding:o=t+r[i=r.length-2]-r[i+1];break;default:i=e,o=n}if(void 0===s)switch(this.getSettings_().endingEnd){case ZeroSlopeEnding:a=e,s=2*n-t;break;case WrapAroundEnding:a=1,s=n+r[1]-r[0];break;default:a=e-1,s=t}var l=.5*(n-t),c=this.valueSize;this._weightPrev=l/(t-o),this._weightNext=l/(s-n),this._offsetPrev=i*c,this._offsetNext=a*c},interpolate_:function(e,t,n,r){for(var i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,l=s-o,c=this._offsetPrev,u=this._offsetNext,h=this._weightPrev,p=this._weightNext,d=(n-t)/(r-t),f=d*d,m=f*d,g=-h*m+2*h*f-h*d,v=(1+h)*m+(-1.5-2*h)*f+(-.5+h)*d+1,y=(-1-p)*m+(1.5+p)*f+.5*d,x=p*m-p*f,_=0;_!==o;++_)i[_]=g*a[c+_]+v*a[l+_]+y*a[s+_]+x*a[u+_];return i}}),LinearInterpolant.prototype=Object.assign(Object.create(Interpolant.prototype),{constructor:LinearInterpolant,interpolate_:function(e,t,n,r){for(var i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,l=s-o,c=(n-t)/(r-t),u=1-c,h=0;h!==o;++h)i[h]=a[l+h]*u+a[s+h]*c;return i}}),DiscreteInterpolant.prototype=Object.assign(Object.create(Interpolant.prototype),{constructor:DiscreteInterpolant,interpolate_:function(e){return this.copySampleValue_(e-1)}}),Object.assign(KeyframeTrack,{toJSON:function(e){var t,n=e.constructor;if(void 0!==n.toJSON)t=n.toJSON(e);else{t={name:e.name,times:AnimationUtils.convertArray(e.times,Array),values:AnimationUtils.convertArray(e.values,Array)};var r=e.getInterpolation();r!==e.DefaultInterpolation&&(t.interpolation=r)}return t.type=e.ValueTypeName,t}}),Object.assign(KeyframeTrack.prototype,{constructor:KeyframeTrack,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:InterpolateLinear,InterpolantFactoryMethodDiscrete:function(e){return new DiscreteInterpolant(this.times,this.values,this.getValueSize(),e)},InterpolantFactoryMethodLinear:function(e){return new LinearInterpolant(this.times,this.values,this.getValueSize(),e)},InterpolantFactoryMethodSmooth:function(e){return new CubicInterpolant(this.times,this.values,this.getValueSize(),e)},setInterpolation:function(e){var t;switch(e){case InterpolateDiscrete:t=this.InterpolantFactoryMethodDiscrete;break;case InterpolateLinear:t=this.InterpolantFactoryMethodLinear;break;case InterpolateSmooth:t=this.InterpolantFactoryMethodSmooth}if(void 0===t){var n="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(e===this.DefaultInterpolation)throw new Error(n);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",n),this}return this.createInterpolant=t,this},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return InterpolateDiscrete;case this.InterpolantFactoryMethodLinear:return InterpolateLinear;case this.InterpolantFactoryMethodSmooth:return InterpolateSmooth}},getValueSize:function(){return this.values.length/this.times.length},shift:function(e){if(0!==e)for(var t=this.times,n=0,r=t.length;n!==r;++n)t[n]+=e;return this},scale:function(e){if(1!==e)for(var t=this.times,n=0,r=t.length;n!==r;++n)t[n]*=e;return this},trim:function(e,t){for(var n=this.times,r=n.length,i=0,a=r-1;i!==r&&n[i]<e;)++i;for(;-1!==a&&n[a]>t;)--a;if(++a,0!==i||a!==r){i>=a&&(i=(a=Math.max(a,1))-1);var o=this.getValueSize();this.times=AnimationUtils.arraySlice(n,i,a),this.values=AnimationUtils.arraySlice(this.values,i*o,a*o)}return this},validate:function(){var e=!0,t=this.getValueSize();t-Math.floor(t)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);var n=this.times,r=this.values,i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);for(var a=null,o=0;o!==i;o++){var s=n[o];if("number"==typeof s&&isNaN(s)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,o,s),e=!1;break}if(null!==a&&a>s){console.error("THREE.KeyframeTrack: Out of order keys.",this,o,s,a),e=!1;break}a=s}if(void 0!==r&&AnimationUtils.isTypedArray(r)){o=0;for(var l=r.length;o!==l;++o){var c=r[o];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,o,c),e=!1;break}}}return e},optimize:function(){for(var e=AnimationUtils.arraySlice(this.times),t=AnimationUtils.arraySlice(this.values),n=this.getValueSize(),r=this.getInterpolation()===InterpolateSmooth,i=1,a=e.length-1,o=1;o<a;++o){var s=!1,l=e[o];if(l!==e[o+1]&&(1!==o||l!==l[0]))if(r)s=!0;else for(var c=o*n,u=c-n,h=c+n,p=0;p!==n;++p){var d=t[c+p];if(d!==t[u+p]||d!==t[h+p]){s=!0;break}}if(s){if(o!==i){e[i]=e[o];var f=o*n,m=i*n;for(p=0;p!==n;++p)t[m+p]=t[f+p]}++i}}if(a>0){e[i]=e[a];for(f=a*n,m=i*n,p=0;p!==n;++p)t[m+p]=t[f+p];++i}return i!==e.length?(this.times=AnimationUtils.arraySlice(e,0,i),this.values=AnimationUtils.arraySlice(t,0,i*n)):(this.times=e,this.values=t),this},clone:function(){var e=AnimationUtils.arraySlice(this.times,0),t=AnimationUtils.arraySlice(this.values,0),n=new(0,this.constructor)(this.name,e,t);return n.createInterpolant=this.createInterpolant,n}}),BooleanKeyframeTrack.prototype=Object.assign(Object.create(KeyframeTrack.prototype),{constructor:BooleanKeyframeTrack,ValueTypeName:"bool",ValueBufferType:Array,DefaultInterpolation:InterpolateDiscrete,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),ColorKeyframeTrack.prototype=Object.assign(Object.create(KeyframeTrack.prototype),{constructor:ColorKeyframeTrack,ValueTypeName:"color"}),NumberKeyframeTrack.prototype=Object.assign(Object.create(KeyframeTrack.prototype),{constructor:NumberKeyframeTrack,ValueTypeName:"number"}),QuaternionLinearInterpolant.prototype=Object.assign(Object.create(Interpolant.prototype),{constructor:QuaternionLinearInterpolant,interpolate_:function(e,t,n,r){for(var i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,l=(n-t)/(r-t),c=s+o;s!==c;s+=4)Quaternion.slerpFlat(i,0,a,s-o,a,s,l);return i}}),QuaternionKeyframeTrack.prototype=Object.assign(Object.create(KeyframeTrack.prototype),{constructor:QuaternionKeyframeTrack,ValueTypeName:"quaternion",DefaultInterpolation:InterpolateLinear,InterpolantFactoryMethodLinear:function(e){return new QuaternionLinearInterpolant(this.times,this.values,this.getValueSize(),e)},InterpolantFactoryMethodSmooth:void 0}),StringKeyframeTrack.prototype=Object.assign(Object.create(KeyframeTrack.prototype),{constructor:StringKeyframeTrack,ValueTypeName:"string",ValueBufferType:Array,DefaultInterpolation:InterpolateDiscrete,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),VectorKeyframeTrack.prototype=Object.assign(Object.create(KeyframeTrack.prototype),{constructor:VectorKeyframeTrack,ValueTypeName:"vector"}),Object.assign(AnimationClip,{parse:function(e){for(var t=[],n=e.tracks,r=1/(e.fps||1),i=0,a=n.length;i!==a;++i)t.push(parseKeyframeTrack(n[i]).scale(r));return new AnimationClip(e.name,e.duration,t)},toJSON:function(e){for(var t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid},i=0,a=n.length;i!==a;++i)t.push(KeyframeTrack.toJSON(n[i]));return r},CreateFromMorphTargetSequence:function(e,t,n,r){for(var i=t.length,a=[],o=0;o<i;o++){var s=[],l=[];s.push((o+i-1)%i,o,(o+1)%i),l.push(0,1,0);var c=AnimationUtils.getKeyframeOrder(s);s=AnimationUtils.sortedArray(s,1,c),l=AnimationUtils.sortedArray(l,1,c),r||0!==s[0]||(s.push(i),l.push(l[0])),a.push(new NumberKeyframeTrack(".morphTargetInfluences["+t[o].name+"]",s,l).scale(1/n))}return new AnimationClip(e,-1,a)},findByName:function(e,t){var n=e;if(!Array.isArray(e)){var r=e;n=r.geometry&&r.geometry.animations||r.animations}for(var i=0;i<n.length;i++)if(n[i].name===t)return n[i];return null},CreateClipsFromMorphTargetSequences:function(e,t,n){for(var r={},i=/^([\w-]*?)([\d]+)$/,a=0,o=e.length;a<o;a++){var s=e[a],l=s.name.match(i);if(l&&l.length>1){var c=r[h=l[1]];c||(r[h]=c=[]),c.push(s)}}var u=[];for(var h in r)u.push(AnimationClip.CreateFromMorphTargetSequence(h,r[h],t,n));return u},parseAnimation:function(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;for(var n=function(e,t,n,r,i){if(0!==n.length){var a=[],o=[];AnimationUtils.flattenJSON(n,a,o,r),0!==a.length&&i.push(new e(t,a,o))}},r=[],i=e.name||"default",a=e.length||-1,o=e.fps||30,s=e.hierarchy||[],l=0;l<s.length;l++){var c=s[l].keys;if(c&&0!==c.length)if(c[0].morphTargets){for(var u={},h=0;h<c.length;h++)if(c[h].morphTargets)for(var p=0;p<c[h].morphTargets.length;p++)u[c[h].morphTargets[p]]=-1;for(var d in u){var f=[],m=[];for(p=0;p!==c[h].morphTargets.length;++p){var g=c[h];f.push(g.time),m.push(g.morphTarget===d?1:0)}r.push(new NumberKeyframeTrack(".morphTargetInfluence["+d+"]",f,m))}a=u.length*(o||1)}else{var v=".bones["+t[l].name+"]";n(VectorKeyframeTrack,v+".position",c,"pos",r),n(QuaternionKeyframeTrack,v+".quaternion",c,"rot",r),n(VectorKeyframeTrack,v+".scale",c,"scl",r)}}return 0===r.length?null:new AnimationClip(i,a,r)}}),Object.assign(AnimationClip.prototype,{resetDuration:function(){for(var e=0,t=0,n=this.tracks.length;t!==n;++t){var r=this.tracks[t];e=Math.max(e,r.times[r.times.length-1])}return this.duration=e,this},trim:function(){for(var e=0;e<this.tracks.length;e++)this.tracks[e].trim(0,this.duration);return this},validate:function(){for(var e=!0,t=0;t<this.tracks.length;t++)e=e&&this.tracks[t].validate();return e},optimize:function(){for(var e=0;e<this.tracks.length;e++)this.tracks[e].optimize();return this},clone:function(){for(var e=[],t=0;t<this.tracks.length;t++)e.push(this.tracks[t].clone());return new AnimationClip(this.name,this.duration,e)}});var Cache={enabled:!1,files:{},add:function(e,t){!1!==this.enabled&&(this.files[e]=t)},get:function(e){if(!1!==this.enabled)return this.files[e]},remove:function(e){delete this.files[e]},clear:function(){this.files={}}};function LoadingManager(e,t,n){var r=this,i=!1,a=0,o=0,s=void 0,l=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this.itemStart=function(e){o++,!1===i&&void 0!==r.onStart&&r.onStart(e,a,o),i=!0},this.itemEnd=function(e){a++,void 0!==r.onProgress&&r.onProgress(e,a,o),a===o&&(i=!1,void 0!==r.onLoad&&r.onLoad())},this.itemError=function(e){void 0!==r.onError&&r.onError(e)},this.resolveURL=function(e){return s?s(e):e},this.setURLModifier=function(e){return s=e,this},this.addHandler=function(e,t){return l.push(e,t),this},this.removeHandler=function(e){var t=l.indexOf(e);return-1!==t&&l.splice(t,2),this},this.getHandler=function(e){for(var t=0,n=l.length;t<n;t+=2){var r=l[t],i=l[t+1];if(r.global&&(r.lastIndex=0),r.test(e))return i}return null}}var DefaultLoadingManager=new LoadingManager;function Loader(e){this.manager=void 0!==e?e:DefaultLoadingManager,this.crossOrigin="anonymous",this.path="",this.resourcePath=""}Object.assign(Loader.prototype,{load:function(){},parse:function(){},setCrossOrigin:function(e){return this.crossOrigin=e,this},setPath:function(e){return this.path=e,this},setResourcePath:function(e){return this.resourcePath=e,this}});var loading={};function FileLoader(e){Loader.call(this,e)}function AnimationLoader(e){Loader.call(this,e)}function CompressedTextureLoader(e){Loader.call(this,e)}function DataTextureLoader(e){Loader.call(this,e)}function ImageLoader(e){Loader.call(this,e)}function CubeTextureLoader(e){Loader.call(this,e)}function TextureLoader(e){Loader.call(this,e)}function Curve(){this.type="Curve",this.arcLengthDivisions=200}function EllipseCurve(e,t,n,r,i,a,o,s){Curve.call(this),this.type="EllipseCurve",this.aX=e||0,this.aY=t||0,this.xRadius=n||1,this.yRadius=r||1,this.aStartAngle=i||0,this.aEndAngle=a||2*Math.PI,this.aClockwise=o||!1,this.aRotation=s||0}function ArcCurve(e,t,n,r,i,a){EllipseCurve.call(this,e,t,n,n,r,i,a),this.type="ArcCurve"}function CubicPoly(){var e=0,t=0,n=0,r=0;function i(i,a,o,s){e=i,t=o,n=-3*i+3*a-2*o-s,r=2*i-2*a+o+s}return{initCatmullRom:function(e,t,n,r,a){i(t,n,a*(n-e),a*(r-t))},initNonuniformCatmullRom:function(e,t,n,r,a,o,s){var l=(t-e)/a-(n-e)/(a+o)+(n-t)/o,c=(n-t)/o-(r-t)/(o+s)+(r-n)/s;i(t,n,l*=o,c*=o)},calc:function(i){var a=i*i;return e+t*i+n*a+r*(a*i)}}}FileLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:FileLoader,load:function(e,t,n,r){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);var i=this,a=Cache.get(e);if(void 0!==a)return i.manager.itemStart(e),setTimeout((function(){t&&t(a),i.manager.itemEnd(e)}),0),a;if(void 0===loading[e]){var o=e.match(/^data:(.*?)(;base64)?,(.*)$/);if(o){var s=o[1],l=!!o[2],c=o[3];c=decodeURIComponent(c),l&&(c=atob(c));try{var u,h=(this.responseType||"").toLowerCase();switch(h){case"arraybuffer":case"blob":for(var p=new Uint8Array(c.length),d=0;d<c.length;d++)p[d]=c.charCodeAt(d);u="blob"===h?new Blob([p.buffer],{type:s}):p.buffer;break;case"document":var f=new DOMParser;u=f.parseFromString(c,s);break;case"json":u=JSON.parse(c);break;default:u=c}setTimeout((function(){t&&t(u),i.manager.itemEnd(e)}),0)}catch(t){setTimeout((function(){r&&r(t),i.manager.itemError(e),i.manager.itemEnd(e)}),0)}}else{loading[e]=[],loading[e].push({onLoad:t,onProgress:n,onError:r});var m=new XMLHttpRequest;for(var g in m.open("GET",e,!0),m.addEventListener("load",(function(t){var n=this.response,r=loading[e];if(delete loading[e],200===this.status||0===this.status){0===this.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),Cache.add(e,n);for(var a=0,o=r.length;a<o;a++){(s=r[a]).onLoad&&s.onLoad(n)}i.manager.itemEnd(e)}else{for(a=0,o=r.length;a<o;a++){var s;(s=r[a]).onError&&s.onError(t)}i.manager.itemError(e),i.manager.itemEnd(e)}}),!1),m.addEventListener("progress",(function(t){for(var n=loading[e],r=0,i=n.length;r<i;r++){var a=n[r];a.onProgress&&a.onProgress(t)}}),!1),m.addEventListener("error",(function(t){var n=loading[e];delete loading[e];for(var r=0,a=n.length;r<a;r++){var o=n[r];o.onError&&o.onError(t)}i.manager.itemError(e),i.manager.itemEnd(e)}),!1),m.addEventListener("abort",(function(t){var n=loading[e];delete loading[e];for(var r=0,a=n.length;r<a;r++){var o=n[r];o.onError&&o.onError(t)}i.manager.itemError(e),i.manager.itemEnd(e)}),!1),void 0!==this.responseType&&(m.responseType=this.responseType),void 0!==this.withCredentials&&(m.withCredentials=this.withCredentials),m.overrideMimeType&&m.overrideMimeType(void 0!==this.mimeType?this.mimeType:"text/plain"),this.requestHeader)m.setRequestHeader(g,this.requestHeader[g]);m.send(null)}return i.manager.itemStart(e),m}loading[e].push({onLoad:t,onProgress:n,onError:r})},setResponseType:function(e){return this.responseType=e,this},setWithCredentials:function(e){return this.withCredentials=e,this},setMimeType:function(e){return this.mimeType=e,this},setRequestHeader:function(e){return this.requestHeader=e,this}}),AnimationLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:AnimationLoader,load:function(e,t,n,r){var i=this,a=new FileLoader(i.manager);a.setPath(i.path),a.load(e,(function(e){t(i.parse(JSON.parse(e)))}),n,r)},parse:function(e){for(var t=[],n=0;n<e.length;n++){var r=AnimationClip.parse(e[n]);t.push(r)}return t}}),CompressedTextureLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:CompressedTextureLoader,load:function(e,t,n,r){var i=this,a=[],o=new CompressedTexture;o.image=a;var s=new FileLoader(this.manager);function l(l){s.load(e[l],(function(e){var n=i.parse(e,!0);a[l]={width:n.width,height:n.height,format:n.format,mipmaps:n.mipmaps},6===(c+=1)&&(1===n.mipmapCount&&(o.minFilter=LinearFilter),o.format=n.format,o.needsUpdate=!0,t&&t(o))}),n,r)}if(s.setPath(this.path),s.setResponseType("arraybuffer"),Array.isArray(e))for(var c=0,u=0,h=e.length;u<h;++u)l(u);else s.load(e,(function(e){var n=i.parse(e,!0);if(n.isCubemap)for(var r=n.mipmaps.length/n.mipmapCount,s=0;s<r;s++){a[s]={mipmaps:[]};for(var l=0;l<n.mipmapCount;l++)a[s].mipmaps.push(n.mipmaps[s*n.mipmapCount+l]),a[s].format=n.format,a[s].width=n.width,a[s].height=n.height}else o.image.width=n.width,o.image.height=n.height,o.mipmaps=n.mipmaps;1===n.mipmapCount&&(o.minFilter=LinearFilter),o.format=n.format,o.needsUpdate=!0,t&&t(o)}),n,r);return o}}),DataTextureLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:DataTextureLoader,load:function(e,t,n,r){var i=this,a=new DataTexture,o=new FileLoader(this.manager);return o.setResponseType("arraybuffer"),o.setPath(this.path),o.load(e,(function(e){var n=i.parse(e);n&&(void 0!==n.image?a.image=n.image:void 0!==n.data&&(a.image.width=n.width,a.image.height=n.height,a.image.data=n.data),a.wrapS=void 0!==n.wrapS?n.wrapS:ClampToEdgeWrapping,a.wrapT=void 0!==n.wrapT?n.wrapT:ClampToEdgeWrapping,a.magFilter=void 0!==n.magFilter?n.magFilter:LinearFilter,a.minFilter=void 0!==n.minFilter?n.minFilter:LinearFilter,a.anisotropy=void 0!==n.anisotropy?n.anisotropy:1,void 0!==n.format&&(a.format=n.format),void 0!==n.type&&(a.type=n.type),void 0!==n.mipmaps&&(a.mipmaps=n.mipmaps,a.minFilter=LinearMipmapLinearFilter),1===n.mipmapCount&&(a.minFilter=LinearFilter),a.needsUpdate=!0,t&&t(a,n))}),n,r),a}}),ImageLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:ImageLoader,load:function(e,t,n,r){void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);var i=this,a=Cache.get(e);if(void 0!==a)return i.manager.itemStart(e),setTimeout((function(){t&&t(a),i.manager.itemEnd(e)}),0),a;var o=document.createElementNS("http://www.w3.org/1999/xhtml","img");function s(){o.removeEventListener("load",s,!1),o.removeEventListener("error",l,!1),Cache.add(e,this),t&&t(this),i.manager.itemEnd(e)}function l(t){o.removeEventListener("load",s,!1),o.removeEventListener("error",l,!1),r&&r(t),i.manager.itemError(e),i.manager.itemEnd(e)}return o.addEventListener("load",s,!1),o.addEventListener("error",l,!1),"data:"!==e.substr(0,5)&&void 0!==this.crossOrigin&&(o.crossOrigin=this.crossOrigin),i.manager.itemStart(e),o.src=e,o}}),CubeTextureLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:CubeTextureLoader,load:function(e,t,n,r){var i=new CubeTexture,a=new ImageLoader(this.manager);a.setCrossOrigin(this.crossOrigin),a.setPath(this.path);var o=0;function s(n){a.load(e[n],(function(e){i.images[n]=e,6===++o&&(i.needsUpdate=!0,t&&t(i))}),void 0,r)}for(var l=0;l<e.length;++l)s(l);return i}}),TextureLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:TextureLoader,load:function(e,t,n,r){var i=new Texture,a=new ImageLoader(this.manager);return a.setCrossOrigin(this.crossOrigin),a.setPath(this.path),a.load(e,(function(n){i.image=n;var r=e.search(/\.jpe?g($|\?)/i)>0||0===e.search(/^data\:image\/jpeg/);i.format=r?RGBFormat:RGBAFormat,i.needsUpdate=!0,void 0!==t&&t(i)}),n,r),i}}),Object.assign(Curve.prototype,{getPoint:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null},getPointAt:function(e,t){var n=this.getUtoTmapping(e);return this.getPoint(n,t)},getPoints:function(e){void 0===e&&(e=5);for(var t=[],n=0;n<=e;n++)t.push(this.getPoint(n/e));return t},getSpacedPoints:function(e){void 0===e&&(e=5);for(var t=[],n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t},getLength:function(){var e=this.getLengths();return e[e.length-1]},getLengths:function(e){if(void 0===e&&(e=this.arcLengthDivisions),this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var t,n,r=[],i=this.getPoint(0),a=0;for(r.push(0),n=1;n<=e;n++)a+=(t=this.getPoint(n/e)).distanceTo(i),r.push(a),i=t;return this.cacheArcLengths=r,r},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()},getUtoTmapping:function(e,t){var n,r=this.getLengths(),i=0,a=r.length;n=t||e*r[a-1];for(var o,s=0,l=a-1;s<=l;)if((o=r[i=Math.floor(s+(l-s)/2)]-n)<0)s=i+1;else{if(!(o>0)){l=i;break}l=i-1}if(r[i=l]===n)return i/(a-1);var c=r[i];return(i+(n-c)/(r[i+1]-c))/(a-1)},getTangent:function(e){var t=1e-4,n=e-t,r=e+t;n<0&&(n=0),r>1&&(r=1);var i=this.getPoint(n);return this.getPoint(r).clone().sub(i).normalize()},getTangentAt:function(e){var t=this.getUtoTmapping(e);return this.getTangent(t)},computeFrenetFrames:function(e,t){var n,r,i,a=new Vector3,o=[],s=[],l=[],c=new Vector3,u=new Matrix4;for(n=0;n<=e;n++)r=n/e,o[n]=this.getTangentAt(r),o[n].normalize();s[0]=new Vector3,l[0]=new Vector3;var h=Number.MAX_VALUE,p=Math.abs(o[0].x),d=Math.abs(o[0].y),f=Math.abs(o[0].z);for(p<=h&&(h=p,a.set(1,0,0)),d<=h&&(h=d,a.set(0,1,0)),f<=h&&a.set(0,0,1),c.crossVectors(o[0],a).normalize(),s[0].crossVectors(o[0],c),l[0].crossVectors(o[0],s[0]),n=1;n<=e;n++)s[n]=s[n-1].clone(),l[n]=l[n-1].clone(),c.crossVectors(o[n-1],o[n]),c.length()>Number.EPSILON&&(c.normalize(),i=Math.acos(MathUtils.clamp(o[n-1].dot(o[n]),-1,1)),s[n].applyMatrix4(u.makeRotationAxis(c,i))),l[n].crossVectors(o[n],s[n]);if(!0===t)for(i=Math.acos(MathUtils.clamp(s[0].dot(s[e]),-1,1)),i/=e,o[0].dot(c.crossVectors(s[0],s[e]))>0&&(i=-i),n=1;n<=e;n++)s[n].applyMatrix4(u.makeRotationAxis(o[n],i*n)),l[n].crossVectors(o[n],s[n]);return{tangents:o,normals:s,binormals:l}},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.arcLengthDivisions=e.arcLengthDivisions,this},toJSON:function(){var e={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e},fromJSON:function(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}),EllipseCurve.prototype=Object.create(Curve.prototype),EllipseCurve.prototype.constructor=EllipseCurve,EllipseCurve.prototype.isEllipseCurve=!0,EllipseCurve.prototype.getPoint=function(e,t){for(var n=t||new Vector2,r=2*Math.PI,i=this.aEndAngle-this.aStartAngle,a=Math.abs(i)<Number.EPSILON;i<0;)i+=r;for(;i>r;)i-=r;i<Number.EPSILON&&(i=a?0:r),!0!==this.aClockwise||a||(i===r?i=-r:i-=r);var o=this.aStartAngle+e*i,s=this.aX+this.xRadius*Math.cos(o),l=this.aY+this.yRadius*Math.sin(o);if(0!==this.aRotation){var c=Math.cos(this.aRotation),u=Math.sin(this.aRotation),h=s-this.aX,p=l-this.aY;s=h*c-p*u+this.aX,l=h*u+p*c+this.aY}return n.set(s,l)},EllipseCurve.prototype.copy=function(e){return Curve.prototype.copy.call(this,e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this},EllipseCurve.prototype.toJSON=function(){var e=Curve.prototype.toJSON.call(this);return e.aX=this.aX,e.aY=this.aY,e.xRadius=this.xRadius,e.yRadius=this.yRadius,e.aStartAngle=this.aStartAngle,e.aEndAngle=this.aEndAngle,e.aClockwise=this.aClockwise,e.aRotation=this.aRotation,e},EllipseCurve.prototype.fromJSON=function(e){return Curve.prototype.fromJSON.call(this,e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this},ArcCurve.prototype=Object.create(EllipseCurve.prototype),ArcCurve.prototype.constructor=ArcCurve,ArcCurve.prototype.isArcCurve=!0;var tmp=new Vector3,px=new CubicPoly,py=new CubicPoly,pz=new CubicPoly;function CatmullRomCurve3(e,t,n,r){Curve.call(this),this.type="CatmullRomCurve3",this.points=e||[],this.closed=t||!1,this.curveType=n||"centripetal",this.tension=r||.5}function CatmullRom(e,t,n,r,i){var a=.5*(r-t),o=.5*(i-n),s=e*e;return(2*n-2*r+a+o)*(e*s)+(-3*n+3*r-2*a-o)*s+a*e+n}function QuadraticBezierP0(e,t){var n=1-e;return n*n*t}function QuadraticBezierP1(e,t){return 2*(1-e)*e*t}function QuadraticBezierP2(e,t){return e*e*t}function QuadraticBezier(e,t,n,r){return QuadraticBezierP0(e,t)+QuadraticBezierP1(e,n)+QuadraticBezierP2(e,r)}function CubicBezierP0(e,t){var n=1-e;return n*n*n*t}function CubicBezierP1(e,t){var n=1-e;return 3*n*n*e*t}function CubicBezierP2(e,t){return 3*(1-e)*e*e*t}function CubicBezierP3(e,t){return e*e*e*t}function CubicBezier(e,t,n,r,i){return CubicBezierP0(e,t)+CubicBezierP1(e,n)+CubicBezierP2(e,r)+CubicBezierP3(e,i)}function CubicBezierCurve(e,t,n,r){Curve.call(this),this.type="CubicBezierCurve",this.v0=e||new Vector2,this.v1=t||new Vector2,this.v2=n||new Vector2,this.v3=r||new Vector2}function CubicBezierCurve3(e,t,n,r){Curve.call(this),this.type="CubicBezierCurve3",this.v0=e||new Vector3,this.v1=t||new Vector3,this.v2=n||new Vector3,this.v3=r||new Vector3}function LineCurve(e,t){Curve.call(this),this.type="LineCurve",this.v1=e||new Vector2,this.v2=t||new Vector2}function LineCurve3(e,t){Curve.call(this),this.type="LineCurve3",this.v1=e||new Vector3,this.v2=t||new Vector3}function QuadraticBezierCurve(e,t,n){Curve.call(this),this.type="QuadraticBezierCurve",this.v0=e||new Vector2,this.v1=t||new Vector2,this.v2=n||new Vector2}function QuadraticBezierCurve3(e,t,n){Curve.call(this),this.type="QuadraticBezierCurve3",this.v0=e||new Vector3,this.v1=t||new Vector3,this.v2=n||new Vector3}function SplineCurve(e){Curve.call(this),this.type="SplineCurve",this.points=e||[]}CatmullRomCurve3.prototype=Object.create(Curve.prototype),CatmullRomCurve3.prototype.constructor=CatmullRomCurve3,CatmullRomCurve3.prototype.isCatmullRomCurve3=!0,CatmullRomCurve3.prototype.getPoint=function(e,t){var n,r,i,a,o=t||new Vector3,s=this.points,l=s.length,c=(l-(this.closed?0:1))*e,u=Math.floor(c),h=c-u;if(this.closed?u+=u>0?0:(Math.floor(Math.abs(u)/l)+1)*l:0===h&&u===l-1&&(u=l-2,h=1),this.closed||u>0?n=s[(u-1)%l]:(tmp.subVectors(s[0],s[1]).add(s[0]),n=tmp),r=s[u%l],i=s[(u+1)%l],this.closed||u+2<l?a=s[(u+2)%l]:(tmp.subVectors(s[l-1],s[l-2]).add(s[l-1]),a=tmp),"centripetal"===this.curveType||"chordal"===this.curveType){var p="chordal"===this.curveType?.5:.25,d=Math.pow(n.distanceToSquared(r),p),f=Math.pow(r.distanceToSquared(i),p),m=Math.pow(i.distanceToSquared(a),p);f<1e-4&&(f=1),d<1e-4&&(d=f),m<1e-4&&(m=f),px.initNonuniformCatmullRom(n.x,r.x,i.x,a.x,d,f,m),py.initNonuniformCatmullRom(n.y,r.y,i.y,a.y,d,f,m),pz.initNonuniformCatmullRom(n.z,r.z,i.z,a.z,d,f,m)}else"catmullrom"===this.curveType&&(px.initCatmullRom(n.x,r.x,i.x,a.x,this.tension),py.initCatmullRom(n.y,r.y,i.y,a.y,this.tension),pz.initCatmullRom(n.z,r.z,i.z,a.z,this.tension));return o.set(px.calc(h),py.calc(h),pz.calc(h)),o},CatmullRomCurve3.prototype.copy=function(e){Curve.prototype.copy.call(this,e),this.points=[];for(var t=0,n=e.points.length;t<n;t++){var r=e.points[t];this.points.push(r.clone())}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this},CatmullRomCurve3.prototype.toJSON=function(){var e=Curve.prototype.toJSON.call(this);e.points=[];for(var t=0,n=this.points.length;t<n;t++){var r=this.points[t];e.points.push(r.toArray())}return e.closed=this.closed,e.curveType=this.curveType,e.tension=this.tension,e},CatmullRomCurve3.prototype.fromJSON=function(e){Curve.prototype.fromJSON.call(this,e),this.points=[];for(var t=0,n=e.points.length;t<n;t++){var r=e.points[t];this.points.push((new Vector3).fromArray(r))}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this},CubicBezierCurve.prototype=Object.create(Curve.prototype),CubicBezierCurve.prototype.constructor=CubicBezierCurve,CubicBezierCurve.prototype.isCubicBezierCurve=!0,CubicBezierCurve.prototype.getPoint=function(e,t){var n=t||new Vector2,r=this.v0,i=this.v1,a=this.v2,o=this.v3;return n.set(CubicBezier(e,r.x,i.x,a.x,o.x),CubicBezier(e,r.y,i.y,a.y,o.y)),n},CubicBezierCurve.prototype.copy=function(e){return Curve.prototype.copy.call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this},CubicBezierCurve.prototype.toJSON=function(){var e=Curve.prototype.toJSON.call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e},CubicBezierCurve.prototype.fromJSON=function(e){return Curve.prototype.fromJSON.call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this},CubicBezierCurve3.prototype=Object.create(Curve.prototype),CubicBezierCurve3.prototype.constructor=CubicBezierCurve3,CubicBezierCurve3.prototype.isCubicBezierCurve3=!0,CubicBezierCurve3.prototype.getPoint=function(e,t){var n=t||new Vector3,r=this.v0,i=this.v1,a=this.v2,o=this.v3;return n.set(CubicBezier(e,r.x,i.x,a.x,o.x),CubicBezier(e,r.y,i.y,a.y,o.y),CubicBezier(e,r.z,i.z,a.z,o.z)),n},CubicBezierCurve3.prototype.copy=function(e){return Curve.prototype.copy.call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this},CubicBezierCurve3.prototype.toJSON=function(){var e=Curve.prototype.toJSON.call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e},CubicBezierCurve3.prototype.fromJSON=function(e){return Curve.prototype.fromJSON.call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this},LineCurve.prototype=Object.create(Curve.prototype),LineCurve.prototype.constructor=LineCurve,LineCurve.prototype.isLineCurve=!0,LineCurve.prototype.getPoint=function(e,t){var n=t||new Vector2;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n},LineCurve.prototype.getPointAt=function(e,t){return this.getPoint(e,t)},LineCurve.prototype.getTangent=function(){return this.v2.clone().sub(this.v1).normalize()},LineCurve.prototype.copy=function(e){return Curve.prototype.copy.call(this,e),this.v1.copy(e.v1),this.v2.copy(e.v2),this},LineCurve.prototype.toJSON=function(){var e=Curve.prototype.toJSON.call(this);return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e},LineCurve.prototype.fromJSON=function(e){return Curve.prototype.fromJSON.call(this,e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this},LineCurve3.prototype=Object.create(Curve.prototype),LineCurve3.prototype.constructor=LineCurve3,LineCurve3.prototype.isLineCurve3=!0,LineCurve3.prototype.getPoint=function(e,t){var n=t||new Vector3;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n},LineCurve3.prototype.getPointAt=function(e,t){return this.getPoint(e,t)},LineCurve3.prototype.copy=function(e){return Curve.prototype.copy.call(this,e),this.v1.copy(e.v1),this.v2.copy(e.v2),this},LineCurve3.prototype.toJSON=function(){var e=Curve.prototype.toJSON.call(this);return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e},LineCurve3.prototype.fromJSON=function(e){return Curve.prototype.fromJSON.call(this,e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this},QuadraticBezierCurve.prototype=Object.create(Curve.prototype),QuadraticBezierCurve.prototype.constructor=QuadraticBezierCurve,QuadraticBezierCurve.prototype.isQuadraticBezierCurve=!0,QuadraticBezierCurve.prototype.getPoint=function(e,t){var n=t||new Vector2,r=this.v0,i=this.v1,a=this.v2;return n.set(QuadraticBezier(e,r.x,i.x,a.x),QuadraticBezier(e,r.y,i.y,a.y)),n},QuadraticBezierCurve.prototype.copy=function(e){return Curve.prototype.copy.call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this},QuadraticBezierCurve.prototype.toJSON=function(){var e=Curve.prototype.toJSON.call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e},QuadraticBezierCurve.prototype.fromJSON=function(e){return Curve.prototype.fromJSON.call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this},QuadraticBezierCurve3.prototype=Object.create(Curve.prototype),QuadraticBezierCurve3.prototype.constructor=QuadraticBezierCurve3,QuadraticBezierCurve3.prototype.isQuadraticBezierCurve3=!0,QuadraticBezierCurve3.prototype.getPoint=function(e,t){var n=t||new Vector3,r=this.v0,i=this.v1,a=this.v2;return n.set(QuadraticBezier(e,r.x,i.x,a.x),QuadraticBezier(e,r.y,i.y,a.y),QuadraticBezier(e,r.z,i.z,a.z)),n},QuadraticBezierCurve3.prototype.copy=function(e){return Curve.prototype.copy.call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this},QuadraticBezierCurve3.prototype.toJSON=function(){var e=Curve.prototype.toJSON.call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e},QuadraticBezierCurve3.prototype.fromJSON=function(e){return Curve.prototype.fromJSON.call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this},SplineCurve.prototype=Object.create(Curve.prototype),SplineCurve.prototype.constructor=SplineCurve,SplineCurve.prototype.isSplineCurve=!0,SplineCurve.prototype.getPoint=function(e,t){var n=t||new Vector2,r=this.points,i=(r.length-1)*e,a=Math.floor(i),o=i-a,s=r[0===a?a:a-1],l=r[a],c=r[a>r.length-2?r.length-1:a+1],u=r[a>r.length-3?r.length-1:a+2];return n.set(CatmullRom(o,s.x,l.x,c.x,u.x),CatmullRom(o,s.y,l.y,c.y,u.y)),n},SplineCurve.prototype.copy=function(e){Curve.prototype.copy.call(this,e),this.points=[];for(var t=0,n=e.points.length;t<n;t++){var r=e.points[t];this.points.push(r.clone())}return this},SplineCurve.prototype.toJSON=function(){var e=Curve.prototype.toJSON.call(this);e.points=[];for(var t=0,n=this.points.length;t<n;t++){var r=this.points[t];e.points.push(r.toArray())}return e},SplineCurve.prototype.fromJSON=function(e){Curve.prototype.fromJSON.call(this,e),this.points=[];for(var t=0,n=e.points.length;t<n;t++){var r=e.points[t];this.points.push((new Vector2).fromArray(r))}return this};var Curves=Object.freeze({__proto__:null,ArcCurve:ArcCurve,CatmullRomCurve3:CatmullRomCurve3,CubicBezierCurve:CubicBezierCurve,CubicBezierCurve3:CubicBezierCurve3,EllipseCurve:EllipseCurve,LineCurve:LineCurve,LineCurve3:LineCurve3,QuadraticBezierCurve:QuadraticBezierCurve,QuadraticBezierCurve3:QuadraticBezierCurve3,SplineCurve:SplineCurve});function CurvePath(){Curve.call(this),this.type="CurvePath",this.curves=[],this.autoClose=!1}function Path(e){CurvePath.call(this),this.type="Path",this.currentPoint=new Vector2,e&&this.setFromPoints(e)}function Shape(e){Path.call(this,e),this.uuid=MathUtils.generateUUID(),this.type="Shape",this.holes=[]}function Light(e,t){Object3D.call(this),this.type="Light",this.color=new Color(e),this.intensity=void 0!==t?t:1,this.receiveShadow=void 0}function HemisphereLight(e,t,n){Light.call(this,e,n),this.type="HemisphereLight",this.castShadow=void 0,this.position.copy(Object3D.DefaultUp),this.updateMatrix(),this.groundColor=new Color(t)}function LightShadow(e){this.camera=e,this.bias=0,this.radius=1,this.mapSize=new Vector2(512,512),this.map=null,this.mapPass=null,this.matrix=new Matrix4,this._frustum=new Frustum,this._frameExtents=new Vector2(1,1),this._viewportCount=1,this._viewports=[new Vector4(0,0,1,1)]}function SpotLightShadow(){LightShadow.call(this,new PerspectiveCamera(50,1,.5,500))}function SpotLight(e,t,n,r,i,a){Light.call(this,e,t),this.type="SpotLight",this.position.copy(Object3D.DefaultUp),this.updateMatrix(),this.target=new Object3D,Object.defineProperty(this,"power",{get:function(){return this.intensity*Math.PI},set:function(e){this.intensity=e/Math.PI}}),this.distance=void 0!==n?n:0,this.angle=void 0!==r?r:Math.PI/3,this.penumbra=void 0!==i?i:0,this.decay=void 0!==a?a:1,this.shadow=new SpotLightShadow}function PointLightShadow(){LightShadow.call(this,new PerspectiveCamera(90,1,.5,500)),this._frameExtents=new Vector2(4,2),this._viewportCount=6,this._viewports=[new Vector4(2,1,1,1),new Vector4(0,1,1,1),new Vector4(3,1,1,1),new Vector4(1,1,1,1),new Vector4(3,0,1,1),new Vector4(1,0,1,1)],this._cubeDirections=[new Vector3(1,0,0),new Vector3(-1,0,0),new Vector3(0,0,1),new Vector3(0,0,-1),new Vector3(0,1,0),new Vector3(0,-1,0)],this._cubeUps=[new Vector3(0,1,0),new Vector3(0,1,0),new Vector3(0,1,0),new Vector3(0,1,0),new Vector3(0,0,1),new Vector3(0,0,-1)]}function PointLight(e,t,n,r){Light.call(this,e,t),this.type="PointLight",Object.defineProperty(this,"power",{get:function(){return 4*this.intensity*Math.PI},set:function(e){this.intensity=e/(4*Math.PI)}}),this.distance=void 0!==n?n:0,this.decay=void 0!==r?r:1,this.shadow=new PointLightShadow}function OrthographicCamera(e,t,n,r,i,a){Camera.call(this),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=void 0!==e?e:-1,this.right=void 0!==t?t:1,this.top=void 0!==n?n:1,this.bottom=void 0!==r?r:-1,this.near=void 0!==i?i:.1,this.far=void 0!==a?a:2e3,this.updateProjectionMatrix()}function DirectionalLightShadow(){LightShadow.call(this,new OrthographicCamera(-5,5,5,-5,.5,500))}function DirectionalLight(e,t){Light.call(this,e,t),this.type="DirectionalLight",this.position.copy(Object3D.DefaultUp),this.updateMatrix(),this.target=new Object3D,this.shadow=new DirectionalLightShadow}function AmbientLight(e,t){Light.call(this,e,t),this.type="AmbientLight",this.castShadow=void 0}function RectAreaLight(e,t,n,r){Light.call(this,e,t),this.type="RectAreaLight",this.width=void 0!==n?n:10,this.height=void 0!==r?r:10}function MaterialLoader(e){Loader.call(this,e),this.textures={}}CurvePath.prototype=Object.assign(Object.create(Curve.prototype),{constructor:CurvePath,add:function(e){this.curves.push(e)},closePath:function(){var e=this.curves[0].getPoint(0),t=this.curves[this.curves.length-1].getPoint(1);e.equals(t)||this.curves.push(new LineCurve(t,e))},getPoint:function(e){for(var t=e*this.getLength(),n=this.getCurveLengths(),r=0;r<n.length;){if(n[r]>=t){var i=n[r]-t,a=this.curves[r],o=a.getLength(),s=0===o?0:1-i/o;return a.getPointAt(s)}r++}return null},getLength:function(){var e=this.getCurveLengths();return e[e.length-1]},updateArcLengths:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()},getCurveLengths:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var e=[],t=0,n=0,r=this.curves.length;n<r;n++)t+=this.curves[n].getLength(),e.push(t);return this.cacheLengths=e,e},getSpacedPoints:function(e){void 0===e&&(e=40);for(var t=[],n=0;n<=e;n++)t.push(this.getPoint(n/e));return this.autoClose&&t.push(t[0]),t},getPoints:function(e){e=e||12;for(var t,n=[],r=0,i=this.curves;r<i.length;r++)for(var a=i[r],o=a&&a.isEllipseCurve?2*e:a&&(a.isLineCurve||a.isLineCurve3)?1:a&&a.isSplineCurve?e*a.points.length:e,s=a.getPoints(o),l=0;l<s.length;l++){var c=s[l];t&&t.equals(c)||(n.push(c),t=c)}return this.autoClose&&n.length>1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n},copy:function(e){Curve.prototype.copy.call(this,e),this.curves=[];for(var t=0,n=e.curves.length;t<n;t++){var r=e.curves[t];this.curves.push(r.clone())}return this.autoClose=e.autoClose,this},toJSON:function(){var e=Curve.prototype.toJSON.call(this);e.autoClose=this.autoClose,e.curves=[];for(var t=0,n=this.curves.length;t<n;t++){var r=this.curves[t];e.curves.push(r.toJSON())}return e},fromJSON:function(e){Curve.prototype.fromJSON.call(this,e),this.autoClose=e.autoClose,this.curves=[];for(var t=0,n=e.curves.length;t<n;t++){var r=e.curves[t];this.curves.push((new Curves[r.type]).fromJSON(r))}return this}}),Path.prototype=Object.assign(Object.create(CurvePath.prototype),{constructor:Path,setFromPoints:function(e){this.moveTo(e[0].x,e[0].y);for(var t=1,n=e.length;t<n;t++)this.lineTo(e[t].x,e[t].y);return this},moveTo:function(e,t){return this.currentPoint.set(e,t),this},lineTo:function(e,t){var n=new LineCurve(this.currentPoint.clone(),new Vector2(e,t));return this.curves.push(n),this.currentPoint.set(e,t),this},quadraticCurveTo:function(e,t,n,r){var i=new QuadraticBezierCurve(this.currentPoint.clone(),new Vector2(e,t),new Vector2(n,r));return this.curves.push(i),this.currentPoint.set(n,r),this},bezierCurveTo:function(e,t,n,r,i,a){var o=new CubicBezierCurve(this.currentPoint.clone(),new Vector2(e,t),new Vector2(n,r),new Vector2(i,a));return this.curves.push(o),this.currentPoint.set(i,a),this},splineThru:function(e){var t=new SplineCurve([this.currentPoint.clone()].concat(e));return this.curves.push(t),this.currentPoint.copy(e[e.length-1]),this},arc:function(e,t,n,r,i,a){var o=this.currentPoint.x,s=this.currentPoint.y;return this.absarc(e+o,t+s,n,r,i,a),this},absarc:function(e,t,n,r,i,a){return this.absellipse(e,t,n,n,r,i,a),this},ellipse:function(e,t,n,r,i,a,o,s){var l=this.currentPoint.x,c=this.currentPoint.y;return this.absellipse(e+l,t+c,n,r,i,a,o,s),this},absellipse:function(e,t,n,r,i,a,o,s){var l=new EllipseCurve(e,t,n,r,i,a,o,s);if(this.curves.length>0){var c=l.getPoint(0);c.equals(this.currentPoint)||this.lineTo(c.x,c.y)}this.curves.push(l);var u=l.getPoint(1);return this.currentPoint.copy(u),this},copy:function(e){return CurvePath.prototype.copy.call(this,e),this.currentPoint.copy(e.currentPoint),this},toJSON:function(){var e=CurvePath.prototype.toJSON.call(this);return e.currentPoint=this.currentPoint.toArray(),e},fromJSON:function(e){return CurvePath.prototype.fromJSON.call(this,e),this.currentPoint.fromArray(e.currentPoint),this}}),Shape.prototype=Object.assign(Object.create(Path.prototype),{constructor:Shape,getPointsHoles:function(e){for(var t=[],n=0,r=this.holes.length;n<r;n++)t[n]=this.holes[n].getPoints(e);return t},extractPoints:function(e){return{shape:this.getPoints(e),holes:this.getPointsHoles(e)}},copy:function(e){Path.prototype.copy.call(this,e),this.holes=[];for(var t=0,n=e.holes.length;t<n;t++){var r=e.holes[t];this.holes.push(r.clone())}return this},toJSON:function(){var e=Path.prototype.toJSON.call(this);e.uuid=this.uuid,e.holes=[];for(var t=0,n=this.holes.length;t<n;t++){var r=this.holes[t];e.holes.push(r.toJSON())}return e},fromJSON:function(e){Path.prototype.fromJSON.call(this,e),this.uuid=e.uuid,this.holes=[];for(var t=0,n=e.holes.length;t<n;t++){var r=e.holes[t];this.holes.push((new Path).fromJSON(r))}return this}}),Light.prototype=Object.assign(Object.create(Object3D.prototype),{constructor:Light,isLight:!0,copy:function(e){return Object3D.prototype.copy.call(this,e),this.color.copy(e.color),this.intensity=e.intensity,this},toJSON:function(e){var t=Object3D.prototype.toJSON.call(this,e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,void 0!==this.groundColor&&(t.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(t.object.distance=this.distance),void 0!==this.angle&&(t.object.angle=this.angle),void 0!==this.decay&&(t.object.decay=this.decay),void 0!==this.penumbra&&(t.object.penumbra=this.penumbra),void 0!==this.shadow&&(t.object.shadow=this.shadow.toJSON()),t}}),HemisphereLight.prototype=Object.assign(Object.create(Light.prototype),{constructor:HemisphereLight,isHemisphereLight:!0,copy:function(e){return Light.prototype.copy.call(this,e),this.groundColor.copy(e.groundColor),this}}),Object.assign(LightShadow.prototype,{_projScreenMatrix:new Matrix4,_lightPositionWorld:new Vector3,_lookTarget:new Vector3,getViewportCount:function(){return this._viewportCount},getFrustum:function(){return this._frustum},updateMatrices:function(e){var t=this.camera,n=this.matrix,r=this._projScreenMatrix,i=this._lookTarget,a=this._lightPositionWorld;a.setFromMatrixPosition(e.matrixWorld),t.position.copy(a),i.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(i),t.updateMatrixWorld(),r.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(r),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(t.projectionMatrix),n.multiply(t.matrixWorldInverse)},getViewport:function(e){return this._viewports[e]},getFrameExtents:function(){return this._frameExtents},copy:function(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){var e={};return 0!==this.bias&&(e.bias=this.bias),1!==this.radius&&(e.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}),SpotLightShadow.prototype=Object.assign(Object.create(LightShadow.prototype),{constructor:SpotLightShadow,isSpotLightShadow:!0,updateMatrices:function(e){var t=this.camera,n=2*MathUtils.RAD2DEG*e.angle,r=this.mapSize.width/this.mapSize.height,i=e.distance||t.far;n===t.fov&&r===t.aspect&&i===t.far||(t.fov=n,t.aspect=r,t.far=i,t.updateProjectionMatrix()),LightShadow.prototype.updateMatrices.call(this,e)}}),SpotLight.prototype=Object.assign(Object.create(Light.prototype),{constructor:SpotLight,isSpotLight:!0,copy:function(e){return Light.prototype.copy.call(this,e),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}),PointLightShadow.prototype=Object.assign(Object.create(LightShadow.prototype),{constructor:PointLightShadow,isPointLightShadow:!0,updateMatrices:function(e,t){void 0===t&&(t=0);var n=this.camera,r=this.matrix,i=this._lightPositionWorld,a=this._lookTarget,o=this._projScreenMatrix;i.setFromMatrixPosition(e.matrixWorld),n.position.copy(i),a.copy(n.position),a.add(this._cubeDirections[t]),n.up.copy(this._cubeUps[t]),n.lookAt(a),n.updateMatrixWorld(),r.makeTranslation(-i.x,-i.y,-i.z),o.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(o)}}),PointLight.prototype=Object.assign(Object.create(Light.prototype),{constructor:PointLight,isPointLight:!0,copy:function(e){return Light.prototype.copy.call(this,e),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}),OrthographicCamera.prototype=Object.assign(Object.create(Camera.prototype),{constructor:OrthographicCamera,isOrthographicCamera:!0,copy:function(e,t){return Camera.prototype.copy.call(this,e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this},setViewOffset:function(e,t,n,r,i,a){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()},clearViewOffset:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2,i=n-e,a=n+e,o=r+t,s=r-t;if(null!==this.view&&this.view.enabled){var l=(this.right-this.left)/this.view.fullWidth/this.zoom,c=(this.top-this.bottom)/this.view.fullHeight/this.zoom;a=(i+=l*this.view.offsetX)+l*this.view.width,s=(o-=c*this.view.offsetY)-c*this.view.height}this.projectionMatrix.makeOrthographic(i,a,o,s,this.near,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(e){var t=Object3D.prototype.toJSON.call(this,e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}),DirectionalLightShadow.prototype=Object.assign(Object.create(LightShadow.prototype),{constructor:DirectionalLightShadow,isDirectionalLightShadow:!0,updateMatrices:function(e){LightShadow.prototype.updateMatrices.call(this,e)}}),DirectionalLight.prototype=Object.assign(Object.create(Light.prototype),{constructor:DirectionalLight,isDirectionalLight:!0,copy:function(e){return Light.prototype.copy.call(this,e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}),AmbientLight.prototype=Object.assign(Object.create(Light.prototype),{constructor:AmbientLight,isAmbientLight:!0}),RectAreaLight.prototype=Object.assign(Object.create(Light.prototype),{constructor:RectAreaLight,isRectAreaLight:!0,copy:function(e){return Light.prototype.copy.call(this,e),this.width=e.width,this.height=e.height,this},toJSON:function(e){var t=Light.prototype.toJSON.call(this,e);return t.object.width=this.width,t.object.height=this.height,t}}),MaterialLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:MaterialLoader,load:function(e,t,n,r){var i=this,a=new FileLoader(i.manager);a.setPath(i.path),a.load(e,(function(e){t(i.parse(JSON.parse(e)))}),n,r)},parse:function(e){var t=this.textures;function n(e){return void 0===t[e]&&console.warn("THREE.MaterialLoader: Undefined texture",e),t[e]}var r=new Materials[e.type];if(void 0!==e.uuid&&(r.uuid=e.uuid),void 0!==e.name&&(r.name=e.name),void 0!==e.color&&r.color.setHex(e.color),void 0!==e.roughness&&(r.roughness=e.roughness),void 0!==e.metalness&&(r.metalness=e.metalness),void 0!==e.sheen&&(r.sheen=(new Color).setHex(e.sheen)),void 0!==e.emissive&&r.emissive.setHex(e.emissive),void 0!==e.specular&&r.specular.setHex(e.specular),void 0!==e.shininess&&(r.shininess=e.shininess),void 0!==e.clearcoat&&(r.clearcoat=e.clearcoat),void 0!==e.clearcoatRoughness&&(r.clearcoatRoughness=e.clearcoatRoughness),void 0!==e.vertexColors&&(r.vertexColors=e.vertexColors),void 0!==e.fog&&(r.fog=e.fog),void 0!==e.flatShading&&(r.flatShading=e.flatShading),void 0!==e.blending&&(r.blending=e.blending),void 0!==e.combine&&(r.combine=e.combine),void 0!==e.side&&(r.side=e.side),void 0!==e.opacity&&(r.opacity=e.opacity),void 0!==e.transparent&&(r.transparent=e.transparent),void 0!==e.alphaTest&&(r.alphaTest=e.alphaTest),void 0!==e.depthTest&&(r.depthTest=e.depthTest),void 0!==e.depthWrite&&(r.depthWrite=e.depthWrite),void 0!==e.colorWrite&&(r.colorWrite=e.colorWrite),void 0!==e.stencilWrite&&(r.stencilWrite=e.stencilWrite),void 0!==e.stencilWriteMask&&(r.stencilWriteMask=e.stencilWriteMask),void 0!==e.stencilFunc&&(r.stencilFunc=e.stencilFunc),void 0!==e.stencilRef&&(r.stencilRef=e.stencilRef),void 0!==e.stencilFuncMask&&(r.stencilFuncMask=e.stencilFuncMask),void 0!==e.stencilFail&&(r.stencilFail=e.stencilFail),void 0!==e.stencilZFail&&(r.stencilZFail=e.stencilZFail),void 0!==e.stencilZPass&&(r.stencilZPass=e.stencilZPass),void 0!==e.wireframe&&(r.wireframe=e.wireframe),void 0!==e.wireframeLinewidth&&(r.wireframeLinewidth=e.wireframeLinewidth),void 0!==e.wireframeLinecap&&(r.wireframeLinecap=e.wireframeLinecap),void 0!==e.wireframeLinejoin&&(r.wireframeLinejoin=e.wireframeLinejoin),void 0!==e.rotation&&(r.rotation=e.rotation),1!==e.linewidth&&(r.linewidth=e.linewidth),void 0!==e.dashSize&&(r.dashSize=e.dashSize),void 0!==e.gapSize&&(r.gapSize=e.gapSize),void 0!==e.scale&&(r.scale=e.scale),void 0!==e.polygonOffset&&(r.polygonOffset=e.polygonOffset),void 0!==e.polygonOffsetFactor&&(r.polygonOffsetFactor=e.polygonOffsetFactor),void 0!==e.polygonOffsetUnits&&(r.polygonOffsetUnits=e.polygonOffsetUnits),void 0!==e.skinning&&(r.skinning=e.skinning),void 0!==e.morphTargets&&(r.morphTargets=e.morphTargets),void 0!==e.morphNormals&&(r.morphNormals=e.morphNormals),void 0!==e.dithering&&(r.dithering=e.dithering),void 0!==e.visible&&(r.visible=e.visible),void 0!==e.toneMapped&&(r.toneMapped=e.toneMapped),void 0!==e.userData&&(r.userData=e.userData),void 0!==e.uniforms)for(var i in e.uniforms){var a=e.uniforms[i];switch(r.uniforms[i]={},a.type){case"t":r.uniforms[i].value=n(a.value);break;case"c":r.uniforms[i].value=(new Color).setHex(a.value);break;case"v2":r.uniforms[i].value=(new Vector2).fromArray(a.value);break;case"v3":r.uniforms[i].value=(new Vector3).fromArray(a.value);break;case"v4":r.uniforms[i].value=(new Vector4).fromArray(a.value);break;case"m3":r.uniforms[i].value=(new Matrix3).fromArray(a.value);case"m4":r.uniforms[i].value=(new Matrix4).fromArray(a.value);break;default:r.uniforms[i].value=a.value}}if(void 0!==e.defines&&(r.defines=e.defines),void 0!==e.vertexShader&&(r.vertexShader=e.vertexShader),void 0!==e.fragmentShader&&(r.fragmentShader=e.fragmentShader),void 0!==e.extensions)for(var o in e.extensions)r.extensions[o]=e.extensions[o];if(void 0!==e.shading&&(r.flatShading=1===e.shading),void 0!==e.size&&(r.size=e.size),void 0!==e.sizeAttenuation&&(r.sizeAttenuation=e.sizeAttenuation),void 0!==e.map&&(r.map=n(e.map)),void 0!==e.matcap&&(r.matcap=n(e.matcap)),void 0!==e.alphaMap&&(r.alphaMap=n(e.alphaMap),r.transparent=!0),void 0!==e.bumpMap&&(r.bumpMap=n(e.bumpMap)),void 0!==e.bumpScale&&(r.bumpScale=e.bumpScale),void 0!==e.normalMap&&(r.normalMap=n(e.normalMap)),void 0!==e.normalMapType&&(r.normalMapType=e.normalMapType),void 0!==e.normalScale){var s=e.normalScale;!1===Array.isArray(s)&&(s=[s,s]),r.normalScale=(new Vector2).fromArray(s)}return void 0!==e.displacementMap&&(r.displacementMap=n(e.displacementMap)),void 0!==e.displacementScale&&(r.displacementScale=e.displacementScale),void 0!==e.displacementBias&&(r.displacementBias=e.displacementBias),void 0!==e.roughnessMap&&(r.roughnessMap=n(e.roughnessMap)),void 0!==e.metalnessMap&&(r.metalnessMap=n(e.metalnessMap)),void 0!==e.emissiveMap&&(r.emissiveMap=n(e.emissiveMap)),void 0!==e.emissiveIntensity&&(r.emissiveIntensity=e.emissiveIntensity),void 0!==e.specularMap&&(r.specularMap=n(e.specularMap)),void 0!==e.envMap&&(r.envMap=n(e.envMap)),void 0!==e.envMapIntensity&&(r.envMapIntensity=e.envMapIntensity),void 0!==e.reflectivity&&(r.reflectivity=e.reflectivity),void 0!==e.refractionRatio&&(r.refractionRatio=e.refractionRatio),void 0!==e.lightMap&&(r.lightMap=n(e.lightMap)),void 0!==e.lightMapIntensity&&(r.lightMapIntensity=e.lightMapIntensity),void 0!==e.aoMap&&(r.aoMap=n(e.aoMap)),void 0!==e.aoMapIntensity&&(r.aoMapIntensity=e.aoMapIntensity),void 0!==e.gradientMap&&(r.gradientMap=n(e.gradientMap)),void 0!==e.clearcoatNormalMap&&(r.clearcoatNormalMap=n(e.clearcoatNormalMap)),void 0!==e.clearcoatNormalScale&&(r.clearcoatNormalScale=(new Vector2).fromArray(e.clearcoatNormalScale)),r},setTextures:function(e){return this.textures=e,this}});var LoaderUtils={decodeText:function(e){if("undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);for(var t="",n=0,r=e.length;n<r;n++)t+=String.fromCharCode(e[n]);try{return decodeURIComponent(escape(t))}catch(e){return t}},extractUrlBase:function(e){var t=e.lastIndexOf("/");return-1===t?"./":e.substr(0,t+1)}};function InstancedBufferGeometry(){BufferGeometry.call(this),this.type="InstancedBufferGeometry",this.maxInstancedCount=void 0}function InstancedBufferAttribute(e,t,n,r){"number"==typeof n&&(r=n,n=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),BufferAttribute.call(this,e,t,n),this.meshPerAttribute=r||1}function BufferGeometryLoader(e){Loader.call(this,e)}InstancedBufferGeometry.prototype=Object.assign(Object.create(BufferGeometry.prototype),{constructor:InstancedBufferGeometry,isInstancedBufferGeometry:!0,copy:function(e){return BufferGeometry.prototype.copy.call(this,e),this.maxInstancedCount=e.maxInstancedCount,this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){var e=BufferGeometry.prototype.toJSON.call(this);return e.maxInstancedCount=this.maxInstancedCount,e.isInstancedBufferGeometry=!0,e}}),InstancedBufferAttribute.prototype=Object.assign(Object.create(BufferAttribute.prototype),{constructor:InstancedBufferAttribute,isInstancedBufferAttribute:!0,copy:function(e){return BufferAttribute.prototype.copy.call(this,e),this.meshPerAttribute=e.meshPerAttribute,this},toJSON:function(){var e=BufferAttribute.prototype.toJSON.call(this);return e.meshPerAttribute=this.meshPerAttribute,e.isInstancedBufferAttribute=!0,e}}),BufferGeometryLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:BufferGeometryLoader,load:function(e,t,n,r){var i=this,a=new FileLoader(i.manager);a.setPath(i.path),a.load(e,(function(e){t(i.parse(JSON.parse(e)))}),n,r)},parse:function(e){var t=e.isInstancedBufferGeometry?new InstancedBufferGeometry:new BufferGeometry,n=e.data.index;if(void 0!==n){var r=new TYPED_ARRAYS[n.type](n.array);t.setIndex(new BufferAttribute(r,1))}var i=e.data.attributes;for(var a in i){var o=i[a],s=(r=new TYPED_ARRAYS[o.type](o.array),new(o.isInstancedBufferAttribute?InstancedBufferAttribute:BufferAttribute)(r,o.itemSize,o.normalized));void 0!==o.name&&(s.name=o.name),t.setAttribute(a,s)}var l=e.data.morphAttributes;if(l)for(var a in l){for(var c=l[a],u=[],h=0,p=c.length;h<p;h++){o=c[h],s=new BufferAttribute(r=new TYPED_ARRAYS[o.type](o.array),o.itemSize,o.normalized);void 0!==o.name&&(s.name=o.name),u.push(s)}t.morphAttributes[a]=u}e.data.morphTargetsRelative&&(t.morphTargetsRelative=!0);var d=e.data.groups||e.data.drawcalls||e.data.offsets;if(void 0!==d){h=0;for(var f=d.length;h!==f;++h){var m=d[h];t.addGroup(m.start,m.count,m.materialIndex)}}var g=e.data.boundingSphere;if(void 0!==g){var v=new Vector3;void 0!==g.center&&v.fromArray(g.center),t.boundingSphere=new Sphere(v,g.radius)}return e.name&&(t.name=e.name),e.userData&&(t.userData=e.userData),t}});var TYPED_ARRAYS={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:"undefined"!=typeof Uint8ClampedArray?Uint8ClampedArray:Uint8Array,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};function ObjectLoader(e){Loader.call(this,e)}ObjectLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:ObjectLoader,load:function(e,t,n,r){var i=this,a=""===this.path?LoaderUtils.extractUrlBase(e):this.path;this.resourcePath=this.resourcePath||a;var o=new FileLoader(i.manager);o.setPath(this.path),o.load(e,(function(n){var a=null;try{a=JSON.parse(n)}catch(t){return void 0!==r&&r(t),void console.error("THREE:ObjectLoader: Can't parse "+e+".",t.message)}var o=a.metadata;void 0!==o&&void 0!==o.type&&"geometry"!==o.type.toLowerCase()?i.parse(a,t):console.error("THREE.ObjectLoader: Can't load "+e)}),n,r)},parse:function(e,t){var n=this.parseShape(e.shapes),r=this.parseGeometries(e.geometries,n),i=this.parseImages(e.images,(function(){void 0!==t&&t(s)})),a=this.parseTextures(e.textures,i),o=this.parseMaterials(e.materials,a),s=this.parseObject(e.object,r,o);return e.animations&&(s.animations=this.parseAnimations(e.animations)),void 0!==e.images&&0!==e.images.length||void 0!==t&&t(s),s},parseShape:function(e){var t={};if(void 0!==e)for(var n=0,r=e.length;n<r;n++){var i=(new Shape).fromJSON(e[n]);t[i.uuid]=i}return t},parseGeometries:function(e,t){var n={};if(void 0!==e)for(var r=new BufferGeometryLoader,i=0,a=e.length;i<a;i++){var o,s=e[i];switch(s.type){case"PlaneGeometry":case"PlaneBufferGeometry":o=new Geometries[s.type](s.width,s.height,s.widthSegments,s.heightSegments);break;case"BoxGeometry":case"BoxBufferGeometry":case"CubeGeometry":o=new Geometries[s.type](s.width,s.height,s.depth,s.widthSegments,s.heightSegments,s.depthSegments);break;case"CircleGeometry":case"CircleBufferGeometry":o=new Geometries[s.type](s.radius,s.segments,s.thetaStart,s.thetaLength);break;case"CylinderGeometry":case"CylinderBufferGeometry":o=new Geometries[s.type](s.radiusTop,s.radiusBottom,s.height,s.radialSegments,s.heightSegments,s.openEnded,s.thetaStart,s.thetaLength);break;case"ConeGeometry":case"ConeBufferGeometry":o=new Geometries[s.type](s.radius,s.height,s.radialSegments,s.heightSegments,s.openEnded,s.thetaStart,s.thetaLength);break;case"SphereGeometry":case"SphereBufferGeometry":o=new Geometries[s.type](s.radius,s.widthSegments,s.heightSegments,s.phiStart,s.phiLength,s.thetaStart,s.thetaLength);break;case"DodecahedronGeometry":case"DodecahedronBufferGeometry":case"IcosahedronGeometry":case"IcosahedronBufferGeometry":case"OctahedronGeometry":case"OctahedronBufferGeometry":case"TetrahedronGeometry":case"TetrahedronBufferGeometry":o=new Geometries[s.type](s.radius,s.detail);break;case"RingGeometry":case"RingBufferGeometry":o=new Geometries[s.type](s.innerRadius,s.outerRadius,s.thetaSegments,s.phiSegments,s.thetaStart,s.thetaLength);break;case"TorusGeometry":case"TorusBufferGeometry":o=new Geometries[s.type](s.radius,s.tube,s.radialSegments,s.tubularSegments,s.arc);break;case"TorusKnotGeometry":case"TorusKnotBufferGeometry":o=new Geometries[s.type](s.radius,s.tube,s.tubularSegments,s.radialSegments,s.p,s.q);break;case"TubeGeometry":case"TubeBufferGeometry":o=new Geometries[s.type]((new Curves[s.path.type]).fromJSON(s.path),s.tubularSegments,s.radius,s.radialSegments,s.closed);break;case"LatheGeometry":case"LatheBufferGeometry":o=new Geometries[s.type](s.points,s.segments,s.phiStart,s.phiLength);break;case"PolyhedronGeometry":case"PolyhedronBufferGeometry":o=new Geometries[s.type](s.vertices,s.indices,s.radius,s.details);break;case"ShapeGeometry":case"ShapeBufferGeometry":for(var l=[],c=0,u=s.shapes.length;c<u;c++){var h=t[s.shapes[c]];l.push(h)}o=new Geometries[s.type](l,s.curveSegments);break;case"ExtrudeGeometry":case"ExtrudeBufferGeometry":for(l=[],c=0,u=s.shapes.length;c<u;c++){h=t[s.shapes[c]];l.push(h)}var p=s.options.extrudePath;void 0!==p&&(s.options.extrudePath=(new Curves[p.type]).fromJSON(p)),o=new Geometries[s.type](l,s.options);break;case"BufferGeometry":case"InstancedBufferGeometry":o=r.parse(s);break;case"Geometry":if("THREE"in window&&"LegacyJSONLoader"in THREE)o=(new THREE.LegacyJSONLoader).parse(s,this.resourcePath).geometry;else console.error('THREE.ObjectLoader: You have to import LegacyJSONLoader in order load geometry data of type "Geometry".');break;default:console.warn('THREE.ObjectLoader: Unsupported geometry type "'+s.type+'"');continue}o.uuid=s.uuid,void 0!==s.name&&(o.name=s.name),!0===o.isBufferGeometry&&void 0!==s.userData&&(o.userData=s.userData),n[s.uuid]=o}return n},parseMaterials:function(e,t){var n={},r={};if(void 0!==e){var i=new MaterialLoader;i.setTextures(t);for(var a=0,o=e.length;a<o;a++){var s=e[a];if("MultiMaterial"===s.type){for(var l=[],c=0;c<s.materials.length;c++){var u=s.materials[c];void 0===n[u.uuid]&&(n[u.uuid]=i.parse(u)),l.push(n[u.uuid])}r[s.uuid]=l}else void 0===n[s.uuid]&&(n[s.uuid]=i.parse(s)),r[s.uuid]=n[s.uuid]}}return r},parseAnimations:function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=AnimationClip.parse(r);void 0!==r.uuid&&(i.uuid=r.uuid),t.push(i)}return t},parseImages:function(e,t){var n=this,r={};function i(e){return n.manager.itemStart(e),a.load(e,(function(){n.manager.itemEnd(e)}),void 0,(function(){n.manager.itemError(e),n.manager.itemEnd(e)}))}if(void 0!==e&&e.length>0){var a=new ImageLoader(new LoadingManager(t));a.setCrossOrigin(this.crossOrigin);for(var o=0,s=e.length;o<s;o++){var l=e[o],c=l.url;if(Array.isArray(c)){r[l.uuid]=[];for(var u=0,h=c.length;u<h;u++){var p=c[u],d=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(p)?p:n.resourcePath+p;r[l.uuid].push(i(d))}}else{d=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(l.url)?l.url:n.resourcePath+l.url;r[l.uuid]=i(d)}}}return r},parseTextures:function(e,t){function n(e,t){return"number"==typeof e?e:(console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.",e),t[e])}var r={};if(void 0!==e)for(var i=0,a=e.length;i<a;i++){var o,s=e[i];void 0===s.image&&console.warn('THREE.ObjectLoader: No "image" specified for',s.uuid),void 0===t[s.image]&&console.warn("THREE.ObjectLoader: Undefined image",s.image),(o=Array.isArray(t[s.image])?new CubeTexture(t[s.image]):new Texture(t[s.image])).needsUpdate=!0,o.uuid=s.uuid,void 0!==s.name&&(o.name=s.name),void 0!==s.mapping&&(o.mapping=n(s.mapping,TEXTURE_MAPPING)),void 0!==s.offset&&o.offset.fromArray(s.offset),void 0!==s.repeat&&o.repeat.fromArray(s.repeat),void 0!==s.center&&o.center.fromArray(s.center),void 0!==s.rotation&&(o.rotation=s.rotation),void 0!==s.wrap&&(o.wrapS=n(s.wrap[0],TEXTURE_WRAPPING),o.wrapT=n(s.wrap[1],TEXTURE_WRAPPING)),void 0!==s.format&&(o.format=s.format),void 0!==s.type&&(o.type=s.type),void 0!==s.encoding&&(o.encoding=s.encoding),void 0!==s.minFilter&&(o.minFilter=n(s.minFilter,TEXTURE_FILTER)),void 0!==s.magFilter&&(o.magFilter=n(s.magFilter,TEXTURE_FILTER)),void 0!==s.anisotropy&&(o.anisotropy=s.anisotropy),void 0!==s.flipY&&(o.flipY=s.flipY),void 0!==s.premultiplyAlpha&&(o.premultiplyAlpha=s.premultiplyAlpha),void 0!==s.unpackAlignment&&(o.unpackAlignment=s.unpackAlignment),r[s.uuid]=o}return r},parseObject:function(e,t,n){var r;function i(e){return void 0===t[e]&&console.warn("THREE.ObjectLoader: Undefined geometry",e),t[e]}function a(e){if(void 0!==e){if(Array.isArray(e)){for(var t=[],r=0,i=e.length;r<i;r++){var a=e[r];void 0===n[a]&&console.warn("THREE.ObjectLoader: Undefined material",a),t.push(n[a])}return t}return void 0===n[e]&&console.warn("THREE.ObjectLoader: Undefined material",e),n[e]}}switch(e.type){case"Scene":r=new Scene,void 0!==e.background&&Number.isInteger(e.background)&&(r.background=new Color(e.background)),void 0!==e.fog&&("Fog"===e.fog.type?r.fog=new Fog(e.fog.color,e.fog.near,e.fog.far):"FogExp2"===e.fog.type&&(r.fog=new FogExp2(e.fog.color,e.fog.density)));break;case"PerspectiveCamera":r=new PerspectiveCamera(e.fov,e.aspect,e.near,e.far),void 0!==e.focus&&(r.focus=e.focus),void 0!==e.zoom&&(r.zoom=e.zoom),void 0!==e.filmGauge&&(r.filmGauge=e.filmGauge),void 0!==e.filmOffset&&(r.filmOffset=e.filmOffset),void 0!==e.view&&(r.view=Object.assign({},e.view));break;case"OrthographicCamera":r=new OrthographicCamera(e.left,e.right,e.top,e.bottom,e.near,e.far),void 0!==e.zoom&&(r.zoom=e.zoom),void 0!==e.view&&(r.view=Object.assign({},e.view));break;case"AmbientLight":r=new AmbientLight(e.color,e.intensity);break;case"DirectionalLight":r=new DirectionalLight(e.color,e.intensity);break;case"PointLight":r=new PointLight(e.color,e.intensity,e.distance,e.decay);break;case"RectAreaLight":r=new RectAreaLight(e.color,e.intensity,e.width,e.height);break;case"SpotLight":r=new SpotLight(e.color,e.intensity,e.distance,e.angle,e.penumbra,e.decay);break;case"HemisphereLight":r=new HemisphereLight(e.color,e.groundColor,e.intensity);break;case"SkinnedMesh":console.warn("THREE.ObjectLoader.parseObject() does not support SkinnedMesh yet.");case"Mesh":var o=i(e.geometry),s=a(e.material);r=o.bones&&o.bones.length>0?new SkinnedMesh(o,s):new Mesh(o,s);break;case"InstancedMesh":o=i(e.geometry),s=a(e.material);var l=e.count,c=e.instanceMatrix;(r=new InstancedMesh(o,s,l)).instanceMatrix=new BufferAttribute(new Float32Array(c.array),16);break;case"LOD":r=new LOD;break;case"Line":r=new Line(i(e.geometry),a(e.material),e.mode);break;case"LineLoop":r=new LineLoop(i(e.geometry),a(e.material));break;case"LineSegments":r=new LineSegments(i(e.geometry),a(e.material));break;case"PointCloud":case"Points":r=new Points(i(e.geometry),a(e.material));break;case"Sprite":r=new Sprite(a(e.material));break;case"Group":r=new Group;break;default:r=new Object3D}if(r.uuid=e.uuid,void 0!==e.name&&(r.name=e.name),void 0!==e.matrix?(r.matrix.fromArray(e.matrix),void 0!==e.matrixAutoUpdate&&(r.matrixAutoUpdate=e.matrixAutoUpdate),r.matrixAutoUpdate&&r.matrix.decompose(r.position,r.quaternion,r.scale)):(void 0!==e.position&&r.position.fromArray(e.position),void 0!==e.rotation&&r.rotation.fromArray(e.rotation),void 0!==e.quaternion&&r.quaternion.fromArray(e.quaternion),void 0!==e.scale&&r.scale.fromArray(e.scale)),void 0!==e.castShadow&&(r.castShadow=e.castShadow),void 0!==e.receiveShadow&&(r.receiveShadow=e.receiveShadow),e.shadow&&(void 0!==e.shadow.bias&&(r.shadow.bias=e.shadow.bias),void 0!==e.shadow.radius&&(r.shadow.radius=e.shadow.radius),void 0!==e.shadow.mapSize&&r.shadow.mapSize.fromArray(e.shadow.mapSize),void 0!==e.shadow.camera&&(r.shadow.camera=this.parseObject(e.shadow.camera))),void 0!==e.visible&&(r.visible=e.visible),void 0!==e.frustumCulled&&(r.frustumCulled=e.frustumCulled),void 0!==e.renderOrder&&(r.renderOrder=e.renderOrder),void 0!==e.userData&&(r.userData=e.userData),void 0!==e.layers&&(r.layers.mask=e.layers),void 0!==e.children)for(var u=e.children,h=0;h<u.length;h++)r.add(this.parseObject(u[h],t,n));if("LOD"===e.type){void 0!==e.autoUpdate&&(r.autoUpdate=e.autoUpdate);for(var p=e.levels,d=0;d<p.length;d++){var f=p[d],m=r.getObjectByProperty("uuid",f.object);void 0!==m&&r.addLevel(m,f.distance)}}return r}});var TEXTURE_MAPPING={UVMapping:UVMapping,CubeReflectionMapping:CubeReflectionMapping,CubeRefractionMapping:CubeRefractionMapping,EquirectangularReflectionMapping:EquirectangularReflectionMapping,EquirectangularRefractionMapping:EquirectangularRefractionMapping,SphericalReflectionMapping:SphericalReflectionMapping,CubeUVReflectionMapping:CubeUVReflectionMapping,CubeUVRefractionMapping:CubeUVRefractionMapping},TEXTURE_WRAPPING={RepeatWrapping:RepeatWrapping,ClampToEdgeWrapping:ClampToEdgeWrapping,MirroredRepeatWrapping:MirroredRepeatWrapping},TEXTURE_FILTER={NearestFilter:NearestFilter,NearestMipmapNearestFilter:NearestMipmapNearestFilter,NearestMipmapLinearFilter:NearestMipmapLinearFilter,LinearFilter:LinearFilter,LinearMipmapNearestFilter:LinearMipmapNearestFilter,LinearMipmapLinearFilter:LinearMipmapLinearFilter},_context;function ImageBitmapLoader(e){"undefined"==typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),"undefined"==typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),Loader.call(this,e),this.options=void 0}function ShapePath(){this.type="ShapePath",this.color=new Color,this.subPaths=[],this.currentPath=null}function Font(e){this.type="Font",this.data=e}function createPaths(e,t,n){for(var r=Array.from?Array.from(e):String(e).split(""),i=t/n.resolution,a=(n.boundingBox.yMax-n.boundingBox.yMin+n.underlineThickness)*i,o=[],s=0,l=0,c=0;c<r.length;c++){var u=r[c];if("\n"===u)s=0,l-=a;else{var h=createPath(u,i,s,l,n);s+=h.offsetX,o.push(h.path)}}return o}function createPath(e,t,n,r,i){var a=i.glyphs[e]||i.glyphs["?"];if(a){var o,s,l,c,u,h,p,d,f=new ShapePath;if(a.o)for(var m=a._cachedOutline||(a._cachedOutline=a.o.split(" ")),g=0,v=m.length;g<v;){switch(m[g++]){case"m":o=m[g++]*t+n,s=m[g++]*t+r,f.moveTo(o,s);break;case"l":o=m[g++]*t+n,s=m[g++]*t+r,f.lineTo(o,s);break;case"q":l=m[g++]*t+n,c=m[g++]*t+r,u=m[g++]*t+n,h=m[g++]*t+r,f.quadraticCurveTo(u,h,l,c);break;case"b":l=m[g++]*t+n,c=m[g++]*t+r,u=m[g++]*t+n,h=m[g++]*t+r,p=m[g++]*t+n,d=m[g++]*t+r,f.bezierCurveTo(u,h,p,d,l,c)}}return{offsetX:a.ha*t,path:f}}console.error('THREE.Font: character "'+e+'" does not exists in font family '+i.familyName+".")}function FontLoader(e){Loader.call(this,e)}ImageBitmapLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:ImageBitmapLoader,setOptions:function(e){return this.options=e,this},load:function(e,t,n,r){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);var i=this,a=Cache.get(e);if(void 0!==a)return i.manager.itemStart(e),setTimeout((function(){t&&t(a),i.manager.itemEnd(e)}),0),a;fetch(e).then((function(e){return e.blob()})).then((function(e){return void 0===i.options?createImageBitmap(e):createImageBitmap(e,i.options)})).then((function(n){Cache.add(e,n),t&&t(n),i.manager.itemEnd(e)})).catch((function(t){r&&r(t),i.manager.itemError(e),i.manager.itemEnd(e)})),i.manager.itemStart(e)}}),Object.assign(ShapePath.prototype,{moveTo:function(e,t){return this.currentPath=new Path,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t),this},lineTo:function(e,t){return this.currentPath.lineTo(e,t),this},quadraticCurveTo:function(e,t,n,r){return this.currentPath.quadraticCurveTo(e,t,n,r),this},bezierCurveTo:function(e,t,n,r,i,a){return this.currentPath.bezierCurveTo(e,t,n,r,i,a),this},splineThru:function(e){return this.currentPath.splineThru(e),this},toShapes:function(e,t){function n(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n],a=new Shape;a.curves=i.curves,t.push(a)}return t}function r(e,t){for(var n=t.length,r=!1,i=n-1,a=0;a<n;i=a++){var o=t[i],s=t[a],l=s.x-o.x,c=s.y-o.y;if(Math.abs(c)>Number.EPSILON){if(c<0&&(o=t[a],l=-l,s=t[i],c=-c),e.y<o.y||e.y>s.y)continue;if(e.y===o.y){if(e.x===o.x)return!0}else{var u=c*(e.x-o.x)-l*(e.y-o.y);if(0===u)return!0;if(u<0)continue;r=!r}}else{if(e.y!==o.y)continue;if(s.x<=e.x&&e.x<=o.x||o.x<=e.x&&e.x<=s.x)return!0}}return r}var i=ShapeUtils.isClockWise,a=this.subPaths;if(0===a.length)return[];if(!0===t)return n(a);var o,s,l,c=[];if(1===a.length)return s=a[0],(l=new Shape).curves=s.curves,c.push(l),c;var u=!i(a[0].getPoints());u=e?!u:u;var h,p,d=[],f=[],m=[],g=0;f[g]=void 0,m[g]=[];for(var v=0,y=a.length;v<y;v++)o=i(h=(s=a[v]).getPoints()),(o=e?!o:o)?(!u&&f[g]&&g++,f[g]={s:new Shape,p:h},f[g].s.curves=s.curves,u&&g++,m[g]=[]):m[g].push({h:s,p:h[0]});if(!f[0])return n(a);if(f.length>1){for(var x=!1,_=[],b=0,w=f.length;b<w;b++)d[b]=[];for(b=0,w=f.length;b<w;b++)for(var M=m[b],S=0;S<M.length;S++){for(var T=M[S],E=!0,C=0;C<f.length;C++)r(T.p,f[C].p)&&(b!==C&&_.push({froms:b,tos:C,hole:S}),E?(E=!1,d[C].push(T)):x=!0);E&&d[b].push(T)}_.length>0&&(x||(m=d))}v=0;for(var A=f.length;v<A;v++){l=f[v].s,c.push(l);for(var L=0,D=(p=m[v]).length;L<D;L++)l.holes.push(p[L].h)}return c}}),Object.assign(Font.prototype,{isFont:!0,generateShapes:function(e,t){void 0===t&&(t=100);for(var n=[],r=createPaths(e,t,this.data),i=0,a=r.length;i<a;i++)Array.prototype.push.apply(n,r[i].toShapes());return n}}),FontLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:FontLoader,load:function(e,t,n,r){var i=this,a=new FileLoader(this.manager);a.setPath(this.path),a.load(e,(function(e){var n;try{n=JSON.parse(e)}catch(t){console.warn("THREE.FontLoader: typeface.js support is being deprecated. Use typeface.json instead."),n=JSON.parse(e.substring(65,e.length-2))}var r=i.parse(n);t&&t(r)}),n,r)},parse:function(e){return new Font(e)}});var AudioContext={getContext:function(){return void 0===_context&&(_context=new(window.AudioContext||window.webkitAudioContext)),_context},setContext:function(e){_context=e}};function AudioLoader(e){Loader.call(this,e)}function SphericalHarmonics3(){this.coefficients=[];for(var e=0;e<9;e++)this.coefficients.push(new Vector3)}function LightProbe(e,t){Light.call(this,void 0,t),this.sh=void 0!==e?e:new SphericalHarmonics3}function HemisphereLightProbe(e,t,n){LightProbe.call(this,void 0,n);var r=(new Color).set(e),i=(new Color).set(t),a=new Vector3(r.r,r.g,r.b),o=new Vector3(i.r,i.g,i.b),s=Math.sqrt(Math.PI),l=s*Math.sqrt(.75);this.sh.coefficients[0].copy(a).add(o).multiplyScalar(s),this.sh.coefficients[1].copy(a).sub(o).multiplyScalar(l)}function AmbientLightProbe(e,t){LightProbe.call(this,void 0,t);var n=(new Color).set(e);this.sh.coefficients[0].set(n.r,n.g,n.b).multiplyScalar(2*Math.sqrt(Math.PI))}AudioLoader.prototype=Object.assign(Object.create(Loader.prototype),{constructor:AudioLoader,load:function(e,t,n,r){var i=new FileLoader(this.manager);i.setResponseType("arraybuffer"),i.setPath(this.path),i.load(e,(function(e){var n=e.slice(0);AudioContext.getContext().decodeAudioData(n,(function(e){t(e)}))}),n,r)}}),Object.assign(SphericalHarmonics3.prototype,{isSphericalHarmonics3:!0,set:function(e){for(var t=0;t<9;t++)this.coefficients[t].copy(e[t]);return this},zero:function(){for(var e=0;e<9;e++)this.coefficients[e].set(0,0,0);return this},getAt:function(e,t){var n=e.x,r=e.y,i=e.z,a=this.coefficients;return t.copy(a[0]).multiplyScalar(.282095),t.addScale(a[1],.488603*r),t.addScale(a[2],.488603*i),t.addScale(a[3],.488603*n),t.addScale(a[4],n*r*1.092548),t.addScale(a[5],r*i*1.092548),t.addScale(a[6],.315392*(3*i*i-1)),t.addScale(a[7],n*i*1.092548),t.addScale(a[8],.546274*(n*n-r*r)),t},getIrradianceAt:function(e,t){var n=e.x,r=e.y,i=e.z,a=this.coefficients;return t.copy(a[0]).multiplyScalar(.886227),t.addScale(a[1],1.023328*r),t.addScale(a[2],1.023328*i),t.addScale(a[3],1.023328*n),t.addScale(a[4],.858086*n*r),t.addScale(a[5],.858086*r*i),t.addScale(a[6],.743125*i*i-.247708),t.addScale(a[7],.858086*n*i),t.addScale(a[8],.429043*(n*n-r*r)),t},add:function(e){for(var t=0;t<9;t++)this.coefficients[t].add(e.coefficients[t]);return this},scale:function(e){for(var t=0;t<9;t++)this.coefficients[t].multiplyScalar(e);return this},lerp:function(e,t){for(var n=0;n<9;n++)this.coefficients[n].lerp(e.coefficients[n],t);return this},equals:function(e){for(var t=0;t<9;t++)if(!this.coefficients[t].equals(e.coefficients[t]))return!1;return!0},copy:function(e){return this.set(e.coefficients)},clone:function(){return(new this.constructor).copy(this)},fromArray:function(e,t){void 0===t&&(t=0);for(var n=this.coefficients,r=0;r<9;r++)n[r].fromArray(e,t+3*r);return this},toArray:function(e,t){void 0===e&&(e=[]),void 0===t&&(t=0);for(var n=this.coefficients,r=0;r<9;r++)n[r].toArray(e,t+3*r);return e}}),Object.assign(SphericalHarmonics3,{getBasisAt:function(e,t){var n=e.x,r=e.y,i=e.z;t[0]=.282095,t[1]=.488603*r,t[2]=.488603*i,t[3]=.488603*n,t[4]=1.092548*n*r,t[5]=1.092548*r*i,t[6]=.315392*(3*i*i-1),t[7]=1.092548*n*i,t[8]=.546274*(n*n-r*r)}}),LightProbe.prototype=Object.assign(Object.create(Light.prototype),{constructor:LightProbe,isLightProbe:!0,copy:function(e){return Light.prototype.copy.call(this,e),this.sh.copy(e.sh),this.intensity=e.intensity,this},toJSON:function(e){return Light.prototype.toJSON.call(this,e)}}),HemisphereLightProbe.prototype=Object.assign(Object.create(LightProbe.prototype),{constructor:HemisphereLightProbe,isHemisphereLightProbe:!0,copy:function(e){return LightProbe.prototype.copy.call(this,e),this},toJSON:function(e){return LightProbe.prototype.toJSON.call(this,e)}}),AmbientLightProbe.prototype=Object.assign(Object.create(LightProbe.prototype),{constructor:AmbientLightProbe,isAmbientLightProbe:!0,copy:function(e){return LightProbe.prototype.copy.call(this,e),this},toJSON:function(e){return LightProbe.prototype.toJSON.call(this,e)}});var _eyeRight=new Matrix4,_eyeLeft=new Matrix4;function StereoCamera(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new PerspectiveCamera,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new PerspectiveCamera,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}function Clock(e){this.autoStart=void 0===e||e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}Object.assign(StereoCamera.prototype,{update:function(e){var t=this._cache;if(t.focus!==e.focus||t.fov!==e.fov||t.aspect!==e.aspect*this.aspect||t.near!==e.near||t.far!==e.far||t.zoom!==e.zoom||t.eyeSep!==this.eyeSep){t.focus=e.focus,t.fov=e.fov,t.aspect=e.aspect*this.aspect,t.near=e.near,t.far=e.far,t.zoom=e.zoom,t.eyeSep=this.eyeSep;var n,r,i=e.projectionMatrix.clone(),a=t.eyeSep/2,o=a*t.near/t.focus,s=t.near*Math.tan(MathUtils.DEG2RAD*t.fov*.5)/t.zoom;_eyeLeft.elements[12]=-a,_eyeRight.elements[12]=a,n=-s*t.aspect+o,r=s*t.aspect+o,i.elements[0]=2*t.near/(r-n),i.elements[8]=(r+n)/(r-n),this.cameraL.projectionMatrix.copy(i),n=-s*t.aspect-o,r=s*t.aspect-o,i.elements[0]=2*t.near/(r-n),i.elements[8]=(r+n)/(r-n),this.cameraR.projectionMatrix.copy(i)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(_eyeLeft),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(_eyeRight)}}),Object.assign(Clock.prototype,{start:function(){this.startTime=("undefined"==typeof performance?Date:performance).now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0},stop:function(){this.getElapsedTime(),this.running=!1,this.autoStart=!1},getElapsedTime:function(){return this.getDelta(),this.elapsedTime},getDelta:function(){var e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var t=("undefined"==typeof performance?Date:performance).now();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}});var _position$2=new Vector3,_quaternion$3=new Quaternion,_scale$1=new Vector3,_orientation=new Vector3;function AudioListener(){Object3D.call(this),this.type="AudioListener",this.context=AudioContext.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new Clock}function Audio(e){Object3D.call(this),this.type="Audio",this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.sourceType="empty",this._startedAt=0,this._pausedAt=0,this.filters=[]}AudioListener.prototype=Object.assign(Object.create(Object3D.prototype),{constructor:AudioListener,getInput:function(){return this.gain},removeFilter:function(){return null!==this.filter&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this},getFilter:function(){return this.filter},setFilter:function(e){return null!==this.filter?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=e,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this},getMasterVolume:function(){return this.gain.gain.value},setMasterVolume:function(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this},updateMatrixWorld:function(e){Object3D.prototype.updateMatrixWorld.call(this,e);var t=this.context.listener,n=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(_position$2,_quaternion$3,_scale$1),_orientation.set(0,0,-1).applyQuaternion(_quaternion$3),t.positionX){var r=this.context.currentTime+this.timeDelta;t.positionX.linearRampToValueAtTime(_position$2.x,r),t.positionY.linearRampToValueAtTime(_position$2.y,r),t.positionZ.linearRampToValueAtTime(_position$2.z,r),t.forwardX.linearRampToValueAtTime(_orientation.x,r),t.forwardY.linearRampToValueAtTime(_orientation.y,r),t.forwardZ.linearRampToValueAtTime(_orientation.z,r),t.upX.linearRampToValueAtTime(n.x,r),t.upY.linearRampToValueAtTime(n.y,r),t.upZ.linearRampToValueAtTime(n.z,r)}else t.setPosition(_position$2.x,_position$2.y,_position$2.z),t.setOrientation(_orientation.x,_orientation.y,_orientation.z,n.x,n.y,n.z)}}),Audio.prototype=Object.assign(Object.create(Object3D.prototype),{constructor:Audio,getOutput:function(){return this.gain},setNodeSource:function(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this},setMediaElementSource:function(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this},setMediaStreamSource:function(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this},setBuffer:function(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this},play:function(e){if(void 0===e&&(e=0),!0!==this.isPlaying){if(!1!==this.hasPlaybackControl){this._startedAt=this.context.currentTime+e;var t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.loopStart=this.loopStart,t.loopEnd=this.loopEnd,t.onended=this.onEnded.bind(this),t.start(this._startedAt,this._pausedAt+this.offset,this.duration),this.isPlaying=!0,this.source=t,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}console.warn("THREE.Audio: this Audio has no playback control.")}else console.warn("THREE.Audio: Audio is already playing.")},pause:function(){if(!1!==this.hasPlaybackControl)return!0===this.isPlaying&&(this._pausedAt=(this.context.currentTime-this._startedAt)*this.playbackRate,this.source.stop(),this.source.onended=null,this.isPlaying=!1),this;console.warn("THREE.Audio: this Audio has no playback control.")},stop:function(){if(!1!==this.hasPlaybackControl)return this._pausedAt=0,this.source.stop(),this.source.onended=null,this.isPlaying=!1,this;console.warn("THREE.Audio: this Audio has no playback control.")},connect:function(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(var e=1,t=this.filters.length;e<t;e++)this.filters[e-1].connect(this.filters[e]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this},disconnect:function(){if(this.filters.length>0){this.source.disconnect(this.filters[0]);for(var e=1,t=this.filters.length;e<t;e++)this.filters[e-1].disconnect(this.filters[e]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this},getFilters:function(){return this.filters},setFilters:function(e){return e||(e=[]),!0===this.isPlaying?(this.disconnect(),this.filters=e,this.connect()):this.filters=e,this},setDetune:function(e){if(this.detune=e,void 0!==this.source.detune)return!0===this.isPlaying&&this.source.detune.setTargetAtTime(this.detune,this.context.currentTime,.01),this},getDetune:function(){return this.detune},getFilter:function(){return this.getFilters()[0]},setFilter:function(e){return this.setFilters(e?[e]:[])},setPlaybackRate:function(e){if(!1!==this.hasPlaybackControl)return this.playbackRate=e,!0===this.isPlaying&&this.source.playbackRate.setTargetAtTime(this.playbackRate,this.context.currentTime,.01),this;console.warn("THREE.Audio: this Audio has no playback control.")},getPlaybackRate:function(){return this.playbackRate},onEnded:function(){this.isPlaying=!1},getLoop:function(){return!1===this.hasPlaybackControl?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop},setLoop:function(e){if(!1!==this.hasPlaybackControl)return this.loop=e,!0===this.isPlaying&&(this.source.loop=this.loop),this;console.warn("THREE.Audio: this Audio has no playback control.")},setLoopStart:function(e){return this.loopStart=e,this},setLoopEnd:function(e){return this.loopEnd=e,this},getVolume:function(){return this.gain.gain.value},setVolume:function(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}});var _position$3=new Vector3,_quaternion$4=new Quaternion,_scale$2=new Vector3,_orientation$1=new Vector3;function PositionalAudio(e){Audio.call(this,e),this.panner=this.context.createPanner(),this.panner.panningModel="HRTF",this.panner.connect(this.gain)}function AudioAnalyser(e,t){this.analyser=e.context.createAnalyser(),this.analyser.fftSize=void 0!==t?t:2048,this.data=new Uint8Array(this.analyser.frequencyBinCount),e.getOutput().connect(this.analyser)}function PropertyMixer(e,t,n){this.binding=e,this.valueSize=n;var r,i=Float64Array;switch(t){case"quaternion":r=this._slerp;break;case"string":case"bool":i=Array,r=this._select;break;default:r=this._lerp}this.buffer=new i(4*n),this._mixBufferRegion=r,this.cumulativeWeight=0,this.useCount=0,this.referenceCount=0}PositionalAudio.prototype=Object.assign(Object.create(Audio.prototype),{constructor:PositionalAudio,getOutput:function(){return this.panner},getRefDistance:function(){return this.panner.refDistance},setRefDistance:function(e){return this.panner.refDistance=e,this},getRolloffFactor:function(){return this.panner.rolloffFactor},setRolloffFactor:function(e){return this.panner.rolloffFactor=e,this},getDistanceModel:function(){return this.panner.distanceModel},setDistanceModel:function(e){return this.panner.distanceModel=e,this},getMaxDistance:function(){return this.panner.maxDistance},setMaxDistance:function(e){return this.panner.maxDistance=e,this},setDirectionalCone:function(e,t,n){return this.panner.coneInnerAngle=e,this.panner.coneOuterAngle=t,this.panner.coneOuterGain=n,this},updateMatrixWorld:function(e){if(Object3D.prototype.updateMatrixWorld.call(this,e),!0!==this.hasPlaybackControl||!1!==this.isPlaying){this.matrixWorld.decompose(_position$3,_quaternion$4,_scale$2),_orientation$1.set(0,0,1).applyQuaternion(_quaternion$4);var t=this.panner;if(t.positionX){var n=this.context.currentTime+this.listener.timeDelta;t.positionX.linearRampToValueAtTime(_position$3.x,n),t.positionY.linearRampToValueAtTime(_position$3.y,n),t.positionZ.linearRampToValueAtTime(_position$3.z,n),t.orientationX.linearRampToValueAtTime(_orientation$1.x,n),t.orientationY.linearRampToValueAtTime(_orientation$1.y,n),t.orientationZ.linearRampToValueAtTime(_orientation$1.z,n)}else t.setPosition(_position$3.x,_position$3.y,_position$3.z),t.setOrientation(_orientation$1.x,_orientation$1.y,_orientation$1.z)}}}),Object.assign(AudioAnalyser.prototype,{getFrequencyData:function(){return this.analyser.getByteFrequencyData(this.data),this.data},getAverageFrequency:function(){for(var e=0,t=this.getFrequencyData(),n=0;n<t.length;n++)e+=t[n];return e/t.length}}),Object.assign(PropertyMixer.prototype,{accumulate:function(e,t){var n=this.buffer,r=this.valueSize,i=e*r+r,a=this.cumulativeWeight;if(0===a){for(var o=0;o!==r;++o)n[i+o]=n[o];a=t}else{var s=t/(a+=t);this._mixBufferRegion(n,i,0,s,r)}this.cumulativeWeight=a},apply:function(e){var t=this.valueSize,n=this.buffer,r=e*t+t,i=this.cumulativeWeight,a=this.binding;if(this.cumulativeWeight=0,i<1){var o=3*t;this._mixBufferRegion(n,r,o,1-i,t)}for(var s=t,l=t+t;s!==l;++s)if(n[s]!==n[s+t]){a.setValue(n,r);break}},saveOriginalState:function(){var e=this.binding,t=this.buffer,n=this.valueSize,r=3*n;e.getValue(t,r);for(var i=n,a=r;i!==a;++i)t[i]=t[r+i%n];this.cumulativeWeight=0},restoreOriginalState:function(){var e=3*this.valueSize;this.binding.setValue(this.buffer,e)},_select:function(e,t,n,r,i){if(r>=.5)for(var a=0;a!==i;++a)e[t+a]=e[n+a]},_slerp:function(e,t,n,r){Quaternion.slerpFlat(e,t,e,t,e,n,r)},_lerp:function(e,t,n,r,i){for(var a=1-r,o=0;o!==i;++o){var s=t+o;e[s]=e[s]*a+e[n+o]*r}}});var _RESERVED_CHARS_RE="\\[\\]\\.:\\/",_reservedRe=new RegExp("["+_RESERVED_CHARS_RE+"]","g"),_wordChar="[^"+_RESERVED_CHARS_RE+"]",_wordCharOrDot="[^"+_RESERVED_CHARS_RE.replace("\\.","")+"]",_directoryRe=/((?:WC+[\/:])*)/.source.replace("WC",_wordChar),_nodeRe=/(WCOD+)?/.source.replace("WCOD",_wordCharOrDot),_objectRe=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",_wordChar),_propertyRe=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",_wordChar),_trackRe=new RegExp("^"+_directoryRe+_nodeRe+_objectRe+_propertyRe+"$"),_supportedObjectNames=["material","materials","bones"];function Composite(e,t,n){var r=n||PropertyBinding.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}function PropertyBinding(e,t,n){this.path=t,this.parsedPath=n||PropertyBinding.parseTrackName(t),this.node=PropertyBinding.findNode(e,this.parsedPath.nodeName)||e,this.rootNode=e}function AnimationObjectGroup(){this.uuid=MathUtils.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;var e={};this._indicesByUUID=e;for(var t=0,n=arguments.length;t!==n;++t)e[arguments[t].uuid]=t;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};var r=this;this.stats={objects:{get total(){return r._objects.length},get inUse(){return this.total-r.nCachedObjects_}},get bindingsPerObject(){return r._bindings.length}}}function AnimationAction(e,t,n){this._mixer=e,this._clip=t,this._localRoot=n||null;for(var r=t.tracks,i=r.length,a=new Array(i),o={endingStart:ZeroCurvatureEnding,endingEnd:ZeroCurvatureEnding},s=0;s!==i;++s){var l=r[s].createInterpolant(null);a[s]=l,l.settings=o}this._interpolantSettings=o,this._interpolants=a,this._propertyBindings=new Array(i),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=LoopRepeat,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}function AnimationMixer(e){this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}function Uniform(e){"string"==typeof e&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),e=arguments[1]),this.value=e}function InstancedInterleavedBuffer(e,t,n){InterleavedBuffer.call(this,e,t),this.meshPerAttribute=n||1}function Raycaster(e,t,n,r){this.ray=new Ray(e,t),this.near=n||0,this.far=r||1/0,this.camera=null,this.params={Mesh:{},Line:{},LOD:{},Points:{threshold:1},Sprite:{}},Object.defineProperties(this.params,{PointCloud:{get:function(){return console.warn("THREE.Raycaster: params.PointCloud has been renamed to params.Points."),this.Points}}})}function ascSort(e,t){return e.distance-t.distance}function intersectObject(e,t,n,r){if(!1!==e.visible&&(e.raycast(t,n),!0===r))for(var i=e.children,a=0,o=i.length;a<o;a++)intersectObject(i[a],t,n,!0)}function Spherical(e,t,n){return this.radius=void 0!==e?e:1,this.phi=void 0!==t?t:0,this.theta=void 0!==n?n:0,this}function Cylindrical(e,t,n){return this.radius=void 0!==e?e:1,this.theta=void 0!==t?t:0,this.y=void 0!==n?n:0,this}Object.assign(Composite.prototype,{getValue:function(e,t){this.bind();var n=this._targetGroup.nCachedObjects_,r=this._bindings[n];void 0!==r&&r.getValue(e,t)},setValue:function(e,t){for(var n=this._bindings,r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)},bind:function(){for(var e=this._bindings,t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()},unbind:function(){for(var e=this._bindings,t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}}),Object.assign(PropertyBinding,{Composite:Composite,create:function(e,t,n){return e&&e.isAnimationObjectGroup?new PropertyBinding.Composite(e,t,n):new PropertyBinding(e,t,n)},sanitizeNodeName:function(e){return e.replace(/\s/g,"_").replace(_reservedRe,"")},parseTrackName:function(e){var t=_trackRe.exec(e);if(!t)throw new Error("PropertyBinding: Cannot parse trackName: "+e);var n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==r&&-1!==r){var i=n.nodeName.substring(r+1);-1!==_supportedObjectNames.indexOf(i)&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=i)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n},findNode:function(e,t){if(!t||""===t||"root"===t||"."===t||-1===t||t===e.name||t===e.uuid)return e;if(e.skeleton){var n=e.skeleton.getBoneByName(t);if(void 0!==n)return n}if(e.children){var r=function(e){for(var n=0;n<e.length;n++){var i=e[n];if(i.name===t||i.uuid===t)return i;var a=r(i.children);if(a)return a}return null},i=r(e.children);if(i)return i}return null}}),Object.assign(PropertyBinding.prototype,{_getValue_unavailable:function(){},_setValue_unavailable:function(){},BindingType:{Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},Versioning:{None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},GetterByBindingType:[function(e,t){e[t]=this.node[this.propertyName]},function(e,t){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)e[t++]=n[r]},function(e,t){e[t]=this.resolvedProperty[this.propertyIndex]},function(e,t){this.resolvedProperty.toArray(e,t)}],SetterByBindingTypeAndVersioning:[[function(e,t){this.targetObject[this.propertyName]=e[t]},function(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0},function(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(e,t){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)n[r]=e[t++]},function(e,t){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.needsUpdate=!0},function(e,t){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(e,t){this.resolvedProperty[this.propertyIndex]=e[t]},function(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0},function(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(e,t){this.resolvedProperty.fromArray(e,t)},function(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0},function(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}]],getValue:function(e,t){this.bind(),this.getValue(e,t)},setValue:function(e,t){this.bind(),this.setValue(e,t)},bind:function(){var e=this.node,t=this.parsedPath,n=t.objectName,r=t.propertyName,i=t.propertyIndex;if(e||(e=PropertyBinding.findNode(this.rootNode,t.nodeName)||this.rootNode,this.node=e),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,e){if(n){var a=t.objectIndex;switch(n){case"materials":if(!e.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!e.material.materials)return void console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);e=e.material.materials;break;case"bones":if(!e.skeleton)return void console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);e=e.skeleton.bones;for(var o=0;o<e.length;o++)if(e[o].name===a){a=o;break}break;default:if(void 0===e[n])return void console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);e=e[n]}if(void 0!==a){if(void 0===e[a])return void console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,e);e=e[a]}}var s=e[r];if(void 0!==s){var l=this.Versioning.None;this.targetObject=e,void 0!==e.needsUpdate?l=this.Versioning.NeedsUpdate:void 0!==e.matrixWorldNeedsUpdate&&(l=this.Versioning.MatrixWorldNeedsUpdate);var c=this.BindingType.Direct;if(void 0!==i){if("morphTargetInfluences"===r){if(!e.geometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);if(e.geometry.isBufferGeometry){if(!e.geometry.morphAttributes)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);for(o=0;o<this.node.geometry.morphAttributes.position.length;o++)if(e.geometry.morphAttributes.position[o].name===i){i=o;break}}else{if(!e.geometry.morphTargets)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphTargets.",this);for(o=0;o<this.node.geometry.morphTargets.length;o++)if(e.geometry.morphTargets[o].name===i){i=o;break}}}c=this.BindingType.ArrayElement,this.resolvedProperty=s,this.propertyIndex=i}else void 0!==s.fromArray&&void 0!==s.toArray?(c=this.BindingType.HasFromToArray,this.resolvedProperty=s):Array.isArray(s)?(c=this.BindingType.EntireArray,this.resolvedProperty=s):this.propertyName=r;this.getValue=this.GetterByBindingType[c],this.setValue=this.SetterByBindingTypeAndVersioning[c][l]}else{var u=t.nodeName;console.error("THREE.PropertyBinding: Trying to update property for track: "+u+"."+r+" but it wasn't found.",e)}}else console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.")},unbind:function(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}),
18
18
  //!\ DECLARE ALIAS AFTER assign prototype !
19
- Object.assign(PropertyBinding.prototype,{_getValue_unbound:PropertyBinding.prototype.getValue,_setValue_unbound:PropertyBinding.prototype.setValue}),Object.assign(AnimationObjectGroup.prototype,{isAnimationObjectGroup:!0,add:function(){for(var e=this._objects,t=e.length,n=this.nCachedObjects_,r=this._indicesByUUID,i=this._paths,a=this._parsedPaths,o=this._bindings,s=o.length,l=void 0,c=0,u=arguments.length;c!==u;++c){var h=arguments[c],p=h.uuid,d=r[p];if(void 0===d){d=t++,r[p]=d,e.push(h);for(var f=0,m=s;f!==m;++f)o[f].push(new PropertyBinding(h,i[f],a[f]))}else if(d<n){l=e[d];var g=--n,v=e[g];r[v.uuid]=d,e[d]=v,r[p]=g,e[g]=h;for(f=0,m=s;f!==m;++f){var y=o[f],x=y[g],_=y[d];y[d]=x,void 0===_&&(_=new PropertyBinding(h,i[f],a[f])),y[g]=_}}else e[d]!==l&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=n},remove:function(){for(var e=this._objects,t=this.nCachedObjects_,n=this._indicesByUUID,r=this._bindings,i=r.length,a=0,o=arguments.length;a!==o;++a){var s=arguments[a],l=s.uuid,c=n[l];if(void 0!==c&&c>=t){var u=t++,h=e[u];n[h.uuid]=c,e[c]=h,n[l]=u,e[u]=s;for(var p=0,d=i;p!==d;++p){var f=r[p],m=f[u],g=f[c];f[c]=m,f[u]=g}}}this.nCachedObjects_=t},uncache:function(){for(var e=this._objects,t=e.length,n=this.nCachedObjects_,r=this._indicesByUUID,i=this._bindings,a=i.length,o=0,s=arguments.length;o!==s;++o){var l=arguments[o],c=l.uuid,u=r[c];if(void 0!==u)if(delete r[c],u<n){var h=--n,p=e[h],d=e[y=--t];r[p.uuid]=u,e[u]=p,r[d.uuid]=h,e[h]=d,e.pop();for(var f=0,m=a;f!==m;++f){var g=(x=i[f])[h],v=x[y];x[u]=g,x[h]=v,x.pop()}}else{var y;r[(d=e[y=--t]).uuid]=u,e[u]=d,e.pop();for(f=0,m=a;f!==m;++f){var x;(x=i[f])[u]=x[y],x.pop()}}}this.nCachedObjects_=n},subscribe_:function(e,t){var n=this._bindingsIndicesByPath,r=n[e],i=this._bindings;if(void 0!==r)return i[r];var a=this._paths,o=this._parsedPaths,s=this._objects,l=s.length,c=this.nCachedObjects_,u=new Array(l);r=i.length,n[e]=r,a.push(e),o.push(t),i.push(u);for(var h=c,p=s.length;h!==p;++h){var d=s[h];u[h]=new PropertyBinding(d,e,t)}return u},unsubscribe_:function(e){var t=this._bindingsIndicesByPath,n=t[e];if(void 0!==n){var r=this._paths,i=this._parsedPaths,a=this._bindings,o=a.length-1,s=a[o];t[e[o]]=n,a[n]=s,a.pop(),i[n]=i[o],i.pop(),r[n]=r[o],r.pop()}}}),Object.assign(AnimationAction.prototype,{play:function(){return this._mixer._activateAction(this),this},stop:function(){return this._mixer._deactivateAction(this),this.reset()},reset:function(){return this.paused=!1,this.enabled=!0,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(e){return this._startTime=e,this},setLoop:function(e,t){return this.loop=e,this.repetitions=t,this},setEffectiveWeight:function(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()},getEffectiveWeight:function(){return this._effectiveWeight},fadeIn:function(e){return this._scheduleFading(e,0,1)},fadeOut:function(e){return this._scheduleFading(e,1,0)},crossFadeFrom:function(e,t,n){if(e.fadeOut(t),this.fadeIn(t),n){var r=this._clip.duration,i=e._clip.duration,a=i/r,o=r/i;e.warp(1,a,t),this.warp(o,1,t)}return this},crossFadeTo:function(e,t,n){return e.crossFadeFrom(this,t,n)},stopFading:function(){var e=this._weightInterpolant;return null!==e&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this},setEffectiveTimeScale:function(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()},getEffectiveTimeScale:function(){return this._effectiveTimeScale},setDuration:function(e){return this.timeScale=this._clip.duration/e,this.stopWarping()},syncWith:function(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()},halt:function(e){return this.warp(this._effectiveTimeScale,0,e)},warp:function(e,t,n){var r=this._mixer,i=r.time,a=this._timeScaleInterpolant,o=this.timeScale;null===a&&(a=r._lendControlInterpolant(),this._timeScaleInterpolant=a);var s=a.parameterPositions,l=a.sampleValues;return s[0]=i,s[1]=i+n,l[0]=e/o,l[1]=t/o,this},stopWarping:function(){var e=this._timeScaleInterpolant;return null!==e&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this},getMixer:function(){return this._mixer},getClip:function(){return this._clip},getRoot:function(){return this._localRoot||this._mixer._root},_update:function(e,t,n,r){if(this.enabled){var i=this._startTime;if(null!==i){var a=(e-i)*n;if(a<0||0===n)return;this._startTime=null,t=n*a}t*=this._updateTimeScale(e);var o=this._updateTime(t),s=this._updateWeight(e);if(s>0)for(var l=this._interpolants,c=this._propertyBindings,u=0,h=l.length;u!==h;++u)l[u].evaluate(o),c[u].accumulate(r,s)}else this._updateWeight(e)},_updateWeight:function(e){var t=0;if(this.enabled){t=this.weight;var n=this._weightInterpolant;if(null!==n){var r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopFading(),0===r&&(this.enabled=!1))}}return this._effectiveWeight=t,t},_updateTimeScale:function(e){var t=0;if(!this.paused){t=this.timeScale;var n=this._timeScaleInterpolant;if(null!==n)t*=n.evaluate(e)[0],e>n.parameterPositions[1]&&(this.stopWarping(),0===t?this.paused=!0:this.timeScale=t)}return this._effectiveTimeScale=t,t},_updateTime:function(e){var t=this.time+e,n=this._clip.duration,r=this.loop,i=this._loopCount,a=r===LoopPingPong;if(0===e)return-1===i?t:a&&1==(1&i)?n-t:t;if(r===LoopOnce){-1===i&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(t>=n)t=n;else{if(!(t<0)){this.time=t;break e}t=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=t,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(-1===i&&(e>=0?(i=0,this._setEndings(!0,0===this.repetitions,a)):this._setEndings(0===this.repetitions,!0,a)),t>=n||t<0){var o=Math.floor(t/n);t-=n*o,i+=Math.abs(o);var s=this.repetitions-i;if(s<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,t=e>0?n:0,this.time=t,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(1===s){var l=e<0;this._setEndings(l,!l,a)}else this._setEndings(!1,!1,a);this._loopCount=i,this.time=t,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:o})}}else this.time=t;if(a&&1==(1&i))return n-t}return t},_setEndings:function(e,t,n){var r=this._interpolantSettings;n?(r.endingStart=ZeroSlopeEnding,r.endingEnd=ZeroSlopeEnding):(r.endingStart=e?this.zeroSlopeAtStart?ZeroSlopeEnding:ZeroCurvatureEnding:WrapAroundEnding,r.endingEnd=t?this.zeroSlopeAtEnd?ZeroSlopeEnding:ZeroCurvatureEnding:WrapAroundEnding)},_scheduleFading:function(e,t,n){var r=this._mixer,i=r.time,a=this._weightInterpolant;null===a&&(a=r._lendControlInterpolant(),this._weightInterpolant=a);var o=a.parameterPositions,s=a.sampleValues;return o[0]=i,s[0]=t,o[1]=i+e,s[1]=n,this}}),AnimationMixer.prototype=Object.assign(Object.create(EventDispatcher.prototype),{constructor:AnimationMixer,_bindAction:function(e,t){var n=e._localRoot||this._root,r=e._clip.tracks,i=r.length,a=e._propertyBindings,o=e._interpolants,s=n.uuid,l=this._bindingsByRootAndName,c=l[s];void 0===c&&(c={},l[s]=c);for(var u=0;u!==i;++u){var h=r[u],p=h.name,d=c[p];if(void 0!==d)a[u]=d;else{if(void 0!==(d=a[u])){null===d._cacheIndex&&(++d.referenceCount,this._addInactiveBinding(d,s,p));continue}var f=t&&t._propertyBindings[u].binding.parsedPath;++(d=new PropertyMixer(PropertyBinding.create(n,p,f),h.ValueTypeName,h.getValueSize())).referenceCount,this._addInactiveBinding(d,s,p),a[u]=d}o[u].resultBuffer=d.buffer}},_activateAction:function(e){if(!this._isActiveAction(e)){if(null===e._cacheIndex){var t=(e._localRoot||this._root).uuid,n=e._clip.uuid,r=this._actionsByClip[n];this._bindAction(e,r&&r.knownActions[0]),this._addInactiveAction(e,n,t)}for(var i=e._propertyBindings,a=0,o=i.length;a!==o;++a){var s=i[a];0==s.useCount++&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(e)}},_deactivateAction:function(e){if(this._isActiveAction(e)){for(var t=e._propertyBindings,n=0,r=t.length;n!==r;++n){var i=t[n];0==--i.useCount&&(i.restoreOriginalState(),this._takeBackBinding(i))}this._takeBackAction(e)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}},_isActiveAction:function(e){var t=e._cacheIndex;return null!==t&&t<this._nActiveActions},_addInactiveAction:function(e,t,n){var r=this._actions,i=this._actionsByClip,a=i[t];if(void 0===a)a={knownActions:[e],actionByRoot:{}},e._byClipCacheIndex=0,i[t]=a;else{var o=a.knownActions;e._byClipCacheIndex=o.length,o.push(e)}e._cacheIndex=r.length,r.push(e),a.actionByRoot[n]=e},_removeInactiveAction:function(e){var t=this._actions,n=t[t.length-1],r=e._cacheIndex;n._cacheIndex=r,t[r]=n,t.pop(),e._cacheIndex=null;var i=e._clip.uuid,a=this._actionsByClip,o=a[i],s=o.knownActions,l=s[s.length-1],c=e._byClipCacheIndex;l._byClipCacheIndex=c,s[c]=l,s.pop(),e._byClipCacheIndex=null,delete o.actionByRoot[(e._localRoot||this._root).uuid],0===s.length&&delete a[i],this._removeInactiveBindingsForAction(e)},_removeInactiveBindingsForAction:function(e){for(var t=e._propertyBindings,n=0,r=t.length;n!==r;++n){var i=t[n];0==--i.referenceCount&&this._removeInactiveBinding(i)}},_lendAction:function(e){var t=this._actions,n=e._cacheIndex,r=this._nActiveActions++,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i},_takeBackAction:function(e){var t=this._actions,n=e._cacheIndex,r=--this._nActiveActions,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i},_addInactiveBinding:function(e,t,n){var r=this._bindingsByRootAndName,i=r[t],a=this._bindings;void 0===i&&(i={},r[t]=i),i[n]=e,e._cacheIndex=a.length,a.push(e)},_removeInactiveBinding:function(e){var t=this._bindings,n=e.binding,r=n.rootNode.uuid,i=n.path,a=this._bindingsByRootAndName,o=a[r],s=t[t.length-1],l=e._cacheIndex;s._cacheIndex=l,t[l]=s,t.pop(),delete o[i],0===Object.keys(o).length&&delete a[r]},_lendBinding:function(e){var t=this._bindings,n=e._cacheIndex,r=this._nActiveBindings++,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i},_takeBackBinding:function(e){var t=this._bindings,n=e._cacheIndex,r=--this._nActiveBindings,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i},_lendControlInterpolant:function(){var e=this._controlInterpolants,t=this._nActiveControlInterpolants++,n=e[t];return void 0===n&&((n=new LinearInterpolant(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer)).__cacheIndex=t,e[t]=n),n},_takeBackControlInterpolant:function(e){var t=this._controlInterpolants,n=e.__cacheIndex,r=--this._nActiveControlInterpolants,i=t[r];e.__cacheIndex=r,t[r]=e,i.__cacheIndex=n,t[n]=i},_controlInterpolantsResultBuffer:new Float32Array(1),clipAction:function(e,t){var n=t||this._root,r=n.uuid,i="string"==typeof e?AnimationClip.findByName(n,e):e,a=null!==i?i.uuid:e,o=this._actionsByClip[a],s=null;if(void 0!==o){var l=o.actionByRoot[r];if(void 0!==l)return l;s=o.knownActions[0],null===i&&(i=s._clip)}if(null===i)return null;var c=new AnimationAction(this,i,t);return this._bindAction(c,s),this._addInactiveAction(c,a,r),c},existingAction:function(e,t){var n=t||this._root,r=n.uuid,i="string"==typeof e?AnimationClip.findByName(n,e):e,a=i?i.uuid:e,o=this._actionsByClip[a];return void 0!==o&&o.actionByRoot[r]||null},stopAllAction:function(){var e=this._actions,t=this._nActiveActions,n=this._bindings,r=this._nActiveBindings;this._nActiveActions=0,this._nActiveBindings=0;for(var i=0;i!==t;++i)e[i].reset();for(i=0;i!==r;++i)n[i].useCount=0;return this},update:function(e){e*=this.timeScale;for(var t=this._actions,n=this._nActiveActions,r=this.time+=e,i=Math.sign(e),a=this._accuIndex^=1,o=0;o!==n;++o){t[o]._update(r,e,i,a)}var s=this._bindings,l=this._nActiveBindings;for(o=0;o!==l;++o)s[o].apply(a);return this},setTime:function(e){this.time=0;for(var t=0;t<this._actions.length;t++)this._actions[t].time=0;return this.update(e)},getRoot:function(){return this._root},uncacheClip:function(e){var t=this._actions,n=e.uuid,r=this._actionsByClip,i=r[n];if(void 0!==i){for(var a=i.knownActions,o=0,s=a.length;o!==s;++o){var l=a[o];this._deactivateAction(l);var c=l._cacheIndex,u=t[t.length-1];l._cacheIndex=null,l._byClipCacheIndex=null,u._cacheIndex=c,t[c]=u,t.pop(),this._removeInactiveBindingsForAction(l)}delete r[n]}},uncacheRoot:function(e){var t=e.uuid,n=this._actionsByClip;for(var r in n){var i=n[r].actionByRoot[t];void 0!==i&&(this._deactivateAction(i),this._removeInactiveAction(i))}var a=this._bindingsByRootAndName[t];if(void 0!==a)for(var o in a){var s=a[o];s.restoreOriginalState(),this._removeInactiveBinding(s)}},uncacheAction:function(e,t){var n=this.existingAction(e,t);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}}),Uniform.prototype.clone=function(){return new Uniform(void 0===this.value.clone?this.value:this.value.clone())},InstancedInterleavedBuffer.prototype=Object.assign(Object.create(InterleavedBuffer.prototype),{constructor:InstancedInterleavedBuffer,isInstancedInterleavedBuffer:!0,copy:function(e){return InterleavedBuffer.prototype.copy.call(this,e),this.meshPerAttribute=e.meshPerAttribute,this}}),Object.assign(Raycaster.prototype,{linePrecision:1,set:function(e,t){this.ray.set(e,t)},setFromCamera:function(e,t){t&&t.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(t.matrixWorld),this.ray.direction.set(e.x,e.y,.5).unproject(t).sub(this.ray.origin).normalize(),this.camera=t):t&&t.isOrthographicCamera?(this.ray.origin.set(e.x,e.y,(t.near+t.far)/(t.near-t.far)).unproject(t),this.ray.direction.set(0,0,-1).transformDirection(t.matrixWorld),this.camera=t):console.error("THREE.Raycaster: Unsupported camera type.")},intersectObject:function(e,t,n){var r=n||[];return intersectObject(e,this,r,t),r.sort(ascSort),r},intersectObjects:function(e,t,n){var r=n||[];if(!1===Array.isArray(e))return console.warn("THREE.Raycaster.intersectObjects: objects is not an Array."),r;for(var i=0,a=e.length;i<a;i++)intersectObject(e[i],this,r,t);return r.sort(ascSort),r}}),Object.assign(Spherical.prototype,{set:function(e,t,n){return this.radius=e,this.phi=t,this.theta=n,this},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.radius=e.radius,this.phi=e.phi,this.theta=e.theta,this},makeSafe:function(){var e=1e-6;return this.phi=Math.max(e,Math.min(Math.PI-e,this.phi)),this},setFromVector3:function(e){return this.setFromCartesianCoords(e.x,e.y,e.z)},setFromCartesianCoords:function(e,t,n){return this.radius=Math.sqrt(e*e+t*t+n*n),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(e,n),this.phi=Math.acos(MathUtils.clamp(t/this.radius,-1,1))),this}}),Object.assign(Cylindrical.prototype,{set:function(e,t,n){return this.radius=e,this.theta=t,this.y=n,this},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.radius=e.radius,this.theta=e.theta,this.y=e.y,this},setFromVector3:function(e){return this.setFromCartesianCoords(e.x,e.y,e.z)},setFromCartesianCoords:function(e,t,n){return this.radius=Math.sqrt(e*e+n*n),this.theta=Math.atan2(e,n),this.y=t,this}});var _vector$7=new Vector2;function Box2(e,t){this.min=void 0!==e?e:new Vector2(1/0,1/0),this.max=void 0!==t?t:new Vector2(-1/0,-1/0)}Object.assign(Box2.prototype,{set:function(e,t){return this.min.copy(e),this.max.copy(t),this},setFromPoints:function(e){this.makeEmpty();for(var t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this},setFromCenterAndSize:function(e,t){var n=_vector$7.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.min.copy(e.min),this.max.copy(e.max),this},makeEmpty:function(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y},getCenter:function(e){return void 0===e&&(console.warn("THREE.Box2: .getCenter() target is now required"),e=new Vector2),this.isEmpty()?e.set(0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(e){return void 0===e&&(console.warn("THREE.Box2: .getSize() target is now required"),e=new Vector2),this.isEmpty()?e.set(0,0):e.subVectors(this.max,this.min)},expandByPoint:function(e){return this.min.min(e),this.max.max(e),this},expandByVector:function(e){return this.min.sub(e),this.max.add(e),this},expandByScalar:function(e){return this.min.addScalar(-e),this.max.addScalar(e),this},containsPoint:function(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y)},containsBox:function(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y},getParameter:function(e,t){return void 0===t&&(console.warn("THREE.Box2: .getParameter() target is now required"),t=new Vector2),t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y)},clampPoint:function(e,t){return void 0===t&&(console.warn("THREE.Box2: .clampPoint() target is now required"),t=new Vector2),t.copy(e).clamp(this.min,this.max)},distanceToPoint:function(e){return _vector$7.copy(e).clamp(this.min,this.max).sub(e).length()},intersect:function(e){return this.min.max(e.min),this.max.min(e.max),this},union:function(e){return this.min.min(e.min),this.max.max(e.max),this},translate:function(e){return this.min.add(e),this.max.add(e),this},equals:function(e){return e.min.equals(this.min)&&e.max.equals(this.max)}});var _startP=new Vector3,_startEnd=new Vector3;function Line3(e,t){this.start=void 0!==e?e:new Vector3,this.end=void 0!==t?t:new Vector3}function ImmediateRenderObject(e){Object3D.call(this),this.material=e,this.render=function(){}}Object.assign(Line3.prototype,{set:function(e,t){return this.start.copy(e),this.end.copy(t),this},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.start.copy(e.start),this.end.copy(e.end),this},getCenter:function(e){return void 0===e&&(console.warn("THREE.Line3: .getCenter() target is now required"),e=new Vector3),e.addVectors(this.start,this.end).multiplyScalar(.5)},delta:function(e){return void 0===e&&(console.warn("THREE.Line3: .delta() target is now required"),e=new Vector3),e.subVectors(this.end,this.start)},distanceSq:function(){return this.start.distanceToSquared(this.end)},distance:function(){return this.start.distanceTo(this.end)},at:function(e,t){return void 0===t&&(console.warn("THREE.Line3: .at() target is now required"),t=new Vector3),this.delta(t).multiplyScalar(e).add(this.start)},closestPointToPointParameter:function(e,t){_startP.subVectors(e,this.start),_startEnd.subVectors(this.end,this.start);var n=_startEnd.dot(_startEnd),r=_startEnd.dot(_startP)/n;return t&&(r=MathUtils.clamp(r,0,1)),r},closestPointToPoint:function(e,t,n){var r=this.closestPointToPointParameter(e,t);return void 0===n&&(console.warn("THREE.Line3: .closestPointToPoint() target is now required"),n=new Vector3),this.delta(n).multiplyScalar(r).add(this.start)},applyMatrix4:function(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this},equals:function(e){return e.start.equals(this.start)&&e.end.equals(this.end)}}),ImmediateRenderObject.prototype=Object.create(Object3D.prototype),ImmediateRenderObject.prototype.constructor=ImmediateRenderObject,ImmediateRenderObject.prototype.isImmediateRenderObject=!0;var _vector$8=new Vector3;function SpotLightHelper(e,t){Object3D.call(this),this.light=e,this.light.updateMatrixWorld(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=t;for(var n=new BufferGeometry,r=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1],i=0,a=1;i<32;i++,a++){var o=i/32*Math.PI*2,s=a/32*Math.PI*2;r.push(Math.cos(o),Math.sin(o),1,Math.cos(s),Math.sin(s),1)}n.setAttribute("position",new Float32BufferAttribute(r,3));var l=new LineBasicMaterial({fog:!1});this.cone=new LineSegments(n,l),this.add(this.cone),this.update()}SpotLightHelper.prototype=Object.create(Object3D.prototype),SpotLightHelper.prototype.constructor=SpotLightHelper,SpotLightHelper.prototype.dispose=function(){this.cone.geometry.dispose(),this.cone.material.dispose()},SpotLightHelper.prototype.update=function(){this.light.updateMatrixWorld();var e=this.light.distance?this.light.distance:1e3,t=e*Math.tan(this.light.angle);this.cone.scale.set(t,t,e),_vector$8.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(_vector$8),void 0!==this.color?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)};var _vector$9=new Vector3,_boneMatrix=new Matrix4,_matrixWorldInv=new Matrix4;function getBoneList(e){var t=[];e&&e.isBone&&t.push(e);for(var n=0;n<e.children.length;n++)t.push.apply(t,getBoneList(e.children[n]));return t}function SkeletonHelper(e){for(var t=getBoneList(e),n=new BufferGeometry,r=[],i=[],a=new Color(0,0,1),o=new Color(0,1,0),s=0;s<t.length;s++){var l=t[s];l.parent&&l.parent.isBone&&(r.push(0,0,0),r.push(0,0,0),i.push(a.r,a.g,a.b),i.push(o.r,o.g,o.b))}n.setAttribute("position",new Float32BufferAttribute(r,3)),n.setAttribute("color",new Float32BufferAttribute(i,3));var c=new LineBasicMaterial({vertexColors:VertexColors,depthTest:!1,depthWrite:!1,transparent:!0});LineSegments.call(this,n,c),this.root=e,this.bones=t,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1}function PointLightHelper(e,t,n){this.light=e,this.light.updateMatrixWorld(),this.color=n;var r=new SphereBufferGeometry(t,4,2),i=new MeshBasicMaterial({wireframe:!0,fog:!1});Mesh.call(this,r,i),this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1,this.update()}SkeletonHelper.prototype=Object.create(LineSegments.prototype),SkeletonHelper.prototype.constructor=SkeletonHelper,SkeletonHelper.prototype.updateMatrixWorld=function(e){var t=this.bones,n=this.geometry,r=n.getAttribute("position");_matrixWorldInv.getInverse(this.root.matrixWorld);for(var i=0,a=0;i<t.length;i++){var o=t[i];o.parent&&o.parent.isBone&&(_boneMatrix.multiplyMatrices(_matrixWorldInv,o.matrixWorld),_vector$9.setFromMatrixPosition(_boneMatrix),r.setXYZ(a,_vector$9.x,_vector$9.y,_vector$9.z),_boneMatrix.multiplyMatrices(_matrixWorldInv,o.parent.matrixWorld),_vector$9.setFromMatrixPosition(_boneMatrix),r.setXYZ(a+1,_vector$9.x,_vector$9.y,_vector$9.z),a+=2)}n.getAttribute("position").needsUpdate=!0,Object3D.prototype.updateMatrixWorld.call(this,e)},PointLightHelper.prototype=Object.create(Mesh.prototype),PointLightHelper.prototype.constructor=PointLightHelper,PointLightHelper.prototype.dispose=function(){this.geometry.dispose(),this.material.dispose()},PointLightHelper.prototype.update=function(){void 0!==this.color?this.material.color.set(this.color):this.material.color.copy(this.light.color)};var _vector$a=new Vector3,_color1=new Color,_color2=new Color;function HemisphereLightHelper(e,t,n){Object3D.call(this),this.light=e,this.light.updateMatrixWorld(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=n;var r=new OctahedronBufferGeometry(t);r.rotateY(.5*Math.PI),this.material=new MeshBasicMaterial({wireframe:!0,fog:!1}),void 0===this.color&&(this.material.vertexColors=VertexColors);var i=r.getAttribute("position"),a=new Float32Array(3*i.count);r.setAttribute("color",new BufferAttribute(a,3)),this.add(new Mesh(r,this.material)),this.update()}function GridHelper(e,t,n,r){e=e||10,t=t||10,n=new Color(void 0!==n?n:4473924),r=new Color(void 0!==r?r:8947848);for(var i=t/2,a=e/t,o=e/2,s=[],l=[],c=0,u=0,h=-o;c<=t;c++,h+=a){s.push(-o,0,h,o,0,h),s.push(h,0,-o,h,0,o);var p=c===i?n:r;p.toArray(l,u),u+=3,p.toArray(l,u),u+=3,p.toArray(l,u),u+=3,p.toArray(l,u),u+=3}var d=new BufferGeometry;d.setAttribute("position",new Float32BufferAttribute(s,3)),d.setAttribute("color",new Float32BufferAttribute(l,3));var f=new LineBasicMaterial({vertexColors:VertexColors});LineSegments.call(this,d,f)}function PolarGridHelper(e,t,n,r,i,a){e=e||10,t=t||16,n=n||8,r=r||64,i=new Color(void 0!==i?i:4473924),a=new Color(void 0!==a?a:8947848);var o,s,l,c,u,h,p,d=[],f=[];for(c=0;c<=t;c++)l=c/t*(2*Math.PI),o=Math.sin(l)*e,s=Math.cos(l)*e,d.push(0,0,0),d.push(o,0,s),p=1&c?i:a,f.push(p.r,p.g,p.b),f.push(p.r,p.g,p.b);for(c=0;c<=n;c++)for(p=1&c?i:a,h=e-e/n*c,u=0;u<r;u++)l=u/r*(2*Math.PI),o=Math.sin(l)*h,s=Math.cos(l)*h,d.push(o,0,s),f.push(p.r,p.g,p.b),l=(u+1)/r*(2*Math.PI),o=Math.sin(l)*h,s=Math.cos(l)*h,d.push(o,0,s),f.push(p.r,p.g,p.b);var m=new BufferGeometry;m.setAttribute("position",new Float32BufferAttribute(d,3)),m.setAttribute("color",new Float32BufferAttribute(f,3));var g=new LineBasicMaterial({vertexColors:VertexColors});LineSegments.call(this,m,g)}HemisphereLightHelper.prototype=Object.create(Object3D.prototype),HemisphereLightHelper.prototype.constructor=HemisphereLightHelper,HemisphereLightHelper.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},HemisphereLightHelper.prototype.update=function(){var e=this.children[0];if(void 0!==this.color)this.material.color.set(this.color);else{var t=e.geometry.getAttribute("color");_color1.copy(this.light.color),_color2.copy(this.light.groundColor);for(var n=0,r=t.count;n<r;n++){var i=n<r/2?_color1:_color2;t.setXYZ(n,i.r,i.g,i.b)}t.needsUpdate=!0}e.lookAt(_vector$a.setFromMatrixPosition(this.light.matrixWorld).negate())},GridHelper.prototype=Object.assign(Object.create(LineSegments.prototype),{constructor:GridHelper,copy:function(e){return LineSegments.prototype.copy.call(this,e),this.geometry.copy(e.geometry),this.material.copy(e.material),this},clone:function(){return(new this.constructor).copy(this)}}),PolarGridHelper.prototype=Object.create(LineSegments.prototype),PolarGridHelper.prototype.constructor=PolarGridHelper;var _v1$5=new Vector3,_v2$3=new Vector3,_v3$1=new Vector3;function DirectionalLightHelper(e,t,n){Object3D.call(this),this.light=e,this.light.updateMatrixWorld(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=n,void 0===t&&(t=1);var r=new BufferGeometry;r.setAttribute("position",new Float32BufferAttribute([-t,t,0,t,t,0,t,-t,0,-t,-t,0,-t,t,0],3));var i=new LineBasicMaterial({fog:!1});this.lightPlane=new Line(r,i),this.add(this.lightPlane),(r=new BufferGeometry).setAttribute("position",new Float32BufferAttribute([0,0,0,0,0,1],3)),this.targetLine=new Line(r,i),this.add(this.targetLine),this.update()}DirectionalLightHelper.prototype=Object.create(Object3D.prototype),DirectionalLightHelper.prototype.constructor=DirectionalLightHelper,DirectionalLightHelper.prototype.dispose=function(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()},DirectionalLightHelper.prototype.update=function(){_v1$5.setFromMatrixPosition(this.light.matrixWorld),_v2$3.setFromMatrixPosition(this.light.target.matrixWorld),_v3$1.subVectors(_v2$3,_v1$5),this.lightPlane.lookAt(_v2$3),void 0!==this.color?(this.lightPlane.material.color.set(this.color),this.targetLine.material.color.set(this.color)):(this.lightPlane.material.color.copy(this.light.color),this.targetLine.material.color.copy(this.light.color)),this.targetLine.lookAt(_v2$3),this.targetLine.scale.z=_v3$1.length()};var _vector$b=new Vector3,_camera=new Camera;function CameraHelper(e){var t=new BufferGeometry,n=new LineBasicMaterial({color:16777215,vertexColors:FaceColors}),r=[],i=[],a={},o=new Color(16755200),s=new Color(16711680),l=new Color(43775),c=new Color(16777215),u=new Color(3355443);function h(e,t,n){p(e,n),p(t,n)}function p(e,t){r.push(0,0,0),i.push(t.r,t.g,t.b),void 0===a[e]&&(a[e]=[]),a[e].push(r.length/3-1)}h("n1","n2",o),h("n2","n4",o),h("n4","n3",o),h("n3","n1",o),h("f1","f2",o),h("f2","f4",o),h("f4","f3",o),h("f3","f1",o),h("n1","f1",o),h("n2","f2",o),h("n3","f3",o),h("n4","f4",o),h("p","n1",s),h("p","n2",s),h("p","n3",s),h("p","n4",s),h("u1","u2",l),h("u2","u3",l),h("u3","u1",l),h("c","t",c),h("p","c",u),h("cn1","cn2",u),h("cn3","cn4",u),h("cf1","cf2",u),h("cf3","cf4",u),t.setAttribute("position",new Float32BufferAttribute(r,3)),t.setAttribute("color",new Float32BufferAttribute(i,3)),LineSegments.call(this,t,n),this.camera=e,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=a,this.update()}function setPoint(e,t,n,r,i,a,o){_vector$b.set(i,a,o).unproject(r);var s=t[e];if(void 0!==s)for(var l=n.getAttribute("position"),c=0,u=s.length;c<u;c++)l.setXYZ(s[c],_vector$b.x,_vector$b.y,_vector$b.z)}CameraHelper.prototype=Object.create(LineSegments.prototype),CameraHelper.prototype.constructor=CameraHelper,CameraHelper.prototype.update=function(){var e=this.geometry,t=this.pointMap;_camera.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse),setPoint("c",t,e,_camera,0,0,-1),setPoint("t",t,e,_camera,0,0,1),setPoint("n1",t,e,_camera,-1,-1,-1),setPoint("n2",t,e,_camera,1,-1,-1),setPoint("n3",t,e,_camera,-1,1,-1),setPoint("n4",t,e,_camera,1,1,-1),setPoint("f1",t,e,_camera,-1,-1,1),setPoint("f2",t,e,_camera,1,-1,1),setPoint("f3",t,e,_camera,-1,1,1),setPoint("f4",t,e,_camera,1,1,1),setPoint("u1",t,e,_camera,.7,1.1,-1),setPoint("u2",t,e,_camera,-.7,1.1,-1),setPoint("u3",t,e,_camera,0,2,-1),setPoint("cf1",t,e,_camera,-1,0,1),setPoint("cf2",t,e,_camera,1,0,1),setPoint("cf3",t,e,_camera,0,-1,1),setPoint("cf4",t,e,_camera,0,1,1),setPoint("cn1",t,e,_camera,-1,0,-1),setPoint("cn2",t,e,_camera,1,0,-1),setPoint("cn3",t,e,_camera,0,-1,-1),setPoint("cn4",t,e,_camera,0,1,-1),e.getAttribute("position").needsUpdate=!0};var _box$3=new Box3;function BoxHelper(e,t){this.object=e,void 0===t&&(t=16776960);var n=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),r=new Float32Array(24),i=new BufferGeometry;i.setIndex(new BufferAttribute(n,1)),i.setAttribute("position",new BufferAttribute(r,3)),LineSegments.call(this,i,new LineBasicMaterial({color:t})),this.matrixAutoUpdate=!1,this.update()}function Box3Helper(e,t){this.type="Box3Helper",this.box=e,t=t||16776960;var n=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),r=new BufferGeometry;r.setIndex(new BufferAttribute(n,1)),r.setAttribute("position",new Float32BufferAttribute([1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],3)),LineSegments.call(this,r,new LineBasicMaterial({color:t})),this.geometry.computeBoundingSphere()}function PlaneHelper(e,t,n){this.type="PlaneHelper",this.plane=e,this.size=void 0===t?1:t;var r=void 0!==n?n:16776960,i=new BufferGeometry;i.setAttribute("position",new Float32BufferAttribute([1,-1,1,-1,1,1,-1,-1,1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,1,0,0,1,0,0,0],3)),i.computeBoundingSphere(),Line.call(this,i,new LineBasicMaterial({color:r}));var a=new BufferGeometry;a.setAttribute("position",new Float32BufferAttribute([1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],3)),a.computeBoundingSphere(),this.add(new Mesh(a,new MeshBasicMaterial({color:r,opacity:.2,transparent:!0,depthWrite:!1})))}BoxHelper.prototype=Object.create(LineSegments.prototype),BoxHelper.prototype.constructor=BoxHelper,BoxHelper.prototype.update=function(e){if(void 0!==e&&console.warn("THREE.BoxHelper: .update() has no longer arguments."),void 0!==this.object&&_box$3.setFromObject(this.object),!_box$3.isEmpty()){var t=_box$3.min,n=_box$3.max,r=this.geometry.attributes.position,i=r.array;i[0]=n.x,i[1]=n.y,i[2]=n.z,i[3]=t.x,i[4]=n.y,i[5]=n.z,i[6]=t.x,i[7]=t.y,i[8]=n.z,i[9]=n.x,i[10]=t.y,i[11]=n.z,i[12]=n.x,i[13]=n.y,i[14]=t.z,i[15]=t.x,i[16]=n.y,i[17]=t.z,i[18]=t.x,i[19]=t.y,i[20]=t.z,i[21]=n.x,i[22]=t.y,i[23]=t.z,r.needsUpdate=!0,this.geometry.computeBoundingSphere()}},BoxHelper.prototype.setFromObject=function(e){return this.object=e,this.update(),this},BoxHelper.prototype.copy=function(e){return LineSegments.prototype.copy.call(this,e),this.object=e.object,this},BoxHelper.prototype.clone=function(){return(new this.constructor).copy(this)},Box3Helper.prototype=Object.create(LineSegments.prototype),Box3Helper.prototype.constructor=Box3Helper,Box3Helper.prototype.updateMatrixWorld=function(e){var t=this.box;t.isEmpty()||(t.getCenter(this.position),t.getSize(this.scale),this.scale.multiplyScalar(.5),Object3D.prototype.updateMatrixWorld.call(this,e))},PlaneHelper.prototype=Object.create(Line.prototype),PlaneHelper.prototype.constructor=PlaneHelper,PlaneHelper.prototype.updateMatrixWorld=function(e){var t=-this.plane.constant;Math.abs(t)<1e-8&&(t=1e-8),this.scale.set(.5*this.size,.5*this.size,t),this.children[0].material.side=t<0?BackSide:FrontSide,this.lookAt(this.plane.normal),Object3D.prototype.updateMatrixWorld.call(this,e)};var _axis=new Vector3,_lineGeometry,_coneGeometry;function ArrowHelper(e,t,n,r,i,a){Object3D.call(this),void 0===e&&(e=new Vector3(0,0,1)),void 0===t&&(t=new Vector3(0,0,0)),void 0===n&&(n=1),void 0===r&&(r=16776960),void 0===i&&(i=.2*n),void 0===a&&(a=.2*i),void 0===_lineGeometry&&((_lineGeometry=new BufferGeometry).setAttribute("position",new Float32BufferAttribute([0,0,0,0,1,0],3)),(_coneGeometry=new CylinderBufferGeometry(0,.5,1,5,1)).translate(0,-.5,0)),this.position.copy(t),this.line=new Line(_lineGeometry,new LineBasicMaterial({color:r})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new Mesh(_coneGeometry,new MeshBasicMaterial({color:r})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(e),this.setLength(n,i,a)}function AxesHelper(e){var t=[0,0,0,e=e||1,0,0,0,0,0,0,e,0,0,0,0,0,0,e],n=new BufferGeometry;n.setAttribute("position",new Float32BufferAttribute(t,3)),n.setAttribute("color",new Float32BufferAttribute([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3));var r=new LineBasicMaterial({vertexColors:VertexColors});LineSegments.call(this,n,r)}ArrowHelper.prototype=Object.create(Object3D.prototype),ArrowHelper.prototype.constructor=ArrowHelper,ArrowHelper.prototype.setDirection=function(e){if(e.y>.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{_axis.set(e.z,0,-e.x).normalize();var t=Math.acos(e.y);this.quaternion.setFromAxisAngle(_axis,t)}},ArrowHelper.prototype.setLength=function(e,t,n){void 0===t&&(t=.2*e),void 0===n&&(n=.2*t),this.line.scale.set(1,Math.max(1e-4,e-t),1),this.line.updateMatrix(),this.cone.scale.set(n,t,n),this.cone.position.y=e,this.cone.updateMatrix()},ArrowHelper.prototype.setColor=function(e){this.line.material.color.set(e),this.cone.material.color.set(e)},ArrowHelper.prototype.copy=function(e){return Object3D.prototype.copy.call(this,e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this},ArrowHelper.prototype.clone=function(){return(new this.constructor).copy(this)},AxesHelper.prototype=Object.create(LineSegments.prototype),AxesHelper.prototype.constructor=AxesHelper;var LOD_MIN=4,LOD_MAX=8,EXTRA_LOD_SIGMA=[.125,.215,.35,.446,.526,.582],TOTAL_LODS=LOD_MAX-LOD_MIN+1+EXTRA_LOD_SIGMA.length,MAX_SAMPLES=20,ENCODINGS={[LinearEncoding]:0,[sRGBEncoding]:1,[RGBEEncoding]:2,[RGBM7Encoding]:3,[RGBM16Encoding]:4,[RGBDEncoding]:5,[GammaEncoding]:6},_flatCamera=new OrthographicCamera,_blurMaterial=_getBlurShader(MAX_SAMPLES),{_lodPlanes:_lodPlanes,_sizeLods:_sizeLods,_sigmas:_sigmas}=_createPlanes(),MxCloneType,MxCloneType2;function _createPlanes(){for(var e=[],t=[],n=[],r=LOD_MAX,i=0;i<TOTAL_LODS;i++){var a=Math.pow(2,r);t.push(a);var o=1/a;i>LOD_MAX-LOD_MIN?o=EXTRA_LOD_SIGMA[i-LOD_MAX+LOD_MIN-1]:0==i&&(o=0),n.push(o);for(var s=1/(a-1),l=-s/2,c=1+s/2,u=[l,l,c,l,c,c,l,l,c,c,l,c],h=new Float32Array(108),p=new Float32Array(72),d=new Float32Array(36),f=0;f<6;f++){var m=f%3*2/3-1,g=f>2?0:-1,v=[m,g,0,m+2/3,g,0,m+2/3,g+1,0,m,g,0,m+2/3,g+1,0,m,g+1,0];h.set(v,18*f),p.set(u,12*f);var y=[f,f,f,f,f,f];d.set(y,6*f)}var x=new BufferGeometry;x.setAttribute("position",new BufferAttribute(h,3)),x.setAttribute("uv",new BufferAttribute(p,2)),x.setAttribute("faceIndex",new BufferAttribute(d,1)),e.push(x),r>LOD_MIN&&r--}return{_lodPlanes:e,_sizeLods:t,_sigmas:n}}function _getBlurShader(e){var t=new RawShaderMaterial({defines:{n:e},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:new Float32Array(e)},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:new Vector3(0,1,0)},inputEncoding:{value:ENCODINGS[LinearEncoding]},outputEncoding:{value:ENCODINGS[LinearEncoding]}},vertexShader:_getCommonVertexShader(),fragmentShader:`\nprecision mediump float;\nprecision mediump int;\nvarying vec3 vOutputDirection;\nuniform sampler2D envMap;\nuniform int samples;\nuniform float weights[n];\nuniform bool latitudinal;\nuniform float dTheta;\nuniform float mipInt;\nuniform vec3 poleAxis;\n\n${_getEncodings()}\n\n#define ENVMAP_TYPE_CUBE_UV\n#include <cube_uv_reflection_fragment>\n\nvoid main() {\n\tgl_FragColor = vec4(0.0);\n\tfor (int i = 0; i < n; i++) {\n\t\tif (i >= samples)\n\t\t\tbreak;\n\t\tfor (int dir = -1; dir < 2; dir += 2) {\n\t\t\tif (i == 0 && dir == 1)\n\t\t\t\tcontinue;\n\t\t\tvec3 axis = latitudinal ? poleAxis : cross(poleAxis, vOutputDirection);\n\t\t\tif (all(equal(axis, vec3(0.0))))\n\t\t\t\taxis = cross(vec3(0.0, 1.0, 0.0), vOutputDirection);\n\t\t\taxis = normalize(axis);\n\t\t\tfloat theta = dTheta * float(dir * i);\n\t\t\tfloat cosTheta = cos(theta);\n\t\t\t// Rodrigues' axis-angle rotation\n\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross(axis, vOutputDirection) * sin(theta)\n\t\t\t\t\t+ axis * dot(axis, vOutputDirection) * (1.0 - cosTheta);\n\t\t\tgl_FragColor.rgb +=\n\t\t\t\t\tweights[i] * bilinearCubeUV(envMap, sampleDirection, mipInt);\n\t\t}\n\t}\n\tgl_FragColor = linearToOutputTexel(gl_FragColor);\n}\n\t\t`,blending:NoBlending,depthTest:!1,depthWrite:!1});return t.type="SphericalGaussianBlur",t}function _getCommonVertexShader(){return"\nprecision mediump float;\nprecision mediump int;\nattribute vec3 position;\nattribute vec2 uv;\nattribute float faceIndex;\nvarying vec3 vOutputDirection;\nvec3 getDirection(vec2 uv, float face) {\n\tuv = 2.0 * uv - 1.0;\n\tvec3 direction = vec3(uv, 1.0);\n\tif (face == 0.0) {\n\t\tdirection = direction.zyx;\n\t\tdirection.z *= -1.0;\n\t} else if (face == 1.0) {\n\t\tdirection = direction.xzy;\n\t\tdirection.z *= -1.0;\n\t} else if (face == 3.0) {\n\t\tdirection = direction.zyx;\n\t\tdirection.x *= -1.0;\n\t} else if (face == 4.0) {\n\t\tdirection = direction.xzy;\n\t\tdirection.y *= -1.0;\n\t} else if (face == 5.0) {\n\t\tdirection.xz *= -1.0;\n\t}\n\treturn direction;\n}\nvoid main() {\n\tvOutputDirection = getDirection(uv, faceIndex);\n\tgl_Position = vec4( position, 1.0 );\n}\n\t"}function _getEncodings(){return"\nuniform int inputEncoding;\nuniform int outputEncoding;\n\n#include <encodings_pars_fragment>\n\nvec4 inputTexelToLinear(vec4 value){\n\tif(inputEncoding == 0){\n\t\treturn value;\n\t}else if(inputEncoding == 1){\n\t\treturn sRGBToLinear(value);\n\t}else if(inputEncoding == 2){\n\t\treturn RGBEToLinear(value);\n\t}else if(inputEncoding == 3){\n\t\treturn RGBMToLinear(value, 7.0);\n\t}else if(inputEncoding == 4){\n\t\treturn RGBMToLinear(value, 16.0);\n\t}else if(inputEncoding == 5){\n\t\treturn RGBDToLinear(value, 256.0);\n\t}else{\n\t\treturn GammaToLinear(value, 2.2);\n\t}\n}\n\nvec4 linearToOutputTexel(vec4 value){\n\tif(outputEncoding == 0){\n\t\treturn value;\n\t}else if(outputEncoding == 1){\n\t\treturn LinearTosRGB(value);\n\t}else if(outputEncoding == 2){\n\t\treturn LinearToRGBE(value);\n\t}else if(outputEncoding == 3){\n\t\treturn LinearToRGBM(value, 7.0);\n\t}else if(outputEncoding == 4){\n\t\treturn LinearToRGBM(value, 16.0);\n\t}else if(outputEncoding == 5){\n\t\treturn LinearToRGBD(value, 256.0);\n\t}else{\n\t\treturn LinearToGamma(value, 2.2);\n\t}\n}\n\nvec4 envMapTexelToLinear(vec4 color) {\n\treturn inputTexelToLinear(color);\n}\n\t"}function Spline(e){console.warn("THREE.Spline has been removed. Use THREE.CatmullRomCurve3 instead."),CatmullRomCurve3.call(this,e),this.type="catmullrom"}Curve.create=function(e,t){return console.log("THREE.Curve.create() has been deprecated"),e.prototype=Object.create(Curve.prototype),e.prototype.constructor=e,e.prototype.getPoint=t,e},Object.assign(CurvePath.prototype,{createPointsGeometry:function(e){console.warn("THREE.CurvePath: .createPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");var t=this.getPoints(e);return this.createGeometry(t)},createSpacedPointsGeometry:function(e){console.warn("THREE.CurvePath: .createSpacedPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");var t=this.getSpacedPoints(e);return this.createGeometry(t)},createGeometry:function(e){console.warn("THREE.CurvePath: .createGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");for(var t=new Geometry,n=0,r=e.length;n<r;n++){var i=e[n];t.vertices.push(new Vector3(i.x,i.y,i.z||0))}return t}}),Object.assign(Path.prototype,{fromPoints:function(e){return console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(e)}}),Spline.prototype=Object.create(CatmullRomCurve3.prototype),Object.assign(Spline.prototype,{initFromArray:function(){console.error("THREE.Spline: .initFromArray() has been removed.")},getControlPointsArray:function(){console.error("THREE.Spline: .getControlPointsArray() has been removed.")},reparametrizeByArcLength:function(){console.error("THREE.Spline: .reparametrizeByArcLength() has been removed.")}}),GridHelper.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},SkeletonHelper.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},Object.assign(Loader.prototype,{extractUrlBase:function(e){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),LoaderUtils.extractUrlBase(e)}}),Loader.Handlers={add:function(){console.error("THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.")},get:function(){console.error("THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.")}},Object.assign(ObjectLoader.prototype,{setTexturePath:function(e){return console.warn("THREE.ObjectLoader: .setTexturePath() has been renamed to .setResourcePath()."),this.setResourcePath(e)}}),Object.assign(Box2.prototype,{center:function(e){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(e)},empty:function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(e){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},size:function(e){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(e)}}),Object.assign(Box3.prototype,{center:function(e){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(e)},empty:function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(e){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},isIntersectionSphere:function(e){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(e)},size:function(e){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(e)}}),Frustum.prototype.setFromMatrix=function(e){return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."),this.setFromProjectionMatrix(e)},Line3.prototype.center=function(e){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(e)},Object.assign(MathUtils,{random16:function(){return console.warn("THREE.Math: .random16() has been deprecated. Use Math.random() instead."),Math.random()},nearestPowerOfTwo:function(e){return console.warn("THREE.Math: .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo()."),MathUtils.floorPowerOfTwo(e)},nextPowerOfTwo:function(e){return console.warn("THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo()."),MathUtils.ceilPowerOfTwo(e)}}),Object.assign(Matrix3.prototype,{flattenToArrayOffset:function(e,t){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(e,t)},multiplyVector3:function(e){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),e.applyMatrix3(this)},multiplyVector3Array:function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},applyToBufferAttribute:function(e){return console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead."),e.applyMatrix3(this)},applyToVector3Array:function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")}}),Object.assign(Matrix4.prototype,{extractPosition:function(e){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(e)},flattenToArrayOffset:function(e,t){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(e,t)},getPosition:function(){return console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),(new Vector3).setFromMatrixColumn(this,3)},setRotationFromQuaternion:function(e){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(e)},multiplyToArray:function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},multiplyVector3:function(e){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},multiplyVector4:function(e){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},multiplyVector3Array:function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},rotateAxis:function(e){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),e.transformDirection(this)},crossVector:function(e){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},translate:function(){console.error("THREE.Matrix4: .translate() has been removed.")},rotateX:function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},rotateY:function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},rotateZ:function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},rotateByAxis:function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},applyToBufferAttribute:function(e){return console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},applyToVector3Array:function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},makeFrustum:function(e,t,n,r,i,a){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(e,t,r,n,i,a)}}),Plane.prototype.isIntersectionLine=function(e){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(e)},Quaternion.prototype.multiplyVector3=function(e){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),e.applyQuaternion(this)},Object.assign(Ray.prototype,{isIntersectionBox:function(e){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},isIntersectionPlane:function(e){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(e)},isIntersectionSphere:function(e){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(e)}}),Object.assign(Triangle.prototype,{area:function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},barycoordFromPoint:function(e,t){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(e,t)},midpoint:function(e){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(e)},normal:function(e){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(e)},plane:function(e){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(e)}}),Object.assign(Triangle,{barycoordFromPoint:function(e,t,n,r,i){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),Triangle.getBarycoord(e,t,n,r,i)},normal:function(e,t,n,r){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),Triangle.getNormal(e,t,n,r)}}),Object.assign(Shape.prototype,{extractAllPoints:function(e){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(e)},extrude:function(e){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new ExtrudeGeometry(this,e)},makeGeometry:function(e){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new ShapeGeometry(this,e)}}),Object.assign(Vector2.prototype,{fromAttribute:function(e,t,n){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},distanceToManhattan:function(e){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(e)},lengthManhattan:function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(Vector3.prototype,{setEulerFromRotationMatrix:function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},setEulerFromQuaternion:function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},getPositionFromMatrix:function(e){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(e)},getScaleFromMatrix:function(e){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(e)},getColumnFromMatrix:function(e,t){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(t,e)},applyProjection:function(e){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(e)},fromAttribute:function(e,t,n){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},distanceToManhattan:function(e){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(e)},lengthManhattan:function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(Vector4.prototype,{fromAttribute:function(e,t,n){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},lengthManhattan:function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(Geometry.prototype,{computeTangents:function(){console.error("THREE.Geometry: .computeTangents() has been removed.")},computeLineDistances:function(){console.error("THREE.Geometry: .computeLineDistances() has been removed. Use THREE.Line.computeLineDistances() instead.")},applyMatrix:function(e){return console.warn("THREE.Geometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(e)}}),Object.assign(Object3D.prototype,{getChildByName:function(e){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(e)},renderDepth:function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},translate:function(e,t){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(t,e)},getWorldRotation:function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")},applyMatrix:function(e){return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(e)}}),Object.defineProperties(Object3D.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(e){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=e}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),Object.assign(Mesh.prototype,{setDrawMode:function(){console.error("THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}),Object.defineProperties(Mesh.prototype,{drawMode:{get:function(){return console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode."),TrianglesDrawMode},set:function(){console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}}),Object.defineProperties(LOD.prototype,{objects:{get:function(){return console.warn("THREE.LOD: .objects has been renamed to .levels."),this.levels}}}),Object.defineProperty(Skeleton.prototype,"useVertexTexture",{get:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")},set:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")}}),SkinnedMesh.prototype.initBones=function(){console.error("THREE.SkinnedMesh: initBones() has been removed.")},Object.defineProperty(Curve.prototype,"__arcLengthDivisions",{get:function(){return console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions},set:function(e){console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions=e}}),PerspectiveCamera.prototype.setLens=function(e,t){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),void 0!==t&&(this.filmGauge=t),this.setFocalLength(e)},Object.defineProperties(Light.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(e){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=e}},shadowCameraLeft:{set:function(e){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=e}},shadowCameraRight:{set:function(e){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=e}},shadowCameraTop:{set:function(e){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=e}},shadowCameraBottom:{set:function(e){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=e}},shadowCameraNear:{set:function(e){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=e}},shadowCameraFar:{set:function(e){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=e}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(e){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=e}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(e){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=e}},shadowMapHeight:{set:function(e){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=e}}}),Object.defineProperties(BufferAttribute.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},dynamic:{get:function(){return console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.usage===DynamicDrawUsage},set:function(){console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.setUsage(DynamicDrawUsage)}}}),Object.assign(BufferAttribute.prototype,{setDynamic:function(e){return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===e?DynamicDrawUsage:StaticDrawUsage),this},copyIndicesArray:function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")},setArray:function(){console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")}}),Object.assign(BufferGeometry.prototype,{addIndex:function(e){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(e)},addAttribute:function(e,t){return console.warn("THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute()."),t&&t.isBufferAttribute||t&&t.isInterleavedBufferAttribute?"index"===e?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(t),this):this.setAttribute(e,t):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.setAttribute(e,new BufferAttribute(arguments[1],arguments[2])))},addDrawCall:function(e,t,n){void 0!==n&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(e,t)},clearDrawCalls:function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},computeTangents:function(){console.warn("THREE.BufferGeometry: .computeTangents() has been removed.")},computeOffsets:function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")},removeAttribute:function(e){return console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute()."),this.deleteAttribute(e)},applyMatrix:function(e){return console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(e)}}),Object.defineProperties(BufferGeometry.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),Object.defineProperties(InterleavedBuffer.prototype,{dynamic:{get:function(){return console.warn("THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead."),this.usage===DynamicDrawUsage},set:function(e){console.warn("THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead."),this.setUsage(e)}}}),Object.assign(InterleavedBuffer.prototype,{setDynamic:function(e){return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===e?DynamicDrawUsage:StaticDrawUsage),this},setArray:function(){console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")}}),Object.assign(ExtrudeBufferGeometry.prototype,{getArrays:function(){console.error("THREE.ExtrudeBufferGeometry: .getArrays() has been removed.")},addShapeList:function(){console.error("THREE.ExtrudeBufferGeometry: .addShapeList() has been removed.")},addShape:function(){console.error("THREE.ExtrudeBufferGeometry: .addShape() has been removed.")}}),Object.defineProperties(Uniform.prototype,{dynamic:{set:function(){console.warn("THREE.Uniform: .dynamic has been removed. Use object.onBeforeRender() instead.")}},onUpdate:{value:function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this}}}),Object.defineProperties(Material.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new Color}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(e){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=e===FlatShading}},stencilMask:{get:function(){return console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask},set:function(e){console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask=e}}}),Object.defineProperties(MeshPhongMaterial.prototype,{metal:{get:function(){return console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead."),!1},set:function(){console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead")}}}),Object.defineProperties(ShaderMaterial.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(e){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=e}}}),Object.assign(WebGLRenderer.prototype,{clearTarget:function(e,t,n,r){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(e),this.clear(t,n,r)},animate:function(e){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(e)},getCurrentRenderTarget:function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},getMaxAnisotropy:function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},getPrecision:function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},resetGLState:function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},supportsFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},supportsHalfFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},supportsStandardDerivatives:function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},supportsCompressedTextureS3TC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},supportsCompressedTexturePVRTC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},supportsBlendMinMax:function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},supportsVertexTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},supportsInstancedArrays:function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},enableScissorTest:function(e){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(e)},initMaterial:function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},addPrePlugin:function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},addPostPlugin:function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},updateShadowMap:function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},setFaceCulling:function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")},allocTextureUnit:function(){console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed.")},setTexture:function(){console.warn("THREE.WebGLRenderer: .setTexture() has been removed.")},setTexture2D:function(){console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed.")},setTextureCube:function(){console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed.")},getActiveMipMapLevel:function(){return console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel()."),this.getActiveMipmapLevel()}}),Object.defineProperties(WebGLRenderer.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(e){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=e}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(e){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=e}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}},context:{get:function(){return console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead."),this.getContext()}},vr:{get:function(){return console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr"),this.xr}},gammaInput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."),!1},set:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.")}},gammaOutput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),!1},set:function(e){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),this.outputEncoding=!0===e?sRGBEncoding:LinearEncoding}}}),Object.defineProperties(WebGLShadowMap.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(WebGLRenderTarget.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(e){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=e}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(e){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=e}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(e){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=e}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(e){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=e}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(e){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=e}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(e){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=e}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(e){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=e}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(e){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=e}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(e){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=e}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(e){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=e}}}),Object.defineProperties(Audio.prototype,{load:{value:function(e){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");var t=this;return(new AudioLoader).load(e,(function(e){t.setBuffer(e)})),this}},startTime:{set:function(){console.warn("THREE.Audio: .startTime is now .play( delay ).")}}}),AudioAnalyser.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},CubeCamera.prototype.updateCubeMap=function(e,t){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(e,t)},ImageUtils.crossOrigin=void 0,ImageUtils.loadTexture=function(e,t,n,r){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");var i=new TextureLoader;i.setCrossOrigin(this.crossOrigin);var a=i.load(e,n,void 0,r);return t&&(a.mapping=t),a},ImageUtils.loadTextureCube=function(e,t,n,r){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");var i=new CubeTextureLoader;i.setCrossOrigin(this.crossOrigin);var a=i.load(e,n,void 0,r);return t&&(a.mapping=t),a},ImageUtils.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},ImageUtils.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:REVISION}})),function(e){e[e.kClone=1]="kClone",e[e.kDragClone=2]="kDragClone"}(MxCloneType||(MxCloneType={})),function(e){e[e.kClone=1]="kClone",e[e.kDragClone=2]="kDragClone"}(MxCloneType2||(MxCloneType2={}));var MxType={MxCloneType:MxCloneType,MxCloneType2:MxCloneType2},MxDbEntity=function(){function e(){this.iColor=16777215,this.iRenderOrder=30}return e.prototype.transformBy=function(e){},e.prototype.getImp=function(){return this.MxDbEntityImp},e.prototype.setNeedUpdateDisplay=function(e){var t=this.getImp();return!!t&&(e?t.upDisplay():t.setDirtyDisplay(!0),!0)},e.prototype.objectId=function(){var e=this.getImp();return e?e.objectId():0},e.prototype.erase=function(){var e=this.getImp();return!!e&&e.erase()},e.prototype.setColor=function(e){this.iColor=e},e.prototype.getColor=function(){return this.iColor},e.prototype.clone=function(e){var t=this.create(),n={type:e||MxType.MxCloneType.kClone};return this.dwgOut(n),t.dwgIn(n),t},e.prototype.onDwgIn=function(e){this.iColor=e.iColor,this.iRenderOrder=e.iRenderOrder},e.prototype.onDwgOut=function(e){e.iColor=this.iColor,e.iRenderOrder=this.iRenderOrder},e.prototype.rxInit=function(){store.state.MxFun.initMxDbEntityType(this)},e.prototype.setRenderOrder=function(e){this.iRenderOrder=e},e.prototype.getRenderOrder=function(){return this.iRenderOrder},e}();function createReandomId(e){return void 0===e&&(e=10),new Number(Math.random().toString().substr(3,e)+Date.now()).toString(36)}function createCanvas(e){void 0===e&&(e="mx-canvas");var t=document.getElementById(e)||document.createElement("canvas");return t.id=e,t}function createCanvasParent(e){var t;return void 0===e&&(e=createCanvas()),e||(e=createCanvas()),e.parentNode?t=e.parentNode:(t=document.createElement("div")).appendChild(e),t}function objectMethodProxy(e,t,n){Object.defineProperty(e,n,{get:function(){return t[n]}})}var MxDrawObject=function(){function e(e){this._mxdrawObj=e}return e.prototype.getScene=function(){return this._mxdrawObj.getScene()},e.prototype.getCamera=function(){return this._mxdrawObj.getCamera()},e.prototype.getRenderer=function(){return this._mxdrawObj.renderer},e.prototype.setMouseRightRotate=function(e){return void 0===e&&(e=!0),this._mxdrawObj.setMouseRightRotate(e)},e.prototype.getFullDisplayRange=function(){return this._mxdrawObj.getFullDisplayRange()},e.prototype.getCanvas=function(){return this._mxdrawObj.getCanvas()},e.prototype.updateDisplay=function(){return this._mxdrawObj.updateDisplay()},e.prototype.createCanvasImageData=function(e,t){return this._mxdrawObj.createCanvasImageData(e,t)},e.prototype.setViewColor=function(e){return this._mxdrawObj.setViewColor(e)},e.prototype.setSize=function(e,t){return this._mxdrawObj.setSize(e,t)},e.prototype.getIntersectObjects=function(e){return this._mxdrawObj.getIntersectObjects(e)},e.prototype.addObject=function(e,t){return void 0===t&&(t=!0),this._mxdrawObj.addObject(e,t)},e.prototype.addViewObject=function(e){return this._mxdrawObj.addViewObject(e)},e.prototype.getViewWidth=function(){return this._mxdrawObj.getViewWidth()},e.prototype.getViewHeight=function(){return this._mxdrawObj.getViewHeight()},e.prototype.removeObject=function(e,t){return void 0===t&&(t=!0),this._mxdrawObj.removeObject(e,t)},e.prototype.zoomInitialStates=function(){return this._mxdrawObj.zoomInitialStates()},e.prototype.zoomScale=function(e){return this._mxdrawObj.zoomScale(e)},e.prototype.zoomW=function(e,t,n){return this._mxdrawObj.zoomW(e,t,n)},e.prototype.zoomCenter=function(e,t){return this._mxdrawObj.zoomCenter(e,t)},e.prototype.initZoomW=function(e,t){return this._mxdrawObj.initZoomW(e,t)},e.prototype.addEvent=function(e,t){return this._mxdrawObj.addEvent(e,t)},e.prototype.setIniset=function(e){return this._mxdrawObj.setIniset(e)},e.prototype.screenCoord2World=function(e,t,n){return this._mxdrawObj.screenCoord2World(e,t,n)},e.prototype.worldCoord2Screen=function(e,t,n){return this._mxdrawObj.worldCoord2Screen(e,t,n)},e.prototype.screenCoord2Doc=function(e,t){return this._mxdrawObj.screenCoord2Doc(e,t,0)},e.prototype.worldCoordLong2Doc=function(e){return this._mxdrawObj.worldCoordLong2Doc(e)},e.prototype.docCoordLong2World=function(e){return this._mxdrawObj.docCoordLong2World(e)},e.prototype.docCoord2World=function(e,t,n){return this._mxdrawObj.docCoord2World(e,t,n)},e.prototype.docCoord2World2=function(e){return this._mxdrawObj.docCoord2World(e.x,e.y,e.z)},e.prototype.worldCoord2Doc=function(e,t,n){return this._mxdrawObj.worldCoord2Doc(e,t,n)},e.prototype.worldCoord2Doc2=function(e){return this._mxdrawObj.worldCoord2Doc(e.x,e.y,e.z)},e.prototype.docCoord2Screen=function(e,t){return this._mxdrawObj.docCoord2Screen(e,t,0)},e.prototype.screenCoordLong2Doc=function(e){return this._mxdrawObj.screenCoordLong2Doc(e)},e.prototype.docCoordLong2Screen=function(e){return this._mxdrawObj.docCoordLong2Screen(e)},e.prototype.screenCoordLong2World=function(e){return this._mxdrawObj.screenCoordLong2World(e)},e.prototype.worldCoordLong2Screen=function(e){return this._mxdrawObj.worldCoordLong2Screen(e)},e.prototype.initRendererParam=function(e){return this._mxdrawObj.initRendererParam(e)},e.prototype.addMxEntity=function(e){return this._mxdrawObj.addMxEntity(e)},e.prototype.getMxCurrentSelect=function(){return this._mxdrawObj.getMxAllSelect()},e.prototype.addMxCurrentSelect=function(e){return this._mxdrawObj.addMxCurrentSelect(e)},e.prototype.clearMxCurrentSelect=function(){return this._mxdrawObj.clearMxCurrentSelect()},e.prototype.getMxEntity=function(e){return this._mxdrawObj.getMxEntityUserObject(e)},e.prototype.findMxEntityAtPoint=function(e){return this._mxdrawObj.findMxEntityAtPoint(e)},e.prototype.getAllMxEntity=function(){return this._mxdrawObj.getAllMxEntity()},e.prototype.setMouseMiddlePan=function(e){return this._mxdrawObj.setMouseMiddlePan(e)},e.prototype.resetThreeJSControls=function(){return this._mxdrawObj.resetThreeJSControls()},e.prototype.enableZoom=function(e){return this._mxdrawObj.enableZoom(e)},e.prototype.enablePan=function(e){return this._mxdrawObj.enablePan(e)},e.prototype.eraseMxEntity=function(e){return this._mxdrawObj.eraseMxEntity(e)},e.prototype.removeViewObject=function(e){this._mxdrawObj.removeViewObject(e)},e.prototype.saveMxEntityToJson=function(){return this._mxdrawObj.saveMxEntityToJson()},e.prototype.loadMxEntityFromJson=function(e){return this._mxdrawObj.loadMxEntityFromJson(e)},e.prototype.eraseAllMxEntity=function(){return this._mxdrawObj.eraseAllMxEntity()},e}(),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var lodash=createCommonjsModule((function(e,t){(function(){var n,r="Expected a function",i="__lodash_hash_undefined__",a="__lodash_placeholder__",o=16,s=32,l=64,c=128,u=256,h=1/0,p=9007199254740991,d=NaN,f=4294967295,m=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",s],["partialRight",l],["rearg",u]],g="[object Arguments]",v="[object Array]",y="[object Boolean]",x="[object Date]",_="[object Error]",b="[object Function]",w="[object GeneratorFunction]",M="[object Map]",S="[object Number]",T="[object Object]",E="[object Promise]",C="[object RegExp]",A="[object Set]",L="[object String]",D="[object Symbol]",P="[object WeakMap]",O="[object ArrayBuffer]",R="[object DataView]",I="[object Float32Array]",B="[object Float64Array]",N="[object Int8Array]",k="[object Int16Array]",F="[object Int32Array]",G="[object Uint8Array]",V="[object Uint8ClampedArray]",z="[object Uint16Array]",U="[object Uint32Array]",j=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,J=/[&<>"']/g,X=RegExp(q.source),$=RegExp(J.source),Y=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ne.source),ie=/^\s+/,ae=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,be=/['\n\r\u2028\u2029\\]/g,we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Me="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ae="['’]",Le="[\\ud800-\\udfff]",De="["+Ce+"]",Pe="["+we+"]",Oe="\\d+",Re="[\\u2700-\\u27bf]",Ie="["+Se+"]",Be="[^\\ud800-\\udfff"+Ce+Oe+Me+Se+Te+"]",Ne="\\ud83c[\\udffb-\\udfff]",ke="[^\\ud800-\\udfff]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ge="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+Te+"]",ze="(?:"+Ie+"|"+Be+")",Ue="(?:"+Ve+"|"+Be+")",je="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+Pe+"|"+Ne+")"+"?",qe="[\\ufe0e\\ufe0f]?",Je=qe+We+("(?:\\u200d(?:"+[ke,Fe,Ge].join("|")+")"+qe+We+")*"),Xe="(?:"+[Re,Fe,Ge].join("|")+")"+Je,$e="(?:"+[ke+Pe+"?",Pe,Fe,Ge,Le].join("|")+")",Ye=RegExp(Ae,"g"),Ze=RegExp(Pe,"g"),Ke=RegExp(Ne+"(?="+Ne+")|"+$e+Je,"g"),Qe=RegExp([Ve+"?"+Ie+"+"+je+"(?="+[De,Ve,"$"].join("|")+")",Ue+"+"+He+"(?="+[De,Ve+ze,"$"].join("|")+")",Ve+"?"+ze+"+"+je,Ve+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,Xe].join("|"),"g"),et=RegExp("[\\u200d\\ud800-\\udfff"+we+Ee+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,it={};it[I]=it[B]=it[N]=it[k]=it[F]=it[G]=it[V]=it[z]=it[U]=!0,it[g]=it[v]=it[O]=it[y]=it[R]=it[x]=it[_]=it[b]=it[M]=it[S]=it[T]=it[C]=it[A]=it[L]=it[P]=!1;var at={};at[g]=at[v]=at[O]=at[R]=at[y]=at[x]=at[I]=at[B]=at[N]=at[k]=at[F]=at[M]=at[S]=at[T]=at[C]=at[A]=at[L]=at[D]=at[G]=at[V]=at[z]=at[U]=!0,at[_]=at[b]=at[P]=!1;var ot={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,lt=parseInt,ct="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ut="object"==typeof self&&self&&self.Object===Object&&self,ht=ct||ut||Function("return this")(),pt=t&&!t.nodeType&&t,dt=pt&&e&&!e.nodeType&&e,ft=dt&&dt.exports===pt,mt=ft&&ct.process,gt=function(){try{var e=dt&&dt.require&&dt.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=gt&&gt.isArrayBuffer,yt=gt&&gt.isDate,xt=gt&&gt.isMap,_t=gt&&gt.isRegExp,bt=gt&&gt.isSet,wt=gt&&gt.isTypedArray;function Mt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function St(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Et(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function At(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function Lt(e,t){return!!(null==e?0:e.length)&&Gt(e,t,0)>-1}function Dt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Ot(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Rt(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function It(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Nt=jt("length");function kt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Ft(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Gt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ft(e,zt,n)}function Vt(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function zt(e){return e!=e}function Ut(e,t){var n=null==e?0:e.length;return n?qt(e,t)/n:d}function jt(e){return function(t){return null==t?n:t[e]}}function Ht(e){return function(t){return null==e?n:e[t]}}function Wt(e,t,n,r,i){return i(e,(function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)})),n}function qt(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function Jt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Xt(e){return e?e.slice(0,dn(e)+1).replace(ie,""):e}function $t(e){return function(t){return e(t)}}function Yt(e,t){return Pt(t,(function(t){return e[t]}))}function Zt(e,t){return e.has(t)}function Kt(e,t){for(var n=-1,r=e.length;++n<r&&Gt(t,e[n],0)>-1;);return n}function Qt(e,t){for(var n=e.length;n--&&Gt(t,e[n],0)>-1;);return n}function en(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var tn=Ht({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),nn=Ht({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rn(e){return"\\"+ot[e]}function an(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function ln(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return an(e)?function(e){var t=Ke.lastIndex=0;for(;Ke.test(e);)++t;return t}(e):Nt(e)}function pn(e){return an(e)?function(e){return e.match(Ke)||[]}(e):function(e){return e.split("")}(e)}function dn(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var fn=Ht({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var mn=function e(t){var ae,we=(t=null==t?ht:mn.defaults(ht.Object(),t,mn.pick(ht,nt))).Array,Me=t.Date,Se=t.Error,Te=t.Function,Ee=t.Math,Ce=t.Object,Ae=t.RegExp,Le=t.String,De=t.TypeError,Pe=we.prototype,Oe=Te.prototype,Re=Ce.prototype,Ie=t["__core-js_shared__"],Be=Oe.toString,Ne=Re.hasOwnProperty,ke=0,Fe=(ae=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+ae:"",Ge=Re.toString,Ve=Be.call(Ce),ze=ht._,Ue=Ae("^"+Be.call(Ne).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=ft?t.Buffer:n,He=t.Symbol,We=t.Uint8Array,qe=je?je.allocUnsafe:n,Je=sn(Ce.getPrototypeOf,Ce),Xe=Ce.create,$e=Re.propertyIsEnumerable,Ke=Pe.splice,et=He?He.isConcatSpreadable:n,ot=He?He.iterator:n,ct=He?He.toStringTag:n,ut=function(){try{var e=da(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),pt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,dt=Me&&Me.now!==ht.Date.now&&Me.now,mt=t.setTimeout!==ht.setTimeout&&t.setTimeout,gt=Ee.ceil,Nt=Ee.floor,Ht=Ce.getOwnPropertySymbols,gn=je?je.isBuffer:n,vn=t.isFinite,yn=Pe.join,xn=sn(Ce.keys,Ce),_n=Ee.max,bn=Ee.min,wn=Me.now,Mn=t.parseInt,Sn=Ee.random,Tn=Pe.reverse,En=da(t,"DataView"),Cn=da(t,"Map"),An=da(t,"Promise"),Ln=da(t,"Set"),Dn=da(t,"WeakMap"),Pn=da(Ce,"create"),On=Dn&&new Dn,Rn={},In=Va(En),Bn=Va(Cn),Nn=Va(An),kn=Va(Ln),Fn=Va(Dn),Gn=He?He.prototype:n,Vn=Gn?Gn.valueOf:n,zn=Gn?Gn.toString:n;function Un(e){if(is(e)&&!Jo(e)&&!(e instanceof qn)){if(e instanceof Wn)return e;if(Ne.call(e,"__wrapped__"))return za(e)}return new Wn(e)}var jn=function(){function e(){}return function(t){if(!rs(t))return{};if(Xe)return Xe(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Hn(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function qn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new $n;++t<n;)this.add(e[t])}function Zn(e){var t=this.__data__=new Xn(e);this.size=t.size}function Kn(e,t){var n=Jo(e),r=!n&&qo(e),i=!n&&!r&&Zo(e),a=!n&&!r&&!i&&ps(e),o=n||r||i||a,s=o?Jt(e.length,Le):[],l=s.length;for(var c in e)!t&&!Ne.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_a(c,l))||s.push(c);return s}function Qn(e){var t=e.length;return t?e[Yr(0,t-1)]:n}function er(e,t){return ka(Pi(e),cr(t,0,e.length))}function tr(e){return ka(Pi(e))}function nr(e,t,r){(r!==n&&!jo(e[t],r)||r===n&&!(t in e))&&sr(e,t,r)}function rr(e,t,r){var i=e[t];Ne.call(e,t)&&jo(i,r)&&(r!==n||t in e)||sr(e,t,r)}function ir(e,t){for(var n=e.length;n--;)if(jo(e[n][0],t))return n;return-1}function ar(e,t,n,r){return fr(e,(function(e,i,a){t(r,e,n(e),a)})),r}function or(e,t){return e&&Oi(t,Is(t),e)}function sr(e,t,n){"__proto__"==t&&ut?ut(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function lr(e,t){for(var r=-1,i=t.length,a=we(i),o=null==e;++r<i;)a[r]=o?n:Ls(e,t[r]);return a}function cr(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ur(e,t,r,i,a,o){var s,l=1&t,c=2&t,u=4&t;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!rs(e))return e;var h=Jo(e);if(h){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ne.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Pi(e,s)}else{var p=ga(e),d=p==b||p==w;if(Zo(e))return Ti(e,l);if(p==T||p==g||d&&!a){if(s=c||d?{}:ya(e),!l)return c?function(e,t){return Oi(e,ma(e),t)}(e,function(e,t){return e&&Oi(t,Bs(t),e)}(s,e)):function(e,t){return Oi(e,fa(e),t)}(e,or(s,e))}else{if(!at[p])return a?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case O:return Ei(e);case y:case x:return new r(+e);case R:return function(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case B:case N:case k:case F:case G:case V:case z:case U:return Ci(e,n);case M:return new r;case S:case L:return new r(e);case C:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case A:return new r;case D:return i=e,Vn?Ce(Vn.call(i)):{}}var i}(e,p,l)}}o||(o=new Zn);var f=o.get(e);if(f)return f;o.set(e,s),cs(e)?e.forEach((function(n){s.add(ur(n,t,r,n,e,o))})):as(e)&&e.forEach((function(n,i){s.set(i,ur(n,t,r,i,e,o))}));var m=h?n:(u?c?oa:aa:c?Bs:Is)(e);return Tt(m||e,(function(n,i){m&&(n=e[i=n]),rr(s,i,ur(n,t,r,i,e,o))})),s}function hr(e,t,r){var i=r.length;if(null==e)return!i;for(e=Ce(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function pr(e,t,i){if("function"!=typeof e)throw new De(r);return Ra((function(){e.apply(n,i)}),t)}function dr(e,t,n,r){var i=-1,a=Lt,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Pt(t,$t(n))),r?(a=Dt,o=!1):t.length>=200&&(a=Zt,o=!1,t=new Yn(t));e:for(;++i<s;){var u=e[i],h=null==n?u:n(u);if(u=r||0!==u?u:0,o&&h==h){for(var p=c;p--;)if(t[p]===h)continue e;l.push(u)}else a(t,h,r)||l.push(u)}return l}Un.templateSettings={escape:Y,evaluate:Z,interpolate:K,variable:"",imports:{_:Un}},Un.prototype=Hn.prototype,Un.prototype.constructor=Un,Wn.prototype=jn(Hn.prototype),Wn.prototype.constructor=Wn,qn.prototype=jn(Hn.prototype),qn.prototype.constructor=qn,Jn.prototype.clear=function(){this.__data__=Pn?Pn(null):{},this.size=0},Jn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Jn.prototype.get=function(e){var t=this.__data__;if(Pn){var r=t[e];return r===i?n:r}return Ne.call(t,e)?t[e]:n},Jn.prototype.has=function(e){var t=this.__data__;return Pn?t[e]!==n:Ne.call(t,e)},Jn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Pn&&t===n?i:t,this},Xn.prototype.clear=function(){this.__data__=[],this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=ir(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},Xn.prototype.get=function(e){var t=this.__data__,r=ir(t,e);return r<0?n:t[r][1]},Xn.prototype.has=function(e){return ir(this.__data__,e)>-1},Xn.prototype.set=function(e,t){var n=this.__data__,r=ir(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},$n.prototype.clear=function(){this.size=0,this.__data__={hash:new Jn,map:new(Cn||Xn),string:new Jn}},$n.prototype.delete=function(e){var t=ha(this,e).delete(e);return this.size-=t?1:0,t},$n.prototype.get=function(e){return ha(this,e).get(e)},$n.prototype.has=function(e){return ha(this,e).has(e)},$n.prototype.set=function(e,t){var n=ha(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,i),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.clear=function(){this.__data__=new Xn,this.size=0},Zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Zn.prototype.get=function(e){return this.__data__.get(e)},Zn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Xn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new $n(r)}return n.set(e,t),this.size=n.size,this};var fr=Bi(wr),mr=Bi(Mr,!0);function gr(e,t){var n=!0;return fr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function vr(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(null!=s&&(l===n?s==s&&!hs(s):r(s,l)))var l=s,c=o}return c}function yr(e,t){var n=[];return fr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function xr(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=xa),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?xr(s,t-1,n,r,i):Ot(i,s):r||(i[i.length]=s)}return i}var _r=Ni(),br=Ni(!0);function wr(e,t){return e&&_r(e,t,Is)}function Mr(e,t){return e&&br(e,t,Is)}function Sr(e,t){return At(t,(function(t){return es(e[t])}))}function Tr(e,t){for(var r=0,i=(t=bi(t,e)).length;null!=e&&r<i;)e=e[Ga(t[r++])];return r&&r==i?e:n}function Er(e,t,n){var r=t(e);return Jo(e)?r:Ot(r,n(e))}function Cr(e){return null==e?e===n?"[object Undefined]":"[object Null]":ct&&ct in Ce(e)?function(e){var t=Ne.call(e,ct),r=e[ct];try{e[ct]=n}catch(e){}var i=Ge.call(e);t?e[ct]=r:delete e[ct];return i}(e):function(e){return Ge.call(e)}(e)}function Ar(e,t){return e>t}function Lr(e,t){return null!=e&&Ne.call(e,t)}function Dr(e,t){return null!=e&&t in Ce(e)}function Pr(e,t,r){for(var i=r?Dt:Lt,a=e[0].length,o=e.length,s=o,l=we(o),c=1/0,u=[];s--;){var h=e[s];s&&t&&(h=Pt(h,$t(t))),c=bn(h.length,c),l[s]=!r&&(t||a>=120&&h.length>=120)?new Yn(s&&h):n}h=e[0];var p=-1,d=l[0];e:for(;++p<a&&u.length<c;){var f=h[p],m=t?t(f):f;if(f=r||0!==f?f:0,!(d?Zt(d,m):i(u,m,r))){for(s=o;--s;){var g=l[s];if(!(g?Zt(g,m):i(e[s],m,r)))continue e}d&&d.push(m),u.push(f)}}return u}function Or(e,t,r){var i=null==(e=La(e,t=bi(t,e)))?e:e[Ga(Ka(t))];return null==i?n:Mt(i,e,r)}function Rr(e){return is(e)&&Cr(e)==g}function Ir(e,t,r,i,a){return e===t||(null==e||null==t||!is(e)&&!is(t)?e!=e&&t!=t:function(e,t,r,i,a,o){var s=Jo(e),l=Jo(t),c=s?v:ga(e),u=l?v:ga(t),h=(c=c==g?T:c)==T,p=(u=u==g?T:u)==T,d=c==u;if(d&&Zo(e)){if(!Zo(t))return!1;s=!0,h=!1}if(d&&!h)return o||(o=new Zn),s||ps(e)?ra(e,t,r,i,a,o):function(e,t,n,r,i,a,o){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case O:return!(e.byteLength!=t.byteLength||!a(new We(e),new We(t)));case y:case x:case S:return jo(+e,+t);case _:return e.name==t.name&&e.message==t.message;case C:case L:return e==t+"";case M:var s=on;case A:var l=1&r;if(s||(s=cn),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=2,o.set(e,t);var u=ra(s(e),s(t),r,i,a,o);return o.delete(e),u;case D:if(Vn)return Vn.call(e)==Vn.call(t)}return!1}(e,t,c,r,i,a,o);if(!(1&r)){var f=h&&Ne.call(e,"__wrapped__"),m=p&&Ne.call(t,"__wrapped__");if(f||m){var b=f?e.value():e,w=m?t.value():t;return o||(o=new Zn),a(b,w,r,i,o)}}if(!d)return!1;return o||(o=new Zn),function(e,t,r,i,a,o){var s=1&r,l=aa(e),c=l.length,u=aa(t).length;if(c!=u&&!s)return!1;var h=c;for(;h--;){var p=l[h];if(!(s?p in t:Ne.call(t,p)))return!1}var d=o.get(e),f=o.get(t);if(d&&f)return d==t&&f==e;var m=!0;o.set(e,t),o.set(t,e);var g=s;for(;++h<c;){var v=e[p=l[h]],y=t[p];if(i)var x=s?i(y,v,p,t,e,o):i(v,y,p,e,t,o);if(!(x===n?v===y||a(v,y,r,i,o):x)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var _=e.constructor,b=t.constructor;_==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b||(m=!1)}return o.delete(e),o.delete(t),m}(e,t,r,i,a,o)}(e,t,r,i,Ir,a))}function Br(e,t,r,i){var a=r.length,o=a,s=!i;if(null==e)return!o;for(e=Ce(e);a--;){var l=r[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<o;){var c=(l=r[a])[0],u=e[c],h=l[1];if(s&&l[2]){if(u===n&&!(c in e))return!1}else{var p=new Zn;if(i)var d=i(u,h,c,e,t,p);if(!(d===n?Ir(h,u,3,i,p):d))return!1}}return!0}function Nr(e){return!(!rs(e)||(t=e,Fe&&Fe in t))&&(es(e)?Ue:ge).test(Va(e));var t}function kr(e){return"function"==typeof e?e:null==e?ol:"object"==typeof e?Jo(e)?jr(e[0],e[1]):Ur(e):ml(e)}function Fr(e){if(!Ta(e))return xn(e);var t=[];for(var n in Ce(e))Ne.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Gr(e){if(!rs(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=Ta(e),n=[];for(var r in e)("constructor"!=r||!t&&Ne.call(e,r))&&n.push(r);return n}function Vr(e,t){return e<t}function zr(e,t){var n=-1,r=$o(e)?we(e.length):[];return fr(e,(function(e,i,a){r[++n]=t(e,i,a)})),r}function Ur(e){var t=pa(e);return 1==t.length&&t[0][2]?Ca(t[0][0],t[0][1]):function(n){return n===e||Br(n,e,t)}}function jr(e,t){return wa(e)&&Ea(t)?Ca(Ga(e),t):function(r){var i=Ls(r,e);return i===n&&i===t?Ds(r,e):Ir(t,i,3)}}function Hr(e,t,r,i,a){e!==t&&_r(t,(function(o,s){if(a||(a=new Zn),rs(o))!function(e,t,r,i,a,o,s){var l=Pa(e,r),c=Pa(t,r),u=s.get(c);if(u)return void nr(e,r,u);var h=o?o(l,c,r+"",e,t,s):n,p=h===n;if(p){var d=Jo(c),f=!d&&Zo(c),m=!d&&!f&&ps(c);h=c,d||f||m?Jo(l)?h=l:Yo(l)?h=Pi(l):f?(p=!1,h=Ti(c,!0)):m?(p=!1,h=Ci(c,!0)):h=[]:ss(c)||qo(c)?(h=l,qo(l)?h=_s(l):rs(l)&&!es(l)||(h=ya(c))):p=!1}p&&(s.set(c,h),a(h,c,i,o,s),s.delete(c));nr(e,r,h)}(e,t,s,r,Hr,i,a);else{var l=i?i(Pa(e,s),o,s+"",e,t,a):n;l===n&&(l=o),nr(e,s,l)}}),Bs)}function Wr(e,t){var r=e.length;if(r)return _a(t+=t<0?r:0,r)?e[t]:n}function qr(e,t,n){t=t.length?Pt(t,(function(e){return Jo(e)?function(t){return Tr(t,1===e.length?e[0]:e)}:e})):[ol];var r=-1;t=Pt(t,$t(ua()));var i=zr(e,(function(e,n,i){var a=Pt(t,(function(t){return t(e)}));return{criteria:a,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;for(;++r<o;){var l=Ai(i[r],a[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Jr(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Tr(e,o);n(s,o)&&ti(a,bi(o,e),s)}return a}function Xr(e,t,n,r){var i=r?Vt:Gt,a=-1,o=t.length,s=e;for(e===t&&(t=Pi(t)),n&&(s=Pt(e,$t(n)));++a<o;)for(var l=0,c=t[a],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==e&&Ke.call(s,l,1),Ke.call(e,l,1);return e}function $r(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;_a(i)?Ke.call(e,i,1):di(e,i)}}return e}function Yr(e,t){return e+Nt(Sn()*(t-e+1))}function Zr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=Nt(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return Ia(Aa(e,t,ol),e+"")}function Qr(e){return Qn(js(e))}function ei(e,t){var n=js(e);return ka(n,cr(t,0,n.length))}function ti(e,t,r,i){if(!rs(e))return e;for(var a=-1,o=(t=bi(t,e)).length,s=o-1,l=e;null!=l&&++a<o;){var c=Ga(t[a]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(a!=s){var h=l[c];(u=i?i(h,c,l):n)===n&&(u=rs(h)?h:_a(t[a+1])?[]:{})}rr(l,c,u),l=l[c]}return e}var ni=On?function(e,t){return On.set(e,t),e}:ol,ri=ut?function(e,t){return ut(e,"toString",{configurable:!0,enumerable:!1,value:rl(t),writable:!0})}:ol;function ii(e){return ka(js(e))}function ai(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=we(i);++r<i;)a[r]=e[r+t];return a}function oi(e,t){var n;return fr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function si(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var a=r+i>>>1,o=e[a];null!==o&&!hs(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return li(e,t,ol,n)}function li(e,t,r,i){var a=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=r(t))!=t,l=null===t,c=hs(t),u=t===n;a<o;){var h=Nt((a+o)/2),p=r(e[h]),d=p!==n,f=null===p,m=p==p,g=hs(p);if(s)var v=i||m;else v=u?m&&(i||d):l?m&&d&&(i||!f):c?m&&d&&!f&&(i||!g):!f&&!g&&(i?p<=t:p<t);v?a=h+1:o=h}return bn(o,4294967294)}function ci(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!jo(s,l)){var l=s;a[i++]=0===o?0:o}}return a}function ui(e){return"number"==typeof e?e:hs(e)?d:+e}function hi(e){if("string"==typeof e)return e;if(Jo(e))return Pt(e,hi)+"";if(hs(e))return zn?zn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function pi(e,t,n){var r=-1,i=Lt,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=Dt;else if(a>=200){var c=t?null:Zi(e);if(c)return cn(c);o=!1,i=Zt,l=new Yn}else l=t?[]:s;e:for(;++r<a;){var u=e[r],h=t?t(u):u;if(u=n||0!==u?u:0,o&&h==h){for(var p=l.length;p--;)if(l[p]===h)continue e;t&&l.push(h),s.push(u)}else i(l,h,n)||(l!==s&&l.push(h),s.push(u))}return s}function di(e,t){return null==(e=La(e,t=bi(t,e)))||delete e[Ga(Ka(t))]}function fi(e,t,n,r){return ti(e,t,n(Tr(e,t)),r)}function mi(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?ai(e,r?0:a,r?a+1:i):ai(e,r?a+1:0,r?i:a)}function gi(e,t){var n=e;return n instanceof qn&&(n=n.value()),Rt(t,(function(e,t){return t.func.apply(t.thisArg,Ot([e],t.args))}),n)}function vi(e,t,n){var r=e.length;if(r<2)return r?pi(e[0]):[];for(var i=-1,a=we(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=dr(a[i]||o,e[s],t,n));return pi(xr(a,1),t,n)}function yi(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var l=i<o?t[i]:n;r(s,e[i],l)}return s}function xi(e){return Yo(e)?e:[]}function _i(e){return"function"==typeof e?e:ol}function bi(e,t){return Jo(e)?e:wa(e,t)?[e]:Fa(bs(e))}var wi=Kr;function Mi(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:ai(e,t,r)}var Si=pt||function(e){return ht.clearTimeout(e)};function Ti(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function Ei(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Ci(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ai(e,t){if(e!==t){var r=e!==n,i=null===e,a=e==e,o=hs(e),s=t!==n,l=null===t,c=t==t,u=hs(t);if(!l&&!u&&!o&&e>t||o&&s&&c&&!l&&!u||i&&s&&c||!r&&c||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||l&&r&&a||!s&&a||!c)return-1}return 0}function Li(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,l=t.length,c=_n(a-o,0),u=we(l+c),h=!r;++s<l;)u[s]=t[s];for(;++i<o;)(h||i<a)&&(u[n[i]]=e[i]);for(;c--;)u[s++]=e[i++];return u}function Di(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,l=-1,c=t.length,u=_n(a-s,0),h=we(u+c),p=!r;++i<u;)h[i]=e[i];for(var d=i;++l<c;)h[d+l]=t[l];for(;++o<s;)(p||i<a)&&(h[d+n[o]]=e[i++]);return h}function Pi(e,t){var n=-1,r=e.length;for(t||(t=we(r));++n<r;)t[n]=e[n];return t}function Oi(e,t,r,i){var a=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var l=t[o],c=i?i(r[l],e[l],l,r,e):n;c===n&&(c=e[l]),a?sr(r,l,c):rr(r,l,c)}return r}function Ri(e,t){return function(n,r){var i=Jo(n)?St:ar,a=t?t():{};return i(n,e,ua(r,2),a)}}function Ii(e){return Kr((function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&"function"==typeof o?(a--,o):n,s&&ba(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=Ce(t);++i<a;){var l=r[i];l&&e(t,l,i,o)}return t}))}function Bi(e,t){return function(n,r){if(null==n)return n;if(!$o(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Ce(n);(t?a--:++a<i)&&!1!==r(o[a],a,o););return n}}function Ni(e){return function(t,n,r){for(var i=-1,a=Ce(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}function ki(e){return function(t){var r=an(t=bs(t))?pn(t):n,i=r?r[0]:t.charAt(0),a=r?Mi(r,1).join(""):t.slice(1);return i[e]()+a}}function Fi(e){return function(t){return Rt(el(qs(t).replace(Ye,"")),e,"")}}function Gi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=jn(e.prototype),r=e.apply(n,t);return rs(r)?r:n}}function Vi(e){return function(t,r,i){var a=Ce(t);if(!$o(t)){var o=ua(r,3);t=Is(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function zi(e){return ia((function(t){var i=t.length,a=i,o=Wn.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if("function"!=typeof s)throw new De(r);if(o&&!l&&"wrapper"==la(s))var l=new Wn([],!0)}for(a=l?a:i;++a<i;){var c=la(s=t[a]),u="wrapper"==c?sa(s):n;l=u&&Ma(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[la(u[0])].apply(l,u[3]):1==s.length&&Ma(s)?l[c]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Jo(n))return l.plant(n).value();for(var r=0,a=i?t[r].apply(this,e):n;++r<i;)a=t[r].call(this,a);return a}}))}function Ui(e,t,r,i,a,o,s,l,u,h){var p=t&c,d=1&t,f=2&t,m=24&t,g=512&t,v=f?n:Gi(e);return function n(){for(var c=arguments.length,y=we(c),x=c;x--;)y[x]=arguments[x];if(m)var _=ca(n),b=en(y,_);if(i&&(y=Li(y,i,a,m)),o&&(y=Di(y,o,s,m)),c-=b,m&&c<h){var w=ln(y,_);return $i(e,t,Ui,n.placeholder,r,y,w,l,u,h-c)}var M=d?r:this,S=f?M[e]:e;return c=y.length,l?y=Da(y,l):g&&c>1&&y.reverse(),p&&u<c&&(y.length=u),this&&this!==ht&&this instanceof n&&(S=v||Gi(S)),S.apply(M,y)}}function ji(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,i,a){t(r,n(e),i,a)})),r}(n,e,t(r),{})}}function Hi(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;"string"==typeof r||"string"==typeof i?(r=hi(r),i=hi(i)):(r=ui(r),i=ui(i)),a=e(r,i)}return a}}function Wi(e){return ia((function(t){return t=Pt(t,$t(ua())),Kr((function(n){var r=this;return e(t,(function(e){return Mt(e,r,n)}))}))}))}function qi(e,t){var r=(t=t===n?" ":hi(t)).length;if(r<2)return r?Zr(t,e):t;var i=Zr(t,gt(e/hn(t)));return an(t)?Mi(pn(i),0,e).join(""):i.slice(0,e)}function Ji(e){return function(t,r,i){return i&&"number"!=typeof i&&ba(t,r,i)&&(r=i=n),t=gs(t),r===n?(r=t,t=0):r=gs(r),function(e,t,n,r){for(var i=-1,a=_n(gt((t-e)/(n||1)),0),o=we(a);a--;)o[r?a:++i]=e,e+=n;return o}(t,r,i=i===n?t<r?1:-1:gs(i),e)}}function Xi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=xs(t),n=xs(n)),e(t,n)}}function $i(e,t,r,i,a,o,c,u,h,p){var d=8&t;t|=d?s:l,4&(t&=~(d?l:s))||(t&=-4);var f=[e,t,a,d?o:n,d?c:n,d?n:o,d?n:c,u,h,p],m=r.apply(n,f);return Ma(e)&&Oa(m,f),m.placeholder=i,Ba(m,e,t)}function Yi(e){var t=Ee[e];return function(e,n){if(e=xs(e),(n=null==n?0:bn(vs(n),292))&&vn(e)){var r=(bs(e)+"e").split("e");return+((r=(bs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Zi=Ln&&1/cn(new Ln([,-0]))[1]==h?function(e){return new Ln(e)}:hl;function Ki(e){return function(t){var n=ga(t);return n==M?on(t):n==A?un(t):function(e,t){return Pt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qi(e,t,i,h,p,d,f,m){var g=2&t;if(!g&&"function"!=typeof e)throw new De(r);var v=h?h.length:0;if(v||(t&=-97,h=p=n),f=f===n?f:_n(vs(f),0),m=m===n?m:vs(m),v-=p?p.length:0,t&l){var y=h,x=p;h=p=n}var _=g?n:sa(e),b=[e,t,i,h,p,y,x,d,f,m];if(_&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=r==c&&8==n||r==c&&n==u&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var h=e[3];e[3]=h?Li(h,l,t[4]):l,e[4]=h?ln(e[3],a):t[4]}(l=t[5])&&(h=e[5],e[5]=h?Di(h,l,t[6]):l,e[6]=h?ln(e[5],a):t[6]);(l=t[7])&&(e[7]=l);r&c&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(b,_),e=b[0],t=b[1],i=b[2],h=b[3],p=b[4],!(m=b[9]=b[9]===n?g?0:e.length:_n(b[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||t==o?function(e,t,r){var i=Gi(e);return function a(){for(var o=arguments.length,s=we(o),l=o,c=ca(a);l--;)s[l]=arguments[l];var u=o<3&&s[0]!==c&&s[o-1]!==c?[]:ln(s,c);return(o-=u.length)<r?$i(e,t,Ui,a.placeholder,n,s,u,n,n,r-o):Mt(this&&this!==ht&&this instanceof a?i:e,this,s)}}(e,t,m):t!=s&&33!=t||p.length?Ui.apply(n,b):function(e,t,n,r){var i=1&t,a=Gi(e);return function t(){for(var o=-1,s=arguments.length,l=-1,c=r.length,u=we(c+s),h=this&&this!==ht&&this instanceof t?a:e;++l<c;)u[l]=r[l];for(;s--;)u[l++]=arguments[++o];return Mt(h,i?n:this,u)}}(e,t,i,h);else var w=function(e,t,n){var r=1&t,i=Gi(e);return function t(){return(this&&this!==ht&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,i);return Ba((_?ni:Oa)(w,b),e,t)}function ea(e,t,r,i){return e===n||jo(e,Re[r])&&!Ne.call(i,r)?t:e}function ta(e,t,r,i,a,o){return rs(e)&&rs(t)&&(o.set(t,e),Hr(e,t,n,ta,o),o.delete(t)),e}function na(e){return ss(e)?n:e}function ra(e,t,r,i,a,o){var s=1&r,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(e),h=o.get(t);if(u&&h)return u==t&&h==e;var p=-1,d=!0,f=2&r?new Yn:n;for(o.set(e,t),o.set(t,e);++p<l;){var m=e[p],g=t[p];if(i)var v=s?i(g,m,p,t,e,o):i(m,g,p,e,t,o);if(v!==n){if(v)continue;d=!1;break}if(f){if(!Bt(t,(function(e,t){if(!Zt(f,t)&&(m===e||a(m,e,r,i,o)))return f.push(t)}))){d=!1;break}}else if(m!==g&&!a(m,g,r,i,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function ia(e){return Ia(Aa(e,n,Ja),e+"")}function aa(e){return Er(e,Is,fa)}function oa(e){return Er(e,Bs,ma)}var sa=On?function(e){return On.get(e)}:hl;function la(e){for(var t=e.name+"",n=Rn[t],r=Ne.call(Rn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}function ca(e){return(Ne.call(Un,"placeholder")?Un:e).placeholder}function ua(){var e=Un.iteratee||sl;return e=e===sl?kr:e,arguments.length?e(arguments[0],arguments[1]):e}function ha(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function pa(e){for(var t=Is(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ea(i)]}return t}function da(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Nr(r)?r:n}var fa=Ht?function(e){return null==e?[]:(e=Ce(e),At(Ht(e),(function(t){return $e.call(e,t)})))}:yl,ma=Ht?function(e){for(var t=[];e;)Ot(t,fa(e)),e=Je(e);return t}:yl,ga=Cr;function va(e,t,n){for(var r=-1,i=(t=bi(t,e)).length,a=!1;++r<i;){var o=Ga(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&ns(i)&&_a(o,i)&&(Jo(e)||qo(e))}function ya(e){return"function"!=typeof e.constructor||Ta(e)?{}:jn(Je(e))}function xa(e){return Jo(e)||qo(e)||!!(et&&e&&e[et])}function _a(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function ba(e,t,n){if(!rs(n))return!1;var r=typeof t;return!!("number"==r?$o(n)&&_a(t,n.length):"string"==r&&t in n)&&jo(n[t],e)}function wa(e,t){if(Jo(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!hs(e))||(ee.test(e)||!Q.test(e)||null!=t&&e in Ce(t))}function Ma(e){var t=la(e),n=Un[t];if("function"!=typeof n||!(t in qn.prototype))return!1;if(e===n)return!0;var r=sa(n);return!!r&&e===r[0]}(En&&ga(new En(new ArrayBuffer(1)))!=R||Cn&&ga(new Cn)!=M||An&&ga(An.resolve())!=E||Ln&&ga(new Ln)!=A||Dn&&ga(new Dn)!=P)&&(ga=function(e){var t=Cr(e),r=t==T?e.constructor:n,i=r?Va(r):"";if(i)switch(i){case In:return R;case Bn:return M;case Nn:return E;case kn:return A;case Fn:return P}return t});var Sa=Ie?es:xl;function Ta(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Re)}function Ea(e){return e==e&&!rs(e)}function Ca(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in Ce(r)))}}function Aa(e,t,r){return t=_n(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=_n(n.length-t,0),o=we(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=we(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),Mt(e,this,s)}}function La(e,t){return t.length<2?e:Tr(e,ai(t,0,-1))}function Da(e,t){for(var r=e.length,i=bn(t.length,r),a=Pi(e);i--;){var o=t[i];e[i]=_a(o,r)?a[o]:n}return e}function Pa(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Oa=Na(ni),Ra=mt||function(e,t){return ht.setTimeout(e,t)},Ia=Na(ri);function Ba(e,t,n){var r=t+"";return Ia(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Tt(m,(function(n){var r="_."+n[0];t&n[1]&&!Lt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(le):[]}(r),n)))}function Na(e){var t=0,r=0;return function(){var i=wn(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ka(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=Yr(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var Fa=function(e){var t=ko(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(te,(function(e,n,r,i){t.push(r?i.replace(he,"$1"):n||e)})),t}));function Ga(e){if("string"==typeof e||hs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Va(e){if(null!=e){try{return Be.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function za(e){if(e instanceof qn)return e.clone();var t=new Wn(e.__wrapped__,e.__chain__);return t.__actions__=Pi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ua=Kr((function(e,t){return Yo(e)?dr(e,xr(t,1,Yo,!0)):[]})),ja=Kr((function(e,t){var r=Ka(t);return Yo(r)&&(r=n),Yo(e)?dr(e,xr(t,1,Yo,!0),ua(r,2)):[]})),Ha=Kr((function(e,t){var r=Ka(t);return Yo(r)&&(r=n),Yo(e)?dr(e,xr(t,1,Yo,!0),n,r):[]}));function Wa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=_n(r+i,0)),Ft(e,ua(t,3),i)}function qa(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=vs(r),a=r<0?_n(i+a,0):bn(a,i-1)),Ft(e,ua(t,3),a,!0)}function Ja(e){return(null==e?0:e.length)?xr(e,1):[]}function Xa(e){return e&&e.length?e[0]:n}var $a=Kr((function(e){var t=Pt(e,xi);return t.length&&t[0]===e[0]?Pr(t):[]})),Ya=Kr((function(e){var t=Ka(e),r=Pt(e,xi);return t===Ka(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Pr(r,ua(t,2)):[]})),Za=Kr((function(e){var t=Ka(e),r=Pt(e,xi);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Pr(r,n,t):[]}));function Ka(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Qa=Kr(eo);function eo(e,t){return e&&e.length&&t&&t.length?Xr(e,t):e}var to=ia((function(e,t){var n=null==e?0:e.length,r=lr(e,t);return $r(e,Pt(t,(function(e){return _a(e,n)?+e:e})).sort(Ai)),r}));function no(e){return null==e?e:Tn.call(e)}var ro=Kr((function(e){return pi(xr(e,1,Yo,!0))})),io=Kr((function(e){var t=Ka(e);return Yo(t)&&(t=n),pi(xr(e,1,Yo,!0),ua(t,2))})),ao=Kr((function(e){var t=Ka(e);return t="function"==typeof t?t:n,pi(xr(e,1,Yo,!0),n,t)}));function oo(e){if(!e||!e.length)return[];var t=0;return e=At(e,(function(e){if(Yo(e))return t=_n(e.length,t),!0})),Jt(t,(function(t){return Pt(e,jt(t))}))}function so(e,t){if(!e||!e.length)return[];var r=oo(e);return null==t?r:Pt(r,(function(e){return Mt(t,n,e)}))}var lo=Kr((function(e,t){return Yo(e)?dr(e,t):[]})),co=Kr((function(e){return vi(At(e,Yo))})),uo=Kr((function(e){var t=Ka(e);return Yo(t)&&(t=n),vi(At(e,Yo),ua(t,2))})),ho=Kr((function(e){var t=Ka(e);return t="function"==typeof t?t:n,vi(At(e,Yo),n,t)})),po=Kr(oo);var fo=Kr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,so(e,r)}));function mo(e){var t=Un(e);return t.__chain__=!0,t}function go(e,t){return t(e)}var vo=ia((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return lr(t,e)};return!(t>1||this.__actions__.length)&&i instanceof qn&&_a(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:go,args:[a],thisArg:n}),new Wn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(a)}));var yo=Ri((function(e,t,n){Ne.call(e,n)?++e[n]:sr(e,n,1)}));var xo=Vi(Wa),_o=Vi(qa);function bo(e,t){return(Jo(e)?Tt:fr)(e,ua(t,3))}function wo(e,t){return(Jo(e)?Et:mr)(e,ua(t,3))}var Mo=Ri((function(e,t,n){Ne.call(e,n)?e[n].push(t):sr(e,n,[t])}));var So=Kr((function(e,t,n){var r=-1,i="function"==typeof t,a=$o(e)?we(e.length):[];return fr(e,(function(e){a[++r]=i?Mt(t,e,n):Or(e,t,n)})),a})),To=Ri((function(e,t,n){sr(e,n,t)}));function Eo(e,t){return(Jo(e)?Pt:zr)(e,ua(t,3))}var Co=Ri((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ao=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ba(e,t[0],t[1])?t=[]:n>2&&ba(t[0],t[1],t[2])&&(t=[t[0]]),qr(e,xr(t,1),[])})),Lo=dt||function(){return ht.Date.now()};function Do(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Qi(e,c,n,n,n,n,t)}function Po(e,t){var i;if("function"!=typeof t)throw new De(r);return e=vs(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Oo=Kr((function(e,t,n){var r=1;if(n.length){var i=ln(n,ca(Oo));r|=s}return Qi(e,r,t,n,i)})),Ro=Kr((function(e,t,n){var r=3;if(n.length){var i=ln(n,ca(Ro));r|=s}return Qi(t,r,e,n,i)}));function Io(e,t,i){var a,o,s,l,c,u,h=0,p=!1,d=!1,f=!0;if("function"!=typeof e)throw new De(r);function m(t){var r=a,i=o;return a=o=n,h=t,l=e.apply(i,r)}function g(e){return h=e,c=Ra(y,t),p?m(e):l}function v(e){var r=e-u;return u===n||r>=t||r<0||d&&e-h>=s}function y(){var e=Lo();if(v(e))return x(e);c=Ra(y,function(e){var n=t-(e-u);return d?bn(n,s-(e-h)):n}(e))}function x(e){return c=n,f&&a?m(e):(a=o=n,l)}function _(){var e=Lo(),r=v(e);if(a=arguments,o=this,u=e,r){if(c===n)return g(u);if(d)return Si(c),c=Ra(y,t),m(u)}return c===n&&(c=Ra(y,t)),l}return t=xs(t)||0,rs(i)&&(p=!!i.leading,s=(d="maxWait"in i)?_n(xs(i.maxWait)||0,t):s,f="trailing"in i?!!i.trailing:f),_.cancel=function(){c!==n&&Si(c),h=0,a=u=o=c=n},_.flush=function(){return c===n?l:x(Lo())},_}var Bo=Kr((function(e,t){return pr(e,1,t)})),No=Kr((function(e,t,n){return pr(e,xs(t)||0,n)}));function ko(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new De(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(ko.Cache||$n),n}function Fo(e){if("function"!=typeof e)throw new De(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ko.Cache=$n;var Go=wi((function(e,t){var n=(t=1==t.length&&Jo(t[0])?Pt(t[0],$t(ua())):Pt(xr(t,1),$t(ua()))).length;return Kr((function(r){for(var i=-1,a=bn(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return Mt(e,this,r)}))})),Vo=Kr((function(e,t){var r=ln(t,ca(Vo));return Qi(e,s,n,t,r)})),zo=Kr((function(e,t){var r=ln(t,ca(zo));return Qi(e,l,n,t,r)})),Uo=ia((function(e,t){return Qi(e,u,n,n,n,t)}));function jo(e,t){return e===t||e!=e&&t!=t}var Ho=Xi(Ar),Wo=Xi((function(e,t){return e>=t})),qo=Rr(function(){return arguments}())?Rr:function(e){return is(e)&&Ne.call(e,"callee")&&!$e.call(e,"callee")},Jo=we.isArray,Xo=vt?$t(vt):function(e){return is(e)&&Cr(e)==O};function $o(e){return null!=e&&ns(e.length)&&!es(e)}function Yo(e){return is(e)&&$o(e)}var Zo=gn||xl,Ko=yt?$t(yt):function(e){return is(e)&&Cr(e)==x};function Qo(e){if(!is(e))return!1;var t=Cr(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ss(e)}function es(e){if(!rs(e))return!1;var t=Cr(e);return t==b||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ts(e){return"number"==typeof e&&e==vs(e)}function ns(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function rs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function is(e){return null!=e&&"object"==typeof e}var as=xt?$t(xt):function(e){return is(e)&&ga(e)==M};function os(e){return"number"==typeof e||is(e)&&Cr(e)==S}function ss(e){if(!is(e)||Cr(e)!=T)return!1;var t=Je(e);if(null===t)return!0;var n=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Be.call(n)==Ve}var ls=_t?$t(_t):function(e){return is(e)&&Cr(e)==C};var cs=bt?$t(bt):function(e){return is(e)&&ga(e)==A};function us(e){return"string"==typeof e||!Jo(e)&&is(e)&&Cr(e)==L}function hs(e){return"symbol"==typeof e||is(e)&&Cr(e)==D}var ps=wt?$t(wt):function(e){return is(e)&&ns(e.length)&&!!it[Cr(e)]};var ds=Xi(Vr),fs=Xi((function(e,t){return e<=t}));function ms(e){if(!e)return[];if($o(e))return us(e)?pn(e):Pi(e);if(ot&&e[ot])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[ot]());var t=ga(e);return(t==M?on:t==A?cn:js)(e)}function gs(e){return e?(e=xs(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vs(e){var t=gs(e),n=t%1;return t==t?n?t-n:t:0}function ys(e){return e?cr(vs(e),0,f):0}function xs(e){if("number"==typeof e)return e;if(hs(e))return d;if(rs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=rs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=me.test(e);return n||ve.test(e)?lt(e.slice(2),n?2:8):fe.test(e)?d:+e}function _s(e){return Oi(e,Bs(e))}function bs(e){return null==e?"":hi(e)}var ws=Ii((function(e,t){if(Ta(t)||$o(t))Oi(t,Is(t),e);else for(var n in t)Ne.call(t,n)&&rr(e,n,t[n])})),Ms=Ii((function(e,t){Oi(t,Bs(t),e)})),Ss=Ii((function(e,t,n,r){Oi(t,Bs(t),e,r)})),Ts=Ii((function(e,t,n,r){Oi(t,Is(t),e,r)})),Es=ia(lr);var Cs=Kr((function(e,t){e=Ce(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&ba(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=Bs(o),l=-1,c=s.length;++l<c;){var u=s[l],h=e[u];(h===n||jo(h,Re[u])&&!Ne.call(e,u))&&(e[u]=o[u])}return e})),As=Kr((function(e){return e.push(n,ta),Mt(ks,n,e)}));function Ls(e,t,r){var i=null==e?n:Tr(e,t);return i===n?r:i}function Ds(e,t){return null!=e&&va(e,t,Dr)}var Ps=ji((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ge.call(t)),e[t]=n}),rl(ol)),Os=ji((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ge.call(t)),Ne.call(e,t)?e[t].push(n):e[t]=[n]}),ua),Rs=Kr(Or);function Is(e){return $o(e)?Kn(e):Fr(e)}function Bs(e){return $o(e)?Kn(e,!0):Gr(e)}var Ns=Ii((function(e,t,n){Hr(e,t,n)})),ks=Ii((function(e,t,n,r){Hr(e,t,n,r)})),Fs=ia((function(e,t){var n={};if(null==e)return n;var r=!1;t=Pt(t,(function(t){return t=bi(t,e),r||(r=t.length>1),t})),Oi(e,oa(e),n),r&&(n=ur(n,7,na));for(var i=t.length;i--;)di(n,t[i]);return n}));var Gs=ia((function(e,t){return null==e?{}:function(e,t){return Jr(e,t,(function(t,n){return Ds(e,n)}))}(e,t)}));function Vs(e,t){if(null==e)return{};var n=Pt(oa(e),(function(e){return[e]}));return t=ua(t),Jr(e,n,(function(e,n){return t(e,n[0])}))}var zs=Ki(Is),Us=Ki(Bs);function js(e){return null==e?[]:Yt(e,Is(e))}var Hs=Fi((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return Qs(bs(e).toLowerCase())}function qs(e){return(e=bs(e))&&e.replace(xe,tn).replace(Ze,"")}var Js=Fi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Xs=Fi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),$s=ki("toLowerCase");var Ys=Fi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Zs=Fi((function(e,t,n){return e+(n?" ":"")+Qs(t)}));var Ks=Fi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Qs=ki("toUpperCase");function el(e,t,r){return e=bs(e),(t=r?n:t)===n?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var tl=Kr((function(e,t){try{return Mt(e,n,t)}catch(e){return Qo(e)?e:new Se(e)}})),nl=ia((function(e,t){return Tt(t,(function(t){t=Ga(t),sr(e,t,Oo(e[t],e))})),e}));function rl(e){return function(){return e}}var il=zi(),al=zi(!0);function ol(e){return e}function sl(e){return kr("function"==typeof e?e:ur(e,1))}var ll=Kr((function(e,t){return function(n){return Or(n,e,t)}})),cl=Kr((function(e,t){return function(n){return Or(e,n,t)}}));function ul(e,t,n){var r=Is(t),i=Sr(t,r);null!=n||rs(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Sr(t,Is(t)));var a=!(rs(n)&&"chain"in n&&!n.chain),o=es(e);return Tt(i,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),i=n.__actions__=Pi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ot([this.value()],arguments))})})),e}function hl(){}var pl=Wi(Pt),dl=Wi(Ct),fl=Wi(Bt);function ml(e){return wa(e)?jt(Ga(e)):function(e){return function(t){return Tr(t,e)}}(e)}var gl=Ji(),vl=Ji(!0);function yl(){return[]}function xl(){return!1}var _l=Hi((function(e,t){return e+t}),0),bl=Yi("ceil"),wl=Hi((function(e,t){return e/t}),1),Ml=Yi("floor");var Sl,Tl=Hi((function(e,t){return e*t}),1),El=Yi("round"),Cl=Hi((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new De(r);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=Do,Un.assign=ws,Un.assignIn=Ms,Un.assignInWith=Ss,Un.assignWith=Ts,Un.at=Es,Un.before=Po,Un.bind=Oo,Un.bindAll=nl,Un.bindKey=Ro,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Jo(e)?e:[e]},Un.chain=mo,Un.chunk=function(e,t,r){t=(r?ba(e,t,r):t===n)?1:_n(vs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=we(gt(i/t));a<i;)s[o++]=ai(e,a,a+=t);return s},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=we(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Ot(Jo(n)?Pi(n):[n],xr(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=ua();return e=t?Pt(e,(function(e){if("function"!=typeof e[1])throw new De(r);return[n(e[0]),e[1]]})):[],Kr((function(n){for(var r=-1;++r<t;){var i=e[r];if(Mt(i[0],this,n))return Mt(i[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=Is(e);return function(n){return hr(n,e,t)}}(ur(e,1))},Un.constant=rl,Un.countBy=yo,Un.create=function(e,t){var n=jn(e);return null==t?n:or(n,t)},Un.curry=function e(t,r,i){var a=Qi(t,8,n,n,n,n,n,r=i?n:r);return a.placeholder=e.placeholder,a},Un.curryRight=function e(t,r,i){var a=Qi(t,o,n,n,n,n,n,r=i?n:r);return a.placeholder=e.placeholder,a},Un.debounce=Io,Un.defaults=Cs,Un.defaultsDeep=As,Un.defer=Bo,Un.delay=No,Un.difference=Ua,Un.differenceBy=ja,Un.differenceWith=Ha,Un.drop=function(e,t,r){var i=null==e?0:e.length;return i?ai(e,(t=r||t===n?1:vs(t))<0?0:t,i):[]},Un.dropRight=function(e,t,r){var i=null==e?0:e.length;return i?ai(e,0,(t=i-(t=r||t===n?1:vs(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?mi(e,ua(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?mi(e,ua(t,3),!0):[]},Un.fill=function(e,t,r,i){var a=null==e?0:e.length;return a?(r&&"number"!=typeof r&&ba(e,t,r)&&(r=0,i=a),function(e,t,r,i){var a=e.length;for((r=vs(r))<0&&(r=-r>a?0:a+r),(i=i===n||i>a?a:vs(i))<0&&(i+=a),i=r>i?0:ys(i);r<i;)e[r++]=t;return e}(e,t,r,i)):[]},Un.filter=function(e,t){return(Jo(e)?At:yr)(e,ua(t,3))},Un.flatMap=function(e,t){return xr(Eo(e,t),1)},Un.flatMapDeep=function(e,t){return xr(Eo(e,t),h)},Un.flatMapDepth=function(e,t,r){return r=r===n?1:vs(r),xr(Eo(e,t),r)},Un.flatten=Ja,Un.flattenDeep=function(e){return(null==e?0:e.length)?xr(e,h):[]},Un.flattenDepth=function(e,t){return(null==e?0:e.length)?xr(e,t=t===n?1:vs(t)):[]},Un.flip=function(e){return Qi(e,512)},Un.flow=il,Un.flowRight=al,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Un.functions=function(e){return null==e?[]:Sr(e,Is(e))},Un.functionsIn=function(e){return null==e?[]:Sr(e,Bs(e))},Un.groupBy=Mo,Un.initial=function(e){return(null==e?0:e.length)?ai(e,0,-1):[]},Un.intersection=$a,Un.intersectionBy=Ya,Un.intersectionWith=Za,Un.invert=Ps,Un.invertBy=Os,Un.invokeMap=So,Un.iteratee=sl,Un.keyBy=To,Un.keys=Is,Un.keysIn=Bs,Un.map=Eo,Un.mapKeys=function(e,t){var n={};return t=ua(t,3),wr(e,(function(e,r,i){sr(n,t(e,r,i),e)})),n},Un.mapValues=function(e,t){var n={};return t=ua(t,3),wr(e,(function(e,r,i){sr(n,r,t(e,r,i))})),n},Un.matches=function(e){return Ur(ur(e,1))},Un.matchesProperty=function(e,t){return jr(e,ur(t,1))},Un.memoize=ko,Un.merge=Ns,Un.mergeWith=ks,Un.method=ll,Un.methodOf=cl,Un.mixin=ul,Un.negate=Fo,Un.nthArg=function(e){return e=vs(e),Kr((function(t){return Wr(t,e)}))},Un.omit=Fs,Un.omitBy=function(e,t){return Vs(e,Fo(ua(t)))},Un.once=function(e){return Po(2,e)},Un.orderBy=function(e,t,r,i){return null==e?[]:(Jo(t)||(t=null==t?[]:[t]),Jo(r=i?n:r)||(r=null==r?[]:[r]),qr(e,t,r))},Un.over=pl,Un.overArgs=Go,Un.overEvery=dl,Un.overSome=fl,Un.partial=Vo,Un.partialRight=zo,Un.partition=Co,Un.pick=Gs,Un.pickBy=Vs,Un.property=ml,Un.propertyOf=function(e){return function(t){return null==e?n:Tr(e,t)}},Un.pull=Qa,Un.pullAll=eo,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Xr(e,t,ua(n,2)):e},Un.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Xr(e,t,n,r):e},Un.pullAt=to,Un.range=gl,Un.rangeRight=vl,Un.rearg=Uo,Un.reject=function(e,t){return(Jo(e)?At:yr)(e,Fo(ua(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],a=e.length;for(t=ua(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return $r(e,i),n},Un.rest=function(e,t){if("function"!=typeof e)throw new De(r);return Kr(e,t=t===n?t:vs(t))},Un.reverse=no,Un.sampleSize=function(e,t,r){return t=(r?ba(e,t,r):t===n)?1:vs(t),(Jo(e)?er:ei)(e,t)},Un.set=function(e,t,n){return null==e?e:ti(e,t,n)},Un.setWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:ti(e,t,r,i)},Un.shuffle=function(e){return(Jo(e)?tr:ii)(e)},Un.slice=function(e,t,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&ba(e,t,r)?(t=0,r=i):(t=null==t?0:vs(t),r=r===n?i:vs(r)),ai(e,t,r)):[]},Un.sortBy=Ao,Un.sortedUniq=function(e){return e&&e.length?ci(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?ci(e,ua(t,2)):[]},Un.split=function(e,t,r){return r&&"number"!=typeof r&&ba(e,t,r)&&(t=r=n),(r=r===n?f:r>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!ls(t))&&!(t=hi(t))&&an(e)?Mi(pn(e),0,r):e.split(t,r):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new De(r);return t=null==t?0:_n(vs(t),0),Kr((function(n){var r=n[t],i=Mi(n,0,t);return r&&Ot(i,r),Mt(e,this,i)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?ai(e,1,t):[]},Un.take=function(e,t,r){return e&&e.length?ai(e,0,(t=r||t===n?1:vs(t))<0?0:t):[]},Un.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?ai(e,(t=i-(t=r||t===n?1:vs(t)))<0?0:t,i):[]},Un.takeRightWhile=function(e,t){return e&&e.length?mi(e,ua(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?mi(e,ua(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new De(r);return rs(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),Io(e,t,{leading:i,maxWait:t,trailing:a})},Un.thru=go,Un.toArray=ms,Un.toPairs=zs,Un.toPairsIn=Us,Un.toPath=function(e){return Jo(e)?Pt(e,Ga):hs(e)?[e]:Pi(Fa(bs(e)))},Un.toPlainObject=_s,Un.transform=function(e,t,n){var r=Jo(e),i=r||Zo(e)||ps(e);if(t=ua(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:rs(e)&&es(a)?jn(Je(e)):{}}return(i?Tt:wr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Un.unary=function(e){return Do(e,1)},Un.union=ro,Un.unionBy=io,Un.unionWith=ao,Un.uniq=function(e){return e&&e.length?pi(e):[]},Un.uniqBy=function(e,t){return e&&e.length?pi(e,ua(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?pi(e,n,t):[]},Un.unset=function(e,t){return null==e||di(e,t)},Un.unzip=oo,Un.unzipWith=so,Un.update=function(e,t,n){return null==e?e:fi(e,t,_i(n))},Un.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:fi(e,t,_i(r),i)},Un.values=js,Un.valuesIn=function(e){return null==e?[]:Yt(e,Bs(e))},Un.without=lo,Un.words=el,Un.wrap=function(e,t){return Vo(_i(t),e)},Un.xor=co,Un.xorBy=uo,Un.xorWith=ho,Un.zip=po,Un.zipObject=function(e,t){return yi(e||[],t||[],rr)},Un.zipObjectDeep=function(e,t){return yi(e||[],t||[],ti)},Un.zipWith=fo,Un.entries=zs,Un.entriesIn=Us,Un.extend=Ms,Un.extendWith=Ss,ul(Un,Un),Un.add=_l,Un.attempt=tl,Un.camelCase=Hs,Un.capitalize=Ws,Un.ceil=bl,Un.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=xs(r))==r?r:0),t!==n&&(t=(t=xs(t))==t?t:0),cr(xs(e),t,r)},Un.clone=function(e){return ur(e,4)},Un.cloneDeep=function(e){return ur(e,5)},Un.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:n)},Un.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:n)},Un.conformsTo=function(e,t){return null==t||hr(e,t,Is(t))},Un.deburr=qs,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=wl,Un.endsWith=function(e,t,r){e=bs(e),t=hi(t);var i=e.length,a=r=r===n?i:cr(vs(r),0,i);return(r-=t.length)>=0&&e.slice(r,a)==t},Un.eq=jo,Un.escape=function(e){return(e=bs(e))&&$.test(e)?e.replace(J,nn):e},Un.escapeRegExp=function(e){return(e=bs(e))&&re.test(e)?e.replace(ne,"\\$&"):e},Un.every=function(e,t,r){var i=Jo(e)?Ct:gr;return r&&ba(e,t,r)&&(t=n),i(e,ua(t,3))},Un.find=xo,Un.findIndex=Wa,Un.findKey=function(e,t){return kt(e,ua(t,3),wr)},Un.findLast=_o,Un.findLastIndex=qa,Un.findLastKey=function(e,t){return kt(e,ua(t,3),Mr)},Un.floor=Ml,Un.forEach=bo,Un.forEachRight=wo,Un.forIn=function(e,t){return null==e?e:_r(e,ua(t,3),Bs)},Un.forInRight=function(e,t){return null==e?e:br(e,ua(t,3),Bs)},Un.forOwn=function(e,t){return e&&wr(e,ua(t,3))},Un.forOwnRight=function(e,t){return e&&Mr(e,ua(t,3))},Un.get=Ls,Un.gt=Ho,Un.gte=Wo,Un.has=function(e,t){return null!=e&&va(e,t,Lr)},Un.hasIn=Ds,Un.head=Xa,Un.identity=ol,Un.includes=function(e,t,n,r){e=$o(e)?e:js(e),n=n&&!r?vs(n):0;var i=e.length;return n<0&&(n=_n(i+n,0)),us(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Gt(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=_n(r+i,0)),Gt(e,t,i)},Un.inRange=function(e,t,r){return t=gs(t),r===n?(r=t,t=0):r=gs(r),function(e,t,n){return e>=bn(t,n)&&e<_n(t,n)}(e=xs(e),t,r)},Un.invoke=Rs,Un.isArguments=qo,Un.isArray=Jo,Un.isArrayBuffer=Xo,Un.isArrayLike=$o,Un.isArrayLikeObject=Yo,Un.isBoolean=function(e){return!0===e||!1===e||is(e)&&Cr(e)==y},Un.isBuffer=Zo,Un.isDate=Ko,Un.isElement=function(e){return is(e)&&1===e.nodeType&&!ss(e)},Un.isEmpty=function(e){if(null==e)return!0;if($o(e)&&(Jo(e)||"string"==typeof e||"function"==typeof e.splice||Zo(e)||ps(e)||qo(e)))return!e.length;var t=ga(e);if(t==M||t==A)return!e.size;if(Ta(e))return!Fr(e).length;for(var n in e)if(Ne.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return Ir(e,t)},Un.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return i===n?Ir(e,t,n,r):!!i},Un.isError=Qo,Un.isFinite=function(e){return"number"==typeof e&&vn(e)},Un.isFunction=es,Un.isInteger=ts,Un.isLength=ns,Un.isMap=as,Un.isMatch=function(e,t){return e===t||Br(e,t,pa(t))},Un.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Br(e,t,pa(t),r)},Un.isNaN=function(e){return os(e)&&e!=+e},Un.isNative=function(e){if(Sa(e))throw new Se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Nr(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=os,Un.isObject=rs,Un.isObjectLike=is,Un.isPlainObject=ss,Un.isRegExp=ls,Un.isSafeInteger=function(e){return ts(e)&&e>=-9007199254740991&&e<=p},Un.isSet=cs,Un.isString=us,Un.isSymbol=hs,Un.isTypedArray=ps,Un.isUndefined=function(e){return e===n},Un.isWeakMap=function(e){return is(e)&&ga(e)==P},Un.isWeakSet=function(e){return is(e)&&"[object WeakSet]"==Cr(e)},Un.join=function(e,t){return null==e?"":yn.call(e,t)},Un.kebabCase=Js,Un.last=Ka,Un.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=(a=vs(r))<0?_n(i+a,0):bn(a,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Ft(e,zt,a,!0)},Un.lowerCase=Xs,Un.lowerFirst=$s,Un.lt=ds,Un.lte=fs,Un.max=function(e){return e&&e.length?vr(e,ol,Ar):n},Un.maxBy=function(e,t){return e&&e.length?vr(e,ua(t,2),Ar):n},Un.mean=function(e){return Ut(e,ol)},Un.meanBy=function(e,t){return Ut(e,ua(t,2))},Un.min=function(e){return e&&e.length?vr(e,ol,Vr):n},Un.minBy=function(e,t){return e&&e.length?vr(e,ua(t,2),Vr):n},Un.stubArray=yl,Un.stubFalse=xl,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=Tl,Un.nth=function(e,t){return e&&e.length?Wr(e,vs(t)):n},Un.noConflict=function(){return ht._===this&&(ht._=ze),this},Un.noop=hl,Un.now=Lo,Un.pad=function(e,t,n){e=bs(e);var r=(t=vs(t))?hn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return qi(Nt(i),n)+e+qi(gt(i),n)},Un.padEnd=function(e,t,n){e=bs(e);var r=(t=vs(t))?hn(e):0;return t&&r<t?e+qi(t-r,n):e},Un.padStart=function(e,t,n){e=bs(e);var r=(t=vs(t))?hn(e):0;return t&&r<t?qi(t-r,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Mn(bs(e).replace(ie,""),t||0)},Un.random=function(e,t,r){if(r&&"boolean"!=typeof r&&ba(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=gs(e),t===n?(t=e,e=0):t=gs(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=Sn();return bn(e+a*(t-e+st("1e-"+((a+"").length-1))),t)}return Yr(e,t)},Un.reduce=function(e,t,n){var r=Jo(e)?Rt:Wt,i=arguments.length<3;return r(e,ua(t,4),n,i,fr)},Un.reduceRight=function(e,t,n){var r=Jo(e)?It:Wt,i=arguments.length<3;return r(e,ua(t,4),n,i,mr)},Un.repeat=function(e,t,r){return t=(r?ba(e,t,r):t===n)?1:vs(t),Zr(bs(e),t)},Un.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,r){var i=-1,a=(t=bi(t,e)).length;for(a||(a=1,e=n);++i<a;){var o=null==e?n:e[Ga(t[i])];o===n&&(i=a,o=r),e=es(o)?o.call(e):o}return e},Un.round=El,Un.runInContext=e,Un.sample=function(e){return(Jo(e)?Qn:Qr)(e)},Un.size=function(e){if(null==e)return 0;if($o(e))return us(e)?hn(e):e.length;var t=ga(e);return t==M||t==A?e.size:Fr(e).length},Un.snakeCase=Ys,Un.some=function(e,t,r){var i=Jo(e)?Bt:oi;return r&&ba(e,t,r)&&(t=n),i(e,ua(t,3))},Un.sortedIndex=function(e,t){return si(e,t)},Un.sortedIndexBy=function(e,t,n){return li(e,t,ua(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=si(e,t);if(r<n&&jo(e[r],t))return r}return-1},Un.sortedLastIndex=function(e,t){return si(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return li(e,t,ua(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=si(e,t,!0)-1;if(jo(e[n],t))return n}return-1},Un.startCase=Zs,Un.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:cr(vs(n),0,e.length),t=hi(t),e.slice(n,n+t.length)==t},Un.subtract=Cl,Un.sum=function(e){return e&&e.length?qt(e,ol):0},Un.sumBy=function(e,t){return e&&e.length?qt(e,ua(t,2)):0},Un.template=function(e,t,r){var i=Un.templateSettings;r&&ba(e,t,r)&&(t=n),e=bs(e),t=Ss({},t,i,ea);var a,o,s=Ss({},t.imports,i.imports,ea),l=Is(s),c=Yt(s,l),u=0,h=t.interpolate||_e,p="__p += '",d=Ae((t.escape||_e).source+"|"+h.source+"|"+(h===K?pe:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),f="//# sourceURL="+(Ne.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(d,(function(t,n,r,i,s,l){return r||(r=i),p+=e.slice(u,l).replace(be,rn),n&&(a=!0,p+="' +\n__e("+n+") +\n'"),s&&(o=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),p+="';\n";var m=Ne.call(t,"variable")&&t.variable;if(m){if(ue.test(m))throw new Se("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(o?p.replace(j,""):p).replace(H,"$1").replace(W,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=tl((function(){return Te(l,f+"return "+p).apply(n,c)}));if(g.source=p,Qo(g))throw g;return g},Un.times=function(e,t){if((e=vs(e))<1||e>p)return[];var n=f,r=bn(e,f);t=ua(t),e-=f;for(var i=Jt(r,t);++n<e;)t(n);return i},Un.toFinite=gs,Un.toInteger=vs,Un.toLength=ys,Un.toLower=function(e){return bs(e).toLowerCase()},Un.toNumber=xs,Un.toSafeInteger=function(e){return e?cr(vs(e),-9007199254740991,p):0===e?e:0},Un.toString=bs,Un.toUpper=function(e){return bs(e).toUpperCase()},Un.trim=function(e,t,r){if((e=bs(e))&&(r||t===n))return Xt(e);if(!e||!(t=hi(t)))return e;var i=pn(e),a=pn(t);return Mi(i,Kt(i,a),Qt(i,a)+1).join("")},Un.trimEnd=function(e,t,r){if((e=bs(e))&&(r||t===n))return e.slice(0,dn(e)+1);if(!e||!(t=hi(t)))return e;var i=pn(e);return Mi(i,0,Qt(i,pn(t))+1).join("")},Un.trimStart=function(e,t,r){if((e=bs(e))&&(r||t===n))return e.replace(ie,"");if(!e||!(t=hi(t)))return e;var i=pn(e);return Mi(i,Kt(i,pn(t))).join("")},Un.truncate=function(e,t){var r=30,i="...";if(rs(t)){var a="separator"in t?t.separator:a;r="length"in t?vs(t.length):r,i="omission"in t?hi(t.omission):i}var o=(e=bs(e)).length;if(an(e)){var s=pn(e);o=s.length}if(r>=o)return e;var l=r-hn(i);if(l<1)return i;var c=s?Mi(s,0,l).join(""):e.slice(0,l);if(a===n)return c+i;if(s&&(l+=c.length-l),ls(a)){if(e.slice(l).search(a)){var u,h=c;for(a.global||(a=Ae(a.source,bs(de.exec(a))+"g")),a.lastIndex=0;u=a.exec(h);)var p=u.index;c=c.slice(0,p===n?l:p)}}else if(e.indexOf(hi(a),l)!=l){var d=c.lastIndexOf(a);d>-1&&(c=c.slice(0,d))}return c+i},Un.unescape=function(e){return(e=bs(e))&&X.test(e)?e.replace(q,fn):e},Un.uniqueId=function(e){var t=++ke;return bs(e)+t},Un.upperCase=Ks,Un.upperFirst=Qs,Un.each=bo,Un.eachRight=wo,Un.first=Xa,ul(Un,(Sl={},wr(Un,(function(e,t){Ne.call(Un.prototype,t)||(Sl[t]=e)})),Sl),{chain:!1}),Un.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),Tt(["drop","take"],(function(e,t){qn.prototype[e]=function(r){r=r===n?1:_n(vs(r),0);var i=this.__filtered__&&!t?new qn(this):this.clone();return i.__filtered__?i.__takeCount__=bn(r,i.__takeCount__):i.__views__.push({size:bn(r,f),type:e+(i.__dir__<0?"Right":"")}),i},qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ua(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Tt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");qn.prototype[e]=function(){return this[n](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");qn.prototype[e]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(ol)},qn.prototype.find=function(e){return this.filter(e).head()},qn.prototype.findLast=function(e){return this.reverse().find(e)},qn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new qn(this):this.map((function(n){return Or(n,e,t)}))})),qn.prototype.reject=function(e){return this.filter(Fo(ua(e)))},qn.prototype.slice=function(e,t){e=vs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new qn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=vs(t))<0?r.dropRight(-t):r.take(t-e)),r)},qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qn.prototype.toArray=function(){return this.take(f)},wr(qn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=Un[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);a&&(Un.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,l=t instanceof qn,c=s[0],u=l||Jo(t),h=function(e){var t=a.apply(Un,Ot([e],s));return i&&p?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,d=!!this.__actions__.length,f=o&&!p,m=l&&!d;if(!o&&u){t=m?t:new qn(this);var g=e.apply(t,s);return g.__actions__.push({func:go,args:[h],thisArg:n}),new Wn(g,p)}return f&&m?e.apply(this,s):(g=this.thru(h),f?i?g.value()[0]:g.value():g)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Jo(i)?i:[],e)}return this[n]((function(n){return t.apply(Jo(n)?n:[],e)}))}})),wr(qn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Ne.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}})),Rn[Ui(n,2).name]=[{name:"wrapper",func:n}],qn.prototype.clone=function(){var e=new qn(this.__wrapped__);return e.__actions__=Pi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Pi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Pi(this.__views__),e},qn.prototype.reverse=function(){if(this.__filtered__){var e=new qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Jo(e),r=t<0,i=n?e.length:0,a=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=bn(t,e+o);break;case"takeRight":e=_n(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,l=s-o,c=r?s:o-1,u=this.__iteratees__,h=u.length,p=0,d=bn(l,this.__takeCount__);if(!n||!r&&i==l&&d==l)return gi(e,this.__actions__);var f=[];e:for(;l--&&p<d;){for(var m=-1,g=e[c+=t];++m<h;){var v=u[m],y=v.iteratee,x=v.type,_=y(g);if(2==x)g=_;else if(!_){if(1==x)continue e;break e}}f[p++]=g}return f},Un.prototype.at=vo,Un.prototype.chain=function(){return mo(this)},Un.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===n&&(this.__values__=ms(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,r=this;r instanceof Hn;){var i=za(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qn){var t=e;return this.__actions__.length&&(t=new qn(this)),(t=t.reverse()).__actions__.push({func:go,args:[no],thisArg:n}),new Wn(t,this.__chain__)}return this.thru(no)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,ot&&(Un.prototype[ot]=function(){return this}),Un}();dt?((dt.exports=mn)._=mn,pt._=mn):ht._=mn}).call(commonjsGlobal)}));function useCanvasResizeListener(e,t,n,r,i){return void 0===n&&(n=100),void 0===r&&(r=!0),__awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){switch(a.label){case 0:return store.state.MxFun?e?store.state.isLoadCanvasResizeListene?[3,2]:(e.addEvent("addResizeEvent",(function(e){createCanvasParent(t).addEventListener("resize",(void 0)((function(t){i&&i(t),r&&e(t)}),n),!1)})),[4,dynamicImport("element-resize-event-polyfill")]):(console.error("请确保mxdrawObj参数 是通过调用MxFun.createMxObject的callback回调函数拿到的mxDraw对象"),[2]):(console.error("请先调用loadCoreCode方法! "),[2]);case 1:a.sent(),store.commit("setIsLoadCanvasResizeListene",!0),a.label=2;case 2:return[2]}}))}))}var MxFun=function(){function e(){objectMethodProxy(this,store.state.MxFun,"acutPrintf")}return e.prototype.createMxObject=function(e){var t=e.canvasId,n=void 0===t?createReandomId():t,r=e.cadFile,i=void 0===r?"":r,a=e.callback,o=e.isNewFile,s=void 0!==o&&o,l=e.useWebsocket,c=void 0!==l&&l,u=createCanvas(n),h=createCanvasParent(u);h.parentNode&&11!=h.parentNode.nodeType||document.body.appendChild(h),store.state.MxFun.createMxObject(n,i,(function(e){var t=new MxDrawObject(e);e.setMouseRightRotate(!1),e.setIniset({EnableOsnapFunction:!0}),e.addEvent("onResize",(function(){return h.tabindex=3,{width:h.clientWidth,height:h.clientHeight}})),useCanvasResizeListener(t,u),a&&a(t,{canvas:u,canvasParent:h})}),void 0,s,c)},e.prototype.setMxServer=function(e){void 0===e&&(e="ws://localhost:5090"),store.state.MxFun.setMxServer(e)},e.prototype.enablStaticLoad=function(e){store.state.MxFun.enablStaticLoad(e)},e.prototype.setStaticServer=function(e){store.state.MxFun.setStaticServer(e)},e.prototype.addCommand=function(e,t){store.state.MxFun.addCommand(e,t)},e.prototype.sendStringToExecute=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return(t=store.state.MxFun).sendStringToExecute.apply(t,__spreadArray([e],n,!1))},e.prototype.call=function(e,t,n){return store.state.MxFun.call(e,t,n)},e.prototype.getCurrentDraw=function(){return new MxDrawObject(store.state.MxFun.getCurrentDraw())},e.prototype.screenCoordLong2World=function(e){return store.state.MxFun.screenCoordLong2World(e)},e.prototype.screenCoordLong2Doc=function(e){return store.state.MxFun.screenCoordLong2Doc(e)},e.prototype.docCoordLong2Screen=function(e){return store.state.MxFun.docCoordLong2Screen(e)},e.prototype.worldCoordLong2Doc=function(e){return store.state.MxFun.worldCoordLong2Doc(e)},e.prototype.docCoordLong2World=function(e){return store.state.MxFun.docCoordLong2World(e)},e.prototype.screenCoord2World=function(e,t,n){return store.state.MxFun.screenCoord2World(e,t,n)},e.prototype.worldCoord2Screen=function(e,t,n){return store.state.MxFun.worldCoord2Screen(e,t,n)},e.prototype.docCoord2World=function(e,t,n){return store.state.MxFun.docCoord2World(e,t,n)},e.prototype.worldCoord2Doc=function(e,t,n){return store.state.MxFun.worldCoord2Doc(e,t,n)},e.prototype.screenCoord2Doc=function(e,t){return store.state.MxFun.screenCoord2Doc(e,t,0)},e.prototype.docCoord2Screen=function(e,t){return store.state.MxFun.docCoord2Screen(e,t,0)},e.prototype.updateDisplay=function(){return store.state.MxFun.updateDisplay()},e.prototype.addWindowsEvent=function(e){return store.state.MxFun.addWindowsEvent(e)},e.prototype.isRunningCommand=function(){return store.state.MxFun.isRunningCommand()},e.prototype.zoomW=function(e,t,n,r,i){return store.state.MxFun.zoomW(e,t,n,r,i)},e.prototype.showLayer=function(e,t,n){return store.state.MxFun.showLayer(e,t,n)},e.prototype.getCurrentMxCAD=function(){return store.state.MxFun.getCurrentMxCAD()},e.prototype.getQueryString=function(e){return store.state.MxFun.getQueryString(e)},e.prototype.setIniset=function(e){return store.state.MxFun.setIniset(e)},e.prototype.upDisplayForLayerData=function(e){return store.state.MxFun.upDisplayForLayerData(e)},e.prototype.initUiDataObject=function(e){return store.state.MxFun.initUiDataObject(e)},e.prototype.testMX=function(e){return 11},e.prototype.loadImageMaterial=function(e,t){return store.state.MxFun.loadImageMaterial(e,t)},e.prototype.pointInPolyline=function(e,t){return store.state.MxFun.pointInPolyline(e,t)},e.prototype.calcArea=function(e){return store.state.MxFun.calcArea(e)},e.prototype.openFile=function(e){return store.state.MxFun.openFile(e)},e}(),MxFun$1=new MxFun,MxDbImage=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pt1=new Vector3,t.pt2=new Vector3,t.imagePath="",t.isLoadMaterialFromPath=!0,t.material=null,t}return __extends(t,e),t.prototype.getTypeName=function(){return"MxDbImage"},t.prototype.worldDraw=function(e){var t=this,n=new Vector3(this.pt1.x,this.pt2.y),r=new Vector3(this.pt2.x,this.pt1.y);if(e.drawLine(this.pt1,n),e.drawLine(n,this.pt2),e.drawLine(this.pt2,r),e.drawLine(r,this.pt1),1==e.getType())if(this.material){for(var i=Math.abs(this.pt1.x-this.pt2.x),a=Math.abs(this.pt1.y-this.pt2.y),o=new PlaneGeometry(i,a),s=Math.min(this.pt1.x,this.pt2.x),l=Math.min(this.pt1.y,this.pt2.y),c=0;c<o.vertices.length;c++)o.vertices[c].x+=s+.5*i,o.vertices[c].y+=l+.5*a,o.vertices[c].z=0;var u=new Mesh(o,this.material);u.material.depthTest=!1,e.drawEntity(u)}else if(this.imagePath.length>0&&this.isLoadMaterialFromPath){var h=this;MxFun$1.loadImageMaterial("./models/img/mxcad.jpg",(function(e){t.isLoadMaterialFromPath=!1,e&&(h.setMaterial(e),h.setNeedUpdateDisplay(),MxFun$1.updateDisplay())}))}},t.prototype.setImagePath=function(e){this.imagePath=e,this.isLoadMaterialFromPath=!0,this.material=null},t.prototype.getImagePath=function(){return this.imagePath},t.prototype.setMaterial=function(e){this.material=e},t.prototype.setPoint1=function(e){this.pt1=e},t.prototype.getPoint1=function(){return this.pt1},t.prototype.setPoint2=function(e){this.pt2=e},t.prototype.getPoint2=function(){return this.pt2},t.prototype.getGripPoints=function(){var e=[];return e.push(this.pt1),e.push(this.pt2),e},t.prototype.moveGripPointsAt=function(e,t){return 0==e?this.pt1.add(t):(e=1)&&this.pt2.add(t),!0},t.prototype.dwgIn=function(e){return this.onDwgIn(e),this.pt1.copy(e.pt1),this.pt2.copy(e.pt2),this.imagePath=e.imagePath.substr(0),this.isLoadMaterialFromPath=!0,!0},t.prototype.dwgOut=function(e){return this.onDwgOut(e),e.pt1=this.pt1,e.pt2=this.pt2,e.imagePath=this.imagePath,e},t.prototype.create=function(){return new t},t}(MxDbEntity);class SVGLoader extends Loader{constructor(e){super(e),this.defaultDPI=90,this.defaultUnit="px"}load(e,t,n,r){const i=this,a=new FileLoader(i.manager);a.setPath(i.path),a.setRequestHeader(i.requestHeader),a.setWithCredentials(i.withCredentials),a.load(e,(function(n){try{t(i.parse(n))}catch(t){r?r(t):console.error(t),i.manager.itemError(e)}}),n,r)}parse(e){const t=this;function n(e,t,n,i,a,o,s,l){if(0==t||0==n)return void e.lineTo(l.x,l.y);i=i*Math.PI/180,t=Math.abs(t),n=Math.abs(n);const c=(s.x-l.x)/2,u=(s.y-l.y)/2,h=Math.cos(i)*c+Math.sin(i)*u,p=-Math.sin(i)*c+Math.cos(i)*u;let d=t*t,f=n*n;const m=h*h,g=p*p,v=m/d+g/f;if(v>1){const e=Math.sqrt(v);d=(t*=e)*t,f=(n*=e)*n}const y=d*g+f*m,x=(d*f-y)/y;let _=Math.sqrt(Math.max(0,x));a===o&&(_=-_);const b=_*t*p/n,w=-_*n*h/t,M=Math.cos(i)*b-Math.sin(i)*w+(s.x+l.x)/2,S=Math.sin(i)*b+Math.cos(i)*w+(s.y+l.y)/2,T=r(1,0,(h-b)/t,(p-w)/n),E=r((h-b)/t,(p-w)/n,(-h-b)/t,(-p-w)/n)%(2*Math.PI);e.currentPath.absellipse(M,S,t,n,T,T+E,0===o,i)}function r(e,t,n,r){const i=e*n+t*r,a=Math.sqrt(e*e+t*t)*Math.sqrt(n*n+r*r);let o=Math.acos(Math.max(-1,Math.min(1,i/a)));return e*r-t*n<0&&(o=-o),o}function i(e,t){t=Object.assign({},t);let n={};if(e.hasAttribute("class")){const t=e.getAttribute("class").split(/\s/).filter(Boolean).map((e=>e.trim()));for(let e=0;e<t.length;e++)n=Object.assign(n,d["."+t[e]])}function r(r,i,a){void 0===a&&(a=function(e){return e.startsWith("url")&&console.warn("SVGLoader: url access in attributes is not implemented."),e}),e.hasAttribute(r)&&(t[i]=a(e.getAttribute(r))),n[r]&&(t[i]=a(n[r])),e.style&&""!==e.style[r]&&(t[i]=a(e.style[r]))}function i(e){return Math.max(0,Math.min(1,c(e)))}function a(e){return Math.max(0,c(e))}return e.hasAttribute("id")&&(n=Object.assign(n,d["#"+e.getAttribute("id")])),r("fill","fill"),r("fill-opacity","fillOpacity",i),r("fill-rule","fillRule"),r("opacity","opacity",i),r("stroke","stroke"),r("stroke-opacity","strokeOpacity",i),r("stroke-width","strokeWidth",a),r("stroke-linejoin","strokeLineJoin"),r("stroke-linecap","strokeLineCap"),r("stroke-miterlimit","strokeMiterLimit",a),r("visibility","visibility"),t}function a(e,t){return e-(t-e)}function o(e,t,n){if("string"!=typeof e)throw new TypeError("Invalid input: "+typeof e);const r={SEPARATOR:/[ \t\r\n\,.\-+]/,WHITESPACE:/[ \t\r\n]/,DIGIT:/[\d]/,SIGN:/[-+]/,POINT:/\./,COMMA:/,/,EXP:/e/i,FLAGS:/[01]/};let i=0,a=!0,o="",s="";const l=[];function c(e,t,n){const r=new SyntaxError('Unexpected character "'+e+'" at index '+t+".");throw r.partial=n,r}function u(){""!==o&&(""===s?l.push(Number(o)):l.push(Number(o)*Math.pow(10,Number(s)))),o="",s=""}let h;const p=e.length;for(let d=0;d<p;d++)if(h=e[d],Array.isArray(t)&&t.includes(l.length%n)&&r.FLAGS.test(h))i=1,o=h,u();else{if(0===i){if(r.WHITESPACE.test(h))continue;if(r.DIGIT.test(h)||r.SIGN.test(h)){i=1,o=h;continue}if(r.POINT.test(h)){i=2,o=h;continue}r.COMMA.test(h)&&(a&&c(h,d,l),a=!0)}if(1===i){if(r.DIGIT.test(h)){o+=h;continue}if(r.POINT.test(h)){o+=h,i=2;continue}if(r.EXP.test(h)){i=3;continue}r.SIGN.test(h)&&1===o.length&&r.SIGN.test(o[0])&&c(h,d,l)}if(2===i){if(r.DIGIT.test(h)){o+=h;continue}if(r.EXP.test(h)){i=3;continue}r.POINT.test(h)&&"."===o[o.length-1]&&c(h,d,l)}if(3===i){if(r.DIGIT.test(h)){s+=h;continue}if(r.SIGN.test(h)){if(""===s){s+=h;continue}1===s.length&&r.SIGN.test(s)&&c(h,d,l)}}r.WHITESPACE.test(h)?(u(),i=0,a=!1):r.COMMA.test(h)?(u(),i=0,a=!0):r.SIGN.test(h)?(u(),i=1,o=h):r.POINT.test(h)?(u(),i=2,o=h):c(h,d,l)}return u(),l}const s=["mm","cm","in","pt","pc","px"],l={mm:{mm:1,cm:.1,in:1/25.4,pt:72/25.4,pc:6/25.4,px:-1},cm:{mm:10,cm:1,in:1/2.54,pt:72/2.54,pc:6/2.54,px:-1},in:{mm:25.4,cm:2.54,in:1,pt:72,pc:6,px:-1},pt:{mm:25.4/72,cm:2.54/72,in:1/72,pt:1,pc:6/72,px:-1},pc:{mm:25.4/6,cm:2.54/6,in:1/6,pt:12,pc:1,px:-1},px:{px:1}};function c(e){let n,r="px";if("string"==typeof e||e instanceof String)for(let t=0,n=s.length;t<n;t++){const n=s[t];if(e.endsWith(n)){r=n,e=e.substring(0,e.length-n.length);break}}return"px"===r&&"px"!==t.defaultUnit?n=l.in[t.defaultUnit]/t.defaultDPI:(n=l[r][t.defaultUnit],n<0&&(n=l[r].in*t.defaultDPI)),n*parseFloat(e)}function u(e){const t=e.elements;return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function h(e){const t=e.elements;return Math.sqrt(t[3]*t[3]+t[4]*t[4])}const p=[],d={},f=[],m=new Matrix3,g=new Matrix3,v=new Matrix3,y=new Matrix3,x=new Vector2,_=new Vector3,b=new Matrix3,w=(new DOMParser).parseFromString(e,"image/svg+xml");!function e(t,r){if(1!==t.nodeType)return;const s=function(e){if(!(e.hasAttribute("transform")||"use"===e.nodeName&&(e.hasAttribute("x")||e.hasAttribute("y"))))return null;const t=function(e){const t=new Matrix3,n=m;if("use"===e.nodeName&&(e.hasAttribute("x")||e.hasAttribute("y"))){const n=c(e.getAttribute("x")),r=c(e.getAttribute("y"));t.translate(n,r)}if(e.hasAttribute("transform")){const r=e.getAttribute("transform").split(")");for(let e=r.length-1;e>=0;e--){const i=r[e].trim();if(""===i)continue;const a=i.indexOf("("),s=i.length;if(a>0&&a<s){const e=i.substr(0,a),t=o(i.substr(a+1,s-a-1));switch(n.identity(),e){case"translate":if(t.length>=1){const e=t[0];let r=e;t.length>=2&&(r=t[1]),n.translate(e,r)}break;case"rotate":if(t.length>=1){let e=0,r=0,i=0;e=-t[0]*Math.PI/180,t.length>=3&&(r=t[1],i=t[2]),g.identity().translate(-r,-i),v.identity().rotate(e),y.multiplyMatrices(v,g),g.identity().translate(r,i),n.multiplyMatrices(g,y)}break;case"scale":if(t.length>=1){const e=t[0];let r=e;t.length>=2&&(r=t[1]),n.scale(e,r)}break;case"skewX":1===t.length&&n.set(1,Math.tan(t[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":1===t.length&&n.set(1,0,0,Math.tan(t[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":6===t.length&&n.set(t[0],t[2],t[4],t[1],t[3],t[5],0,0,1)}}t.premultiply(n)}}return t}(e);f.length>0&&t.premultiply(f[f.length-1]);return b.copy(t),f.push(t),t}(t);let l=!0,w=null;switch(t.nodeName){case"svg":break;case"style":!function(e){if(!e.sheet||!e.sheet.cssRules||!e.sheet.cssRules.length)return;for(let t=0;t<e.sheet.cssRules.length;t++){const n=e.sheet.cssRules[t];if(1!==n.type)continue;const r=n.selectorText.split(/,/gm).filter(Boolean).map((e=>e.trim()));for(let e=0;e<r.length;e++)d[r[e]]=Object.assign(d[r[e]]||{},n.style)}}(t);break;case"g":r=i(t,r);break;case"path":r=i(t,r),t.hasAttribute("d")&&(w=function(e){const t=new ShapePath,r=new Vector2,i=new Vector2,s=new Vector2;let l=!0,c=!1;const u=e.getAttribute("d").match(/[a-df-z][^a-df-z]*/gi);for(let e=0,h=u.length;e<h;e++){const h=u[e],p=h.charAt(0),d=h.substr(1).trim();let f;switch(!0===l&&(c=!0,l=!1),p){case"M":f=o(d);for(let e=0,n=f.length;e<n;e+=2)r.x=f[e+0],r.y=f[e+1],i.x=r.x,i.y=r.y,0===e?t.moveTo(r.x,r.y):t.lineTo(r.x,r.y),0===e&&s.copy(r);break;case"H":f=o(d);for(let e=0,n=f.length;e<n;e++)r.x=f[e],i.x=r.x,i.y=r.y,t.lineTo(r.x,r.y),0===e&&!0===c&&s.copy(r);break;case"V":f=o(d);for(let e=0,n=f.length;e<n;e++)r.y=f[e],i.x=r.x,i.y=r.y,t.lineTo(r.x,r.y),0===e&&!0===c&&s.copy(r);break;case"L":f=o(d);for(let e=0,n=f.length;e<n;e+=2)r.x=f[e+0],r.y=f[e+1],i.x=r.x,i.y=r.y,t.lineTo(r.x,r.y),0===e&&!0===c&&s.copy(r);break;case"C":f=o(d);for(let e=0,n=f.length;e<n;e+=6)t.bezierCurveTo(f[e+0],f[e+1],f[e+2],f[e+3],f[e+4],f[e+5]),i.x=f[e+2],i.y=f[e+3],r.x=f[e+4],r.y=f[e+5],0===e&&!0===c&&s.copy(r);break;case"S":f=o(d);for(let e=0,n=f.length;e<n;e+=4)t.bezierCurveTo(a(r.x,i.x),a(r.y,i.y),f[e+0],f[e+1],f[e+2],f[e+3]),i.x=f[e+0],i.y=f[e+1],r.x=f[e+2],r.y=f[e+3],0===e&&!0===c&&s.copy(r);break;case"Q":f=o(d);for(let e=0,n=f.length;e<n;e+=4)t.quadraticCurveTo(f[e+0],f[e+1],f[e+2],f[e+3]),i.x=f[e+0],i.y=f[e+1],r.x=f[e+2],r.y=f[e+3],0===e&&!0===c&&s.copy(r);break;case"T":f=o(d);for(let e=0,n=f.length;e<n;e+=2){const n=a(r.x,i.x),o=a(r.y,i.y);t.quadraticCurveTo(n,o,f[e+0],f[e+1]),i.x=n,i.y=o,r.x=f[e+0],r.y=f[e+1],0===e&&!0===c&&s.copy(r)}break;case"A":f=o(d,[3,4],7);for(let e=0,a=f.length;e<a;e+=7){if(f[e+5]==r.x&&f[e+6]==r.y)continue;const a=r.clone();r.x=f[e+5],r.y=f[e+6],i.x=r.x,i.y=r.y,n(t,f[e],f[e+1],f[e+2],f[e+3],f[e+4],a,r),0===e&&!0===c&&s.copy(r)}break;case"m":f=o(d);for(let e=0,n=f.length;e<n;e+=2)r.x+=f[e+0],r.y+=f[e+1],i.x=r.x,i.y=r.y,0===e?t.moveTo(r.x,r.y):t.lineTo(r.x,r.y),0===e&&s.copy(r);break;case"h":f=o(d);for(let e=0,n=f.length;e<n;e++)r.x+=f[e],i.x=r.x,i.y=r.y,t.lineTo(r.x,r.y),0===e&&!0===c&&s.copy(r);break;case"v":f=o(d);for(let e=0,n=f.length;e<n;e++)r.y+=f[e],i.x=r.x,i.y=r.y,t.lineTo(r.x,r.y),0===e&&!0===c&&s.copy(r);break;case"l":f=o(d);for(let e=0,n=f.length;e<n;e+=2)r.x+=f[e+0],r.y+=f[e+1],i.x=r.x,i.y=r.y,t.lineTo(r.x,r.y),0===e&&!0===c&&s.copy(r);break;case"c":f=o(d);for(let e=0,n=f.length;e<n;e+=6)t.bezierCurveTo(r.x+f[e+0],r.y+f[e+1],r.x+f[e+2],r.y+f[e+3],r.x+f[e+4],r.y+f[e+5]),i.x=r.x+f[e+2],i.y=r.y+f[e+3],r.x+=f[e+4],r.y+=f[e+5],0===e&&!0===c&&s.copy(r);break;case"s":f=o(d);for(let e=0,n=f.length;e<n;e+=4)t.bezierCurveTo(a(r.x,i.x),a(r.y,i.y),r.x+f[e+0],r.y+f[e+1],r.x+f[e+2],r.y+f[e+3]),i.x=r.x+f[e+0],i.y=r.y+f[e+1],r.x+=f[e+2],r.y+=f[e+3],0===e&&!0===c&&s.copy(r);break;case"q":f=o(d);for(let e=0,n=f.length;e<n;e+=4)t.quadraticCurveTo(r.x+f[e+0],r.y+f[e+1],r.x+f[e+2],r.y+f[e+3]),i.x=r.x+f[e+0],i.y=r.y+f[e+1],r.x+=f[e+2],r.y+=f[e+3],0===e&&!0===c&&s.copy(r);break;case"t":f=o(d);for(let e=0,n=f.length;e<n;e+=2){const n=a(r.x,i.x),o=a(r.y,i.y);t.quadraticCurveTo(n,o,r.x+f[e+0],r.y+f[e+1]),i.x=n,i.y=o,r.x=r.x+f[e+0],r.y=r.y+f[e+1],0===e&&!0===c&&s.copy(r)}break;case"a":f=o(d,[3,4],7);for(let e=0,a=f.length;e<a;e+=7){if(0==f[e+5]&&0==f[e+6])continue;const a=r.clone();r.x+=f[e+5],r.y+=f[e+6],i.x=r.x,i.y=r.y,n(t,f[e],f[e+1],f[e+2],f[e+3],f[e+4],a,r),0===e&&!0===c&&s.copy(r)}break;case"Z":case"z":t.currentPath.autoClose=!0,t.currentPath.curves.length>0&&(r.copy(s),t.currentPath.currentPoint.copy(r),l=!0);break;default:console.warn(h)}c=!1}return t}(t));break;case"rect":r=i(t,r),w=function(e){const t=c(e.getAttribute("x")||0),n=c(e.getAttribute("y")||0),r=c(e.getAttribute("rx")||e.getAttribute("ry")||0),i=c(e.getAttribute("ry")||e.getAttribute("rx")||0),a=c(e.getAttribute("width")),o=c(e.getAttribute("height")),s=.448084975506,l=new ShapePath;l.moveTo(t+r,n),l.lineTo(t+a-r,n),(0!==r||0!==i)&&l.bezierCurveTo(t+a-r*s,n,t+a,n+i*s,t+a,n+i);l.lineTo(t+a,n+o-i),(0!==r||0!==i)&&l.bezierCurveTo(t+a,n+o-i*s,t+a-r*s,n+o,t+a-r,n+o);l.lineTo(t+r,n+o),(0!==r||0!==i)&&l.bezierCurveTo(t+r*s,n+o,t,n+o-i*s,t,n+o-i);l.lineTo(t,n+i),(0!==r||0!==i)&&l.bezierCurveTo(t,n+i*s,t+r*s,n,t+r,n);return l}(t);break;case"polygon":r=i(t,r),w=function(e){function t(e,t,n){const a=c(t),o=c(n);0===i?r.moveTo(a,o):r.lineTo(a,o),i++}const n=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,r=new ShapePath;let i=0;return e.getAttribute("points").replace(n,t),r.currentPath.autoClose=!0,r}(t);break;case"polyline":r=i(t,r),w=function(e){function t(e,t,n){const a=c(t),o=c(n);0===i?r.moveTo(a,o):r.lineTo(a,o),i++}const n=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,r=new ShapePath;let i=0;return e.getAttribute("points").replace(n,t),r.currentPath.autoClose=!1,r}(t);break;case"circle":r=i(t,r),w=function(e){const t=c(e.getAttribute("cx")||0),n=c(e.getAttribute("cy")||0),r=c(e.getAttribute("r")||0),i=new Path;i.absarc(t,n,r,0,2*Math.PI);const a=new ShapePath;return a.subPaths.push(i),a}(t);break;case"ellipse":r=i(t,r),w=function(e){const t=c(e.getAttribute("cx")||0),n=c(e.getAttribute("cy")||0),r=c(e.getAttribute("rx")||0),i=c(e.getAttribute("ry")||0),a=new Path;a.absellipse(t,n,r,i,0,2*Math.PI);const o=new ShapePath;return o.subPaths.push(a),o}(t);break;case"line":r=i(t,r),w=function(e){const t=c(e.getAttribute("x1")||0),n=c(e.getAttribute("y1")||0),r=c(e.getAttribute("x2")||0),i=c(e.getAttribute("y2")||0),a=new ShapePath;return a.moveTo(t,n),a.lineTo(r,i),a.currentPath.autoClose=!1,a}(t);break;case"defs":l=!1;break;case"use":r=i(t,r);const s=t.href.baseVal.substring(1),u=t.viewportElement.getElementById(s);u?e(u,r):console.warn("SVGLoader: 'use node' references non-existent node id: "+s)}if(w&&(void 0!==r.fill&&"none"!==r.fill&&w.color.setStyle(r.fill),function(e,t){function n(e){_.set(e.x,e.y,1).applyMatrix3(t),e.set(_.x,_.y)}const r=function(e){return 0!==e.elements[1]||0!==e.elements[3]}(t),i=e.subPaths;for(let e=0,a=i.length;e<a;e++){const a=i[e].curves;for(let e=0;e<a.length;e++){const i=a[e];i.isLineCurve?(n(i.v1),n(i.v2)):i.isCubicBezierCurve?(n(i.v0),n(i.v1),n(i.v2),n(i.v3)):i.isQuadraticBezierCurve?(n(i.v0),n(i.v1),n(i.v2)):i.isEllipseCurve&&(r&&console.warn("SVGLoader: Elliptic arc or ellipse rotation or skewing is not implemented."),x.set(i.aX,i.aY),n(x),i.aX=x.x,i.aY=x.y,i.xRadius*=u(t),i.yRadius*=h(t))}}}(w,b),p.push(w),w.userData={node:t,style:r}),l){const n=t.childNodes;for(let t=0;t<n.length;t++)e(n[t],r)}s&&(f.pop(),f.length>0?b.copy(f[f.length-1]):b.identity())}(w.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4});return{paths:p,xml:w.documentElement}}static createShapes(e){const t=999999999,n=0,r=1,i=2,a=3,o=4,s=5,l=6,c={loc:n,t:0};function u(e,t,r,a){const o=e.x,s=t.x,l=r.x,u=a.x,p=e.y,d=t.y,f=r.y,m=a.y,g=(u-l)*(p-f)-(m-f)*(o-l),v=(m-f)*(s-o)-(u-l)*(d-p),y=g/v,x=((s-o)*(p-f)-(d-p)*(o-l))/v;if(0===v&&0!==g||y<=0||y>=1||x<0||x>1)return null;if(0===g&&0===v){for(let l=0;l<2;l++){if(h(0===l?r:a,e,t),c.loc==n){const e=0===l?r:a;return{x:e.x,y:e.y,t:c.t}}if(c.loc==i){return{x:+(o+c.t*(s-o)).toPrecision(10),y:+(p+c.t*(d-p)).toPrecision(10),t:c.t}}}return null}for(let i=0;i<2;i++)if(h(0===i?r:a,e,t),c.loc==n){const e=0===i?r:a;return{x:e.x,y:e.y,t:c.t}}return{x:+(o+y*(s-o)).toPrecision(10),y:+(p+y*(d-p)).toPrecision(10),t:y}}function h(e,t,u){const h=u.x-t.x,p=u.y-t.y,d=e.x-t.x,f=e.y-t.y,m=h*f-d*p;if(e.x===t.x&&e.y===t.y)return c.loc=n,void(c.t=0);if(e.x===u.x&&e.y===u.y)return c.loc=r,void(c.t=1);if(m<-Number.EPSILON)return void(c.loc=a);if(m>Number.EPSILON)return void(c.loc=o);if(h*d<0||p*f<0)return void(c.loc=s);if(Math.sqrt(h*h+p*p)<Math.sqrt(d*d+f*f))return void(c.loc=l);let g;g=0!==h?d/h:f/p,c.loc=i,c.t=g}function p(e,t,n){const r=new Vector2;t.getCenter(r);const i=[];return n.forEach((t=>{if(t.boundingBox.containsPoint(r)){(function(e,t){const n=[],r=[];for(let i=1;i<e.length;i++){const a=e[i-1],o=e[i];for(let e=1;e<t.length;e++){const i=u(a,o,t[e-1],t[e]);null!==i&&void 0===n.find((e=>e.t<=i.t+Number.EPSILON&&e.t>=i.t-Number.EPSILON))&&(n.push(i),r.push(new Vector2(i.x,i.y)))}}return r})(e,t.points).forEach((e=>{i.push({identifier:t.identifier,isCW:t.isCW,point:e})}))}})),i.sort(((e,t)=>e.point.x-t.point.x)),i}let d=0,f=t,m=-999999999,g=e.subPaths.map((e=>{const n=e.getPoints();let r=-999999999,i=t,a=-999999999,o=t;for(let e=0;e<n.length;e++){const t=n[e];t.y>r&&(r=t.y),t.y<i&&(i=t.y),t.x>a&&(a=t.x),t.x<o&&(o=t.x)}return m<=a&&(m=a+1),f>=o&&(f=o-1),{curves:e.curves,points:n,isCW:ShapeUtils.isClockWise(n),identifier:d++,boundingBox:new Box2(new Vector2(o,i),new Vector2(a,r))}}));g=g.filter((e=>e.points.length>1));const v=g.map((t=>function(e,t,n,r,i){null!=i&&""!==i||(i="nonzero");const a=new Vector2;e.boundingBox.getCenter(a);const o=p([new Vector2(n,a.y),new Vector2(r,a.y)],e.boundingBox,t);o.sort(((e,t)=>e.point.x-t.point.x));const s=[],l=[];o.forEach((t=>{t.identifier===e.identifier?s.push(t):l.push(t)}));const c=s[0].point.x,u=[];let h=0;for(;h<l.length&&l[h].point.x<c;)u.length>0&&u[u.length-1]===l[h].identifier?u.pop():u.push(l[h].identifier),h++;if(u.push(e.identifier),"evenodd"===i){const t=u.length%2==0,n=u[u.length-2];return{identifier:e.identifier,isHole:t,for:n}}if("nonzero"===i){let n=!0,r=null,i=null;for(let e=0;e<u.length;e++){const a=u[e];n?(i=t[a].isCW,n=!1,r=a):i!==t[a].isCW&&(i=t[a].isCW,n=!0)}return{identifier:e.identifier,isHole:n,for:r}}console.warn('fill-rule: "'+i+'" is currently not implemented.')}(t,g,f,m,e.userData.style.fillRule))),y=[];return g.forEach((e=>{if(!v[e.identifier].isHole){const t=new Shape;t.curves=e.curves;v.filter((t=>t.isHole&&t.for===e.identifier)).forEach((e=>{const n=g[e.identifier],r=new Path;r.curves=n.curves,t.holes.push(r)})),y.push(t)}})),y}static getStrokeStyle(e,t,n,r,i){return{strokeColor:t=void 0!==t?t:"#000",strokeWidth:e=void 0!==e?e:1,strokeLineJoin:n=void 0!==n?n:"miter",strokeLineCap:r=void 0!==r?r:"butt",strokeMiterLimit:i=void 0!==i?i:4}}static pointsToStroke(e,t,n,r){const i=[],a=[],o=[];if(0===SVGLoader.pointsToStrokeWithBuffers(e,t,n,r,i,a,o))return null;const s=new BufferGeometry;return s.setAttribute("position",new Float32BufferAttribute(i,3)),s.setAttribute("normal",new Float32BufferAttribute(a,3)),s.setAttribute("uv",new Float32BufferAttribute(o,2)),s}static pointsToStrokeWithBuffers(e,t,n,r,i,a,o,s){const l=new Vector2,c=new Vector2,u=new Vector2,h=new Vector2,p=new Vector2,d=new Vector2,f=new Vector2,m=new Vector2,g=new Vector2,v=new Vector2,y=new Vector2,x=new Vector2,_=new Vector2,b=new Vector2,w=new Vector2,M=new Vector2,S=new Vector2;n=void 0!==n?n:12,r=void 0!==r?r:.001,s=void 0!==s?s:0;const T=(e=function(e){let t=!1;for(let n=1,i=e.length-1;n<i;n++)if(e[n].distanceTo(e[n+1])<r){t=!0;break}if(!t)return e;const n=[];n.push(e[0]);for(let t=1,i=e.length-1;t<i;t++)e[t].distanceTo(e[t+1])>=r&&n.push(e[t]);return n.push(e[e.length-1]),n}(e)).length;if(T<2)return 0;const E=e[0].equals(e[T-1]);let C,A,L=e[0];const D=t.strokeWidth/2,P=1/(T-1);let O,R,I,B,N=0,k=!1,F=0,G=3*s,V=2*s;z(e[0],e[1],l).multiplyScalar(D),m.copy(e[0]).sub(l),g.copy(e[0]).add(l),v.copy(m),y.copy(g);for(let n=1;n<T;n++){C=e[n],A=n===T-1?E?e[1]:void 0:e[n+1];const r=l;if(z(L,C,r),u.copy(r).multiplyScalar(D),x.copy(C).sub(u),_.copy(C).add(u),O=N+P,R=!1,void 0!==A){z(C,A,c),u.copy(c).multiplyScalar(D),b.copy(C).sub(u),w.copy(C).add(u),I=!0,u.subVectors(A,L),r.dot(u)<0&&(I=!1),1===n&&(k=I),u.subVectors(A,C),u.normalize();const e=Math.abs(r.dot(u));if(0!==e){const n=D/e;u.multiplyScalar(-n),h.subVectors(C,L),p.copy(h).setLength(n).add(u),M.copy(p).negate();const r=p.length(),i=h.length();h.divideScalar(i),d.subVectors(A,C);const a=d.length();switch(d.divideScalar(a),h.dot(M)<i&&d.dot(M)<a&&(R=!0),S.copy(p).add(C),M.add(C),B=!1,R?I?(w.copy(M),_.copy(M)):(b.copy(M),x.copy(M)):H(),t.strokeLineJoin){case"bevel":W(I,R,O);break;case"round":q(I,R),I?j(C,x,b,O,0):j(C,w,_,O,1);break;default:const e=D*t.strokeMiterLimit/r;if(e<1){if("miter-clip"!==t.strokeLineJoin){W(I,R,O);break}q(I,R),I?(d.subVectors(S,x).multiplyScalar(e).add(x),f.subVectors(S,b).multiplyScalar(e).add(b),U(x,O,0),U(d,O,0),U(C,O,.5),U(C,O,.5),U(d,O,0),U(f,O,0),U(C,O,.5),U(f,O,0),U(b,O,0)):(d.subVectors(S,_).multiplyScalar(e).add(_),f.subVectors(S,w).multiplyScalar(e).add(w),U(_,O,1),U(d,O,1),U(C,O,.5),U(C,O,.5),U(d,O,1),U(f,O,1),U(C,O,.5),U(f,O,1),U(w,O,1))}else R?(I?(U(g,N,1),U(m,N,0),U(S,O,0),U(g,N,1),U(S,O,0),U(M,O,1)):(U(g,N,1),U(m,N,0),U(S,O,1),U(m,N,0),U(M,O,0),U(S,O,1)),I?b.copy(S):w.copy(S)):I?(U(x,O,0),U(S,O,0),U(C,O,.5),U(C,O,.5),U(S,O,0),U(b,O,0)):(U(_,O,1),U(S,O,1),U(C,O,.5),U(C,O,.5),U(S,O,1),U(w,O,1)),B=!0}}else H()}else H();E||n!==T-1||J(e[0],v,y,I,!0,N),N=O,L=C,m.copy(b),g.copy(w)}if(E){if(R&&i){let e=S,t=M;k!==I&&(e=M,t=S),I?(B||k)&&(t.toArray(i,0),t.toArray(i,9),B&&e.toArray(i,3)):!B&&k||(t.toArray(i,3),t.toArray(i,9),B&&e.toArray(i,0))}}else J(C,x,_,I,!1,O);return F;function z(e,t,n){return n.subVectors(t,e),n.set(-n.y,n.x).normalize()}function U(e,t,n){i&&(i[G]=e.x,i[G+1]=e.y,i[G+2]=0,a&&(a[G]=0,a[G+1]=0,a[G+2]=1),G+=3,o&&(o[V]=t,o[V+1]=n,V+=2)),F+=3}function j(e,t,r,i,a){l.copy(t).sub(e).normalize(),c.copy(r).sub(e).normalize();let o=Math.PI;const s=l.dot(c);Math.abs(s)<1&&(o=Math.abs(Math.acos(s))),o/=n,u.copy(t);for(let t=0,r=n-1;t<r;t++)h.copy(u).rotateAround(e,o),U(u,i,a),U(h,i,a),U(e,i,.5),u.copy(h);U(h,i,a),U(r,i,a),U(e,i,.5)}function H(){U(g,N,1),U(m,N,0),U(x,O,0),U(g,N,1),U(x,O,1),U(_,O,0)}function W(e,t,n){t?e?(U(g,N,1),U(m,N,0),U(x,O,0),U(g,N,1),U(x,O,0),U(M,O,1),U(x,n,0),U(b,n,0),U(M,n,.5)):(U(g,N,1),U(m,N,0),U(_,O,1),U(m,N,0),U(M,O,0),U(_,O,1),U(_,n,1),U(w,n,0),U(M,n,.5)):e?(U(x,n,0),U(b,n,0),U(C,n,.5)):(U(_,n,1),U(w,n,0),U(C,n,.5))}function q(e,t){t&&(e?(U(g,N,1),U(m,N,0),U(x,O,0),U(g,N,1),U(x,O,0),U(M,O,1),U(x,N,0),U(C,O,.5),U(M,O,1),U(C,O,.5),U(b,N,0),U(M,O,1)):(U(g,N,1),U(m,N,0),U(_,O,1),U(m,N,0),U(M,O,0),U(_,O,1),U(_,N,1),U(M,O,0),U(C,O,.5),U(C,O,.5),U(M,O,0),U(w,N,1)))}function J(e,n,r,a,o,s){switch(t.strokeLineCap){case"round":o?j(e,r,n,s,.5):j(e,n,r,s,.5);break;case"square":if(o)l.subVectors(n,e),c.set(l.y,-l.x),u.addVectors(l,c).add(e),h.subVectors(c,l).add(e),a?(u.toArray(i,3),h.toArray(i,0),h.toArray(i,9)):(u.toArray(i,3),u.toArray(i,9),h.toArray(i,0));else{l.subVectors(r,e),c.set(l.y,-l.x),u.addVectors(l,c).add(e),h.subVectors(c,l).add(e);const t=i.length;a?(u.toArray(i,t-3),h.toArray(i,t-6),h.toArray(i,t-12)):(u.toArray(i,t-6),h.toArray(i,t-3),h.toArray(i,t-12))}}}}}function setGeometrPostion(e,t){for(var n=0;n<e.vertices.length;n++)e.vertices[n].x+=t.x,e.vertices[n].y+=t.y,e.vertices[n].z+=t.z}function repairGeometryFaceVertexUvs(e){e.computeBoundingBox();var t=e.boundingBox.min,n=e.boundingBox.max,r=new Vector2(0-t.x,0-t.y),i=new Vector2(n.x-t.x,n.y-t.y);e.faceVertexUvs[0]=[];for(var a=e.faces,o=0;o<a.length;o++){var s=a[o],l=e.vertices[s.a],c=e.vertices[s.b],u=e.vertices[s.c];e.faceVertexUvs[0].push([new Vector2((l.x+r.x)/i.x,(l.y+r.y)/i.y),new Vector2((c.x+r.x)/i.x,(c.y+r.y)/i.y),new Vector2((u.x+r.x)/i.x,(u.y+r.y)/i.y)])}return e.uvsNeedUpdate=!0,e}function getToGenerateRoundedCorners(e,t,n){if(void 0===n&&(n=!0),t.length>0){for(var r=new CurvePath,i=0;i<e.length-1;i++){var a=t[i]||0;if(0!==i||n){var o=!n&&e[i-1]?e[i-1].clone().sub(e[i]):e[e.length-1].clone().sub(e[0]);o.normalize();var s=!n&&e[i+1]?e[i+1].clone().sub(e[i]):e[1].clone().sub(e[0]);s.normalize(),e[i].clone().add(o.clone().multiplyScalar(a));var l=new QuadraticBezierCurve3(e[i].clone().add(o.clone().multiplyScalar(a)),e[i].clone(),e[i].clone().add(s.clone().multiplyScalar(a))),c=e[i].clone();c.add(s.clone().multiplyScalar(a));var u=e[i+1].clone();i<e.length-(n?1:2)&&u.add(s.clone().multiplyScalar(-a));var h=new LineCurve3(c,u);r.curves.push(l,h),0===i&&e.push(e[0])}else{var p=e[0].clone().sub(e[1]);p.normalize();var d=e[1].clone();d.add(p.clone().multiplyScalar(a));var f=new LineCurve3(e[0],d);r.curves.push(f)}}return r.getPoints(5)}return[]}function computeRectPoints(e,t){var n=e.clone().set(t.x,e.y,t.z),r=t.clone().set(e.x,t.y,e.z);return[e,n,t,r]}var MxThreeJSSVGData=function(){this.svg=new Group,this.aryMeterial=[]},MxThreeJSBuffer=function(){function e(){this.mapSvgUrlToData=new Map}return e.prototype.loadSVGImp=function(e,t,n){(new SVGLoader).load(e,(function(e){for(var r=[],i=e.paths,a=new Group,o=0;o<i.length;o++){var s=i[o],l=s.userData.style.fill;if(void 0!==l&&"none"!==l){for(var c=new MeshBasicMaterial({color:t||(new Color).setStyle(l),opacity:s.userData.style.fillOpacity,transparent:s.userData.style.fillOpacity<1,side:DoubleSide,depthWrite:!1,wireframe:false}),u=SVGLoader.createShapes(s),h=0;h<u.length;h++){var p=new Mesh(m=new ShapeBufferGeometry(u[h]),c);a.add(p)}r.push(c)}var d=s.userData.style.stroke;if(void 0!==d&&"none"!==d){c=new MeshBasicMaterial({color:t||(new Color).setStyle(d),opacity:s.userData.style.strokeOpacity,transparent:s.userData.style.strokeOpacity<1,side:DoubleSide,depthWrite:!1,wireframe:false}),h=0;for(var f=s.subPaths.length;h<f;h++){var m,g=s.subPaths[h];if(m=SVGLoader.pointsToStroke(g.getPoints(),s.userData.style,12,.001)){p=new Mesh(m,c);a.add(p)}}r.push(c)}}n&&n(a,r)}),void 0,(function(){n&&n(null,null)}))},e.prototype.loadSVG=function(e,t,n){var r=this,i=this.mapSvgUrlToData.get(e);i?n&&(null==i?n(null,null):n(i.svg.clone(),i.aryMeterial)):this.loadSVGImp(e,t,(function(t,i){if(t&&i){var a=new MxThreeJSSVGData;a.svg=t,a.aryMeterial=i,r.mapSvgUrlToData.set(e,a),n&&n(a.svg.clone(),a.aryMeterial)}else r.mapSvgUrlToData.set(e,null),n&&n(null,null)}))},e}();function mixin(e){var t=new MxThreeJSBuffer;e.createImage=function(e,t,n,r,i){(new TextureLoader).load(r,(function(r){var a=new PlaneGeometry(t,n),o=new MeshLambertMaterial({map:r,transparent:!0,side:DoubleSide});o.map&&(o.map.needsUpdate=!0),setGeometrPostion(a,e);var s=new Mesh(a,o);s.material.depthTest=!1,i&&i(s)}),void 0,(function(e){console.log(e),i&&i(null)}))},e.loadSVG=function(e,n,r){t.loadSVG(e,n,r)}}function floorPowerOfTwo(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))}function formatString(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++)e=e.replace("{".concat(r,"}"),t[r]);return e}var MxThreeJS=function(){function e(){}return e.prototype.createLine=function(e,t,n){var r=new Geometry,i=new LineBasicMaterial({color:n});return r.vertices.push(e,t),new Line(r,i)},e.prototype.createCircle=function(e,t,n){var r=new CircleGeometry(t,64,3,2*Math.PI),i=new LineBasicMaterial({color:n});r.vertices.shift();var a=new LineLoop(r,i);return a.position.x=e.x,a.position.y=e.y,a.position.z=e.z,a},e.prototype.createPoint=function(e,t){var n=new Geometry;return n.vertices.push(e),new Points(n,new PointsMaterial({color:t,size:3}))},e.prototype.creatTextSprite=function(e,t,n,r,i){var a,o=256,s=document.createElement("canvas"),l=s.getContext("2d"),c=formatString("normal {0}px Arial","256");if(null==l)return null;l.font=c,a=2*floorPowerOfTwo(l.measureText(e).width),s.width=a,s.height=o,l.font=c,l.textAlign="center",l.textBaseline="middle",l.fillStyle=formatString("rgba({0}, {1}, {2}, 1.0)",(i>>16&255)+"",(i>>8&255)+"",(255&i)+""),l.fillText(e,a/2,128);var u=new Texture(s);u.needsUpdate=!0;var h=new SpriteMaterial({transparent:!0,depthTest:!1,map:u});h.rotation=r;var p=new Sprite(h);return p.scale.set(a/o*n,n,1),p.position.set(t.x,t.y,t.z),p},e.prototype.createTriangle=function(e,t,n){if(void 0===n&&(n=1),e.length<3)return null;for(var r=e.length,i=new Geometry,a=0;a+2<r;a+=3){i.vertices.push(e[a]),i.vertices.push(e[a+1]),i.vertices.push(e[a+2]);var o=new Face3(a,a+1,a+2);i.faces.push(o)}return i.computeFaceNormals(),i.computeVertexNormals(),new Mesh(i,new MeshBasicMaterial({color:t,transparent:!0,depthTest:!1,side:DoubleSide,opacity:n}))},e.prototype.createLines=function(e,t){var n=new Geometry;return n.vertices=e,new Line(n,new LineBasicMaterial({color:t}))},e.prototype.createDashedLines=function(e,t,n,r){var i=new Geometry;i.vertices=e;var a=new Line(i,new LineDashedMaterial({color:t,dashSize:n,gapSize:r}));return a.computeLineDistances(),a},e.prototype.createImage=function(e,t,n,r,i){},e.prototype.loadSVG=function(e,t,n){},e}(),MxThreeJS$1=new MxThreeJS;mixin(MxThreeJS$1);var MxDbSVG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.svgPos=new Vector3,t.svgPath="",t.svgSize=new Vector2(50,50),t.svgAlignmentRatio=new Vector2(0,0),t.isSvgDirtyLocation=!1,t.isLoadFromPath=!0,t.txtPos=new Vector3,t.txt="",t.txtHeight=1,t}return __extends(t,e),t.prototype.worldDraw=function(e){if(this.calcSvgPosition(),this.txt.length>0){var t=new Vector3(this.txtPos.x,this.txtPos.y,0);e.drawText(this.txt,this.txtHeight,0,t)}var n=this.svgPos.x-this.svgSize.x*this.svgAlignmentRatio.x,r=this.svgPos.y-this.svgSize.y*this.svgAlignmentRatio.y,i=new Vector3(n,r,0),a=new Vector3(n+this.svgSize.x,r+this.svgSize.y,0);if(1==e.getType()){if(this.svg)e.drawEntity(this.svg);else if(this.svgPath.length>0&&this.isLoadFromPath){var o=this;MxThreeJS$1.loadSVG(this.svgPath,void 0,(function(e){if(e){var t=(new Box3).setFromObject(e);e.scale.x=o.svgSize.x/(t.max.x-t.min.x),e.scale.y=o.svgSize.y/(t.max.y-t.min.y),e.scale.z=e.scale.x,o.isSvgDirtyLocation=!0,e.traverse((function(e){e.material&&(e.material.transparent=!0)})),o.svg=e,o.setNeedUpdateDisplay(!0),MxFun$1.updateDisplay()}o.isLoadFromPath=!1}))}e.drawSelectLine(i.x,i.y,a.x,a.y),e.drawSelectLine(i.x,a.y,a.x,i.y)}else e.drawLine(i.x,i.y,i.x,a.y),e.drawLine(i.x,a.y,a.x,a.y),e.drawLine(a.x,a.y,a.x,i.y),e.drawLine(a.x,i.y,i.x,i.y)},t.prototype.setSvgPath=function(e){this.svgPath=e,this.svg=null,this.isLoadFromPath=!0},t.prototype.getSvgPath=function(){return this.svgPath},t.prototype.setSvgPostion=function(e){this.svgPos=e,this.isSvgDirtyLocation=!0},t.prototype.getSvgPostion=function(){return this.svgPos},t.prototype.setSvgSize=function(e){this.svgSize=e,this.isSvgDirtyLocation=!0},t.prototype.getSvgSize=function(){return this.svgSize},t.prototype.setSvgAlignmentRatio=function(e){this.svgAlignmentRatio=e,this.isSvgDirtyLocation=!0},t.prototype.getSvgAlignmentRatio=function(){return this.svgAlignmentRatio},t.prototype.setTextHeight=function(e){this.txtHeight=e},t.prototype.getTextHeight=function(){return this.txtHeight},t.prototype.setText=function(e){this.txt=e},t.prototype.getText=function(){return this.txt},t.prototype.setTextPostion=function(e){this.txtPos=e},t.prototype.getTextPostion=function(){return this.txtPos},t.prototype.getGripPoints=function(){var e=[];return e.push(this.svgPos),e},t.prototype.moveGripPointsAt=function(e,t){return 0==e&&(this.svgPos.add(t),this.txtPos.add(t)),this.isSvgDirtyLocation=!0,!0},t.prototype.calcSvgPosition=function(){this.svg&&this.isSvgDirtyLocation&&(this.isSvgDirtyLocation=!1,this.svg.position.x=this.svgPos.x-this.svgSize.x*this.svgAlignmentRatio.x,this.svg.position.y=this.svgPos.y-this.svgSize.y*this.svgAlignmentRatio.y)},t.prototype.dwgIn=function(e){return this.onDwgIn(e),e.type==MxType.MxCloneType.kClone&&e.svg&&(this.svg=e.svg.clone()),this.svgPos.copy(e.svgPos),this.svgPath=e.svgPath.substr(0),this.svgSize.copy(e.svgSize),this.svgAlignmentRatio.copy(e.svgAlignmentRatio),this.isSvgDirtyLocation=!0,this.svg||(this.isLoadFromPath=!0),this.txt=e.txt,this.txtHeight=e.txtHeight,this.txtPos.copy(e.txtPos),!0},t.prototype.dwgOut=function(e){return this.onDwgOut(e),e.type==MxType.MxCloneType.kClone&&(e.svg=this.svg),e.svgPath=this.svgPath,e.svgPos=this.svgPos,e.svgSize=this.svgSize,e.svgAlignmentRatio=this.svgAlignmentRatio,e.txt=this.txt,e.txtHeight=this.txtHeight,e.txtPos=this.txtPos,e},t.prototype.create=function(){return new t},t.prototype.transformBy=function(e){this.svgPos.applyMatrix4(e),this.txtPos.applyMatrix4(e),this.isSvgDirtyLocation=!0},t.prototype.getTypeName=function(){return"MxDbSVG"},t}(MxDbEntity),McGiWorldDrawType;!function(e){e[e.kWorldDraw=1]="kWorldDraw",e[e.kDynDragDraw=2]="kDynDragDraw",e[e.kSelectDraw=3]="kSelectDraw"}(McGiWorldDrawType||(McGiWorldDrawType={}));var McGiWorldDrawType$1=McGiWorldDrawType,MxDbAlignedDimension=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pt1=new Vector3,t.pt2=new Vector3,t}return __extends(t,e),t.prototype.getTypeName=function(){return"MxDbAlignedDimension"},t.prototype.getDirection=function(e,t,n){var r=new Vector3(e.x,e.y,0),i=new Vector3(1,0,0),a=e.angleTo(i),o=-1;(a<7*Math.PI/18||a>10*Math.PI/18)&&t.x>n.x&&(o=1);var s=new Matrix4;return s.makeRotationZ(Math.PI/2*o),r.applyMatrix4(s),r},t.prototype.worldDraw=function(e){if(e.getType()==McGiWorldDrawType$1.kWorldDraw||e.getType()==McGiWorldDrawType$1.kDynDragDraw){var t,n,r,i,a,o,s,l=this.pt1,c=this.pt2,u=new Vector3(l.x-c.x,l.y-c.y,0),h=this.getDirection(u,l,c),p=u.length(),d=new Matrix4;d.makeScale(.01,.01,.01),(y=new Vector3(h.x,h.y,0)).applyMatrix4(d);var f=new Vector3(l.x+y.x,l.y+y.y,0),m=new Vector3(c.x+y.x,c.y+y.y,0),g=16777215;o=MxThreeJS$1.createPoint(l,g),s=MxThreeJS$1.createPoint(c,g),d.identity(),d.makeScale(.2,.2,0),new Vector3(h.x,h.y,0).applyMatrix4(d),d.identity(),d.makeScale(.02,.02,0);var v=new Vector3(h.x,h.y,0);v.applyMatrix4(d),e.drawLine(f,m),t=MxThreeJS$1.createLine(new Vector3(f.x+2*v.x,f.y+2*v.y,0),new Vector3(l.x+v.x,l.y+v.y,0),g),n=MxThreeJS$1.createLine(new Vector3(m.x+2*v.x,m.y+2*v.y,0),new Vector3(c.x+v.x,c.y+v.y,0),g);var y,x=new Vector3(1,0,0),_=u.angleTo(x);(y=new Vector3(h.x,h.y,0)).normalize();var b=l.distanceTo(c);u.y<0?_=_<Math.PI/2?2*Math.PI-_:Math.PI-_:_>Math.PI/2&&(_=Math.PI+_),p=MxFun$1.worldCoordLong2Doc(p),null!=(r=MxThreeJS$1.creatTextSprite(p.toFixed(3),new Vector3(m.x+u.x/2+y.x*b/30,m.y+u.y/2+y.y*b/30,0),.07*b,_,g))&&e.drawEntity(r),d.identity(),d.makeScale(.08,.08,.08);var w=new Matrix4;w.makeRotationZ(17*Math.PI/18);var M=new Vector3(u.x,u.y,0);M.applyMatrix4(d),M.applyMatrix4(w),w.identity(),w.makeRotationZ(17*-Math.PI/18);var S=new Vector3(u.x,u.y,0);S.applyMatrix4(d),S.applyMatrix4(w);var T=new Array;T.push(new Vector3(f.x,f.y,0),new Vector3(f.x+M.x,f.y+M.y,0),new Vector3(f.x+S.x,f.y+S.y,0)),i=MxThreeJS$1.createTriangle(T,g),w.identity(),w.makeRotationZ(Math.PI/18),(M=new Vector3(u.x,u.y,0)).applyMatrix4(d),M.applyMatrix4(w),w.identity(),w.makeRotationZ(-Math.PI/18),(S=new Vector3(u.x,u.y,0)).applyMatrix4(d),S.applyMatrix4(w);var E=new Array;E.push(new Vector3(m.x,m.y,0),new Vector3(m.x+M.x,m.y+M.y,0),new Vector3(m.x+S.x,m.y+S.y,0)),a=MxThreeJS$1.createTriangle(E,g),e.drawEntity(t),e.drawEntity(n),i&&e.drawEntity(i),a&&e.drawEntity(a),e.drawEntity(o),e.drawEntity(s)}else e.drawLine(this.pt1,this.pt2)},t.prototype.setPoint1=function(e){this.pt1=e},t.prototype.setPoint2=function(e){this.pt2=e},t.prototype.getGripPoints=function(){var e=[];return e.push(this.pt1),e.push(this.pt2),e},t.prototype.moveGripPointsAt=function(e,t){return 0==e?this.pt1.add(t):(e=1)&&this.pt2.add(t),!0},t.prototype.dwgIn=function(e){return this.onDwgIn(e),this.pt1.copy(e.pt1),this.pt2.copy(e.pt2),!0},t.prototype.dwgOut=function(e){return this.onDwgOut(e),e.pt1=this.pt1,e.pt2=this.pt2,e},t.prototype.create=function(){return new t},t}(MxDbEntity),MxDbLine=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pt1=new Vector3,t.pt2=new Vector3,t}return __extends(t,e),t.prototype.getTypeName=function(){return"MxDbLine"},t.prototype.worldDraw=function(e){e.drawLine(this.pt1,this.pt2)},t.prototype.setPoint1=function(e){this.pt1=e},t.prototype.getPoint1=function(){return this.pt1},t.prototype.setPoint2=function(e){this.pt2=e},t.prototype.getPoint2=function(){return this.pt2},t.prototype.getGripPoints=function(){var e=[];e.push(this.pt1),e.push(this.pt2);var t=new Vector3(this.pt1.x+.5*(this.pt2.x-this.pt1.x),this.pt1.y+.5*(this.pt2.y-this.pt1.y),0);return e.push(t),e},t.prototype.moveGripPointsAt=function(e,t){return 0==e?this.pt1.add(t):1==e?this.pt2.add(t):2==e&&(this.pt1.add(t),this.pt2.add(t)),!0},t.prototype.dwgIn=function(e){return this.onDwgIn(e),this.pt1.copy(e.pt1),this.pt2.copy(e.pt2),!0},t.prototype.dwgOut=function(e){return this.onDwgOut(e),e.pt1=this.pt1,e.pt2=this.pt2,e},t.prototype.create=function(){return new t},t}(MxDbEntity);function rxInitMxEntity(){(new MxDbImage).rxInit(),(new MxDbSVG).rxInit(),(new MxDbAlignedDimension).rxInit(),(new MxDbLine).rxInit()}function loadCoreCode(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){return[2,new Promise((function(t,n){return __awaiter(e,void 0,void 0,(function(){var e,r,i;return __generator(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),store.state.MxFun?(console.error("内部已调用loadCoreCode, 无需重复调用!"),[2,n({code:"error",msg:"内部已调用loadCoreCode, 无需重复调用"})]):(e=window,r=window,[4,dynamicImport("jquery")]);case 1:return e.$=r.jQuery=a.sent(),window.MxDocumentReady=void 0,window.MxUiMain=function(e){var t=e("./MxFun").MxFun;store.commit("setMxFun",t),store.events.emit("MxUiMain",e),window.MxUiMain=void 0},window.MxMain=function(e){return store.events.emit("MxMain",e),window.MxMain=void 0,rxInitMxEntity(),t(),0},mxcadassemblyinit().then((function(e){store.commit("setMxassembly",e)})),mxfun(),[3,3];case 2:return i=a.sent(),n({code:"error",msg:i}),[3,3];case 3:return[2]}}))}))}))]}))}))}var store$1={},_MrxDbgUiPrPoint;objectMethodProxy(store$1,store,"state"),objectMethodProxy(store$1,store,"events");var MrxDbgUiPrPoint=function(){function e(){_MrxDbgUiPrPoint=new(store.state.MxFun.getMxJigCmdManager().getMrxDbgUiPrPointClass())}return e.prototype.keyWords=function(){return _MrxDbgUiPrPoint.keyWords()},e.prototype.setKeyWords=function(e){return _MrxDbgUiPrPoint.setKeyWords(e)},e.prototype.message=function(){return _MrxDbgUiPrPoint.message()},e.prototype.setMessage=function(e){return _MrxDbgUiPrPoint.setMessage(e)},e.prototype.keyWordPicked=function(){return _MrxDbgUiPrPoint.keyWordPicked()},e.prototype.isKeyWordPicked=function(e){return _MrxDbgUiPrPoint.isKeyWordPicked(e)},e.prototype.setUserDraw=function(e){return _MrxDbgUiPrPoint.setUserDraw(e._get?e._get():e)},e.prototype.value=function(){return _MrxDbgUiPrPoint.value()},e.prototype.valueDocCoord=function(){return _MrxDbgUiPrPoint.valueDocCoord()},e.prototype.basePt=function(){return _MrxDbgUiPrPoint.basePt()},e.prototype.setBasePt=function(e){return _MrxDbgUiPrPoint.setBasePt(e)},e.prototype.setUseBasePt=function(e){return _MrxDbgUiPrPoint.setUseBasePt(e)},e.prototype.go=function(e){return _MrxDbgUiPrPoint.go(e)},e.prototype.goWhile=function(e,t){return _MrxDbgUiPrPoint.goWhile(e,t)},e.prototype.drawReserve=function(e){return _MrxDbgUiPrPoint.drawReserve(e)},e}(),McEdGetPointWorldDrawObject=function(){function e(){var e=this;this._McEdGetPointWorldDraw=new(store.state.MxFun.getMxJigCmdManager().McEdGetPointWorldDrawObjectClass()),this._get=function(){return e._McEdGetPointWorldDraw}}return e.prototype.drawCircle=function(e,t){return this._McEdGetPointWorldDraw.drawCircle(e,t)},e.prototype.drawLine=function(e,t){return this._McEdGetPointWorldDraw.drawLine(e,t)},e.prototype.drawEntity=function(e){return this._McEdGetPointWorldDraw.drawEntity(e)},e.prototype.drawText=function(e,t,n,r){return this._McEdGetPointWorldDraw.drawText(e,t,n,r)},e.prototype.setDraw=function(e){return this._McEdGetPointWorldDraw.setDraw(e)},e.prototype.setColor=function(e){return this._McEdGetPointWorldDraw.setColor(e)},e.prototype.getColor=function(){return this._McEdGetPointWorldDraw.getColor()},e.prototype.drawCustomEntity=function(e){return this._McEdGetPointWorldDraw.drawCustomEntity(e)},e}(),MrxDbgUiPrBaseReturn;!function(e){e[e.kCancel=-2]="kCancel",e[e.kNone=-1]="kNone",e[e.kOk=0]="kOk",e[e.kKeyWord=1]="kKeyWord"}(MrxDbgUiPrBaseReturn||(MrxDbgUiPrBaseReturn={}));var MrxDbgUiPrBaseReturn$1=MrxDbgUiPrBaseReturn,MxDbRect=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pt1=new Vector3,t.pt2=new Vector3,t.width=0,t.height=0,t.cornerRadius=[],t.transparent=!0,t.opacity=1,t.visible=!0,t}return __extends(t,e),t.prototype.worldDraw=function(e){var t,n,r=this,i=computeRectPoints(this.pt1,this.pt2);this.cornerRadius.length<=0&&this.radius&&(this.cornerRadius=[MxFun$1.screenCoordLong2Doc(this.radius),MxFun$1.screenCoordLong2Doc(this.radius),MxFun$1.screenCoordLong2Doc(this.radius),MxFun$1.screenCoordLong2Doc(this.radius)]),this.cornerRadius.length>0&&(i=getToGenerateRoundedCorners(i,this.cornerRadius));var a=new Object3D,o={transparent:this.transparent,opacity:this.opacity,visible:this.visible};if(this.fillColor||this.fillImageSrc){i=i.map((function(e){return new Vector2(e.x,e.y)})),(t=new ShapeGeometry(new Shape(i))).computeBoundingBox();var s=new Vector3;if(t.boundingBox.getSize(s),this.width=MxFun$1.docCoord2Screen(s.x).x,this.height=MxFun$1.docCoord2Screen(s.y).x,this.fillImageSrc){var l=this.fillImageSrc;return void MxFun$1.loadImageMaterial(l,(function(s){if(s){n=s,t=repairGeometryFaceVertexUvs(t=new ShapeGeometry(new Shape(i)));var l=s.map;if(r.fillImageParam&&(r.fillImageParam.center&&(l.center=r.fillImageParam.center),r.fillImageParam.offset&&(l.offset=r.fillImageParam.offset),r.fillImageParam.repeat&&(l.repeat=r.fillImageParam.repeat),r.fillImageParam.rotation&&(l.rotation=r.fillImageParam.rotation)),r.filter){var c=r.filter._getFilterShaderData(l);n=new ShaderMaterial(__assign(__assign({},c),o))}n.depthTest=!1,n.transparent=r.transparent,n.opacity=r.opacity,n.visible=r.visible,a=new Mesh(t,n),e.drawEntity(a)}}))}n=new MeshBasicMaterial(__assign({color:this.filter?this.filter._getFilterColor(this.fillColor,this.opacity):new Color(this.fillColor)},o)),a=new Mesh(t,n)}else t=(new BufferGeometry).setFromPoints(i),n=new LineBasicMaterial(__assign({color:this.getColor()},o)),a=new LineLoop(t,n);e.drawEntity(a)},t.prototype.getGripPoints=function(){var e=[];e.push(this.pt1);var t=new Line3(this.pt1,this.pt2),n=new Vector3;return t.getCenter(n),e.push(n),e.push(this.pt2),e},t.prototype.moveGripPointsAt=function(e,t){return 0==e?this.pt1.add(t):1==e?(this.pt1.add(t),this.pt2.add(t)):2==e&&this.pt2.add(t),!0},t.prototype.dwgIn=function(e){return this.onDwgIn(e),this.pt1.copy(e.pt1),this.pt2.copy(e.pt2),this.cornerRadius=e.cornerRadius,this.radius=e.radius,this.filter=e.filter,!0},t.prototype.dwgOut=function(e){return this.onDwgOut(e),e.pt1=this.pt1,e.pt2=this.pt2,e.cornerRadius=this.cornerRadius,e.radius=this.radius,e.filter=this.filter,e},t.prototype.create=function(){return new t},t.prototype.transformBy=function(e){this.pt1.applyMatrix4(e),this.pt2.applyMatrix4(e)},t.prototype.getTypeName=function(){return"MxRectEntity"},t}(MxDbEntity),Mxassembly=function(){function e(){}return e.prototype.NewMcGeVector3d=function(){return new store.state.Mxassembly.McGeVector3d},e}(),Mxassembly$1=new Mxassembly,mxdraw={MxFun:MxFun$1,Mxassembly:Mxassembly$1,MxThreeJS:MxThreeJS$1,McEdGetPointWorldDrawObject:McEdGetPointWorldDrawObject,MrxDbgUiPrPoint:MrxDbgUiPrPoint,MxDbEntity:MxDbEntity,MxDbImage:MxDbImage,MxDbLine:MxDbLine,MxDbSVG:MxDbSVG,MxDbRect:MxDbRect,MxDbAlignedDimension:MxDbAlignedDimension,useCanvasResizeListener:useCanvasResizeListener,loadCoreCode:loadCoreCode,store:store$1,MrxDbgUiPrBaseReturn:MrxDbgUiPrBaseReturn$1,McGiWorldDrawType:McGiWorldDrawType$1},elementResizeEventPolyfill_umd_min=createCommonjsModule((function(e,t){"undefined"!=typeof self&&self,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fae3")}({"6dd8":function(e,t,n){(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},o=2;function s(e,t){var n=!1,r=!1,i=0;function s(){n&&(n=!1,e()),r&&c()}function l(){a(s)}function c(){var e=Date.now();if(n){if(e-i<o)return;r=!0}else n=!0,r=!1,setTimeout(l,t);i=e}return c}var l=20,c=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,h=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),l)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=c.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),p=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},f=S(0,0,0,0);function m(e){return parseFloat(e)||0}function g(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+m(e["border-"+n+"-width"])}),0)}function v(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],a=e["padding-"+i];t[i]=m(a)}return t}function y(e){var t=e.getBBox();return S(0,0,t.width,t.height)}function x(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=d(e).getComputedStyle(e),i=v(r),a=i.left+i.right,o=i.top+i.bottom,s=m(r.width),l=m(r.height);if("border-box"===r.boxSizing&&(Math.round(s+a)!==t&&(s-=g(r,"left","right")+a),Math.round(l+o)!==n&&(l-=g(r,"top","bottom")+o)),!b(e)){var c=Math.round(s+a)-t,u=Math.round(l+o)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return S(i.left,i.top,s,l)}var _="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function b(e){return e===d(e).document.documentElement}function w(e){return r?_(e)?y(e):x(e):f}function M(e){var t=e.x,n=e.y,r=e.width,i=e.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(a.prototype);return p(o,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),o}function S(e,t,n,r){return{x:e,y:t,width:n,height:r}}var T=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=w(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),E=function(){function e(e,t){var n=M(t);p(this,{target:e,contentRect:n})}return e}(),C=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new T(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new E(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),A="undefined"!=typeof WeakMap?new WeakMap:new n,L=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=h.getInstance(),r=new C(t,n,this);A.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){L.prototype[e]=function(){var t;return(t=A.get(this))[e].apply(t,arguments)}}));var D=void 0!==i.ResizeObserver?i.ResizeObserver:L;t.a=D}).call(this,n("c8ba"))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},f6fd:function(e,t){!function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})}(document)},fae3:function(e,t,n){var r;n.r(t),n.d(t,"EventListenerWrapper",(function(){return s})),"undefined"!=typeof window&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));var i=n("6dd8");const a=EventTarget.prototype.addEventListener,o=function(e){const t=document.createEvent("HTMLEvents");return t.initEvent(e),t},s=function(e){"resize"===e&&c(this),a.apply(this,arguments)};function l(e){const t=l.observer=l.observer||new i.a(e);return t.initialized=!0,t}function c(e){const t=l((e=>{if(t.initialized)t.initialized=!1;else for(let t of e){const e=o("resize");t.target.dispatchEvent(e),t&&t.target&&"function"==typeof t.target.onresize&&t.target.onresize(e)}}));t.observe(e)}HTMLElement.prototype.addEventListener=s,Reflect.defineProperty(HTMLElement.prototype,"onresize",{set(e){this._onresize=e,"function"==typeof e&&c(this)},get(){return this._onresize||null}})}})})),elementResizeEventPolyfill_umd_min$1=unwrapExports(elementResizeEventPolyfill_umd_min),elementResizeEventPolyfill_umd_min$2=Object.freeze({default:elementResizeEventPolyfill_umd_min$1,__moduleExports:elementResizeEventPolyfill_umd_min}),jquery=createCommonjsModule((function(e){
19
+ Object.assign(PropertyBinding.prototype,{_getValue_unbound:PropertyBinding.prototype.getValue,_setValue_unbound:PropertyBinding.prototype.setValue}),Object.assign(AnimationObjectGroup.prototype,{isAnimationObjectGroup:!0,add:function(){for(var e=this._objects,t=e.length,n=this.nCachedObjects_,r=this._indicesByUUID,i=this._paths,a=this._parsedPaths,o=this._bindings,s=o.length,l=void 0,c=0,u=arguments.length;c!==u;++c){var h=arguments[c],p=h.uuid,d=r[p];if(void 0===d){d=t++,r[p]=d,e.push(h);for(var f=0,m=s;f!==m;++f)o[f].push(new PropertyBinding(h,i[f],a[f]))}else if(d<n){l=e[d];var g=--n,v=e[g];r[v.uuid]=d,e[d]=v,r[p]=g,e[g]=h;for(f=0,m=s;f!==m;++f){var y=o[f],x=y[g],_=y[d];y[d]=x,void 0===_&&(_=new PropertyBinding(h,i[f],a[f])),y[g]=_}}else e[d]!==l&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=n},remove:function(){for(var e=this._objects,t=this.nCachedObjects_,n=this._indicesByUUID,r=this._bindings,i=r.length,a=0,o=arguments.length;a!==o;++a){var s=arguments[a],l=s.uuid,c=n[l];if(void 0!==c&&c>=t){var u=t++,h=e[u];n[h.uuid]=c,e[c]=h,n[l]=u,e[u]=s;for(var p=0,d=i;p!==d;++p){var f=r[p],m=f[u],g=f[c];f[c]=m,f[u]=g}}}this.nCachedObjects_=t},uncache:function(){for(var e=this._objects,t=e.length,n=this.nCachedObjects_,r=this._indicesByUUID,i=this._bindings,a=i.length,o=0,s=arguments.length;o!==s;++o){var l=arguments[o],c=l.uuid,u=r[c];if(void 0!==u)if(delete r[c],u<n){var h=--n,p=e[h],d=e[y=--t];r[p.uuid]=u,e[u]=p,r[d.uuid]=h,e[h]=d,e.pop();for(var f=0,m=a;f!==m;++f){var g=(x=i[f])[h],v=x[y];x[u]=g,x[h]=v,x.pop()}}else{var y;r[(d=e[y=--t]).uuid]=u,e[u]=d,e.pop();for(f=0,m=a;f!==m;++f){var x;(x=i[f])[u]=x[y],x.pop()}}}this.nCachedObjects_=n},subscribe_:function(e,t){var n=this._bindingsIndicesByPath,r=n[e],i=this._bindings;if(void 0!==r)return i[r];var a=this._paths,o=this._parsedPaths,s=this._objects,l=s.length,c=this.nCachedObjects_,u=new Array(l);r=i.length,n[e]=r,a.push(e),o.push(t),i.push(u);for(var h=c,p=s.length;h!==p;++h){var d=s[h];u[h]=new PropertyBinding(d,e,t)}return u},unsubscribe_:function(e){var t=this._bindingsIndicesByPath,n=t[e];if(void 0!==n){var r=this._paths,i=this._parsedPaths,a=this._bindings,o=a.length-1,s=a[o];t[e[o]]=n,a[n]=s,a.pop(),i[n]=i[o],i.pop(),r[n]=r[o],r.pop()}}}),Object.assign(AnimationAction.prototype,{play:function(){return this._mixer._activateAction(this),this},stop:function(){return this._mixer._deactivateAction(this),this.reset()},reset:function(){return this.paused=!1,this.enabled=!0,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(e){return this._startTime=e,this},setLoop:function(e,t){return this.loop=e,this.repetitions=t,this},setEffectiveWeight:function(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()},getEffectiveWeight:function(){return this._effectiveWeight},fadeIn:function(e){return this._scheduleFading(e,0,1)},fadeOut:function(e){return this._scheduleFading(e,1,0)},crossFadeFrom:function(e,t,n){if(e.fadeOut(t),this.fadeIn(t),n){var r=this._clip.duration,i=e._clip.duration,a=i/r,o=r/i;e.warp(1,a,t),this.warp(o,1,t)}return this},crossFadeTo:function(e,t,n){return e.crossFadeFrom(this,t,n)},stopFading:function(){var e=this._weightInterpolant;return null!==e&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this},setEffectiveTimeScale:function(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()},getEffectiveTimeScale:function(){return this._effectiveTimeScale},setDuration:function(e){return this.timeScale=this._clip.duration/e,this.stopWarping()},syncWith:function(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()},halt:function(e){return this.warp(this._effectiveTimeScale,0,e)},warp:function(e,t,n){var r=this._mixer,i=r.time,a=this._timeScaleInterpolant,o=this.timeScale;null===a&&(a=r._lendControlInterpolant(),this._timeScaleInterpolant=a);var s=a.parameterPositions,l=a.sampleValues;return s[0]=i,s[1]=i+n,l[0]=e/o,l[1]=t/o,this},stopWarping:function(){var e=this._timeScaleInterpolant;return null!==e&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this},getMixer:function(){return this._mixer},getClip:function(){return this._clip},getRoot:function(){return this._localRoot||this._mixer._root},_update:function(e,t,n,r){if(this.enabled){var i=this._startTime;if(null!==i){var a=(e-i)*n;if(a<0||0===n)return;this._startTime=null,t=n*a}t*=this._updateTimeScale(e);var o=this._updateTime(t),s=this._updateWeight(e);if(s>0)for(var l=this._interpolants,c=this._propertyBindings,u=0,h=l.length;u!==h;++u)l[u].evaluate(o),c[u].accumulate(r,s)}else this._updateWeight(e)},_updateWeight:function(e){var t=0;if(this.enabled){t=this.weight;var n=this._weightInterpolant;if(null!==n){var r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopFading(),0===r&&(this.enabled=!1))}}return this._effectiveWeight=t,t},_updateTimeScale:function(e){var t=0;if(!this.paused){t=this.timeScale;var n=this._timeScaleInterpolant;if(null!==n)t*=n.evaluate(e)[0],e>n.parameterPositions[1]&&(this.stopWarping(),0===t?this.paused=!0:this.timeScale=t)}return this._effectiveTimeScale=t,t},_updateTime:function(e){var t=this.time+e,n=this._clip.duration,r=this.loop,i=this._loopCount,a=r===LoopPingPong;if(0===e)return-1===i?t:a&&1==(1&i)?n-t:t;if(r===LoopOnce){-1===i&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(t>=n)t=n;else{if(!(t<0)){this.time=t;break e}t=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=t,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(-1===i&&(e>=0?(i=0,this._setEndings(!0,0===this.repetitions,a)):this._setEndings(0===this.repetitions,!0,a)),t>=n||t<0){var o=Math.floor(t/n);t-=n*o,i+=Math.abs(o);var s=this.repetitions-i;if(s<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,t=e>0?n:0,this.time=t,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(1===s){var l=e<0;this._setEndings(l,!l,a)}else this._setEndings(!1,!1,a);this._loopCount=i,this.time=t,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:o})}}else this.time=t;if(a&&1==(1&i))return n-t}return t},_setEndings:function(e,t,n){var r=this._interpolantSettings;n?(r.endingStart=ZeroSlopeEnding,r.endingEnd=ZeroSlopeEnding):(r.endingStart=e?this.zeroSlopeAtStart?ZeroSlopeEnding:ZeroCurvatureEnding:WrapAroundEnding,r.endingEnd=t?this.zeroSlopeAtEnd?ZeroSlopeEnding:ZeroCurvatureEnding:WrapAroundEnding)},_scheduleFading:function(e,t,n){var r=this._mixer,i=r.time,a=this._weightInterpolant;null===a&&(a=r._lendControlInterpolant(),this._weightInterpolant=a);var o=a.parameterPositions,s=a.sampleValues;return o[0]=i,s[0]=t,o[1]=i+e,s[1]=n,this}}),AnimationMixer.prototype=Object.assign(Object.create(EventDispatcher.prototype),{constructor:AnimationMixer,_bindAction:function(e,t){var n=e._localRoot||this._root,r=e._clip.tracks,i=r.length,a=e._propertyBindings,o=e._interpolants,s=n.uuid,l=this._bindingsByRootAndName,c=l[s];void 0===c&&(c={},l[s]=c);for(var u=0;u!==i;++u){var h=r[u],p=h.name,d=c[p];if(void 0!==d)a[u]=d;else{if(void 0!==(d=a[u])){null===d._cacheIndex&&(++d.referenceCount,this._addInactiveBinding(d,s,p));continue}var f=t&&t._propertyBindings[u].binding.parsedPath;++(d=new PropertyMixer(PropertyBinding.create(n,p,f),h.ValueTypeName,h.getValueSize())).referenceCount,this._addInactiveBinding(d,s,p),a[u]=d}o[u].resultBuffer=d.buffer}},_activateAction:function(e){if(!this._isActiveAction(e)){if(null===e._cacheIndex){var t=(e._localRoot||this._root).uuid,n=e._clip.uuid,r=this._actionsByClip[n];this._bindAction(e,r&&r.knownActions[0]),this._addInactiveAction(e,n,t)}for(var i=e._propertyBindings,a=0,o=i.length;a!==o;++a){var s=i[a];0==s.useCount++&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(e)}},_deactivateAction:function(e){if(this._isActiveAction(e)){for(var t=e._propertyBindings,n=0,r=t.length;n!==r;++n){var i=t[n];0==--i.useCount&&(i.restoreOriginalState(),this._takeBackBinding(i))}this._takeBackAction(e)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}},_isActiveAction:function(e){var t=e._cacheIndex;return null!==t&&t<this._nActiveActions},_addInactiveAction:function(e,t,n){var r=this._actions,i=this._actionsByClip,a=i[t];if(void 0===a)a={knownActions:[e],actionByRoot:{}},e._byClipCacheIndex=0,i[t]=a;else{var o=a.knownActions;e._byClipCacheIndex=o.length,o.push(e)}e._cacheIndex=r.length,r.push(e),a.actionByRoot[n]=e},_removeInactiveAction:function(e){var t=this._actions,n=t[t.length-1],r=e._cacheIndex;n._cacheIndex=r,t[r]=n,t.pop(),e._cacheIndex=null;var i=e._clip.uuid,a=this._actionsByClip,o=a[i],s=o.knownActions,l=s[s.length-1],c=e._byClipCacheIndex;l._byClipCacheIndex=c,s[c]=l,s.pop(),e._byClipCacheIndex=null,delete o.actionByRoot[(e._localRoot||this._root).uuid],0===s.length&&delete a[i],this._removeInactiveBindingsForAction(e)},_removeInactiveBindingsForAction:function(e){for(var t=e._propertyBindings,n=0,r=t.length;n!==r;++n){var i=t[n];0==--i.referenceCount&&this._removeInactiveBinding(i)}},_lendAction:function(e){var t=this._actions,n=e._cacheIndex,r=this._nActiveActions++,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i},_takeBackAction:function(e){var t=this._actions,n=e._cacheIndex,r=--this._nActiveActions,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i},_addInactiveBinding:function(e,t,n){var r=this._bindingsByRootAndName,i=r[t],a=this._bindings;void 0===i&&(i={},r[t]=i),i[n]=e,e._cacheIndex=a.length,a.push(e)},_removeInactiveBinding:function(e){var t=this._bindings,n=e.binding,r=n.rootNode.uuid,i=n.path,a=this._bindingsByRootAndName,o=a[r],s=t[t.length-1],l=e._cacheIndex;s._cacheIndex=l,t[l]=s,t.pop(),delete o[i],0===Object.keys(o).length&&delete a[r]},_lendBinding:function(e){var t=this._bindings,n=e._cacheIndex,r=this._nActiveBindings++,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i},_takeBackBinding:function(e){var t=this._bindings,n=e._cacheIndex,r=--this._nActiveBindings,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i},_lendControlInterpolant:function(){var e=this._controlInterpolants,t=this._nActiveControlInterpolants++,n=e[t];return void 0===n&&((n=new LinearInterpolant(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer)).__cacheIndex=t,e[t]=n),n},_takeBackControlInterpolant:function(e){var t=this._controlInterpolants,n=e.__cacheIndex,r=--this._nActiveControlInterpolants,i=t[r];e.__cacheIndex=r,t[r]=e,i.__cacheIndex=n,t[n]=i},_controlInterpolantsResultBuffer:new Float32Array(1),clipAction:function(e,t){var n=t||this._root,r=n.uuid,i="string"==typeof e?AnimationClip.findByName(n,e):e,a=null!==i?i.uuid:e,o=this._actionsByClip[a],s=null;if(void 0!==o){var l=o.actionByRoot[r];if(void 0!==l)return l;s=o.knownActions[0],null===i&&(i=s._clip)}if(null===i)return null;var c=new AnimationAction(this,i,t);return this._bindAction(c,s),this._addInactiveAction(c,a,r),c},existingAction:function(e,t){var n=t||this._root,r=n.uuid,i="string"==typeof e?AnimationClip.findByName(n,e):e,a=i?i.uuid:e,o=this._actionsByClip[a];return void 0!==o&&o.actionByRoot[r]||null},stopAllAction:function(){var e=this._actions,t=this._nActiveActions,n=this._bindings,r=this._nActiveBindings;this._nActiveActions=0,this._nActiveBindings=0;for(var i=0;i!==t;++i)e[i].reset();for(i=0;i!==r;++i)n[i].useCount=0;return this},update:function(e){e*=this.timeScale;for(var t=this._actions,n=this._nActiveActions,r=this.time+=e,i=Math.sign(e),a=this._accuIndex^=1,o=0;o!==n;++o){t[o]._update(r,e,i,a)}var s=this._bindings,l=this._nActiveBindings;for(o=0;o!==l;++o)s[o].apply(a);return this},setTime:function(e){this.time=0;for(var t=0;t<this._actions.length;t++)this._actions[t].time=0;return this.update(e)},getRoot:function(){return this._root},uncacheClip:function(e){var t=this._actions,n=e.uuid,r=this._actionsByClip,i=r[n];if(void 0!==i){for(var a=i.knownActions,o=0,s=a.length;o!==s;++o){var l=a[o];this._deactivateAction(l);var c=l._cacheIndex,u=t[t.length-1];l._cacheIndex=null,l._byClipCacheIndex=null,u._cacheIndex=c,t[c]=u,t.pop(),this._removeInactiveBindingsForAction(l)}delete r[n]}},uncacheRoot:function(e){var t=e.uuid,n=this._actionsByClip;for(var r in n){var i=n[r].actionByRoot[t];void 0!==i&&(this._deactivateAction(i),this._removeInactiveAction(i))}var a=this._bindingsByRootAndName[t];if(void 0!==a)for(var o in a){var s=a[o];s.restoreOriginalState(),this._removeInactiveBinding(s)}},uncacheAction:function(e,t){var n=this.existingAction(e,t);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}}),Uniform.prototype.clone=function(){return new Uniform(void 0===this.value.clone?this.value:this.value.clone())},InstancedInterleavedBuffer.prototype=Object.assign(Object.create(InterleavedBuffer.prototype),{constructor:InstancedInterleavedBuffer,isInstancedInterleavedBuffer:!0,copy:function(e){return InterleavedBuffer.prototype.copy.call(this,e),this.meshPerAttribute=e.meshPerAttribute,this}}),Object.assign(Raycaster.prototype,{linePrecision:1,set:function(e,t){this.ray.set(e,t)},setFromCamera:function(e,t){t&&t.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(t.matrixWorld),this.ray.direction.set(e.x,e.y,.5).unproject(t).sub(this.ray.origin).normalize(),this.camera=t):t&&t.isOrthographicCamera?(this.ray.origin.set(e.x,e.y,(t.near+t.far)/(t.near-t.far)).unproject(t),this.ray.direction.set(0,0,-1).transformDirection(t.matrixWorld),this.camera=t):console.error("THREE.Raycaster: Unsupported camera type.")},intersectObject:function(e,t,n){var r=n||[];return intersectObject(e,this,r,t),r.sort(ascSort),r},intersectObjects:function(e,t,n){var r=n||[];if(!1===Array.isArray(e))return console.warn("THREE.Raycaster.intersectObjects: objects is not an Array."),r;for(var i=0,a=e.length;i<a;i++)intersectObject(e[i],this,r,t);return r.sort(ascSort),r}}),Object.assign(Spherical.prototype,{set:function(e,t,n){return this.radius=e,this.phi=t,this.theta=n,this},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.radius=e.radius,this.phi=e.phi,this.theta=e.theta,this},makeSafe:function(){var e=1e-6;return this.phi=Math.max(e,Math.min(Math.PI-e,this.phi)),this},setFromVector3:function(e){return this.setFromCartesianCoords(e.x,e.y,e.z)},setFromCartesianCoords:function(e,t,n){return this.radius=Math.sqrt(e*e+t*t+n*n),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(e,n),this.phi=Math.acos(MathUtils.clamp(t/this.radius,-1,1))),this}}),Object.assign(Cylindrical.prototype,{set:function(e,t,n){return this.radius=e,this.theta=t,this.y=n,this},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.radius=e.radius,this.theta=e.theta,this.y=e.y,this},setFromVector3:function(e){return this.setFromCartesianCoords(e.x,e.y,e.z)},setFromCartesianCoords:function(e,t,n){return this.radius=Math.sqrt(e*e+n*n),this.theta=Math.atan2(e,n),this.y=t,this}});var _vector$7=new Vector2;function Box2(e,t){this.min=void 0!==e?e:new Vector2(1/0,1/0),this.max=void 0!==t?t:new Vector2(-1/0,-1/0)}Object.assign(Box2.prototype,{set:function(e,t){return this.min.copy(e),this.max.copy(t),this},setFromPoints:function(e){this.makeEmpty();for(var t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this},setFromCenterAndSize:function(e,t){var n=_vector$7.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.min.copy(e.min),this.max.copy(e.max),this},makeEmpty:function(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y},getCenter:function(e){return void 0===e&&(console.warn("THREE.Box2: .getCenter() target is now required"),e=new Vector2),this.isEmpty()?e.set(0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(e){return void 0===e&&(console.warn("THREE.Box2: .getSize() target is now required"),e=new Vector2),this.isEmpty()?e.set(0,0):e.subVectors(this.max,this.min)},expandByPoint:function(e){return this.min.min(e),this.max.max(e),this},expandByVector:function(e){return this.min.sub(e),this.max.add(e),this},expandByScalar:function(e){return this.min.addScalar(-e),this.max.addScalar(e),this},containsPoint:function(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y)},containsBox:function(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y},getParameter:function(e,t){return void 0===t&&(console.warn("THREE.Box2: .getParameter() target is now required"),t=new Vector2),t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y)},clampPoint:function(e,t){return void 0===t&&(console.warn("THREE.Box2: .clampPoint() target is now required"),t=new Vector2),t.copy(e).clamp(this.min,this.max)},distanceToPoint:function(e){return _vector$7.copy(e).clamp(this.min,this.max).sub(e).length()},intersect:function(e){return this.min.max(e.min),this.max.min(e.max),this},union:function(e){return this.min.min(e.min),this.max.max(e.max),this},translate:function(e){return this.min.add(e),this.max.add(e),this},equals:function(e){return e.min.equals(this.min)&&e.max.equals(this.max)}});var _startP=new Vector3,_startEnd=new Vector3;function Line3(e,t){this.start=void 0!==e?e:new Vector3,this.end=void 0!==t?t:new Vector3}function ImmediateRenderObject(e){Object3D.call(this),this.material=e,this.render=function(){}}Object.assign(Line3.prototype,{set:function(e,t){return this.start.copy(e),this.end.copy(t),this},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.start.copy(e.start),this.end.copy(e.end),this},getCenter:function(e){return void 0===e&&(console.warn("THREE.Line3: .getCenter() target is now required"),e=new Vector3),e.addVectors(this.start,this.end).multiplyScalar(.5)},delta:function(e){return void 0===e&&(console.warn("THREE.Line3: .delta() target is now required"),e=new Vector3),e.subVectors(this.end,this.start)},distanceSq:function(){return this.start.distanceToSquared(this.end)},distance:function(){return this.start.distanceTo(this.end)},at:function(e,t){return void 0===t&&(console.warn("THREE.Line3: .at() target is now required"),t=new Vector3),this.delta(t).multiplyScalar(e).add(this.start)},closestPointToPointParameter:function(e,t){_startP.subVectors(e,this.start),_startEnd.subVectors(this.end,this.start);var n=_startEnd.dot(_startEnd),r=_startEnd.dot(_startP)/n;return t&&(r=MathUtils.clamp(r,0,1)),r},closestPointToPoint:function(e,t,n){var r=this.closestPointToPointParameter(e,t);return void 0===n&&(console.warn("THREE.Line3: .closestPointToPoint() target is now required"),n=new Vector3),this.delta(n).multiplyScalar(r).add(this.start)},applyMatrix4:function(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this},equals:function(e){return e.start.equals(this.start)&&e.end.equals(this.end)}}),ImmediateRenderObject.prototype=Object.create(Object3D.prototype),ImmediateRenderObject.prototype.constructor=ImmediateRenderObject,ImmediateRenderObject.prototype.isImmediateRenderObject=!0;var _vector$8=new Vector3;function SpotLightHelper(e,t){Object3D.call(this),this.light=e,this.light.updateMatrixWorld(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=t;for(var n=new BufferGeometry,r=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1],i=0,a=1;i<32;i++,a++){var o=i/32*Math.PI*2,s=a/32*Math.PI*2;r.push(Math.cos(o),Math.sin(o),1,Math.cos(s),Math.sin(s),1)}n.setAttribute("position",new Float32BufferAttribute(r,3));var l=new LineBasicMaterial({fog:!1});this.cone=new LineSegments(n,l),this.add(this.cone),this.update()}SpotLightHelper.prototype=Object.create(Object3D.prototype),SpotLightHelper.prototype.constructor=SpotLightHelper,SpotLightHelper.prototype.dispose=function(){this.cone.geometry.dispose(),this.cone.material.dispose()},SpotLightHelper.prototype.update=function(){this.light.updateMatrixWorld();var e=this.light.distance?this.light.distance:1e3,t=e*Math.tan(this.light.angle);this.cone.scale.set(t,t,e),_vector$8.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(_vector$8),void 0!==this.color?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)};var _vector$9=new Vector3,_boneMatrix=new Matrix4,_matrixWorldInv=new Matrix4;function getBoneList(e){var t=[];e&&e.isBone&&t.push(e);for(var n=0;n<e.children.length;n++)t.push.apply(t,getBoneList(e.children[n]));return t}function SkeletonHelper(e){for(var t=getBoneList(e),n=new BufferGeometry,r=[],i=[],a=new Color(0,0,1),o=new Color(0,1,0),s=0;s<t.length;s++){var l=t[s];l.parent&&l.parent.isBone&&(r.push(0,0,0),r.push(0,0,0),i.push(a.r,a.g,a.b),i.push(o.r,o.g,o.b))}n.setAttribute("position",new Float32BufferAttribute(r,3)),n.setAttribute("color",new Float32BufferAttribute(i,3));var c=new LineBasicMaterial({vertexColors:VertexColors,depthTest:!1,depthWrite:!1,transparent:!0});LineSegments.call(this,n,c),this.root=e,this.bones=t,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1}function PointLightHelper(e,t,n){this.light=e,this.light.updateMatrixWorld(),this.color=n;var r=new SphereBufferGeometry(t,4,2),i=new MeshBasicMaterial({wireframe:!0,fog:!1});Mesh.call(this,r,i),this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1,this.update()}SkeletonHelper.prototype=Object.create(LineSegments.prototype),SkeletonHelper.prototype.constructor=SkeletonHelper,SkeletonHelper.prototype.updateMatrixWorld=function(e){var t=this.bones,n=this.geometry,r=n.getAttribute("position");_matrixWorldInv.getInverse(this.root.matrixWorld);for(var i=0,a=0;i<t.length;i++){var o=t[i];o.parent&&o.parent.isBone&&(_boneMatrix.multiplyMatrices(_matrixWorldInv,o.matrixWorld),_vector$9.setFromMatrixPosition(_boneMatrix),r.setXYZ(a,_vector$9.x,_vector$9.y,_vector$9.z),_boneMatrix.multiplyMatrices(_matrixWorldInv,o.parent.matrixWorld),_vector$9.setFromMatrixPosition(_boneMatrix),r.setXYZ(a+1,_vector$9.x,_vector$9.y,_vector$9.z),a+=2)}n.getAttribute("position").needsUpdate=!0,Object3D.prototype.updateMatrixWorld.call(this,e)},PointLightHelper.prototype=Object.create(Mesh.prototype),PointLightHelper.prototype.constructor=PointLightHelper,PointLightHelper.prototype.dispose=function(){this.geometry.dispose(),this.material.dispose()},PointLightHelper.prototype.update=function(){void 0!==this.color?this.material.color.set(this.color):this.material.color.copy(this.light.color)};var _vector$a=new Vector3,_color1=new Color,_color2=new Color;function HemisphereLightHelper(e,t,n){Object3D.call(this),this.light=e,this.light.updateMatrixWorld(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=n;var r=new OctahedronBufferGeometry(t);r.rotateY(.5*Math.PI),this.material=new MeshBasicMaterial({wireframe:!0,fog:!1}),void 0===this.color&&(this.material.vertexColors=VertexColors);var i=r.getAttribute("position"),a=new Float32Array(3*i.count);r.setAttribute("color",new BufferAttribute(a,3)),this.add(new Mesh(r,this.material)),this.update()}function GridHelper(e,t,n,r){e=e||10,t=t||10,n=new Color(void 0!==n?n:4473924),r=new Color(void 0!==r?r:8947848);for(var i=t/2,a=e/t,o=e/2,s=[],l=[],c=0,u=0,h=-o;c<=t;c++,h+=a){s.push(-o,0,h,o,0,h),s.push(h,0,-o,h,0,o);var p=c===i?n:r;p.toArray(l,u),u+=3,p.toArray(l,u),u+=3,p.toArray(l,u),u+=3,p.toArray(l,u),u+=3}var d=new BufferGeometry;d.setAttribute("position",new Float32BufferAttribute(s,3)),d.setAttribute("color",new Float32BufferAttribute(l,3));var f=new LineBasicMaterial({vertexColors:VertexColors});LineSegments.call(this,d,f)}function PolarGridHelper(e,t,n,r,i,a){e=e||10,t=t||16,n=n||8,r=r||64,i=new Color(void 0!==i?i:4473924),a=new Color(void 0!==a?a:8947848);var o,s,l,c,u,h,p,d=[],f=[];for(c=0;c<=t;c++)l=c/t*(2*Math.PI),o=Math.sin(l)*e,s=Math.cos(l)*e,d.push(0,0,0),d.push(o,0,s),p=1&c?i:a,f.push(p.r,p.g,p.b),f.push(p.r,p.g,p.b);for(c=0;c<=n;c++)for(p=1&c?i:a,h=e-e/n*c,u=0;u<r;u++)l=u/r*(2*Math.PI),o=Math.sin(l)*h,s=Math.cos(l)*h,d.push(o,0,s),f.push(p.r,p.g,p.b),l=(u+1)/r*(2*Math.PI),o=Math.sin(l)*h,s=Math.cos(l)*h,d.push(o,0,s),f.push(p.r,p.g,p.b);var m=new BufferGeometry;m.setAttribute("position",new Float32BufferAttribute(d,3)),m.setAttribute("color",new Float32BufferAttribute(f,3));var g=new LineBasicMaterial({vertexColors:VertexColors});LineSegments.call(this,m,g)}HemisphereLightHelper.prototype=Object.create(Object3D.prototype),HemisphereLightHelper.prototype.constructor=HemisphereLightHelper,HemisphereLightHelper.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},HemisphereLightHelper.prototype.update=function(){var e=this.children[0];if(void 0!==this.color)this.material.color.set(this.color);else{var t=e.geometry.getAttribute("color");_color1.copy(this.light.color),_color2.copy(this.light.groundColor);for(var n=0,r=t.count;n<r;n++){var i=n<r/2?_color1:_color2;t.setXYZ(n,i.r,i.g,i.b)}t.needsUpdate=!0}e.lookAt(_vector$a.setFromMatrixPosition(this.light.matrixWorld).negate())},GridHelper.prototype=Object.assign(Object.create(LineSegments.prototype),{constructor:GridHelper,copy:function(e){return LineSegments.prototype.copy.call(this,e),this.geometry.copy(e.geometry),this.material.copy(e.material),this},clone:function(){return(new this.constructor).copy(this)}}),PolarGridHelper.prototype=Object.create(LineSegments.prototype),PolarGridHelper.prototype.constructor=PolarGridHelper;var _v1$5=new Vector3,_v2$3=new Vector3,_v3$1=new Vector3;function DirectionalLightHelper(e,t,n){Object3D.call(this),this.light=e,this.light.updateMatrixWorld(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=n,void 0===t&&(t=1);var r=new BufferGeometry;r.setAttribute("position",new Float32BufferAttribute([-t,t,0,t,t,0,t,-t,0,-t,-t,0,-t,t,0],3));var i=new LineBasicMaterial({fog:!1});this.lightPlane=new Line(r,i),this.add(this.lightPlane),(r=new BufferGeometry).setAttribute("position",new Float32BufferAttribute([0,0,0,0,0,1],3)),this.targetLine=new Line(r,i),this.add(this.targetLine),this.update()}DirectionalLightHelper.prototype=Object.create(Object3D.prototype),DirectionalLightHelper.prototype.constructor=DirectionalLightHelper,DirectionalLightHelper.prototype.dispose=function(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()},DirectionalLightHelper.prototype.update=function(){_v1$5.setFromMatrixPosition(this.light.matrixWorld),_v2$3.setFromMatrixPosition(this.light.target.matrixWorld),_v3$1.subVectors(_v2$3,_v1$5),this.lightPlane.lookAt(_v2$3),void 0!==this.color?(this.lightPlane.material.color.set(this.color),this.targetLine.material.color.set(this.color)):(this.lightPlane.material.color.copy(this.light.color),this.targetLine.material.color.copy(this.light.color)),this.targetLine.lookAt(_v2$3),this.targetLine.scale.z=_v3$1.length()};var _vector$b=new Vector3,_camera=new Camera;function CameraHelper(e){var t=new BufferGeometry,n=new LineBasicMaterial({color:16777215,vertexColors:FaceColors}),r=[],i=[],a={},o=new Color(16755200),s=new Color(16711680),l=new Color(43775),c=new Color(16777215),u=new Color(3355443);function h(e,t,n){p(e,n),p(t,n)}function p(e,t){r.push(0,0,0),i.push(t.r,t.g,t.b),void 0===a[e]&&(a[e]=[]),a[e].push(r.length/3-1)}h("n1","n2",o),h("n2","n4",o),h("n4","n3",o),h("n3","n1",o),h("f1","f2",o),h("f2","f4",o),h("f4","f3",o),h("f3","f1",o),h("n1","f1",o),h("n2","f2",o),h("n3","f3",o),h("n4","f4",o),h("p","n1",s),h("p","n2",s),h("p","n3",s),h("p","n4",s),h("u1","u2",l),h("u2","u3",l),h("u3","u1",l),h("c","t",c),h("p","c",u),h("cn1","cn2",u),h("cn3","cn4",u),h("cf1","cf2",u),h("cf3","cf4",u),t.setAttribute("position",new Float32BufferAttribute(r,3)),t.setAttribute("color",new Float32BufferAttribute(i,3)),LineSegments.call(this,t,n),this.camera=e,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=a,this.update()}function setPoint(e,t,n,r,i,a,o){_vector$b.set(i,a,o).unproject(r);var s=t[e];if(void 0!==s)for(var l=n.getAttribute("position"),c=0,u=s.length;c<u;c++)l.setXYZ(s[c],_vector$b.x,_vector$b.y,_vector$b.z)}CameraHelper.prototype=Object.create(LineSegments.prototype),CameraHelper.prototype.constructor=CameraHelper,CameraHelper.prototype.update=function(){var e=this.geometry,t=this.pointMap;_camera.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse),setPoint("c",t,e,_camera,0,0,-1),setPoint("t",t,e,_camera,0,0,1),setPoint("n1",t,e,_camera,-1,-1,-1),setPoint("n2",t,e,_camera,1,-1,-1),setPoint("n3",t,e,_camera,-1,1,-1),setPoint("n4",t,e,_camera,1,1,-1),setPoint("f1",t,e,_camera,-1,-1,1),setPoint("f2",t,e,_camera,1,-1,1),setPoint("f3",t,e,_camera,-1,1,1),setPoint("f4",t,e,_camera,1,1,1),setPoint("u1",t,e,_camera,.7,1.1,-1),setPoint("u2",t,e,_camera,-.7,1.1,-1),setPoint("u3",t,e,_camera,0,2,-1),setPoint("cf1",t,e,_camera,-1,0,1),setPoint("cf2",t,e,_camera,1,0,1),setPoint("cf3",t,e,_camera,0,-1,1),setPoint("cf4",t,e,_camera,0,1,1),setPoint("cn1",t,e,_camera,-1,0,-1),setPoint("cn2",t,e,_camera,1,0,-1),setPoint("cn3",t,e,_camera,0,-1,-1),setPoint("cn4",t,e,_camera,0,1,-1),e.getAttribute("position").needsUpdate=!0};var _box$3=new Box3;function BoxHelper(e,t){this.object=e,void 0===t&&(t=16776960);var n=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),r=new Float32Array(24),i=new BufferGeometry;i.setIndex(new BufferAttribute(n,1)),i.setAttribute("position",new BufferAttribute(r,3)),LineSegments.call(this,i,new LineBasicMaterial({color:t})),this.matrixAutoUpdate=!1,this.update()}function Box3Helper(e,t){this.type="Box3Helper",this.box=e,t=t||16776960;var n=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),r=new BufferGeometry;r.setIndex(new BufferAttribute(n,1)),r.setAttribute("position",new Float32BufferAttribute([1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],3)),LineSegments.call(this,r,new LineBasicMaterial({color:t})),this.geometry.computeBoundingSphere()}function PlaneHelper(e,t,n){this.type="PlaneHelper",this.plane=e,this.size=void 0===t?1:t;var r=void 0!==n?n:16776960,i=new BufferGeometry;i.setAttribute("position",new Float32BufferAttribute([1,-1,1,-1,1,1,-1,-1,1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,1,0,0,1,0,0,0],3)),i.computeBoundingSphere(),Line.call(this,i,new LineBasicMaterial({color:r}));var a=new BufferGeometry;a.setAttribute("position",new Float32BufferAttribute([1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],3)),a.computeBoundingSphere(),this.add(new Mesh(a,new MeshBasicMaterial({color:r,opacity:.2,transparent:!0,depthWrite:!1})))}BoxHelper.prototype=Object.create(LineSegments.prototype),BoxHelper.prototype.constructor=BoxHelper,BoxHelper.prototype.update=function(e){if(void 0!==e&&console.warn("THREE.BoxHelper: .update() has no longer arguments."),void 0!==this.object&&_box$3.setFromObject(this.object),!_box$3.isEmpty()){var t=_box$3.min,n=_box$3.max,r=this.geometry.attributes.position,i=r.array;i[0]=n.x,i[1]=n.y,i[2]=n.z,i[3]=t.x,i[4]=n.y,i[5]=n.z,i[6]=t.x,i[7]=t.y,i[8]=n.z,i[9]=n.x,i[10]=t.y,i[11]=n.z,i[12]=n.x,i[13]=n.y,i[14]=t.z,i[15]=t.x,i[16]=n.y,i[17]=t.z,i[18]=t.x,i[19]=t.y,i[20]=t.z,i[21]=n.x,i[22]=t.y,i[23]=t.z,r.needsUpdate=!0,this.geometry.computeBoundingSphere()}},BoxHelper.prototype.setFromObject=function(e){return this.object=e,this.update(),this},BoxHelper.prototype.copy=function(e){return LineSegments.prototype.copy.call(this,e),this.object=e.object,this},BoxHelper.prototype.clone=function(){return(new this.constructor).copy(this)},Box3Helper.prototype=Object.create(LineSegments.prototype),Box3Helper.prototype.constructor=Box3Helper,Box3Helper.prototype.updateMatrixWorld=function(e){var t=this.box;t.isEmpty()||(t.getCenter(this.position),t.getSize(this.scale),this.scale.multiplyScalar(.5),Object3D.prototype.updateMatrixWorld.call(this,e))},PlaneHelper.prototype=Object.create(Line.prototype),PlaneHelper.prototype.constructor=PlaneHelper,PlaneHelper.prototype.updateMatrixWorld=function(e){var t=-this.plane.constant;Math.abs(t)<1e-8&&(t=1e-8),this.scale.set(.5*this.size,.5*this.size,t),this.children[0].material.side=t<0?BackSide:FrontSide,this.lookAt(this.plane.normal),Object3D.prototype.updateMatrixWorld.call(this,e)};var _axis=new Vector3,_lineGeometry,_coneGeometry;function ArrowHelper(e,t,n,r,i,a){Object3D.call(this),void 0===e&&(e=new Vector3(0,0,1)),void 0===t&&(t=new Vector3(0,0,0)),void 0===n&&(n=1),void 0===r&&(r=16776960),void 0===i&&(i=.2*n),void 0===a&&(a=.2*i),void 0===_lineGeometry&&((_lineGeometry=new BufferGeometry).setAttribute("position",new Float32BufferAttribute([0,0,0,0,1,0],3)),(_coneGeometry=new CylinderBufferGeometry(0,.5,1,5,1)).translate(0,-.5,0)),this.position.copy(t),this.line=new Line(_lineGeometry,new LineBasicMaterial({color:r})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new Mesh(_coneGeometry,new MeshBasicMaterial({color:r})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(e),this.setLength(n,i,a)}function AxesHelper(e){var t=[0,0,0,e=e||1,0,0,0,0,0,0,e,0,0,0,0,0,0,e],n=new BufferGeometry;n.setAttribute("position",new Float32BufferAttribute(t,3)),n.setAttribute("color",new Float32BufferAttribute([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3));var r=new LineBasicMaterial({vertexColors:VertexColors});LineSegments.call(this,n,r)}ArrowHelper.prototype=Object.create(Object3D.prototype),ArrowHelper.prototype.constructor=ArrowHelper,ArrowHelper.prototype.setDirection=function(e){if(e.y>.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{_axis.set(e.z,0,-e.x).normalize();var t=Math.acos(e.y);this.quaternion.setFromAxisAngle(_axis,t)}},ArrowHelper.prototype.setLength=function(e,t,n){void 0===t&&(t=.2*e),void 0===n&&(n=.2*t),this.line.scale.set(1,Math.max(1e-4,e-t),1),this.line.updateMatrix(),this.cone.scale.set(n,t,n),this.cone.position.y=e,this.cone.updateMatrix()},ArrowHelper.prototype.setColor=function(e){this.line.material.color.set(e),this.cone.material.color.set(e)},ArrowHelper.prototype.copy=function(e){return Object3D.prototype.copy.call(this,e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this},ArrowHelper.prototype.clone=function(){return(new this.constructor).copy(this)},AxesHelper.prototype=Object.create(LineSegments.prototype),AxesHelper.prototype.constructor=AxesHelper;var LOD_MIN=4,LOD_MAX=8,EXTRA_LOD_SIGMA=[.125,.215,.35,.446,.526,.582],TOTAL_LODS=LOD_MAX-LOD_MIN+1+EXTRA_LOD_SIGMA.length,MAX_SAMPLES=20,ENCODINGS={[LinearEncoding]:0,[sRGBEncoding]:1,[RGBEEncoding]:2,[RGBM7Encoding]:3,[RGBM16Encoding]:4,[RGBDEncoding]:5,[GammaEncoding]:6},_flatCamera=new OrthographicCamera,_blurMaterial=_getBlurShader(MAX_SAMPLES),{_lodPlanes:_lodPlanes,_sizeLods:_sizeLods,_sigmas:_sigmas}=_createPlanes(),MxCloneType,MxCloneType2;function _createPlanes(){for(var e=[],t=[],n=[],r=LOD_MAX,i=0;i<TOTAL_LODS;i++){var a=Math.pow(2,r);t.push(a);var o=1/a;i>LOD_MAX-LOD_MIN?o=EXTRA_LOD_SIGMA[i-LOD_MAX+LOD_MIN-1]:0==i&&(o=0),n.push(o);for(var s=1/(a-1),l=-s/2,c=1+s/2,u=[l,l,c,l,c,c,l,l,c,c,l,c],h=new Float32Array(108),p=new Float32Array(72),d=new Float32Array(36),f=0;f<6;f++){var m=f%3*2/3-1,g=f>2?0:-1,v=[m,g,0,m+2/3,g,0,m+2/3,g+1,0,m,g,0,m+2/3,g+1,0,m,g+1,0];h.set(v,18*f),p.set(u,12*f);var y=[f,f,f,f,f,f];d.set(y,6*f)}var x=new BufferGeometry;x.setAttribute("position",new BufferAttribute(h,3)),x.setAttribute("uv",new BufferAttribute(p,2)),x.setAttribute("faceIndex",new BufferAttribute(d,1)),e.push(x),r>LOD_MIN&&r--}return{_lodPlanes:e,_sizeLods:t,_sigmas:n}}function _getBlurShader(e){var t=new RawShaderMaterial({defines:{n:e},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:new Float32Array(e)},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:new Vector3(0,1,0)},inputEncoding:{value:ENCODINGS[LinearEncoding]},outputEncoding:{value:ENCODINGS[LinearEncoding]}},vertexShader:_getCommonVertexShader(),fragmentShader:`\nprecision mediump float;\nprecision mediump int;\nvarying vec3 vOutputDirection;\nuniform sampler2D envMap;\nuniform int samples;\nuniform float weights[n];\nuniform bool latitudinal;\nuniform float dTheta;\nuniform float mipInt;\nuniform vec3 poleAxis;\n\n${_getEncodings()}\n\n#define ENVMAP_TYPE_CUBE_UV\n#include <cube_uv_reflection_fragment>\n\nvoid main() {\n\tgl_FragColor = vec4(0.0);\n\tfor (int i = 0; i < n; i++) {\n\t\tif (i >= samples)\n\t\t\tbreak;\n\t\tfor (int dir = -1; dir < 2; dir += 2) {\n\t\t\tif (i == 0 && dir == 1)\n\t\t\t\tcontinue;\n\t\t\tvec3 axis = latitudinal ? poleAxis : cross(poleAxis, vOutputDirection);\n\t\t\tif (all(equal(axis, vec3(0.0))))\n\t\t\t\taxis = cross(vec3(0.0, 1.0, 0.0), vOutputDirection);\n\t\t\taxis = normalize(axis);\n\t\t\tfloat theta = dTheta * float(dir * i);\n\t\t\tfloat cosTheta = cos(theta);\n\t\t\t// Rodrigues' axis-angle rotation\n\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross(axis, vOutputDirection) * sin(theta)\n\t\t\t\t\t+ axis * dot(axis, vOutputDirection) * (1.0 - cosTheta);\n\t\t\tgl_FragColor.rgb +=\n\t\t\t\t\tweights[i] * bilinearCubeUV(envMap, sampleDirection, mipInt);\n\t\t}\n\t}\n\tgl_FragColor = linearToOutputTexel(gl_FragColor);\n}\n\t\t`,blending:NoBlending,depthTest:!1,depthWrite:!1});return t.type="SphericalGaussianBlur",t}function _getCommonVertexShader(){return"\nprecision mediump float;\nprecision mediump int;\nattribute vec3 position;\nattribute vec2 uv;\nattribute float faceIndex;\nvarying vec3 vOutputDirection;\nvec3 getDirection(vec2 uv, float face) {\n\tuv = 2.0 * uv - 1.0;\n\tvec3 direction = vec3(uv, 1.0);\n\tif (face == 0.0) {\n\t\tdirection = direction.zyx;\n\t\tdirection.z *= -1.0;\n\t} else if (face == 1.0) {\n\t\tdirection = direction.xzy;\n\t\tdirection.z *= -1.0;\n\t} else if (face == 3.0) {\n\t\tdirection = direction.zyx;\n\t\tdirection.x *= -1.0;\n\t} else if (face == 4.0) {\n\t\tdirection = direction.xzy;\n\t\tdirection.y *= -1.0;\n\t} else if (face == 5.0) {\n\t\tdirection.xz *= -1.0;\n\t}\n\treturn direction;\n}\nvoid main() {\n\tvOutputDirection = getDirection(uv, faceIndex);\n\tgl_Position = vec4( position, 1.0 );\n}\n\t"}function _getEncodings(){return"\nuniform int inputEncoding;\nuniform int outputEncoding;\n\n#include <encodings_pars_fragment>\n\nvec4 inputTexelToLinear(vec4 value){\n\tif(inputEncoding == 0){\n\t\treturn value;\n\t}else if(inputEncoding == 1){\n\t\treturn sRGBToLinear(value);\n\t}else if(inputEncoding == 2){\n\t\treturn RGBEToLinear(value);\n\t}else if(inputEncoding == 3){\n\t\treturn RGBMToLinear(value, 7.0);\n\t}else if(inputEncoding == 4){\n\t\treturn RGBMToLinear(value, 16.0);\n\t}else if(inputEncoding == 5){\n\t\treturn RGBDToLinear(value, 256.0);\n\t}else{\n\t\treturn GammaToLinear(value, 2.2);\n\t}\n}\n\nvec4 linearToOutputTexel(vec4 value){\n\tif(outputEncoding == 0){\n\t\treturn value;\n\t}else if(outputEncoding == 1){\n\t\treturn LinearTosRGB(value);\n\t}else if(outputEncoding == 2){\n\t\treturn LinearToRGBE(value);\n\t}else if(outputEncoding == 3){\n\t\treturn LinearToRGBM(value, 7.0);\n\t}else if(outputEncoding == 4){\n\t\treturn LinearToRGBM(value, 16.0);\n\t}else if(outputEncoding == 5){\n\t\treturn LinearToRGBD(value, 256.0);\n\t}else{\n\t\treturn LinearToGamma(value, 2.2);\n\t}\n}\n\nvec4 envMapTexelToLinear(vec4 color) {\n\treturn inputTexelToLinear(color);\n}\n\t"}function Spline(e){console.warn("THREE.Spline has been removed. Use THREE.CatmullRomCurve3 instead."),CatmullRomCurve3.call(this,e),this.type="catmullrom"}Curve.create=function(e,t){return console.log("THREE.Curve.create() has been deprecated"),e.prototype=Object.create(Curve.prototype),e.prototype.constructor=e,e.prototype.getPoint=t,e},Object.assign(CurvePath.prototype,{createPointsGeometry:function(e){console.warn("THREE.CurvePath: .createPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");var t=this.getPoints(e);return this.createGeometry(t)},createSpacedPointsGeometry:function(e){console.warn("THREE.CurvePath: .createSpacedPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");var t=this.getSpacedPoints(e);return this.createGeometry(t)},createGeometry:function(e){console.warn("THREE.CurvePath: .createGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");for(var t=new Geometry,n=0,r=e.length;n<r;n++){var i=e[n];t.vertices.push(new Vector3(i.x,i.y,i.z||0))}return t}}),Object.assign(Path.prototype,{fromPoints:function(e){return console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(e)}}),Spline.prototype=Object.create(CatmullRomCurve3.prototype),Object.assign(Spline.prototype,{initFromArray:function(){console.error("THREE.Spline: .initFromArray() has been removed.")},getControlPointsArray:function(){console.error("THREE.Spline: .getControlPointsArray() has been removed.")},reparametrizeByArcLength:function(){console.error("THREE.Spline: .reparametrizeByArcLength() has been removed.")}}),GridHelper.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},SkeletonHelper.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},Object.assign(Loader.prototype,{extractUrlBase:function(e){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),LoaderUtils.extractUrlBase(e)}}),Loader.Handlers={add:function(){console.error("THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.")},get:function(){console.error("THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.")}},Object.assign(ObjectLoader.prototype,{setTexturePath:function(e){return console.warn("THREE.ObjectLoader: .setTexturePath() has been renamed to .setResourcePath()."),this.setResourcePath(e)}}),Object.assign(Box2.prototype,{center:function(e){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(e)},empty:function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(e){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},size:function(e){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(e)}}),Object.assign(Box3.prototype,{center:function(e){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(e)},empty:function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(e){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},isIntersectionSphere:function(e){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(e)},size:function(e){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(e)}}),Frustum.prototype.setFromMatrix=function(e){return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."),this.setFromProjectionMatrix(e)},Line3.prototype.center=function(e){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(e)},Object.assign(MathUtils,{random16:function(){return console.warn("THREE.Math: .random16() has been deprecated. Use Math.random() instead."),Math.random()},nearestPowerOfTwo:function(e){return console.warn("THREE.Math: .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo()."),MathUtils.floorPowerOfTwo(e)},nextPowerOfTwo:function(e){return console.warn("THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo()."),MathUtils.ceilPowerOfTwo(e)}}),Object.assign(Matrix3.prototype,{flattenToArrayOffset:function(e,t){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(e,t)},multiplyVector3:function(e){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),e.applyMatrix3(this)},multiplyVector3Array:function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},applyToBufferAttribute:function(e){return console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead."),e.applyMatrix3(this)},applyToVector3Array:function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")}}),Object.assign(Matrix4.prototype,{extractPosition:function(e){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(e)},flattenToArrayOffset:function(e,t){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(e,t)},getPosition:function(){return console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),(new Vector3).setFromMatrixColumn(this,3)},setRotationFromQuaternion:function(e){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(e)},multiplyToArray:function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},multiplyVector3:function(e){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},multiplyVector4:function(e){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},multiplyVector3Array:function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},rotateAxis:function(e){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),e.transformDirection(this)},crossVector:function(e){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},translate:function(){console.error("THREE.Matrix4: .translate() has been removed.")},rotateX:function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},rotateY:function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},rotateZ:function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},rotateByAxis:function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},applyToBufferAttribute:function(e){return console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},applyToVector3Array:function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},makeFrustum:function(e,t,n,r,i,a){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(e,t,r,n,i,a)}}),Plane.prototype.isIntersectionLine=function(e){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(e)},Quaternion.prototype.multiplyVector3=function(e){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),e.applyQuaternion(this)},Object.assign(Ray.prototype,{isIntersectionBox:function(e){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},isIntersectionPlane:function(e){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(e)},isIntersectionSphere:function(e){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(e)}}),Object.assign(Triangle.prototype,{area:function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},barycoordFromPoint:function(e,t){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(e,t)},midpoint:function(e){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(e)},normal:function(e){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(e)},plane:function(e){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(e)}}),Object.assign(Triangle,{barycoordFromPoint:function(e,t,n,r,i){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),Triangle.getBarycoord(e,t,n,r,i)},normal:function(e,t,n,r){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),Triangle.getNormal(e,t,n,r)}}),Object.assign(Shape.prototype,{extractAllPoints:function(e){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(e)},extrude:function(e){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new ExtrudeGeometry(this,e)},makeGeometry:function(e){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new ShapeGeometry(this,e)}}),Object.assign(Vector2.prototype,{fromAttribute:function(e,t,n){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},distanceToManhattan:function(e){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(e)},lengthManhattan:function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(Vector3.prototype,{setEulerFromRotationMatrix:function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},setEulerFromQuaternion:function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},getPositionFromMatrix:function(e){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(e)},getScaleFromMatrix:function(e){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(e)},getColumnFromMatrix:function(e,t){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(t,e)},applyProjection:function(e){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(e)},fromAttribute:function(e,t,n){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},distanceToManhattan:function(e){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(e)},lengthManhattan:function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(Vector4.prototype,{fromAttribute:function(e,t,n){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},lengthManhattan:function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(Geometry.prototype,{computeTangents:function(){console.error("THREE.Geometry: .computeTangents() has been removed.")},computeLineDistances:function(){console.error("THREE.Geometry: .computeLineDistances() has been removed. Use THREE.Line.computeLineDistances() instead.")},applyMatrix:function(e){return console.warn("THREE.Geometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(e)}}),Object.assign(Object3D.prototype,{getChildByName:function(e){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(e)},renderDepth:function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},translate:function(e,t){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(t,e)},getWorldRotation:function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")},applyMatrix:function(e){return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(e)}}),Object.defineProperties(Object3D.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(e){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=e}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),Object.assign(Mesh.prototype,{setDrawMode:function(){console.error("THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}),Object.defineProperties(Mesh.prototype,{drawMode:{get:function(){return console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode."),TrianglesDrawMode},set:function(){console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}}),Object.defineProperties(LOD.prototype,{objects:{get:function(){return console.warn("THREE.LOD: .objects has been renamed to .levels."),this.levels}}}),Object.defineProperty(Skeleton.prototype,"useVertexTexture",{get:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")},set:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")}}),SkinnedMesh.prototype.initBones=function(){console.error("THREE.SkinnedMesh: initBones() has been removed.")},Object.defineProperty(Curve.prototype,"__arcLengthDivisions",{get:function(){return console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions},set:function(e){console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions=e}}),PerspectiveCamera.prototype.setLens=function(e,t){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),void 0!==t&&(this.filmGauge=t),this.setFocalLength(e)},Object.defineProperties(Light.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(e){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=e}},shadowCameraLeft:{set:function(e){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=e}},shadowCameraRight:{set:function(e){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=e}},shadowCameraTop:{set:function(e){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=e}},shadowCameraBottom:{set:function(e){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=e}},shadowCameraNear:{set:function(e){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=e}},shadowCameraFar:{set:function(e){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=e}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(e){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=e}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(e){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=e}},shadowMapHeight:{set:function(e){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=e}}}),Object.defineProperties(BufferAttribute.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},dynamic:{get:function(){return console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.usage===DynamicDrawUsage},set:function(){console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.setUsage(DynamicDrawUsage)}}}),Object.assign(BufferAttribute.prototype,{setDynamic:function(e){return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===e?DynamicDrawUsage:StaticDrawUsage),this},copyIndicesArray:function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")},setArray:function(){console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")}}),Object.assign(BufferGeometry.prototype,{addIndex:function(e){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(e)},addAttribute:function(e,t){return console.warn("THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute()."),t&&t.isBufferAttribute||t&&t.isInterleavedBufferAttribute?"index"===e?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(t),this):this.setAttribute(e,t):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.setAttribute(e,new BufferAttribute(arguments[1],arguments[2])))},addDrawCall:function(e,t,n){void 0!==n&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(e,t)},clearDrawCalls:function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},computeTangents:function(){console.warn("THREE.BufferGeometry: .computeTangents() has been removed.")},computeOffsets:function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")},removeAttribute:function(e){return console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute()."),this.deleteAttribute(e)},applyMatrix:function(e){return console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(e)}}),Object.defineProperties(BufferGeometry.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),Object.defineProperties(InterleavedBuffer.prototype,{dynamic:{get:function(){return console.warn("THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead."),this.usage===DynamicDrawUsage},set:function(e){console.warn("THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead."),this.setUsage(e)}}}),Object.assign(InterleavedBuffer.prototype,{setDynamic:function(e){return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===e?DynamicDrawUsage:StaticDrawUsage),this},setArray:function(){console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")}}),Object.assign(ExtrudeBufferGeometry.prototype,{getArrays:function(){console.error("THREE.ExtrudeBufferGeometry: .getArrays() has been removed.")},addShapeList:function(){console.error("THREE.ExtrudeBufferGeometry: .addShapeList() has been removed.")},addShape:function(){console.error("THREE.ExtrudeBufferGeometry: .addShape() has been removed.")}}),Object.defineProperties(Uniform.prototype,{dynamic:{set:function(){console.warn("THREE.Uniform: .dynamic has been removed. Use object.onBeforeRender() instead.")}},onUpdate:{value:function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this}}}),Object.defineProperties(Material.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new Color}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(e){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=e===FlatShading}},stencilMask:{get:function(){return console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask},set:function(e){console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask=e}}}),Object.defineProperties(MeshPhongMaterial.prototype,{metal:{get:function(){return console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead."),!1},set:function(){console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead")}}}),Object.defineProperties(ShaderMaterial.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(e){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=e}}}),Object.assign(WebGLRenderer.prototype,{clearTarget:function(e,t,n,r){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(e),this.clear(t,n,r)},animate:function(e){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(e)},getCurrentRenderTarget:function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},getMaxAnisotropy:function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},getPrecision:function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},resetGLState:function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},supportsFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},supportsHalfFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},supportsStandardDerivatives:function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},supportsCompressedTextureS3TC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},supportsCompressedTexturePVRTC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},supportsBlendMinMax:function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},supportsVertexTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},supportsInstancedArrays:function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},enableScissorTest:function(e){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(e)},initMaterial:function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},addPrePlugin:function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},addPostPlugin:function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},updateShadowMap:function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},setFaceCulling:function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")},allocTextureUnit:function(){console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed.")},setTexture:function(){console.warn("THREE.WebGLRenderer: .setTexture() has been removed.")},setTexture2D:function(){console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed.")},setTextureCube:function(){console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed.")},getActiveMipMapLevel:function(){return console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel()."),this.getActiveMipmapLevel()}}),Object.defineProperties(WebGLRenderer.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(e){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=e}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(e){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=e}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}},context:{get:function(){return console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead."),this.getContext()}},vr:{get:function(){return console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr"),this.xr}},gammaInput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."),!1},set:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.")}},gammaOutput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),!1},set:function(e){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),this.outputEncoding=!0===e?sRGBEncoding:LinearEncoding}}}),Object.defineProperties(WebGLShadowMap.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(WebGLRenderTarget.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(e){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=e}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(e){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=e}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(e){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=e}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(e){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=e}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(e){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=e}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(e){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=e}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(e){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=e}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(e){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=e}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(e){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=e}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(e){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=e}}}),Object.defineProperties(Audio.prototype,{load:{value:function(e){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");var t=this;return(new AudioLoader).load(e,(function(e){t.setBuffer(e)})),this}},startTime:{set:function(){console.warn("THREE.Audio: .startTime is now .play( delay ).")}}}),AudioAnalyser.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},CubeCamera.prototype.updateCubeMap=function(e,t){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(e,t)},ImageUtils.crossOrigin=void 0,ImageUtils.loadTexture=function(e,t,n,r){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");var i=new TextureLoader;i.setCrossOrigin(this.crossOrigin);var a=i.load(e,n,void 0,r);return t&&(a.mapping=t),a},ImageUtils.loadTextureCube=function(e,t,n,r){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");var i=new CubeTextureLoader;i.setCrossOrigin(this.crossOrigin);var a=i.load(e,n,void 0,r);return t&&(a.mapping=t),a},ImageUtils.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},ImageUtils.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:REVISION}})),function(e){e[e.kClone=1]="kClone",e[e.kDragClone=2]="kDragClone"}(MxCloneType||(MxCloneType={})),function(e){e[e.kClone=1]="kClone",e[e.kDragClone=2]="kDragClone"}(MxCloneType2||(MxCloneType2={}));var MxType={MxCloneType:MxCloneType,MxCloneType2:MxCloneType2},MxDbEntity=function(){function e(){this.iColor=16777215,this.iRenderOrder=30}return e.prototype.transformBy=function(e){},e.prototype.getImp=function(){return this.MxDbEntityImp},e.prototype.setNeedUpdateDisplay=function(e){var t=this.getImp();return!!t&&(e?t.upDisplay():t.setDirtyDisplay(!0),!0)},e.prototype.objectId=function(){var e=this.getImp();return e?e.objectId():0},e.prototype.erase=function(){var e=this.getImp();return!!e&&e.erase()},e.prototype.setColor=function(e){this.iColor=e},e.prototype.getColor=function(){return this.iColor},e.prototype.clone=function(e){var t=this.create(),n={type:e||MxType.MxCloneType.kClone};return this.dwgOut(n),t.dwgIn(n),t},e.prototype.onDwgIn=function(e){this.iColor=e.iColor,this.iRenderOrder=e.iRenderOrder},e.prototype.onDwgOut=function(e){e.iColor=this.iColor,e.iRenderOrder=this.iRenderOrder},e.prototype.rxInit=function(){store.state.MxFun.initMxDbEntityType(this)},e.prototype.setRenderOrder=function(e){this.iRenderOrder=e},e.prototype.getRenderOrder=function(){return this.iRenderOrder},e}();function createReandomId(e){return void 0===e&&(e=10),new Number(Math.random().toString().substr(3,e)+Date.now()).toString(36)}function createCanvas(e){void 0===e&&(e="mx-canvas");var t=document.getElementById(e)||document.createElement("canvas");return t.id=e,t}function createCanvasParent(e){var t;return void 0===e&&(e=createCanvas()),e||(e=createCanvas()),e.parentNode?t=e.parentNode:(t=document.createElement("div")).appendChild(e),t}function objectMethodProxy(e,t,n){Object.defineProperty(e,n,{get:function(){return t[n]}})}var MxDrawObject=function(){function e(e){this._mxdrawObj=e}return e.prototype.getScene=function(){return this._mxdrawObj.getScene()},e.prototype.getCamera=function(){return this._mxdrawObj.getCamera()},e.prototype.getRenderer=function(){return this._mxdrawObj.renderer},e.prototype.setMouseRightRotate=function(e){return void 0===e&&(e=!0),this._mxdrawObj.setMouseRightRotate(e)},e.prototype.getFullDisplayRange=function(){return this._mxdrawObj.getFullDisplayRange()},e.prototype.getCanvas=function(){return this._mxdrawObj.getCanvas()},e.prototype.updateDisplay=function(){return this._mxdrawObj.updateDisplay()},e.prototype.createCanvasImageData=function(e,t){return this._mxdrawObj.createCanvasImageData(e,t)},e.prototype.setViewColor=function(e){return this._mxdrawObj.setViewColor(e)},e.prototype.setSize=function(e,t){return this._mxdrawObj.setSize(e,t)},e.prototype.getIntersectObjects=function(e){return this._mxdrawObj.getIntersectObjects(e)},e.prototype.addObject=function(e,t){return void 0===t&&(t=!0),this._mxdrawObj.addObject(e,t)},e.prototype.addViewObject=function(e){return this._mxdrawObj.addViewObject(e)},e.prototype.getViewWidth=function(){return this._mxdrawObj.getViewWidth()},e.prototype.getViewHeight=function(){return this._mxdrawObj.getViewHeight()},e.prototype.removeObject=function(e,t){return void 0===t&&(t=!0),this._mxdrawObj.removeObject(e,t)},e.prototype.zoomInitialStates=function(){return this._mxdrawObj.zoomInitialStates()},e.prototype.zoomScale=function(e){return this._mxdrawObj.zoomScale(e)},e.prototype.zoomW=function(e,t,n){return this._mxdrawObj.zoomW(e,t,n)},e.prototype.zoomCenter=function(e,t){return this._mxdrawObj.zoomCenter(e,t)},e.prototype.initZoomW=function(e,t){return this._mxdrawObj.initZoomW(e,t)},e.prototype.addEvent=function(e,t){return this._mxdrawObj.addEvent(e,t)},e.prototype.setIniset=function(e){return this._mxdrawObj.setIniset(e)},e.prototype.screenCoord2World=function(e,t,n){return this._mxdrawObj.screenCoord2World(e,t,n)},e.prototype.worldCoord2Screen=function(e,t,n){return this._mxdrawObj.worldCoord2Screen(e,t,n)},e.prototype.screenCoord2Doc=function(e,t){return this._mxdrawObj.screenCoord2Doc(e,t,0)},e.prototype.worldCoordLong2Doc=function(e){return this._mxdrawObj.worldCoordLong2Doc(e)},e.prototype.docCoordLong2World=function(e){return this._mxdrawObj.docCoordLong2World(e)},e.prototype.docCoord2World=function(e,t,n){return this._mxdrawObj.docCoord2World(e,t,n)},e.prototype.docCoord2World2=function(e){return this._mxdrawObj.docCoord2World(e.x,e.y,e.z)},e.prototype.worldCoord2Doc=function(e,t,n){return this._mxdrawObj.worldCoord2Doc(e,t,n)},e.prototype.worldCoord2Doc2=function(e){return this._mxdrawObj.worldCoord2Doc(e.x,e.y,e.z)},e.prototype.docCoord2Screen=function(e,t){return this._mxdrawObj.docCoord2Screen(e,t,0)},e.prototype.screenCoordLong2Doc=function(e){return this._mxdrawObj.screenCoordLong2Doc(e)},e.prototype.docCoordLong2Screen=function(e){return this._mxdrawObj.docCoordLong2Screen(e)},e.prototype.screenCoordLong2World=function(e){return this._mxdrawObj.screenCoordLong2World(e)},e.prototype.worldCoordLong2Screen=function(e){return this._mxdrawObj.worldCoordLong2Screen(e)},e.prototype.initRendererParam=function(e){return this._mxdrawObj.initRendererParam(e)},e.prototype.addMxEntity=function(e){return this._mxdrawObj.addMxEntity(e)},e.prototype.getMxCurrentSelect=function(){return this._mxdrawObj.getMxAllSelect()},e.prototype.addMxCurrentSelect=function(e){return this._mxdrawObj.addMxCurrentSelect(e)},e.prototype.clearMxCurrentSelect=function(){return this._mxdrawObj.clearMxCurrentSelect()},e.prototype.getMxEntity=function(e){return this._mxdrawObj.getMxEntityUserObject(e)},e.prototype.findMxEntityAtPoint=function(e){return this._mxdrawObj.findMxEntityAtPoint(e)},e.prototype.getAllMxEntity=function(){return this._mxdrawObj.getAllMxEntity()},e.prototype.setMouseMiddlePan=function(e){return this._mxdrawObj.setMouseMiddlePan(e)},e.prototype.resetThreeJSControls=function(){return this._mxdrawObj.resetThreeJSControls()},e.prototype.enableZoom=function(e){return this._mxdrawObj.enableZoom(e)},e.prototype.enablePan=function(e){return this._mxdrawObj.enablePan(e)},e.prototype.eraseMxEntity=function(e){return this._mxdrawObj.eraseMxEntity(e)},e.prototype.removeViewObject=function(e){this._mxdrawObj.removeViewObject(e)},e.prototype.saveMxEntityToJson=function(){return this._mxdrawObj.saveMxEntityToJson()},e.prototype.loadMxEntityFromJson=function(e){return this._mxdrawObj.loadMxEntityFromJson(e)},e.prototype.eraseAllMxEntity=function(){return this._mxdrawObj.eraseAllMxEntity()},e}(),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var lodash=createCommonjsModule((function(e,t){(function(){var n,r="Expected a function",i="__lodash_hash_undefined__",a="__lodash_placeholder__",o=16,s=32,l=64,c=128,u=256,h=1/0,p=9007199254740991,d=NaN,f=4294967295,m=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",s],["partialRight",l],["rearg",u]],g="[object Arguments]",v="[object Array]",y="[object Boolean]",x="[object Date]",_="[object Error]",b="[object Function]",w="[object GeneratorFunction]",M="[object Map]",S="[object Number]",T="[object Object]",E="[object Promise]",C="[object RegExp]",A="[object Set]",L="[object String]",D="[object Symbol]",P="[object WeakMap]",O="[object ArrayBuffer]",R="[object DataView]",I="[object Float32Array]",B="[object Float64Array]",N="[object Int8Array]",k="[object Int16Array]",F="[object Int32Array]",G="[object Uint8Array]",V="[object Uint8ClampedArray]",z="[object Uint16Array]",U="[object Uint32Array]",j=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,J=/[&<>"']/g,X=RegExp(q.source),$=RegExp(J.source),Y=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ne.source),ie=/^\s+/,ae=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,be=/['\n\r\u2028\u2029\\]/g,we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Me="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ae="['’]",Le="[\\ud800-\\udfff]",De="["+Ce+"]",Pe="["+we+"]",Oe="\\d+",Re="[\\u2700-\\u27bf]",Ie="["+Se+"]",Be="[^\\ud800-\\udfff"+Ce+Oe+Me+Se+Te+"]",Ne="\\ud83c[\\udffb-\\udfff]",ke="[^\\ud800-\\udfff]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ge="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+Te+"]",ze="(?:"+Ie+"|"+Be+")",Ue="(?:"+Ve+"|"+Be+")",je="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+Pe+"|"+Ne+")"+"?",qe="[\\ufe0e\\ufe0f]?",Je=qe+We+("(?:\\u200d(?:"+[ke,Fe,Ge].join("|")+")"+qe+We+")*"),Xe="(?:"+[Re,Fe,Ge].join("|")+")"+Je,$e="(?:"+[ke+Pe+"?",Pe,Fe,Ge,Le].join("|")+")",Ye=RegExp(Ae,"g"),Ze=RegExp(Pe,"g"),Ke=RegExp(Ne+"(?="+Ne+")|"+$e+Je,"g"),Qe=RegExp([Ve+"?"+Ie+"+"+je+"(?="+[De,Ve,"$"].join("|")+")",Ue+"+"+He+"(?="+[De,Ve+ze,"$"].join("|")+")",Ve+"?"+ze+"+"+je,Ve+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,Xe].join("|"),"g"),et=RegExp("[\\u200d\\ud800-\\udfff"+we+Ee+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,it={};it[I]=it[B]=it[N]=it[k]=it[F]=it[G]=it[V]=it[z]=it[U]=!0,it[g]=it[v]=it[O]=it[y]=it[R]=it[x]=it[_]=it[b]=it[M]=it[S]=it[T]=it[C]=it[A]=it[L]=it[P]=!1;var at={};at[g]=at[v]=at[O]=at[R]=at[y]=at[x]=at[I]=at[B]=at[N]=at[k]=at[F]=at[M]=at[S]=at[T]=at[C]=at[A]=at[L]=at[D]=at[G]=at[V]=at[z]=at[U]=!0,at[_]=at[b]=at[P]=!1;var ot={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,lt=parseInt,ct="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ut="object"==typeof self&&self&&self.Object===Object&&self,ht=ct||ut||Function("return this")(),pt=t&&!t.nodeType&&t,dt=pt&&e&&!e.nodeType&&e,ft=dt&&dt.exports===pt,mt=ft&&ct.process,gt=function(){try{var e=dt&&dt.require&&dt.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=gt&&gt.isArrayBuffer,yt=gt&&gt.isDate,xt=gt&&gt.isMap,_t=gt&&gt.isRegExp,bt=gt&&gt.isSet,wt=gt&&gt.isTypedArray;function Mt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function St(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Et(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function At(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function Lt(e,t){return!!(null==e?0:e.length)&&Gt(e,t,0)>-1}function Dt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Ot(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Rt(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function It(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Nt=jt("length");function kt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Ft(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Gt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ft(e,zt,n)}function Vt(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function zt(e){return e!=e}function Ut(e,t){var n=null==e?0:e.length;return n?qt(e,t)/n:d}function jt(e){return function(t){return null==t?n:t[e]}}function Ht(e){return function(t){return null==e?n:e[t]}}function Wt(e,t,n,r,i){return i(e,(function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)})),n}function qt(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function Jt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Xt(e){return e?e.slice(0,dn(e)+1).replace(ie,""):e}function $t(e){return function(t){return e(t)}}function Yt(e,t){return Pt(t,(function(t){return e[t]}))}function Zt(e,t){return e.has(t)}function Kt(e,t){for(var n=-1,r=e.length;++n<r&&Gt(t,e[n],0)>-1;);return n}function Qt(e,t){for(var n=e.length;n--&&Gt(t,e[n],0)>-1;);return n}function en(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var tn=Ht({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),nn=Ht({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rn(e){return"\\"+ot[e]}function an(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function ln(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return an(e)?function(e){var t=Ke.lastIndex=0;for(;Ke.test(e);)++t;return t}(e):Nt(e)}function pn(e){return an(e)?function(e){return e.match(Ke)||[]}(e):function(e){return e.split("")}(e)}function dn(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var fn=Ht({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var mn=function e(t){var ae,we=(t=null==t?ht:mn.defaults(ht.Object(),t,mn.pick(ht,nt))).Array,Me=t.Date,Se=t.Error,Te=t.Function,Ee=t.Math,Ce=t.Object,Ae=t.RegExp,Le=t.String,De=t.TypeError,Pe=we.prototype,Oe=Te.prototype,Re=Ce.prototype,Ie=t["__core-js_shared__"],Be=Oe.toString,Ne=Re.hasOwnProperty,ke=0,Fe=(ae=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+ae:"",Ge=Re.toString,Ve=Be.call(Ce),ze=ht._,Ue=Ae("^"+Be.call(Ne).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=ft?t.Buffer:n,He=t.Symbol,We=t.Uint8Array,qe=je?je.allocUnsafe:n,Je=sn(Ce.getPrototypeOf,Ce),Xe=Ce.create,$e=Re.propertyIsEnumerable,Ke=Pe.splice,et=He?He.isConcatSpreadable:n,ot=He?He.iterator:n,ct=He?He.toStringTag:n,ut=function(){try{var e=da(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),pt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,dt=Me&&Me.now!==ht.Date.now&&Me.now,mt=t.setTimeout!==ht.setTimeout&&t.setTimeout,gt=Ee.ceil,Nt=Ee.floor,Ht=Ce.getOwnPropertySymbols,gn=je?je.isBuffer:n,vn=t.isFinite,yn=Pe.join,xn=sn(Ce.keys,Ce),_n=Ee.max,bn=Ee.min,wn=Me.now,Mn=t.parseInt,Sn=Ee.random,Tn=Pe.reverse,En=da(t,"DataView"),Cn=da(t,"Map"),An=da(t,"Promise"),Ln=da(t,"Set"),Dn=da(t,"WeakMap"),Pn=da(Ce,"create"),On=Dn&&new Dn,Rn={},In=Va(En),Bn=Va(Cn),Nn=Va(An),kn=Va(Ln),Fn=Va(Dn),Gn=He?He.prototype:n,Vn=Gn?Gn.valueOf:n,zn=Gn?Gn.toString:n;function Un(e){if(is(e)&&!Jo(e)&&!(e instanceof qn)){if(e instanceof Wn)return e;if(Ne.call(e,"__wrapped__"))return za(e)}return new Wn(e)}var jn=function(){function e(){}return function(t){if(!rs(t))return{};if(Xe)return Xe(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Hn(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function qn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new $n;++t<n;)this.add(e[t])}function Zn(e){var t=this.__data__=new Xn(e);this.size=t.size}function Kn(e,t){var n=Jo(e),r=!n&&qo(e),i=!n&&!r&&Zo(e),a=!n&&!r&&!i&&ps(e),o=n||r||i||a,s=o?Jt(e.length,Le):[],l=s.length;for(var c in e)!t&&!Ne.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_a(c,l))||s.push(c);return s}function Qn(e){var t=e.length;return t?e[Yr(0,t-1)]:n}function er(e,t){return ka(Pi(e),cr(t,0,e.length))}function tr(e){return ka(Pi(e))}function nr(e,t,r){(r!==n&&!jo(e[t],r)||r===n&&!(t in e))&&sr(e,t,r)}function rr(e,t,r){var i=e[t];Ne.call(e,t)&&jo(i,r)&&(r!==n||t in e)||sr(e,t,r)}function ir(e,t){for(var n=e.length;n--;)if(jo(e[n][0],t))return n;return-1}function ar(e,t,n,r){return fr(e,(function(e,i,a){t(r,e,n(e),a)})),r}function or(e,t){return e&&Oi(t,Is(t),e)}function sr(e,t,n){"__proto__"==t&&ut?ut(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function lr(e,t){for(var r=-1,i=t.length,a=we(i),o=null==e;++r<i;)a[r]=o?n:Ls(e,t[r]);return a}function cr(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ur(e,t,r,i,a,o){var s,l=1&t,c=2&t,u=4&t;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!rs(e))return e;var h=Jo(e);if(h){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ne.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Pi(e,s)}else{var p=ga(e),d=p==b||p==w;if(Zo(e))return Ti(e,l);if(p==T||p==g||d&&!a){if(s=c||d?{}:ya(e),!l)return c?function(e,t){return Oi(e,ma(e),t)}(e,function(e,t){return e&&Oi(t,Bs(t),e)}(s,e)):function(e,t){return Oi(e,fa(e),t)}(e,or(s,e))}else{if(!at[p])return a?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case O:return Ei(e);case y:case x:return new r(+e);case R:return function(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case B:case N:case k:case F:case G:case V:case z:case U:return Ci(e,n);case M:return new r;case S:case L:return new r(e);case C:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case A:return new r;case D:return i=e,Vn?Ce(Vn.call(i)):{}}var i}(e,p,l)}}o||(o=new Zn);var f=o.get(e);if(f)return f;o.set(e,s),cs(e)?e.forEach((function(n){s.add(ur(n,t,r,n,e,o))})):as(e)&&e.forEach((function(n,i){s.set(i,ur(n,t,r,i,e,o))}));var m=h?n:(u?c?oa:aa:c?Bs:Is)(e);return Tt(m||e,(function(n,i){m&&(n=e[i=n]),rr(s,i,ur(n,t,r,i,e,o))})),s}function hr(e,t,r){var i=r.length;if(null==e)return!i;for(e=Ce(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function pr(e,t,i){if("function"!=typeof e)throw new De(r);return Ra((function(){e.apply(n,i)}),t)}function dr(e,t,n,r){var i=-1,a=Lt,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Pt(t,$t(n))),r?(a=Dt,o=!1):t.length>=200&&(a=Zt,o=!1,t=new Yn(t));e:for(;++i<s;){var u=e[i],h=null==n?u:n(u);if(u=r||0!==u?u:0,o&&h==h){for(var p=c;p--;)if(t[p]===h)continue e;l.push(u)}else a(t,h,r)||l.push(u)}return l}Un.templateSettings={escape:Y,evaluate:Z,interpolate:K,variable:"",imports:{_:Un}},Un.prototype=Hn.prototype,Un.prototype.constructor=Un,Wn.prototype=jn(Hn.prototype),Wn.prototype.constructor=Wn,qn.prototype=jn(Hn.prototype),qn.prototype.constructor=qn,Jn.prototype.clear=function(){this.__data__=Pn?Pn(null):{},this.size=0},Jn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Jn.prototype.get=function(e){var t=this.__data__;if(Pn){var r=t[e];return r===i?n:r}return Ne.call(t,e)?t[e]:n},Jn.prototype.has=function(e){var t=this.__data__;return Pn?t[e]!==n:Ne.call(t,e)},Jn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Pn&&t===n?i:t,this},Xn.prototype.clear=function(){this.__data__=[],this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=ir(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},Xn.prototype.get=function(e){var t=this.__data__,r=ir(t,e);return r<0?n:t[r][1]},Xn.prototype.has=function(e){return ir(this.__data__,e)>-1},Xn.prototype.set=function(e,t){var n=this.__data__,r=ir(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},$n.prototype.clear=function(){this.size=0,this.__data__={hash:new Jn,map:new(Cn||Xn),string:new Jn}},$n.prototype.delete=function(e){var t=ha(this,e).delete(e);return this.size-=t?1:0,t},$n.prototype.get=function(e){return ha(this,e).get(e)},$n.prototype.has=function(e){return ha(this,e).has(e)},$n.prototype.set=function(e,t){var n=ha(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,i),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.clear=function(){this.__data__=new Xn,this.size=0},Zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Zn.prototype.get=function(e){return this.__data__.get(e)},Zn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Xn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new $n(r)}return n.set(e,t),this.size=n.size,this};var fr=Bi(wr),mr=Bi(Mr,!0);function gr(e,t){var n=!0;return fr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function vr(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(null!=s&&(l===n?s==s&&!hs(s):r(s,l)))var l=s,c=o}return c}function yr(e,t){var n=[];return fr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function xr(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=xa),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?xr(s,t-1,n,r,i):Ot(i,s):r||(i[i.length]=s)}return i}var _r=Ni(),br=Ni(!0);function wr(e,t){return e&&_r(e,t,Is)}function Mr(e,t){return e&&br(e,t,Is)}function Sr(e,t){return At(t,(function(t){return es(e[t])}))}function Tr(e,t){for(var r=0,i=(t=bi(t,e)).length;null!=e&&r<i;)e=e[Ga(t[r++])];return r&&r==i?e:n}function Er(e,t,n){var r=t(e);return Jo(e)?r:Ot(r,n(e))}function Cr(e){return null==e?e===n?"[object Undefined]":"[object Null]":ct&&ct in Ce(e)?function(e){var t=Ne.call(e,ct),r=e[ct];try{e[ct]=n}catch(e){}var i=Ge.call(e);t?e[ct]=r:delete e[ct];return i}(e):function(e){return Ge.call(e)}(e)}function Ar(e,t){return e>t}function Lr(e,t){return null!=e&&Ne.call(e,t)}function Dr(e,t){return null!=e&&t in Ce(e)}function Pr(e,t,r){for(var i=r?Dt:Lt,a=e[0].length,o=e.length,s=o,l=we(o),c=1/0,u=[];s--;){var h=e[s];s&&t&&(h=Pt(h,$t(t))),c=bn(h.length,c),l[s]=!r&&(t||a>=120&&h.length>=120)?new Yn(s&&h):n}h=e[0];var p=-1,d=l[0];e:for(;++p<a&&u.length<c;){var f=h[p],m=t?t(f):f;if(f=r||0!==f?f:0,!(d?Zt(d,m):i(u,m,r))){for(s=o;--s;){var g=l[s];if(!(g?Zt(g,m):i(e[s],m,r)))continue e}d&&d.push(m),u.push(f)}}return u}function Or(e,t,r){var i=null==(e=La(e,t=bi(t,e)))?e:e[Ga(Ka(t))];return null==i?n:Mt(i,e,r)}function Rr(e){return is(e)&&Cr(e)==g}function Ir(e,t,r,i,a){return e===t||(null==e||null==t||!is(e)&&!is(t)?e!=e&&t!=t:function(e,t,r,i,a,o){var s=Jo(e),l=Jo(t),c=s?v:ga(e),u=l?v:ga(t),h=(c=c==g?T:c)==T,p=(u=u==g?T:u)==T,d=c==u;if(d&&Zo(e)){if(!Zo(t))return!1;s=!0,h=!1}if(d&&!h)return o||(o=new Zn),s||ps(e)?ra(e,t,r,i,a,o):function(e,t,n,r,i,a,o){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case O:return!(e.byteLength!=t.byteLength||!a(new We(e),new We(t)));case y:case x:case S:return jo(+e,+t);case _:return e.name==t.name&&e.message==t.message;case C:case L:return e==t+"";case M:var s=on;case A:var l=1&r;if(s||(s=cn),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=2,o.set(e,t);var u=ra(s(e),s(t),r,i,a,o);return o.delete(e),u;case D:if(Vn)return Vn.call(e)==Vn.call(t)}return!1}(e,t,c,r,i,a,o);if(!(1&r)){var f=h&&Ne.call(e,"__wrapped__"),m=p&&Ne.call(t,"__wrapped__");if(f||m){var b=f?e.value():e,w=m?t.value():t;return o||(o=new Zn),a(b,w,r,i,o)}}if(!d)return!1;return o||(o=new Zn),function(e,t,r,i,a,o){var s=1&r,l=aa(e),c=l.length,u=aa(t).length;if(c!=u&&!s)return!1;var h=c;for(;h--;){var p=l[h];if(!(s?p in t:Ne.call(t,p)))return!1}var d=o.get(e),f=o.get(t);if(d&&f)return d==t&&f==e;var m=!0;o.set(e,t),o.set(t,e);var g=s;for(;++h<c;){var v=e[p=l[h]],y=t[p];if(i)var x=s?i(y,v,p,t,e,o):i(v,y,p,e,t,o);if(!(x===n?v===y||a(v,y,r,i,o):x)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var _=e.constructor,b=t.constructor;_==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b||(m=!1)}return o.delete(e),o.delete(t),m}(e,t,r,i,a,o)}(e,t,r,i,Ir,a))}function Br(e,t,r,i){var a=r.length,o=a,s=!i;if(null==e)return!o;for(e=Ce(e);a--;){var l=r[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<o;){var c=(l=r[a])[0],u=e[c],h=l[1];if(s&&l[2]){if(u===n&&!(c in e))return!1}else{var p=new Zn;if(i)var d=i(u,h,c,e,t,p);if(!(d===n?Ir(h,u,3,i,p):d))return!1}}return!0}function Nr(e){return!(!rs(e)||(t=e,Fe&&Fe in t))&&(es(e)?Ue:ge).test(Va(e));var t}function kr(e){return"function"==typeof e?e:null==e?ol:"object"==typeof e?Jo(e)?jr(e[0],e[1]):Ur(e):ml(e)}function Fr(e){if(!Ta(e))return xn(e);var t=[];for(var n in Ce(e))Ne.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Gr(e){if(!rs(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=Ta(e),n=[];for(var r in e)("constructor"!=r||!t&&Ne.call(e,r))&&n.push(r);return n}function Vr(e,t){return e<t}function zr(e,t){var n=-1,r=$o(e)?we(e.length):[];return fr(e,(function(e,i,a){r[++n]=t(e,i,a)})),r}function Ur(e){var t=pa(e);return 1==t.length&&t[0][2]?Ca(t[0][0],t[0][1]):function(n){return n===e||Br(n,e,t)}}function jr(e,t){return wa(e)&&Ea(t)?Ca(Ga(e),t):function(r){var i=Ls(r,e);return i===n&&i===t?Ds(r,e):Ir(t,i,3)}}function Hr(e,t,r,i,a){e!==t&&_r(t,(function(o,s){if(a||(a=new Zn),rs(o))!function(e,t,r,i,a,o,s){var l=Pa(e,r),c=Pa(t,r),u=s.get(c);if(u)return void nr(e,r,u);var h=o?o(l,c,r+"",e,t,s):n,p=h===n;if(p){var d=Jo(c),f=!d&&Zo(c),m=!d&&!f&&ps(c);h=c,d||f||m?Jo(l)?h=l:Yo(l)?h=Pi(l):f?(p=!1,h=Ti(c,!0)):m?(p=!1,h=Ci(c,!0)):h=[]:ss(c)||qo(c)?(h=l,qo(l)?h=_s(l):rs(l)&&!es(l)||(h=ya(c))):p=!1}p&&(s.set(c,h),a(h,c,i,o,s),s.delete(c));nr(e,r,h)}(e,t,s,r,Hr,i,a);else{var l=i?i(Pa(e,s),o,s+"",e,t,a):n;l===n&&(l=o),nr(e,s,l)}}),Bs)}function Wr(e,t){var r=e.length;if(r)return _a(t+=t<0?r:0,r)?e[t]:n}function qr(e,t,n){t=t.length?Pt(t,(function(e){return Jo(e)?function(t){return Tr(t,1===e.length?e[0]:e)}:e})):[ol];var r=-1;t=Pt(t,$t(ua()));var i=zr(e,(function(e,n,i){var a=Pt(t,(function(t){return t(e)}));return{criteria:a,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;for(;++r<o;){var l=Ai(i[r],a[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Jr(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Tr(e,o);n(s,o)&&ti(a,bi(o,e),s)}return a}function Xr(e,t,n,r){var i=r?Vt:Gt,a=-1,o=t.length,s=e;for(e===t&&(t=Pi(t)),n&&(s=Pt(e,$t(n)));++a<o;)for(var l=0,c=t[a],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==e&&Ke.call(s,l,1),Ke.call(e,l,1);return e}function $r(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;_a(i)?Ke.call(e,i,1):di(e,i)}}return e}function Yr(e,t){return e+Nt(Sn()*(t-e+1))}function Zr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=Nt(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return Ia(Aa(e,t,ol),e+"")}function Qr(e){return Qn(js(e))}function ei(e,t){var n=js(e);return ka(n,cr(t,0,n.length))}function ti(e,t,r,i){if(!rs(e))return e;for(var a=-1,o=(t=bi(t,e)).length,s=o-1,l=e;null!=l&&++a<o;){var c=Ga(t[a]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(a!=s){var h=l[c];(u=i?i(h,c,l):n)===n&&(u=rs(h)?h:_a(t[a+1])?[]:{})}rr(l,c,u),l=l[c]}return e}var ni=On?function(e,t){return On.set(e,t),e}:ol,ri=ut?function(e,t){return ut(e,"toString",{configurable:!0,enumerable:!1,value:rl(t),writable:!0})}:ol;function ii(e){return ka(js(e))}function ai(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=we(i);++r<i;)a[r]=e[r+t];return a}function oi(e,t){var n;return fr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function si(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var a=r+i>>>1,o=e[a];null!==o&&!hs(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return li(e,t,ol,n)}function li(e,t,r,i){var a=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=r(t))!=t,l=null===t,c=hs(t),u=t===n;a<o;){var h=Nt((a+o)/2),p=r(e[h]),d=p!==n,f=null===p,m=p==p,g=hs(p);if(s)var v=i||m;else v=u?m&&(i||d):l?m&&d&&(i||!f):c?m&&d&&!f&&(i||!g):!f&&!g&&(i?p<=t:p<t);v?a=h+1:o=h}return bn(o,4294967294)}function ci(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!jo(s,l)){var l=s;a[i++]=0===o?0:o}}return a}function ui(e){return"number"==typeof e?e:hs(e)?d:+e}function hi(e){if("string"==typeof e)return e;if(Jo(e))return Pt(e,hi)+"";if(hs(e))return zn?zn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function pi(e,t,n){var r=-1,i=Lt,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=Dt;else if(a>=200){var c=t?null:Zi(e);if(c)return cn(c);o=!1,i=Zt,l=new Yn}else l=t?[]:s;e:for(;++r<a;){var u=e[r],h=t?t(u):u;if(u=n||0!==u?u:0,o&&h==h){for(var p=l.length;p--;)if(l[p]===h)continue e;t&&l.push(h),s.push(u)}else i(l,h,n)||(l!==s&&l.push(h),s.push(u))}return s}function di(e,t){return null==(e=La(e,t=bi(t,e)))||delete e[Ga(Ka(t))]}function fi(e,t,n,r){return ti(e,t,n(Tr(e,t)),r)}function mi(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?ai(e,r?0:a,r?a+1:i):ai(e,r?a+1:0,r?i:a)}function gi(e,t){var n=e;return n instanceof qn&&(n=n.value()),Rt(t,(function(e,t){return t.func.apply(t.thisArg,Ot([e],t.args))}),n)}function vi(e,t,n){var r=e.length;if(r<2)return r?pi(e[0]):[];for(var i=-1,a=we(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=dr(a[i]||o,e[s],t,n));return pi(xr(a,1),t,n)}function yi(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var l=i<o?t[i]:n;r(s,e[i],l)}return s}function xi(e){return Yo(e)?e:[]}function _i(e){return"function"==typeof e?e:ol}function bi(e,t){return Jo(e)?e:wa(e,t)?[e]:Fa(bs(e))}var wi=Kr;function Mi(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:ai(e,t,r)}var Si=pt||function(e){return ht.clearTimeout(e)};function Ti(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function Ei(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Ci(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ai(e,t){if(e!==t){var r=e!==n,i=null===e,a=e==e,o=hs(e),s=t!==n,l=null===t,c=t==t,u=hs(t);if(!l&&!u&&!o&&e>t||o&&s&&c&&!l&&!u||i&&s&&c||!r&&c||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||l&&r&&a||!s&&a||!c)return-1}return 0}function Li(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,l=t.length,c=_n(a-o,0),u=we(l+c),h=!r;++s<l;)u[s]=t[s];for(;++i<o;)(h||i<a)&&(u[n[i]]=e[i]);for(;c--;)u[s++]=e[i++];return u}function Di(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,l=-1,c=t.length,u=_n(a-s,0),h=we(u+c),p=!r;++i<u;)h[i]=e[i];for(var d=i;++l<c;)h[d+l]=t[l];for(;++o<s;)(p||i<a)&&(h[d+n[o]]=e[i++]);return h}function Pi(e,t){var n=-1,r=e.length;for(t||(t=we(r));++n<r;)t[n]=e[n];return t}function Oi(e,t,r,i){var a=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var l=t[o],c=i?i(r[l],e[l],l,r,e):n;c===n&&(c=e[l]),a?sr(r,l,c):rr(r,l,c)}return r}function Ri(e,t){return function(n,r){var i=Jo(n)?St:ar,a=t?t():{};return i(n,e,ua(r,2),a)}}function Ii(e){return Kr((function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&"function"==typeof o?(a--,o):n,s&&ba(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=Ce(t);++i<a;){var l=r[i];l&&e(t,l,i,o)}return t}))}function Bi(e,t){return function(n,r){if(null==n)return n;if(!$o(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Ce(n);(t?a--:++a<i)&&!1!==r(o[a],a,o););return n}}function Ni(e){return function(t,n,r){for(var i=-1,a=Ce(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}function ki(e){return function(t){var r=an(t=bs(t))?pn(t):n,i=r?r[0]:t.charAt(0),a=r?Mi(r,1).join(""):t.slice(1);return i[e]()+a}}function Fi(e){return function(t){return Rt(el(qs(t).replace(Ye,"")),e,"")}}function Gi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=jn(e.prototype),r=e.apply(n,t);return rs(r)?r:n}}function Vi(e){return function(t,r,i){var a=Ce(t);if(!$o(t)){var o=ua(r,3);t=Is(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function zi(e){return ia((function(t){var i=t.length,a=i,o=Wn.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if("function"!=typeof s)throw new De(r);if(o&&!l&&"wrapper"==la(s))var l=new Wn([],!0)}for(a=l?a:i;++a<i;){var c=la(s=t[a]),u="wrapper"==c?sa(s):n;l=u&&Ma(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[la(u[0])].apply(l,u[3]):1==s.length&&Ma(s)?l[c]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Jo(n))return l.plant(n).value();for(var r=0,a=i?t[r].apply(this,e):n;++r<i;)a=t[r].call(this,a);return a}}))}function Ui(e,t,r,i,a,o,s,l,u,h){var p=t&c,d=1&t,f=2&t,m=24&t,g=512&t,v=f?n:Gi(e);return function n(){for(var c=arguments.length,y=we(c),x=c;x--;)y[x]=arguments[x];if(m)var _=ca(n),b=en(y,_);if(i&&(y=Li(y,i,a,m)),o&&(y=Di(y,o,s,m)),c-=b,m&&c<h){var w=ln(y,_);return $i(e,t,Ui,n.placeholder,r,y,w,l,u,h-c)}var M=d?r:this,S=f?M[e]:e;return c=y.length,l?y=Da(y,l):g&&c>1&&y.reverse(),p&&u<c&&(y.length=u),this&&this!==ht&&this instanceof n&&(S=v||Gi(S)),S.apply(M,y)}}function ji(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,i,a){t(r,n(e),i,a)})),r}(n,e,t(r),{})}}function Hi(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;"string"==typeof r||"string"==typeof i?(r=hi(r),i=hi(i)):(r=ui(r),i=ui(i)),a=e(r,i)}return a}}function Wi(e){return ia((function(t){return t=Pt(t,$t(ua())),Kr((function(n){var r=this;return e(t,(function(e){return Mt(e,r,n)}))}))}))}function qi(e,t){var r=(t=t===n?" ":hi(t)).length;if(r<2)return r?Zr(t,e):t;var i=Zr(t,gt(e/hn(t)));return an(t)?Mi(pn(i),0,e).join(""):i.slice(0,e)}function Ji(e){return function(t,r,i){return i&&"number"!=typeof i&&ba(t,r,i)&&(r=i=n),t=gs(t),r===n?(r=t,t=0):r=gs(r),function(e,t,n,r){for(var i=-1,a=_n(gt((t-e)/(n||1)),0),o=we(a);a--;)o[r?a:++i]=e,e+=n;return o}(t,r,i=i===n?t<r?1:-1:gs(i),e)}}function Xi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=xs(t),n=xs(n)),e(t,n)}}function $i(e,t,r,i,a,o,c,u,h,p){var d=8&t;t|=d?s:l,4&(t&=~(d?l:s))||(t&=-4);var f=[e,t,a,d?o:n,d?c:n,d?n:o,d?n:c,u,h,p],m=r.apply(n,f);return Ma(e)&&Oa(m,f),m.placeholder=i,Ba(m,e,t)}function Yi(e){var t=Ee[e];return function(e,n){if(e=xs(e),(n=null==n?0:bn(vs(n),292))&&vn(e)){var r=(bs(e)+"e").split("e");return+((r=(bs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Zi=Ln&&1/cn(new Ln([,-0]))[1]==h?function(e){return new Ln(e)}:hl;function Ki(e){return function(t){var n=ga(t);return n==M?on(t):n==A?un(t):function(e,t){return Pt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qi(e,t,i,h,p,d,f,m){var g=2&t;if(!g&&"function"!=typeof e)throw new De(r);var v=h?h.length:0;if(v||(t&=-97,h=p=n),f=f===n?f:_n(vs(f),0),m=m===n?m:vs(m),v-=p?p.length:0,t&l){var y=h,x=p;h=p=n}var _=g?n:sa(e),b=[e,t,i,h,p,y,x,d,f,m];if(_&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=r==c&&8==n||r==c&&n==u&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var h=e[3];e[3]=h?Li(h,l,t[4]):l,e[4]=h?ln(e[3],a):t[4]}(l=t[5])&&(h=e[5],e[5]=h?Di(h,l,t[6]):l,e[6]=h?ln(e[5],a):t[6]);(l=t[7])&&(e[7]=l);r&c&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(b,_),e=b[0],t=b[1],i=b[2],h=b[3],p=b[4],!(m=b[9]=b[9]===n?g?0:e.length:_n(b[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||t==o?function(e,t,r){var i=Gi(e);return function a(){for(var o=arguments.length,s=we(o),l=o,c=ca(a);l--;)s[l]=arguments[l];var u=o<3&&s[0]!==c&&s[o-1]!==c?[]:ln(s,c);return(o-=u.length)<r?$i(e,t,Ui,a.placeholder,n,s,u,n,n,r-o):Mt(this&&this!==ht&&this instanceof a?i:e,this,s)}}(e,t,m):t!=s&&33!=t||p.length?Ui.apply(n,b):function(e,t,n,r){var i=1&t,a=Gi(e);return function t(){for(var o=-1,s=arguments.length,l=-1,c=r.length,u=we(c+s),h=this&&this!==ht&&this instanceof t?a:e;++l<c;)u[l]=r[l];for(;s--;)u[l++]=arguments[++o];return Mt(h,i?n:this,u)}}(e,t,i,h);else var w=function(e,t,n){var r=1&t,i=Gi(e);return function t(){return(this&&this!==ht&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,i);return Ba((_?ni:Oa)(w,b),e,t)}function ea(e,t,r,i){return e===n||jo(e,Re[r])&&!Ne.call(i,r)?t:e}function ta(e,t,r,i,a,o){return rs(e)&&rs(t)&&(o.set(t,e),Hr(e,t,n,ta,o),o.delete(t)),e}function na(e){return ss(e)?n:e}function ra(e,t,r,i,a,o){var s=1&r,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(e),h=o.get(t);if(u&&h)return u==t&&h==e;var p=-1,d=!0,f=2&r?new Yn:n;for(o.set(e,t),o.set(t,e);++p<l;){var m=e[p],g=t[p];if(i)var v=s?i(g,m,p,t,e,o):i(m,g,p,e,t,o);if(v!==n){if(v)continue;d=!1;break}if(f){if(!Bt(t,(function(e,t){if(!Zt(f,t)&&(m===e||a(m,e,r,i,o)))return f.push(t)}))){d=!1;break}}else if(m!==g&&!a(m,g,r,i,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function ia(e){return Ia(Aa(e,n,Ja),e+"")}function aa(e){return Er(e,Is,fa)}function oa(e){return Er(e,Bs,ma)}var sa=On?function(e){return On.get(e)}:hl;function la(e){for(var t=e.name+"",n=Rn[t],r=Ne.call(Rn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}function ca(e){return(Ne.call(Un,"placeholder")?Un:e).placeholder}function ua(){var e=Un.iteratee||sl;return e=e===sl?kr:e,arguments.length?e(arguments[0],arguments[1]):e}function ha(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function pa(e){for(var t=Is(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ea(i)]}return t}function da(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Nr(r)?r:n}var fa=Ht?function(e){return null==e?[]:(e=Ce(e),At(Ht(e),(function(t){return $e.call(e,t)})))}:yl,ma=Ht?function(e){for(var t=[];e;)Ot(t,fa(e)),e=Je(e);return t}:yl,ga=Cr;function va(e,t,n){for(var r=-1,i=(t=bi(t,e)).length,a=!1;++r<i;){var o=Ga(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&ns(i)&&_a(o,i)&&(Jo(e)||qo(e))}function ya(e){return"function"!=typeof e.constructor||Ta(e)?{}:jn(Je(e))}function xa(e){return Jo(e)||qo(e)||!!(et&&e&&e[et])}function _a(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function ba(e,t,n){if(!rs(n))return!1;var r=typeof t;return!!("number"==r?$o(n)&&_a(t,n.length):"string"==r&&t in n)&&jo(n[t],e)}function wa(e,t){if(Jo(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!hs(e))||(ee.test(e)||!Q.test(e)||null!=t&&e in Ce(t))}function Ma(e){var t=la(e),n=Un[t];if("function"!=typeof n||!(t in qn.prototype))return!1;if(e===n)return!0;var r=sa(n);return!!r&&e===r[0]}(En&&ga(new En(new ArrayBuffer(1)))!=R||Cn&&ga(new Cn)!=M||An&&ga(An.resolve())!=E||Ln&&ga(new Ln)!=A||Dn&&ga(new Dn)!=P)&&(ga=function(e){var t=Cr(e),r=t==T?e.constructor:n,i=r?Va(r):"";if(i)switch(i){case In:return R;case Bn:return M;case Nn:return E;case kn:return A;case Fn:return P}return t});var Sa=Ie?es:xl;function Ta(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Re)}function Ea(e){return e==e&&!rs(e)}function Ca(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in Ce(r)))}}function Aa(e,t,r){return t=_n(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=_n(n.length-t,0),o=we(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=we(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),Mt(e,this,s)}}function La(e,t){return t.length<2?e:Tr(e,ai(t,0,-1))}function Da(e,t){for(var r=e.length,i=bn(t.length,r),a=Pi(e);i--;){var o=t[i];e[i]=_a(o,r)?a[o]:n}return e}function Pa(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Oa=Na(ni),Ra=mt||function(e,t){return ht.setTimeout(e,t)},Ia=Na(ri);function Ba(e,t,n){var r=t+"";return Ia(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Tt(m,(function(n){var r="_."+n[0];t&n[1]&&!Lt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(le):[]}(r),n)))}function Na(e){var t=0,r=0;return function(){var i=wn(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ka(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=Yr(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var Fa=function(e){var t=ko(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(te,(function(e,n,r,i){t.push(r?i.replace(he,"$1"):n||e)})),t}));function Ga(e){if("string"==typeof e||hs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Va(e){if(null!=e){try{return Be.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function za(e){if(e instanceof qn)return e.clone();var t=new Wn(e.__wrapped__,e.__chain__);return t.__actions__=Pi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ua=Kr((function(e,t){return Yo(e)?dr(e,xr(t,1,Yo,!0)):[]})),ja=Kr((function(e,t){var r=Ka(t);return Yo(r)&&(r=n),Yo(e)?dr(e,xr(t,1,Yo,!0),ua(r,2)):[]})),Ha=Kr((function(e,t){var r=Ka(t);return Yo(r)&&(r=n),Yo(e)?dr(e,xr(t,1,Yo,!0),n,r):[]}));function Wa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=_n(r+i,0)),Ft(e,ua(t,3),i)}function qa(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=vs(r),a=r<0?_n(i+a,0):bn(a,i-1)),Ft(e,ua(t,3),a,!0)}function Ja(e){return(null==e?0:e.length)?xr(e,1):[]}function Xa(e){return e&&e.length?e[0]:n}var $a=Kr((function(e){var t=Pt(e,xi);return t.length&&t[0]===e[0]?Pr(t):[]})),Ya=Kr((function(e){var t=Ka(e),r=Pt(e,xi);return t===Ka(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Pr(r,ua(t,2)):[]})),Za=Kr((function(e){var t=Ka(e),r=Pt(e,xi);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Pr(r,n,t):[]}));function Ka(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Qa=Kr(eo);function eo(e,t){return e&&e.length&&t&&t.length?Xr(e,t):e}var to=ia((function(e,t){var n=null==e?0:e.length,r=lr(e,t);return $r(e,Pt(t,(function(e){return _a(e,n)?+e:e})).sort(Ai)),r}));function no(e){return null==e?e:Tn.call(e)}var ro=Kr((function(e){return pi(xr(e,1,Yo,!0))})),io=Kr((function(e){var t=Ka(e);return Yo(t)&&(t=n),pi(xr(e,1,Yo,!0),ua(t,2))})),ao=Kr((function(e){var t=Ka(e);return t="function"==typeof t?t:n,pi(xr(e,1,Yo,!0),n,t)}));function oo(e){if(!e||!e.length)return[];var t=0;return e=At(e,(function(e){if(Yo(e))return t=_n(e.length,t),!0})),Jt(t,(function(t){return Pt(e,jt(t))}))}function so(e,t){if(!e||!e.length)return[];var r=oo(e);return null==t?r:Pt(r,(function(e){return Mt(t,n,e)}))}var lo=Kr((function(e,t){return Yo(e)?dr(e,t):[]})),co=Kr((function(e){return vi(At(e,Yo))})),uo=Kr((function(e){var t=Ka(e);return Yo(t)&&(t=n),vi(At(e,Yo),ua(t,2))})),ho=Kr((function(e){var t=Ka(e);return t="function"==typeof t?t:n,vi(At(e,Yo),n,t)})),po=Kr(oo);var fo=Kr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,so(e,r)}));function mo(e){var t=Un(e);return t.__chain__=!0,t}function go(e,t){return t(e)}var vo=ia((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return lr(t,e)};return!(t>1||this.__actions__.length)&&i instanceof qn&&_a(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:go,args:[a],thisArg:n}),new Wn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(a)}));var yo=Ri((function(e,t,n){Ne.call(e,n)?++e[n]:sr(e,n,1)}));var xo=Vi(Wa),_o=Vi(qa);function bo(e,t){return(Jo(e)?Tt:fr)(e,ua(t,3))}function wo(e,t){return(Jo(e)?Et:mr)(e,ua(t,3))}var Mo=Ri((function(e,t,n){Ne.call(e,n)?e[n].push(t):sr(e,n,[t])}));var So=Kr((function(e,t,n){var r=-1,i="function"==typeof t,a=$o(e)?we(e.length):[];return fr(e,(function(e){a[++r]=i?Mt(t,e,n):Or(e,t,n)})),a})),To=Ri((function(e,t,n){sr(e,n,t)}));function Eo(e,t){return(Jo(e)?Pt:zr)(e,ua(t,3))}var Co=Ri((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ao=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ba(e,t[0],t[1])?t=[]:n>2&&ba(t[0],t[1],t[2])&&(t=[t[0]]),qr(e,xr(t,1),[])})),Lo=dt||function(){return ht.Date.now()};function Do(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Qi(e,c,n,n,n,n,t)}function Po(e,t){var i;if("function"!=typeof t)throw new De(r);return e=vs(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Oo=Kr((function(e,t,n){var r=1;if(n.length){var i=ln(n,ca(Oo));r|=s}return Qi(e,r,t,n,i)})),Ro=Kr((function(e,t,n){var r=3;if(n.length){var i=ln(n,ca(Ro));r|=s}return Qi(t,r,e,n,i)}));function Io(e,t,i){var a,o,s,l,c,u,h=0,p=!1,d=!1,f=!0;if("function"!=typeof e)throw new De(r);function m(t){var r=a,i=o;return a=o=n,h=t,l=e.apply(i,r)}function g(e){return h=e,c=Ra(y,t),p?m(e):l}function v(e){var r=e-u;return u===n||r>=t||r<0||d&&e-h>=s}function y(){var e=Lo();if(v(e))return x(e);c=Ra(y,function(e){var n=t-(e-u);return d?bn(n,s-(e-h)):n}(e))}function x(e){return c=n,f&&a?m(e):(a=o=n,l)}function _(){var e=Lo(),r=v(e);if(a=arguments,o=this,u=e,r){if(c===n)return g(u);if(d)return Si(c),c=Ra(y,t),m(u)}return c===n&&(c=Ra(y,t)),l}return t=xs(t)||0,rs(i)&&(p=!!i.leading,s=(d="maxWait"in i)?_n(xs(i.maxWait)||0,t):s,f="trailing"in i?!!i.trailing:f),_.cancel=function(){c!==n&&Si(c),h=0,a=u=o=c=n},_.flush=function(){return c===n?l:x(Lo())},_}var Bo=Kr((function(e,t){return pr(e,1,t)})),No=Kr((function(e,t,n){return pr(e,xs(t)||0,n)}));function ko(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new De(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(ko.Cache||$n),n}function Fo(e){if("function"!=typeof e)throw new De(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ko.Cache=$n;var Go=wi((function(e,t){var n=(t=1==t.length&&Jo(t[0])?Pt(t[0],$t(ua())):Pt(xr(t,1),$t(ua()))).length;return Kr((function(r){for(var i=-1,a=bn(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return Mt(e,this,r)}))})),Vo=Kr((function(e,t){var r=ln(t,ca(Vo));return Qi(e,s,n,t,r)})),zo=Kr((function(e,t){var r=ln(t,ca(zo));return Qi(e,l,n,t,r)})),Uo=ia((function(e,t){return Qi(e,u,n,n,n,t)}));function jo(e,t){return e===t||e!=e&&t!=t}var Ho=Xi(Ar),Wo=Xi((function(e,t){return e>=t})),qo=Rr(function(){return arguments}())?Rr:function(e){return is(e)&&Ne.call(e,"callee")&&!$e.call(e,"callee")},Jo=we.isArray,Xo=vt?$t(vt):function(e){return is(e)&&Cr(e)==O};function $o(e){return null!=e&&ns(e.length)&&!es(e)}function Yo(e){return is(e)&&$o(e)}var Zo=gn||xl,Ko=yt?$t(yt):function(e){return is(e)&&Cr(e)==x};function Qo(e){if(!is(e))return!1;var t=Cr(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ss(e)}function es(e){if(!rs(e))return!1;var t=Cr(e);return t==b||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ts(e){return"number"==typeof e&&e==vs(e)}function ns(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function rs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function is(e){return null!=e&&"object"==typeof e}var as=xt?$t(xt):function(e){return is(e)&&ga(e)==M};function os(e){return"number"==typeof e||is(e)&&Cr(e)==S}function ss(e){if(!is(e)||Cr(e)!=T)return!1;var t=Je(e);if(null===t)return!0;var n=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Be.call(n)==Ve}var ls=_t?$t(_t):function(e){return is(e)&&Cr(e)==C};var cs=bt?$t(bt):function(e){return is(e)&&ga(e)==A};function us(e){return"string"==typeof e||!Jo(e)&&is(e)&&Cr(e)==L}function hs(e){return"symbol"==typeof e||is(e)&&Cr(e)==D}var ps=wt?$t(wt):function(e){return is(e)&&ns(e.length)&&!!it[Cr(e)]};var ds=Xi(Vr),fs=Xi((function(e,t){return e<=t}));function ms(e){if(!e)return[];if($o(e))return us(e)?pn(e):Pi(e);if(ot&&e[ot])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[ot]());var t=ga(e);return(t==M?on:t==A?cn:js)(e)}function gs(e){return e?(e=xs(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vs(e){var t=gs(e),n=t%1;return t==t?n?t-n:t:0}function ys(e){return e?cr(vs(e),0,f):0}function xs(e){if("number"==typeof e)return e;if(hs(e))return d;if(rs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=rs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=me.test(e);return n||ve.test(e)?lt(e.slice(2),n?2:8):fe.test(e)?d:+e}function _s(e){return Oi(e,Bs(e))}function bs(e){return null==e?"":hi(e)}var ws=Ii((function(e,t){if(Ta(t)||$o(t))Oi(t,Is(t),e);else for(var n in t)Ne.call(t,n)&&rr(e,n,t[n])})),Ms=Ii((function(e,t){Oi(t,Bs(t),e)})),Ss=Ii((function(e,t,n,r){Oi(t,Bs(t),e,r)})),Ts=Ii((function(e,t,n,r){Oi(t,Is(t),e,r)})),Es=ia(lr);var Cs=Kr((function(e,t){e=Ce(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&ba(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=Bs(o),l=-1,c=s.length;++l<c;){var u=s[l],h=e[u];(h===n||jo(h,Re[u])&&!Ne.call(e,u))&&(e[u]=o[u])}return e})),As=Kr((function(e){return e.push(n,ta),Mt(ks,n,e)}));function Ls(e,t,r){var i=null==e?n:Tr(e,t);return i===n?r:i}function Ds(e,t){return null!=e&&va(e,t,Dr)}var Ps=ji((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ge.call(t)),e[t]=n}),rl(ol)),Os=ji((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ge.call(t)),Ne.call(e,t)?e[t].push(n):e[t]=[n]}),ua),Rs=Kr(Or);function Is(e){return $o(e)?Kn(e):Fr(e)}function Bs(e){return $o(e)?Kn(e,!0):Gr(e)}var Ns=Ii((function(e,t,n){Hr(e,t,n)})),ks=Ii((function(e,t,n,r){Hr(e,t,n,r)})),Fs=ia((function(e,t){var n={};if(null==e)return n;var r=!1;t=Pt(t,(function(t){return t=bi(t,e),r||(r=t.length>1),t})),Oi(e,oa(e),n),r&&(n=ur(n,7,na));for(var i=t.length;i--;)di(n,t[i]);return n}));var Gs=ia((function(e,t){return null==e?{}:function(e,t){return Jr(e,t,(function(t,n){return Ds(e,n)}))}(e,t)}));function Vs(e,t){if(null==e)return{};var n=Pt(oa(e),(function(e){return[e]}));return t=ua(t),Jr(e,n,(function(e,n){return t(e,n[0])}))}var zs=Ki(Is),Us=Ki(Bs);function js(e){return null==e?[]:Yt(e,Is(e))}var Hs=Fi((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return Qs(bs(e).toLowerCase())}function qs(e){return(e=bs(e))&&e.replace(xe,tn).replace(Ze,"")}var Js=Fi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Xs=Fi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),$s=ki("toLowerCase");var Ys=Fi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Zs=Fi((function(e,t,n){return e+(n?" ":"")+Qs(t)}));var Ks=Fi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Qs=ki("toUpperCase");function el(e,t,r){return e=bs(e),(t=r?n:t)===n?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var tl=Kr((function(e,t){try{return Mt(e,n,t)}catch(e){return Qo(e)?e:new Se(e)}})),nl=ia((function(e,t){return Tt(t,(function(t){t=Ga(t),sr(e,t,Oo(e[t],e))})),e}));function rl(e){return function(){return e}}var il=zi(),al=zi(!0);function ol(e){return e}function sl(e){return kr("function"==typeof e?e:ur(e,1))}var ll=Kr((function(e,t){return function(n){return Or(n,e,t)}})),cl=Kr((function(e,t){return function(n){return Or(e,n,t)}}));function ul(e,t,n){var r=Is(t),i=Sr(t,r);null!=n||rs(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Sr(t,Is(t)));var a=!(rs(n)&&"chain"in n&&!n.chain),o=es(e);return Tt(i,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),i=n.__actions__=Pi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ot([this.value()],arguments))})})),e}function hl(){}var pl=Wi(Pt),dl=Wi(Ct),fl=Wi(Bt);function ml(e){return wa(e)?jt(Ga(e)):function(e){return function(t){return Tr(t,e)}}(e)}var gl=Ji(),vl=Ji(!0);function yl(){return[]}function xl(){return!1}var _l=Hi((function(e,t){return e+t}),0),bl=Yi("ceil"),wl=Hi((function(e,t){return e/t}),1),Ml=Yi("floor");var Sl,Tl=Hi((function(e,t){return e*t}),1),El=Yi("round"),Cl=Hi((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new De(r);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=Do,Un.assign=ws,Un.assignIn=Ms,Un.assignInWith=Ss,Un.assignWith=Ts,Un.at=Es,Un.before=Po,Un.bind=Oo,Un.bindAll=nl,Un.bindKey=Ro,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Jo(e)?e:[e]},Un.chain=mo,Un.chunk=function(e,t,r){t=(r?ba(e,t,r):t===n)?1:_n(vs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=we(gt(i/t));a<i;)s[o++]=ai(e,a,a+=t);return s},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=we(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Ot(Jo(n)?Pi(n):[n],xr(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=ua();return e=t?Pt(e,(function(e){if("function"!=typeof e[1])throw new De(r);return[n(e[0]),e[1]]})):[],Kr((function(n){for(var r=-1;++r<t;){var i=e[r];if(Mt(i[0],this,n))return Mt(i[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=Is(e);return function(n){return hr(n,e,t)}}(ur(e,1))},Un.constant=rl,Un.countBy=yo,Un.create=function(e,t){var n=jn(e);return null==t?n:or(n,t)},Un.curry=function e(t,r,i){var a=Qi(t,8,n,n,n,n,n,r=i?n:r);return a.placeholder=e.placeholder,a},Un.curryRight=function e(t,r,i){var a=Qi(t,o,n,n,n,n,n,r=i?n:r);return a.placeholder=e.placeholder,a},Un.debounce=Io,Un.defaults=Cs,Un.defaultsDeep=As,Un.defer=Bo,Un.delay=No,Un.difference=Ua,Un.differenceBy=ja,Un.differenceWith=Ha,Un.drop=function(e,t,r){var i=null==e?0:e.length;return i?ai(e,(t=r||t===n?1:vs(t))<0?0:t,i):[]},Un.dropRight=function(e,t,r){var i=null==e?0:e.length;return i?ai(e,0,(t=i-(t=r||t===n?1:vs(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?mi(e,ua(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?mi(e,ua(t,3),!0):[]},Un.fill=function(e,t,r,i){var a=null==e?0:e.length;return a?(r&&"number"!=typeof r&&ba(e,t,r)&&(r=0,i=a),function(e,t,r,i){var a=e.length;for((r=vs(r))<0&&(r=-r>a?0:a+r),(i=i===n||i>a?a:vs(i))<0&&(i+=a),i=r>i?0:ys(i);r<i;)e[r++]=t;return e}(e,t,r,i)):[]},Un.filter=function(e,t){return(Jo(e)?At:yr)(e,ua(t,3))},Un.flatMap=function(e,t){return xr(Eo(e,t),1)},Un.flatMapDeep=function(e,t){return xr(Eo(e,t),h)},Un.flatMapDepth=function(e,t,r){return r=r===n?1:vs(r),xr(Eo(e,t),r)},Un.flatten=Ja,Un.flattenDeep=function(e){return(null==e?0:e.length)?xr(e,h):[]},Un.flattenDepth=function(e,t){return(null==e?0:e.length)?xr(e,t=t===n?1:vs(t)):[]},Un.flip=function(e){return Qi(e,512)},Un.flow=il,Un.flowRight=al,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Un.functions=function(e){return null==e?[]:Sr(e,Is(e))},Un.functionsIn=function(e){return null==e?[]:Sr(e,Bs(e))},Un.groupBy=Mo,Un.initial=function(e){return(null==e?0:e.length)?ai(e,0,-1):[]},Un.intersection=$a,Un.intersectionBy=Ya,Un.intersectionWith=Za,Un.invert=Ps,Un.invertBy=Os,Un.invokeMap=So,Un.iteratee=sl,Un.keyBy=To,Un.keys=Is,Un.keysIn=Bs,Un.map=Eo,Un.mapKeys=function(e,t){var n={};return t=ua(t,3),wr(e,(function(e,r,i){sr(n,t(e,r,i),e)})),n},Un.mapValues=function(e,t){var n={};return t=ua(t,3),wr(e,(function(e,r,i){sr(n,r,t(e,r,i))})),n},Un.matches=function(e){return Ur(ur(e,1))},Un.matchesProperty=function(e,t){return jr(e,ur(t,1))},Un.memoize=ko,Un.merge=Ns,Un.mergeWith=ks,Un.method=ll,Un.methodOf=cl,Un.mixin=ul,Un.negate=Fo,Un.nthArg=function(e){return e=vs(e),Kr((function(t){return Wr(t,e)}))},Un.omit=Fs,Un.omitBy=function(e,t){return Vs(e,Fo(ua(t)))},Un.once=function(e){return Po(2,e)},Un.orderBy=function(e,t,r,i){return null==e?[]:(Jo(t)||(t=null==t?[]:[t]),Jo(r=i?n:r)||(r=null==r?[]:[r]),qr(e,t,r))},Un.over=pl,Un.overArgs=Go,Un.overEvery=dl,Un.overSome=fl,Un.partial=Vo,Un.partialRight=zo,Un.partition=Co,Un.pick=Gs,Un.pickBy=Vs,Un.property=ml,Un.propertyOf=function(e){return function(t){return null==e?n:Tr(e,t)}},Un.pull=Qa,Un.pullAll=eo,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Xr(e,t,ua(n,2)):e},Un.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Xr(e,t,n,r):e},Un.pullAt=to,Un.range=gl,Un.rangeRight=vl,Un.rearg=Uo,Un.reject=function(e,t){return(Jo(e)?At:yr)(e,Fo(ua(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],a=e.length;for(t=ua(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return $r(e,i),n},Un.rest=function(e,t){if("function"!=typeof e)throw new De(r);return Kr(e,t=t===n?t:vs(t))},Un.reverse=no,Un.sampleSize=function(e,t,r){return t=(r?ba(e,t,r):t===n)?1:vs(t),(Jo(e)?er:ei)(e,t)},Un.set=function(e,t,n){return null==e?e:ti(e,t,n)},Un.setWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:ti(e,t,r,i)},Un.shuffle=function(e){return(Jo(e)?tr:ii)(e)},Un.slice=function(e,t,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&ba(e,t,r)?(t=0,r=i):(t=null==t?0:vs(t),r=r===n?i:vs(r)),ai(e,t,r)):[]},Un.sortBy=Ao,Un.sortedUniq=function(e){return e&&e.length?ci(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?ci(e,ua(t,2)):[]},Un.split=function(e,t,r){return r&&"number"!=typeof r&&ba(e,t,r)&&(t=r=n),(r=r===n?f:r>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!ls(t))&&!(t=hi(t))&&an(e)?Mi(pn(e),0,r):e.split(t,r):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new De(r);return t=null==t?0:_n(vs(t),0),Kr((function(n){var r=n[t],i=Mi(n,0,t);return r&&Ot(i,r),Mt(e,this,i)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?ai(e,1,t):[]},Un.take=function(e,t,r){return e&&e.length?ai(e,0,(t=r||t===n?1:vs(t))<0?0:t):[]},Un.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?ai(e,(t=i-(t=r||t===n?1:vs(t)))<0?0:t,i):[]},Un.takeRightWhile=function(e,t){return e&&e.length?mi(e,ua(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?mi(e,ua(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new De(r);return rs(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),Io(e,t,{leading:i,maxWait:t,trailing:a})},Un.thru=go,Un.toArray=ms,Un.toPairs=zs,Un.toPairsIn=Us,Un.toPath=function(e){return Jo(e)?Pt(e,Ga):hs(e)?[e]:Pi(Fa(bs(e)))},Un.toPlainObject=_s,Un.transform=function(e,t,n){var r=Jo(e),i=r||Zo(e)||ps(e);if(t=ua(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:rs(e)&&es(a)?jn(Je(e)):{}}return(i?Tt:wr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Un.unary=function(e){return Do(e,1)},Un.union=ro,Un.unionBy=io,Un.unionWith=ao,Un.uniq=function(e){return e&&e.length?pi(e):[]},Un.uniqBy=function(e,t){return e&&e.length?pi(e,ua(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?pi(e,n,t):[]},Un.unset=function(e,t){return null==e||di(e,t)},Un.unzip=oo,Un.unzipWith=so,Un.update=function(e,t,n){return null==e?e:fi(e,t,_i(n))},Un.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:fi(e,t,_i(r),i)},Un.values=js,Un.valuesIn=function(e){return null==e?[]:Yt(e,Bs(e))},Un.without=lo,Un.words=el,Un.wrap=function(e,t){return Vo(_i(t),e)},Un.xor=co,Un.xorBy=uo,Un.xorWith=ho,Un.zip=po,Un.zipObject=function(e,t){return yi(e||[],t||[],rr)},Un.zipObjectDeep=function(e,t){return yi(e||[],t||[],ti)},Un.zipWith=fo,Un.entries=zs,Un.entriesIn=Us,Un.extend=Ms,Un.extendWith=Ss,ul(Un,Un),Un.add=_l,Un.attempt=tl,Un.camelCase=Hs,Un.capitalize=Ws,Un.ceil=bl,Un.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=xs(r))==r?r:0),t!==n&&(t=(t=xs(t))==t?t:0),cr(xs(e),t,r)},Un.clone=function(e){return ur(e,4)},Un.cloneDeep=function(e){return ur(e,5)},Un.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:n)},Un.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:n)},Un.conformsTo=function(e,t){return null==t||hr(e,t,Is(t))},Un.deburr=qs,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=wl,Un.endsWith=function(e,t,r){e=bs(e),t=hi(t);var i=e.length,a=r=r===n?i:cr(vs(r),0,i);return(r-=t.length)>=0&&e.slice(r,a)==t},Un.eq=jo,Un.escape=function(e){return(e=bs(e))&&$.test(e)?e.replace(J,nn):e},Un.escapeRegExp=function(e){return(e=bs(e))&&re.test(e)?e.replace(ne,"\\$&"):e},Un.every=function(e,t,r){var i=Jo(e)?Ct:gr;return r&&ba(e,t,r)&&(t=n),i(e,ua(t,3))},Un.find=xo,Un.findIndex=Wa,Un.findKey=function(e,t){return kt(e,ua(t,3),wr)},Un.findLast=_o,Un.findLastIndex=qa,Un.findLastKey=function(e,t){return kt(e,ua(t,3),Mr)},Un.floor=Ml,Un.forEach=bo,Un.forEachRight=wo,Un.forIn=function(e,t){return null==e?e:_r(e,ua(t,3),Bs)},Un.forInRight=function(e,t){return null==e?e:br(e,ua(t,3),Bs)},Un.forOwn=function(e,t){return e&&wr(e,ua(t,3))},Un.forOwnRight=function(e,t){return e&&Mr(e,ua(t,3))},Un.get=Ls,Un.gt=Ho,Un.gte=Wo,Un.has=function(e,t){return null!=e&&va(e,t,Lr)},Un.hasIn=Ds,Un.head=Xa,Un.identity=ol,Un.includes=function(e,t,n,r){e=$o(e)?e:js(e),n=n&&!r?vs(n):0;var i=e.length;return n<0&&(n=_n(i+n,0)),us(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Gt(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=_n(r+i,0)),Gt(e,t,i)},Un.inRange=function(e,t,r){return t=gs(t),r===n?(r=t,t=0):r=gs(r),function(e,t,n){return e>=bn(t,n)&&e<_n(t,n)}(e=xs(e),t,r)},Un.invoke=Rs,Un.isArguments=qo,Un.isArray=Jo,Un.isArrayBuffer=Xo,Un.isArrayLike=$o,Un.isArrayLikeObject=Yo,Un.isBoolean=function(e){return!0===e||!1===e||is(e)&&Cr(e)==y},Un.isBuffer=Zo,Un.isDate=Ko,Un.isElement=function(e){return is(e)&&1===e.nodeType&&!ss(e)},Un.isEmpty=function(e){if(null==e)return!0;if($o(e)&&(Jo(e)||"string"==typeof e||"function"==typeof e.splice||Zo(e)||ps(e)||qo(e)))return!e.length;var t=ga(e);if(t==M||t==A)return!e.size;if(Ta(e))return!Fr(e).length;for(var n in e)if(Ne.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return Ir(e,t)},Un.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return i===n?Ir(e,t,n,r):!!i},Un.isError=Qo,Un.isFinite=function(e){return"number"==typeof e&&vn(e)},Un.isFunction=es,Un.isInteger=ts,Un.isLength=ns,Un.isMap=as,Un.isMatch=function(e,t){return e===t||Br(e,t,pa(t))},Un.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Br(e,t,pa(t),r)},Un.isNaN=function(e){return os(e)&&e!=+e},Un.isNative=function(e){if(Sa(e))throw new Se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Nr(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=os,Un.isObject=rs,Un.isObjectLike=is,Un.isPlainObject=ss,Un.isRegExp=ls,Un.isSafeInteger=function(e){return ts(e)&&e>=-9007199254740991&&e<=p},Un.isSet=cs,Un.isString=us,Un.isSymbol=hs,Un.isTypedArray=ps,Un.isUndefined=function(e){return e===n},Un.isWeakMap=function(e){return is(e)&&ga(e)==P},Un.isWeakSet=function(e){return is(e)&&"[object WeakSet]"==Cr(e)},Un.join=function(e,t){return null==e?"":yn.call(e,t)},Un.kebabCase=Js,Un.last=Ka,Un.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=(a=vs(r))<0?_n(i+a,0):bn(a,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Ft(e,zt,a,!0)},Un.lowerCase=Xs,Un.lowerFirst=$s,Un.lt=ds,Un.lte=fs,Un.max=function(e){return e&&e.length?vr(e,ol,Ar):n},Un.maxBy=function(e,t){return e&&e.length?vr(e,ua(t,2),Ar):n},Un.mean=function(e){return Ut(e,ol)},Un.meanBy=function(e,t){return Ut(e,ua(t,2))},Un.min=function(e){return e&&e.length?vr(e,ol,Vr):n},Un.minBy=function(e,t){return e&&e.length?vr(e,ua(t,2),Vr):n},Un.stubArray=yl,Un.stubFalse=xl,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=Tl,Un.nth=function(e,t){return e&&e.length?Wr(e,vs(t)):n},Un.noConflict=function(){return ht._===this&&(ht._=ze),this},Un.noop=hl,Un.now=Lo,Un.pad=function(e,t,n){e=bs(e);var r=(t=vs(t))?hn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return qi(Nt(i),n)+e+qi(gt(i),n)},Un.padEnd=function(e,t,n){e=bs(e);var r=(t=vs(t))?hn(e):0;return t&&r<t?e+qi(t-r,n):e},Un.padStart=function(e,t,n){e=bs(e);var r=(t=vs(t))?hn(e):0;return t&&r<t?qi(t-r,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Mn(bs(e).replace(ie,""),t||0)},Un.random=function(e,t,r){if(r&&"boolean"!=typeof r&&ba(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=gs(e),t===n?(t=e,e=0):t=gs(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=Sn();return bn(e+a*(t-e+st("1e-"+((a+"").length-1))),t)}return Yr(e,t)},Un.reduce=function(e,t,n){var r=Jo(e)?Rt:Wt,i=arguments.length<3;return r(e,ua(t,4),n,i,fr)},Un.reduceRight=function(e,t,n){var r=Jo(e)?It:Wt,i=arguments.length<3;return r(e,ua(t,4),n,i,mr)},Un.repeat=function(e,t,r){return t=(r?ba(e,t,r):t===n)?1:vs(t),Zr(bs(e),t)},Un.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,r){var i=-1,a=(t=bi(t,e)).length;for(a||(a=1,e=n);++i<a;){var o=null==e?n:e[Ga(t[i])];o===n&&(i=a,o=r),e=es(o)?o.call(e):o}return e},Un.round=El,Un.runInContext=e,Un.sample=function(e){return(Jo(e)?Qn:Qr)(e)},Un.size=function(e){if(null==e)return 0;if($o(e))return us(e)?hn(e):e.length;var t=ga(e);return t==M||t==A?e.size:Fr(e).length},Un.snakeCase=Ys,Un.some=function(e,t,r){var i=Jo(e)?Bt:oi;return r&&ba(e,t,r)&&(t=n),i(e,ua(t,3))},Un.sortedIndex=function(e,t){return si(e,t)},Un.sortedIndexBy=function(e,t,n){return li(e,t,ua(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=si(e,t);if(r<n&&jo(e[r],t))return r}return-1},Un.sortedLastIndex=function(e,t){return si(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return li(e,t,ua(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=si(e,t,!0)-1;if(jo(e[n],t))return n}return-1},Un.startCase=Zs,Un.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:cr(vs(n),0,e.length),t=hi(t),e.slice(n,n+t.length)==t},Un.subtract=Cl,Un.sum=function(e){return e&&e.length?qt(e,ol):0},Un.sumBy=function(e,t){return e&&e.length?qt(e,ua(t,2)):0},Un.template=function(e,t,r){var i=Un.templateSettings;r&&ba(e,t,r)&&(t=n),e=bs(e),t=Ss({},t,i,ea);var a,o,s=Ss({},t.imports,i.imports,ea),l=Is(s),c=Yt(s,l),u=0,h=t.interpolate||_e,p="__p += '",d=Ae((t.escape||_e).source+"|"+h.source+"|"+(h===K?pe:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),f="//# sourceURL="+(Ne.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(d,(function(t,n,r,i,s,l){return r||(r=i),p+=e.slice(u,l).replace(be,rn),n&&(a=!0,p+="' +\n__e("+n+") +\n'"),s&&(o=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),p+="';\n";var m=Ne.call(t,"variable")&&t.variable;if(m){if(ue.test(m))throw new Se("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(o?p.replace(j,""):p).replace(H,"$1").replace(W,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=tl((function(){return Te(l,f+"return "+p).apply(n,c)}));if(g.source=p,Qo(g))throw g;return g},Un.times=function(e,t){if((e=vs(e))<1||e>p)return[];var n=f,r=bn(e,f);t=ua(t),e-=f;for(var i=Jt(r,t);++n<e;)t(n);return i},Un.toFinite=gs,Un.toInteger=vs,Un.toLength=ys,Un.toLower=function(e){return bs(e).toLowerCase()},Un.toNumber=xs,Un.toSafeInteger=function(e){return e?cr(vs(e),-9007199254740991,p):0===e?e:0},Un.toString=bs,Un.toUpper=function(e){return bs(e).toUpperCase()},Un.trim=function(e,t,r){if((e=bs(e))&&(r||t===n))return Xt(e);if(!e||!(t=hi(t)))return e;var i=pn(e),a=pn(t);return Mi(i,Kt(i,a),Qt(i,a)+1).join("")},Un.trimEnd=function(e,t,r){if((e=bs(e))&&(r||t===n))return e.slice(0,dn(e)+1);if(!e||!(t=hi(t)))return e;var i=pn(e);return Mi(i,0,Qt(i,pn(t))+1).join("")},Un.trimStart=function(e,t,r){if((e=bs(e))&&(r||t===n))return e.replace(ie,"");if(!e||!(t=hi(t)))return e;var i=pn(e);return Mi(i,Kt(i,pn(t))).join("")},Un.truncate=function(e,t){var r=30,i="...";if(rs(t)){var a="separator"in t?t.separator:a;r="length"in t?vs(t.length):r,i="omission"in t?hi(t.omission):i}var o=(e=bs(e)).length;if(an(e)){var s=pn(e);o=s.length}if(r>=o)return e;var l=r-hn(i);if(l<1)return i;var c=s?Mi(s,0,l).join(""):e.slice(0,l);if(a===n)return c+i;if(s&&(l+=c.length-l),ls(a)){if(e.slice(l).search(a)){var u,h=c;for(a.global||(a=Ae(a.source,bs(de.exec(a))+"g")),a.lastIndex=0;u=a.exec(h);)var p=u.index;c=c.slice(0,p===n?l:p)}}else if(e.indexOf(hi(a),l)!=l){var d=c.lastIndexOf(a);d>-1&&(c=c.slice(0,d))}return c+i},Un.unescape=function(e){return(e=bs(e))&&X.test(e)?e.replace(q,fn):e},Un.uniqueId=function(e){var t=++ke;return bs(e)+t},Un.upperCase=Ks,Un.upperFirst=Qs,Un.each=bo,Un.eachRight=wo,Un.first=Xa,ul(Un,(Sl={},wr(Un,(function(e,t){Ne.call(Un.prototype,t)||(Sl[t]=e)})),Sl),{chain:!1}),Un.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),Tt(["drop","take"],(function(e,t){qn.prototype[e]=function(r){r=r===n?1:_n(vs(r),0);var i=this.__filtered__&&!t?new qn(this):this.clone();return i.__filtered__?i.__takeCount__=bn(r,i.__takeCount__):i.__views__.push({size:bn(r,f),type:e+(i.__dir__<0?"Right":"")}),i},qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ua(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Tt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");qn.prototype[e]=function(){return this[n](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");qn.prototype[e]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(ol)},qn.prototype.find=function(e){return this.filter(e).head()},qn.prototype.findLast=function(e){return this.reverse().find(e)},qn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new qn(this):this.map((function(n){return Or(n,e,t)}))})),qn.prototype.reject=function(e){return this.filter(Fo(ua(e)))},qn.prototype.slice=function(e,t){e=vs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new qn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=vs(t))<0?r.dropRight(-t):r.take(t-e)),r)},qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qn.prototype.toArray=function(){return this.take(f)},wr(qn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=Un[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);a&&(Un.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,l=t instanceof qn,c=s[0],u=l||Jo(t),h=function(e){var t=a.apply(Un,Ot([e],s));return i&&p?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,d=!!this.__actions__.length,f=o&&!p,m=l&&!d;if(!o&&u){t=m?t:new qn(this);var g=e.apply(t,s);return g.__actions__.push({func:go,args:[h],thisArg:n}),new Wn(g,p)}return f&&m?e.apply(this,s):(g=this.thru(h),f?i?g.value()[0]:g.value():g)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Jo(i)?i:[],e)}return this[n]((function(n){return t.apply(Jo(n)?n:[],e)}))}})),wr(qn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Ne.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}})),Rn[Ui(n,2).name]=[{name:"wrapper",func:n}],qn.prototype.clone=function(){var e=new qn(this.__wrapped__);return e.__actions__=Pi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Pi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Pi(this.__views__),e},qn.prototype.reverse=function(){if(this.__filtered__){var e=new qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Jo(e),r=t<0,i=n?e.length:0,a=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=bn(t,e+o);break;case"takeRight":e=_n(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,l=s-o,c=r?s:o-1,u=this.__iteratees__,h=u.length,p=0,d=bn(l,this.__takeCount__);if(!n||!r&&i==l&&d==l)return gi(e,this.__actions__);var f=[];e:for(;l--&&p<d;){for(var m=-1,g=e[c+=t];++m<h;){var v=u[m],y=v.iteratee,x=v.type,_=y(g);if(2==x)g=_;else if(!_){if(1==x)continue e;break e}}f[p++]=g}return f},Un.prototype.at=vo,Un.prototype.chain=function(){return mo(this)},Un.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===n&&(this.__values__=ms(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,r=this;r instanceof Hn;){var i=za(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qn){var t=e;return this.__actions__.length&&(t=new qn(this)),(t=t.reverse()).__actions__.push({func:go,args:[no],thisArg:n}),new Wn(t,this.__chain__)}return this.thru(no)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,ot&&(Un.prototype[ot]=function(){return this}),Un}();dt?((dt.exports=mn)._=mn,pt._=mn):ht._=mn}).call(commonjsGlobal)}));function useCanvasResizeListener(e,t,n,r,i){return void 0===n&&(n=100),void 0===r&&(r=!0),__awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){switch(a.label){case 0:return store.state.MxFun?e?store.state.isLoadCanvasResizeListene?[3,2]:(e.addEvent("addResizeEvent",(function(e){createCanvasParent(t).addEventListener("resize",(void 0)((function(t){i&&i(t),r&&e(t)}),n),!1)})),[4,dynamicImport("element-resize-event-polyfill")]):(console.error("请确保mxdrawObj参数 是通过调用MxFun.createMxObject的callback回调函数拿到的mxDraw对象"),[2]):(console.error("请先调用loadCoreCode方法! "),[2]);case 1:a.sent(),store.commit("setIsLoadCanvasResizeListene",!0),a.label=2;case 2:return[2]}}))}))}var MxFun=function(){function e(){objectMethodProxy(this,store.state.MxFun,"acutPrintf")}return e.prototype.createMxObject=function(e){var t=e.canvasId,n=void 0===t?createReandomId():t,r=e.cadFile,i=void 0===r?"":r,a=e.callback,o=e.isNewFile,s=void 0!==o&&o,l=e.useWebsocket,c=void 0!==l&&l,u=createCanvas(n),h=createCanvasParent(u);h.parentNode&&11!=h.parentNode.nodeType||document.body.appendChild(h),store.state.MxFun.createMxObject(n,i,(function(e){var t=new MxDrawObject(e);e.setMouseRightRotate(!1),e.setIniset({EnableOsnapFunction:!0}),e.addEvent("onResize",(function(){return h.tabindex=3,{width:h.clientWidth,height:h.clientHeight}})),useCanvasResizeListener(t,u),a&&a(t,{canvas:u,canvasParent:h})}),void 0,s,c)},e.prototype.setMxServer=function(e){void 0===e&&(e="ws://localhost:5090"),store.state.MxFun.setMxServer(e)},e.prototype.enablStaticLoad=function(e){store.state.MxFun.enablStaticLoad(e)},e.prototype.setStaticServer=function(e){store.state.MxFun.setStaticServer(e)},e.prototype.addCommand=function(e,t){store.state.MxFun.addCommand(e,t)},e.prototype.sendStringToExecute=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return(t=store.state.MxFun).sendStringToExecute.apply(t,__spreadArray([e],n,!1))},e.prototype.call=function(e,t,n){return store.state.MxFun.call(e,t,n)},e.prototype.getCurrentDraw=function(){return new MxDrawObject(store.state.MxFun.getCurrentDraw())},e.prototype.screenCoordLong2World=function(e){return store.state.MxFun.screenCoordLong2World(e)},e.prototype.screenCoordLong2Doc=function(e){return store.state.MxFun.screenCoordLong2Doc(e)},e.prototype.docCoordLong2Screen=function(e){return store.state.MxFun.docCoordLong2Screen(e)},e.prototype.worldCoordLong2Doc=function(e){return store.state.MxFun.worldCoordLong2Doc(e)},e.prototype.docCoordLong2World=function(e){return store.state.MxFun.docCoordLong2World(e)},e.prototype.screenCoord2World=function(e,t,n){return store.state.MxFun.screenCoord2World(e,t,n)},e.prototype.worldCoord2Screen=function(e,t,n){return store.state.MxFun.worldCoord2Screen(e,t,n)},e.prototype.docCoord2World=function(e,t,n){return store.state.MxFun.docCoord2World(e,t,n)},e.prototype.worldCoord2Doc=function(e,t,n){return store.state.MxFun.worldCoord2Doc(e,t,n)},e.prototype.screenCoord2Doc=function(e,t){return store.state.MxFun.screenCoord2Doc(e,t,0)},e.prototype.docCoord2Screen=function(e,t){return store.state.MxFun.docCoord2Screen(e,t,0)},e.prototype.updateDisplay=function(){return store.state.MxFun.updateDisplay()},e.prototype.addWindowsEvent=function(e){return store.state.MxFun.addWindowsEvent(e)},e.prototype.isRunningCommand=function(){return store.state.MxFun.isRunningCommand()},e.prototype.zoomW=function(e,t,n,r,i){return store.state.MxFun.zoomW(e,t,n,r,i)},e.prototype.showLayer=function(e,t,n){return store.state.MxFun.showLayer(e,t,n)},e.prototype.getCurrentMxCAD=function(){return store.state.MxFun.getCurrentMxCAD()},e.prototype.getQueryString=function(e){return store.state.MxFun.getQueryString(e)},e.prototype.setIniset=function(e){return store.state.MxFun.setIniset(e)},e.prototype.upDisplayForLayerData=function(e){return store.state.MxFun.upDisplayForLayerData(e)},e.prototype.initUiDataObject=function(e){return store.state.MxFun.initUiDataObject(e)},e.prototype.testMX=function(e){return 11},e.prototype.loadImageMaterial=function(e,t){return store.state.MxFun.loadImageMaterial(e,t)},e.prototype.pointInPolyline=function(e,t){return store.state.MxFun.pointInPolyline(e,t)},e.prototype.calcArea=function(e){return store.state.MxFun.calcArea(e)},e.prototype.openFile=function(e){return store.state.MxFun.openFile(e)},e}(),MxFun$1=new MxFun,MxDbImage=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pt1=new Vector3,t.pt2=new Vector3,t.imagePath="",t.isLoadMaterialFromPath=!0,t.material=null,t}return __extends(t,e),t.prototype.getTypeName=function(){return"MxDbImage"},t.prototype.worldDraw=function(e){var t=this,n=new Vector3(this.pt1.x,this.pt2.y),r=new Vector3(this.pt2.x,this.pt1.y);if(e.drawLine(this.pt1,n),e.drawLine(n,this.pt2),e.drawLine(this.pt2,r),e.drawLine(r,this.pt1),1==e.getType())if(this.material){for(var i=Math.abs(this.pt1.x-this.pt2.x),a=Math.abs(this.pt1.y-this.pt2.y),o=new PlaneGeometry(i,a),s=Math.min(this.pt1.x,this.pt2.x),l=Math.min(this.pt1.y,this.pt2.y),c=0;c<o.vertices.length;c++)o.vertices[c].x+=s+.5*i,o.vertices[c].y+=l+.5*a,o.vertices[c].z=0;var u=new Mesh(o,this.material);u.material.depthTest=!1,e.drawEntity(u)}else if(this.imagePath.length>0&&this.isLoadMaterialFromPath){var h=this;MxFun$1.loadImageMaterial("./models/img/mxcad.jpg",(function(e){t.isLoadMaterialFromPath=!1,e&&(h.setMaterial(e),h.setNeedUpdateDisplay(),MxFun$1.updateDisplay())}))}},t.prototype.setImagePath=function(e){this.imagePath=e,this.isLoadMaterialFromPath=!0,this.material=null},t.prototype.getImagePath=function(){return this.imagePath},t.prototype.setMaterial=function(e){this.material=e},t.prototype.setPoint1=function(e){this.pt1=e},t.prototype.getPoint1=function(){return this.pt1},t.prototype.setPoint2=function(e){this.pt2=e},t.prototype.getPoint2=function(){return this.pt2},t.prototype.getGripPoints=function(){var e=[];return e.push(this.pt1),e.push(this.pt2),e},t.prototype.moveGripPointsAt=function(e,t){return 0==e?this.pt1.add(t):(e=1)&&this.pt2.add(t),!0},t.prototype.dwgIn=function(e){return this.onDwgIn(e),this.pt1.copy(e.pt1),this.pt2.copy(e.pt2),this.imagePath=e.imagePath.substr(0),this.isLoadMaterialFromPath=!0,!0},t.prototype.dwgOut=function(e){return this.onDwgOut(e),e.pt1=this.pt1,e.pt2=this.pt2,e.imagePath=this.imagePath,e},t.prototype.create=function(){return new t},t}(MxDbEntity);class SVGLoader extends Loader{constructor(e){super(e),this.defaultDPI=90,this.defaultUnit="px"}load(e,t,n,r){const i=this,a=new FileLoader(i.manager);a.setPath(i.path),a.setRequestHeader(i.requestHeader),a.setWithCredentials(i.withCredentials),a.load(e,(function(n){try{t(i.parse(n))}catch(t){r?r(t):console.error(t),i.manager.itemError(e)}}),n,r)}parse(e){const t=this;function n(e,t,n,i,a,o,s,l){if(0==t||0==n)return void e.lineTo(l.x,l.y);i=i*Math.PI/180,t=Math.abs(t),n=Math.abs(n);const c=(s.x-l.x)/2,u=(s.y-l.y)/2,h=Math.cos(i)*c+Math.sin(i)*u,p=-Math.sin(i)*c+Math.cos(i)*u;let d=t*t,f=n*n;const m=h*h,g=p*p,v=m/d+g/f;if(v>1){const e=Math.sqrt(v);d=(t*=e)*t,f=(n*=e)*n}const y=d*g+f*m,x=(d*f-y)/y;let _=Math.sqrt(Math.max(0,x));a===o&&(_=-_);const b=_*t*p/n,w=-_*n*h/t,M=Math.cos(i)*b-Math.sin(i)*w+(s.x+l.x)/2,S=Math.sin(i)*b+Math.cos(i)*w+(s.y+l.y)/2,T=r(1,0,(h-b)/t,(p-w)/n),E=r((h-b)/t,(p-w)/n,(-h-b)/t,(-p-w)/n)%(2*Math.PI);e.currentPath.absellipse(M,S,t,n,T,T+E,0===o,i)}function r(e,t,n,r){const i=e*n+t*r,a=Math.sqrt(e*e+t*t)*Math.sqrt(n*n+r*r);let o=Math.acos(Math.max(-1,Math.min(1,i/a)));return e*r-t*n<0&&(o=-o),o}function i(e,t){t=Object.assign({},t);let n={};if(e.hasAttribute("class")){const t=e.getAttribute("class").split(/\s/).filter(Boolean).map((e=>e.trim()));for(let e=0;e<t.length;e++)n=Object.assign(n,d["."+t[e]])}function r(r,i,a){void 0===a&&(a=function(e){return e.startsWith("url")&&console.warn("SVGLoader: url access in attributes is not implemented."),e}),e.hasAttribute(r)&&(t[i]=a(e.getAttribute(r))),n[r]&&(t[i]=a(n[r])),e.style&&""!==e.style[r]&&(t[i]=a(e.style[r]))}function i(e){return Math.max(0,Math.min(1,c(e)))}function a(e){return Math.max(0,c(e))}return e.hasAttribute("id")&&(n=Object.assign(n,d["#"+e.getAttribute("id")])),r("fill","fill"),r("fill-opacity","fillOpacity",i),r("fill-rule","fillRule"),r("opacity","opacity",i),r("stroke","stroke"),r("stroke-opacity","strokeOpacity",i),r("stroke-width","strokeWidth",a),r("stroke-linejoin","strokeLineJoin"),r("stroke-linecap","strokeLineCap"),r("stroke-miterlimit","strokeMiterLimit",a),r("visibility","visibility"),t}function a(e,t){return e-(t-e)}function o(e,t,n){if("string"!=typeof e)throw new TypeError("Invalid input: "+typeof e);const r={SEPARATOR:/[ \t\r\n\,.\-+]/,WHITESPACE:/[ \t\r\n]/,DIGIT:/[\d]/,SIGN:/[-+]/,POINT:/\./,COMMA:/,/,EXP:/e/i,FLAGS:/[01]/};let i=0,a=!0,o="",s="";const l=[];function c(e,t,n){const r=new SyntaxError('Unexpected character "'+e+'" at index '+t+".");throw r.partial=n,r}function u(){""!==o&&(""===s?l.push(Number(o)):l.push(Number(o)*Math.pow(10,Number(s)))),o="",s=""}let h;const p=e.length;for(let d=0;d<p;d++)if(h=e[d],Array.isArray(t)&&t.includes(l.length%n)&&r.FLAGS.test(h))i=1,o=h,u();else{if(0===i){if(r.WHITESPACE.test(h))continue;if(r.DIGIT.test(h)||r.SIGN.test(h)){i=1,o=h;continue}if(r.POINT.test(h)){i=2,o=h;continue}r.COMMA.test(h)&&(a&&c(h,d,l),a=!0)}if(1===i){if(r.DIGIT.test(h)){o+=h;continue}if(r.POINT.test(h)){o+=h,i=2;continue}if(r.EXP.test(h)){i=3;continue}r.SIGN.test(h)&&1===o.length&&r.SIGN.test(o[0])&&c(h,d,l)}if(2===i){if(r.DIGIT.test(h)){o+=h;continue}if(r.EXP.test(h)){i=3;continue}r.POINT.test(h)&&"."===o[o.length-1]&&c(h,d,l)}if(3===i){if(r.DIGIT.test(h)){s+=h;continue}if(r.SIGN.test(h)){if(""===s){s+=h;continue}1===s.length&&r.SIGN.test(s)&&c(h,d,l)}}r.WHITESPACE.test(h)?(u(),i=0,a=!1):r.COMMA.test(h)?(u(),i=0,a=!0):r.SIGN.test(h)?(u(),i=1,o=h):r.POINT.test(h)?(u(),i=2,o=h):c(h,d,l)}return u(),l}const s=["mm","cm","in","pt","pc","px"],l={mm:{mm:1,cm:.1,in:1/25.4,pt:72/25.4,pc:6/25.4,px:-1},cm:{mm:10,cm:1,in:1/2.54,pt:72/2.54,pc:6/2.54,px:-1},in:{mm:25.4,cm:2.54,in:1,pt:72,pc:6,px:-1},pt:{mm:25.4/72,cm:2.54/72,in:1/72,pt:1,pc:6/72,px:-1},pc:{mm:25.4/6,cm:2.54/6,in:1/6,pt:12,pc:1,px:-1},px:{px:1}};function c(e){let n,r="px";if("string"==typeof e||e instanceof String)for(let t=0,n=s.length;t<n;t++){const n=s[t];if(e.endsWith(n)){r=n,e=e.substring(0,e.length-n.length);break}}return"px"===r&&"px"!==t.defaultUnit?n=l.in[t.defaultUnit]/t.defaultDPI:(n=l[r][t.defaultUnit],n<0&&(n=l[r].in*t.defaultDPI)),n*parseFloat(e)}function u(e){const t=e.elements;return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function h(e){const t=e.elements;return Math.sqrt(t[3]*t[3]+t[4]*t[4])}const p=[],d={},f=[],m=new Matrix3,g=new Matrix3,v=new Matrix3,y=new Matrix3,x=new Vector2,_=new Vector3,b=new Matrix3,w=(new DOMParser).parseFromString(e,"image/svg+xml");!function e(t,r){if(1!==t.nodeType)return;const s=function(e){if(!(e.hasAttribute("transform")||"use"===e.nodeName&&(e.hasAttribute("x")||e.hasAttribute("y"))))return null;const t=function(e){const t=new Matrix3,n=m;if("use"===e.nodeName&&(e.hasAttribute("x")||e.hasAttribute("y"))){const n=c(e.getAttribute("x")),r=c(e.getAttribute("y"));t.translate(n,r)}if(e.hasAttribute("transform")){const r=e.getAttribute("transform").split(")");for(let e=r.length-1;e>=0;e--){const i=r[e].trim();if(""===i)continue;const a=i.indexOf("("),s=i.length;if(a>0&&a<s){const e=i.substr(0,a),t=o(i.substr(a+1,s-a-1));switch(n.identity(),e){case"translate":if(t.length>=1){const e=t[0];let r=e;t.length>=2&&(r=t[1]),n.translate(e,r)}break;case"rotate":if(t.length>=1){let e=0,r=0,i=0;e=-t[0]*Math.PI/180,t.length>=3&&(r=t[1],i=t[2]),g.identity().translate(-r,-i),v.identity().rotate(e),y.multiplyMatrices(v,g),g.identity().translate(r,i),n.multiplyMatrices(g,y)}break;case"scale":if(t.length>=1){const e=t[0];let r=e;t.length>=2&&(r=t[1]),n.scale(e,r)}break;case"skewX":1===t.length&&n.set(1,Math.tan(t[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":1===t.length&&n.set(1,0,0,Math.tan(t[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":6===t.length&&n.set(t[0],t[2],t[4],t[1],t[3],t[5],0,0,1)}}t.premultiply(n)}}return t}(e);f.length>0&&t.premultiply(f[f.length-1]);return b.copy(t),f.push(t),t}(t);let l=!0,w=null;switch(t.nodeName){case"svg":break;case"style":!function(e){if(!e.sheet||!e.sheet.cssRules||!e.sheet.cssRules.length)return;for(let t=0;t<e.sheet.cssRules.length;t++){const n=e.sheet.cssRules[t];if(1!==n.type)continue;const r=n.selectorText.split(/,/gm).filter(Boolean).map((e=>e.trim()));for(let e=0;e<r.length;e++)d[r[e]]=Object.assign(d[r[e]]||{},n.style)}}(t);break;case"g":r=i(t,r);break;case"path":r=i(t,r),t.hasAttribute("d")&&(w=function(e){const t=new ShapePath,r=new Vector2,i=new Vector2,s=new Vector2;let l=!0,c=!1;const u=e.getAttribute("d").match(/[a-df-z][^a-df-z]*/gi);for(let e=0,h=u.length;e<h;e++){const h=u[e],p=h.charAt(0),d=h.substr(1).trim();let f;switch(!0===l&&(c=!0,l=!1),p){case"M":f=o(d);for(let e=0,n=f.length;e<n;e+=2)r.x=f[e+0],r.y=f[e+1],i.x=r.x,i.y=r.y,0===e?t.moveTo(r.x,r.y):t.lineTo(r.x,r.y),0===e&&s.copy(r);break;case"H":f=o(d);for(let e=0,n=f.length;e<n;e++)r.x=f[e],i.x=r.x,i.y=r.y,t.lineTo(r.x,r.y),0===e&&!0===c&&s.copy(r);break;case"V":f=o(d);for(let e=0,n=f.length;e<n;e++)r.y=f[e],i.x=r.x,i.y=r.y,t.lineTo(r.x,r.y),0===e&&!0===c&&s.copy(r);break;case"L":f=o(d);for(let e=0,n=f.length;e<n;e+=2)r.x=f[e+0],r.y=f[e+1],i.x=r.x,i.y=r.y,t.lineTo(r.x,r.y),0===e&&!0===c&&s.copy(r);break;case"C":f=o(d);for(let e=0,n=f.length;e<n;e+=6)t.bezierCurveTo(f[e+0],f[e+1],f[e+2],f[e+3],f[e+4],f[e+5]),i.x=f[e+2],i.y=f[e+3],r.x=f[e+4],r.y=f[e+5],0===e&&!0===c&&s.copy(r);break;case"S":f=o(d);for(let e=0,n=f.length;e<n;e+=4)t.bezierCurveTo(a(r.x,i.x),a(r.y,i.y),f[e+0],f[e+1],f[e+2],f[e+3]),i.x=f[e+0],i.y=f[e+1],r.x=f[e+2],r.y=f[e+3],0===e&&!0===c&&s.copy(r);break;case"Q":f=o(d);for(let e=0,n=f.length;e<n;e+=4)t.quadraticCurveTo(f[e+0],f[e+1],f[e+2],f[e+3]),i.x=f[e+0],i.y=f[e+1],r.x=f[e+2],r.y=f[e+3],0===e&&!0===c&&s.copy(r);break;case"T":f=o(d);for(let e=0,n=f.length;e<n;e+=2){const n=a(r.x,i.x),o=a(r.y,i.y);t.quadraticCurveTo(n,o,f[e+0],f[e+1]),i.x=n,i.y=o,r.x=f[e+0],r.y=f[e+1],0===e&&!0===c&&s.copy(r)}break;case"A":f=o(d,[3,4],7);for(let e=0,a=f.length;e<a;e+=7){if(f[e+5]==r.x&&f[e+6]==r.y)continue;const a=r.clone();r.x=f[e+5],r.y=f[e+6],i.x=r.x,i.y=r.y,n(t,f[e],f[e+1],f[e+2],f[e+3],f[e+4],a,r),0===e&&!0===c&&s.copy(r)}break;case"m":f=o(d);for(let e=0,n=f.length;e<n;e+=2)r.x+=f[e+0],r.y+=f[e+1],i.x=r.x,i.y=r.y,0===e?t.moveTo(r.x,r.y):t.lineTo(r.x,r.y),0===e&&s.copy(r);break;case"h":f=o(d);for(let e=0,n=f.length;e<n;e++)r.x+=f[e],i.x=r.x,i.y=r.y,t.lineTo(r.x,r.y),0===e&&!0===c&&s.copy(r);break;case"v":f=o(d);for(let e=0,n=f.length;e<n;e++)r.y+=f[e],i.x=r.x,i.y=r.y,t.lineTo(r.x,r.y),0===e&&!0===c&&s.copy(r);break;case"l":f=o(d);for(let e=0,n=f.length;e<n;e+=2)r.x+=f[e+0],r.y+=f[e+1],i.x=r.x,i.y=r.y,t.lineTo(r.x,r.y),0===e&&!0===c&&s.copy(r);break;case"c":f=o(d);for(let e=0,n=f.length;e<n;e+=6)t.bezierCurveTo(r.x+f[e+0],r.y+f[e+1],r.x+f[e+2],r.y+f[e+3],r.x+f[e+4],r.y+f[e+5]),i.x=r.x+f[e+2],i.y=r.y+f[e+3],r.x+=f[e+4],r.y+=f[e+5],0===e&&!0===c&&s.copy(r);break;case"s":f=o(d);for(let e=0,n=f.length;e<n;e+=4)t.bezierCurveTo(a(r.x,i.x),a(r.y,i.y),r.x+f[e+0],r.y+f[e+1],r.x+f[e+2],r.y+f[e+3]),i.x=r.x+f[e+0],i.y=r.y+f[e+1],r.x+=f[e+2],r.y+=f[e+3],0===e&&!0===c&&s.copy(r);break;case"q":f=o(d);for(let e=0,n=f.length;e<n;e+=4)t.quadraticCurveTo(r.x+f[e+0],r.y+f[e+1],r.x+f[e+2],r.y+f[e+3]),i.x=r.x+f[e+0],i.y=r.y+f[e+1],r.x+=f[e+2],r.y+=f[e+3],0===e&&!0===c&&s.copy(r);break;case"t":f=o(d);for(let e=0,n=f.length;e<n;e+=2){const n=a(r.x,i.x),o=a(r.y,i.y);t.quadraticCurveTo(n,o,r.x+f[e+0],r.y+f[e+1]),i.x=n,i.y=o,r.x=r.x+f[e+0],r.y=r.y+f[e+1],0===e&&!0===c&&s.copy(r)}break;case"a":f=o(d,[3,4],7);for(let e=0,a=f.length;e<a;e+=7){if(0==f[e+5]&&0==f[e+6])continue;const a=r.clone();r.x+=f[e+5],r.y+=f[e+6],i.x=r.x,i.y=r.y,n(t,f[e],f[e+1],f[e+2],f[e+3],f[e+4],a,r),0===e&&!0===c&&s.copy(r)}break;case"Z":case"z":t.currentPath.autoClose=!0,t.currentPath.curves.length>0&&(r.copy(s),t.currentPath.currentPoint.copy(r),l=!0);break;default:console.warn(h)}c=!1}return t}(t));break;case"rect":r=i(t,r),w=function(e){const t=c(e.getAttribute("x")||0),n=c(e.getAttribute("y")||0),r=c(e.getAttribute("rx")||e.getAttribute("ry")||0),i=c(e.getAttribute("ry")||e.getAttribute("rx")||0),a=c(e.getAttribute("width")),o=c(e.getAttribute("height")),s=.448084975506,l=new ShapePath;l.moveTo(t+r,n),l.lineTo(t+a-r,n),(0!==r||0!==i)&&l.bezierCurveTo(t+a-r*s,n,t+a,n+i*s,t+a,n+i);l.lineTo(t+a,n+o-i),(0!==r||0!==i)&&l.bezierCurveTo(t+a,n+o-i*s,t+a-r*s,n+o,t+a-r,n+o);l.lineTo(t+r,n+o),(0!==r||0!==i)&&l.bezierCurveTo(t+r*s,n+o,t,n+o-i*s,t,n+o-i);l.lineTo(t,n+i),(0!==r||0!==i)&&l.bezierCurveTo(t,n+i*s,t+r*s,n,t+r,n);return l}(t);break;case"polygon":r=i(t,r),w=function(e){function t(e,t,n){const a=c(t),o=c(n);0===i?r.moveTo(a,o):r.lineTo(a,o),i++}const n=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,r=new ShapePath;let i=0;return e.getAttribute("points").replace(n,t),r.currentPath.autoClose=!0,r}(t);break;case"polyline":r=i(t,r),w=function(e){function t(e,t,n){const a=c(t),o=c(n);0===i?r.moveTo(a,o):r.lineTo(a,o),i++}const n=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,r=new ShapePath;let i=0;return e.getAttribute("points").replace(n,t),r.currentPath.autoClose=!1,r}(t);break;case"circle":r=i(t,r),w=function(e){const t=c(e.getAttribute("cx")||0),n=c(e.getAttribute("cy")||0),r=c(e.getAttribute("r")||0),i=new Path;i.absarc(t,n,r,0,2*Math.PI);const a=new ShapePath;return a.subPaths.push(i),a}(t);break;case"ellipse":r=i(t,r),w=function(e){const t=c(e.getAttribute("cx")||0),n=c(e.getAttribute("cy")||0),r=c(e.getAttribute("rx")||0),i=c(e.getAttribute("ry")||0),a=new Path;a.absellipse(t,n,r,i,0,2*Math.PI);const o=new ShapePath;return o.subPaths.push(a),o}(t);break;case"line":r=i(t,r),w=function(e){const t=c(e.getAttribute("x1")||0),n=c(e.getAttribute("y1")||0),r=c(e.getAttribute("x2")||0),i=c(e.getAttribute("y2")||0),a=new ShapePath;return a.moveTo(t,n),a.lineTo(r,i),a.currentPath.autoClose=!1,a}(t);break;case"defs":l=!1;break;case"use":r=i(t,r);const s=t.href.baseVal.substring(1),u=t.viewportElement.getElementById(s);u?e(u,r):console.warn("SVGLoader: 'use node' references non-existent node id: "+s)}if(w&&(void 0!==r.fill&&"none"!==r.fill&&w.color.setStyle(r.fill),function(e,t){function n(e){_.set(e.x,e.y,1).applyMatrix3(t),e.set(_.x,_.y)}const r=function(e){return 0!==e.elements[1]||0!==e.elements[3]}(t),i=e.subPaths;for(let e=0,a=i.length;e<a;e++){const a=i[e].curves;for(let e=0;e<a.length;e++){const i=a[e];i.isLineCurve?(n(i.v1),n(i.v2)):i.isCubicBezierCurve?(n(i.v0),n(i.v1),n(i.v2),n(i.v3)):i.isQuadraticBezierCurve?(n(i.v0),n(i.v1),n(i.v2)):i.isEllipseCurve&&(r&&console.warn("SVGLoader: Elliptic arc or ellipse rotation or skewing is not implemented."),x.set(i.aX,i.aY),n(x),i.aX=x.x,i.aY=x.y,i.xRadius*=u(t),i.yRadius*=h(t))}}}(w,b),p.push(w),w.userData={node:t,style:r}),l){const n=t.childNodes;for(let t=0;t<n.length;t++)e(n[t],r)}s&&(f.pop(),f.length>0?b.copy(f[f.length-1]):b.identity())}(w.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4});return{paths:p,xml:w.documentElement}}static createShapes(e){const t=999999999,n=0,r=1,i=2,a=3,o=4,s=5,l=6,c={loc:n,t:0};function u(e,t,r,a){const o=e.x,s=t.x,l=r.x,u=a.x,p=e.y,d=t.y,f=r.y,m=a.y,g=(u-l)*(p-f)-(m-f)*(o-l),v=(m-f)*(s-o)-(u-l)*(d-p),y=g/v,x=((s-o)*(p-f)-(d-p)*(o-l))/v;if(0===v&&0!==g||y<=0||y>=1||x<0||x>1)return null;if(0===g&&0===v){for(let l=0;l<2;l++){if(h(0===l?r:a,e,t),c.loc==n){const e=0===l?r:a;return{x:e.x,y:e.y,t:c.t}}if(c.loc==i){return{x:+(o+c.t*(s-o)).toPrecision(10),y:+(p+c.t*(d-p)).toPrecision(10),t:c.t}}}return null}for(let i=0;i<2;i++)if(h(0===i?r:a,e,t),c.loc==n){const e=0===i?r:a;return{x:e.x,y:e.y,t:c.t}}return{x:+(o+y*(s-o)).toPrecision(10),y:+(p+y*(d-p)).toPrecision(10),t:y}}function h(e,t,u){const h=u.x-t.x,p=u.y-t.y,d=e.x-t.x,f=e.y-t.y,m=h*f-d*p;if(e.x===t.x&&e.y===t.y)return c.loc=n,void(c.t=0);if(e.x===u.x&&e.y===u.y)return c.loc=r,void(c.t=1);if(m<-Number.EPSILON)return void(c.loc=a);if(m>Number.EPSILON)return void(c.loc=o);if(h*d<0||p*f<0)return void(c.loc=s);if(Math.sqrt(h*h+p*p)<Math.sqrt(d*d+f*f))return void(c.loc=l);let g;g=0!==h?d/h:f/p,c.loc=i,c.t=g}function p(e,t,n){const r=new Vector2;t.getCenter(r);const i=[];return n.forEach((t=>{if(t.boundingBox.containsPoint(r)){(function(e,t){const n=[],r=[];for(let i=1;i<e.length;i++){const a=e[i-1],o=e[i];for(let e=1;e<t.length;e++){const i=u(a,o,t[e-1],t[e]);null!==i&&void 0===n.find((e=>e.t<=i.t+Number.EPSILON&&e.t>=i.t-Number.EPSILON))&&(n.push(i),r.push(new Vector2(i.x,i.y)))}}return r})(e,t.points).forEach((e=>{i.push({identifier:t.identifier,isCW:t.isCW,point:e})}))}})),i.sort(((e,t)=>e.point.x-t.point.x)),i}let d=0,f=t,m=-999999999,g=e.subPaths.map((e=>{const n=e.getPoints();let r=-999999999,i=t,a=-999999999,o=t;for(let e=0;e<n.length;e++){const t=n[e];t.y>r&&(r=t.y),t.y<i&&(i=t.y),t.x>a&&(a=t.x),t.x<o&&(o=t.x)}return m<=a&&(m=a+1),f>=o&&(f=o-1),{curves:e.curves,points:n,isCW:ShapeUtils.isClockWise(n),identifier:d++,boundingBox:new Box2(new Vector2(o,i),new Vector2(a,r))}}));g=g.filter((e=>e.points.length>1));const v=g.map((t=>function(e,t,n,r,i){null!=i&&""!==i||(i="nonzero");const a=new Vector2;e.boundingBox.getCenter(a);const o=p([new Vector2(n,a.y),new Vector2(r,a.y)],e.boundingBox,t);o.sort(((e,t)=>e.point.x-t.point.x));const s=[],l=[];o.forEach((t=>{t.identifier===e.identifier?s.push(t):l.push(t)}));const c=s[0].point.x,u=[];let h=0;for(;h<l.length&&l[h].point.x<c;)u.length>0&&u[u.length-1]===l[h].identifier?u.pop():u.push(l[h].identifier),h++;if(u.push(e.identifier),"evenodd"===i){const t=u.length%2==0,n=u[u.length-2];return{identifier:e.identifier,isHole:t,for:n}}if("nonzero"===i){let n=!0,r=null,i=null;for(let e=0;e<u.length;e++){const a=u[e];n?(i=t[a].isCW,n=!1,r=a):i!==t[a].isCW&&(i=t[a].isCW,n=!0)}return{identifier:e.identifier,isHole:n,for:r}}console.warn('fill-rule: "'+i+'" is currently not implemented.')}(t,g,f,m,e.userData.style.fillRule))),y=[];return g.forEach((e=>{if(!v[e.identifier].isHole){const t=new Shape;t.curves=e.curves;v.filter((t=>t.isHole&&t.for===e.identifier)).forEach((e=>{const n=g[e.identifier],r=new Path;r.curves=n.curves,t.holes.push(r)})),y.push(t)}})),y}static getStrokeStyle(e,t,n,r,i){return{strokeColor:t=void 0!==t?t:"#000",strokeWidth:e=void 0!==e?e:1,strokeLineJoin:n=void 0!==n?n:"miter",strokeLineCap:r=void 0!==r?r:"butt",strokeMiterLimit:i=void 0!==i?i:4}}static pointsToStroke(e,t,n,r){const i=[],a=[],o=[];if(0===SVGLoader.pointsToStrokeWithBuffers(e,t,n,r,i,a,o))return null;const s=new BufferGeometry;return s.setAttribute("position",new Float32BufferAttribute(i,3)),s.setAttribute("normal",new Float32BufferAttribute(a,3)),s.setAttribute("uv",new Float32BufferAttribute(o,2)),s}static pointsToStrokeWithBuffers(e,t,n,r,i,a,o,s){const l=new Vector2,c=new Vector2,u=new Vector2,h=new Vector2,p=new Vector2,d=new Vector2,f=new Vector2,m=new Vector2,g=new Vector2,v=new Vector2,y=new Vector2,x=new Vector2,_=new Vector2,b=new Vector2,w=new Vector2,M=new Vector2,S=new Vector2;n=void 0!==n?n:12,r=void 0!==r?r:.001,s=void 0!==s?s:0;const T=(e=function(e){let t=!1;for(let n=1,i=e.length-1;n<i;n++)if(e[n].distanceTo(e[n+1])<r){t=!0;break}if(!t)return e;const n=[];n.push(e[0]);for(let t=1,i=e.length-1;t<i;t++)e[t].distanceTo(e[t+1])>=r&&n.push(e[t]);return n.push(e[e.length-1]),n}(e)).length;if(T<2)return 0;const E=e[0].equals(e[T-1]);let C,A,L=e[0];const D=t.strokeWidth/2,P=1/(T-1);let O,R,I,B,N=0,k=!1,F=0,G=3*s,V=2*s;z(e[0],e[1],l).multiplyScalar(D),m.copy(e[0]).sub(l),g.copy(e[0]).add(l),v.copy(m),y.copy(g);for(let n=1;n<T;n++){C=e[n],A=n===T-1?E?e[1]:void 0:e[n+1];const r=l;if(z(L,C,r),u.copy(r).multiplyScalar(D),x.copy(C).sub(u),_.copy(C).add(u),O=N+P,R=!1,void 0!==A){z(C,A,c),u.copy(c).multiplyScalar(D),b.copy(C).sub(u),w.copy(C).add(u),I=!0,u.subVectors(A,L),r.dot(u)<0&&(I=!1),1===n&&(k=I),u.subVectors(A,C),u.normalize();const e=Math.abs(r.dot(u));if(0!==e){const n=D/e;u.multiplyScalar(-n),h.subVectors(C,L),p.copy(h).setLength(n).add(u),M.copy(p).negate();const r=p.length(),i=h.length();h.divideScalar(i),d.subVectors(A,C);const a=d.length();switch(d.divideScalar(a),h.dot(M)<i&&d.dot(M)<a&&(R=!0),S.copy(p).add(C),M.add(C),B=!1,R?I?(w.copy(M),_.copy(M)):(b.copy(M),x.copy(M)):H(),t.strokeLineJoin){case"bevel":W(I,R,O);break;case"round":q(I,R),I?j(C,x,b,O,0):j(C,w,_,O,1);break;default:const e=D*t.strokeMiterLimit/r;if(e<1){if("miter-clip"!==t.strokeLineJoin){W(I,R,O);break}q(I,R),I?(d.subVectors(S,x).multiplyScalar(e).add(x),f.subVectors(S,b).multiplyScalar(e).add(b),U(x,O,0),U(d,O,0),U(C,O,.5),U(C,O,.5),U(d,O,0),U(f,O,0),U(C,O,.5),U(f,O,0),U(b,O,0)):(d.subVectors(S,_).multiplyScalar(e).add(_),f.subVectors(S,w).multiplyScalar(e).add(w),U(_,O,1),U(d,O,1),U(C,O,.5),U(C,O,.5),U(d,O,1),U(f,O,1),U(C,O,.5),U(f,O,1),U(w,O,1))}else R?(I?(U(g,N,1),U(m,N,0),U(S,O,0),U(g,N,1),U(S,O,0),U(M,O,1)):(U(g,N,1),U(m,N,0),U(S,O,1),U(m,N,0),U(M,O,0),U(S,O,1)),I?b.copy(S):w.copy(S)):I?(U(x,O,0),U(S,O,0),U(C,O,.5),U(C,O,.5),U(S,O,0),U(b,O,0)):(U(_,O,1),U(S,O,1),U(C,O,.5),U(C,O,.5),U(S,O,1),U(w,O,1)),B=!0}}else H()}else H();E||n!==T-1||J(e[0],v,y,I,!0,N),N=O,L=C,m.copy(b),g.copy(w)}if(E){if(R&&i){let e=S,t=M;k!==I&&(e=M,t=S),I?(B||k)&&(t.toArray(i,0),t.toArray(i,9),B&&e.toArray(i,3)):!B&&k||(t.toArray(i,3),t.toArray(i,9),B&&e.toArray(i,0))}}else J(C,x,_,I,!1,O);return F;function z(e,t,n){return n.subVectors(t,e),n.set(-n.y,n.x).normalize()}function U(e,t,n){i&&(i[G]=e.x,i[G+1]=e.y,i[G+2]=0,a&&(a[G]=0,a[G+1]=0,a[G+2]=1),G+=3,o&&(o[V]=t,o[V+1]=n,V+=2)),F+=3}function j(e,t,r,i,a){l.copy(t).sub(e).normalize(),c.copy(r).sub(e).normalize();let o=Math.PI;const s=l.dot(c);Math.abs(s)<1&&(o=Math.abs(Math.acos(s))),o/=n,u.copy(t);for(let t=0,r=n-1;t<r;t++)h.copy(u).rotateAround(e,o),U(u,i,a),U(h,i,a),U(e,i,.5),u.copy(h);U(h,i,a),U(r,i,a),U(e,i,.5)}function H(){U(g,N,1),U(m,N,0),U(x,O,0),U(g,N,1),U(x,O,1),U(_,O,0)}function W(e,t,n){t?e?(U(g,N,1),U(m,N,0),U(x,O,0),U(g,N,1),U(x,O,0),U(M,O,1),U(x,n,0),U(b,n,0),U(M,n,.5)):(U(g,N,1),U(m,N,0),U(_,O,1),U(m,N,0),U(M,O,0),U(_,O,1),U(_,n,1),U(w,n,0),U(M,n,.5)):e?(U(x,n,0),U(b,n,0),U(C,n,.5)):(U(_,n,1),U(w,n,0),U(C,n,.5))}function q(e,t){t&&(e?(U(g,N,1),U(m,N,0),U(x,O,0),U(g,N,1),U(x,O,0),U(M,O,1),U(x,N,0),U(C,O,.5),U(M,O,1),U(C,O,.5),U(b,N,0),U(M,O,1)):(U(g,N,1),U(m,N,0),U(_,O,1),U(m,N,0),U(M,O,0),U(_,O,1),U(_,N,1),U(M,O,0),U(C,O,.5),U(C,O,.5),U(M,O,0),U(w,N,1)))}function J(e,n,r,a,o,s){switch(t.strokeLineCap){case"round":o?j(e,r,n,s,.5):j(e,n,r,s,.5);break;case"square":if(o)l.subVectors(n,e),c.set(l.y,-l.x),u.addVectors(l,c).add(e),h.subVectors(c,l).add(e),a?(u.toArray(i,3),h.toArray(i,0),h.toArray(i,9)):(u.toArray(i,3),u.toArray(i,9),h.toArray(i,0));else{l.subVectors(r,e),c.set(l.y,-l.x),u.addVectors(l,c).add(e),h.subVectors(c,l).add(e);const t=i.length;a?(u.toArray(i,t-3),h.toArray(i,t-6),h.toArray(i,t-12)):(u.toArray(i,t-6),h.toArray(i,t-3),h.toArray(i,t-12))}}}}}function setGeometrPostion(e,t){for(var n=0;n<e.vertices.length;n++)e.vertices[n].x+=t.x,e.vertices[n].y+=t.y,e.vertices[n].z+=t.z}function repairGeometryFaceVertexUvs(e){e.computeBoundingBox();var t=e.boundingBox.min,n=e.boundingBox.max,r=new Vector2(0-t.x,0-t.y),i=new Vector2(n.x-t.x,n.y-t.y);e.faceVertexUvs[0]=[];for(var a=e.faces,o=0;o<a.length;o++){var s=a[o],l=e.vertices[s.a],c=e.vertices[s.b],u=e.vertices[s.c];e.faceVertexUvs[0].push([new Vector2((l.x+r.x)/i.x,(l.y+r.y)/i.y),new Vector2((c.x+r.x)/i.x,(c.y+r.y)/i.y),new Vector2((u.x+r.x)/i.x,(u.y+r.y)/i.y)])}return e.uvsNeedUpdate=!0,e}function getToGenerateRoundedCorners(e,t,n){if(void 0===n&&(n=!0),t.length>0){for(var r=new CurvePath,i=0;i<e.length-1;i++){var a=t[i]||0;if(0!==i||n){var o=!n&&e[i-1]?e[i-1].clone().sub(e[i]):e[e.length-1].clone().sub(e[0]);o.normalize();var s=!n&&e[i+1]?e[i+1].clone().sub(e[i]):e[1].clone().sub(e[0]);s.normalize(),e[i].clone().add(o.clone().multiplyScalar(a));var l=new QuadraticBezierCurve3(e[i].clone().add(o.clone().multiplyScalar(a)),e[i].clone(),e[i].clone().add(s.clone().multiplyScalar(a))),c=e[i].clone();c.add(s.clone().multiplyScalar(a));var u=e[i+1].clone();i<e.length-(n?1:2)&&u.add(s.clone().multiplyScalar(-a));var h=new LineCurve3(c,u);r.curves.push(l,h),0===i&&e.push(e[0])}else{var p=e[0].clone().sub(e[1]);p.normalize();var d=e[1].clone();d.add(p.clone().multiplyScalar(a));var f=new LineCurve3(e[0],d);r.curves.push(f)}}return r.getPoints(5)}return[]}function computeRectPoints(e,t){var n=e.clone().set(t.x,e.y,t.z),r=t.clone().set(e.x,t.y,e.z);return[e,n,t,r]}var MxThreeJSSVGData=function(){this.svg=new Group,this.aryMeterial=[]},MxThreeJSBuffer=function(){function e(){this.mapSvgUrlToData=new Map}return e.prototype.loadSVGImp=function(e,t,n){(new SVGLoader).load(e,(function(e){for(var r=[],i=e.paths,a=new Group,o=0;o<i.length;o++){var s=i[o],l=s.userData.style.fill;if(void 0!==l&&"none"!==l){for(var c=new MeshBasicMaterial({color:t||(new Color).setStyle(l),opacity:s.userData.style.fillOpacity,transparent:s.userData.style.fillOpacity<1,side:DoubleSide,depthWrite:!1,wireframe:false}),u=SVGLoader.createShapes(s),h=0;h<u.length;h++){var p=new Mesh(m=new ShapeBufferGeometry(u[h]),c);a.add(p)}r.push(c)}var d=s.userData.style.stroke;if(void 0!==d&&"none"!==d){c=new MeshBasicMaterial({color:t||(new Color).setStyle(d),opacity:s.userData.style.strokeOpacity,transparent:s.userData.style.strokeOpacity<1,side:DoubleSide,depthWrite:!1,wireframe:false}),h=0;for(var f=s.subPaths.length;h<f;h++){var m,g=s.subPaths[h];if(m=SVGLoader.pointsToStroke(g.getPoints(),s.userData.style,12,.001)){p=new Mesh(m,c);a.add(p)}}r.push(c)}}n&&n(a,r)}),void 0,(function(){n&&n(null,null)}))},e.prototype.loadSVG=function(e,t,n){var r=this,i=this.mapSvgUrlToData.get(e);i?n&&(null==i?n(null,null):n(i.svg.clone(),i.aryMeterial)):this.loadSVGImp(e,t,(function(t,i){if(t&&i){var a=new MxThreeJSSVGData;a.svg=t,a.aryMeterial=i,r.mapSvgUrlToData.set(e,a),n&&n(a.svg.clone(),a.aryMeterial)}else r.mapSvgUrlToData.set(e,null),n&&n(null,null)}))},e}();function mixin(e){var t=new MxThreeJSBuffer;e.createImage=function(e,t,n,r,i){(new TextureLoader).load(r,(function(r){var a=new PlaneGeometry(t,n),o=new MeshLambertMaterial({map:r,transparent:!0,side:DoubleSide});o.map&&(o.map.needsUpdate=!0),setGeometrPostion(a,e);var s=new Mesh(a,o);s.material.depthTest=!1,i&&i(s)}),void 0,(function(e){console.log(e),i&&i(null)}))},e.loadSVG=function(e,n,r){t.loadSVG(e,n,r)}}function floorPowerOfTwo(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))}function formatString(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++)e=e.replace("{".concat(r,"}"),t[r]);return e}var MxThreeJS=function(){function e(){}return e.prototype.createLine=function(e,t,n){var r=new Geometry,i=new LineBasicMaterial({color:n});return r.vertices.push(e,t),new Line(r,i)},e.prototype.createCircle=function(e,t,n){var r=new CircleGeometry(t,64,3,2*Math.PI),i=new LineBasicMaterial({color:n});r.vertices.shift();var a=new LineLoop(r,i);return a.position.x=e.x,a.position.y=e.y,a.position.z=e.z,a},e.prototype.createPoint=function(e,t){var n=new Geometry;return n.vertices.push(e),new Points(n,new PointsMaterial({color:t,size:3}))},e.prototype.creatTextSprite=function(e,t,n,r,i){var a,o=256,s=document.createElement("canvas"),l=s.getContext("2d"),c=formatString("normal {0}px Arial","256");if(null==l)return null;l.font=c,a=2*floorPowerOfTwo(l.measureText(e).width),s.width=a,s.height=o,l.font=c,l.textAlign="center",l.textBaseline="middle",l.fillStyle=formatString("rgba({0}, {1}, {2}, 1.0)",(i>>16&255)+"",(i>>8&255)+"",(255&i)+""),l.fillText(e,a/2,128);var u=new Texture(s);u.needsUpdate=!0;var h=new SpriteMaterial({transparent:!0,depthTest:!1,map:u});h.rotation=r;var p=new Sprite(h);return p.scale.set(a/o*n,n,1),p.position.set(t.x,t.y,t.z),p},e.prototype.createTriangle=function(e,t,n){if(void 0===n&&(n=1),e.length<3)return null;for(var r=e.length,i=new Geometry,a=0;a+2<r;a+=3){i.vertices.push(e[a]),i.vertices.push(e[a+1]),i.vertices.push(e[a+2]);var o=new Face3(a,a+1,a+2);i.faces.push(o)}return i.computeFaceNormals(),i.computeVertexNormals(),new Mesh(i,new MeshBasicMaterial({color:t,transparent:!0,depthTest:!1,side:DoubleSide,opacity:n}))},e.prototype.createLines=function(e,t){var n=new Geometry;return n.vertices=e,new Line(n,new LineBasicMaterial({color:t}))},e.prototype.createDashedLines=function(e,t,n,r){var i=new Geometry;i.vertices=e;var a=new Line(i,new LineDashedMaterial({color:t,dashSize:n,gapSize:r}));return a.computeLineDistances(),a},e.prototype.createImage=function(e,t,n,r,i){},e.prototype.loadSVG=function(e,t,n){},e}(),MxThreeJS$1=new MxThreeJS;mixin(MxThreeJS$1);var MxDbSVG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.svgPos=new Vector3,t.svgPath="",t.svgSize=new Vector2(50,50),t.svgAlignmentRatio=new Vector2(0,0),t.isSvgDirtyLocation=!1,t.isLoadFromPath=!0,t.txtPos=new Vector3,t.txt="",t.txtHeight=1,t}return __extends(t,e),t.prototype.worldDraw=function(e){if(this.calcSvgPosition(),this.txt.length>0){var t=new Vector3(this.txtPos.x,this.txtPos.y,0);e.drawText(this.txt,this.txtHeight,0,t)}var n=this.svgPos.x-this.svgSize.x*this.svgAlignmentRatio.x,r=this.svgPos.y-this.svgSize.y*this.svgAlignmentRatio.y,i=new Vector3(n,r,0),a=new Vector3(n+this.svgSize.x,r+this.svgSize.y,0);if(1==e.getType()){if(this.svg)e.drawEntity(this.svg);else if(this.svgPath.length>0&&this.isLoadFromPath){var o=this;MxThreeJS$1.loadSVG(this.svgPath,void 0,(function(e){if(e){var t=(new Box3).setFromObject(e);e.scale.x=o.svgSize.x/(t.max.x-t.min.x),e.scale.y=o.svgSize.y/(t.max.y-t.min.y),e.scale.z=e.scale.x,o.isSvgDirtyLocation=!0,e.traverse((function(e){e.material&&(e.material.transparent=!0)})),o.svg=e,o.setNeedUpdateDisplay(!0),MxFun$1.updateDisplay()}o.isLoadFromPath=!1}))}e.drawSelectLine(i.x,i.y,a.x,a.y),e.drawSelectLine(i.x,a.y,a.x,i.y)}else e.drawLine(i.x,i.y,i.x,a.y),e.drawLine(i.x,a.y,a.x,a.y),e.drawLine(a.x,a.y,a.x,i.y),e.drawLine(a.x,i.y,i.x,i.y)},t.prototype.setSvgPath=function(e){this.svgPath=e,this.svg=null,this.isLoadFromPath=!0},t.prototype.getSvgPath=function(){return this.svgPath},t.prototype.setSvgPostion=function(e){this.svgPos=e,this.isSvgDirtyLocation=!0},t.prototype.getSvgPostion=function(){return this.svgPos},t.prototype.setSvgSize=function(e){this.svgSize=e,this.isSvgDirtyLocation=!0},t.prototype.getSvgSize=function(){return this.svgSize},t.prototype.setSvgAlignmentRatio=function(e){this.svgAlignmentRatio=e,this.isSvgDirtyLocation=!0},t.prototype.getSvgAlignmentRatio=function(){return this.svgAlignmentRatio},t.prototype.setTextHeight=function(e){this.txtHeight=e},t.prototype.getTextHeight=function(){return this.txtHeight},t.prototype.setText=function(e){this.txt=e},t.prototype.getText=function(){return this.txt},t.prototype.setTextPostion=function(e){this.txtPos=e},t.prototype.getTextPostion=function(){return this.txtPos},t.prototype.getGripPoints=function(){var e=[];return e.push(this.svgPos),e},t.prototype.moveGripPointsAt=function(e,t){return 0==e&&(this.svgPos.add(t),this.txtPos.add(t)),this.isSvgDirtyLocation=!0,!0},t.prototype.calcSvgPosition=function(){this.svg&&this.isSvgDirtyLocation&&(this.isSvgDirtyLocation=!1,this.svg.position.x=this.svgPos.x-this.svgSize.x*this.svgAlignmentRatio.x,this.svg.position.y=this.svgPos.y-this.svgSize.y*this.svgAlignmentRatio.y)},t.prototype.dwgIn=function(e){return this.onDwgIn(e),e.type==MxType.MxCloneType.kClone&&e.svg&&(this.svg=e.svg.clone()),this.svgPos.copy(e.svgPos),this.svgPath=e.svgPath.substr(0),this.svgSize.copy(e.svgSize),this.svgAlignmentRatio.copy(e.svgAlignmentRatio),this.isSvgDirtyLocation=!0,this.svg||(this.isLoadFromPath=!0),this.txt=e.txt,this.txtHeight=e.txtHeight,this.txtPos.copy(e.txtPos),!0},t.prototype.dwgOut=function(e){return this.onDwgOut(e),e.type==MxType.MxCloneType.kClone&&(e.svg=this.svg),e.svgPath=this.svgPath,e.svgPos=this.svgPos,e.svgSize=this.svgSize,e.svgAlignmentRatio=this.svgAlignmentRatio,e.txt=this.txt,e.txtHeight=this.txtHeight,e.txtPos=this.txtPos,e},t.prototype.create=function(){return new t},t.prototype.transformBy=function(e){this.svgPos.applyMatrix4(e),this.txtPos.applyMatrix4(e),this.isSvgDirtyLocation=!0},t.prototype.getTypeName=function(){return"MxDbSVG"},t}(MxDbEntity),McGiWorldDrawType;!function(e){e[e.kWorldDraw=1]="kWorldDraw",e[e.kDynDragDraw=2]="kDynDragDraw",e[e.kSelectDraw=3]="kSelectDraw"}(McGiWorldDrawType||(McGiWorldDrawType={}));var McGiWorldDrawType$1=McGiWorldDrawType,MxDbAlignedDimension=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pt1=new Vector3,t.pt2=new Vector3,t}return __extends(t,e),t.prototype.getTypeName=function(){return"MxDbAlignedDimension"},t.prototype.getDirection=function(e,t,n){var r=new Vector3(e.x,e.y,0),i=new Vector3(1,0,0),a=e.angleTo(i),o=-1;(a<7*Math.PI/18||a>10*Math.PI/18)&&t.x>n.x&&(o=1);var s=new Matrix4;return s.makeRotationZ(Math.PI/2*o),r.applyMatrix4(s),r},t.prototype.worldDraw=function(e){if(e.getType()==McGiWorldDrawType$1.kWorldDraw||e.getType()==McGiWorldDrawType$1.kDynDragDraw){var t,n,r,i,a,o,s,l=this.pt1,c=this.pt2,u=new Vector3(l.x-c.x,l.y-c.y,0),h=this.getDirection(u,l,c),p=u.length(),d=new Matrix4;d.makeScale(.01,.01,.01),(y=new Vector3(h.x,h.y,0)).applyMatrix4(d);var f=new Vector3(l.x+y.x,l.y+y.y,0),m=new Vector3(c.x+y.x,c.y+y.y,0),g=16777215;o=MxThreeJS$1.createPoint(l,g),s=MxThreeJS$1.createPoint(c,g),d.identity(),d.makeScale(.2,.2,0),new Vector3(h.x,h.y,0).applyMatrix4(d),d.identity(),d.makeScale(.02,.02,0);var v=new Vector3(h.x,h.y,0);v.applyMatrix4(d),e.drawLine(f,m),t=MxThreeJS$1.createLine(new Vector3(f.x+2*v.x,f.y+2*v.y,0),new Vector3(l.x+v.x,l.y+v.y,0),g),n=MxThreeJS$1.createLine(new Vector3(m.x+2*v.x,m.y+2*v.y,0),new Vector3(c.x+v.x,c.y+v.y,0),g);var y,x=new Vector3(1,0,0),_=u.angleTo(x);(y=new Vector3(h.x,h.y,0)).normalize();var b=l.distanceTo(c);u.y<0?_=_<Math.PI/2?2*Math.PI-_:Math.PI-_:_>Math.PI/2&&(_=Math.PI+_),p=MxFun$1.worldCoordLong2Doc(p),null!=(r=MxThreeJS$1.creatTextSprite(p.toFixed(3),new Vector3(m.x+u.x/2+y.x*b/30,m.y+u.y/2+y.y*b/30,0),.07*b,_,g))&&e.drawEntity(r),d.identity(),d.makeScale(.08,.08,.08);var w=new Matrix4;w.makeRotationZ(17*Math.PI/18);var M=new Vector3(u.x,u.y,0);M.applyMatrix4(d),M.applyMatrix4(w),w.identity(),w.makeRotationZ(17*-Math.PI/18);var S=new Vector3(u.x,u.y,0);S.applyMatrix4(d),S.applyMatrix4(w);var T=new Array;T.push(new Vector3(f.x,f.y,0),new Vector3(f.x+M.x,f.y+M.y,0),new Vector3(f.x+S.x,f.y+S.y,0)),i=MxThreeJS$1.createTriangle(T,g),w.identity(),w.makeRotationZ(Math.PI/18),(M=new Vector3(u.x,u.y,0)).applyMatrix4(d),M.applyMatrix4(w),w.identity(),w.makeRotationZ(-Math.PI/18),(S=new Vector3(u.x,u.y,0)).applyMatrix4(d),S.applyMatrix4(w);var E=new Array;E.push(new Vector3(m.x,m.y,0),new Vector3(m.x+M.x,m.y+M.y,0),new Vector3(m.x+S.x,m.y+S.y,0)),a=MxThreeJS$1.createTriangle(E,g),e.drawEntity(t),e.drawEntity(n),i&&e.drawEntity(i),a&&e.drawEntity(a),e.drawEntity(o),e.drawEntity(s)}else e.drawLine(this.pt1,this.pt2)},t.prototype.setPoint1=function(e){this.pt1=e},t.prototype.setPoint2=function(e){this.pt2=e},t.prototype.getGripPoints=function(){var e=[];return e.push(this.pt1),e.push(this.pt2),e},t.prototype.moveGripPointsAt=function(e,t){return 0==e?this.pt1.add(t):(e=1)&&this.pt2.add(t),!0},t.prototype.dwgIn=function(e){return this.onDwgIn(e),this.pt1.copy(e.pt1),this.pt2.copy(e.pt2),!0},t.prototype.dwgOut=function(e){return this.onDwgOut(e),e.pt1=this.pt1,e.pt2=this.pt2,e},t.prototype.create=function(){return new t},t}(MxDbEntity),MxDbLine=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pt1=new Vector3,t.pt2=new Vector3,t}return __extends(t,e),t.prototype.getTypeName=function(){return"MxDbLine"},t.prototype.worldDraw=function(e){e.drawLine(this.pt1,this.pt2)},t.prototype.setPoint1=function(e){this.pt1=e},t.prototype.getPoint1=function(){return this.pt1},t.prototype.setPoint2=function(e){this.pt2=e},t.prototype.getPoint2=function(){return this.pt2},t.prototype.getGripPoints=function(){var e=[];e.push(this.pt1),e.push(this.pt2);var t=new Vector3(this.pt1.x+.5*(this.pt2.x-this.pt1.x),this.pt1.y+.5*(this.pt2.y-this.pt1.y),0);return e.push(t),e},t.prototype.moveGripPointsAt=function(e,t){return 0==e?this.pt1.add(t):1==e?this.pt2.add(t):2==e&&(this.pt1.add(t),this.pt2.add(t)),!0},t.prototype.dwgIn=function(e){return this.onDwgIn(e),this.pt1.copy(e.pt1),this.pt2.copy(e.pt2),!0},t.prototype.dwgOut=function(e){return this.onDwgOut(e),e.pt1=this.pt1,e.pt2=this.pt2,e},t.prototype.create=function(){return new t},t}(MxDbEntity);function rxInitMxEntity(){(new MxDbImage).rxInit(),(new MxDbSVG).rxInit(),(new MxDbAlignedDimension).rxInit(),(new MxDbLine).rxInit()}function loadCoreCode(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){return[2,new Promise((function(t,n){return __awaiter(e,void 0,void 0,(function(){var e,r,i;return __generator(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),store.state.MxFun?(console.error("内部已调用loadCoreCode, 无需重复调用!"),[2,n({code:"error",msg:"内部已调用loadCoreCode, 无需重复调用"})]):(e=window,r=window,[4,dynamicImport("jquery")]);case 1:return e.$=r.jQuery=a.sent(),window.MxDocumentReady=void 0,window.MxUiMain=function(e){var t=e("./MxFun").MxFun;store.commit("setMxFun",t),store.events.emit("MxUiMain",e),window.MxUiMain=void 0},window.MxMain=function(e){return store.events.emit("MxMain",e),window.MxMain=void 0,rxInitMxEntity(),t(),0},mxcadassemblyinit().then((function(e){store.commit("setMxassembly",e)})),mxfun(),[3,3];case 2:return i=a.sent(),n({code:"error",msg:i}),[3,3];case 3:return[2]}}))}))}))]}))}))}var store$1={},_MrxDbgUiPrPoint;objectMethodProxy(store$1,store,"state"),objectMethodProxy(store$1,store,"events");var MrxDbgUiPrPoint=function(){function e(){_MrxDbgUiPrPoint=new(store.state.MxFun.getMxJigCmdManager().getMrxDbgUiPrPointClass())}return e.prototype.keyWords=function(){return _MrxDbgUiPrPoint.keyWords()},e.prototype.setKeyWords=function(e){return _MrxDbgUiPrPoint.setKeyWords(e)},e.prototype.message=function(){return _MrxDbgUiPrPoint.message()},e.prototype.setMessage=function(e){return _MrxDbgUiPrPoint.setMessage(e)},e.prototype.keyWordPicked=function(){return _MrxDbgUiPrPoint.keyWordPicked()},e.prototype.isKeyWordPicked=function(e){return _MrxDbgUiPrPoint.isKeyWordPicked(e)},e.prototype.setUserDraw=function(e){return _MrxDbgUiPrPoint.setUserDraw(e._get?e._get():e)},e.prototype.value=function(){return _MrxDbgUiPrPoint.value()},e.prototype.valueDocCoord=function(){return _MrxDbgUiPrPoint.valueDocCoord()},e.prototype.basePt=function(){return _MrxDbgUiPrPoint.basePt()},e.prototype.setBasePt=function(e){return _MrxDbgUiPrPoint.setBasePt(e)},e.prototype.setUseBasePt=function(e){return _MrxDbgUiPrPoint.setUseBasePt(e)},e.prototype.go=function(e){return _MrxDbgUiPrPoint.go(e)},e.prototype.goWhile=function(e,t){return _MrxDbgUiPrPoint.goWhile(e,t)},e.prototype.drawReserve=function(e){return _MrxDbgUiPrPoint.drawReserve(e)},e}(),McEdGetPointWorldDrawObject=function(){function e(){var e=this;this._McEdGetPointWorldDraw=new(store.state.MxFun.getMxJigCmdManager().McEdGetPointWorldDrawObjectClass()),this._get=function(){return e._McEdGetPointWorldDraw}}return e.prototype.drawCircle=function(e,t){return this._McEdGetPointWorldDraw.drawCircle(e,t)},e.prototype.drawLine=function(e,t){return this._McEdGetPointWorldDraw.drawLine(e,t)},e.prototype.drawEntity=function(e){return this._McEdGetPointWorldDraw.drawEntity(e)},e.prototype.drawText=function(e,t,n,r){return this._McEdGetPointWorldDraw.drawText(e,t,n,r)},e.prototype.setDraw=function(e){return this._McEdGetPointWorldDraw.setDraw(e)},e.prototype.setColor=function(e){return this._McEdGetPointWorldDraw.setColor(e)},e.prototype.getColor=function(){return this._McEdGetPointWorldDraw.getColor()},e.prototype.drawCustomEntity=function(e){return this._McEdGetPointWorldDraw.drawCustomEntity(e)},e}(),MrxDbgUiPrBaseReturn;!function(e){e[e.kCancel=-2]="kCancel",e[e.kNone=-1]="kNone",e[e.kOk=0]="kOk",e[e.kKeyWord=1]="kKeyWord"}(MrxDbgUiPrBaseReturn||(MrxDbgUiPrBaseReturn={}));var MrxDbgUiPrBaseReturn$1=MrxDbgUiPrBaseReturn,MxDbRect=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pt1=new Vector3,t.pt2=new Vector3,t.width=0,t.height=0,t.cornerRadius=[],t.transparent=!0,t.opacity=1,t.visible=!0,t}return __extends(t,e),t.prototype.worldDraw=function(e){var t,n,r=this,i=computeRectPoints(this.pt1,this.pt2);this.cornerRadius.length<=0&&this.radius&&(this.cornerRadius=[MxFun$1.screenCoordLong2Doc(this.radius),MxFun$1.screenCoordLong2Doc(this.radius),MxFun$1.screenCoordLong2Doc(this.radius),MxFun$1.screenCoordLong2Doc(this.radius)]),this.cornerRadius.length>0&&(i=getToGenerateRoundedCorners(i,this.cornerRadius));var a=new Object3D,o={transparent:this.transparent,opacity:this.opacity,visible:this.visible};if(this.fillColor||this.fillImageSrc){i=i.map((function(e){return new Vector2(e.x,e.y)})),(t=new ShapeGeometry(new Shape(i))).computeBoundingBox();var s=new Vector3;if(t.boundingBox.getSize(s),this.width=MxFun$1.docCoord2Screen(s.x).x,this.height=MxFun$1.docCoord2Screen(s.y).x,this.fillImageSrc){var l=this.fillImageSrc;return void MxFun$1.loadImageMaterial(l,(function(s){if(s){n=s,t=repairGeometryFaceVertexUvs(t=new ShapeGeometry(new Shape(i)));var l=s.map;if(r.fillImageParam&&(r.fillImageParam.center&&(l.center=r.fillImageParam.center),r.fillImageParam.offset&&(l.offset=r.fillImageParam.offset),r.fillImageParam.repeat&&(l.repeat=r.fillImageParam.repeat),r.fillImageParam.rotation&&(l.rotation=r.fillImageParam.rotation)),r.filter){var c=r.filter._getFilterShaderData(l);n=new ShaderMaterial(__assign(__assign({},c),o))}n.depthTest=!1,n.transparent=r.transparent,n.opacity=r.opacity,n.visible=r.visible,a=new Mesh(t,n),e.drawEntity(a)}}))}n=new MeshBasicMaterial(__assign({color:this.filter?this.filter._getFilterColor(this.fillColor,this.opacity):new Color(this.fillColor)},o)),a=new Mesh(t,n)}else t=(new BufferGeometry).setFromPoints(i),n=new LineBasicMaterial(__assign({color:this.getColor()},o)),a=new LineLoop(t,n);e.drawEntity(a)},t.prototype.getGripPoints=function(){var e=[];e.push(this.pt1);var t=new Line3(this.pt1,this.pt2),n=new Vector3;return t.getCenter(n),e.push(n),e.push(this.pt2),e},t.prototype.moveGripPointsAt=function(e,t){return 0==e?this.pt1.add(t):1==e?(this.pt1.add(t),this.pt2.add(t)):2==e&&this.pt2.add(t),!0},t.prototype.dwgIn=function(e){return this.onDwgIn(e),this.pt1.copy(e.pt1),this.pt2.copy(e.pt2),this.cornerRadius=e.cornerRadius,this.radius=e.radius,this.filter=e.filter,!0},t.prototype.dwgOut=function(e){return this.onDwgOut(e),e.pt1=this.pt1,e.pt2=this.pt2,e.cornerRadius=this.cornerRadius,e.radius=this.radius,e.filter=this.filter,e},t.prototype.create=function(){return new t},t.prototype.transformBy=function(e){this.pt1.applyMatrix4(e),this.pt2.applyMatrix4(e)},t.prototype.getTypeName=function(){return"MxRectEntity"},t}(MxDbEntity),MxFilters=function(){function e(){this.uniformObj={},this.filtersStr="",this.filtersTypes="",this.VSHADER_SOURCE="\n varying vec2 v_Uv; \n void main () {\n v_Uv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n }\n ",this.FSHADER_SOURCE="\n varying vec2 v_Uv;\n uniform sampler2D e_Texture;\n uniform mat4 colorMatrix;\n ".concat(this.filtersStr,"\n void main () {\n vec4 color = texture2D( e_Texture, v_Uv );\n color = color * colorMatrix;\n ").concat(this.filtersTypes,"\n gl_FragColor = color;\n }"),this._matrix=new Matrix4}return e.prototype.channel=function(e){var t=e.r,n=void 0===t?1:t,r=e.g,i=void 0===r?1:r,a=e.b,o=void 0===a?1:a;return this._matrix=(new Matrix4).set(n,0,0,0,0,i,0,0,0,0,o,0,0,0,0,1).multiply(this._matrix),this},e.prototype.brightness=function(e){return this._matrix=(new Matrix4).set(e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1).multiply(this._matrix),this},e.prototype.saturate=function(e){var t=.2126*(1-e),n=.7152*(1-e),r=.0722*(1-e);return this._matrix=(new Matrix4).set(t+e,n,r,0,t,n+e,r,0,t,n,r+e,0,0,0,0,1).multiply(this._matrix),this},e.prototype.contrast=function(e){var t=.5*(1-e);return this._matrix=(new Matrix4).set(e,0,0,0,0,e,0,0,0,0,e,0,t,t,t,1).multiply(this._matrix),this},e.prototype.opacity=function(e){return this._matrix=(new Matrix4).set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,e).multiply(this._matrix),this},e.prototype.invert=function(e){var t=1-2*e;return this._matrix=(new Matrix4).set(t,0,0,0,0,t,0,0,0,0,t,0,e,e,e,1).multiply(this._matrix),this},e.prototype.grayscale=function(e){void 0===e&&(e=1);var t=.2126*e,n=.7152*e,r=.0722*e;return this._matrix=(new Matrix4).set(t+1-e,n,r,0,t,n+1-e,r,0,t,n,r+1-e,0,0,0,0,1).multiply(this._matrix),this},e.prototype.sepia=function(e){return void 0===e&&(e=1),this._matrix=(new Matrix4).set(1-.607*e,.769*e,.189*e,0,.349*e,1-.314*e,.168*e,0,.272*e,.534*e,1-.869*e,0,0,0,0,1).multiply(this._matrix),this},e.prototype.hueRotate=function(e){var t=e/180*Math.PI,n=Math.cos(t),r=Math.sin(t),i=.2126,a=.7152,o=.0722;return this._matrix=(new Matrix4).set(i+.7874*n+r*-i,a+n*-a+r*-a,o+n*-o+.9278*r,0,i+n*-i+.143*r,a+n*(1-a)+.14*r,o+n*-o+-.283*r,0,i+n*-i+-.7874*r,a+n*-a+r*a,o+.9278*n+r*o,0,0,0,0,1).multiply(this._matrix),this},e.prototype.convolution=function(e,t,n){return void 0===t&&(t=1/9),void 0===n&&(n=521),this.uniformObj=__assign(__assign({},this.uniformObj),{cKernel:{value:e.toArray()},stStep:{value:t},scaleFactor:{value:n}}),this.filtersTypes.indexOf("convolutionTextureColor")<0&&(this.filtersStr+="\n uniform float cKernel[9];\n uniform float stStep;\n uniform float scaleFactor;\n vec4 convolutionTextureColor(vec4 color) {\n vec2 offsets[9];\n offsets[0] = vec2(-1.0,-1.0);\n offsets[1] = vec2(0.0,-1.0);\n offsets[2] = vec2(1.0,-1.0);\n offsets[3] = vec2(-1.0,0.0);\n offsets[4] = vec2(0.0,0.0);\n offsets[5] = vec2(1.0,0.0);\n offsets[6] = vec2(-1.0,1.0);\n offsets[7] = vec2(0.0,1.0);\n offsets[8] = vec2(1.0,1.0);\n \n vec4 sum = color;\n for(int i = 0; i < 9; i++) {\n sum = sum + cKernel[i] * scaleFactor * texture2D(e_Texture, v_Uv + offsets[i] / stStep);\n };\n return sum;\n }",this.filtersTypes+="color = convolutionTextureColor(color);\n"),this},e.prototype.reset=function(){return this.uniformObj={},this.filtersStr="",this.filtersTypes="",this._matrix=new Matrix4,this},e.prototype._getFilterShaderData=function(e){return{uniforms:__assign({e_Texture:{value:e},colorMatrix:{value:this._matrix}},this.uniformObj),vertexShader:this.VSHADER_SOURCE,fragmentShader:this.FSHADER_SOURCE}},e.prototype._getFilterColor=function(e,t){void 0===e&&(e="#000000"),void 0===t&&(t=1);var n=(e=new Color(e)).r,r=e.g,i=e.b,a=this._matrix.toArray(),o=(a[12],a[13],a[14],a[15],a[0]*n+a[1]*n+a[2]*n+a[3]*t),s=a[4]*r+a[5]*r+a[6]*r+a[7]*t,l=a[8]*i+a[9]*i+a[10]*i+a[11]*t;return e.setRGB(o,s,l),e},e}(),Mxassembly=function(){function e(){}return e.prototype.NewMcGeVector3d=function(){return new store.state.Mxassembly.McGeVector3d},e}(),Mxassembly$1=new Mxassembly,mxdraw={MxFun:MxFun$1,Mxassembly:Mxassembly$1,MxThreeJS:MxThreeJS$1,McEdGetPointWorldDrawObject:McEdGetPointWorldDrawObject,MrxDbgUiPrPoint:MrxDbgUiPrPoint,MxDbEntity:MxDbEntity,MxFilters:MxFilters,MxDbImage:MxDbImage,MxDbLine:MxDbLine,MxDbSVG:MxDbSVG,MxDbRect:MxDbRect,MxDbAlignedDimension:MxDbAlignedDimension,useCanvasResizeListener:useCanvasResizeListener,loadCoreCode:loadCoreCode,store:store$1,MrxDbgUiPrBaseReturn:MrxDbgUiPrBaseReturn$1,McGiWorldDrawType:McGiWorldDrawType$1},elementResizeEventPolyfill_umd_min=createCommonjsModule((function(e,t){"undefined"!=typeof self&&self,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fae3")}({"6dd8":function(e,t,n){(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},o=2;function s(e,t){var n=!1,r=!1,i=0;function s(){n&&(n=!1,e()),r&&c()}function l(){a(s)}function c(){var e=Date.now();if(n){if(e-i<o)return;r=!0}else n=!0,r=!1,setTimeout(l,t);i=e}return c}var l=20,c=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,h=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),l)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=c.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),p=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},f=S(0,0,0,0);function m(e){return parseFloat(e)||0}function g(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+m(e["border-"+n+"-width"])}),0)}function v(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],a=e["padding-"+i];t[i]=m(a)}return t}function y(e){var t=e.getBBox();return S(0,0,t.width,t.height)}function x(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=d(e).getComputedStyle(e),i=v(r),a=i.left+i.right,o=i.top+i.bottom,s=m(r.width),l=m(r.height);if("border-box"===r.boxSizing&&(Math.round(s+a)!==t&&(s-=g(r,"left","right")+a),Math.round(l+o)!==n&&(l-=g(r,"top","bottom")+o)),!b(e)){var c=Math.round(s+a)-t,u=Math.round(l+o)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return S(i.left,i.top,s,l)}var _="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function b(e){return e===d(e).document.documentElement}function w(e){return r?_(e)?y(e):x(e):f}function M(e){var t=e.x,n=e.y,r=e.width,i=e.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(a.prototype);return p(o,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),o}function S(e,t,n,r){return{x:e,y:t,width:n,height:r}}var T=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=w(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),E=function(){function e(e,t){var n=M(t);p(this,{target:e,contentRect:n})}return e}(),C=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new T(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new E(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),A="undefined"!=typeof WeakMap?new WeakMap:new n,L=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=h.getInstance(),r=new C(t,n,this);A.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){L.prototype[e]=function(){var t;return(t=A.get(this))[e].apply(t,arguments)}}));var D=void 0!==i.ResizeObserver?i.ResizeObserver:L;t.a=D}).call(this,n("c8ba"))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},f6fd:function(e,t){!function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})}(document)},fae3:function(e,t,n){var r;n.r(t),n.d(t,"EventListenerWrapper",(function(){return s})),"undefined"!=typeof window&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));var i=n("6dd8");const a=EventTarget.prototype.addEventListener,o=function(e){const t=document.createEvent("HTMLEvents");return t.initEvent(e),t},s=function(e){"resize"===e&&c(this),a.apply(this,arguments)};function l(e){const t=l.observer=l.observer||new i.a(e);return t.initialized=!0,t}function c(e){const t=l((e=>{if(t.initialized)t.initialized=!1;else for(let t of e){const e=o("resize");t.target.dispatchEvent(e),t&&t.target&&"function"==typeof t.target.onresize&&t.target.onresize(e)}}));t.observe(e)}HTMLElement.prototype.addEventListener=s,Reflect.defineProperty(HTMLElement.prototype,"onresize",{set(e){this._onresize=e,"function"==typeof e&&c(this)},get(){return this._onresize||null}})}})})),elementResizeEventPolyfill_umd_min$1=unwrapExports(elementResizeEventPolyfill_umd_min),elementResizeEventPolyfill_umd_min$2=Object.freeze({default:elementResizeEventPolyfill_umd_min$1,__moduleExports:elementResizeEventPolyfill_umd_min}),jquery=createCommonjsModule((function(e){
20
20
  /*!
21
21
  * jQuery JavaScript Library v3.6.0
22
22
  * https://jquery.com/
@@ -41,5 +41,5 @@ Object.assign(PropertyBinding.prototype,{_getValue_unbound:PropertyBinding.proto
41
41
  *
42
42
  * Date: 2021-02-16
43
43
  */
44
- function(e){var t,n,r,i,a,o,s,l,c,u,h,p,d,f,m,g,v,y,x,_="sizzle"+1*new Date,b=e.document,w=0,M=0,S=le(),T=le(),E=le(),C=le(),A=function(e,t){return e===t&&(h=!0),0},L={}.hasOwnProperty,D=[],P=D.pop,O=D.push,R=D.push,I=D.slice,B=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",k="[\\x20\\t\\r\\n\\f]",F="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",G="\\[[\\x20\\t\\r\\n\\f]*("+F+")(?:"+k+"*([*^$|!~]?=)"+k+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+k+"*\\]",V=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+G+")*)|.*)\\)|)",z=new RegExp(k+"+","g"),U=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),j=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),H=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),W=new RegExp(k+"|>"),q=new RegExp(V),J=new RegExp("^"+F+"$"),X={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+G),PSEUDO:new RegExp("^"+V),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},$=/HTML$/i,Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=function(){p()},oe=_e((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{R.apply(D=I.call(b.childNodes),b.childNodes),D[b.childNodes.length].nodeType}catch(e){R={apply:D.length?function(e,t){O.apply(e,I.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var a,s,c,u,h,f,v,y=t&&t.ownerDocument,b=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==b&&9!==b&&11!==b)return r;if(!i&&(p(t),t=t||d,m)){if(11!==b&&(h=Q.exec(e)))if(a=h[1]){if(9===b){if(!(c=t.getElementById(a)))return r;if(c.id===a)return r.push(c),r}else if(y&&(c=y.getElementById(a))&&x(t,c)&&c.id===a)return r.push(c),r}else{if(h[2])return R.apply(r,t.getElementsByTagName(e)),r;if((a=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return R.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&!C[e+" "]&&(!g||!g.test(e))&&(1!==b||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===b&&(W.test(e)||H.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,ie):t.setAttribute("id",u=_)),s=(f=o(e)).length;s--;)f[s]=(u?"#"+u:":scope")+" "+xe(f[s]);v=f.join(",")}try{return R.apply(r,y.querySelectorAll(v)),r}catch(t){C(e,!0)}finally{u===_&&t.removeAttribute("id")}}}return l(e.replace(U,"$1"),t,r,i)}function le(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ce(e){return e[_]=!0,e}function ue(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function he(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ce((function(t){return t=+t,ce((function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},a=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!$.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,i,o=e?e.ownerDocument||e:b;return o!=d&&9===o.nodeType&&o.documentElement?(f=(d=o).documentElement,m=!a(d),b!=d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ae,!1):i.attachEvent&&i.attachEvent("onunload",ae)),n.scope=ue((function(e){return f.appendChild(e).appendChild(d.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=K.test(d.getElementsByClassName),n.getById=ue((function(e){return f.appendChild(e).id=_,!d.getElementsByName||!d.getElementsByName(_).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,i,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(i=t.getElementsByName(e),r=0;a=i[r++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[i++];)1===n.nodeType&&r.push(n);return r}return a},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=K.test(d.querySelectorAll))&&(ue((function(e){var t;f.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+N+")"),e.querySelectorAll("[id~="+_+"-]").length||g.push("~="),(t=d.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=K.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",V)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=K.test(f.compareDocumentPosition),x=t||K.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return h=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==d||e.ownerDocument==b&&x(b,e)?-1:t==d||t.ownerDocument==b&&x(b,t)?1:u?B(u,e)-B(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return h=!0,0;var n,r=0,i=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!i||!a)return e==d?-1:t==d?1:i?-1:a?1:u?B(u,e)-B(u,t):0;if(i===a)return pe(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[r]===s[r];)r++;return r?pe(o[r],s[r]):o[r]==b?-1:s[r]==b?1:0},d):d},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(p(e),n.matchesSelector&&m&&!C[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){C(t,!0)}return se(t,d,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=d&&p(e),x(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=d&&p(e);var i=r.attrHandle[t.toLowerCase()],a=i&&L.call(r.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==a?a:n.attributes||!m?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,a=0;if(h=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(A),h){for(;t=e[a++];)t===e[a]&&(i=r.push(a));for(;i--;)e.splice(r[i],1)}return u=null,e},i=se.getText=function(e){var t,n="",r=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},r=se.selectors={cacheLength:50,createPseudo:ce,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+k+"|$)"))&&S(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(z," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,h,p,d,f,m=a!==o?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,x=!1;if(g){if(a){for(;m;){for(p=t;p=p[m];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[o?g.firstChild:g.lastChild],o&&y){for(x=(d=(c=(u=(h=(p=g)[_]||(p[_]={}))[p.uniqueID]||(h[p.uniqueID]={}))[e]||[])[0]===w&&c[1])&&c[2],p=d&&g.childNodes[d];p=++d&&p&&p[m]||(x=d=0)||f.pop();)if(1===p.nodeType&&++x&&p===t){u[e]=[w,d,x];break}}else if(y&&(x=d=(c=(u=(h=(p=t)[_]||(p[_]={}))[p.uniqueID]||(h[p.uniqueID]={}))[e]||[])[0]===w&&c[1]),!1===x)for(;(p=++d&&p&&p[m]||(x=d=0)||f.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++x||(y&&((u=(h=p[_]||(p[_]={}))[p.uniqueID]||(h[p.uniqueID]={}))[e]=[w,x]),p!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[_]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var r,a=i(e,t),o=a.length;o--;)e[r=B(e,a[o])]=!(n[r]=a[o])})):function(e){return i(e,0,n)}):i}},pseudos:{not:ce((function(e){var t=[],n=[],r=s(e.replace(U,"$1"));return r[_]?ce((function(e,t,n,i){for(var a,o=r(e,null,i,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))})):function(e,i,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return se(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:ce((function(e){return J.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return Y.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ge((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ge((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ge((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function ye(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function _e(e,t,n){var r=t.dir,i=t.next,a=i||r,o=n&&"parentNode"===a,s=M++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i);return!1}:function(t,n,l){var c,u,h,p=[w,s];if(l){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(u=(h=t[_]||(t[_]={}))[t.uniqueID]||(h[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[a])&&c[0]===w&&c[1]===s)return p[2]=c[2];if(u[a]=p,p[2]=e(t,n,l))return!0}return!1}}function be(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function we(e,t,n,r,i){for(var a,o=[],s=0,l=e.length,c=null!=t;s<l;s++)(a=e[s])&&(n&&!n(a,r,i)||(o.push(a),c&&t.push(s)));return o}function Me(e,t,n,r,i,a){return r&&!r[_]&&(r=Me(r)),i&&!i[_]&&(i=Me(i,a)),ce((function(a,o,s,l){var c,u,h,p=[],d=[],f=o.length,m=a||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!a&&t?m:we(m,p,e,s,l),v=n?i||(a?e:f||r)?[]:o:g;if(n&&n(g,v,s,l),r)for(c=we(v,d),r(c,[],s,l),u=c.length;u--;)(h=c[u])&&(v[d[u]]=!(g[d[u]]=h));if(a){if(i||e){if(i){for(c=[],u=v.length;u--;)(h=v[u])&&c.push(g[u]=h);i(null,v=[],c,l)}for(u=v.length;u--;)(h=v[u])&&(c=i?B(a,h):p[u])>-1&&(a[c]=!(o[c]=h))}}else v=we(v===o?v.splice(f,v.length):v),i?i(null,o,v,l):R.apply(o,v)}))}function Se(e){for(var t,n,i,a=e.length,o=r.relative[e[0].type],s=o||r.relative[" "],l=o?1:0,u=_e((function(e){return e===t}),s,!0),h=_e((function(e){return B(t,e)>-1}),s,!0),p=[function(e,n,r){var i=!o&&(r||n!==c)||((t=n).nodeType?u(e,n,r):h(e,n,r));return t=null,i}];l<a;l++)if(n=r.relative[e[l].type])p=[_e(be(p),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[_]){for(i=++l;i<a&&!r.relative[e[i].type];i++);return Me(l>1&&be(p),l>1&&xe(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(U,"$1"),n,l<i&&Se(e.slice(l,i)),i<a&&Se(e=e.slice(i)),i<a&&xe(e))}p.push(n)}return be(p)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,o=se.tokenize=function(e,t){var n,i,a,o,s,l,c,u=T[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=r.preFilter;s;){for(o in n&&!(i=j.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(a=[])),n=!1,(i=H.exec(s))&&(n=i.shift(),a.push({value:n,type:i[0].replace(U," ")}),s=s.slice(n.length)),r.filter)!(i=X[o].exec(s))||c[o]&&!(i=c[o](i))||(n=i.shift(),a.push({value:n,type:o,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):T(e,l).slice(0)},s=se.compile=function(e,t){var n,i=[],a=[],s=E[e+" "];if(!s){for(t||(t=o(e)),n=t.length;n--;)(s=Se(t[n]))[_]?i.push(s):a.push(s);s=E(e,function(e,t){var n=t.length>0,i=e.length>0,a=function(a,o,s,l,u){var h,f,g,v=0,y="0",x=a&&[],_=[],b=c,M=a||i&&r.find.TAG("*",u),S=w+=null==b?1:Math.random()||.1,T=M.length;for(u&&(c=o==d||o||u);y!==T&&null!=(h=M[y]);y++){if(i&&h){for(f=0,o||h.ownerDocument==d||(p(h),s=!m);g=e[f++];)if(g(h,o||d,s)){l.push(h);break}u&&(w=S)}n&&((h=!g&&h)&&v--,a&&x.push(h))}if(v+=y,n&&y!==v){for(f=0;g=t[f++];)g(x,_,o,s);if(a){if(v>0)for(;y--;)x[y]||_[y]||(_[y]=P.call(l));_=we(_)}R.apply(l,_),u&&!a&&_.length>0&&v+t.length>1&&se.uniqueSort(l)}return u&&(w=S,c=b),x};return n?ce(a):a}(a,i)),s.selector=e}return s},l=se.select=function(e,t,n,i){var a,l,c,u,h,p="function"==typeof e&&e,d=!i&&o(e=p.selector||e);if(n=n||[],1===d.length){if((l=d[0]=d[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(a=X.needsContext.test(e)?0:l.length;a--&&(c=l[a],!r.relative[u=c.type]);)if((h=r.find[u])&&(i=h(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(a,1),!(e=i.length&&xe(l)))return R.apply(n,i),n;break}}return(p||s(e,d))(i,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=_.split("").sort(A).join("")===_,n.detectDuplicates=!!h,p(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||he("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||he("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||he(N,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(e);b.find=M,b.expr=M.selectors,b.expr[":"]=b.expr.pseudos,b.uniqueSort=b.unique=M.uniqueSort,b.text=M.getText,b.isXMLDoc=M.isXML,b.contains=M.contains,b.escapeSelector=M.escape;var S=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&b(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},E=b.expr.match.needsContext;function C(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(e,t,n){return f(t)?b.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?b.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?b.grep(e,(function(e){return s.call(t,e)>-1!==n})):b.filter(t,e,n)}b.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?b.find.matchesSelector(r,e)?[r]:[]:b.find.matches(e,b.grep(t,(function(e){return 1===e.nodeType})))},b.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(b(e).filter((function(){for(t=0;t<r;t++)if(b.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)b.find(e,i[t],n);return r>1?b.uniqueSort(n):n},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"==typeof e&&E.test(e)?b(e):e||[],!1).length}});var D,P=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(b.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:P.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof b?t[0]:t,b.merge(this,b.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),A.test(r[1])&&b.isPlainObject(t))for(r in t)f(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=g.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):f(e)?void 0!==n.ready?n.ready(e):e(b):b.makeArray(e,this)}).prototype=b.fn,D=b(g);var O=/^(?:parents|prev(?:Until|All))/,R={children:!0,contents:!0,next:!0,prev:!0};function I(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}b.fn.extend({has:function(e){var t=b(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(b.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,a=[],o="string"!=typeof e&&b(e);if(!E.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&b.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?b.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?s.call(b(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(b.uniqueSort(b.merge(this.get(),b(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return S(e,"parentNode")},parentsUntil:function(e,t,n){return S(e,"parentNode",n)},next:function(e){return I(e,"nextSibling")},prev:function(e){return I(e,"previousSibling")},nextAll:function(e){return S(e,"nextSibling")},prevAll:function(e){return S(e,"previousSibling")},nextUntil:function(e,t,n){return S(e,"nextSibling",n)},prevUntil:function(e,t,n){return S(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(C(e,"template")&&(e=e.content||e),b.merge([],e.childNodes))}},(function(e,t){b.fn[e]=function(n,r){var i=b.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=b.filter(r,i)),this.length>1&&(R[e]||b.uniqueSort(i),O.test(e)&&i.reverse()),this.pushStack(i)}}));var B=/[^\x20\t\r\n\f]+/g;function N(e){return e}function k(e){throw e}function F(e,t,n,r){var i;try{e&&f(i=e.promise)?i.call(e).done(t).fail(n):e&&f(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}b.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return b.each(e.match(B)||[],(function(e,n){t[n]=!0})),t}(e):b.extend({},e);var t,n,r,i,a=[],o=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s<a.length;)!1===a[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:"")},c={add:function(){return a&&(n&&!t&&(s=a.length-1,o.push(n)),function t(n){b.each(n,(function(n,r){f(r)?e.unique&&c.has(r)||a.push(r):r&&r.length&&"string"!==x(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return b.each(arguments,(function(e,t){for(var n;(n=b.inArray(t,a,n))>-1;)a.splice(n,1),n<=s&&s--})),this},has:function(e){return e?b.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=o=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=o=[],n||t||(a=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},b.extend({Deferred:function(t){var n=[["notify","progress",b.Callbacks("memory"),b.Callbacks("memory"),2],["resolve","done",b.Callbacks("once memory"),b.Callbacks("once memory"),0,"resolved"],["reject","fail",b.Callbacks("once memory"),b.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return b.Deferred((function(t){b.each(n,(function(n,r){var i=f(e[r[4]])&&e[r[4]];a[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&f(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(t,r,i){var a=0;function o(t,n,r,i){return function(){var s=this,l=arguments,c=function(){var e,c;if(!(t<a)){if((e=r.apply(s,l))===n.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,f(c)?i?c.call(e,o(a,n,N,i),o(a,n,k,i)):(a++,c.call(e,o(a,n,N,i),o(a,n,k,i),o(a,n,N,n.notifyWith))):(r!==N&&(s=void 0,l=[e]),(i||n.resolveWith)(s,l))}},u=i?c:function(){try{c()}catch(e){b.Deferred.exceptionHook&&b.Deferred.exceptionHook(e,u.stackTrace),t+1>=a&&(r!==k&&(s=void 0,l=[e]),n.rejectWith(s,l))}};t?u():(b.Deferred.getStackHook&&(u.stackTrace=b.Deferred.getStackHook()),e.setTimeout(u))}}return b.Deferred((function(e){n[0][3].add(o(0,e,f(i)?i:N,e.notifyWith)),n[1][3].add(o(0,e,f(t)?t:N)),n[2][3].add(o(0,e,f(r)?r:k))})).promise()},promise:function(e){return null!=e?b.extend(e,i):i}},a={};return b.each(n,(function(e,t){var o=t[2],s=t[5];i[t[1]]=o.add,s&&o.add((function(){r=s}),n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),o.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=o.fireWith})),i.promise(a),t&&t.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),a=i.call(arguments),o=b.Deferred(),s=function(e){return function(n){r[e]=this,a[e]=arguments.length>1?i.call(arguments):n,--t||o.resolveWith(r,a)}};if(t<=1&&(F(e,o.done(s(n)).resolve,o.reject,!t),"pending"===o.state()||f(a[n]&&a[n].then)))return o.then();for(;n--;)F(a[n],s(n),o.reject);return o.promise()}});var G=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;b.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&G.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},b.readyException=function(t){e.setTimeout((function(){throw t}))};var V=b.Deferred();function z(){g.removeEventListener("DOMContentLoaded",z),e.removeEventListener("load",z),b.ready()}b.fn.ready=function(e){return V.then(e).catch((function(e){b.readyException(e)})),this},b.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--b.readyWait:b.isReady)||(b.isReady=!0,!0!==e&&--b.readyWait>0||V.resolveWith(g,[b]))}}),b.ready.then=V.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?e.setTimeout(b.ready):(g.addEventListener("DOMContentLoaded",z),e.addEventListener("load",z));var U=function(e,t,n,r,i,a,o){var s=0,l=e.length,c=null==n;if("object"===x(n))for(s in i=!0,n)U(e,t,s,n[s],!0,a,o);else if(void 0!==r&&(i=!0,f(r)||(o=!0),c&&(o?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(b(e),n)})),t))for(;s<l;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return i?e:c?t.call(e):l?t(e[0],n):a},j=/^-ms-/,H=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function q(e){return e.replace(j,"ms-").replace(H,W)}var J=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function X(){this.expando=b.expando+X.uid++}X.uid=1,X.prototype={cache:function(e){var t=e[this.expando];return t||(t={},J(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[q(t)]=n;else for(r in t)i[q(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][q(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(q):(t=q(t))in r?[t]:t.match(B)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||b.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!b.isEmptyObject(t)}};var $=new X,Y=new X,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Q(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Z.test(e)?JSON.parse(e):e)}(n)}catch(e){}Y.set(e,t,n)}else n=void 0;return n}b.extend({hasData:function(e){return Y.hasData(e)||$.hasData(e)},data:function(e,t,n){return Y.access(e,t,n)},removeData:function(e,t){Y.remove(e,t)},_data:function(e,t,n){return $.access(e,t,n)},_removeData:function(e,t){$.remove(e,t)}}),b.fn.extend({data:function(e,t){var n,r,i,a=this[0],o=a&&a.attributes;if(void 0===e){if(this.length&&(i=Y.get(a),1===a.nodeType&&!$.get(a,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=q(r.slice(5)),Q(a,r,i[r]));$.set(a,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){Y.set(this,e)})):U(this,(function(t){var n;if(a&&void 0===t)return void 0!==(n=Y.get(a,e))||void 0!==(n=Q(a,e))?n:void 0;this.each((function(){Y.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Y.remove(this,e)}))}}),b.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=$.get(e,t),n&&(!r||Array.isArray(n)?r=$.access(e,t,b.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),r=n.length,i=n.shift(),a=b._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete a.stop,i.call(e,(function(){b.dequeue(e,t)}),a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return $.get(e,n)||$.access(e,n,{empty:b.Callbacks("once memory").add((function(){$.remove(e,[t+"queue",n])}))})}}),b.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?b.queue(this[0],e):void 0===t?this:this.each((function(){var n=b.queue(this,e,t);b._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&b.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){b.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=b.Deferred(),a=this,o=this.length,s=function(){--r||i.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=$.get(a[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=g.documentElement,ie=function(e){return b.contains(e.ownerDocument,e)},ae={composed:!0};re.getRootNode&&(ie=function(e){return b.contains(e.ownerDocument,e)||e.getRootNode(ae)===e.ownerDocument});var oe=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===b.css(e,"display")};function se(e,t,n,r){var i,a,o=20,s=r?function(){return r.cur()}:function(){return b.css(e,t,"")},l=s(),c=n&&n[3]||(b.cssNumber[t]?"":"px"),u=e.nodeType&&(b.cssNumber[t]||"px"!==c&&+l)&&te.exec(b.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;o--;)b.style(e,t,u+c),(1-a)*(1-(a=s()/l||.5))<=0&&(o=0),u/=a;u*=2,b.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}var le={};function ce(e){var t,n=e.ownerDocument,r=e.nodeName,i=le[r];return i||(t=n.body.appendChild(n.createElement(r)),i=b.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),le[r]=i,i)}function ue(e,t){for(var n,r,i=[],a=0,o=e.length;a<o;a++)(r=e[a]).style&&(n=r.style.display,t?("none"===n&&(i[a]=$.get(r,"display")||null,i[a]||(r.style.display="")),""===r.style.display&&oe(r)&&(i[a]=ce(r))):"none"!==n&&(i[a]="none",$.set(r,"display",n)));for(a=0;a<o;a++)null!=i[a]&&(e[a].style.display=i[a]);return e}b.fn.extend({show:function(){return ue(this,!0)},hide:function(){return ue(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){oe(this)?b(this).show():b(this).hide()}))}});var he,pe,de=/^(?:checkbox|radio)$/i,fe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,me=/^$|^module$|\/(?:java|ecma)script/i;he=g.createDocumentFragment().appendChild(g.createElement("div")),(pe=g.createElement("input")).setAttribute("type","radio"),pe.setAttribute("checked","checked"),pe.setAttribute("name","t"),he.appendChild(pe),d.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue,he.innerHTML="<option></option>",d.option=!!he.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&C(e,t)?b.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)$.set(e[n],"globalEval",!t||$.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,d.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var xe=/<|&#?\w+;/;function _e(e,t,n,r,i){for(var a,o,s,l,c,u,h=t.createDocumentFragment(),p=[],d=0,f=e.length;d<f;d++)if((a=e[d])||0===a)if("object"===x(a))b.merge(p,a.nodeType?[a]:a);else if(xe.test(a)){for(o=o||h.appendChild(t.createElement("div")),s=(fe.exec(a)||["",""])[1].toLowerCase(),l=ge[s]||ge._default,o.innerHTML=l[1]+b.htmlPrefilter(a)+l[2],u=l[0];u--;)o=o.lastChild;b.merge(p,o.childNodes),(o=h.firstChild).textContent=""}else p.push(t.createTextNode(a));for(h.textContent="",d=0;a=p[d++];)if(r&&b.inArray(a,r)>-1)i&&i.push(a);else if(c=ie(a),o=ve(h.appendChild(a),"script"),c&&ye(o),n)for(u=0;a=o[u++];)me.test(a.type||"")&&n.push(a);return h}var be=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function Me(){return!1}function Se(e,t){return e===function(){try{return g.activeElement}catch(e){}}()==("focus"===t)}function Te(e,t,n,r,i,a){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Te(e,s,n,r,t[s],a);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Me;else if(!i)return e;return 1===a&&(o=i,i=function(e){return b().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=b.guid++)),e.each((function(){b.event.add(this,t,i,r,n)}))}function Ee(e,t,n){n?($.set(e,t,!1),b.event.add(e,t,{namespace:!1,handler:function(e){var r,a,o=$.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(b.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=i.call(arguments),$.set(this,t,o),r=n(this,t),this[t](),o!==(a=$.get(this,t))||r?$.set(this,t,!1):a={},o!==a)return e.stopImmediatePropagation(),e.preventDefault(),a&&a.value}else o.length&&($.set(this,t,{value:b.event.trigger(b.extend(o[0],b.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===$.get(e,t)&&b.event.add(e,t,we)}b.event={global:{},add:function(e,t,n,r,i){var a,o,s,l,c,u,h,p,d,f,m,g=$.get(e);if(J(e))for(n.handler&&(n=(a=n).handler,i=a.selector),i&&b.find.matchesSelector(re,i),n.guid||(n.guid=b.guid++),(l=g.events)||(l=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(t){return void 0!==b&&b.event.triggered!==t.type?b.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(B)||[""]).length;c--;)d=m=(s=be.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),d&&(h=b.event.special[d]||{},d=(i?h.delegateType:h.bindType)||d,h=b.event.special[d]||{},u=b.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&b.expr.match.needsContext.test(i),namespace:f.join(".")},a),(p=l[d])||((p=l[d]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,r,f,o)||e.addEventListener&&e.addEventListener(d,o)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,u):p.push(u),b.event.global[d]=!0)},remove:function(e,t,n,r,i){var a,o,s,l,c,u,h,p,d,f,m,g=$.hasData(e)&&$.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(B)||[""]).length;c--;)if(d=m=(s=be.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),d){for(h=b.event.special[d]||{},p=l[d=(r?h.delegateType:h.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=p.length;a--;)u=p[a],!i&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(p.splice(a,1),u.selector&&p.delegateCount--,h.remove&&h.remove.call(e,u));o&&!p.length&&(h.teardown&&!1!==h.teardown.call(e,f,g.handle)||b.removeEvent(e,d,g.handle),delete l[d])}else for(d in l)b.event.remove(e,d+t[c],n,r,!0);b.isEmptyObject(l)&&$.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,a,o,s=new Array(arguments.length),l=b.event.fix(e),c=($.get(this,"events")||Object.create(null))[l.type]||[],u=b.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(o=b.event.handlers.call(this,l,c),t=0;(i=o[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==a.namespace&&!l.rnamespace.test(a.namespace)||(l.handleObj=a,l.data=a.data,void 0!==(r=((b.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,a,o,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(a=[],o={},n=0;n<l;n++)void 0===o[i=(r=t[n]).selector+" "]&&(o[i]=r.needsContext?b(i,this).index(c)>-1:b.find(i,this,null,[c]).length),o[i]&&a.push(r);a.length&&s.push({elem:c,handlers:a})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(b.Event.prototype,e,{enumerable:!0,configurable:!0,get:f(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[b.expando]?e:new b.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return de.test(t.type)&&t.click&&C(t,"input")&&Ee(t,"click",we),!1},trigger:function(e){var t=this||e;return de.test(t.type)&&t.click&&C(t,"input")&&Ee(t,"click"),!0},_default:function(e){var t=e.target;return de.test(t.type)&&t.click&&C(t,"input")&&$.get(t,"click")||C(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},b.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},b.Event=function(e,t){if(!(this instanceof b.Event))return new b.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:Me,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&b.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[b.expando]=!0},b.Event.prototype={constructor:b.Event,isDefaultPrevented:Me,isPropagationStopped:Me,isImmediatePropagationStopped:Me,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},b.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},b.event.addProp),b.each({focus:"focusin",blur:"focusout"},(function(e,t){b.event.special[e]={setup:function(){return Ee(this,e,Se),!1},trigger:function(){return Ee(this,e),!0},_default:function(){return!0},delegateType:t}})),b.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,a=e.handleObj;return i&&(i===r||b.contains(r,i))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}})),b.fn.extend({on:function(e,t,n,r){return Te(this,e,t,n,r)},one:function(e,t,n,r){return Te(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,b(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Me),this.each((function(){b.event.remove(this,e,n,t)}))}});var Ce=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function De(e,t){return C(e,"table")&&C(11!==t.nodeType?t:t.firstChild,"tr")&&b(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Oe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Re(e,t){var n,r,i,a,o,s;if(1===t.nodeType){if($.hasData(e)&&(s=$.get(e).events))for(i in $.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)b.event.add(t,i,s[i][n]);Y.hasData(e)&&(a=Y.access(e),o=b.extend({},a),Y.set(t,o))}}function Ie(e,t){var n=t.nodeName.toLowerCase();"input"===n&&de.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Be(e,t,n,r){t=a(t);var i,o,s,l,c,u,h=0,p=e.length,m=p-1,g=t[0],v=f(g);if(v||p>1&&"string"==typeof g&&!d.checkClone&&Ae.test(g))return e.each((function(i){var a=e.eq(i);v&&(t[0]=g.call(this,i,a.html())),Be(a,t,n,r)}));if(p&&(o=(i=_e(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(l=(s=b.map(ve(i,"script"),Pe)).length;h<p;h++)c=i,h!==m&&(c=b.clone(c,!0,!0),l&&b.merge(s,ve(c,"script"))),n.call(e[h],c,h);if(l)for(u=s[s.length-1].ownerDocument,b.map(s,Oe),h=0;h<l;h++)c=s[h],me.test(c.type||"")&&!$.access(c,"globalEval")&&b.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?b._evalUrl&&!c.noModule&&b._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):y(c.textContent.replace(Le,""),c,u))}return e}function Ne(e,t,n){for(var r,i=t?b.filter(t,e):e,a=0;null!=(r=i[a]);a++)n||1!==r.nodeType||b.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}b.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,a,o,s=e.cloneNode(!0),l=ie(e);if(!(d.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(o=ve(s),r=0,i=(a=ve(e)).length;r<i;r++)Ie(a[r],o[r]);if(t)if(n)for(a=a||ve(e),o=o||ve(s),r=0,i=a.length;r<i;r++)Re(a[r],o[r]);else Re(e,s);return(o=ve(s,"script")).length>0&&ye(o,!l&&ve(e,"script")),s},cleanData:function(e){for(var t,n,r,i=b.event.special,a=0;void 0!==(n=e[a]);a++)if(J(n)){if(t=n[$.expando]){if(t.events)for(r in t.events)i[r]?b.event.remove(n,r):b.removeEvent(n,r,t.handle);n[$.expando]=void 0}n[Y.expando]&&(n[Y.expando]=void 0)}}}),b.fn.extend({detach:function(e){return Ne(this,e,!0)},remove:function(e){return Ne(this,e)},text:function(e){return U(this,(function(e){return void 0===e?b.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Be(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)}))},prepend:function(){return Be(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Be(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Be(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(b.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return b.clone(this,e,t)}))},html:function(e){return U(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ce.test(e)&&!ge[(fe.exec(e)||["",""])[1].toLowerCase()]){e=b.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(b.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Be(this,arguments,(function(t){var n=this.parentNode;b.inArray(this,e)<0&&(b.cleanData(ve(this)),n&&n.replaceChild(t,this))}),e)}}),b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){b.fn[e]=function(e){for(var n,r=[],i=b(e),a=i.length-1,s=0;s<=a;s++)n=s===a?this:this.clone(!0),b(i[s])[t](n),o.apply(r,n.get());return this.pushStack(r)}}));var ke=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Fe=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Ge=function(e,t,n){var r,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=a[i];return r},Ve=new RegExp(ne.join("|"),"i");function ze(e,t,n){var r,i,a,o,s=e.style;return(n=n||Fe(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||ie(e)||(o=b.style(e,t)),!d.pixelBoxStyles()&&ke.test(o)&&Ve.test(t)&&(r=s.width,i=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=r,s.minWidth=i,s.maxWidth=a)),void 0!==o?o+"":o}function Ue(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(c).appendChild(u);var t=e.getComputedStyle(u);r="1%"!==t.top,l=12===n(t.marginLeft),u.style.right="60%",o=36===n(t.right),i=36===n(t.width),u.style.position="absolute",a=12===n(u.offsetWidth/3),re.removeChild(c),u=null}}function n(e){return Math.round(parseFloat(e))}var r,i,a,o,s,l,c=g.createElement("div"),u=g.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===u.style.backgroundClip,b.extend(d,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),a},reliableTrDimensions:function(){var t,n,r,i;return null==s&&(t=g.createElement("table"),n=g.createElement("tr"),r=g.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",r.style.height="9px",r.style.display="block",re.appendChild(t).appendChild(n).appendChild(r),i=e.getComputedStyle(n),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===n.offsetHeight,re.removeChild(t)),s}}))}();var je=["Webkit","Moz","ms"],He=g.createElement("div").style,We={};function qe(e){var t=b.cssProps[e]||We[e];return t||(e in He?e:We[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=je.length;n--;)if((e=je[n]+t)in He)return e}(e)||e)}var Je=/^(none|table(?!-c[ea]).+)/,Xe=/^--/,$e={position:"absolute",visibility:"hidden",display:"block"},Ye={letterSpacing:"0",fontWeight:"400"};function Ze(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ke(e,t,n,r,i,a){var o="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=b.css(e,n+ne[o],!0,i)),r?("content"===n&&(l-=b.css(e,"padding"+ne[o],!0,i)),"margin"!==n&&(l-=b.css(e,"border"+ne[o]+"Width",!0,i))):(l+=b.css(e,"padding"+ne[o],!0,i),"padding"!==n?l+=b.css(e,"border"+ne[o]+"Width",!0,i):s+=b.css(e,"border"+ne[o]+"Width",!0,i));return!r&&a>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-s-.5))||0),l}function Qe(e,t,n){var r=Fe(e),i=(!d.boxSizingReliable()||n)&&"border-box"===b.css(e,"boxSizing",!1,r),a=i,o=ze(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(ke.test(o)){if(!n)return o;o="auto"}return(!d.boxSizingReliable()&&i||!d.reliableTrDimensions()&&C(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===b.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===b.css(e,"boxSizing",!1,r),(a=s in e)&&(o=e[s])),(o=parseFloat(o)||0)+Ke(e,t,n||(i?"border":"content"),a,r,o)+"px"}function et(e,t,n,r,i){return new et.prototype.init(e,t,n,r,i)}b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,a,o,s=q(t),l=Xe.test(t),c=e.style;if(l||(t=qe(s)),o=b.cssHooks[t]||b.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(e,!1,r))?i:c[t];"string"===(a=typeof n)&&(i=te.exec(n))&&i[1]&&(n=se(e,t,i),a="number"),null!=n&&n==n&&("number"!==a||l||(n+=i&&i[3]||(b.cssNumber[s]?"":"px")),d.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,a,o,s=q(t);return Xe.test(t)||(t=qe(s)),(o=b.cssHooks[t]||b.cssHooks[s])&&"get"in o&&(i=o.get(e,!0,n)),void 0===i&&(i=ze(e,t,r)),"normal"===i&&t in Ye&&(i=Ye[t]),""===n||n?(a=parseFloat(i),!0===n||isFinite(a)?a||0:i):i}}),b.each(["height","width"],(function(e,t){b.cssHooks[t]={get:function(e,n,r){if(n)return!Je.test(b.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Qe(e,t,r):Ge(e,$e,(function(){return Qe(e,t,r)}))},set:function(e,n,r){var i,a=Fe(e),o=!d.scrollboxSize()&&"absolute"===a.position,s=(o||r)&&"border-box"===b.css(e,"boxSizing",!1,a),l=r?Ke(e,t,r,s,a):0;return s&&o&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-Ke(e,t,"border",!1,a)-.5)),l&&(i=te.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=b.css(e,t)),Ze(0,n,l)}}})),b.cssHooks.marginLeft=Ue(d.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(ze(e,"marginLeft"))||e.getBoundingClientRect().left-Ge(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),b.each({margin:"",padding:"",border:"Width"},(function(e,t){b.cssHooks[e+t]={expand:function(n){for(var r=0,i={},a="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ne[r]+t]=a[r]||a[r-2]||a[0];return i}},"margin"!==e&&(b.cssHooks[e+t].set=Ze)})),b.fn.extend({css:function(e,t){return U(this,(function(e,t,n){var r,i,a={},o=0;if(Array.isArray(t)){for(r=Fe(e),i=t.length;o<i;o++)a[t[o]]=b.css(e,t[o],!1,r);return a}return void 0!==n?b.style(e,t,n):b.css(e,t)}),e,t,arguments.length>1)}}),b.Tween=et,et.prototype={constructor:et,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||b.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(b.cssNumber[n]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,n=et.propHooks[this.prop];return this.options.duration?this.pos=t=b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):et.propHooks._default.set(this),this}},et.prototype.init.prototype=et.prototype,et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=b.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):1!==e.elem.nodeType||!b.cssHooks[e.prop]&&null==e.elem.style[qe(e.prop)]?e.elem[e.prop]=e.now:b.style(e.elem,e.prop,e.now+e.unit)}}},et.propHooks.scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},b.fx=et.prototype.init,b.fx.step={};var tt,nt,rt=/^(?:toggle|show|hide)$/,it=/queueHooks$/;function at(){nt&&(!1===g.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(at):e.setTimeout(at,b.fx.interval),b.fx.tick())}function ot(){return e.setTimeout((function(){tt=void 0})),tt=Date.now()}function st(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function lt(e,t,n){for(var r,i=(ct.tweeners[t]||[]).concat(ct.tweeners["*"]),a=0,o=i.length;a<o;a++)if(r=i[a].call(n,t,e))return r}function ct(e,t,n){var r,i,a=0,o=ct.prefilters.length,s=b.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=tt||ot(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),a=0,o=c.tweens.length;a<o;a++)c.tweens[a].run(r);return s.notifyWith(e,[c,r,n]),r<1&&o?n:(o||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{},easing:b.easing._default},n),originalProperties:t,originalOptions:n,startTime:tt||ot(),duration:n.duration,tweens:[],createTween:function(t,n){var r=b.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,i,a,o;for(n in e)if(i=t[r=q(n)],a=e[n],Array.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),(o=b.cssHooks[r])&&"expand"in o)for(n in a=o.expand(a),delete e[r],a)n in e||(e[n]=a[n],t[n]=i);else t[r]=i}(u,c.opts.specialEasing);a<o;a++)if(r=ct.prefilters[a].call(c,e,u,c.opts))return f(r.stop)&&(b._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return b.map(u,lt,c),f(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),b.fx.timer(b.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}b.Animation=b.extend(ct,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){f(e)?(t=e,e=["*"]):e=e.match(B);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ct.tweeners[n]=ct.tweeners[n]||[],ct.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,a,o,s,l,c,u,h="width"in t||"height"in t,p=this,d={},f=e.style,m=e.nodeType&&oe(e),g=$.get(e,"fxshow");for(r in n.queue||(null==(o=b._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,p.always((function(){p.always((function(){o.unqueued--,b.queue(e,"fx").length||o.empty.fire()}))}))),t)if(i=t[r],rt.test(i)){if(delete t[r],a=a||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}d[r]=g&&g[r]||b.style(e,r)}if((l=!b.isEmptyObject(t))||!b.isEmptyObject(d))for(r in h&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=$.get(e,"display")),"none"===(u=b.css(e,"display"))&&(c?u=c:(ue([e],!0),c=e.style.display||c,u=b.css(e,"display"),ue([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===b.css(e,"float")&&(l||(p.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",p.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,d)l||(g?"hidden"in g&&(m=g.hidden):g=$.access(e,"fxshow",{display:c}),a&&(g.hidden=!m),m&&ue([e],!0),p.done((function(){for(r in m||ue([e]),$.remove(e,"fxshow"),d)b.style(e,r,d[r])}))),l=lt(m?g[r]:0,r,p),r in g||(g[r]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ct.prefilters.unshift(e):ct.prefilters.push(e)}}),b.speed=function(e,t,n){var r=e&&"object"==typeof e?b.extend({},e):{complete:n||!n&&t||f(e)&&e,duration:e,easing:n&&t||t&&!f(t)&&t};return b.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in b.fx.speeds?r.duration=b.fx.speeds[r.duration]:r.duration=b.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){f(r.old)&&r.old.call(this),r.queue&&b.dequeue(this,r.queue)},r},b.fn.extend({fadeTo:function(e,t,n,r){return this.filter(oe).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=b.isEmptyObject(e),a=b.speed(t,n,r),o=function(){var t=ct(this,b.extend({},e),a);(i||$.get(this,"finish"))&&t.stop(!0)};return o.finish=o,i||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",a=b.timers,o=$.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&it.test(i)&&r(o[i]);for(i=a.length;i--;)a[i].elem!==this||null!=e&&a[i].queue!==e||(a[i].anim.stop(n),t=!1,a.splice(i,1));!t&&n||b.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=$.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],a=b.timers,o=r?r.length:0;for(n.finish=!0,b.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),b.each(["toggle","show","hide"],(function(e,t){var n=b.fn[t];b.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(st(t,!0),e,r,i)}})),b.each({slideDown:st("show"),slideUp:st("hide"),slideToggle:st("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){b.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),b.timers=[],b.fx.tick=function(){var e,t=0,n=b.timers;for(tt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||b.fx.stop(),tt=void 0},b.fx.timer=function(e){b.timers.push(e),b.fx.start()},b.fx.interval=13,b.fx.start=function(){nt||(nt=!0,at())},b.fx.stop=function(){nt=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fn.delay=function(t,n){return t=b.fx&&b.fx.speeds[t]||t,n=n||"fx",this.queue(n,(function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}}))},function(){var e=g.createElement("input"),t=g.createElement("select").appendChild(g.createElement("option"));e.type="checkbox",d.checkOn=""!==e.value,d.optSelected=t.selected,(e=g.createElement("input")).value="t",e.type="radio",d.radioValue="t"===e.value}();var ut,ht=b.expr.attrHandle;b.fn.extend({attr:function(e,t){return U(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){b.removeAttr(this,e)}))}}),b.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?b.prop(e,t,n):(1===a&&b.isXMLDoc(e)||(i=b.attrHooks[t.toLowerCase()]||(b.expr.match.bool.test(t)?ut:void 0)),void 0!==n?null===n?void b.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=b.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&"radio"===t&&C(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(B);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),ut={set:function(e,t,n){return!1===t?b.removeAttr(e,n):e.setAttribute(n,n),n}},b.each(b.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=ht[t]||b.find.attr;ht[t]=function(e,t,r){var i,a,o=t.toLowerCase();return r||(a=ht[o],ht[o]=i,i=null!=n(e,t,r)?o:null,ht[o]=a),i}}));var pt=/^(?:input|select|textarea|button)$/i,dt=/^(?:a|area)$/i;function ft(e){return(e.match(B)||[]).join(" ")}function mt(e){return e.getAttribute&&e.getAttribute("class")||""}function gt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(B)||[]}b.fn.extend({prop:function(e,t){return U(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[b.propFix[e]||e]}))}}),b.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&b.isXMLDoc(e)||(t=b.propFix[t]||t,i=b.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=b.find.attr(e,"tabindex");return t?parseInt(t,10):pt.test(e.nodeName)||dt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),d.optSelected||(b.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){b.propFix[this.toLowerCase()]=this})),b.fn.extend({addClass:function(e){var t,n,r,i,a,o,s,l=0;if(f(e))return this.each((function(t){b(this).addClass(e.call(this,t,mt(this)))}));if((t=gt(e)).length)for(;n=this[l++];)if(i=mt(n),r=1===n.nodeType&&" "+ft(i)+" "){for(o=0;a=t[o++];)r.indexOf(" "+a+" ")<0&&(r+=a+" ");i!==(s=ft(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,a,o,s,l=0;if(f(e))return this.each((function(t){b(this).removeClass(e.call(this,t,mt(this)))}));if(!arguments.length)return this.attr("class","");if((t=gt(e)).length)for(;n=this[l++];)if(i=mt(n),r=1===n.nodeType&&" "+ft(i)+" "){for(o=0;a=t[o++];)for(;r.indexOf(" "+a+" ")>-1;)r=r.replace(" "+a+" "," ");i!==(s=ft(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):f(e)?this.each((function(n){b(this).toggleClass(e.call(this,n,mt(this),t),t)})):this.each((function(){var t,i,a,o;if(r)for(i=0,a=b(this),o=gt(e);t=o[i++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||((t=mt(this))&&$.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":$.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+ft(mt(n))+" ").indexOf(t)>-1)return!0;return!1}});var vt=/\r/g;b.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=f(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,b(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=b.map(i,(function(e){return null==e?"":e+""}))),(t=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=b.valHooks[i.type]||b.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(vt,""):null==n?"":n:void 0}}),b.extend({valHooks:{option:{get:function(e){var t=b.find.attr(e,"value");return null!=t?t:ft(b.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?a+1:i.length;for(r=a<0?l:o?a:0;r<l;r++)if(((n=i[r]).selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(t=b(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,a=b.makeArray(t),o=i.length;o--;)((r=i[o]).selected=b.inArray(b.valHooks.option.get(r),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),b.each(["radio","checkbox"],(function(){b.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=b.inArray(b(e).val(),t)>-1}},d.checkOn||(b.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),d.focusin="onfocusin"in e;var yt=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};b.extend(b.event,{trigger:function(t,n,r,i){var a,o,s,l,c,h,p,d,v=[r||g],y=u.call(t,"type")?t.type:t,x=u.call(t,"namespace")?t.namespace.split("."):[];if(o=d=s=r=r||g,3!==r.nodeType&&8!==r.nodeType&&!yt.test(y+b.event.triggered)&&(y.indexOf(".")>-1&&(x=y.split("."),y=x.shift(),x.sort()),c=y.indexOf(":")<0&&"on"+y,(t=t[b.expando]?t:new b.Event(y,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=x.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+x.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:b.makeArray(n,[t]),p=b.event.special[y]||{},i||!p.trigger||!1!==p.trigger.apply(r,n))){if(!i&&!p.noBubble&&!m(r)){for(l=p.delegateType||y,yt.test(l+y)||(o=o.parentNode);o;o=o.parentNode)v.push(o),s=o;s===(r.ownerDocument||g)&&v.push(s.defaultView||s.parentWindow||e)}for(a=0;(o=v[a++])&&!t.isPropagationStopped();)d=o,t.type=a>1?l:p.bindType||y,(h=($.get(o,"events")||Object.create(null))[t.type]&&$.get(o,"handle"))&&h.apply(o,n),(h=c&&o[c])&&h.apply&&J(o)&&(t.result=h.apply(o,n),!1===t.result&&t.preventDefault());return t.type=y,i||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(v.pop(),n)||!J(r)||c&&f(r[y])&&!m(r)&&((s=r[c])&&(r[c]=null),b.event.triggered=y,t.isPropagationStopped()&&d.addEventListener(y,xt),r[y](),t.isPropagationStopped()&&d.removeEventListener(y,xt),b.event.triggered=void 0,s&&(r[c]=s)),t.result}},simulate:function(e,t,n){var r=b.extend(new b.Event,n,{type:e,isSimulated:!0});b.event.trigger(r,null,t)}}),b.fn.extend({trigger:function(e,t){return this.each((function(){b.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return b.event.trigger(e,t,n,!0)}}),d.focusin||b.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){b.event.simulate(t,e.target,b.event.fix(e))};b.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=$.access(r,t);i||r.addEventListener(e,n,!0),$.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=$.access(r,t)-1;i?$.access(r,t,i):(r.removeEventListener(e,n,!0),$.remove(r,t))}}}));var _t=e.location,bt={guid:Date.now()},wt=/\?/;b.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){}return r=n&&n.getElementsByTagName("parsererror")[0],n&&!r||b.error("Invalid XML: "+(r?b.map(r.childNodes,(function(e){return e.textContent})).join("\n"):t)),n};var Mt=/\[\]$/,St=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i;function Ct(e,t,n,r){var i;if(Array.isArray(t))b.each(t,(function(t,i){n||Mt.test(e)?r(e,i):Ct(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==x(t))r(e,t);else for(i in t)Ct(e+"["+i+"]",t[i],n,r)}b.param=function(e,t){var n,r=[],i=function(e,t){var n=f(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!b.isPlainObject(e))b.each(e,(function(){i(this.name,this.value)}));else for(n in e)Ct(n,e[n],t,i);return r.join("&")},b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!b(this).is(":disabled")&&Et.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!de.test(e))})).map((function(e,t){var n=b(this).val();return null==n?null:Array.isArray(n)?b.map(n,(function(e){return{name:t.name,value:e.replace(St,"\r\n")}})):{name:t.name,value:n.replace(St,"\r\n")}})).get()}});var At=/%20/g,Lt=/#.*$/,Dt=/([?&])_=[^&]*/,Pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Rt=/^\/\//,It={},Bt={},Nt="*/".concat("*"),kt=g.createElement("a");function Ft(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,a=t.toLowerCase().match(B)||[];if(f(n))for(;r=a[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Gt(e,t,n,r){var i={},a=e===Bt;function o(s){var l;return i[s]=!0,b.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!=typeof c||a||i[c]?a?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)})),l}return o(t.dataTypes[0])||!i["*"]&&o("*")}function Vt(e,t){var n,r,i=b.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&b.extend(!0,e,r),e}kt.href=_t.href,b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_t.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(_t.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Nt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Vt(Vt(e,b.ajaxSettings),t):Vt(b.ajaxSettings,e)},ajaxPrefilter:Ft(It),ajaxTransport:Ft(Bt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,i,a,o,s,l,c,u,h,p,d=b.ajaxSetup({},n),f=d.context||d,m=d.context&&(f.nodeType||f.jquery)?b(f):b.event,v=b.Deferred(),y=b.Callbacks("once memory"),x=d.statusCode||{},_={},w={},M="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(c){if(!o)for(o={};t=Pt.exec(a);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==c&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)S.always(e[S.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||M;return r&&r.abort(t),T(0,t),this}};if(v.promise(S),d.url=((t||d.url||_t.href)+"").replace(Rt,_t.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(B)||[""],null==d.crossDomain){l=g.createElement("a");try{l.href=d.url,l.href=l.href,d.crossDomain=kt.protocol+"//"+kt.host!=l.protocol+"//"+l.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=b.param(d.data,d.traditional)),Gt(It,d,n,S),c)return S;for(h in(u=b.event&&d.global)&&0==b.active++&&b.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ot.test(d.type),i=d.url.replace(Lt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(At,"+")):(p=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(wt.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Dt,"$1"),p=(wt.test(i)?"&":"?")+"_="+bt.guid+++p),d.url=i+p),d.ifModified&&(b.lastModified[i]&&S.setRequestHeader("If-Modified-Since",b.lastModified[i]),b.etag[i]&&S.setRequestHeader("If-None-Match",b.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&S.setRequestHeader("Content-Type",d.contentType),S.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Nt+"; q=0.01":""):d.accepts["*"]),d.headers)S.setRequestHeader(h,d.headers[h]);if(d.beforeSend&&(!1===d.beforeSend.call(f,S,d)||c))return S.abort();if(M="abort",y.add(d.complete),S.done(d.success),S.fail(d.error),r=Gt(Bt,d,n,S)){if(S.readyState=1,u&&m.trigger("ajaxSend",[S,d]),c)return S;d.async&&d.timeout>0&&(s=e.setTimeout((function(){S.abort("timeout")}),d.timeout));try{c=!1,r.send(_,T)}catch(e){if(c)throw e;T(-1,e)}}else T(-1,"No Transport");function T(t,n,o,l){var h,p,g,_,w,M=n;c||(c=!0,s&&e.clearTimeout(s),r=void 0,a=l||"",S.readyState=t>0?4:0,h=t>=200&&t<300||304===t,o&&(_=function(e,t,n){for(var r,i,a,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)a=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){a=i;break}o||(o=i)}a=a||o}if(a)return a!==l[0]&&l.unshift(a),n[a]}(d,S,o)),!h&&b.inArray("script",d.dataTypes)>-1&&b.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),_=function(e,t,n,r){var i,a,o,s,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=u.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(o=c[l+" "+a]||c["* "+a]))for(i in c)if((s=i.split(" "))[1]===a&&(o=c[l+" "+s[0]]||c["* "+s[0]])){!0===o?o=c[i]:!0!==c[i]&&(a=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}(d,_,S,h),h?(d.ifModified&&((w=S.getResponseHeader("Last-Modified"))&&(b.lastModified[i]=w),(w=S.getResponseHeader("etag"))&&(b.etag[i]=w)),204===t||"HEAD"===d.type?M="nocontent":304===t?M="notmodified":(M=_.state,p=_.data,h=!(g=_.error))):(g=M,!t&&M||(M="error",t<0&&(t=0))),S.status=t,S.statusText=(n||M)+"",h?v.resolveWith(f,[p,M,S]):v.rejectWith(f,[S,M,g]),S.statusCode(x),x=void 0,u&&m.trigger(h?"ajaxSuccess":"ajaxError",[S,d,h?p:g]),y.fireWith(f,[S,M]),u&&(m.trigger("ajaxComplete",[S,d]),--b.active||b.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return b.get(e,t,n,"json")},getScript:function(e,t){return b.get(e,void 0,t,"script")}}),b.each(["get","post"],(function(e,t){b[t]=function(e,n,r,i){return f(n)&&(i=i||r,r=n,n=void 0),b.ajax(b.extend({url:e,type:t,dataType:i,data:n,success:r},b.isPlainObject(e)&&e))}})),b.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),b._evalUrl=function(e,t,n){return b.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){b.globalEval(e,t,n)}})},b.fn.extend({wrapAll:function(e){var t;return this[0]&&(f(e)&&(e=e.call(this[0])),t=b(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return f(e)?this.each((function(t){b(this).wrapInner(e.call(this,t))})):this.each((function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=f(e);return this.each((function(n){b(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){b(this).replaceWith(this.childNodes)})),this}}),b.expr.pseudos.hidden=function(e){return!b.expr.pseudos.visible(e)},b.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},b.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var zt={0:200,1223:204},Ut=b.ajaxSettings.xhr();d.cors=!!Ut&&"withCredentials"in Ut,d.ajax=Ut=!!Ut,b.ajaxTransport((function(t){var n,r;if(d.cors||Ut&&!t.crossDomain)return{send:function(i,a){var o,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)s[o]=t.xhrFields[o];for(o in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(o,i[o]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(zt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout((function(){n&&r()}))},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}})),b.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),b.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=b("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),g.head.appendChild(t[0])},abort:function(){n&&n()}}}));var jt,Ht=[],Wt=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ht.pop()||b.expando+"_"+bt.guid++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",(function(t,n,r){var i,a,o,s=!1!==t.jsonp&&(Wt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Wt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=f(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Wt,"$1"+i):!1!==t.jsonp&&(t.url+=(wt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||b.error(i+" was not called"),o[0]},t.dataTypes[0]="json",a=e[i],e[i]=function(){o=arguments},r.always((function(){void 0===a?b(e).removeProp(i):e[i]=a,t[i]&&(t.jsonpCallback=n.jsonpCallback,Ht.push(i)),o&&f(a)&&a(o[0]),o=a=void 0})),"script"})),d.createHTMLDocument=((jt=g.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===jt.childNodes.length),b.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(d.createHTMLDocument?((r=(t=g.implementation.createHTMLDocument("")).createElement("base")).href=g.location.href,t.head.appendChild(r)):t=g),a=!n&&[],(i=A.exec(e))?[t.createElement(i[1])]:(i=_e([e],t,a),a&&a.length&&b(a).remove(),b.merge([],i.childNodes)));var r,i,a},b.fn.load=function(e,t,n){var r,i,a,o=this,s=e.indexOf(" ");return s>-1&&(r=ft(e.slice(s)),e=e.slice(0,s)),f(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),o.length>0&&b.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){a=arguments,o.html(r?b("<div>").append(b.parseHTML(e)).find(r):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},b.expr.pseudos.animated=function(e){return b.grep(b.timers,(function(t){return e===t.elem})).length},b.offset={setOffset:function(e,t,n){var r,i,a,o,s,l,c=b.css(e,"position"),u=b(e),h={};"static"===c&&(e.style.position="relative"),s=u.offset(),a=b.css(e,"top"),l=b.css(e,"left"),("absolute"===c||"fixed"===c)&&(a+l).indexOf("auto")>-1?(o=(r=u.position()).top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(l)||0),f(t)&&(t=t.call(e,n,b.extend({},s))),null!=t.top&&(h.top=t.top-s.top+o),null!=t.left&&(h.left=t.left-s.left+i),"using"in t?t.using.call(e,h):u.css(h)}},b.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){b.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===b.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===b.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=b(e).offset()).top+=b.css(e,"borderTopWidth",!0),i.left+=b.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-b.css(r,"marginTop",!0),left:t.left-i.left-b.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===b.css(e,"position");)e=e.offsetParent;return e||re}))}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;b.fn[e]=function(r){return U(this,(function(e,r,i){var a;if(m(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===i)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i}),e,r,arguments.length)}})),b.each(["top","left"],(function(e,t){b.cssHooks[t]=Ue(d.pixelPosition,(function(e,n){if(n)return n=ze(e,t),ke.test(n)?b(e).position()[t]+"px":n}))})),b.each({Height:"height",Width:"width"},(function(e,t){b.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){b.fn[r]=function(i,a){var o=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===a?"margin":"border");return U(this,(function(t,n,i){var a;return m(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===i?b.css(t,n,s):b.style(t,n,i,s)}),t,o?i:void 0,o)}}))})),b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){b.fn[t]=function(e){return this.on(t,e)}})),b.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),b.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){b.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var qt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;b.proxy=function(e,t){var n,r,a;if("string"==typeof t&&(n=e[t],t=e,e=n),f(e))return r=i.call(arguments,2),a=function(){return e.apply(t||this,r.concat(i.call(arguments)))},a.guid=e.guid=e.guid||b.guid++,a},b.holdReady=function(e){e?b.readyWait++:b.ready(!0)},b.isArray=Array.isArray,b.parseJSON=JSON.parse,b.nodeName=C,b.isFunction=f,b.isWindow=m,b.camelCase=q,b.type=x,b.now=Date.now,b.isNumeric=function(e){var t=b.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},b.trim=function(e){return null==e?"":(e+"").replace(qt,"")};var Jt=e.jQuery,Xt=e.$;return b.noConflict=function(t){return e.$===b&&(e.$=Xt),t&&e.jQuery===b&&(e.jQuery=Jt),b},void 0===t&&(e.jQuery=e.$=b),b}))})),jquery$1=Object.freeze({default:jquery,__moduleExports:jquery});export default mxdraw;export{MxFun$1 as MxFun,Mxassembly$1 as Mxassembly,MxThreeJS$1 as MxThreeJS,McEdGetPointWorldDrawObject,MrxDbgUiPrPoint,MxDbEntity,MxDbImage,MxDbLine,MxDbSVG,MxDbRect,MxDbAlignedDimension,useCanvasResizeListener,loadCoreCode,store$1 as store,McGiWorldDrawType$1 as McGiWorldDrawType,MrxDbgUiPrBaseReturn$1 as MrxDbgUiPrBaseReturn,MxType};
44
+ function(e){var t,n,r,i,a,o,s,l,c,u,h,p,d,f,m,g,v,y,x,_="sizzle"+1*new Date,b=e.document,w=0,M=0,S=le(),T=le(),E=le(),C=le(),A=function(e,t){return e===t&&(h=!0),0},L={}.hasOwnProperty,D=[],P=D.pop,O=D.push,R=D.push,I=D.slice,B=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",k="[\\x20\\t\\r\\n\\f]",F="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",G="\\[[\\x20\\t\\r\\n\\f]*("+F+")(?:"+k+"*([*^$|!~]?=)"+k+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+k+"*\\]",V=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+G+")*)|.*)\\)|)",z=new RegExp(k+"+","g"),U=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),j=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),H=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),W=new RegExp(k+"|>"),q=new RegExp(V),J=new RegExp("^"+F+"$"),X={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+G),PSEUDO:new RegExp("^"+V),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},$=/HTML$/i,Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=function(){p()},oe=_e((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{R.apply(D=I.call(b.childNodes),b.childNodes),D[b.childNodes.length].nodeType}catch(e){R={apply:D.length?function(e,t){O.apply(e,I.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var a,s,c,u,h,f,v,y=t&&t.ownerDocument,b=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==b&&9!==b&&11!==b)return r;if(!i&&(p(t),t=t||d,m)){if(11!==b&&(h=Q.exec(e)))if(a=h[1]){if(9===b){if(!(c=t.getElementById(a)))return r;if(c.id===a)return r.push(c),r}else if(y&&(c=y.getElementById(a))&&x(t,c)&&c.id===a)return r.push(c),r}else{if(h[2])return R.apply(r,t.getElementsByTagName(e)),r;if((a=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return R.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&!C[e+" "]&&(!g||!g.test(e))&&(1!==b||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===b&&(W.test(e)||H.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,ie):t.setAttribute("id",u=_)),s=(f=o(e)).length;s--;)f[s]=(u?"#"+u:":scope")+" "+xe(f[s]);v=f.join(",")}try{return R.apply(r,y.querySelectorAll(v)),r}catch(t){C(e,!0)}finally{u===_&&t.removeAttribute("id")}}}return l(e.replace(U,"$1"),t,r,i)}function le(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ce(e){return e[_]=!0,e}function ue(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function he(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ce((function(t){return t=+t,ce((function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},a=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!$.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,i,o=e?e.ownerDocument||e:b;return o!=d&&9===o.nodeType&&o.documentElement?(f=(d=o).documentElement,m=!a(d),b!=d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ae,!1):i.attachEvent&&i.attachEvent("onunload",ae)),n.scope=ue((function(e){return f.appendChild(e).appendChild(d.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=K.test(d.getElementsByClassName),n.getById=ue((function(e){return f.appendChild(e).id=_,!d.getElementsByName||!d.getElementsByName(_).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,i,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(i=t.getElementsByName(e),r=0;a=i[r++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[i++];)1===n.nodeType&&r.push(n);return r}return a},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=K.test(d.querySelectorAll))&&(ue((function(e){var t;f.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+N+")"),e.querySelectorAll("[id~="+_+"-]").length||g.push("~="),(t=d.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=K.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",V)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=K.test(f.compareDocumentPosition),x=t||K.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return h=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==d||e.ownerDocument==b&&x(b,e)?-1:t==d||t.ownerDocument==b&&x(b,t)?1:u?B(u,e)-B(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return h=!0,0;var n,r=0,i=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!i||!a)return e==d?-1:t==d?1:i?-1:a?1:u?B(u,e)-B(u,t):0;if(i===a)return pe(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[r]===s[r];)r++;return r?pe(o[r],s[r]):o[r]==b?-1:s[r]==b?1:0},d):d},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(p(e),n.matchesSelector&&m&&!C[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){C(t,!0)}return se(t,d,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=d&&p(e),x(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=d&&p(e);var i=r.attrHandle[t.toLowerCase()],a=i&&L.call(r.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==a?a:n.attributes||!m?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,a=0;if(h=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(A),h){for(;t=e[a++];)t===e[a]&&(i=r.push(a));for(;i--;)e.splice(r[i],1)}return u=null,e},i=se.getText=function(e){var t,n="",r=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},r=se.selectors={cacheLength:50,createPseudo:ce,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+k+"|$)"))&&S(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(z," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,h,p,d,f,m=a!==o?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,x=!1;if(g){if(a){for(;m;){for(p=t;p=p[m];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[o?g.firstChild:g.lastChild],o&&y){for(x=(d=(c=(u=(h=(p=g)[_]||(p[_]={}))[p.uniqueID]||(h[p.uniqueID]={}))[e]||[])[0]===w&&c[1])&&c[2],p=d&&g.childNodes[d];p=++d&&p&&p[m]||(x=d=0)||f.pop();)if(1===p.nodeType&&++x&&p===t){u[e]=[w,d,x];break}}else if(y&&(x=d=(c=(u=(h=(p=t)[_]||(p[_]={}))[p.uniqueID]||(h[p.uniqueID]={}))[e]||[])[0]===w&&c[1]),!1===x)for(;(p=++d&&p&&p[m]||(x=d=0)||f.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++x||(y&&((u=(h=p[_]||(p[_]={}))[p.uniqueID]||(h[p.uniqueID]={}))[e]=[w,x]),p!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[_]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var r,a=i(e,t),o=a.length;o--;)e[r=B(e,a[o])]=!(n[r]=a[o])})):function(e){return i(e,0,n)}):i}},pseudos:{not:ce((function(e){var t=[],n=[],r=s(e.replace(U,"$1"));return r[_]?ce((function(e,t,n,i){for(var a,o=r(e,null,i,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))})):function(e,i,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return se(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:ce((function(e){return J.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return Y.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ge((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ge((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ge((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function ye(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function _e(e,t,n){var r=t.dir,i=t.next,a=i||r,o=n&&"parentNode"===a,s=M++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i);return!1}:function(t,n,l){var c,u,h,p=[w,s];if(l){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(u=(h=t[_]||(t[_]={}))[t.uniqueID]||(h[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[a])&&c[0]===w&&c[1]===s)return p[2]=c[2];if(u[a]=p,p[2]=e(t,n,l))return!0}return!1}}function be(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function we(e,t,n,r,i){for(var a,o=[],s=0,l=e.length,c=null!=t;s<l;s++)(a=e[s])&&(n&&!n(a,r,i)||(o.push(a),c&&t.push(s)));return o}function Me(e,t,n,r,i,a){return r&&!r[_]&&(r=Me(r)),i&&!i[_]&&(i=Me(i,a)),ce((function(a,o,s,l){var c,u,h,p=[],d=[],f=o.length,m=a||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!a&&t?m:we(m,p,e,s,l),v=n?i||(a?e:f||r)?[]:o:g;if(n&&n(g,v,s,l),r)for(c=we(v,d),r(c,[],s,l),u=c.length;u--;)(h=c[u])&&(v[d[u]]=!(g[d[u]]=h));if(a){if(i||e){if(i){for(c=[],u=v.length;u--;)(h=v[u])&&c.push(g[u]=h);i(null,v=[],c,l)}for(u=v.length;u--;)(h=v[u])&&(c=i?B(a,h):p[u])>-1&&(a[c]=!(o[c]=h))}}else v=we(v===o?v.splice(f,v.length):v),i?i(null,o,v,l):R.apply(o,v)}))}function Se(e){for(var t,n,i,a=e.length,o=r.relative[e[0].type],s=o||r.relative[" "],l=o?1:0,u=_e((function(e){return e===t}),s,!0),h=_e((function(e){return B(t,e)>-1}),s,!0),p=[function(e,n,r){var i=!o&&(r||n!==c)||((t=n).nodeType?u(e,n,r):h(e,n,r));return t=null,i}];l<a;l++)if(n=r.relative[e[l].type])p=[_e(be(p),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[_]){for(i=++l;i<a&&!r.relative[e[i].type];i++);return Me(l>1&&be(p),l>1&&xe(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(U,"$1"),n,l<i&&Se(e.slice(l,i)),i<a&&Se(e=e.slice(i)),i<a&&xe(e))}p.push(n)}return be(p)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,o=se.tokenize=function(e,t){var n,i,a,o,s,l,c,u=T[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=r.preFilter;s;){for(o in n&&!(i=j.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(a=[])),n=!1,(i=H.exec(s))&&(n=i.shift(),a.push({value:n,type:i[0].replace(U," ")}),s=s.slice(n.length)),r.filter)!(i=X[o].exec(s))||c[o]&&!(i=c[o](i))||(n=i.shift(),a.push({value:n,type:o,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):T(e,l).slice(0)},s=se.compile=function(e,t){var n,i=[],a=[],s=E[e+" "];if(!s){for(t||(t=o(e)),n=t.length;n--;)(s=Se(t[n]))[_]?i.push(s):a.push(s);s=E(e,function(e,t){var n=t.length>0,i=e.length>0,a=function(a,o,s,l,u){var h,f,g,v=0,y="0",x=a&&[],_=[],b=c,M=a||i&&r.find.TAG("*",u),S=w+=null==b?1:Math.random()||.1,T=M.length;for(u&&(c=o==d||o||u);y!==T&&null!=(h=M[y]);y++){if(i&&h){for(f=0,o||h.ownerDocument==d||(p(h),s=!m);g=e[f++];)if(g(h,o||d,s)){l.push(h);break}u&&(w=S)}n&&((h=!g&&h)&&v--,a&&x.push(h))}if(v+=y,n&&y!==v){for(f=0;g=t[f++];)g(x,_,o,s);if(a){if(v>0)for(;y--;)x[y]||_[y]||(_[y]=P.call(l));_=we(_)}R.apply(l,_),u&&!a&&_.length>0&&v+t.length>1&&se.uniqueSort(l)}return u&&(w=S,c=b),x};return n?ce(a):a}(a,i)),s.selector=e}return s},l=se.select=function(e,t,n,i){var a,l,c,u,h,p="function"==typeof e&&e,d=!i&&o(e=p.selector||e);if(n=n||[],1===d.length){if((l=d[0]=d[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(a=X.needsContext.test(e)?0:l.length;a--&&(c=l[a],!r.relative[u=c.type]);)if((h=r.find[u])&&(i=h(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(a,1),!(e=i.length&&xe(l)))return R.apply(n,i),n;break}}return(p||s(e,d))(i,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=_.split("").sort(A).join("")===_,n.detectDuplicates=!!h,p(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||he("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||he("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||he(N,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(e);b.find=M,b.expr=M.selectors,b.expr[":"]=b.expr.pseudos,b.uniqueSort=b.unique=M.uniqueSort,b.text=M.getText,b.isXMLDoc=M.isXML,b.contains=M.contains,b.escapeSelector=M.escape;var S=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&b(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},E=b.expr.match.needsContext;function C(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(e,t,n){return f(t)?b.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?b.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?b.grep(e,(function(e){return s.call(t,e)>-1!==n})):b.filter(t,e,n)}b.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?b.find.matchesSelector(r,e)?[r]:[]:b.find.matches(e,b.grep(t,(function(e){return 1===e.nodeType})))},b.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(b(e).filter((function(){for(t=0;t<r;t++)if(b.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)b.find(e,i[t],n);return r>1?b.uniqueSort(n):n},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"==typeof e&&E.test(e)?b(e):e||[],!1).length}});var D,P=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(b.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:P.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof b?t[0]:t,b.merge(this,b.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),A.test(r[1])&&b.isPlainObject(t))for(r in t)f(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=g.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):f(e)?void 0!==n.ready?n.ready(e):e(b):b.makeArray(e,this)}).prototype=b.fn,D=b(g);var O=/^(?:parents|prev(?:Until|All))/,R={children:!0,contents:!0,next:!0,prev:!0};function I(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}b.fn.extend({has:function(e){var t=b(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(b.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,a=[],o="string"!=typeof e&&b(e);if(!E.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&b.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?b.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?s.call(b(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(b.uniqueSort(b.merge(this.get(),b(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return S(e,"parentNode")},parentsUntil:function(e,t,n){return S(e,"parentNode",n)},next:function(e){return I(e,"nextSibling")},prev:function(e){return I(e,"previousSibling")},nextAll:function(e){return S(e,"nextSibling")},prevAll:function(e){return S(e,"previousSibling")},nextUntil:function(e,t,n){return S(e,"nextSibling",n)},prevUntil:function(e,t,n){return S(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(C(e,"template")&&(e=e.content||e),b.merge([],e.childNodes))}},(function(e,t){b.fn[e]=function(n,r){var i=b.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=b.filter(r,i)),this.length>1&&(R[e]||b.uniqueSort(i),O.test(e)&&i.reverse()),this.pushStack(i)}}));var B=/[^\x20\t\r\n\f]+/g;function N(e){return e}function k(e){throw e}function F(e,t,n,r){var i;try{e&&f(i=e.promise)?i.call(e).done(t).fail(n):e&&f(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}b.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return b.each(e.match(B)||[],(function(e,n){t[n]=!0})),t}(e):b.extend({},e);var t,n,r,i,a=[],o=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s<a.length;)!1===a[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:"")},c={add:function(){return a&&(n&&!t&&(s=a.length-1,o.push(n)),function t(n){b.each(n,(function(n,r){f(r)?e.unique&&c.has(r)||a.push(r):r&&r.length&&"string"!==x(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return b.each(arguments,(function(e,t){for(var n;(n=b.inArray(t,a,n))>-1;)a.splice(n,1),n<=s&&s--})),this},has:function(e){return e?b.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=o=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=o=[],n||t||(a=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},b.extend({Deferred:function(t){var n=[["notify","progress",b.Callbacks("memory"),b.Callbacks("memory"),2],["resolve","done",b.Callbacks("once memory"),b.Callbacks("once memory"),0,"resolved"],["reject","fail",b.Callbacks("once memory"),b.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return b.Deferred((function(t){b.each(n,(function(n,r){var i=f(e[r[4]])&&e[r[4]];a[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&f(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(t,r,i){var a=0;function o(t,n,r,i){return function(){var s=this,l=arguments,c=function(){var e,c;if(!(t<a)){if((e=r.apply(s,l))===n.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,f(c)?i?c.call(e,o(a,n,N,i),o(a,n,k,i)):(a++,c.call(e,o(a,n,N,i),o(a,n,k,i),o(a,n,N,n.notifyWith))):(r!==N&&(s=void 0,l=[e]),(i||n.resolveWith)(s,l))}},u=i?c:function(){try{c()}catch(e){b.Deferred.exceptionHook&&b.Deferred.exceptionHook(e,u.stackTrace),t+1>=a&&(r!==k&&(s=void 0,l=[e]),n.rejectWith(s,l))}};t?u():(b.Deferred.getStackHook&&(u.stackTrace=b.Deferred.getStackHook()),e.setTimeout(u))}}return b.Deferred((function(e){n[0][3].add(o(0,e,f(i)?i:N,e.notifyWith)),n[1][3].add(o(0,e,f(t)?t:N)),n[2][3].add(o(0,e,f(r)?r:k))})).promise()},promise:function(e){return null!=e?b.extend(e,i):i}},a={};return b.each(n,(function(e,t){var o=t[2],s=t[5];i[t[1]]=o.add,s&&o.add((function(){r=s}),n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),o.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=o.fireWith})),i.promise(a),t&&t.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),a=i.call(arguments),o=b.Deferred(),s=function(e){return function(n){r[e]=this,a[e]=arguments.length>1?i.call(arguments):n,--t||o.resolveWith(r,a)}};if(t<=1&&(F(e,o.done(s(n)).resolve,o.reject,!t),"pending"===o.state()||f(a[n]&&a[n].then)))return o.then();for(;n--;)F(a[n],s(n),o.reject);return o.promise()}});var G=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;b.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&G.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},b.readyException=function(t){e.setTimeout((function(){throw t}))};var V=b.Deferred();function z(){g.removeEventListener("DOMContentLoaded",z),e.removeEventListener("load",z),b.ready()}b.fn.ready=function(e){return V.then(e).catch((function(e){b.readyException(e)})),this},b.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--b.readyWait:b.isReady)||(b.isReady=!0,!0!==e&&--b.readyWait>0||V.resolveWith(g,[b]))}}),b.ready.then=V.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?e.setTimeout(b.ready):(g.addEventListener("DOMContentLoaded",z),e.addEventListener("load",z));var U=function(e,t,n,r,i,a,o){var s=0,l=e.length,c=null==n;if("object"===x(n))for(s in i=!0,n)U(e,t,s,n[s],!0,a,o);else if(void 0!==r&&(i=!0,f(r)||(o=!0),c&&(o?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(b(e),n)})),t))for(;s<l;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return i?e:c?t.call(e):l?t(e[0],n):a},j=/^-ms-/,H=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function q(e){return e.replace(j,"ms-").replace(H,W)}var J=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function X(){this.expando=b.expando+X.uid++}X.uid=1,X.prototype={cache:function(e){var t=e[this.expando];return t||(t={},J(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[q(t)]=n;else for(r in t)i[q(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][q(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(q):(t=q(t))in r?[t]:t.match(B)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||b.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!b.isEmptyObject(t)}};var $=new X,Y=new X,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Q(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Z.test(e)?JSON.parse(e):e)}(n)}catch(e){}Y.set(e,t,n)}else n=void 0;return n}b.extend({hasData:function(e){return Y.hasData(e)||$.hasData(e)},data:function(e,t,n){return Y.access(e,t,n)},removeData:function(e,t){Y.remove(e,t)},_data:function(e,t,n){return $.access(e,t,n)},_removeData:function(e,t){$.remove(e,t)}}),b.fn.extend({data:function(e,t){var n,r,i,a=this[0],o=a&&a.attributes;if(void 0===e){if(this.length&&(i=Y.get(a),1===a.nodeType&&!$.get(a,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=q(r.slice(5)),Q(a,r,i[r]));$.set(a,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){Y.set(this,e)})):U(this,(function(t){var n;if(a&&void 0===t)return void 0!==(n=Y.get(a,e))||void 0!==(n=Q(a,e))?n:void 0;this.each((function(){Y.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Y.remove(this,e)}))}}),b.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=$.get(e,t),n&&(!r||Array.isArray(n)?r=$.access(e,t,b.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),r=n.length,i=n.shift(),a=b._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete a.stop,i.call(e,(function(){b.dequeue(e,t)}),a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return $.get(e,n)||$.access(e,n,{empty:b.Callbacks("once memory").add((function(){$.remove(e,[t+"queue",n])}))})}}),b.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?b.queue(this[0],e):void 0===t?this:this.each((function(){var n=b.queue(this,e,t);b._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&b.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){b.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=b.Deferred(),a=this,o=this.length,s=function(){--r||i.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=$.get(a[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=g.documentElement,ie=function(e){return b.contains(e.ownerDocument,e)},ae={composed:!0};re.getRootNode&&(ie=function(e){return b.contains(e.ownerDocument,e)||e.getRootNode(ae)===e.ownerDocument});var oe=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===b.css(e,"display")};function se(e,t,n,r){var i,a,o=20,s=r?function(){return r.cur()}:function(){return b.css(e,t,"")},l=s(),c=n&&n[3]||(b.cssNumber[t]?"":"px"),u=e.nodeType&&(b.cssNumber[t]||"px"!==c&&+l)&&te.exec(b.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;o--;)b.style(e,t,u+c),(1-a)*(1-(a=s()/l||.5))<=0&&(o=0),u/=a;u*=2,b.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}var le={};function ce(e){var t,n=e.ownerDocument,r=e.nodeName,i=le[r];return i||(t=n.body.appendChild(n.createElement(r)),i=b.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),le[r]=i,i)}function ue(e,t){for(var n,r,i=[],a=0,o=e.length;a<o;a++)(r=e[a]).style&&(n=r.style.display,t?("none"===n&&(i[a]=$.get(r,"display")||null,i[a]||(r.style.display="")),""===r.style.display&&oe(r)&&(i[a]=ce(r))):"none"!==n&&(i[a]="none",$.set(r,"display",n)));for(a=0;a<o;a++)null!=i[a]&&(e[a].style.display=i[a]);return e}b.fn.extend({show:function(){return ue(this,!0)},hide:function(){return ue(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){oe(this)?b(this).show():b(this).hide()}))}});var he,pe,de=/^(?:checkbox|radio)$/i,fe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,me=/^$|^module$|\/(?:java|ecma)script/i;he=g.createDocumentFragment().appendChild(g.createElement("div")),(pe=g.createElement("input")).setAttribute("type","radio"),pe.setAttribute("checked","checked"),pe.setAttribute("name","t"),he.appendChild(pe),d.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue,he.innerHTML="<option></option>",d.option=!!he.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&C(e,t)?b.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)$.set(e[n],"globalEval",!t||$.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,d.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var xe=/<|&#?\w+;/;function _e(e,t,n,r,i){for(var a,o,s,l,c,u,h=t.createDocumentFragment(),p=[],d=0,f=e.length;d<f;d++)if((a=e[d])||0===a)if("object"===x(a))b.merge(p,a.nodeType?[a]:a);else if(xe.test(a)){for(o=o||h.appendChild(t.createElement("div")),s=(fe.exec(a)||["",""])[1].toLowerCase(),l=ge[s]||ge._default,o.innerHTML=l[1]+b.htmlPrefilter(a)+l[2],u=l[0];u--;)o=o.lastChild;b.merge(p,o.childNodes),(o=h.firstChild).textContent=""}else p.push(t.createTextNode(a));for(h.textContent="",d=0;a=p[d++];)if(r&&b.inArray(a,r)>-1)i&&i.push(a);else if(c=ie(a),o=ve(h.appendChild(a),"script"),c&&ye(o),n)for(u=0;a=o[u++];)me.test(a.type||"")&&n.push(a);return h}var be=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function Me(){return!1}function Se(e,t){return e===function(){try{return g.activeElement}catch(e){}}()==("focus"===t)}function Te(e,t,n,r,i,a){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Te(e,s,n,r,t[s],a);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Me;else if(!i)return e;return 1===a&&(o=i,i=function(e){return b().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=b.guid++)),e.each((function(){b.event.add(this,t,i,r,n)}))}function Ee(e,t,n){n?($.set(e,t,!1),b.event.add(e,t,{namespace:!1,handler:function(e){var r,a,o=$.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(b.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=i.call(arguments),$.set(this,t,o),r=n(this,t),this[t](),o!==(a=$.get(this,t))||r?$.set(this,t,!1):a={},o!==a)return e.stopImmediatePropagation(),e.preventDefault(),a&&a.value}else o.length&&($.set(this,t,{value:b.event.trigger(b.extend(o[0],b.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===$.get(e,t)&&b.event.add(e,t,we)}b.event={global:{},add:function(e,t,n,r,i){var a,o,s,l,c,u,h,p,d,f,m,g=$.get(e);if(J(e))for(n.handler&&(n=(a=n).handler,i=a.selector),i&&b.find.matchesSelector(re,i),n.guid||(n.guid=b.guid++),(l=g.events)||(l=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(t){return void 0!==b&&b.event.triggered!==t.type?b.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(B)||[""]).length;c--;)d=m=(s=be.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),d&&(h=b.event.special[d]||{},d=(i?h.delegateType:h.bindType)||d,h=b.event.special[d]||{},u=b.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&b.expr.match.needsContext.test(i),namespace:f.join(".")},a),(p=l[d])||((p=l[d]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,r,f,o)||e.addEventListener&&e.addEventListener(d,o)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,u):p.push(u),b.event.global[d]=!0)},remove:function(e,t,n,r,i){var a,o,s,l,c,u,h,p,d,f,m,g=$.hasData(e)&&$.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(B)||[""]).length;c--;)if(d=m=(s=be.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),d){for(h=b.event.special[d]||{},p=l[d=(r?h.delegateType:h.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=p.length;a--;)u=p[a],!i&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(p.splice(a,1),u.selector&&p.delegateCount--,h.remove&&h.remove.call(e,u));o&&!p.length&&(h.teardown&&!1!==h.teardown.call(e,f,g.handle)||b.removeEvent(e,d,g.handle),delete l[d])}else for(d in l)b.event.remove(e,d+t[c],n,r,!0);b.isEmptyObject(l)&&$.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,a,o,s=new Array(arguments.length),l=b.event.fix(e),c=($.get(this,"events")||Object.create(null))[l.type]||[],u=b.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(o=b.event.handlers.call(this,l,c),t=0;(i=o[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==a.namespace&&!l.rnamespace.test(a.namespace)||(l.handleObj=a,l.data=a.data,void 0!==(r=((b.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,a,o,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(a=[],o={},n=0;n<l;n++)void 0===o[i=(r=t[n]).selector+" "]&&(o[i]=r.needsContext?b(i,this).index(c)>-1:b.find(i,this,null,[c]).length),o[i]&&a.push(r);a.length&&s.push({elem:c,handlers:a})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(b.Event.prototype,e,{enumerable:!0,configurable:!0,get:f(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[b.expando]?e:new b.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return de.test(t.type)&&t.click&&C(t,"input")&&Ee(t,"click",we),!1},trigger:function(e){var t=this||e;return de.test(t.type)&&t.click&&C(t,"input")&&Ee(t,"click"),!0},_default:function(e){var t=e.target;return de.test(t.type)&&t.click&&C(t,"input")&&$.get(t,"click")||C(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},b.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},b.Event=function(e,t){if(!(this instanceof b.Event))return new b.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:Me,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&b.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[b.expando]=!0},b.Event.prototype={constructor:b.Event,isDefaultPrevented:Me,isPropagationStopped:Me,isImmediatePropagationStopped:Me,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},b.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},b.event.addProp),b.each({focus:"focusin",blur:"focusout"},(function(e,t){b.event.special[e]={setup:function(){return Ee(this,e,Se),!1},trigger:function(){return Ee(this,e),!0},_default:function(){return!0},delegateType:t}})),b.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,a=e.handleObj;return i&&(i===r||b.contains(r,i))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}})),b.fn.extend({on:function(e,t,n,r){return Te(this,e,t,n,r)},one:function(e,t,n,r){return Te(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,b(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Me),this.each((function(){b.event.remove(this,e,n,t)}))}});var Ce=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function De(e,t){return C(e,"table")&&C(11!==t.nodeType?t:t.firstChild,"tr")&&b(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Oe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Re(e,t){var n,r,i,a,o,s;if(1===t.nodeType){if($.hasData(e)&&(s=$.get(e).events))for(i in $.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)b.event.add(t,i,s[i][n]);Y.hasData(e)&&(a=Y.access(e),o=b.extend({},a),Y.set(t,o))}}function Ie(e,t){var n=t.nodeName.toLowerCase();"input"===n&&de.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Be(e,t,n,r){t=a(t);var i,o,s,l,c,u,h=0,p=e.length,m=p-1,g=t[0],v=f(g);if(v||p>1&&"string"==typeof g&&!d.checkClone&&Ae.test(g))return e.each((function(i){var a=e.eq(i);v&&(t[0]=g.call(this,i,a.html())),Be(a,t,n,r)}));if(p&&(o=(i=_e(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(l=(s=b.map(ve(i,"script"),Pe)).length;h<p;h++)c=i,h!==m&&(c=b.clone(c,!0,!0),l&&b.merge(s,ve(c,"script"))),n.call(e[h],c,h);if(l)for(u=s[s.length-1].ownerDocument,b.map(s,Oe),h=0;h<l;h++)c=s[h],me.test(c.type||"")&&!$.access(c,"globalEval")&&b.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?b._evalUrl&&!c.noModule&&b._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):y(c.textContent.replace(Le,""),c,u))}return e}function Ne(e,t,n){for(var r,i=t?b.filter(t,e):e,a=0;null!=(r=i[a]);a++)n||1!==r.nodeType||b.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}b.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,a,o,s=e.cloneNode(!0),l=ie(e);if(!(d.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(o=ve(s),r=0,i=(a=ve(e)).length;r<i;r++)Ie(a[r],o[r]);if(t)if(n)for(a=a||ve(e),o=o||ve(s),r=0,i=a.length;r<i;r++)Re(a[r],o[r]);else Re(e,s);return(o=ve(s,"script")).length>0&&ye(o,!l&&ve(e,"script")),s},cleanData:function(e){for(var t,n,r,i=b.event.special,a=0;void 0!==(n=e[a]);a++)if(J(n)){if(t=n[$.expando]){if(t.events)for(r in t.events)i[r]?b.event.remove(n,r):b.removeEvent(n,r,t.handle);n[$.expando]=void 0}n[Y.expando]&&(n[Y.expando]=void 0)}}}),b.fn.extend({detach:function(e){return Ne(this,e,!0)},remove:function(e){return Ne(this,e)},text:function(e){return U(this,(function(e){return void 0===e?b.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Be(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)}))},prepend:function(){return Be(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Be(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Be(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(b.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return b.clone(this,e,t)}))},html:function(e){return U(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ce.test(e)&&!ge[(fe.exec(e)||["",""])[1].toLowerCase()]){e=b.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(b.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Be(this,arguments,(function(t){var n=this.parentNode;b.inArray(this,e)<0&&(b.cleanData(ve(this)),n&&n.replaceChild(t,this))}),e)}}),b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){b.fn[e]=function(e){for(var n,r=[],i=b(e),a=i.length-1,s=0;s<=a;s++)n=s===a?this:this.clone(!0),b(i[s])[t](n),o.apply(r,n.get());return this.pushStack(r)}}));var ke=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Fe=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Ge=function(e,t,n){var r,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=a[i];return r},Ve=new RegExp(ne.join("|"),"i");function ze(e,t,n){var r,i,a,o,s=e.style;return(n=n||Fe(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||ie(e)||(o=b.style(e,t)),!d.pixelBoxStyles()&&ke.test(o)&&Ve.test(t)&&(r=s.width,i=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=r,s.minWidth=i,s.maxWidth=a)),void 0!==o?o+"":o}function Ue(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(c).appendChild(u);var t=e.getComputedStyle(u);r="1%"!==t.top,l=12===n(t.marginLeft),u.style.right="60%",o=36===n(t.right),i=36===n(t.width),u.style.position="absolute",a=12===n(u.offsetWidth/3),re.removeChild(c),u=null}}function n(e){return Math.round(parseFloat(e))}var r,i,a,o,s,l,c=g.createElement("div"),u=g.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===u.style.backgroundClip,b.extend(d,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),a},reliableTrDimensions:function(){var t,n,r,i;return null==s&&(t=g.createElement("table"),n=g.createElement("tr"),r=g.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",r.style.height="9px",r.style.display="block",re.appendChild(t).appendChild(n).appendChild(r),i=e.getComputedStyle(n),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===n.offsetHeight,re.removeChild(t)),s}}))}();var je=["Webkit","Moz","ms"],He=g.createElement("div").style,We={};function qe(e){var t=b.cssProps[e]||We[e];return t||(e in He?e:We[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=je.length;n--;)if((e=je[n]+t)in He)return e}(e)||e)}var Je=/^(none|table(?!-c[ea]).+)/,Xe=/^--/,$e={position:"absolute",visibility:"hidden",display:"block"},Ye={letterSpacing:"0",fontWeight:"400"};function Ze(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ke(e,t,n,r,i,a){var o="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=b.css(e,n+ne[o],!0,i)),r?("content"===n&&(l-=b.css(e,"padding"+ne[o],!0,i)),"margin"!==n&&(l-=b.css(e,"border"+ne[o]+"Width",!0,i))):(l+=b.css(e,"padding"+ne[o],!0,i),"padding"!==n?l+=b.css(e,"border"+ne[o]+"Width",!0,i):s+=b.css(e,"border"+ne[o]+"Width",!0,i));return!r&&a>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-s-.5))||0),l}function Qe(e,t,n){var r=Fe(e),i=(!d.boxSizingReliable()||n)&&"border-box"===b.css(e,"boxSizing",!1,r),a=i,o=ze(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(ke.test(o)){if(!n)return o;o="auto"}return(!d.boxSizingReliable()&&i||!d.reliableTrDimensions()&&C(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===b.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===b.css(e,"boxSizing",!1,r),(a=s in e)&&(o=e[s])),(o=parseFloat(o)||0)+Ke(e,t,n||(i?"border":"content"),a,r,o)+"px"}function et(e,t,n,r,i){return new et.prototype.init(e,t,n,r,i)}b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,a,o,s=q(t),l=Xe.test(t),c=e.style;if(l||(t=qe(s)),o=b.cssHooks[t]||b.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(e,!1,r))?i:c[t];"string"===(a=typeof n)&&(i=te.exec(n))&&i[1]&&(n=se(e,t,i),a="number"),null!=n&&n==n&&("number"!==a||l||(n+=i&&i[3]||(b.cssNumber[s]?"":"px")),d.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,a,o,s=q(t);return Xe.test(t)||(t=qe(s)),(o=b.cssHooks[t]||b.cssHooks[s])&&"get"in o&&(i=o.get(e,!0,n)),void 0===i&&(i=ze(e,t,r)),"normal"===i&&t in Ye&&(i=Ye[t]),""===n||n?(a=parseFloat(i),!0===n||isFinite(a)?a||0:i):i}}),b.each(["height","width"],(function(e,t){b.cssHooks[t]={get:function(e,n,r){if(n)return!Je.test(b.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Qe(e,t,r):Ge(e,$e,(function(){return Qe(e,t,r)}))},set:function(e,n,r){var i,a=Fe(e),o=!d.scrollboxSize()&&"absolute"===a.position,s=(o||r)&&"border-box"===b.css(e,"boxSizing",!1,a),l=r?Ke(e,t,r,s,a):0;return s&&o&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-Ke(e,t,"border",!1,a)-.5)),l&&(i=te.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=b.css(e,t)),Ze(0,n,l)}}})),b.cssHooks.marginLeft=Ue(d.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(ze(e,"marginLeft"))||e.getBoundingClientRect().left-Ge(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),b.each({margin:"",padding:"",border:"Width"},(function(e,t){b.cssHooks[e+t]={expand:function(n){for(var r=0,i={},a="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ne[r]+t]=a[r]||a[r-2]||a[0];return i}},"margin"!==e&&(b.cssHooks[e+t].set=Ze)})),b.fn.extend({css:function(e,t){return U(this,(function(e,t,n){var r,i,a={},o=0;if(Array.isArray(t)){for(r=Fe(e),i=t.length;o<i;o++)a[t[o]]=b.css(e,t[o],!1,r);return a}return void 0!==n?b.style(e,t,n):b.css(e,t)}),e,t,arguments.length>1)}}),b.Tween=et,et.prototype={constructor:et,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||b.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(b.cssNumber[n]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,n=et.propHooks[this.prop];return this.options.duration?this.pos=t=b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):et.propHooks._default.set(this),this}},et.prototype.init.prototype=et.prototype,et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=b.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):1!==e.elem.nodeType||!b.cssHooks[e.prop]&&null==e.elem.style[qe(e.prop)]?e.elem[e.prop]=e.now:b.style(e.elem,e.prop,e.now+e.unit)}}},et.propHooks.scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},b.fx=et.prototype.init,b.fx.step={};var tt,nt,rt=/^(?:toggle|show|hide)$/,it=/queueHooks$/;function at(){nt&&(!1===g.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(at):e.setTimeout(at,b.fx.interval),b.fx.tick())}function ot(){return e.setTimeout((function(){tt=void 0})),tt=Date.now()}function st(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function lt(e,t,n){for(var r,i=(ct.tweeners[t]||[]).concat(ct.tweeners["*"]),a=0,o=i.length;a<o;a++)if(r=i[a].call(n,t,e))return r}function ct(e,t,n){var r,i,a=0,o=ct.prefilters.length,s=b.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=tt||ot(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),a=0,o=c.tweens.length;a<o;a++)c.tweens[a].run(r);return s.notifyWith(e,[c,r,n]),r<1&&o?n:(o||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{},easing:b.easing._default},n),originalProperties:t,originalOptions:n,startTime:tt||ot(),duration:n.duration,tweens:[],createTween:function(t,n){var r=b.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,i,a,o;for(n in e)if(i=t[r=q(n)],a=e[n],Array.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),(o=b.cssHooks[r])&&"expand"in o)for(n in a=o.expand(a),delete e[r],a)n in e||(e[n]=a[n],t[n]=i);else t[r]=i}(u,c.opts.specialEasing);a<o;a++)if(r=ct.prefilters[a].call(c,e,u,c.opts))return f(r.stop)&&(b._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return b.map(u,lt,c),f(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),b.fx.timer(b.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}b.Animation=b.extend(ct,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){f(e)?(t=e,e=["*"]):e=e.match(B);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ct.tweeners[n]=ct.tweeners[n]||[],ct.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,a,o,s,l,c,u,h="width"in t||"height"in t,p=this,d={},f=e.style,m=e.nodeType&&oe(e),g=$.get(e,"fxshow");for(r in n.queue||(null==(o=b._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,p.always((function(){p.always((function(){o.unqueued--,b.queue(e,"fx").length||o.empty.fire()}))}))),t)if(i=t[r],rt.test(i)){if(delete t[r],a=a||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}d[r]=g&&g[r]||b.style(e,r)}if((l=!b.isEmptyObject(t))||!b.isEmptyObject(d))for(r in h&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=$.get(e,"display")),"none"===(u=b.css(e,"display"))&&(c?u=c:(ue([e],!0),c=e.style.display||c,u=b.css(e,"display"),ue([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===b.css(e,"float")&&(l||(p.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",p.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,d)l||(g?"hidden"in g&&(m=g.hidden):g=$.access(e,"fxshow",{display:c}),a&&(g.hidden=!m),m&&ue([e],!0),p.done((function(){for(r in m||ue([e]),$.remove(e,"fxshow"),d)b.style(e,r,d[r])}))),l=lt(m?g[r]:0,r,p),r in g||(g[r]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ct.prefilters.unshift(e):ct.prefilters.push(e)}}),b.speed=function(e,t,n){var r=e&&"object"==typeof e?b.extend({},e):{complete:n||!n&&t||f(e)&&e,duration:e,easing:n&&t||t&&!f(t)&&t};return b.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in b.fx.speeds?r.duration=b.fx.speeds[r.duration]:r.duration=b.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){f(r.old)&&r.old.call(this),r.queue&&b.dequeue(this,r.queue)},r},b.fn.extend({fadeTo:function(e,t,n,r){return this.filter(oe).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=b.isEmptyObject(e),a=b.speed(t,n,r),o=function(){var t=ct(this,b.extend({},e),a);(i||$.get(this,"finish"))&&t.stop(!0)};return o.finish=o,i||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",a=b.timers,o=$.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&it.test(i)&&r(o[i]);for(i=a.length;i--;)a[i].elem!==this||null!=e&&a[i].queue!==e||(a[i].anim.stop(n),t=!1,a.splice(i,1));!t&&n||b.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=$.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],a=b.timers,o=r?r.length:0;for(n.finish=!0,b.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),b.each(["toggle","show","hide"],(function(e,t){var n=b.fn[t];b.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(st(t,!0),e,r,i)}})),b.each({slideDown:st("show"),slideUp:st("hide"),slideToggle:st("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){b.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),b.timers=[],b.fx.tick=function(){var e,t=0,n=b.timers;for(tt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||b.fx.stop(),tt=void 0},b.fx.timer=function(e){b.timers.push(e),b.fx.start()},b.fx.interval=13,b.fx.start=function(){nt||(nt=!0,at())},b.fx.stop=function(){nt=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fn.delay=function(t,n){return t=b.fx&&b.fx.speeds[t]||t,n=n||"fx",this.queue(n,(function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}}))},function(){var e=g.createElement("input"),t=g.createElement("select").appendChild(g.createElement("option"));e.type="checkbox",d.checkOn=""!==e.value,d.optSelected=t.selected,(e=g.createElement("input")).value="t",e.type="radio",d.radioValue="t"===e.value}();var ut,ht=b.expr.attrHandle;b.fn.extend({attr:function(e,t){return U(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){b.removeAttr(this,e)}))}}),b.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?b.prop(e,t,n):(1===a&&b.isXMLDoc(e)||(i=b.attrHooks[t.toLowerCase()]||(b.expr.match.bool.test(t)?ut:void 0)),void 0!==n?null===n?void b.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=b.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&"radio"===t&&C(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(B);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),ut={set:function(e,t,n){return!1===t?b.removeAttr(e,n):e.setAttribute(n,n),n}},b.each(b.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=ht[t]||b.find.attr;ht[t]=function(e,t,r){var i,a,o=t.toLowerCase();return r||(a=ht[o],ht[o]=i,i=null!=n(e,t,r)?o:null,ht[o]=a),i}}));var pt=/^(?:input|select|textarea|button)$/i,dt=/^(?:a|area)$/i;function ft(e){return(e.match(B)||[]).join(" ")}function mt(e){return e.getAttribute&&e.getAttribute("class")||""}function gt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(B)||[]}b.fn.extend({prop:function(e,t){return U(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[b.propFix[e]||e]}))}}),b.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&b.isXMLDoc(e)||(t=b.propFix[t]||t,i=b.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=b.find.attr(e,"tabindex");return t?parseInt(t,10):pt.test(e.nodeName)||dt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),d.optSelected||(b.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){b.propFix[this.toLowerCase()]=this})),b.fn.extend({addClass:function(e){var t,n,r,i,a,o,s,l=0;if(f(e))return this.each((function(t){b(this).addClass(e.call(this,t,mt(this)))}));if((t=gt(e)).length)for(;n=this[l++];)if(i=mt(n),r=1===n.nodeType&&" "+ft(i)+" "){for(o=0;a=t[o++];)r.indexOf(" "+a+" ")<0&&(r+=a+" ");i!==(s=ft(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,a,o,s,l=0;if(f(e))return this.each((function(t){b(this).removeClass(e.call(this,t,mt(this)))}));if(!arguments.length)return this.attr("class","");if((t=gt(e)).length)for(;n=this[l++];)if(i=mt(n),r=1===n.nodeType&&" "+ft(i)+" "){for(o=0;a=t[o++];)for(;r.indexOf(" "+a+" ")>-1;)r=r.replace(" "+a+" "," ");i!==(s=ft(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):f(e)?this.each((function(n){b(this).toggleClass(e.call(this,n,mt(this),t),t)})):this.each((function(){var t,i,a,o;if(r)for(i=0,a=b(this),o=gt(e);t=o[i++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||((t=mt(this))&&$.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":$.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+ft(mt(n))+" ").indexOf(t)>-1)return!0;return!1}});var vt=/\r/g;b.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=f(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,b(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=b.map(i,(function(e){return null==e?"":e+""}))),(t=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=b.valHooks[i.type]||b.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(vt,""):null==n?"":n:void 0}}),b.extend({valHooks:{option:{get:function(e){var t=b.find.attr(e,"value");return null!=t?t:ft(b.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?a+1:i.length;for(r=a<0?l:o?a:0;r<l;r++)if(((n=i[r]).selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(t=b(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,a=b.makeArray(t),o=i.length;o--;)((r=i[o]).selected=b.inArray(b.valHooks.option.get(r),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),b.each(["radio","checkbox"],(function(){b.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=b.inArray(b(e).val(),t)>-1}},d.checkOn||(b.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),d.focusin="onfocusin"in e;var yt=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};b.extend(b.event,{trigger:function(t,n,r,i){var a,o,s,l,c,h,p,d,v=[r||g],y=u.call(t,"type")?t.type:t,x=u.call(t,"namespace")?t.namespace.split("."):[];if(o=d=s=r=r||g,3!==r.nodeType&&8!==r.nodeType&&!yt.test(y+b.event.triggered)&&(y.indexOf(".")>-1&&(x=y.split("."),y=x.shift(),x.sort()),c=y.indexOf(":")<0&&"on"+y,(t=t[b.expando]?t:new b.Event(y,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=x.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+x.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:b.makeArray(n,[t]),p=b.event.special[y]||{},i||!p.trigger||!1!==p.trigger.apply(r,n))){if(!i&&!p.noBubble&&!m(r)){for(l=p.delegateType||y,yt.test(l+y)||(o=o.parentNode);o;o=o.parentNode)v.push(o),s=o;s===(r.ownerDocument||g)&&v.push(s.defaultView||s.parentWindow||e)}for(a=0;(o=v[a++])&&!t.isPropagationStopped();)d=o,t.type=a>1?l:p.bindType||y,(h=($.get(o,"events")||Object.create(null))[t.type]&&$.get(o,"handle"))&&h.apply(o,n),(h=c&&o[c])&&h.apply&&J(o)&&(t.result=h.apply(o,n),!1===t.result&&t.preventDefault());return t.type=y,i||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(v.pop(),n)||!J(r)||c&&f(r[y])&&!m(r)&&((s=r[c])&&(r[c]=null),b.event.triggered=y,t.isPropagationStopped()&&d.addEventListener(y,xt),r[y](),t.isPropagationStopped()&&d.removeEventListener(y,xt),b.event.triggered=void 0,s&&(r[c]=s)),t.result}},simulate:function(e,t,n){var r=b.extend(new b.Event,n,{type:e,isSimulated:!0});b.event.trigger(r,null,t)}}),b.fn.extend({trigger:function(e,t){return this.each((function(){b.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return b.event.trigger(e,t,n,!0)}}),d.focusin||b.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){b.event.simulate(t,e.target,b.event.fix(e))};b.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=$.access(r,t);i||r.addEventListener(e,n,!0),$.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=$.access(r,t)-1;i?$.access(r,t,i):(r.removeEventListener(e,n,!0),$.remove(r,t))}}}));var _t=e.location,bt={guid:Date.now()},wt=/\?/;b.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){}return r=n&&n.getElementsByTagName("parsererror")[0],n&&!r||b.error("Invalid XML: "+(r?b.map(r.childNodes,(function(e){return e.textContent})).join("\n"):t)),n};var Mt=/\[\]$/,St=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i;function Ct(e,t,n,r){var i;if(Array.isArray(t))b.each(t,(function(t,i){n||Mt.test(e)?r(e,i):Ct(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==x(t))r(e,t);else for(i in t)Ct(e+"["+i+"]",t[i],n,r)}b.param=function(e,t){var n,r=[],i=function(e,t){var n=f(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!b.isPlainObject(e))b.each(e,(function(){i(this.name,this.value)}));else for(n in e)Ct(n,e[n],t,i);return r.join("&")},b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!b(this).is(":disabled")&&Et.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!de.test(e))})).map((function(e,t){var n=b(this).val();return null==n?null:Array.isArray(n)?b.map(n,(function(e){return{name:t.name,value:e.replace(St,"\r\n")}})):{name:t.name,value:n.replace(St,"\r\n")}})).get()}});var At=/%20/g,Lt=/#.*$/,Dt=/([?&])_=[^&]*/,Pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Rt=/^\/\//,It={},Bt={},Nt="*/".concat("*"),kt=g.createElement("a");function Ft(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,a=t.toLowerCase().match(B)||[];if(f(n))for(;r=a[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Gt(e,t,n,r){var i={},a=e===Bt;function o(s){var l;return i[s]=!0,b.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!=typeof c||a||i[c]?a?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)})),l}return o(t.dataTypes[0])||!i["*"]&&o("*")}function Vt(e,t){var n,r,i=b.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&b.extend(!0,e,r),e}kt.href=_t.href,b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_t.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(_t.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Nt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Vt(Vt(e,b.ajaxSettings),t):Vt(b.ajaxSettings,e)},ajaxPrefilter:Ft(It),ajaxTransport:Ft(Bt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,i,a,o,s,l,c,u,h,p,d=b.ajaxSetup({},n),f=d.context||d,m=d.context&&(f.nodeType||f.jquery)?b(f):b.event,v=b.Deferred(),y=b.Callbacks("once memory"),x=d.statusCode||{},_={},w={},M="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(c){if(!o)for(o={};t=Pt.exec(a);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==c&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)S.always(e[S.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||M;return r&&r.abort(t),T(0,t),this}};if(v.promise(S),d.url=((t||d.url||_t.href)+"").replace(Rt,_t.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(B)||[""],null==d.crossDomain){l=g.createElement("a");try{l.href=d.url,l.href=l.href,d.crossDomain=kt.protocol+"//"+kt.host!=l.protocol+"//"+l.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=b.param(d.data,d.traditional)),Gt(It,d,n,S),c)return S;for(h in(u=b.event&&d.global)&&0==b.active++&&b.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ot.test(d.type),i=d.url.replace(Lt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(At,"+")):(p=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(wt.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Dt,"$1"),p=(wt.test(i)?"&":"?")+"_="+bt.guid+++p),d.url=i+p),d.ifModified&&(b.lastModified[i]&&S.setRequestHeader("If-Modified-Since",b.lastModified[i]),b.etag[i]&&S.setRequestHeader("If-None-Match",b.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&S.setRequestHeader("Content-Type",d.contentType),S.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Nt+"; q=0.01":""):d.accepts["*"]),d.headers)S.setRequestHeader(h,d.headers[h]);if(d.beforeSend&&(!1===d.beforeSend.call(f,S,d)||c))return S.abort();if(M="abort",y.add(d.complete),S.done(d.success),S.fail(d.error),r=Gt(Bt,d,n,S)){if(S.readyState=1,u&&m.trigger("ajaxSend",[S,d]),c)return S;d.async&&d.timeout>0&&(s=e.setTimeout((function(){S.abort("timeout")}),d.timeout));try{c=!1,r.send(_,T)}catch(e){if(c)throw e;T(-1,e)}}else T(-1,"No Transport");function T(t,n,o,l){var h,p,g,_,w,M=n;c||(c=!0,s&&e.clearTimeout(s),r=void 0,a=l||"",S.readyState=t>0?4:0,h=t>=200&&t<300||304===t,o&&(_=function(e,t,n){for(var r,i,a,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)a=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){a=i;break}o||(o=i)}a=a||o}if(a)return a!==l[0]&&l.unshift(a),n[a]}(d,S,o)),!h&&b.inArray("script",d.dataTypes)>-1&&b.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),_=function(e,t,n,r){var i,a,o,s,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=u.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(o=c[l+" "+a]||c["* "+a]))for(i in c)if((s=i.split(" "))[1]===a&&(o=c[l+" "+s[0]]||c["* "+s[0]])){!0===o?o=c[i]:!0!==c[i]&&(a=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}(d,_,S,h),h?(d.ifModified&&((w=S.getResponseHeader("Last-Modified"))&&(b.lastModified[i]=w),(w=S.getResponseHeader("etag"))&&(b.etag[i]=w)),204===t||"HEAD"===d.type?M="nocontent":304===t?M="notmodified":(M=_.state,p=_.data,h=!(g=_.error))):(g=M,!t&&M||(M="error",t<0&&(t=0))),S.status=t,S.statusText=(n||M)+"",h?v.resolveWith(f,[p,M,S]):v.rejectWith(f,[S,M,g]),S.statusCode(x),x=void 0,u&&m.trigger(h?"ajaxSuccess":"ajaxError",[S,d,h?p:g]),y.fireWith(f,[S,M]),u&&(m.trigger("ajaxComplete",[S,d]),--b.active||b.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return b.get(e,t,n,"json")},getScript:function(e,t){return b.get(e,void 0,t,"script")}}),b.each(["get","post"],(function(e,t){b[t]=function(e,n,r,i){return f(n)&&(i=i||r,r=n,n=void 0),b.ajax(b.extend({url:e,type:t,dataType:i,data:n,success:r},b.isPlainObject(e)&&e))}})),b.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),b._evalUrl=function(e,t,n){return b.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){b.globalEval(e,t,n)}})},b.fn.extend({wrapAll:function(e){var t;return this[0]&&(f(e)&&(e=e.call(this[0])),t=b(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return f(e)?this.each((function(t){b(this).wrapInner(e.call(this,t))})):this.each((function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=f(e);return this.each((function(n){b(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){b(this).replaceWith(this.childNodes)})),this}}),b.expr.pseudos.hidden=function(e){return!b.expr.pseudos.visible(e)},b.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},b.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var zt={0:200,1223:204},Ut=b.ajaxSettings.xhr();d.cors=!!Ut&&"withCredentials"in Ut,d.ajax=Ut=!!Ut,b.ajaxTransport((function(t){var n,r;if(d.cors||Ut&&!t.crossDomain)return{send:function(i,a){var o,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)s[o]=t.xhrFields[o];for(o in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(o,i[o]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(zt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout((function(){n&&r()}))},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}})),b.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),b.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=b("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),g.head.appendChild(t[0])},abort:function(){n&&n()}}}));var jt,Ht=[],Wt=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ht.pop()||b.expando+"_"+bt.guid++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",(function(t,n,r){var i,a,o,s=!1!==t.jsonp&&(Wt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Wt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=f(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Wt,"$1"+i):!1!==t.jsonp&&(t.url+=(wt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||b.error(i+" was not called"),o[0]},t.dataTypes[0]="json",a=e[i],e[i]=function(){o=arguments},r.always((function(){void 0===a?b(e).removeProp(i):e[i]=a,t[i]&&(t.jsonpCallback=n.jsonpCallback,Ht.push(i)),o&&f(a)&&a(o[0]),o=a=void 0})),"script"})),d.createHTMLDocument=((jt=g.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===jt.childNodes.length),b.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(d.createHTMLDocument?((r=(t=g.implementation.createHTMLDocument("")).createElement("base")).href=g.location.href,t.head.appendChild(r)):t=g),a=!n&&[],(i=A.exec(e))?[t.createElement(i[1])]:(i=_e([e],t,a),a&&a.length&&b(a).remove(),b.merge([],i.childNodes)));var r,i,a},b.fn.load=function(e,t,n){var r,i,a,o=this,s=e.indexOf(" ");return s>-1&&(r=ft(e.slice(s)),e=e.slice(0,s)),f(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),o.length>0&&b.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){a=arguments,o.html(r?b("<div>").append(b.parseHTML(e)).find(r):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},b.expr.pseudos.animated=function(e){return b.grep(b.timers,(function(t){return e===t.elem})).length},b.offset={setOffset:function(e,t,n){var r,i,a,o,s,l,c=b.css(e,"position"),u=b(e),h={};"static"===c&&(e.style.position="relative"),s=u.offset(),a=b.css(e,"top"),l=b.css(e,"left"),("absolute"===c||"fixed"===c)&&(a+l).indexOf("auto")>-1?(o=(r=u.position()).top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(l)||0),f(t)&&(t=t.call(e,n,b.extend({},s))),null!=t.top&&(h.top=t.top-s.top+o),null!=t.left&&(h.left=t.left-s.left+i),"using"in t?t.using.call(e,h):u.css(h)}},b.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){b.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===b.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===b.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=b(e).offset()).top+=b.css(e,"borderTopWidth",!0),i.left+=b.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-b.css(r,"marginTop",!0),left:t.left-i.left-b.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===b.css(e,"position");)e=e.offsetParent;return e||re}))}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;b.fn[e]=function(r){return U(this,(function(e,r,i){var a;if(m(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===i)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i}),e,r,arguments.length)}})),b.each(["top","left"],(function(e,t){b.cssHooks[t]=Ue(d.pixelPosition,(function(e,n){if(n)return n=ze(e,t),ke.test(n)?b(e).position()[t]+"px":n}))})),b.each({Height:"height",Width:"width"},(function(e,t){b.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){b.fn[r]=function(i,a){var o=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===a?"margin":"border");return U(this,(function(t,n,i){var a;return m(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===i?b.css(t,n,s):b.style(t,n,i,s)}),t,o?i:void 0,o)}}))})),b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){b.fn[t]=function(e){return this.on(t,e)}})),b.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),b.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){b.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var qt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;b.proxy=function(e,t){var n,r,a;if("string"==typeof t&&(n=e[t],t=e,e=n),f(e))return r=i.call(arguments,2),a=function(){return e.apply(t||this,r.concat(i.call(arguments)))},a.guid=e.guid=e.guid||b.guid++,a},b.holdReady=function(e){e?b.readyWait++:b.ready(!0)},b.isArray=Array.isArray,b.parseJSON=JSON.parse,b.nodeName=C,b.isFunction=f,b.isWindow=m,b.camelCase=q,b.type=x,b.now=Date.now,b.isNumeric=function(e){var t=b.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},b.trim=function(e){return null==e?"":(e+"").replace(qt,"")};var Jt=e.jQuery,Xt=e.$;return b.noConflict=function(t){return e.$===b&&(e.$=Xt),t&&e.jQuery===b&&(e.jQuery=Jt),b},void 0===t&&(e.jQuery=e.$=b),b}))})),jquery$1=Object.freeze({default:jquery,__moduleExports:jquery});export default mxdraw;export{MxFun$1 as MxFun,Mxassembly$1 as Mxassembly,MxThreeJS$1 as MxThreeJS,McEdGetPointWorldDrawObject,MrxDbgUiPrPoint,MxDbEntity,MxFilters,MxDbImage,MxDbLine,MxDbSVG,MxDbRect,MxDbAlignedDimension,useCanvasResizeListener,loadCoreCode,store$1 as store,McGiWorldDrawType$1 as McGiWorldDrawType,MrxDbgUiPrBaseReturn$1 as MrxDbgUiPrBaseReturn,MxType};
45
45
  //# sourceMappingURL=mxdraw.es5.js.map