emacroh5lib 1.0.69 → 1.0.70

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.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see emacroh5lib.min.js.LICENSE.txt */
2
- var e={354:function(e){var t;e.exports=(t=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports=function(e){var t=function(e,t){return e+t&4294967295},r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,r,n,a,i,o){return r=t(t(r,e),t(a,o)),t(r<<i|r>>>32-i,n)}function a(e,t,r,a,i,o,s){return n(t&r|~t&a,e,t,i,o,s)}function i(e,t,r,a,i,o,s){return n(t&a|r&~a,e,t,i,o,s)}function o(e,t,r,a,i,o,s){return n(t^r^a,e,t,i,o,s)}function s(e,t,r,a,i,o,s){return n(r^(t|~a),e,t,i,o,s)}function c(e,r){var n=e[0],c=e[1],l=e[2],f=e[3];n=a(n,c,l,f,r[0],7,-680876936),f=a(f,n,c,l,r[1],12,-389564586),l=a(l,f,n,c,r[2],17,606105819),c=a(c,l,f,n,r[3],22,-1044525330),n=a(n,c,l,f,r[4],7,-176418897),f=a(f,n,c,l,r[5],12,1200080426),l=a(l,f,n,c,r[6],17,-1473231341),c=a(c,l,f,n,r[7],22,-45705983),n=a(n,c,l,f,r[8],7,1770035416),f=a(f,n,c,l,r[9],12,-1958414417),l=a(l,f,n,c,r[10],17,-42063),c=a(c,l,f,n,r[11],22,-1990404162),n=a(n,c,l,f,r[12],7,1804603682),f=a(f,n,c,l,r[13],12,-40341101),l=a(l,f,n,c,r[14],17,-1502002290),n=i(n,c=a(c,l,f,n,r[15],22,1236535329),l,f,r[1],5,-165796510),f=i(f,n,c,l,r[6],9,-1069501632),l=i(l,f,n,c,r[11],14,643717713),c=i(c,l,f,n,r[0],20,-373897302),n=i(n,c,l,f,r[5],5,-701558691),f=i(f,n,c,l,r[10],9,38016083),l=i(l,f,n,c,r[15],14,-660478335),c=i(c,l,f,n,r[4],20,-405537848),n=i(n,c,l,f,r[9],5,568446438),f=i(f,n,c,l,r[14],9,-1019803690),l=i(l,f,n,c,r[3],14,-187363961),c=i(c,l,f,n,r[8],20,1163531501),n=i(n,c,l,f,r[13],5,-1444681467),f=i(f,n,c,l,r[2],9,-51403784),l=i(l,f,n,c,r[7],14,1735328473),n=o(n,c=i(c,l,f,n,r[12],20,-1926607734),l,f,r[5],4,-378558),f=o(f,n,c,l,r[8],11,-2022574463),l=o(l,f,n,c,r[11],16,1839030562),c=o(c,l,f,n,r[14],23,-35309556),n=o(n,c,l,f,r[1],4,-1530992060),f=o(f,n,c,l,r[4],11,1272893353),l=o(l,f,n,c,r[7],16,-155497632),c=o(c,l,f,n,r[10],23,-1094730640),n=o(n,c,l,f,r[13],4,681279174),f=o(f,n,c,l,r[0],11,-358537222),l=o(l,f,n,c,r[3],16,-722521979),c=o(c,l,f,n,r[6],23,76029189),n=o(n,c,l,f,r[9],4,-640364487),f=o(f,n,c,l,r[12],11,-421815835),l=o(l,f,n,c,r[15],16,530742520),n=s(n,c=o(c,l,f,n,r[2],23,-995338651),l,f,r[0],6,-198630844),f=s(f,n,c,l,r[7],10,1126891415),l=s(l,f,n,c,r[14],15,-1416354905),c=s(c,l,f,n,r[5],21,-57434055),n=s(n,c,l,f,r[12],6,1700485571),f=s(f,n,c,l,r[3],10,-1894986606),l=s(l,f,n,c,r[10],15,-1051523),c=s(c,l,f,n,r[1],21,-2054922799),n=s(n,c,l,f,r[8],6,1873313359),f=s(f,n,c,l,r[15],10,-30611744),l=s(l,f,n,c,r[6],15,-1560198380),c=s(c,l,f,n,r[13],21,1309151649),n=s(n,c,l,f,r[4],6,-145523070),f=s(f,n,c,l,r[11],10,-1120210379),l=s(l,f,n,c,r[2],15,718787259),c=s(c,l,f,n,r[9],21,-343485551),e[0]=t(n,e[0]),e[1]=t(c,e[1]),e[2]=t(l,e[2]),e[3]=t(f,e[3])}function l(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function f(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function u(e){var t,r,n,a,i,o,s=e.length,f=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=s;t+=64)c(f,l(e.substring(t-64,t)));for(r=(e=e.substring(t-64)).length,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)n[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),t>55)for(c(f,n),t=0;t<16;t+=1)n[t]=0;return a=(a=8*s).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(a[2],16),o=parseInt(a[1],16)||0,n[14]=i,n[15]=o,c(f,n),f}function h(e){var t,r,n,a,i,o,s=e.length,l=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=s;t+=64)c(l,f(e.subarray(t-64,t)));for(r=(e=t-64<s?e.subarray(t-64):new Uint8Array(0)).length,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)n[t>>2]|=e[t]<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),t>55)for(c(l,n),t=0;t<16;t+=1)n[t]=0;return a=(a=8*s).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(a[2],16),o=parseInt(a[1],16)||0,n[14]=i,n[15]=o,c(l,n),l}function d(e){var t,n="";for(t=0;t<4;t+=1)n+=r[e>>8*t+4&15]+r[e>>8*t&15];return n}function p(e){var t;for(t=0;t<e.length;t+=1)e[t]=d(e[t]);return e.join("")}function v(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function m(e,t){var r,n=e.length,a=new ArrayBuffer(n),i=new Uint8Array(a);for(r=0;r<n;r+=1)i[r]=e.charCodeAt(r);return t?i:a}function g(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function b(e,t,r){var n=new Uint8Array(e.byteLength+t.byteLength);return n.set(new Uint8Array(e)),n.set(new Uint8Array(t),e.byteLength),r?n:n.buffer}function y(e){var t,r=[],n=e.length;for(t=0;t<n-1;t+=2)r.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,r)}function w(){this.reset()}return"5d41402abc4b2a76b9719d911017c592"!==p(u("hello"))&&(t=function(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(r,n){var a,i,o,s,c=this.byteLength,l=t(r,c),f=c;return n!==e&&(f=t(n,c)),l>f?new ArrayBuffer(0):(a=f-l,i=new ArrayBuffer(a),o=new Uint8Array(i),s=new Uint8Array(this,l,a),o.set(s),i)}}(),w.prototype.append=function(e){return this.appendBinary(v(e)),this},w.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,r=this._buff.length;for(t=64;t<=r;t+=64)c(this._hash,l(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},w.prototype.end=function(e){var t,r,n=this._buff,a=n.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<a;t+=1)i[t>>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(i,a),r=p(this._hash),e&&(r=y(r)),this.reset(),r},w.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},w.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},w.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},w.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},w.prototype._finish=function(e,t){var r,n,a,i=t;if(e[i>>2]|=128<<(i%4<<3),i>55)for(c(this._hash,e),i=0;i<16;i+=1)e[i]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),n=parseInt(r[2],16),a=parseInt(r[1],16)||0,e[14]=n,e[15]=a,c(this._hash,e)},w.hash=function(e,t){return w.hashBinary(v(e),t)},w.hashBinary=function(e,t){var r=p(u(e));return t?y(r):r},w.ArrayBuffer=function(){this.reset()},w.ArrayBuffer.prototype.append=function(e){var t,r=b(this._buff.buffer,e,!0),n=r.length;for(this._length+=e.byteLength,t=64;t<=n;t+=64)c(this._hash,f(r.subarray(t-64,t)));return this._buff=t-64<n?new Uint8Array(r.buffer.slice(t-64)):new Uint8Array(0),this},w.ArrayBuffer.prototype.end=function(e){var t,r,n=this._buff,a=n.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<a;t+=1)i[t>>2]|=n[t]<<(t%4<<3);return this._finish(i,a),r=p(this._hash),e&&(r=y(r)),this.reset(),r},w.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},w.ArrayBuffer.prototype.getState=function(){var e=w.prototype.getState.call(this);return e.buff=g(e.buff),e},w.ArrayBuffer.prototype.setState=function(e){return e.buff=m(e.buff,!0),w.prototype.setState.call(this,e)},w.ArrayBuffer.prototype.destroy=w.prototype.destroy,w.ArrayBuffer.prototype._finish=w.prototype._finish,w.ArrayBuffer.hash=function(e,t){var r=p(h(new Uint8Array(e)));return t?y(r):r},w}()})),class{md5(e,r,n){this.aborted=!1,this.progress=0;let a=0;const i=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,o=2097152,s=Math.ceil(e.size/o),c=new t.ArrayBuffer,l=new FileReader;function f(){const t=a*o,r=t+o>=e.size?e.size:t+o;l.readAsArrayBuffer(i.call(e,t,r))}f(),l.onloadend=e=>{c.append(e.target.result),a++,this.progress=a/s,n&&"function"==typeof n&&n(this.progress),this.aborted?r("aborted"):a<s?f():r(null,c.end())}}abort(){this.aborted=!0}})},973:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(81),a=r.n(n),i=r(645),o=r.n(i)()(a());o.push([e.id,".vdr[data-v-3e98848e] {\n position: absolute;\n box-sizing: border-box;\n}\n.vdr.active[data-v-3e98848e]:before {\n content: '';\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n box-sizing: border-box;\n outline: 1px dashed #d6d6d6;\n}\n.vdr-stick[data-v-3e98848e] {\n box-sizing: border-box;\n position: absolute;\n font-size: 1px;\n background: #ffffff;\n border: 2px solid #6c6c6c;\n box-shadow: 0 0 2px #bbb;\n}\n.inactive .vdr-stick[data-v-3e98848e] {\n display: none;\n}\n.vdr-stick-tl[data-v-3e98848e],\n.vdr-stick-br[data-v-3e98848e] {\n cursor: nwse-resize;\n}\n.vdr-stick-tm[data-v-3e98848e],\n.vdr-stick-bm[data-v-3e98848e] {\n left: 50%;\n cursor: ns-resize;\n}\n.vdr-stick-tr[data-v-3e98848e],\n.vdr-stick-bl[data-v-3e98848e] {\n cursor: nesw-resize;\n}\n.vdr-stick-ml[data-v-3e98848e],\n.vdr-stick-mr[data-v-3e98848e] {\n top: 50%;\n cursor: ew-resize;\n}\n.vdr-stick.not-resizable[data-v-3e98848e] {\n display: none;\n}\n.content-container[data-v-3e98848e] {\n display: block;\n position: relative;\n}\n",""]);const s=o},279:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(81),a=r.n(n),i=r(645),o=r.n(i)()(a());o.push([e.id,".app-container[data-v-7a6f68ae] {\n height: 100%;\n width: 100%;\n margin: 0;\n padding: 0;\n background-color: aqua;\n}\n.click-button[data-v-7a6f68ae] {\n padding: 10px;\n font-size: 16px;\n color: white;\n border-radius: 15px;\n background-color: blue;\n}\n",""]);const s=o},906:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(81),a=r.n(n),i=r(645),o=r.n(i),s=r(145),c=o()(a());c.i(s.Z),c.push([e.id,"\n",""]);const l=c},366:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(81),a=r.n(n),i=r(645),o=r.n(i),s=r(638),c=o()(a());c.i(s.Z),c.push([e.id,"\n",""]);const l=c},145:(e,t,r)=>{r.d(t,{Z:()=>h});var n=r(81),a=r.n(n),i=r(645),o=r.n(i),s=r(667),c=r.n(s),l=new URL(r(554),r.b),f=o()(a()),u=c()(l);f.push([e.id,'.duo-viewer {\n position: fixed;\n top: 0;\n left: 0;\n z-index: 10000;\n width: 100%;\n height: 100vh;\n}\n.duo-viewer-mask {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.6);\n z-index: 9;\n}\n.duo-viewer-mask__image {\n cursor: grab;\n height: 750px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 8;\n transition-property: transform, height, width;\n transition-duration: 0.3s, 0.3s, 0.3s;\n}\n.duo-viewer-footer {\n position: absolute;\n text-align: center;\n bottom: 0;\n left: 0;\n width: 100%;\n z-index: 10;\n}\n.duo-viewer-footer__title {\n color: #cfcfcf;\n position: absolute;\n bottom: 95px;\n left: 50%;\n transform: translate(-50%, 0%);\n z-index: 10;\n width: 100%;\n}\n.duo-viewer-footer__toolbar {\n position: absolute;\n bottom: 60px;\n left: 50%;\n transform: translate(-50%, 0%);\n z-index: 10;\n}\n.duo-viewer-footer__toolbar li {\n margin: 2px;\n background-color: rgba(0, 0, 0, 0.5);\n border-radius: 50%;\n cursor: pointer;\n float: left;\n height: 28px;\n overflow: hidden;\n -webkit-transition: background-color 0.15s;\n transition: background-color 0.15s;\n width: 28px;\n position: relative;\n}\n.duo-viewer-footer__toolbar li::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n content: "";\n display: inline-block;\n background: url('+u+') no-repeat;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__zoom-in::after {\n background-position: 4px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__zoom-out::after {\n background-position: -16px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__one-to-one::after {\n background-position: -35px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__reset::after {\n background-position: -56px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__prev::after {\n background-position: -77px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__play {\n width: 34px;\n height: 34px;\n margin-top: -2px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__play::after {\n background-position: -93px 6px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__next::after {\n background-position: -116px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__rotate-left::after {\n background-position: -136px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__rotate-right::after {\n background-position: -156px 3px;\n}\n.duo-viewer-footer__navbar {\n width: 100%;\n height: 50px;\n background: rgba(0, 0, 0, 0.9);\n overflow: hidden;\n}\n.duo-viewer-footer__navbar-thumbnail-image {\n height: 100%;\n width: 80px;\n -o-object-fit: fill;\n object-fit: fill;\n transform: translateX(-30px);\n}\n.duo-viewer-footer__navbar-thumbnail-item {\n margin: 0 2px;\n color: transparent;\n cursor: pointer;\n float: left;\n font-size: 0;\n width: 30px;\n opacity: 0.2;\n overflow: hidden;\n -webkit-transition: opacity 0.15s;\n transition: opacity 0.15s;\n}\n.duo-viewer-footer__navbar-thumbnail-item.viewer-current {\n opacity: 0.9;\n}\n.duo-viewer-footer__navbar-thumbnail-wrap {\n position: relative;\n overflow: hidden;\n width: 660px;\n height: inherit;\n margin: 0 auto;\n}\n.duo-viewer-footer__navbar-thumbnail-list {\n padding: 10px 0;\n width: auto;\n box-sizing: border-box;\n position: absolute;\n top: 0;\n left: 50%;\n transition: all 0.3s;\n}\n.duo-viewer-close {\n background-color: rgba(0, 0, 0, 0.9);\n border-radius: 0% 0% 0% 100%;\n cursor: pointer;\n height: 50px;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 0.15s;\n width: 50px;\n z-index: 10;\n line-height: 50px;\n text-align: center;\n}\n.duo-viewer-close__off {\n margin: 18px 12px;\n position: relative;\n width: 2em;\n height: 0.3em;\n background-color: #fff;\n transform: rotate(45deg);\n border-radius: 0.15em;\n}\n.duo-viewer-close__off:after {\n content: "";\n position: absolute;\n width: 2em;\n height: 0.3em;\n top: 0;\n left: 0;\n background-color: #fff;\n transform: rotate(90deg);\n border-radius: 0.15em;\n}\n',""]);const h=f},638:(e,t,r)=>{r.d(t,{Z:()=>h});var n=r(81),a=r.n(n),i=r(645),o=r.n(i),s=r(667),c=r.n(s),l=new URL(r(58),r.b),f=o()(a()),u=c()(l);f.push([e.id,'.duo-viewer {\n position: fixed;\n top: 0;\n left: 0;\n z-index: 10000;\n width: 100%;\n height: 100vh;\n}\n.duo-viewer-mask {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.6);\n z-index: 9;\n}\n.duo-viewer-mask__image {\n cursor: grab;\n height: 750px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 8;\n transition-property: transform, height, width;\n transition-duration: 0.3s, 0.3s, 0.3s;\n}\n.duo-viewer-footer {\n position: absolute;\n text-align: center;\n bottom: 0;\n left: 0;\n width: 100%;\n z-index: 10;\n}\n.duo-viewer-footer__title {\n color: #cfcfcf;\n position: absolute;\n bottom: 95px;\n left: 50%;\n transform: translate(-50%, 0%);\n z-index: 10;\n width: 100%;\n}\n.duo-viewer-footer__toolbar {\n position: absolute;\n bottom: 60px;\n left: 50%;\n transform: translate(-50%, 0%);\n z-index: 10;\n}\n.duo-viewer-footer__toolbar li {\n margin: 2px;\n background-color: rgba(0, 0, 0, 0.5);\n border-radius: 50%;\n cursor: pointer;\n float: left;\n height: 28px;\n overflow: hidden;\n -webkit-transition: background-color 0.15s;\n transition: background-color 0.15s;\n width: 28px;\n position: relative;\n}\n.duo-viewer-footer__toolbar li::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n content: "";\n display: inline-block;\n background: url('+u+') no-repeat;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__zoom-in::after {\n background-position: 4px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__zoom-out::after {\n background-position: -16px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__one-to-one::after {\n background-position: -35px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__reset::after {\n background-position: -56px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__prev::after {\n background-position: -77px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__play {\n width: 34px;\n height: 34px;\n margin-top: -2px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__play::after {\n background-position: -93px 6px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__next::after {\n background-position: -116px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__rotate-left::after {\n background-position: -136px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__rotate-right::after {\n background-position: -156px 3px;\n}\n.duo-viewer-footer__navbar {\n width: 100%;\n height: 50px;\n background: rgba(0, 0, 0, 0.9);\n overflow: hidden;\n}\n.duo-viewer-footer__navbar-thumbnail-image {\n height: 100%;\n width: 80px;\n -o-object-fit: fill;\n object-fit: fill;\n transform: translateX(-30px);\n}\n.duo-viewer-footer__navbar-thumbnail-item {\n margin: 0 2px;\n color: transparent;\n cursor: pointer;\n float: left;\n font-size: 0;\n width: 30px;\n opacity: 0.2;\n overflow: hidden;\n -webkit-transition: opacity 0.15s;\n transition: opacity 0.15s;\n}\n.duo-viewer-footer__navbar-thumbnail-item.viewer-current {\n opacity: 0.9;\n}\n.duo-viewer-footer__navbar-thumbnail-wrap {\n position: relative;\n overflow: hidden;\n width: 660px;\n height: inherit;\n margin: 0 auto;\n}\n.duo-viewer-footer__navbar-thumbnail-list {\n padding: 10px 0;\n width: auto;\n box-sizing: border-box;\n position: absolute;\n top: 0;\n left: 50%;\n transition: all 0.3s;\n}\n.duo-viewer-close {\n background-color: rgba(0, 0, 0, 0.9);\n border-radius: 0% 0% 0% 100%;\n cursor: pointer;\n height: 50px;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 0.15s;\n width: 50px;\n z-index: 10;\n line-height: 50px;\n text-align: center;\n}\n.duo-viewer-close__off {\n margin: 18px 12px;\n position: relative;\n width: 2em;\n height: 0.3em;\n background-color: #fff;\n transform: rotate(45deg);\n border-radius: 0.15em;\n}\n.duo-viewer-close__off:after {\n content: "";\n position: absolute;\n width: 2em;\n height: 0.3em;\n top: 0;\n left: 0;\n background-color: #fff;\n transform: rotate(90deg);\n border-radius: 0.15em;\n}\n',""]);const h=f},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,a,i){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(n)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(o[c]=!0)}for(var l=0;l<e.length;l++){var f=[].concat(e[l]);n&&o[f[0]]||(void 0!==i&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=i),r&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=r):f[2]=r),a&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=a):f[4]="".concat(a)),t.push(f))}},t}},667:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:e=>{e.exports=function(e){return e[1]}},755:function(e,t){var r,n,a;n="undefined"!=typeof window?window:this,a=function(n,a){var i=[],o=Object.getPrototypeOf,s=i.slice,c=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},l=i.push,f=i.indexOf,u={},h=u.toString,d=u.hasOwnProperty,p=d.toString,v=p.call(Object),m={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},b=function(e){return null!=e&&e===e.window},y=n.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function T(e,t,r){var n,a,i=(r=r||y).createElement("script");if(i.text=e,t)for(n in w)(a=t[n]||t.getAttribute&&t.getAttribute(n))&&i.setAttribute(n,a);r.head.appendChild(i).parentNode.removeChild(i)}function E(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[h.call(e)]||"object":typeof e}var x="3.6.0",A=function(e,t){return new A.fn.init(e,t)};function _(e){var t=!!e&&"length"in e&&e.length,r=E(e);return!g(e)&&!b(e)&&("array"===r||0===t||"number"==typeof t&&t>0&&t-1 in e)}A.fn=A.prototype={jquery:x,constructor:A,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=A.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return A.each(this,e)},map:function(e){return this.pushStack(A.map(this,(function(t,r){return e.call(t,r,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(A.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(A.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,r=+e+(e<0?t:0);return this.pushStack(r>=0&&r<t?[this[r]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:i.sort,splice:i.splice},A.extend=A.fn.extend=function(){var e,t,r,n,a,i,o=arguments[0]||{},s=1,c=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[s]||{},s++),"object"==typeof o||g(o)||(o={}),s===c&&(o=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)n=e[t],"__proto__"!==t&&o!==n&&(l&&n&&(A.isPlainObject(n)||(a=Array.isArray(n)))?(r=o[t],i=a&&!Array.isArray(r)?[]:a||A.isPlainObject(r)?r:{},a=!1,o[t]=A.extend(l,i,n)):void 0!==n&&(o[t]=n));return o},A.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,r;return!(!e||"[object Object]"!==h.call(e)||(t=o(e))&&("function"!=typeof(r=d.call(t,"constructor")&&t.constructor)||p.call(r)!==v))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,r){T(e,{nonce:t&&t.nonce},r)},each:function(e,t){var r,n=0;if(_(e))for(r=e.length;n<r&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},makeArray:function(e,t){var r=t||[];return null!=e&&(_(Object(e))?A.merge(r,"string"==typeof e?[e]:e):l.call(r,e)),r},inArray:function(e,t,r){return null==t?-1:f.call(t,e,r)},merge:function(e,t){for(var r=+t.length,n=0,a=e.length;n<r;n++)e[a++]=t[n];return e.length=a,e},grep:function(e,t,r){for(var n=[],a=0,i=e.length,o=!r;a<i;a++)!t(e[a],a)!==o&&n.push(e[a]);return n},map:function(e,t,r){var n,a,i=0,o=[];if(_(e))for(n=e.length;i<n;i++)null!=(a=t(e[i],i,r))&&o.push(a);else for(i in e)null!=(a=t(e[i],i,r))&&o.push(a);return c(o)},guid:1,support:m}),"function"==typeof Symbol&&(A.fn[Symbol.iterator]=i[Symbol.iterator]),A.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){u["[object "+t+"]"]=t.toLowerCase()}));var k=function(e){var t,r,n,a,i,o,s,c,l,f,u,h,d,p,v,m,g,b,y,w="sizzle"+1*new Date,T=e.document,E=0,x=0,A=ce(),_=ce(),k=ce(),S=ce(),C=function(e,t){return e===t&&(u=!0),0},O={}.hasOwnProperty,R=[],N=R.pop,D=R.push,I=R.push,L=R.slice,P=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",B="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\[[\\x20\\t\\r\\n\\f]*("+B+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+F+"*\\]",j=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",H=new RegExp(F+"+","g"),$=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),z=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),W=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),V=new RegExp(F+"|>"),X=new RegExp(j),G=new RegExp("^"+B+"$"),Y={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+j),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("^(?:"+M+")$","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")},q=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,J=/^[^{]+\{\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"),re=function(e,t){var r="0x"+e.slice(1)-65536;return t||(r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320))},ne=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ae=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){h()},oe=we((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{I.apply(R=L.call(T.childNodes),T.childNodes),R[T.childNodes.length].nodeType}catch(e){I={apply:R.length?function(e,t){D.apply(e,L.call(t))}:function(e,t){for(var r=e.length,n=0;e[r++]=t[n++];);e.length=r-1}}}function se(e,t,n,a){var i,s,l,f,u,p,g,b=t&&t.ownerDocument,T=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return n;if(!a&&(h(t),t=t||d,v)){if(11!==T&&(u=Q.exec(e)))if(i=u[1]){if(9===T){if(!(l=t.getElementById(i)))return n;if(l.id===i)return n.push(l),n}else if(b&&(l=b.getElementById(i))&&y(t,l)&&l.id===i)return n.push(l),n}else{if(u[2])return I.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&r.getElementsByClassName&&t.getElementsByClassName)return I.apply(n,t.getElementsByClassName(i)),n}if(r.qsa&&!S[e+" "]&&(!m||!m.test(e))&&(1!==T||"object"!==t.nodeName.toLowerCase())){if(g=e,b=t,1===T&&(V.test(e)||W.test(e))){for((b=ee.test(e)&&ge(t.parentNode)||t)===t&&r.scope||((f=t.getAttribute("id"))?f=f.replace(ne,ae):t.setAttribute("id",f=w)),s=(p=o(e)).length;s--;)p[s]=(f?"#"+f:":scope")+" "+ye(p[s]);g=p.join(",")}try{return I.apply(n,b.querySelectorAll(g)),n}catch(t){S(e,!0)}finally{f===w&&t.removeAttribute("id")}}}return c(e.replace($,"$1"),t,n,a)}function ce(){var e=[];return function t(r,a){return e.push(r+" ")>n.cacheLength&&delete t[e.shift()],t[r+" "]=a}}function le(e){return e[w]=!0,e}function fe(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var r=e.split("|"),a=r.length;a--;)n.attrHandle[r[a]]=t}function he(e,t){var r=t&&e,n=r&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(r)for(;r=r.nextSibling;)if(r===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var r=t.nodeName.toLowerCase();return("input"===r||"button"===r)&&t.type===e}}function ve(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 me(e){return le((function(t){return t=+t,le((function(r,n){for(var a,i=e([],r.length,t),o=i.length;o--;)r[a=i[o]]&&(r[a]=!(n[a]=r[a]))}))}))}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in r=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,r=e&&(e.ownerDocument||e).documentElement;return!q.test(t||r&&r.nodeName||"HTML")},h=se.setDocument=function(e){var t,a,o=e?e.ownerDocument||e:T;return o!=d&&9===o.nodeType&&o.documentElement?(p=(d=o).documentElement,v=!i(d),T!=d&&(a=d.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",ie,!1):a.attachEvent&&a.attachEvent("onunload",ie)),r.scope=fe((function(e){return p.appendChild(e).appendChild(d.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),r.attributes=fe((function(e){return e.className="i",!e.getAttribute("className")})),r.getElementsByTagName=fe((function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length})),r.getElementsByClassName=J.test(d.getElementsByClassName),r.getById=fe((function(e){return p.appendChild(e).id=w,!d.getElementsByName||!d.getElementsByName(w).length})),r.getById?(n.filter.ID=function(e){var t=e.replace(te,re);return function(e){return e.getAttribute("id")===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var r=t.getElementById(e);return r?[r]:[]}}):(n.filter.ID=function(e){var t=e.replace(te,re);return function(e){var r=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return r&&r.value===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var r,n,a,i=t.getElementById(e);if(i){if((r=i.getAttributeNode("id"))&&r.value===e)return[i];for(a=t.getElementsByName(e),n=0;i=a[n++];)if((r=i.getAttributeNode("id"))&&r.value===e)return[i]}return[]}}),n.find.TAG=r.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):r.qsa?t.querySelectorAll(e):void 0}:function(e,t){var r,n=[],a=0,i=t.getElementsByTagName(e);if("*"===e){for(;r=i[a++];)1===r.nodeType&&n.push(r);return n}return i},n.find.CLASS=r.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&v)return t.getElementsByClassName(e)},g=[],m=[],(r.qsa=J.test(d.querySelectorAll))&&(fe((function(e){var t;p.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+M+")"),e.querySelectorAll("[id~="+w+"-]").length||m.push("~="),(t=d.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),fe((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&&m.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(r.matchesSelector=J.test(b=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&fe((function(e){r.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),g.push("!=",j)})),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),t=J.test(p.compareDocumentPosition),y=t||J.test(p.contains)?function(e,t){var r=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(r.contains?r.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},C=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!r.sortDetached&&t.compareDocumentPosition(e)===n?e==d||e.ownerDocument==T&&y(T,e)?-1:t==d||t.ownerDocument==T&&y(T,t)?1:f?P(f,e)-P(f,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var r,n=0,a=e.parentNode,i=t.parentNode,o=[e],s=[t];if(!a||!i)return e==d?-1:t==d?1:a?-1:i?1:f?P(f,e)-P(f,t):0;if(a===i)return he(e,t);for(r=e;r=r.parentNode;)o.unshift(r);for(r=t;r=r.parentNode;)s.unshift(r);for(;o[n]===s[n];)n++;return n?he(o[n],s[n]):o[n]==T?-1:s[n]==T?1:0},d):d},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(h(e),r.matchesSelector&&v&&!S[t+" "]&&(!g||!g.test(t))&&(!m||!m.test(t)))try{var n=b.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){S(t,!0)}return se(t,d,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=d&&h(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=d&&h(e);var a=n.attrHandle[t.toLowerCase()],i=a&&O.call(n.attrHandle,t.toLowerCase())?a(e,t,!v):void 0;return void 0!==i?i:r.attributes||!v?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},se.escape=function(e){return(e+"").replace(ne,ae)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],a=0,i=0;if(u=!r.detectDuplicates,f=!r.sortStable&&e.slice(0),e.sort(C),u){for(;t=e[i++];)t===e[i]&&(a=n.push(i));for(;a--;)e.splice(n[a],1)}return f=null,e},a=se.getText=function(e){var t,r="",n=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)r+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[n++];)r+=a(t);return r},n=se.selectors={cacheLength:50,createPseudo:le,match:Y,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,re),e[3]=(e[3]||e[4]||e[5]||"").replace(te,re),"~="===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,r=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":r&&X.test(r)&&(t=o(r,!0))&&(t=r.indexOf(")",r.length-t)-r.length)&&(e[0]=e[0].slice(0,t),e[2]=r.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,re).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=A[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+F+"|$)"))&&A(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,r){return function(n){var a=se.attr(n,e);return null==a?"!="===t:!t||(a+="","="===t?a===r:"!="===t?a!==r:"^="===t?r&&0===a.indexOf(r):"*="===t?r&&a.indexOf(r)>-1:"$="===t?r&&a.slice(-r.length)===r:"~="===t?(" "+a.replace(H," ")+" ").indexOf(r)>-1:"|="===t&&(a===r||a.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,r,n,a){var i="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===n&&0===a?function(e){return!!e.parentNode}:function(t,r,c){var l,f,u,h,d,p,v=i!==o?"nextSibling":"previousSibling",m=t.parentNode,g=s&&t.nodeName.toLowerCase(),b=!c&&!s,y=!1;if(m){if(i){for(;v;){for(h=t;h=h[v];)if(s?h.nodeName.toLowerCase()===g:1===h.nodeType)return!1;p=v="only"===e&&!p&&"nextSibling"}return!0}if(p=[o?m.firstChild:m.lastChild],o&&b){for(y=(d=(l=(f=(u=(h=m)[w]||(h[w]={}))[h.uniqueID]||(u[h.uniqueID]={}))[e]||[])[0]===E&&l[1])&&l[2],h=d&&m.childNodes[d];h=++d&&h&&h[v]||(y=d=0)||p.pop();)if(1===h.nodeType&&++y&&h===t){f[e]=[E,d,y];break}}else if(b&&(y=d=(l=(f=(u=(h=t)[w]||(h[w]={}))[h.uniqueID]||(u[h.uniqueID]={}))[e]||[])[0]===E&&l[1]),!1===y)for(;(h=++d&&h&&h[v]||(y=d=0)||p.pop())&&((s?h.nodeName.toLowerCase()!==g:1!==h.nodeType)||!++y||(b&&((f=(u=h[w]||(h[w]={}))[h.uniqueID]||(u[h.uniqueID]={}))[e]=[E,y]),h!==t)););return(y-=a)===n||y%n==0&&y/n>=0}}},PSEUDO:function(e,t){var r,a=n.pseudos[e]||n.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[w]?a(t):a.length>1?(r=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,r){for(var n,i=a(e,t),o=i.length;o--;)e[n=P(e,i[o])]=!(r[n]=i[o])})):function(e){return a(e,0,r)}):a}},pseudos:{not:le((function(e){var t=[],r=[],n=s(e.replace($,"$1"));return n[w]?le((function(e,t,r,a){for(var i,o=n(e,null,a,[]),s=e.length;s--;)(i=o[s])&&(e[s]=!(t[s]=i))})):function(e,a,i){return t[0]=e,n(t,null,i,r),t[0]=null,!r.pop()}})),has:le((function(e){return function(t){return se(e,t).length>0}})),contains:le((function(e){return e=e.replace(te,re),function(t){return(t.textContent||a(t)).indexOf(e)>-1}})),lang:le((function(e){return G.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,re).toLowerCase(),function(t){var r;do{if(r=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(r=r.toLowerCase())===e||0===r.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var r=e.location&&e.location.hash;return r&&r.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ve(!1),disabled:ve(!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!n.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return K.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:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,r){return[r<0?r+t:r]})),even:me((function(e,t){for(var r=0;r<t;r+=2)e.push(r);return e})),odd:me((function(e,t){for(var r=1;r<t;r+=2)e.push(r);return e})),lt:me((function(e,t,r){for(var n=r<0?r+t:r>t?t:r;--n>=0;)e.push(n);return e})),gt:me((function(e,t,r){for(var n=r<0?r+t:r;++n<t;)e.push(n);return e}))}},n.pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})n.pseudos[t]=pe(t);function be(){}function ye(e){for(var t=0,r=e.length,n="";t<r;t++)n+=e[t].value;return n}function we(e,t,r){var n=t.dir,a=t.next,i=a||n,o=r&&"parentNode"===i,s=x++;return t.first?function(t,r,a){for(;t=t[n];)if(1===t.nodeType||o)return e(t,r,a);return!1}:function(t,r,c){var l,f,u,h=[E,s];if(c){for(;t=t[n];)if((1===t.nodeType||o)&&e(t,r,c))return!0}else for(;t=t[n];)if(1===t.nodeType||o)if(f=(u=t[w]||(t[w]={}))[t.uniqueID]||(u[t.uniqueID]={}),a&&a===t.nodeName.toLowerCase())t=t[n]||t;else{if((l=f[i])&&l[0]===E&&l[1]===s)return h[2]=l[2];if(f[i]=h,h[2]=e(t,r,c))return!0}return!1}}function Te(e){return e.length>1?function(t,r,n){for(var a=e.length;a--;)if(!e[a](t,r,n))return!1;return!0}:e[0]}function Ee(e,t,r,n,a){for(var i,o=[],s=0,c=e.length,l=null!=t;s<c;s++)(i=e[s])&&(r&&!r(i,n,a)||(o.push(i),l&&t.push(s)));return o}function xe(e,t,r,n,a,i){return n&&!n[w]&&(n=xe(n)),a&&!a[w]&&(a=xe(a,i)),le((function(i,o,s,c){var l,f,u,h=[],d=[],p=o.length,v=i||function(e,t,r){for(var n=0,a=t.length;n<a;n++)se(e,t[n],r);return r}(t||"*",s.nodeType?[s]:s,[]),m=!e||!i&&t?v:Ee(v,h,e,s,c),g=r?a||(i?e:p||n)?[]:o:m;if(r&&r(m,g,s,c),n)for(l=Ee(g,d),n(l,[],s,c),f=l.length;f--;)(u=l[f])&&(g[d[f]]=!(m[d[f]]=u));if(i){if(a||e){if(a){for(l=[],f=g.length;f--;)(u=g[f])&&l.push(m[f]=u);a(null,g=[],l,c)}for(f=g.length;f--;)(u=g[f])&&(l=a?P(i,u):h[f])>-1&&(i[l]=!(o[l]=u))}}else g=Ee(g===o?g.splice(p,g.length):g),a?a(null,o,g,c):I.apply(o,g)}))}function Ae(e){for(var t,r,a,i=e.length,o=n.relative[e[0].type],s=o||n.relative[" "],c=o?1:0,f=we((function(e){return e===t}),s,!0),u=we((function(e){return P(t,e)>-1}),s,!0),h=[function(e,r,n){var a=!o&&(n||r!==l)||((t=r).nodeType?f(e,r,n):u(e,r,n));return t=null,a}];c<i;c++)if(r=n.relative[e[c].type])h=[we(Te(h),r)];else{if((r=n.filter[e[c].type].apply(null,e[c].matches))[w]){for(a=++c;a<i&&!n.relative[e[a].type];a++);return xe(c>1&&Te(h),c>1&&ye(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace($,"$1"),r,c<a&&Ae(e.slice(c,a)),a<i&&Ae(e=e.slice(a)),a<i&&ye(e))}h.push(r)}return Te(h)}return be.prototype=n.filters=n.pseudos,n.setFilters=new be,o=se.tokenize=function(e,t){var r,a,i,o,s,c,l,f=_[e+" "];if(f)return t?0:f.slice(0);for(s=e,c=[],l=n.preFilter;s;){for(o in r&&!(a=z.exec(s))||(a&&(s=s.slice(a[0].length)||s),c.push(i=[])),r=!1,(a=W.exec(s))&&(r=a.shift(),i.push({value:r,type:a[0].replace($," ")}),s=s.slice(r.length)),n.filter)!(a=Y[o].exec(s))||l[o]&&!(a=l[o](a))||(r=a.shift(),i.push({value:r,type:o,matches:a}),s=s.slice(r.length));if(!r)break}return t?s.length:s?se.error(e):_(e,c).slice(0)},s=se.compile=function(e,t){var r,a=[],i=[],s=k[e+" "];if(!s){for(t||(t=o(e)),r=t.length;r--;)(s=Ae(t[r]))[w]?a.push(s):i.push(s);s=k(e,function(e,t){var r=t.length>0,a=e.length>0,i=function(i,o,s,c,f){var u,p,m,g=0,b="0",y=i&&[],w=[],T=l,x=i||a&&n.find.TAG("*",f),A=E+=null==T?1:Math.random()||.1,_=x.length;for(f&&(l=o==d||o||f);b!==_&&null!=(u=x[b]);b++){if(a&&u){for(p=0,o||u.ownerDocument==d||(h(u),s=!v);m=e[p++];)if(m(u,o||d,s)){c.push(u);break}f&&(E=A)}r&&((u=!m&&u)&&g--,i&&y.push(u))}if(g+=b,r&&b!==g){for(p=0;m=t[p++];)m(y,w,o,s);if(i){if(g>0)for(;b--;)y[b]||w[b]||(w[b]=N.call(c));w=Ee(w)}I.apply(c,w),f&&!i&&w.length>0&&g+t.length>1&&se.uniqueSort(c)}return f&&(E=A,l=T),y};return r?le(i):i}(i,a)),s.selector=e}return s},c=se.select=function(e,t,r,a){var i,c,l,f,u,h="function"==typeof e&&e,d=!a&&o(e=h.selector||e);if(r=r||[],1===d.length){if((c=d[0]=d[0].slice(0)).length>2&&"ID"===(l=c[0]).type&&9===t.nodeType&&v&&n.relative[c[1].type]){if(!(t=(n.find.ID(l.matches[0].replace(te,re),t)||[])[0]))return r;h&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(i=Y.needsContext.test(e)?0:c.length;i--&&(l=c[i],!n.relative[f=l.type]);)if((u=n.find[f])&&(a=u(l.matches[0].replace(te,re),ee.test(c[0].type)&&ge(t.parentNode)||t))){if(c.splice(i,1),!(e=a.length&&ye(c)))return I.apply(r,a),r;break}}return(h||s(e,d))(a,t,!v,r,!t||ee.test(e)&&ge(t.parentNode)||t),r},r.sortStable=w.split("").sort(C).join("")===w,r.detectDuplicates=!!u,h(),r.sortDetached=fe((function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))})),fe((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||ue("type|href|height|width",(function(e,t,r){if(!r)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),r.attributes&&fe((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ue("value",(function(e,t,r){if(!r&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),fe((function(e){return null==e.getAttribute("disabled")}))||ue(M,(function(e,t,r){var n;if(!r)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null})),se}(n);A.find=k,A.expr=k.selectors,A.expr[":"]=A.expr.pseudos,A.uniqueSort=A.unique=k.uniqueSort,A.text=k.getText,A.isXMLDoc=k.isXML,A.contains=k.contains,A.escapeSelector=k.escape;var S=function(e,t,r){for(var n=[],a=void 0!==r;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&A(e).is(r))break;n.push(e)}return n},C=function(e,t){for(var r=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&r.push(e);return r},O=A.expr.match.needsContext;function R(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,t,r){return g(t)?A.grep(e,(function(e,n){return!!t.call(e,n,e)!==r})):t.nodeType?A.grep(e,(function(e){return e===t!==r})):"string"!=typeof t?A.grep(e,(function(e){return f.call(t,e)>-1!==r})):A.filter(t,e,r)}A.filter=function(e,t,r){var n=t[0];return r&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?A.find.matchesSelector(n,e)?[n]:[]:A.find.matches(e,A.grep(t,(function(e){return 1===e.nodeType})))},A.fn.extend({find:function(e){var t,r,n=this.length,a=this;if("string"!=typeof e)return this.pushStack(A(e).filter((function(){for(t=0;t<n;t++)if(A.contains(a[t],this))return!0})));for(r=this.pushStack([]),t=0;t<n;t++)A.find(e,a[t],r);return n>1?A.uniqueSort(r):r},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&O.test(e)?A(e):e||[],!1).length}});var I,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(A.fn.init=function(e,t,r){var n,a;if(!e)return this;if(r=r||I,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:L.exec(e))||!n[1]&&t)return!t||t.jquery?(t||r).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof A?t[0]:t,A.merge(this,A.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),N.test(n[1])&&A.isPlainObject(t))for(n in t)g(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(a=y.getElementById(n[2]))&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==r.ready?r.ready(e):e(A):A.makeArray(e,this)}).prototype=A.fn,I=A(y);var P=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function F(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}A.fn.extend({has:function(e){var t=A(e,this),r=t.length;return this.filter((function(){for(var e=0;e<r;e++)if(A.contains(this,t[e]))return!0}))},closest:function(e,t){var r,n=0,a=this.length,i=[],o="string"!=typeof e&&A(e);if(!O.test(e))for(;n<a;n++)for(r=this[n];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(o?o.index(r)>-1:1===r.nodeType&&A.find.matchesSelector(r,e))){i.push(r);break}return this.pushStack(i.length>1?A.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?f.call(A(e),this[0]):f.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(A.uniqueSort(A.merge(this.get(),A(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),A.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,r){return S(e,"parentNode",r)},next:function(e){return F(e,"nextSibling")},prev:function(e){return F(e,"previousSibling")},nextAll:function(e){return S(e,"nextSibling")},prevAll:function(e){return S(e,"previousSibling")},nextUntil:function(e,t,r){return S(e,"nextSibling",r)},prevUntil:function(e,t,r){return S(e,"previousSibling",r)},siblings:function(e){return C((e.parentNode||{}).firstChild,e)},children:function(e){return C(e.firstChild)},contents:function(e){return null!=e.contentDocument&&o(e.contentDocument)?e.contentDocument:(R(e,"template")&&(e=e.content||e),A.merge([],e.childNodes))}},(function(e,t){A.fn[e]=function(r,n){var a=A.map(this,t,r);return"Until"!==e.slice(-5)&&(n=r),n&&"string"==typeof n&&(a=A.filter(n,a)),this.length>1&&(M[e]||A.uniqueSort(a),P.test(e)&&a.reverse()),this.pushStack(a)}}));var B=/[^\x20\t\r\n\f]+/g;function U(e){return e}function j(e){throw e}function H(e,t,r,n){var a;try{e&&g(a=e.promise)?a.call(e).done(t).fail(r):e&&g(a=e.then)?a.call(e,t,r):t.apply(void 0,[e].slice(n))}catch(e){r.apply(void 0,[e])}}A.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return A.each(e.match(B)||[],(function(e,r){t[r]=!0})),t}(e):A.extend({},e);var t,r,n,a,i=[],o=[],s=-1,c=function(){for(a=a||e.once,n=t=!0;o.length;s=-1)for(r=o.shift();++s<i.length;)!1===i[s].apply(r[0],r[1])&&e.stopOnFalse&&(s=i.length,r=!1);e.memory||(r=!1),t=!1,a&&(i=r?[]:"")},l={add:function(){return i&&(r&&!t&&(s=i.length-1,o.push(r)),function t(r){A.each(r,(function(r,n){g(n)?e.unique&&l.has(n)||i.push(n):n&&n.length&&"string"!==E(n)&&t(n)}))}(arguments),r&&!t&&c()),this},remove:function(){return A.each(arguments,(function(e,t){for(var r;(r=A.inArray(t,i,r))>-1;)i.splice(r,1),r<=s&&s--})),this},has:function(e){return e?A.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return a=o=[],i=r="",this},disabled:function(){return!i},lock:function(){return a=o=[],r||t||(i=r=""),this},locked:function(){return!!a},fireWith:function(e,r){return a||(r=[e,(r=r||[]).slice?r.slice():r],o.push(r),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!n}};return l},A.extend({Deferred:function(e){var t=[["notify","progress",A.Callbacks("memory"),A.Callbacks("memory"),2],["resolve","done",A.Callbacks("once memory"),A.Callbacks("once memory"),0,"resolved"],["reject","fail",A.Callbacks("once memory"),A.Callbacks("once memory"),1,"rejected"]],r="pending",a={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var e=arguments;return A.Deferred((function(r){A.each(t,(function(t,n){var a=g(e[n[4]])&&e[n[4]];i[n[1]]((function(){var e=a&&a.apply(this,arguments);e&&g(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[n[0]+"With"](this,a?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,a){var i=0;function o(e,t,r,a){return function(){var s=this,c=arguments,l=function(){var n,l;if(!(e<i)){if((n=r.apply(s,c))===t.promise())throw new TypeError("Thenable self-resolution");l=n&&("object"==typeof n||"function"==typeof n)&&n.then,g(l)?a?l.call(n,o(i,t,U,a),o(i,t,j,a)):(i++,l.call(n,o(i,t,U,a),o(i,t,j,a),o(i,t,U,t.notifyWith))):(r!==U&&(s=void 0,c=[n]),(a||t.resolveWith)(s,c))}},f=a?l:function(){try{l()}catch(n){A.Deferred.exceptionHook&&A.Deferred.exceptionHook(n,f.stackTrace),e+1>=i&&(r!==j&&(s=void 0,c=[n]),t.rejectWith(s,c))}};e?f():(A.Deferred.getStackHook&&(f.stackTrace=A.Deferred.getStackHook()),n.setTimeout(f))}}return A.Deferred((function(n){t[0][3].add(o(0,n,g(a)?a:U,n.notifyWith)),t[1][3].add(o(0,n,g(e)?e:U)),t[2][3].add(o(0,n,g(r)?r:j))})).promise()},promise:function(e){return null!=e?A.extend(e,a):a}},i={};return A.each(t,(function(e,n){var o=n[2],s=n[5];a[n[1]]=o.add,s&&o.add((function(){r=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=o.fireWith})),a.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,r=t,n=Array(r),a=s.call(arguments),i=A.Deferred(),o=function(e){return function(r){n[e]=this,a[e]=arguments.length>1?s.call(arguments):r,--t||i.resolveWith(n,a)}};if(t<=1&&(H(e,i.done(o(r)).resolve,i.reject,!t),"pending"===i.state()||g(a[r]&&a[r].then)))return i.then();for(;r--;)H(a[r],o(r),i.reject);return i.promise()}});var $=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;A.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&$.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},A.readyException=function(e){n.setTimeout((function(){throw e}))};var z=A.Deferred();function W(){y.removeEventListener("DOMContentLoaded",W),n.removeEventListener("load",W),A.ready()}A.fn.ready=function(e){return z.then(e).catch((function(e){A.readyException(e)})),this},A.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--A.readyWait:A.isReady)||(A.isReady=!0,!0!==e&&--A.readyWait>0||z.resolveWith(y,[A]))}}),A.ready.then=z.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?n.setTimeout(A.ready):(y.addEventListener("DOMContentLoaded",W),n.addEventListener("load",W));var V=function(e,t,r,n,a,i,o){var s=0,c=e.length,l=null==r;if("object"===E(r))for(s in a=!0,r)V(e,t,s,r[s],!0,i,o);else if(void 0!==n&&(a=!0,g(n)||(o=!0),l&&(o?(t.call(e,n),t=null):(l=t,t=function(e,t,r){return l.call(A(e),r)})),t))for(;s<c;s++)t(e[s],r,o?n:n.call(e[s],s,t(e[s],r)));return a?e:l?t.call(e):c?t(e[0],r):i},X=/^-ms-/,G=/-([a-z])/g;function Y(e,t){return t.toUpperCase()}function q(e){return e.replace(X,"ms-").replace(G,Y)}var K=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Z(){this.expando=A.expando+Z.uid++}Z.uid=1,Z.prototype={cache:function(e){var t=e[this.expando];return t||(t={},K(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,r){var n,a=this.cache(e);if("string"==typeof t)a[q(t)]=r;else for(n in t)a[q(n)]=t[n];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][q(t)]},access:function(e,t,r){return void 0===t||t&&"string"==typeof t&&void 0===r?this.get(e,t):(this.set(e,t,r),void 0!==r?r:t)},remove:function(e,t){var r,n=e[this.expando];if(void 0!==n){if(void 0!==t){r=(t=Array.isArray(t)?t.map(q):(t=q(t))in n?[t]:t.match(B)||[]).length;for(;r--;)delete n[t[r]]}(void 0===t||A.isEmptyObject(n))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!A.isEmptyObject(t)}};var J=new Z,Q=new Z,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function re(e,t,r){var n;if(void 0===r&&1===e.nodeType)if(n="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(r=e.getAttribute(n))){try{r=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(r)}catch(e){}Q.set(e,t,r)}else r=void 0;return r}A.extend({hasData:function(e){return Q.hasData(e)||J.hasData(e)},data:function(e,t,r){return Q.access(e,t,r)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,r){return J.access(e,t,r)},_removeData:function(e,t){J.remove(e,t)}}),A.fn.extend({data:function(e,t){var r,n,a,i=this[0],o=i&&i.attributes;if(void 0===e){if(this.length&&(a=Q.get(i),1===i.nodeType&&!J.get(i,"hasDataAttrs"))){for(r=o.length;r--;)o[r]&&0===(n=o[r].name).indexOf("data-")&&(n=q(n.slice(5)),re(i,n,a[n]));J.set(i,"hasDataAttrs",!0)}return a}return"object"==typeof e?this.each((function(){Q.set(this,e)})):V(this,(function(t){var r;if(i&&void 0===t)return void 0!==(r=Q.get(i,e))||void 0!==(r=re(i,e))?r:void 0;this.each((function(){Q.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),A.extend({queue:function(e,t,r){var n;if(e)return t=(t||"fx")+"queue",n=J.get(e,t),r&&(!n||Array.isArray(r)?n=J.access(e,t,A.makeArray(r)):n.push(r)),n||[]},dequeue:function(e,t){t=t||"fx";var r=A.queue(e,t),n=r.length,a=r.shift(),i=A._queueHooks(e,t);"inprogress"===a&&(a=r.shift(),n--),a&&("fx"===t&&r.unshift("inprogress"),delete i.stop,a.call(e,(function(){A.dequeue(e,t)}),i)),!n&&i&&i.empty.fire()},_queueHooks:function(e,t){var r=t+"queueHooks";return J.get(e,r)||J.access(e,r,{empty:A.Callbacks("once memory").add((function(){J.remove(e,[t+"queue",r])}))})}}),A.fn.extend({queue:function(e,t){var r=2;return"string"!=typeof e&&(t=e,e="fx",r--),arguments.length<r?A.queue(this[0],e):void 0===t?this:this.each((function(){var r=A.queue(this,e,t);A._queueHooks(this,e),"fx"===e&&"inprogress"!==r[0]&&A.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){A.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var r,n=1,a=A.Deferred(),i=this,o=this.length,s=function(){--n||a.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(r=J.get(i[o],e+"queueHooks"))&&r.empty&&(n++,r.empty.add(s));return s(),a.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ae=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],oe=y.documentElement,se=function(e){return A.contains(e.ownerDocument,e)},ce={composed:!0};oe.getRootNode&&(se=function(e){return A.contains(e.ownerDocument,e)||e.getRootNode(ce)===e.ownerDocument});var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===A.css(e,"display")};function fe(e,t,r,n){var a,i,o=20,s=n?function(){return n.cur()}:function(){return A.css(e,t,"")},c=s(),l=r&&r[3]||(A.cssNumber[t]?"":"px"),f=e.nodeType&&(A.cssNumber[t]||"px"!==l&&+c)&&ae.exec(A.css(e,t));if(f&&f[3]!==l){for(c/=2,l=l||f[3],f=+c||1;o--;)A.style(e,t,f+l),(1-i)*(1-(i=s()/c||.5))<=0&&(o=0),f/=i;f*=2,A.style(e,t,f+l),r=r||[]}return r&&(f=+f||+c||0,a=r[1]?f+(r[1]+1)*r[2]:+r[2],n&&(n.unit=l,n.start=f,n.end=a)),a}var ue={};function he(e){var t,r=e.ownerDocument,n=e.nodeName,a=ue[n];return a||(t=r.body.appendChild(r.createElement(n)),a=A.css(t,"display"),t.parentNode.removeChild(t),"none"===a&&(a="block"),ue[n]=a,a)}function de(e,t){for(var r,n,a=[],i=0,o=e.length;i<o;i++)(n=e[i]).style&&(r=n.style.display,t?("none"===r&&(a[i]=J.get(n,"display")||null,a[i]||(n.style.display="")),""===n.style.display&&le(n)&&(a[i]=he(n))):"none"!==r&&(a[i]="none",J.set(n,"display",r)));for(i=0;i<o;i++)null!=a[i]&&(e[i].style.display=a[i]);return e}A.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){le(this)?A(this).show():A(this).hide()}))}});var pe,ve,me=/^(?:checkbox|radio)$/i,ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,be=/^$|^module$|\/(?:java|ecma)script/i;pe=y.createDocumentFragment().appendChild(y.createElement("div")),(ve=y.createElement("input")).setAttribute("type","radio"),ve.setAttribute("checked","checked"),ve.setAttribute("name","t"),pe.appendChild(ve),m.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="<option></option>",m.option=!!pe.lastChild;var ye={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 we(e,t){var r;return r=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&R(e,t)?A.merge([e],r):r}function Te(e,t){for(var r=0,n=e.length;r<n;r++)J.set(e[r],"globalEval",!t||J.get(t[r],"globalEval"))}ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,m.option||(ye.optgroup=ye.option=[1,"<select multiple='multiple'>","</select>"]);var Ee=/<|&#?\w+;/;function xe(e,t,r,n,a){for(var i,o,s,c,l,f,u=t.createDocumentFragment(),h=[],d=0,p=e.length;d<p;d++)if((i=e[d])||0===i)if("object"===E(i))A.merge(h,i.nodeType?[i]:i);else if(Ee.test(i)){for(o=o||u.appendChild(t.createElement("div")),s=(ge.exec(i)||["",""])[1].toLowerCase(),c=ye[s]||ye._default,o.innerHTML=c[1]+A.htmlPrefilter(i)+c[2],f=c[0];f--;)o=o.lastChild;A.merge(h,o.childNodes),(o=u.firstChild).textContent=""}else h.push(t.createTextNode(i));for(u.textContent="",d=0;i=h[d++];)if(n&&A.inArray(i,n)>-1)a&&a.push(i);else if(l=se(i),o=we(u.appendChild(i),"script"),l&&Te(o),r)for(f=0;i=o[f++];)be.test(i.type||"")&&r.push(i);return u}var Ae=/^([^.]*)(?:\.(.+)|)/;function _e(){return!0}function ke(){return!1}function Se(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function Ce(e,t,r,n,a,i){var o,s;if("object"==typeof t){for(s in"string"!=typeof r&&(n=n||r,r=void 0),t)Ce(e,s,r,n,t[s],i);return e}if(null==n&&null==a?(a=r,n=r=void 0):null==a&&("string"==typeof r?(a=n,n=void 0):(a=n,n=r,r=void 0)),!1===a)a=ke;else if(!a)return e;return 1===i&&(o=a,a=function(e){return A().off(e),o.apply(this,arguments)},a.guid=o.guid||(o.guid=A.guid++)),e.each((function(){A.event.add(this,t,a,n,r)}))}function Oe(e,t,r){r?(J.set(e,t,!1),A.event.add(e,t,{namespace:!1,handler:function(e){var n,a,i=J.get(this,t);if(1&e.isTrigger&&this[t]){if(i.length)(A.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),J.set(this,t,i),n=r(this,t),this[t](),i!==(a=J.get(this,t))||n?J.set(this,t,!1):a={},i!==a)return e.stopImmediatePropagation(),e.preventDefault(),a&&a.value}else i.length&&(J.set(this,t,{value:A.event.trigger(A.extend(i[0],A.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&A.event.add(e,t,_e)}A.event={global:{},add:function(e,t,r,n,a){var i,o,s,c,l,f,u,h,d,p,v,m=J.get(e);if(K(e))for(r.handler&&(r=(i=r).handler,a=i.selector),a&&A.find.matchesSelector(oe,a),r.guid||(r.guid=A.guid++),(c=m.events)||(c=m.events=Object.create(null)),(o=m.handle)||(o=m.handle=function(t){return void 0!==A&&A.event.triggered!==t.type?A.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(B)||[""]).length;l--;)d=v=(s=Ae.exec(t[l])||[])[1],p=(s[2]||"").split(".").sort(),d&&(u=A.event.special[d]||{},d=(a?u.delegateType:u.bindType)||d,u=A.event.special[d]||{},f=A.extend({type:d,origType:v,data:n,handler:r,guid:r.guid,selector:a,needsContext:a&&A.expr.match.needsContext.test(a),namespace:p.join(".")},i),(h=c[d])||((h=c[d]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,n,p,o)||e.addEventListener&&e.addEventListener(d,o)),u.add&&(u.add.call(e,f),f.handler.guid||(f.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,f):h.push(f),A.event.global[d]=!0)},remove:function(e,t,r,n,a){var i,o,s,c,l,f,u,h,d,p,v,m=J.hasData(e)&&J.get(e);if(m&&(c=m.events)){for(l=(t=(t||"").match(B)||[""]).length;l--;)if(d=v=(s=Ae.exec(t[l])||[])[1],p=(s[2]||"").split(".").sort(),d){for(u=A.event.special[d]||{},h=c[d=(n?u.delegateType:u.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=i=h.length;i--;)f=h[i],!a&&v!==f.origType||r&&r.guid!==f.guid||s&&!s.test(f.namespace)||n&&n!==f.selector&&("**"!==n||!f.selector)||(h.splice(i,1),f.selector&&h.delegateCount--,u.remove&&u.remove.call(e,f));o&&!h.length&&(u.teardown&&!1!==u.teardown.call(e,p,m.handle)||A.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)A.event.remove(e,d+t[l],r,n,!0);A.isEmptyObject(c)&&J.remove(e,"handle events")}},dispatch:function(e){var t,r,n,a,i,o,s=new Array(arguments.length),c=A.event.fix(e),l=(J.get(this,"events")||Object.create(null))[c.type]||[],f=A.event.special[c.type]||{};for(s[0]=c,t=1;t<arguments.length;t++)s[t]=arguments[t];if(c.delegateTarget=this,!f.preDispatch||!1!==f.preDispatch.call(this,c)){for(o=A.event.handlers.call(this,c,l),t=0;(a=o[t++])&&!c.isPropagationStopped();)for(c.currentTarget=a.elem,r=0;(i=a.handlers[r++])&&!c.isImmediatePropagationStopped();)c.rnamespace&&!1!==i.namespace&&!c.rnamespace.test(i.namespace)||(c.handleObj=i,c.data=i.data,void 0!==(n=((A.event.special[i.origType]||{}).handle||i.handler).apply(a.elem,s))&&!1===(c.result=n)&&(c.preventDefault(),c.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,c),c.result}},handlers:function(e,t){var r,n,a,i,o,s=[],c=t.delegateCount,l=e.target;if(c&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(i=[],o={},r=0;r<c;r++)void 0===o[a=(n=t[r]).selector+" "]&&(o[a]=n.needsContext?A(a,this).index(l)>-1:A.find(a,this,null,[l]).length),o[a]&&i.push(n);i.length&&s.push({elem:l,handlers:i})}return l=this,c<t.length&&s.push({elem:l,handlers:t.slice(c)}),s},addProp:function(e,t){Object.defineProperty(A.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(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[A.expando]?e:new A.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&R(t,"input")&&Oe(t,"click",_e),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&R(t,"input")&&Oe(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&R(t,"input")&&J.get(t,"click")||R(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},A.removeEvent=function(e,t,r){e.removeEventListener&&e.removeEventListener(t,r)},A.Event=function(e,t){if(!(this instanceof A.Event))return new A.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?_e:ke,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&&A.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[A.expando]=!0},A.Event.prototype={constructor:A.Event,isDefaultPrevented:ke,isPropagationStopped:ke,isImmediatePropagationStopped:ke,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=_e,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=_e,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=_e,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},A.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},A.event.addProp),A.each({focus:"focusin",blur:"focusout"},(function(e,t){A.event.special[e]={setup:function(){return Oe(this,e,Se),!1},trigger:function(){return Oe(this,e),!0},_default:function(){return!0},delegateType:t}})),A.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){A.event.special[e]={delegateType:t,bindType:t,handle:function(e){var r,n=this,a=e.relatedTarget,i=e.handleObj;return a&&(a===n||A.contains(n,a))||(e.type=i.origType,r=i.handler.apply(this,arguments),e.type=t),r}}})),A.fn.extend({on:function(e,t,r,n){return Ce(this,e,t,r,n)},one:function(e,t,r,n){return Ce(this,e,t,r,n,1)},off:function(e,t,r){var n,a;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,A(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(a in e)this.off(a,t,e[a]);return this}return!1!==t&&"function"!=typeof t||(r=t,t=void 0),!1===r&&(r=ke),this.each((function(){A.event.remove(this,e,r,t)}))}});var Re=/<script|<style|<link/i,Ne=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ie(e,t){return R(e,"table")&&R(11!==t.nodeType?t:t.firstChild,"tr")&&A(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Pe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var r,n,a,i,o,s;if(1===t.nodeType){if(J.hasData(e)&&(s=J.get(e).events))for(a in J.remove(t,"handle events"),s)for(r=0,n=s[a].length;r<n;r++)A.event.add(t,a,s[a][r]);Q.hasData(e)&&(i=Q.access(e),o=A.extend({},i),Q.set(t,o))}}function Fe(e,t){var r=t.nodeName.toLowerCase();"input"===r&&me.test(e.type)?t.checked=e.checked:"input"!==r&&"textarea"!==r||(t.defaultValue=e.defaultValue)}function Be(e,t,r,n){t=c(t);var a,i,o,s,l,f,u=0,h=e.length,d=h-1,p=t[0],v=g(p);if(v||h>1&&"string"==typeof p&&!m.checkClone&&Ne.test(p))return e.each((function(a){var i=e.eq(a);v&&(t[0]=p.call(this,a,i.html())),Be(i,t,r,n)}));if(h&&(i=(a=xe(t,e[0].ownerDocument,!1,e,n)).firstChild,1===a.childNodes.length&&(a=i),i||n)){for(s=(o=A.map(we(a,"script"),Le)).length;u<h;u++)l=a,u!==d&&(l=A.clone(l,!0,!0),s&&A.merge(o,we(l,"script"))),r.call(e[u],l,u);if(s)for(f=o[o.length-1].ownerDocument,A.map(o,Pe),u=0;u<s;u++)l=o[u],be.test(l.type||"")&&!J.access(l,"globalEval")&&A.contains(f,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?A._evalUrl&&!l.noModule&&A._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},f):T(l.textContent.replace(De,""),l,f))}return e}function Ue(e,t,r){for(var n,a=t?A.filter(t,e):e,i=0;null!=(n=a[i]);i++)r||1!==n.nodeType||A.cleanData(we(n)),n.parentNode&&(r&&se(n)&&Te(we(n,"script")),n.parentNode.removeChild(n));return e}A.extend({htmlPrefilter:function(e){return e},clone:function(e,t,r){var n,a,i,o,s=e.cloneNode(!0),c=se(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||A.isXMLDoc(e)))for(o=we(s),n=0,a=(i=we(e)).length;n<a;n++)Fe(i[n],o[n]);if(t)if(r)for(i=i||we(e),o=o||we(s),n=0,a=i.length;n<a;n++)Me(i[n],o[n]);else Me(e,s);return(o=we(s,"script")).length>0&&Te(o,!c&&we(e,"script")),s},cleanData:function(e){for(var t,r,n,a=A.event.special,i=0;void 0!==(r=e[i]);i++)if(K(r)){if(t=r[J.expando]){if(t.events)for(n in t.events)a[n]?A.event.remove(r,n):A.removeEvent(r,n,t.handle);r[J.expando]=void 0}r[Q.expando]&&(r[Q.expando]=void 0)}}}),A.fn.extend({detach:function(e){return Ue(this,e,!0)},remove:function(e){return Ue(this,e)},text:function(e){return V(this,(function(e){return void 0===e?A.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||Ie(this,e).appendChild(e)}))},prepend:function(){return Be(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ie(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&&(A.cleanData(we(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return A.clone(this,e,t)}))},html:function(e){return V(this,(function(e){var t=this[0]||{},r=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Re.test(e)&&!ye[(ge.exec(e)||["",""])[1].toLowerCase()]){e=A.htmlPrefilter(e);try{for(;r<n;r++)1===(t=this[r]||{}).nodeType&&(A.cleanData(we(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 r=this.parentNode;A.inArray(this,e)<0&&(A.cleanData(we(this)),r&&r.replaceChild(t,this))}),e)}}),A.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){A.fn[e]=function(e){for(var r,n=[],a=A(e),i=a.length-1,o=0;o<=i;o++)r=o===i?this:this.clone(!0),A(a[o])[t](r),l.apply(n,r.get());return this.pushStack(n)}}));var je=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),He=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},$e=function(e,t,r){var n,a,i={};for(a in t)i[a]=e.style[a],e.style[a]=t[a];for(a in n=r.call(e),t)e.style[a]=i[a];return n},ze=new RegExp(ie.join("|"),"i");function We(e,t,r){var n,a,i,o,s=e.style;return(r=r||He(e))&&(""!==(o=r.getPropertyValue(t)||r[t])||se(e)||(o=A.style(e,t)),!m.pixelBoxStyles()&&je.test(o)&&ze.test(t)&&(n=s.width,a=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=r.width,s.width=n,s.minWidth=a,s.maxWidth=i)),void 0!==o?o+"":o}function Ve(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(f){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",f.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",oe.appendChild(l).appendChild(f);var e=n.getComputedStyle(f);r="1%"!==e.top,c=12===t(e.marginLeft),f.style.right="60%",o=36===t(e.right),a=36===t(e.width),f.style.position="absolute",i=12===t(f.offsetWidth/3),oe.removeChild(l),f=null}}function t(e){return Math.round(parseFloat(e))}var r,a,i,o,s,c,l=y.createElement("div"),f=y.createElement("div");f.style&&(f.style.backgroundClip="content-box",f.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===f.style.backgroundClip,A.extend(m,{boxSizingReliable:function(){return e(),a},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),c},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,r,a;return null==s&&(e=y.createElement("table"),t=y.createElement("tr"),r=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",r.style.height="9px",r.style.display="block",oe.appendChild(e).appendChild(t).appendChild(r),a=n.getComputedStyle(t),s=parseInt(a.height,10)+parseInt(a.borderTopWidth,10)+parseInt(a.borderBottomWidth,10)===t.offsetHeight,oe.removeChild(e)),s}}))}();var Xe=["Webkit","Moz","ms"],Ge=y.createElement("div").style,Ye={};function qe(e){return A.cssProps[e]||Ye[e]||(e in Ge?e:Ye[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),r=Xe.length;r--;)if((e=Xe[r]+t)in Ge)return e}(e)||e)}var Ke=/^(none|table(?!-c[ea]).+)/,Ze=/^--/,Je={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"};function et(e,t,r){var n=ae.exec(t);return n?Math.max(0,n[2]-(r||0))+(n[3]||"px"):t}function tt(e,t,r,n,a,i){var o="width"===t?1:0,s=0,c=0;if(r===(n?"border":"content"))return 0;for(;o<4;o+=2)"margin"===r&&(c+=A.css(e,r+ie[o],!0,a)),n?("content"===r&&(c-=A.css(e,"padding"+ie[o],!0,a)),"margin"!==r&&(c-=A.css(e,"border"+ie[o]+"Width",!0,a))):(c+=A.css(e,"padding"+ie[o],!0,a),"padding"!==r?c+=A.css(e,"border"+ie[o]+"Width",!0,a):s+=A.css(e,"border"+ie[o]+"Width",!0,a));return!n&&i>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-c-s-.5))||0),c}function rt(e,t,r){var n=He(e),a=(!m.boxSizingReliable()||r)&&"border-box"===A.css(e,"boxSizing",!1,n),i=a,o=We(e,t,n),s="offset"+t[0].toUpperCase()+t.slice(1);if(je.test(o)){if(!r)return o;o="auto"}return(!m.boxSizingReliable()&&a||!m.reliableTrDimensions()&&R(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===A.css(e,"display",!1,n))&&e.getClientRects().length&&(a="border-box"===A.css(e,"boxSizing",!1,n),(i=s in e)&&(o=e[s])),(o=parseFloat(o)||0)+tt(e,t,r||(a?"border":"content"),i,n,o)+"px"}function nt(e,t,r,n,a){return new nt.prototype.init(e,t,r,n,a)}A.extend({cssHooks:{opacity:{get:function(e,t){if(t){var r=We(e,"opacity");return""===r?"1":r}}}},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,r,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,i,o,s=q(t),c=Ze.test(t),l=e.style;if(c||(t=qe(s)),o=A.cssHooks[t]||A.cssHooks[s],void 0===r)return o&&"get"in o&&void 0!==(a=o.get(e,!1,n))?a:l[t];"string"==(i=typeof r)&&(a=ae.exec(r))&&a[1]&&(r=fe(e,t,a),i="number"),null!=r&&r==r&&("number"!==i||c||(r+=a&&a[3]||(A.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==r||0!==t.indexOf("background")||(l[t]="inherit"),o&&"set"in o&&void 0===(r=o.set(e,r,n))||(c?l.setProperty(t,r):l[t]=r))}},css:function(e,t,r,n){var a,i,o,s=q(t);return Ze.test(t)||(t=qe(s)),(o=A.cssHooks[t]||A.cssHooks[s])&&"get"in o&&(a=o.get(e,!0,r)),void 0===a&&(a=We(e,t,n)),"normal"===a&&t in Qe&&(a=Qe[t]),""===r||r?(i=parseFloat(a),!0===r||isFinite(i)?i||0:a):a}}),A.each(["height","width"],(function(e,t){A.cssHooks[t]={get:function(e,r,n){if(r)return!Ke.test(A.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?rt(e,t,n):$e(e,Je,(function(){return rt(e,t,n)}))},set:function(e,r,n){var a,i=He(e),o=!m.scrollboxSize()&&"absolute"===i.position,s=(o||n)&&"border-box"===A.css(e,"boxSizing",!1,i),c=n?tt(e,t,n,s,i):0;return s&&o&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-tt(e,t,"border",!1,i)-.5)),c&&(a=ae.exec(r))&&"px"!==(a[3]||"px")&&(e.style[t]=r,r=A.css(e,t)),et(0,r,c)}}})),A.cssHooks.marginLeft=Ve(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(We(e,"marginLeft"))||e.getBoundingClientRect().left-$e(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),A.each({margin:"",padding:"",border:"Width"},(function(e,t){A.cssHooks[e+t]={expand:function(r){for(var n=0,a={},i="string"==typeof r?r.split(" "):[r];n<4;n++)a[e+ie[n]+t]=i[n]||i[n-2]||i[0];return a}},"margin"!==e&&(A.cssHooks[e+t].set=et)})),A.fn.extend({css:function(e,t){return V(this,(function(e,t,r){var n,a,i={},o=0;if(Array.isArray(t)){for(n=He(e),a=t.length;o<a;o++)i[t[o]]=A.css(e,t[o],!1,n);return i}return void 0!==r?A.style(e,t,r):A.css(e,t)}),e,t,arguments.length>1)}}),A.Tween=nt,nt.prototype={constructor:nt,init:function(e,t,r,n,a,i){this.elem=e,this.prop=r,this.easing=a||A.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=i||(A.cssNumber[r]?"":"px")},cur:function(){var e=nt.propHooks[this.prop];return e&&e.get?e.get(this):nt.propHooks._default.get(this)},run:function(e){var t,r=nt.propHooks[this.prop];return this.options.duration?this.pos=t=A.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),r&&r.set?r.set(this):nt.propHooks._default.set(this),this}},nt.prototype.init.prototype=nt.prototype,nt.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=A.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){A.fx.step[e.prop]?A.fx.step[e.prop](e):1!==e.elem.nodeType||!A.cssHooks[e.prop]&&null==e.elem.style[qe(e.prop)]?e.elem[e.prop]=e.now:A.style(e.elem,e.prop,e.now+e.unit)}}},nt.propHooks.scrollTop=nt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},A.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},A.fx=nt.prototype.init,A.fx.step={};var at,it,ot=/^(?:toggle|show|hide)$/,st=/queueHooks$/;function ct(){it&&(!1===y.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ct):n.setTimeout(ct,A.fx.interval),A.fx.tick())}function lt(){return n.setTimeout((function(){at=void 0})),at=Date.now()}function ft(e,t){var r,n=0,a={height:e};for(t=t?1:0;n<4;n+=2-t)a["margin"+(r=ie[n])]=a["padding"+r]=e;return t&&(a.opacity=a.width=e),a}function ut(e,t,r){for(var n,a=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),i=0,o=a.length;i<o;i++)if(n=a[i].call(r,t,e))return n}function ht(e,t,r){var n,a,i=0,o=ht.prefilters.length,s=A.Deferred().always((function(){delete c.elem})),c=function(){if(a)return!1;for(var t=at||lt(),r=Math.max(0,l.startTime+l.duration-t),n=1-(r/l.duration||0),i=0,o=l.tweens.length;i<o;i++)l.tweens[i].run(n);return s.notifyWith(e,[l,n,r]),n<1&&o?r:(o||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:A.extend({},t),opts:A.extend(!0,{specialEasing:{},easing:A.easing._default},r),originalProperties:t,originalOptions:r,startTime:at||lt(),duration:r.duration,tweens:[],createTween:function(t,r){var n=A.Tween(e,l.opts,t,r,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(n),n},stop:function(t){var r=0,n=t?l.tweens.length:0;if(a)return this;for(a=!0;r<n;r++)l.tweens[r].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),f=l.props;for(function(e,t){var r,n,a,i,o;for(r in e)if(a=t[n=q(r)],i=e[r],Array.isArray(i)&&(a=i[1],i=e[r]=i[0]),r!==n&&(e[n]=i,delete e[r]),(o=A.cssHooks[n])&&"expand"in o)for(r in i=o.expand(i),delete e[n],i)r in e||(e[r]=i[r],t[r]=a);else t[n]=a}(f,l.opts.specialEasing);i<o;i++)if(n=ht.prefilters[i].call(l,e,f,l.opts))return g(n.stop)&&(A._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return A.map(f,ut,l),g(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),A.fx.timer(A.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l}A.Animation=A.extend(ht,{tweeners:{"*":[function(e,t){var r=this.createTween(e,t);return fe(r.elem,e,ae.exec(t),r),r}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match(B);for(var r,n=0,a=e.length;n<a;n++)r=e[n],ht.tweeners[r]=ht.tweeners[r]||[],ht.tweeners[r].unshift(t)},prefilters:[function(e,t,r){var n,a,i,o,s,c,l,f,u="width"in t||"height"in t,h=this,d={},p=e.style,v=e.nodeType&&le(e),m=J.get(e,"fxshow");for(n in r.queue||(null==(o=A._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,h.always((function(){h.always((function(){o.unqueued--,A.queue(e,"fx").length||o.empty.fire()}))}))),t)if(a=t[n],ot.test(a)){if(delete t[n],i=i||"toggle"===a,a===(v?"hide":"show")){if("show"!==a||!m||void 0===m[n])continue;v=!0}d[n]=m&&m[n]||A.style(e,n)}if((c=!A.isEmptyObject(t))||!A.isEmptyObject(d))for(n in u&&1===e.nodeType&&(r.overflow=[p.overflow,p.overflowX,p.overflowY],null==(l=m&&m.display)&&(l=J.get(e,"display")),"none"===(f=A.css(e,"display"))&&(l?f=l:(de([e],!0),l=e.style.display||l,f=A.css(e,"display"),de([e]))),("inline"===f||"inline-block"===f&&null!=l)&&"none"===A.css(e,"float")&&(c||(h.done((function(){p.display=l})),null==l&&(f=p.display,l="none"===f?"":f)),p.display="inline-block")),r.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=r.overflow[0],p.overflowX=r.overflow[1],p.overflowY=r.overflow[2]}))),c=!1,d)c||(m?"hidden"in m&&(v=m.hidden):m=J.access(e,"fxshow",{display:l}),i&&(m.hidden=!v),v&&de([e],!0),h.done((function(){for(n in v||de([e]),J.remove(e,"fxshow"),d)A.style(e,n,d[n])}))),c=ut(v?m[n]:0,n,h),n in m||(m[n]=c.start,v&&(c.end=c.start,c.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),A.speed=function(e,t,r){var n=e&&"object"==typeof e?A.extend({},e):{complete:r||!r&&t||g(e)&&e,duration:e,easing:r&&t||t&&!g(t)&&t};return A.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in A.fx.speeds?n.duration=A.fx.speeds[n.duration]:n.duration=A.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){g(n.old)&&n.old.call(this),n.queue&&A.dequeue(this,n.queue)},n},A.fn.extend({fadeTo:function(e,t,r,n){return this.filter(le).css("opacity",0).show().end().animate({opacity:t},e,r,n)},animate:function(e,t,r,n){var a=A.isEmptyObject(e),i=A.speed(t,r,n),o=function(){var t=ht(this,A.extend({},e),i);(a||J.get(this,"finish"))&&t.stop(!0)};return o.finish=o,a||!1===i.queue?this.each(o):this.queue(i.queue,o)},stop:function(e,t,r){var n=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,a=null!=e&&e+"queueHooks",i=A.timers,o=J.get(this);if(a)o[a]&&o[a].stop&&n(o[a]);else for(a in o)o[a]&&o[a].stop&&st.test(a)&&n(o[a]);for(a=i.length;a--;)i[a].elem!==this||null!=e&&i[a].queue!==e||(i[a].anim.stop(r),t=!1,i.splice(a,1));!t&&r||A.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,r=J.get(this),n=r[e+"queue"],a=r[e+"queueHooks"],i=A.timers,o=n?n.length:0;for(r.finish=!0,A.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<o;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete r.finish}))}}),A.each(["toggle","show","hide"],(function(e,t){var r=A.fn[t];A.fn[t]=function(e,n,a){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(ft(t,!0),e,n,a)}})),A.each({slideDown:ft("show"),slideUp:ft("hide"),slideToggle:ft("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){A.fn[e]=function(e,r,n){return this.animate(t,e,r,n)}})),A.timers=[],A.fx.tick=function(){var e,t=0,r=A.timers;for(at=Date.now();t<r.length;t++)(e=r[t])()||r[t]!==e||r.splice(t--,1);r.length||A.fx.stop(),at=void 0},A.fx.timer=function(e){A.timers.push(e),A.fx.start()},A.fx.interval=13,A.fx.start=function(){it||(it=!0,ct())},A.fx.stop=function(){it=null},A.fx.speeds={slow:600,fast:200,_default:400},A.fn.delay=function(e,t){return e=A.fx&&A.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var a=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(a)}}))},function(){var e=y.createElement("input"),t=y.createElement("select").appendChild(y.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=y.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var dt,pt=A.expr.attrHandle;A.fn.extend({attr:function(e,t){return V(this,A.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){A.removeAttr(this,e)}))}}),A.extend({attr:function(e,t,r){var n,a,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?A.prop(e,t,r):(1===i&&A.isXMLDoc(e)||(a=A.attrHooks[t.toLowerCase()]||(A.expr.match.bool.test(t)?dt:void 0)),void 0!==r?null===r?void A.removeAttr(e,t):a&&"set"in a&&void 0!==(n=a.set(e,r,t))?n:(e.setAttribute(t,r+""),r):a&&"get"in a&&null!==(n=a.get(e,t))?n:null==(n=A.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&R(e,"input")){var r=e.value;return e.setAttribute("type",t),r&&(e.value=r),t}}}},removeAttr:function(e,t){var r,n=0,a=t&&t.match(B);if(a&&1===e.nodeType)for(;r=a[n++];)e.removeAttribute(r)}}),dt={set:function(e,t,r){return!1===t?A.removeAttr(e,r):e.setAttribute(r,r),r}},A.each(A.expr.match.bool.source.match(/\w+/g),(function(e,t){var r=pt[t]||A.find.attr;pt[t]=function(e,t,n){var a,i,o=t.toLowerCase();return n||(i=pt[o],pt[o]=a,a=null!=r(e,t,n)?o:null,pt[o]=i),a}}));var vt=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;function gt(e){return(e.match(B)||[]).join(" ")}function bt(e){return e.getAttribute&&e.getAttribute("class")||""}function yt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(B)||[]}A.fn.extend({prop:function(e,t){return V(this,A.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[A.propFix[e]||e]}))}}),A.extend({prop:function(e,t,r){var n,a,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&A.isXMLDoc(e)||(t=A.propFix[t]||t,a=A.propHooks[t]),void 0!==r?a&&"set"in a&&void 0!==(n=a.set(e,r,t))?n:e[t]=r:a&&"get"in a&&null!==(n=a.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=A.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(A.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)}}),A.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){A.propFix[this.toLowerCase()]=this})),A.fn.extend({addClass:function(e){var t,r,n,a,i,o,s,c=0;if(g(e))return this.each((function(t){A(this).addClass(e.call(this,t,bt(this)))}));if((t=yt(e)).length)for(;r=this[c++];)if(a=bt(r),n=1===r.nodeType&&" "+gt(a)+" "){for(o=0;i=t[o++];)n.indexOf(" "+i+" ")<0&&(n+=i+" ");a!==(s=gt(n))&&r.setAttribute("class",s)}return this},removeClass:function(e){var t,r,n,a,i,o,s,c=0;if(g(e))return this.each((function(t){A(this).removeClass(e.call(this,t,bt(this)))}));if(!arguments.length)return this.attr("class","");if((t=yt(e)).length)for(;r=this[c++];)if(a=bt(r),n=1===r.nodeType&&" "+gt(a)+" "){for(o=0;i=t[o++];)for(;n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");a!==(s=gt(n))&&r.setAttribute("class",s)}return this},toggleClass:function(e,t){var r=typeof e,n="string"===r||Array.isArray(e);return"boolean"==typeof t&&n?t?this.addClass(e):this.removeClass(e):g(e)?this.each((function(r){A(this).toggleClass(e.call(this,r,bt(this),t),t)})):this.each((function(){var t,a,i,o;if(n)for(a=0,i=A(this),o=yt(e);t=o[a++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==r||((t=bt(this))&&J.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":J.get(this,"__className__")||""))}))},hasClass:function(e){var t,r,n=0;for(t=" "+e+" ";r=this[n++];)if(1===r.nodeType&&(" "+gt(bt(r))+" ").indexOf(t)>-1)return!0;return!1}});var wt=/\r/g;A.fn.extend({val:function(e){var t,r,n,a=this[0];return arguments.length?(n=g(e),this.each((function(r){var a;1===this.nodeType&&(null==(a=n?e.call(this,r,A(this).val()):e)?a="":"number"==typeof a?a+="":Array.isArray(a)&&(a=A.map(a,(function(e){return null==e?"":e+""}))),(t=A.valHooks[this.type]||A.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))}))):a?(t=A.valHooks[a.type]||A.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(r=t.get(a,"value"))?r:"string"==typeof(r=a.value)?r.replace(wt,""):null==r?"":r:void 0}}),A.extend({valHooks:{option:{get:function(e){var t=A.find.attr(e,"value");return null!=t?t:gt(A.text(e))}},select:{get:function(e){var t,r,n,a=e.options,i=e.selectedIndex,o="select-one"===e.type,s=o?null:[],c=o?i+1:a.length;for(n=i<0?c:o?i:0;n<c;n++)if(((r=a[n]).selected||n===i)&&!r.disabled&&(!r.parentNode.disabled||!R(r.parentNode,"optgroup"))){if(t=A(r).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var r,n,a=e.options,i=A.makeArray(t),o=a.length;o--;)((n=a[o]).selected=A.inArray(A.valHooks.option.get(n),i)>-1)&&(r=!0);return r||(e.selectedIndex=-1),i}}}}),A.each(["radio","checkbox"],(function(){A.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=A.inArray(A(e).val(),t)>-1}},m.checkOn||(A.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),m.focusin="onfocusin"in n;var Tt=/^(?:focusinfocus|focusoutblur)$/,Et=function(e){e.stopPropagation()};A.extend(A.event,{trigger:function(e,t,r,a){var i,o,s,c,l,f,u,h,p=[r||y],v=d.call(e,"type")?e.type:e,m=d.call(e,"namespace")?e.namespace.split("."):[];if(o=h=s=r=r||y,3!==r.nodeType&&8!==r.nodeType&&!Tt.test(v+A.event.triggered)&&(v.indexOf(".")>-1&&(m=v.split("."),v=m.shift(),m.sort()),l=v.indexOf(":")<0&&"on"+v,(e=e[A.expando]?e:new A.Event(v,"object"==typeof e&&e)).isTrigger=a?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:A.makeArray(t,[e]),u=A.event.special[v]||{},a||!u.trigger||!1!==u.trigger.apply(r,t))){if(!a&&!u.noBubble&&!b(r)){for(c=u.delegateType||v,Tt.test(c+v)||(o=o.parentNode);o;o=o.parentNode)p.push(o),s=o;s===(r.ownerDocument||y)&&p.push(s.defaultView||s.parentWindow||n)}for(i=0;(o=p[i++])&&!e.isPropagationStopped();)h=o,e.type=i>1?c:u.bindType||v,(f=(J.get(o,"events")||Object.create(null))[e.type]&&J.get(o,"handle"))&&f.apply(o,t),(f=l&&o[l])&&f.apply&&K(o)&&(e.result=f.apply(o,t),!1===e.result&&e.preventDefault());return e.type=v,a||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(p.pop(),t)||!K(r)||l&&g(r[v])&&!b(r)&&((s=r[l])&&(r[l]=null),A.event.triggered=v,e.isPropagationStopped()&&h.addEventListener(v,Et),r[v](),e.isPropagationStopped()&&h.removeEventListener(v,Et),A.event.triggered=void 0,s&&(r[l]=s)),e.result}},simulate:function(e,t,r){var n=A.extend(new A.Event,r,{type:e,isSimulated:!0});A.event.trigger(n,null,t)}}),A.fn.extend({trigger:function(e,t){return this.each((function(){A.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var r=this[0];if(r)return A.event.trigger(e,t,r,!0)}}),m.focusin||A.each({focus:"focusin",blur:"focusout"},(function(e,t){var r=function(e){A.event.simulate(t,e.target,A.event.fix(e))};A.event.special[t]={setup:function(){var n=this.ownerDocument||this.document||this,a=J.access(n,t);a||n.addEventListener(e,r,!0),J.access(n,t,(a||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,a=J.access(n,t)-1;a?J.access(n,t,a):(n.removeEventListener(e,r,!0),J.remove(n,t))}}}));var xt=n.location,At={guid:Date.now()},_t=/\?/;A.parseXML=function(e){var t,r;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){}return r=t&&t.getElementsByTagName("parsererror")[0],t&&!r||A.error("Invalid XML: "+(r?A.map(r.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var kt=/\[\]$/,St=/\r?\n/g,Ct=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Rt(e,t,r,n){var a;if(Array.isArray(t))A.each(t,(function(t,a){r||kt.test(e)?n(e,a):Rt(e+"["+("object"==typeof a&&null!=a?t:"")+"]",a,r,n)}));else if(r||"object"!==E(t))n(e,t);else for(a in t)Rt(e+"["+a+"]",t[a],r,n)}A.param=function(e,t){var r,n=[],a=function(e,t){var r=g(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==r?"":r)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!A.isPlainObject(e))A.each(e,(function(){a(this.name,this.value)}));else for(r in e)Rt(r,e[r],t,a);return n.join("&")},A.fn.extend({serialize:function(){return A.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=A.prop(this,"elements");return e?A.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!A(this).is(":disabled")&&Ot.test(this.nodeName)&&!Ct.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var r=A(this).val();return null==r?null:Array.isArray(r)?A.map(r,(function(e){return{name:t.name,value:e.replace(St,"\r\n")}})):{name:t.name,value:r.replace(St,"\r\n")}})).get()}});var Nt=/%20/g,Dt=/#.*$/,It=/([?&])_=[^&]*/,Lt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pt=/^(?:GET|HEAD)$/,Mt=/^\/\//,Ft={},Bt={},Ut="*/".concat("*"),jt=y.createElement("a");function Ht(e){return function(t,r){"string"!=typeof t&&(r=t,t="*");var n,a=0,i=t.toLowerCase().match(B)||[];if(g(r))for(;n=i[a++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(r)):(e[n]=e[n]||[]).push(r)}}function $t(e,t,r,n){var a={},i=e===Bt;function o(s){var c;return a[s]=!0,A.each(e[s]||[],(function(e,s){var l=s(t,r,n);return"string"!=typeof l||i||a[l]?i?!(c=l):void 0:(t.dataTypes.unshift(l),o(l),!1)})),c}return o(t.dataTypes[0])||!a["*"]&&o("*")}function zt(e,t){var r,n,a=A.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((a[r]?e:n||(n={}))[r]=t[r]);return n&&A.extend(!0,e,n),e}jt.href=xt.href,A.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ut,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":A.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?zt(zt(e,A.ajaxSettings),t):zt(A.ajaxSettings,e)},ajaxPrefilter:Ht(Ft),ajaxTransport:Ht(Bt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,a,i,o,s,c,l,f,u,h,d=A.ajaxSetup({},t),p=d.context||d,v=d.context&&(p.nodeType||p.jquery)?A(p):A.event,m=A.Deferred(),g=A.Callbacks("once memory"),b=d.statusCode||{},w={},T={},E="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(l){if(!o)for(o={};t=Lt.exec(i);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?i:null},setRequestHeader:function(e,t){return null==l&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==l&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)x.always(e[x.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||E;return r&&r.abort(t),_(0,t),this}};if(m.promise(x),d.url=((e||d.url||xt.href)+"").replace(Mt,xt.protocol+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(B)||[""],null==d.crossDomain){c=y.createElement("a");try{c.href=d.url,c.href=c.href,d.crossDomain=jt.protocol+"//"+jt.host!=c.protocol+"//"+c.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=A.param(d.data,d.traditional)),$t(Ft,d,t,x),l)return x;for(u in(f=A.event&&d.global)&&0==A.active++&&A.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Pt.test(d.type),a=d.url.replace(Dt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Nt,"+")):(h=d.url.slice(a.length),d.data&&(d.processData||"string"==typeof d.data)&&(a+=(_t.test(a)?"&":"?")+d.data,delete d.data),!1===d.cache&&(a=a.replace(It,"$1"),h=(_t.test(a)?"&":"?")+"_="+At.guid+++h),d.url=a+h),d.ifModified&&(A.lastModified[a]&&x.setRequestHeader("If-Modified-Since",A.lastModified[a]),A.etag[a]&&x.setRequestHeader("If-None-Match",A.etag[a])),(d.data&&d.hasContent&&!1!==d.contentType||t.contentType)&&x.setRequestHeader("Content-Type",d.contentType),x.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Ut+"; q=0.01":""):d.accepts["*"]),d.headers)x.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(!1===d.beforeSend.call(p,x,d)||l))return x.abort();if(E="abort",g.add(d.complete),x.done(d.success),x.fail(d.error),r=$t(Bt,d,t,x)){if(x.readyState=1,f&&v.trigger("ajaxSend",[x,d]),l)return x;d.async&&d.timeout>0&&(s=n.setTimeout((function(){x.abort("timeout")}),d.timeout));try{l=!1,r.send(w,_)}catch(e){if(l)throw e;_(-1,e)}}else _(-1,"No Transport");function _(e,t,o,c){var u,h,y,w,T,E=t;l||(l=!0,s&&n.clearTimeout(s),r=void 0,i=c||"",x.readyState=e>0?4:0,u=e>=200&&e<300||304===e,o&&(w=function(e,t,r){for(var n,a,i,o,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(a in s)if(s[a]&&s[a].test(n)){c.unshift(a);break}if(c[0]in r)i=c[0];else{for(a in r){if(!c[0]||e.converters[a+" "+c[0]]){i=a;break}o||(o=a)}i=i||o}if(i)return i!==c[0]&&c.unshift(i),r[i]}(d,x,o)),!u&&A.inArray("script",d.dataTypes)>-1&&A.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),w=function(e,t,r,n){var a,i,o,s,c,l={},f=e.dataTypes.slice();if(f[1])for(o in e.converters)l[o.toLowerCase()]=e.converters[o];for(i=f.shift();i;)if(e.responseFields[i]&&(r[e.responseFields[i]]=t),!c&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=i,i=f.shift())if("*"===i)i=c;else if("*"!==c&&c!==i){if(!(o=l[c+" "+i]||l["* "+i]))for(a in l)if((s=a.split(" "))[1]===i&&(o=l[c+" "+s[0]]||l["* "+s[0]])){!0===o?o=l[a]:!0!==l[a]&&(i=s[0],f.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 "+c+" to "+i}}}return{state:"success",data:t}}(d,w,x,u),u?(d.ifModified&&((T=x.getResponseHeader("Last-Modified"))&&(A.lastModified[a]=T),(T=x.getResponseHeader("etag"))&&(A.etag[a]=T)),204===e||"HEAD"===d.type?E="nocontent":304===e?E="notmodified":(E=w.state,h=w.data,u=!(y=w.error))):(y=E,!e&&E||(E="error",e<0&&(e=0))),x.status=e,x.statusText=(t||E)+"",u?m.resolveWith(p,[h,E,x]):m.rejectWith(p,[x,E,y]),x.statusCode(b),b=void 0,f&&v.trigger(u?"ajaxSuccess":"ajaxError",[x,d,u?h:y]),g.fireWith(p,[x,E]),f&&(v.trigger("ajaxComplete",[x,d]),--A.active||A.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,r){return A.get(e,t,r,"json")},getScript:function(e,t){return A.get(e,void 0,t,"script")}}),A.each(["get","post"],(function(e,t){A[t]=function(e,r,n,a){return g(r)&&(a=a||n,n=r,r=void 0),A.ajax(A.extend({url:e,type:t,dataType:a,data:r,success:n},A.isPlainObject(e)&&e))}})),A.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),A._evalUrl=function(e,t,r){return A.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){A.globalEval(e,t,r)}})},A.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=A(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 g(e)?this.each((function(t){A(this).wrapInner(e.call(this,t))})):this.each((function(){var t=A(this),r=t.contents();r.length?r.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(r){A(this).wrapAll(t?e.call(this,r):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){A(this).replaceWith(this.childNodes)})),this}}),A.expr.pseudos.hidden=function(e){return!A.expr.pseudos.visible(e)},A.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},A.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Wt={0:200,1223:204},Vt=A.ajaxSettings.xhr();m.cors=!!Vt&&"withCredentials"in Vt,m.ajax=Vt=!!Vt,A.ajaxTransport((function(e){var t,r;if(m.cors||Vt&&!e.crossDomain)return{send:function(a,i){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)s.setRequestHeader(o,a[o]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Wt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),A.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),A.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 A.globalEval(e),e}}}),A.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),A.ajaxTransport("script",(function(e){var t,r;if(e.crossDomain||e.scriptAttrs)return{send:function(n,a){t=A("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",r=function(e){t.remove(),r=null,e&&a("error"===e.type?404:200,e.type)}),y.head.appendChild(t[0])},abort:function(){r&&r()}}}));var Xt,Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;A.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||A.expando+"_"+At.guid++;return this[e]=!0,e}}),A.ajaxPrefilter("json jsonp",(function(e,t,r){var a,i,o,s=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return a=e.jsonpCallback=g(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Yt,"$1"+a):!1!==e.jsonp&&(e.url+=(_t.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return o||A.error(a+" was not called"),o[0]},e.dataTypes[0]="json",i=n[a],n[a]=function(){o=arguments},r.always((function(){void 0===i?A(n).removeProp(a):n[a]=i,e[a]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(a)),o&&g(i)&&i(o[0]),o=i=void 0})),"script"})),m.createHTMLDocument=((Xt=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xt.childNodes.length),A.parseHTML=function(e,t,r){return"string"!=typeof e?[]:("boolean"==typeof t&&(r=t,t=!1),t||(m.createHTMLDocument?((n=(t=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,t.head.appendChild(n)):t=y),i=!r&&[],(a=N.exec(e))?[t.createElement(a[1])]:(a=xe([e],t,i),i&&i.length&&A(i).remove(),A.merge([],a.childNodes)));var n,a,i},A.fn.load=function(e,t,r){var n,a,i,o=this,s=e.indexOf(" ");return s>-1&&(n=gt(e.slice(s)),e=e.slice(0,s)),g(t)?(r=t,t=void 0):t&&"object"==typeof t&&(a="POST"),o.length>0&&A.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done((function(e){i=arguments,o.html(n?A("<div>").append(A.parseHTML(e)).find(n):e)})).always(r&&function(e,t){o.each((function(){r.apply(this,i||[e.responseText,t,e])}))}),this},A.expr.pseudos.animated=function(e){return A.grep(A.timers,(function(t){return e===t.elem})).length},A.offset={setOffset:function(e,t,r){var n,a,i,o,s,c,l=A.css(e,"position"),f=A(e),u={};"static"===l&&(e.style.position="relative"),s=f.offset(),i=A.css(e,"top"),c=A.css(e,"left"),("absolute"===l||"fixed"===l)&&(i+c).indexOf("auto")>-1?(o=(n=f.position()).top,a=n.left):(o=parseFloat(i)||0,a=parseFloat(c)||0),g(t)&&(t=t.call(e,r,A.extend({},s))),null!=t.top&&(u.top=t.top-s.top+o),null!=t.left&&(u.left=t.left-s.left+a),"using"in t?t.using.call(e,u):f.css(u)}},A.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){A.offset.setOffset(this,e,t)}));var t,r,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),r=n.ownerDocument.defaultView,{top:t.top+r.pageYOffset,left:t.left+r.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,r,n=this[0],a={top:0,left:0};if("fixed"===A.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),r=n.ownerDocument,e=n.offsetParent||r.documentElement;e&&(e===r.body||e===r.documentElement)&&"static"===A.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((a=A(e).offset()).top+=A.css(e,"borderTopWidth",!0),a.left+=A.css(e,"borderLeftWidth",!0))}return{top:t.top-a.top-A.css(n,"marginTop",!0),left:t.left-a.left-A.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===A.css(e,"position");)e=e.offsetParent;return e||oe}))}}),A.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var r="pageYOffset"===t;A.fn[e]=function(n){return V(this,(function(e,n,a){var i;if(b(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===a)return i?i[t]:e[n];i?i.scrollTo(r?i.pageXOffset:a,r?a:i.pageYOffset):e[n]=a}),e,n,arguments.length)}})),A.each(["top","left"],(function(e,t){A.cssHooks[t]=Ve(m.pixelPosition,(function(e,r){if(r)return r=We(e,t),je.test(r)?A(e).position()[t]+"px":r}))})),A.each({Height:"height",Width:"width"},(function(e,t){A.each({padding:"inner"+e,content:t,"":"outer"+e},(function(r,n){A.fn[n]=function(a,i){var o=arguments.length&&(r||"boolean"!=typeof a),s=r||(!0===a||!0===i?"margin":"border");return V(this,(function(t,r,a){var i;return b(t)?0===n.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===a?A.css(t,r,s):A.style(t,r,a,s)}),t,o?a:void 0,o)}}))})),A.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){A.fn[t]=function(e){return this.on(t,e)}})),A.fn.extend({bind:function(e,t,r){return this.on(e,null,t,r)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,r,n){return this.on(t,e,r,n)},undelegate:function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),A.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){A.fn[t]=function(e,r){return arguments.length>0?this.on(t,null,e,r):this.trigger(t)}}));var qt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;A.proxy=function(e,t){var r,n,a;if("string"==typeof t&&(r=e[t],t=e,e=r),g(e))return n=s.call(arguments,2),a=function(){return e.apply(t||this,n.concat(s.call(arguments)))},a.guid=e.guid=e.guid||A.guid++,a},A.holdReady=function(e){e?A.readyWait++:A.ready(!0)},A.isArray=Array.isArray,A.parseJSON=JSON.parse,A.nodeName=R,A.isFunction=g,A.isWindow=b,A.camelCase=q,A.type=E,A.now=Date.now,A.isNumeric=function(e){var t=A.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},A.trim=function(e){return null==e?"":(e+"").replace(qt,"")},void 0===(r=function(){return A}.apply(t,[]))||(e.exports=r);var Kt=n.jQuery,Zt=n.$;return A.noConflict=function(e){return n.$===A&&(n.$=Zt),e&&n.jQuery===A&&(n.jQuery=Kt),A},void 0===a&&(n.jQuery=n.$=A),A},"object"==typeof e.exports?e.exports=n.document?a(n,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return a(e)}:a(n)},379:e=>{var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},o=[],s=0;s<e.length;s++){var c=e[s],l=n.base?c[0]+n.base:c[0],f=i[l]||0,u="".concat(l," ").concat(f);i[l]=f+1;var h=r(u),d={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==h)t[h].references++,t[h].updater(d);else{var p=a(d,n);n.byIndex=s,t.splice(s,0,{identifier:u,updater:p,references:1})}o.push(u)}return o}function a(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,a){var i=n(e=e||[],a=a||{});return function(e){e=e||[];for(var o=0;o<i.length;o++){var s=r(i[o]);t[s].references--}for(var c=n(e,a),l=0;l<i.length;l++){var f=r(i[l]);0===t[f].references&&(t[f].updater(),t.splice(f,1))}i=c}}},569:e=>{var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},216:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,r)=>{e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},795:e=>{e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,a&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},554:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC"},58:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC"}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={id:n,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.m=e,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.b=document.baseURI||self.location.href;var n={};(()=>{r.d(n,{Ip:()=>lp,Ud:()=>ks,$p:()=>Vd,OO:()=>Kd,Rf:()=>tp,ZP:()=>hp});var e=r(755),t=1200,a=1252,i=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],o={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},s=function(e){-1!=i.indexOf(e)&&(a=o[0]=e)},c=function(e){t=e,s(e)};function l(){c(1200),s(1252)}function f(e){for(var t=[],r=0,n=e.length;r<n;++r)t[r]=e.charCodeAt(r);return t}function u(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var h,d=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return 255==t&&254==r?function(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return t.join("")}(e.slice(2)):254==t&&255==r?u(e.slice(2)):65279==t?e.slice(1):e},p=function(e){return String.fromCharCode(e)},v=function(e){return String.fromCharCode(e)},m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function g(e){for(var t="",r=0,n=0,a=0,i=0,o=0,s=0,c=0,l=0;l<e.length;)i=(r=e.charCodeAt(l++))>>2,o=(3&r)<<4|(n=e.charCodeAt(l++))>>4,s=(15&n)<<2|(a=e.charCodeAt(l++))>>6,c=63&a,isNaN(n)?s=c=64:isNaN(a)&&(c=64),t+=m.charAt(i)+m.charAt(o)+m.charAt(s)+m.charAt(c);return t}function b(e){var t="",r=0,n=0,a=0,i=0,o=0,s=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c<e.length;)r=m.indexOf(e.charAt(c++))<<2|(i=m.indexOf(e.charAt(c++)))>>4,t+=String.fromCharCode(r),n=(15&i)<<4|(o=m.indexOf(e.charAt(c++)))>>2,64!==o&&(t+=String.fromCharCode(n)),a=(3&o)<<6|(s=m.indexOf(e.charAt(c++))),64!==s&&(t+=String.fromCharCode(a));return t}var y=function(){return"undefined"!=typeof Buffer&&"undefined"!=typeof process&&void 0!==process.versions&&!!process.versions.node}(),w=function(){if("undefined"!=typeof Buffer){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(t){e=!0}return e?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();function T(e){return y?Buffer.alloc?Buffer.alloc(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function E(e){return y?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var x=function(e){return y?w(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function A(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function _(e){if("undefined"==typeof ArrayBuffer)throw new Error("Unsupported");if(e instanceof ArrayBuffer)return _(new Uint8Array(e));for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t}var k=y?function(e){return Buffer.concat(e.map((function(e){return Buffer.isBuffer(e)?e:w(e)})))}:function(e){if("undefined"!=typeof Uint8Array){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),a=0;for(t=0,r=0;t<e.length;r+=a,++t)if(a=e[t].length,e[t]instanceof Uint8Array)n.set(e[t],r);else{if("string"==typeof e[t])throw"wtf";n.set(new Uint8Array(e[t]),r)}return n}return[].concat.apply([],e.map((function(e){return Array.isArray(e)?e:[].slice.call(e)})))},S=/\u0000/g,C=/[\u0001-\u0006]/g;function O(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function R(e,t){var r=""+e;return r.length>=t?r:Fe("0",t-r.length)+r}function N(e,t){var r=""+e;return r.length>=t?r:Fe(" ",t-r.length)+r}function D(e,t){var r=""+e;return r.length>=t?r:r+Fe(" ",t-r.length)}var I=Math.pow(2,32);function L(e,t){return e>I||e<-I?function(e,t){var r=""+Math.round(e);return r.length>=t?r:Fe("0",t-r.length)+r}(e,t):function(e,t){var r=""+e;return r.length>=t?r:Fe("0",t-r.length)+r}(Math.round(e),t)}function P(e,t){return t=t||0,e.length>=7+t&&103==(32|e.charCodeAt(t))&&101==(32|e.charCodeAt(t+1))&&110==(32|e.charCodeAt(t+2))&&101==(32|e.charCodeAt(t+3))&&114==(32|e.charCodeAt(t+4))&&97==(32|e.charCodeAt(t+5))&&108==(32|e.charCodeAt(t+6))}var M=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],F=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],B={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},U={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},j={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function H(e,t,r){for(var n=e<0?-1:1,a=e*n,i=0,o=1,s=0,c=1,l=0,f=0,u=Math.floor(a);l<t&&(s=(u=Math.floor(a))*o+i,f=u*l+c,!(a-u<5e-8));)a=1/(a-u),i=o,o=s,c=l,l=f;if(f>t&&(l>t?(f=c,s=i):(f=l,s=o)),!r)return[0,n*s,f];var h=Math.floor(n*s/f);return[h,n*s-h*f,f]}function $(e,t,r){if(e>2958465||e<0)return null;var n=0|e,a=Math.floor(86400*(e-n)),i=0,o=[],s={D:n,T:a,u:86400*(e-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(n+=1462),s.u>.9999&&(s.u=0,86400==++a&&(s.T=a=0,++n,++s.D)),60===n)o=r?[1317,10,29]:[1900,2,29],i=3;else if(0===n)o=r?[1317,8,29]:[1900,1,0],i=6;else{n>60&&--n;var c=new Date(1900,0,1);c.setDate(c.getDate()+n-1),o=[c.getFullYear(),c.getMonth()+1,c.getDate()],i=c.getDay(),n<60&&(i=(i+6)%7),r&&(i=function(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}(c,o))}return s.y=o[0],s.m=o[1],s.d=o[2],s.S=a%60,a=Math.floor(a/60),s.M=a%60,a=Math.floor(a/60),s.H=a,s.q=i,s}var z=new Date(1899,11,31,0,0,0),W=z.getTime(),V=new Date(1900,2,1,0,0,0);function X(e,t){var r=e.getTime();return t?r-=1262304e5:e>=V&&(r+=864e5),(r-(W+6e4*(e.getTimezoneOffset()-z.getTimezoneOffset())))/864e5}function G(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Y(e){var t,r=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=r>=-4&&r<=-1?e.toPrecision(10+r):Math.abs(r)<=9?function(e){var t=e<0?12:11,r=G(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10)).length<=t?r:e.toExponential(5)}(e):10===r?e.toFixed(10).substr(0,12):function(e){var t=G(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}(e),G(function(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(t.toUpperCase()))}function q(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):Y(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return ve(14,X(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function K(e,t,r,n){var a,i="",o=0,s=0,c=r.y,l=0;switch(e){case 98:c=r.y+543;case 121:switch(t.length){case 1:case 2:a=c%100,l=2;break;default:a=c%1e4,l=4}break;case 109:switch(t.length){case 1:case 2:a=r.m,l=t.length;break;case 3:return F[r.m-1][1];case 5:return F[r.m-1][0];default:return F[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:a=r.d,l=t.length;break;case 3:return M[r.q][0];default:return M[r.q][1]}break;case 104:switch(t.length){case 1:case 2:a=1+(r.H+11)%12,l=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:a=r.H,l=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:a=r.M,l=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==r.u||"s"!=t&&"ss"!=t?(s=n>=2?3===n?1e3:100:1===n?10:1,(o=Math.round(s*(r.S+r.u)))>=60*s&&(o=0),"s"===t?0===o?"0":""+o/s:(i=R(o,2+n),"ss"===t?i.substr(0,2):"."+i.substr(2,t.length-1))):R(r.S,t.length);case 90:switch(t){case"[h]":case"[hh]":a=24*r.D+r.H;break;case"[m]":case"[mm]":a=60*(24*r.D+r.H)+r.M;break;case"[s]":case"[ss]":a=60*(60*(24*r.D+r.H)+r.M)+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}l=3===t.length?1:2;break;case 101:a=c,l=1}return l>0?R(a,l):""}function Z(e){if(e.length<=3)return e;for(var t=e.length%3,r=e.substr(0,t);t!=e.length;t+=3)r+=(r.length>0?",":"")+e.substr(t,3);return r}var J=/%/g;function Q(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+Q(e,-t);var a=e.indexOf(".");-1===a&&(a=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%a;if(i<0&&(i+=a),-1===(r=(t/Math.pow(10,i)).toPrecision(n+1+(a+i)%a)).indexOf("e")){var o=Math.floor(Math.log(t)*Math.LOG10E);for(-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+i):r+="E+"+(o-i);"0."===r.substr(0,2);)r=(r=r.charAt(0)+r.substr(2,a)+"."+r.substr(2+a)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,r,n){return t+r+n.substr(0,(a+i)%a)+"."+n.substr(i)+"E"}))}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var ee=/# (\?+)( ?)\/( ?)(\d+)/,te=/^#*0*\.([0#]+)/,re=/\).*[0#]/,ne=/\(###\) ###\\?-####/;function ae(e){for(var t,r="",n=0;n!=e.length;++n)switch(t=e.charCodeAt(n)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t)}return r}function ie(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function oe(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function se(e,t,r){if(40===e.charCodeAt(0)&&!t.match(re)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?se("n",n,r):"("+se("n",n,-r)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,r){for(var n=t.length-1;44===t.charCodeAt(n-1);)--n;return fe(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}(e,t,r);if(-1!==t.indexOf("%"))return function(e,t,r){var n=t.replace(J,""),a=t.length-n.length;return fe(e,n,r*Math.pow(10,2*a))+Fe("%",a)}(e,t,r);if(-1!==t.indexOf("E"))return Q(t,r);if(36===t.charCodeAt(0))return"$"+se(e,t.substr(" "==t.charAt(1)?2:1),r);var a,i,o,s,c=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+L(c,t.length);if(t.match(/^[#?]+$/))return"0"===(a=L(r,0))&&(a=""),a.length>t.length?a:ae(t.substr(0,t.length-a.length))+a;if(i=t.match(ee))return function(e,t,r){var n=parseInt(e[4],10),a=Math.round(t*n),i=Math.floor(a/n),o=a-i*n,s=n;return r+(0===i?"":""+i)+" "+(0===o?Fe(" ",e[1].length+1+e[4].length):N(o,e[1].length)+e[2]+"/"+e[3]+R(s,e[4].length))}(i,c,l);if(t.match(/^#+0+$/))return l+L(c,t.length-t.indexOf("0"));if(i=t.match(te))return a=ie(r,i[1].length).replace(/^([^\.]+)$/,"$1."+ae(i[1])).replace(/\.$/,"."+ae(i[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+Fe("0",ae(i[1]).length-t.length)})),-1!==t.indexOf("0.")?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return l+ie(c,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return l+Z(L(c,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+se(e,t,-r):Z(""+(Math.floor(r)+function(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(r,i[1].length)))+"."+R(oe(r,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return se(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=O(se(e,t.replace(/[\\-]/g,""),r)),o=0,O(O(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return o<a.length?a.charAt(o++):"0"===e?"0":""})));if(t.match(ne))return"("+(a=se(e,"##########",r)).substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var f="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(i[4].length,7),s=H(c,Math.pow(10,o)-1,!1),a=""+l," "==(f=fe("n",i[1],s[1])).charAt(f.length-1)&&(f=f.substr(0,f.length-1)+"0"),a+=f+i[2]+"/"+i[3],(f=D(s[2],o)).length<i[4].length&&(f=ae(i[4].substr(i[4].length-f.length))+f),a+=f;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(i[1].length,i[4].length),7),l+((s=H(c,Math.pow(10,o)-1,!0))[0]||(s[1]?"":"0"))+" "+(s[1]?N(s[1],o)+i[2]+"/"+i[3]+D(s[2],o):Fe(" ",2*o+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return a=L(r,0),t.length<=a.length?a:ae(t.substr(0,t.length-a.length))+a;if(i=t.match(/^([#0?]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),o=a.indexOf(".");var u=t.indexOf(".")-o,h=t.length-a.length-u;return ae(t.substr(0,u)+a+t.substr(t.length-h))}if(i=t.match(/^00,000\.([#0]*0)$/))return o=oe(r,i[1].length),r<0?"-"+se(e,t,-r):Z(function(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?R(0,3-e.length):"")+e}))+"."+R(o,i[1].length);switch(t){case"###,##0.00":return se(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var d=Z(L(c,0));return"0"!==d?l+d:"";case"###,###.00":return se(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return se(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function ce(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+ce(e,-t);var a=e.indexOf(".");-1===a&&(a=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%a;if(i<0&&(i+=a),!(r=(t/Math.pow(10,i)).toPrecision(n+1+(a+i)%a)).match(/[Ee]/)){var o=Math.floor(Math.log(t)*Math.LOG10E);-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+i):r+="E+"+(o-i),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,r,n){return t+r+n.substr(0,(a+i)%a)+"."+n.substr(i)+"E"}))}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function le(e,t,r){if(40===e.charCodeAt(0)&&!t.match(re)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?le("n",n,r):"("+le("n",n,-r)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,r){for(var n=t.length-1;44===t.charCodeAt(n-1);)--n;return fe(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}(e,t,r);if(-1!==t.indexOf("%"))return function(e,t,r){var n=t.replace(J,""),a=t.length-n.length;return fe(e,n,r*Math.pow(10,2*a))+Fe("%",a)}(e,t,r);if(-1!==t.indexOf("E"))return ce(t,r);if(36===t.charCodeAt(0))return"$"+le(e,t.substr(" "==t.charAt(1)?2:1),r);var a,i,o,s,c=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+R(c,t.length);if(t.match(/^[#?]+$/))return a=""+r,0===r&&(a=""),a.length>t.length?a:ae(t.substr(0,t.length-a.length))+a;if(i=t.match(ee))return function(e,t,r){return r+(0===t?"":""+t)+Fe(" ",e[1].length+2+e[4].length)}(i,c,l);if(t.match(/^#+0+$/))return l+R(c,t.length-t.indexOf("0"));if(i=t.match(te))return a=(a=(""+r).replace(/^([^\.]+)$/,"$1."+ae(i[1])).replace(/\.$/,"."+ae(i[1]))).replace(/\.(\d*)$/,(function(e,t){return"."+t+Fe("0",ae(i[1]).length-t.length)})),-1!==t.indexOf("0.")?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return l+(""+c).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return l+Z(""+c);if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+le(e,t,-r):Z(""+r)+"."+Fe("0",i[1].length);if(i=t.match(/^#,#*,#0/))return le(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=O(le(e,t.replace(/[\\-]/g,""),r)),o=0,O(O(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return o<a.length?a.charAt(o++):"0"===e?"0":""})));if(t.match(ne))return"("+(a=le(e,"##########",r)).substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var f="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(i[4].length,7),s=H(c,Math.pow(10,o)-1,!1),a=""+l," "==(f=fe("n",i[1],s[1])).charAt(f.length-1)&&(f=f.substr(0,f.length-1)+"0"),a+=f+i[2]+"/"+i[3],(f=D(s[2],o)).length<i[4].length&&(f=ae(i[4].substr(i[4].length-f.length))+f),a+=f;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(i[1].length,i[4].length),7),l+((s=H(c,Math.pow(10,o)-1,!0))[0]||(s[1]?"":"0"))+" "+(s[1]?N(s[1],o)+i[2]+"/"+i[3]+D(s[2],o):Fe(" ",2*o+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return a=""+r,t.length<=a.length?a:ae(t.substr(0,t.length-a.length))+a;if(i=t.match(/^([#0]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),o=a.indexOf(".");var u=t.indexOf(".")-o,h=t.length-a.length-u;return ae(t.substr(0,u)+a+t.substr(t.length-h))}if(i=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+le(e,t,-r):Z(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?R(0,3-e.length):"")+e}))+"."+R(0,i[1].length);switch(t){case"###,###":case"##,###":case"#,###":var d=Z(""+c);return"0"!==d?l+d:"";default:if(t.match(/\.[0#?]*$/))return le(e,t.slice(0,t.lastIndexOf(".")),r)+ae(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function fe(e,t,r){return(0|r)===r?le(e,t,r):se(e,t,r)}var ue=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function he(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":P(e,t)&&(t+=6),t++;break;case'"':for(;34!==e.charCodeAt(++t)&&t<e.length;);++t;break;case"\\":case"_":t+=2;break;case"@":++t;break;case"B":case"b":if("1"===e.charAt(t+1)||"2"===e.charAt(t+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===e.substr(t,3).toUpperCase())return!0;if("AM/PM"===e.substr(t,5).toUpperCase())return!0;if("上午/下午"===e.substr(t,5).toUpperCase())return!0;++t;break;case"[":for(n=r;"]"!==e.charAt(t++)&&t<e.length;)n+=e.charAt(t);if(n.match(ue))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(r=e.charAt(++t))>-1||"\\"==r&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;default:++t}return!1}var de=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function pe(e,t){if(null==t)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e<r)return!0;break;case"<>":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0}return!1}function ve(e,t,r){null==r&&(r={});var n="";switch(typeof e){case"string":n="m/d/yy"==e&&r.dateNF?r.dateNF:e;break;case"number":null==(n=14==e&&r.dateNF?r.dateNF:(null!=r.table?r.table:B)[e])&&(n=r.table&&r.table[U[e]]||B[U[e]]),null==n&&(n=j[e]||"General")}if(P(n,0))return q(t,r);t instanceof Date&&(t=X(t,r.date1904));var a=function(e,t){var r=function(e){for(var t=[],r=!1,n=0,a=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:t[t.length]=e.substr(a,n-a),a=n+1}if(t[t.length]=e.substr(a),!0===r)throw new Error("Format |"+e+"| unterminated string ");return t}(e),n=r.length,a=r[n-1].indexOf("@");if(n<4&&a>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if("number"!=typeof t)return[4,4===r.length||a>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=a>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=a>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=a>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"]}var i=t>0?r[0]:t<0?r[1]:r[2];if(-1===r[0].indexOf("[")&&-1===r[1].indexOf("["))return[n,i];if(null!=r[0].match(/\[[=<>]/)||null!=r[1].match(/\[[=<>]/)){var o=r[0].match(de),s=r[1].match(de);return pe(t,o)?[n,r[0]]:pe(t,s)?[n,r[1]]:[n,r[null!=o&&null!=s?2:1]]}return[n,i]}(n,t);if(P(a[1]))return q(t,r);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return function(e,t,r,n){for(var a,i,o,s=[],c="",l=0,f="",u="t",h="H";l<e.length;)switch(f=e.charAt(l)){case"G":if(!P(e,l))throw new Error("unrecognized character "+f+" in "+e);s[s.length]={t:"G",v:"General"},l+=7;break;case'"':for(c="";34!==(o=e.charCodeAt(++l))&&l<e.length;)c+=String.fromCharCode(o);s[s.length]={t:"t",v:c},++l;break;case"\\":var d=e.charAt(++l),p="("===d||")"===d?d:"t";s[s.length]={t:p,v:d},++l;break;case"_":s[s.length]={t:"t",v:" "},l+=2;break;case"@":s[s.length]={t:"T",v:t},++l;break;case"B":case"b":if("1"===e.charAt(l+1)||"2"===e.charAt(l+1)){if(null==a&&null==(a=$(t,r,"2"===e.charAt(l+1))))return"";s[s.length]={t:"X",v:e.substr(l,2)},u=f,l+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":f=f.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0)return"";if(null==a&&null==(a=$(t,r)))return"";for(c=f;++l<e.length&&e.charAt(l).toLowerCase()===f;)c+=f;"m"===f&&"h"===u.toLowerCase()&&(f="M"),"h"===f&&(f=h),s[s.length]={t:f,v:c},u=f;break;case"A":case"a":case"上":var v={t:f,v:f};if(null==a&&(a=$(t,r)),"A/P"===e.substr(l,3).toUpperCase()?(null!=a&&(v.v=a.H>=12?"P":"A"),v.t="T",h="h",l+=3):"AM/PM"===e.substr(l,5).toUpperCase()?(null!=a&&(v.v=a.H>=12?"PM":"AM"),v.t="T",l+=5,h="h"):"上午/下午"===e.substr(l,5).toUpperCase()?(null!=a&&(v.v=a.H>=12?"下午":"上午"),v.t="T",l+=5,h="h"):(v.t="t",++l),null==a&&"T"===v.t)return"";s[s.length]=v,u=f;break;case"[":for(c=f;"]"!==e.charAt(l++)&&l<e.length;)c+=e.charAt(l);if("]"!==c.slice(-1))throw'unterminated "[" block: |'+c+"|";if(c.match(ue)){if(null==a&&null==(a=$(t,r)))return"";s[s.length]={t:"Z",v:c.toLowerCase()},u=c.charAt(1)}else c.indexOf("$")>-1&&(c=(c.match(/\$([^-\[\]]*)/)||[])[1]||"$",he(e)||(s[s.length]={t:"t",v:c}));break;case".":if(null!=a){for(c=f;++l<e.length&&"0"===(f=e.charAt(l));)c+=f;s[s.length]={t:"s",v:c};break}case"0":case"#":for(c=f;++l<e.length&&"0#?.,E+-%".indexOf(f=e.charAt(l))>-1;)c+=f;s[s.length]={t:"n",v:c};break;case"?":for(c=f;e.charAt(++l)===f;)c+=f;s[s.length]={t:f,v:c},u=f;break;case"*":++l," "!=e.charAt(l)&&"*"!=e.charAt(l)||++l;break;case"(":case")":s[s.length]={t:1===n?"t":f,v:f},++l;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(c=f;l<e.length&&"0123456789".indexOf(e.charAt(++l))>-1;)c+=e.charAt(l);s[s.length]={t:"D",v:c};break;case" ":s[s.length]={t:f,v:f},++l;break;case"$":s[s.length]={t:"t",v:"$"},++l;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(f))throw new Error("unrecognized character "+f+" in "+e);s[s.length]={t:"t",v:f},++l}var m,g=0,b=0;for(l=s.length-1,u="t";l>=0;--l)switch(s[l].t){case"h":case"H":s[l].t=h,u="h",g<1&&(g=1);break;case"s":(m=s[l].v.match(/\.0+$/))&&(b=Math.max(b,m[0].length-1)),g<3&&(g=3);case"d":case"y":case"M":case"e":u=s[l].t;break;case"m":"s"===u&&(s[l].t="M",g<2&&(g=2));break;case"X":break;case"Z":g<1&&s[l].v.match(/[Hh]/)&&(g=1),g<2&&s[l].v.match(/[Mm]/)&&(g=2),g<3&&s[l].v.match(/[Ss]/)&&(g=3)}switch(g){case 0:break;case 1:a.u>=.5&&(a.u=0,++a.S),a.S>=60&&(a.S=0,++a.M),a.M>=60&&(a.M=0,++a.H);break;case 2:a.u>=.5&&(a.u=0,++a.S),a.S>=60&&(a.S=0,++a.M)}var y,w="";for(l=0;l<s.length;++l)switch(s[l].t){case"t":case"T":case" ":case"D":break;case"X":s[l].v="",s[l].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":s[l].v=K(s[l].t.charCodeAt(0),s[l].v,a,b),s[l].t="t";break;case"n":case"?":for(y=l+1;null!=s[y]&&("?"===(f=s[y].t)||"D"===f||(" "===f||"t"===f)&&null!=s[y+1]&&("?"===s[y+1].t||"t"===s[y+1].t&&"/"===s[y+1].v)||"("===s[l].t&&(" "===f||"n"===f||")"===f)||"t"===f&&("/"===s[y].v||" "===s[y].v&&null!=s[y+1]&&"?"==s[y+1].t));)s[l].v+=s[y].v,s[y]={v:"",t:";"},++y;w+=s[l].v,l=y-1;break;case"G":s[l].t="t",s[l].v=q(t,r)}var T,E,x="";if(w.length>0){40==w.charCodeAt(0)?(T=t<0&&45===w.charCodeAt(0)?-t:t,E=fe("n",w,T)):(E=fe("n",w,T=t<0&&n>1?-t:t),T<0&&s[0]&&"t"==s[0].t&&(E=E.substr(1),s[0].v="-"+s[0].v)),y=E.length-1;var A=s.length;for(l=0;l<s.length;++l)if(null!=s[l]&&"t"!=s[l].t&&s[l].v.indexOf(".")>-1){A=l;break}var _=s.length;if(A===s.length&&-1===E.indexOf("E")){for(l=s.length-1;l>=0;--l)null!=s[l]&&-1!=="n?".indexOf(s[l].t)&&(y>=s[l].v.length-1?(y-=s[l].v.length,s[l].v=E.substr(y+1,s[l].v.length)):y<0?s[l].v="":(s[l].v=E.substr(0,y+1),y=-1),s[l].t="t",_=l);y>=0&&_<s.length&&(s[_].v=E.substr(0,y+1)+s[_].v)}else if(A!==s.length&&-1===E.indexOf("E")){for(y=E.indexOf(".")-1,l=A;l>=0;--l)if(null!=s[l]&&-1!=="n?".indexOf(s[l].t)){for(i=s[l].v.indexOf(".")>-1&&l===A?s[l].v.indexOf(".")-1:s[l].v.length-1,x=s[l].v.substr(i+1);i>=0;--i)y>=0&&("0"===s[l].v.charAt(i)||"#"===s[l].v.charAt(i))&&(x=E.charAt(y--)+x);s[l].v=x,s[l].t="t",_=l}for(y>=0&&_<s.length&&(s[_].v=E.substr(0,y+1)+s[_].v),y=E.indexOf(".")+1,l=A;l<s.length;++l)if(null!=s[l]&&(-1!=="n?(".indexOf(s[l].t)||l===A)){for(i=s[l].v.indexOf(".")>-1&&l===A?s[l].v.indexOf(".")+1:0,x=s[l].v.substr(0,i);i<s[l].v.length;++i)y<E.length&&(x+=E.charAt(y++));s[l].v=x,s[l].t="t",_=l}}}for(l=0;l<s.length;++l)null!=s[l]&&"n?".indexOf(s[l].t)>-1&&(T=n>1&&t<0&&l>0&&"-"===s[l-1].v?-t:t,s[l].v=fe(s[l].t,s[l].v,T),s[l].t="t");var k="";for(l=0;l!==s.length;++l)null!=s[l]&&(k+=s[l].v);return k}(a[1],t,r,a[0])}function me(e,t){if("number"!=typeof t){t=+t||-1;for(var r=0;r<392;++r)if(null!=B[r]){if(B[r]==e){t=r;break}}else t<0&&(t=r);t<0&&(t=391)}return B[t]=e,t}function ge(){var e;e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',B=e}var be={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},ye=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,we=function(){var e={version:"1.2.0"},t=function(){for(var e=0,t=new Array(256),r=0;256!=r;++r)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=r)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[r]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),r=function(e){var t=0,r=0,n=0,a="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(n=0;256!=n;++n)a[n]=e[n];for(n=0;256!=n;++n)for(r=e[n],t=256+n;t<4096;t+=256)r=a[t]=r>>>8^e[255&r];var i=[];for(n=1;16!=n;++n)i[n-1]="undefined"!=typeof Int32Array?a.subarray(256*n,256*n+256):a.slice(256*n,256*n+256);return i}(t),n=r[0],a=r[1],i=r[2],o=r[3],s=r[4],c=r[5],l=r[6],f=r[7],u=r[8],h=r[9],d=r[10],p=r[11],v=r[12],m=r[13],g=r[14];return e.table=t,e.bstr=function(e,r){for(var n=-1^r,a=0,i=e.length;a<i;)n=n>>>8^t[255&(n^e.charCodeAt(a++))];return~n},e.buf=function(e,r){for(var b=-1^r,y=e.length-15,w=0;w<y;)b=g[e[w++]^255&b]^m[e[w++]^b>>8&255]^v[e[w++]^b>>16&255]^p[e[w++]^b>>>24]^d[e[w++]]^h[e[w++]]^u[e[w++]]^f[e[w++]]^l[e[w++]]^c[e[w++]]^s[e[w++]]^o[e[w++]]^i[e[w++]]^a[e[w++]]^n[e[w++]]^t[e[w++]];for(y+=15;w<y;)b=b>>>8^t[255&(b^e[w++])];return~b},e.str=function(e,r){for(var n=-1^r,a=0,i=e.length,o=0,s=0;a<i;)(o=e.charCodeAt(a++))<128?n=n>>>8^t[255&(n^o)]:o<2048?n=(n=n>>>8^t[255&(n^(192|o>>6&31))])>>>8^t[255&(n^(128|63&o))]:o>=55296&&o<57344?(o=64+(1023&o),s=1023&e.charCodeAt(a++),n=(n=(n=(n=n>>>8^t[255&(n^(240|o>>8&7))])>>>8^t[255&(n^(128|o>>2&63))])>>>8^t[255&(n^(128|s>>6&15|(3&o)<<4))])>>>8^t[255&(n^(128|63&s))]):n=(n=(n=n>>>8^t[255&(n^(224|o>>12&15))])>>>8^t[255&(n^(128|o>>6&63))])>>>8^t[255&(n^(128|63&o))];return~n},e}(),Te=function(){var e,t={};function r(e){if("/"==e.charAt(e.length-1))return-1===e.slice(0,-1).indexOf("/")?e:r(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(0,t+1)}function n(e){if("/"==e.charAt(e.length-1))return n(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(t+1)}function a(e,t){"string"==typeof t&&(t=new Date(t));var r=t.getHours();r=(r=r<<6|t.getMinutes())<<5|t.getSeconds()>>>1,e.write_shift(2,r);var n=t.getFullYear()-1980;n=(n=n<<4|t.getMonth()+1)<<5|t.getDate(),e.write_shift(2,n)}function i(e){or(e,0);for(var t={},r=0;e.l<=e.length-4;){var n=e.read_shift(2),a=e.read_shift(2),i=e.l+a,o={};21589===n&&(1&(r=e.read_shift(1))&&(o.mtime=e.read_shift(4)),a>5&&(2&r&&(o.atime=e.read_shift(4)),4&r&&(o.ctime=e.read_shift(4))),o.mtime&&(o.mt=new Date(1e3*o.mtime))),e.l=i,t[n]=o}return t}function o(){return e||(e={})}function s(e,t){if(80==e[0]&&75==e[1])return de(e,t);if(109==(32|e[0])&&105==(32|e[1]))return function(e,t){if("mime-version:"!=D(e.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var r=t&&t.root||"",n=(y&&Buffer.isBuffer(e)?e.toString("binary"):D(e)).split("\r\n"),a=0,i="";for(a=0;a<n.length;++a)if(i=n[a],/^Content-Location:/i.test(i)&&(i=i.slice(i.indexOf("file")),r||(r=i.slice(0,i.lastIndexOf("/")+1)),i.slice(0,r.length)!=r))for(;r.length>0&&(r=(r=r.slice(0,r.length-1)).slice(0,r.lastIndexOf("/")+1),i.slice(0,r.length)!=r););var o=(n[1]||"").match(/boundary="(.*?)"/);if(!o)throw new Error("MAD cannot find boundary");var s="--"+(o[1]||""),c={FileIndex:[],FullPaths:[]};h(c);var l,f=0;for(a=0;a<n.length;++a){var u=n[a];u!==s&&u!==s+"--"||(f++&&ye(c,n.slice(l,a),r),l=a)}return c}(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var r,n,a,i,o,s,d=512,p=[],v=e.slice(0,512);or(v,0);var m=function(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(_,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}(v);switch(r=m[0]){case 3:d=512;break;case 4:d=4096;break;case 0:if(0==m[1])return de(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+r)}512!==d&&or(v=e.slice(0,d),28);var g=e.slice(0,d);!function(e,t){var r;switch(e.l+=2,r=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+r);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+r);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+r)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}(v,r);var b=v.read_shift(4,"i");if(3===r&&0!==b)throw new Error("# Directory Sectors: Expected 0 saw "+b);v.l+=4,i=v.read_shift(4,"i"),v.l+=4,v.chk("00100000","Mini Stream Cutoff Size: "),o=v.read_shift(4,"i"),n=v.read_shift(4,"i"),s=v.read_shift(4,"i"),a=v.read_shift(4,"i");for(var w=-1,T=0;T<109&&!((w=v.read_shift(4,"i"))<0);++T)p[T]=w;var E=function(e,t){for(var r=Math.ceil(e.length/t)-1,n=[],a=1;a<r;++a)n[a-1]=e.slice(a*t,(a+1)*t);return n[r-1]=e.slice(r*t),n}(e,d);l(s,a,E,d,p);var x=function(e,t,r,n){var a=e.length,i=[],o=[],s=[],c=[],l=n-1,f=0,u=0,h=0,d=0;for(f=0;f<a;++f)if(s=[],(h=f+t)>=a&&(h-=a),!o[h]){c=[];var p=[];for(u=h;u>=0;){p[u]=!0,o[u]=!0,s[s.length]=u,c.push(e[u]);var v=r[Math.floor(4*u/n)];if(n<4+(d=4*u&l))throw new Error("FAT boundary crossed: "+u+" 4 "+n);if(!e[v])break;if(p[u=er(e[v],d)])break}i[h]={nodes:s,data:Rt([c])}}return i}(E,i,p,d);x[i].name="!Directory",n>0&&o!==A&&(x[o].name="!MiniFAT"),x[p[0]].name="!FAT",x.fat_addrs=p,x.ssz=d;var k=[],S=[],C=[];!function(e,t,r,n,a,i,o,s){for(var l,h=0,d=n.length?2:0,p=t[e].data,v=0,m=0;v<p.length;v+=128){var g=p.slice(v,v+128);or(g,64),m=g.read_shift(2),l=Dt(g,0,m-d),n.push(l);var b={name:l,type:g.read_shift(1),color:g.read_shift(1),L:g.read_shift(4,"i"),R:g.read_shift(4,"i"),C:g.read_shift(4,"i"),clsid:g.read_shift(16),state:g.read_shift(4,"i"),start:0,size:0};0!==g.read_shift(2)+g.read_shift(2)+g.read_shift(2)+g.read_shift(2)&&(b.ct=u(g,g.l-8)),0!==g.read_shift(2)+g.read_shift(2)+g.read_shift(2)+g.read_shift(2)&&(b.mt=u(g,g.l-8)),b.start=g.read_shift(4,"i"),b.size=g.read_shift(4,"i"),b.size<0&&b.start<0&&(b.size=b.type=0,b.start=A,b.name=""),5===b.type?(h=b.start,a>0&&h!==A&&(t[h].name="!StreamData")):b.size>=4096?(b.storage="fat",void 0===t[b.start]&&(t[b.start]=f(r,b.start,t.fat_addrs,t.ssz)),t[b.start].name=b.name,b.content=t[b.start].data.slice(0,b.size)):(b.storage="minifat",b.size<0?b.size=0:h!==A&&b.start!==A&&t[h]&&(b.content=c(b,t[h].data,(t[s]||{}).data))),b.content&&or(b.content,0),i[l]=b,o.push(b)}}(i,x,E,k,n,{},S,o),function(e,t,r){for(var n=0,a=0,i=0,o=0,s=0,c=r.length,l=[],f=[];n<c;++n)l[n]=f[n]=n,t[n]=r[n];for(;s<f.length;++s)a=e[n=f[s]].L,i=e[n].R,o=e[n].C,l[n]===n&&(-1!==a&&l[a]!==a&&(l[n]=l[a]),-1!==i&&l[i]!==i&&(l[n]=l[i])),-1!==o&&(l[o]=n),-1!==a&&n!=l[n]&&(l[a]=l[n],f.lastIndexOf(a)<s&&f.push(a)),-1!==i&&n!=l[n]&&(l[i]=l[n],f.lastIndexOf(i)<s&&f.push(i));for(n=1;n<c;++n)l[n]===n&&(-1!==i&&l[i]!==i?l[n]=l[i]:-1!==a&&l[a]!==a&&(l[n]=l[a]));for(n=1;n<c;++n)if(0!==e[n].type){if((s=n)!=l[s])do{s=l[s],t[n]=t[s]+"/"+t[n]}while(0!==s&&-1!==l[s]&&s!=l[s]);l[n]=-1}for(t[0]+="/",n=1;n<c;++n)2!==e[n].type&&(t[n]+="/")}(S,C,k),k.shift();var O={FileIndex:S,FullPaths:C};return t&&t.raw&&(O.raw={header:g,sectors:E}),O}function c(e,t,r){for(var n=e.start,a=e.size,i=[],o=n;r&&a>0&&o>=0;)i.push(t.slice(o*m,o*m+m)),a-=m,o=er(r,4*o);return 0===i.length?cr(0):k(i).slice(0,e.size)}function l(e,t,r,n,a){var i=A;if(e===A){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var o=r[e],s=(n>>>2)-1;if(!o)return;for(var c=0;c<s&&(i=er(o,4*c))!==A;++c)a.push(i);l(er(o,n-4),t-1,r,n,a)}}function f(e,t,r,n,a){var i=[],o=[];a||(a=[]);var s=n-1,c=0,l=0;for(c=t;c>=0;){a[c]=!0,i[i.length]=c,o.push(e[c]);var f=r[Math.floor(4*c/n)];if(n<4+(l=4*c&s))throw new Error("FAT boundary crossed: "+c+" 4 "+n);if(!e[f])break;c=er(e[f],l)}return{nodes:i,data:Rt([o])}}function u(e,t){return new Date(1e3*(Qt(e,t+4)/1e7*Math.pow(2,32)+Qt(e,t)/1e7-11644473600))}function h(e,t){var r=t||{},n=r.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=n+"/",e.FileIndex[0]={name:n,type:5}),r.CLSID&&(e.FileIndex[0].clsid=r.CLSID),function(e){var t="Sh33tJ5";if(!Te.find(e,"/"+t)){var r=cr(4);r[0]=55,r[1]=r[3]=50,r[2]=54,e.FileIndex.push({name:t,type:2,content:r,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),d(e)}}(e)}function d(e,t){h(e);for(var a=!1,i=!1,o=e.FullPaths.length-1;o>=0;--o){var s=e.FileIndex[o];switch(s.type){case 0:i?a=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:i=!0,isNaN(s.R*s.L*s.C)&&(a=!0),s.R>-1&&s.L>-1&&s.R==s.L&&(a=!0);break;default:a=!0}}if(a||t){var c=new Date(1987,1,19),l=0,f=Object.create?Object.create(null):{},u=[];for(o=0;o<e.FullPaths.length;++o)f[e.FullPaths[o]]=!0,0!==e.FileIndex[o].type&&u.push([e.FullPaths[o],e.FileIndex[o]]);for(o=0;o<u.length;++o){var d=r(u[o][0]);(i=f[d])||(u.push([d,{name:n(d).replace("/",""),type:1,clsid:R,ct:c,mt:c,content:null}]),f[d]=!0)}for(u.sort((function(e,t){return function(e,t){for(var r=e.split("/"),n=t.split("/"),a=0,i=0,o=Math.min(r.length,n.length);a<o;++a){if(i=r[a].length-n[a].length)return i;if(r[a]!=n[a])return r[a]<n[a]?-1:1}return r.length-n.length}(e[0],t[0])})),e.FullPaths=[],e.FileIndex=[],o=0;o<u.length;++o)e.FullPaths[o]=u[o][0],e.FileIndex[o]=u[o][1];for(o=0;o<u.length;++o){var p=e.FileIndex[o],v=e.FullPaths[o];if(p.name=n(v).replace("/",""),p.L=p.R=p.C=-(p.color=1),p.size=p.content?p.content.length:0,p.start=0,p.clsid=p.clsid||R,0===o)p.C=u.length>1?1:-1,p.size=0,p.type=5;else if("/"==v.slice(-1)){for(l=o+1;l<u.length&&r(e.FullPaths[l])!=v;++l);for(p.C=l>=u.length?-1:l,l=o+1;l<u.length&&r(e.FullPaths[l])!=r(v);++l);p.R=l>=u.length?-1:l,p.type=1}else r(e.FullPaths[o+1]||"")==r(v)&&(p.R=o+1),p.type=2}}}function p(e,t){var r=t||{};if("mad"==r.fileType)return function(e,t){for(var r=t||{},n=r.boundary||"SheetJS",a=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(n="------="+n).slice(2)+'"',"","",""],i=e.FullPaths[0],o=i,s=e.FileIndex[0],c=1;c<e.FullPaths.length;++c)if(o=e.FullPaths[c].slice(i.length),(s=e.FileIndex[c]).size&&s.content&&"Sh33tJ5"!=o){o=o.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,(function(e){return"_x"+e.charCodeAt(0).toString(16)+"_"})).replace(/[\u0080-\uFFFF]/g,(function(e){return"_u"+e.charCodeAt(0).toString(16)+"_"}));for(var l=s.content,f=y&&Buffer.isBuffer(l)?l.toString("binary"):D(l),u=0,h=Math.min(1024,f.length),d=0,p=0;p<=h;++p)(d=f.charCodeAt(p))>=32&&d<128&&++u;var v=u>=4*h/5;a.push(n),a.push("Content-Location: "+(r.root||"file:///C:/SheetJS/")+o),a.push("Content-Transfer-Encoding: "+(v?"quoted-printable":"base64")),a.push("Content-Type: "+me(s,o)),a.push(""),a.push(v?be(f):ge(f))}return a.push(n+"--\r\n"),a.join("\r\n")}(e,r);if(d(e),"zip"===r.fileType)return function(e,t){var r,n=t||{},i=[],o=[],s=cr(1),c=n.compression?8:0,l=0,f=0,u=0,h=0,d=e.FullPaths[0],p=d,m=e.FileIndex[0],g=[],b=0;for(l=1;l<e.FullPaths.length;++l)if(p=e.FullPaths[l].slice(d.length),(m=e.FileIndex[l]).size&&m.content&&"Sh33tJ5"!=p){var y=u,w=cr(p.length);for(f=0;f<p.length;++f)w.write_shift(1,127&p.charCodeAt(f));w=w.slice(0,w.l),g[h]=we.buf(m.content,0);var T=m.content;8==c&&(r=T,T=v?v.deflateRawSync(r):ae(r)),(s=cr(30)).write_shift(4,67324752),s.write_shift(2,20),s.write_shift(2,0),s.write_shift(2,c),m.mt?a(s,m.mt):s.write_shift(4,0),s.write_shift(-4,g[h]),s.write_shift(4,T.length),s.write_shift(4,m.content.length),s.write_shift(2,w.length),s.write_shift(2,0),u+=s.length,i.push(s),u+=w.length,i.push(w),u+=T.length,i.push(T),(s=cr(46)).write_shift(4,33639248),s.write_shift(2,0),s.write_shift(2,20),s.write_shift(2,0),s.write_shift(2,c),s.write_shift(4,0),s.write_shift(-4,g[h]),s.write_shift(4,T.length),s.write_shift(4,m.content.length),s.write_shift(2,w.length),s.write_shift(2,0),s.write_shift(2,0),s.write_shift(2,0),s.write_shift(2,0),s.write_shift(4,0),s.write_shift(4,y),b+=s.l,o.push(s),b+=w.length,o.push(w),++h}return(s=cr(22)).write_shift(4,101010256),s.write_shift(2,0),s.write_shift(2,0),s.write_shift(2,h),s.write_shift(2,h),s.write_shift(4,b),s.write_shift(4,u),s.write_shift(2,0),k([k(i),k(o),s])}(e,r);var n=function(e){for(var t=0,r=0,n=0;n<e.FileIndex.length;++n){var a=e.FileIndex[n];if(a.content){var i=a.content.length;i>0&&(i<4096?t+=i+63>>6:r+=i+511>>9)}}for(var o=e.FullPaths.length+3>>2,s=t+127>>7,c=(t+7>>3)+r+o+s,l=c+127>>7,f=l<=109?0:Math.ceil((l-109)/127);c+l+f+127>>7>l;)f=++l<=109?0:Math.ceil((l-109)/127);var u=[1,f,l,s,o,r,t,0];return e.FileIndex[0].size=t<<6,u[7]=(e.FileIndex[0].start=u[0]+u[1]+u[2]+u[3]+u[4]+u[5])+(u[6]+7>>3),u}(e),i=cr(n[7]<<9),o=0,s=0;for(o=0;o<8;++o)i.write_shift(1,O[o]);for(o=0;o<8;++o)i.write_shift(2,0);for(i.write_shift(2,62),i.write_shift(2,3),i.write_shift(2,65534),i.write_shift(2,9),i.write_shift(2,6),o=0;o<3;++o)i.write_shift(2,0);for(i.write_shift(4,0),i.write_shift(4,n[2]),i.write_shift(4,n[0]+n[1]+n[2]+n[3]-1),i.write_shift(4,0),i.write_shift(4,4096),i.write_shift(4,n[3]?n[0]+n[1]+n[2]-1:A),i.write_shift(4,n[3]),i.write_shift(-4,n[1]?n[0]-1:A),i.write_shift(4,n[1]),o=0;o<109;++o)i.write_shift(-4,o<n[2]?n[1]+o:-1);if(n[1])for(s=0;s<n[1];++s){for(;o<236+127*s;++o)i.write_shift(-4,o<n[2]?n[1]+o:-1);i.write_shift(-4,s===n[1]-1?A:s+1)}var c=function(e){for(s+=e;o<s-1;++o)i.write_shift(-4,o+1);e&&(++o,i.write_shift(-4,A))};for(s=o=0,s+=n[1];o<s;++o)i.write_shift(-4,N.DIFSECT);for(s+=n[2];o<s;++o)i.write_shift(-4,N.FATSECT);c(n[3]),c(n[4]);for(var l=0,f=0,u=e.FileIndex[0];l<e.FileIndex.length;++l)(u=e.FileIndex[l]).content&&((f=u.content.length)<4096||(u.start=s,c(f+511>>9)));for(c(n[6]+7>>3);511&i.l;)i.write_shift(-4,N.ENDOFCHAIN);for(s=o=0,l=0;l<e.FileIndex.length;++l)(u=e.FileIndex[l]).content&&(!(f=u.content.length)||f>=4096||(u.start=s,c(f+63>>6)));for(;511&i.l;)i.write_shift(-4,N.ENDOFCHAIN);for(o=0;o<n[4]<<2;++o){var h=e.FullPaths[o];if(h&&0!==h.length){u=e.FileIndex[o],0===o&&(u.start=u.size?u.start-1:A);var p=0===o&&r.root||u.name;if(f=2*(p.length+1),i.write_shift(64,p,"utf16le"),i.write_shift(2,f),i.write_shift(1,u.type),i.write_shift(1,u.color),i.write_shift(-4,u.L),i.write_shift(-4,u.R),i.write_shift(-4,u.C),u.clsid)i.write_shift(16,u.clsid,"hex");else for(l=0;l<4;++l)i.write_shift(4,0);i.write_shift(4,u.state||0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,u.start),i.write_shift(4,u.size),i.write_shift(4,0)}else{for(l=0;l<17;++l)i.write_shift(4,0);for(l=0;l<3;++l)i.write_shift(4,-1);for(l=0;l<12;++l)i.write_shift(4,0)}}for(o=1;o<e.FileIndex.length;++o)if((u=e.FileIndex[o]).size>=4096)if(i.l=u.start+1<<9,y&&Buffer.isBuffer(u.content))u.content.copy(i,i.l,0,u.size),i.l+=u.size+511&-512;else{for(l=0;l<u.size;++l)i.write_shift(1,u.content[l]);for(;511&l;++l)i.write_shift(1,0)}for(o=1;o<e.FileIndex.length;++o)if((u=e.FileIndex[o]).size>0&&u.size<4096)if(y&&Buffer.isBuffer(u.content))u.content.copy(i,i.l,0,u.size),i.l+=u.size+63&-64;else{for(l=0;l<u.size;++l)i.write_shift(1,u.content[l]);for(;63&l;++l)i.write_shift(1,0)}if(y)i.l=i.length;else for(;i.l<i.length;)i.write_shift(1,0);return i}t.version="1.2.1";var v,m=64,A=-2,_="d0cf11e0a1b11ae1",O=[208,207,17,224,161,177,26,225],R="00000000000000000000000000000000",N={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:A,FREESECT:-1,HEADER_SIGNATURE:_,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:R,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function D(e){for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}for(var I,L,P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],M=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],F=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],B="undefined"!=typeof Uint8Array,U=B?new Uint8Array(256):[],j=0;j<256;++j)U[j]=(void 0,255&((L=139536&((I=j)<<1|I<<11)|558144&(I<<5|I<<15))>>16|L>>8|L));function H(e,t){var r=U[255&e];return t<=8?r>>>8-t:(r=r<<8|U[e>>8&255],t<=16?r>>>16-t:(r=r<<8|U[e>>16&255])>>>24-t)}function $(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=6?0:e[n+1]<<8))>>>r&3}function z(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=5?0:e[n+1]<<8))>>>r&7}function W(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=3?0:e[n+1]<<8))>>>r&31}function V(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=1?0:e[n+1]<<8))>>>r&127}function X(e,t,r){var n=7&t,a=t>>>3,i=(1<<r)-1,o=e[a]>>>n;return r<8-n?o&i:(o|=e[a+1]<<8-n,r<16-n?o&i:(o|=e[a+2]<<16-n,r<24-n?o&i:(o|=e[a+3]<<24-n)&i))}function G(e,t,r){var n=7&t,a=t>>>3;return n<=5?e[a]|=(7&r)<<n:(e[a]|=r<<n&255,e[a+1]=(7&r)>>8-n),t+3}function Y(e,t,r){return r=(1&r)<<(7&t),e[t>>>3]|=r,t+1}function q(e,t,r){var n=t>>>3;return r<<=7&t,e[n]|=255&r,r>>>=8,e[n+1]=r,t+8}function K(e,t,r){var n=t>>>3;return r<<=7&t,e[n]|=255&r,r>>>=8,e[n+1]=255&r,e[n+2]=r>>>8,t+16}function Z(e,t){var r=e.length,n=2*r>t?2*r:t+5,a=0;if(r>=t)return e;if(y){var i=E(n);if(e.copy)e.copy(i);else for(;a<e.length;++a)i[a]=e[a];return i}if(B){var o=new Uint8Array(n);if(o.set)o.set(e);else for(;a<r;++a)o[a]=e[a];return o}return e.length=n,e}function J(e){for(var t=new Array(e),r=0;r<e;++r)t[r]=0;return t}function Q(e,t,r){var n=1,a=0,i=0,o=0,s=0,c=e.length,l=B?new Uint16Array(32):J(32);for(i=0;i<32;++i)l[i]=0;for(i=c;i<r;++i)e[i]=0;c=e.length;var f=B?new Uint16Array(c):J(c);for(i=0;i<c;++i)l[a=e[i]]++,n<a&&(n=a),f[i]=0;for(l[0]=0,i=1;i<=n;++i)l[i+16]=s=s+l[i-1]<<1;for(i=0;i<c;++i)0!=(s=e[i])&&(f[i]=l[s+16]++);var u=0;for(i=0;i<c;++i)if(0!=(u=e[i]))for(s=H(f[i],n)>>n-u,o=(1<<n+4-u)-1;o>=0;--o)t[s|o<<u]=15&u|i<<4;return n}var ee=B?new Uint16Array(512):J(512),te=B?new Uint16Array(32):J(32);if(!B){for(var re=0;re<512;++re)ee[re]=0;for(re=0;re<32;++re)te[re]=0}!function(){for(var e=[],t=0;t<32;t++)e.push(5);Q(e,te,32);var r=[];for(t=0;t<=143;t++)r.push(8);for(;t<=255;t++)r.push(9);for(;t<=279;t++)r.push(7);for(;t<=287;t++)r.push(8);Q(r,ee,288)}();var ne=function(){for(var e=B?new Uint8Array(32768):[],t=0,r=0;t<F.length-1;++t)for(;r<F[t+1];++r)e[r]=t;for(;r<32768;++r)e[r]=29;var n=B?new Uint8Array(259):[];for(t=0,r=0;t<M.length-1;++t)for(;r<M[t+1];++r)n[r]=t;return function(t,r){return t.length<8?function(e,t){for(var r=0;r<e.length;){var n=Math.min(65535,e.length-r),a=r+n==e.length;for(t.write_shift(1,+a),t.write_shift(2,n),t.write_shift(2,65535&~n);n-- >0;)t[t.l++]=e[r++]}return t.l}(t,r):function(t,r){for(var a=0,i=0,o=B?new Uint16Array(32768):[];i<t.length;){var s=Math.min(65535,t.length-i);if(s<10){for(7&(a=G(r,a,+!(i+s!=t.length)))&&(a+=8-(7&a)),r.l=a/8|0,r.write_shift(2,s),r.write_shift(2,65535&~s);s-- >0;)r[r.l++]=t[i++];a=8*r.l}else{a=G(r,a,+!(i+s!=t.length)+2);for(var c=0;s-- >0;){var l=t[i],f=-1,u=0;if((f=o[c=32767&(c<<5^l)])&&((f|=-32768&i)>i&&(f-=32768),f<i))for(;t[f+u]==t[i+u]&&u<250;)++u;if(u>2){(l=n[u])<=22?a=q(r,a,U[l+1]>>1)-1:(q(r,a,3),q(r,a+=5,U[l-23]>>5),a+=3);var h=l<8?0:l-4>>2;h>0&&(K(r,a,u-M[l]),a+=h),l=e[i-f],a=q(r,a,U[l]>>3),a-=3;var d=l<4?0:l-2>>1;d>0&&(K(r,a,i-f-F[l]),a+=d);for(var p=0;p<u;++p)o[c]=32767&i,c=32767&(c<<5^t[i]),++i;s-=u-1}else l<=143?l+=48:a=Y(r,a,1),a=q(r,a,U[l]),o[c]=32767&i,++i}a=q(r,a,0)-1}}return r.l=(a+7)/8|0,r.l}(t,r)}}();function ae(e){var t=cr(50+Math.floor(1.1*e.length)),r=ne(e,t);return t.slice(0,r)}var ie=B?new Uint16Array(32768):J(32768),oe=B?new Uint16Array(32768):J(32768),se=B?new Uint16Array(128):J(128),ce=1,le=1;function fe(e,t){var r=W(e,t)+257,n=W(e,t+=5)+1,a=function(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=4?0:e[n+1]<<8))>>>r&15}(e,t+=5)+4;t+=4;for(var i=0,o=B?new Uint8Array(19):J(19),s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],c=1,l=B?new Uint8Array(8):J(8),f=B?new Uint8Array(8):J(8),u=o.length,h=0;h<a;++h)o[P[h]]=i=z(e,t),c<i&&(c=i),l[i]++,t+=3;var d=0;for(l[0]=0,h=1;h<=c;++h)f[h]=d=d+l[h-1]<<1;for(h=0;h<u;++h)0!=(d=o[h])&&(s[h]=f[d]++);var p=0;for(h=0;h<u;++h)if(0!=(p=o[h])){d=U[s[h]]>>8-p;for(var v=(1<<7-p)-1;v>=0;--v)se[d|v<<p]=7&p|h<<3}var m=[];for(c=1;m.length<r+n;)switch(t+=7&(d=se[V(e,t)]),d>>>=3){case 16:for(i=3+$(e,t),t+=2,d=m[m.length-1];i-- >0;)m.push(d);break;case 17:for(i=3+z(e,t),t+=3;i-- >0;)m.push(0);break;case 18:for(i=11+V(e,t),t+=7;i-- >0;)m.push(0);break;default:m.push(d),c<d&&(c=d)}var g=m.slice(0,r),b=m.slice(r);for(h=r;h<286;++h)g[h]=0;for(h=n;h<30;++h)b[h]=0;return ce=Q(g,ie,286),le=Q(b,oe,30),t}function ue(e,t){var r=function(e,t){if(3==e[0]&&!(3&e[1]))return[T(t),2];for(var r=0,n=0,a=E(t||1<<18),i=0,o=a.length>>>0,s=0,c=0;0==(1&n);)if(n=z(e,r),r+=3,n>>>1!=0)for(n>>1==1?(s=9,c=5):(r=fe(e,r),s=ce,c=le);;){!t&&o<i+32767&&(o=(a=Z(a,i+32767)).length);var l=X(e,r,s),f=n>>>1==1?ee[l]:ie[l];if(r+=15&f,0==((f>>>=4)>>>8&255))a[i++]=f;else{if(256==f)break;var u=(f-=257)<8?0:f-4>>2;u>5&&(u=0);var h=i+M[f];u>0&&(h+=X(e,r,u),r+=u),l=X(e,r,c),r+=15&(f=n>>>1==1?te[l]:oe[l]);var d=(f>>>=4)<4?0:f-2>>1,p=F[f];for(d>0&&(p+=X(e,r,d),r+=d),!t&&o<h&&(o=(a=Z(a,h+100)).length);i<h;)a[i]=a[i-p],++i}}else{7&r&&(r+=8-(7&r));var v=e[r>>>3]|e[1+(r>>>3)]<<8;if(r+=32,v>0)for(!t&&o<i+v&&(o=(a=Z(a,i+v)).length);v-- >0;)a[i++]=e[r>>>3],r+=8}return t?[a,r+7>>>3]:[a.slice(0,i),r+7>>>3]}(e.slice(e.l||0),t);return e.l+=r[1],r[0]}function he(e,t){if(!e)throw new Error(t);"undefined"!=typeof console&&console.error(t)}function de(e,t){var r=e;or(r,0);var n={FileIndex:[],FullPaths:[]};h(n,{root:t.root});for(var a=r.length-4;(80!=r[a]||75!=r[a+1]||5!=r[a+2]||6!=r[a+3])&&a>=0;)--a;r.l=a+4,r.l+=4;var o=r.read_shift(2);r.l+=6;var s=r.read_shift(4);for(r.l=s,a=0;a<o;++a){r.l+=20;var c=r.read_shift(4),l=r.read_shift(4),f=r.read_shift(2),u=r.read_shift(2),d=r.read_shift(2);r.l+=8;var p=r.read_shift(4),v=i(r.slice(r.l+f,r.l+f+u));r.l+=f+u+d;var m=r.l;r.l=p+4,pe(r,c,l,n,v),r.l=m}return n}function pe(e,t,r,n,a){e.l+=2;var o=e.read_shift(2),s=e.read_shift(2),c=function(e){var t=65535&e.read_shift(2),r=65535&e.read_shift(2),n=new Date,a=31&r,i=15&(r>>>=5);r>>>=4,n.setMilliseconds(0),n.setFullYear(r+1980),n.setMonth(i-1),n.setDate(a);var o=31&t,s=63&(t>>>=5);return t>>>=6,n.setHours(t),n.setMinutes(s),n.setSeconds(o<<1),n}(e);if(8257&o)throw new Error("Unsupported ZIP encryption");e.read_shift(4);for(var l=e.read_shift(4),f=e.read_shift(4),u=e.read_shift(2),h=e.read_shift(2),d="",p=0;p<u;++p)d+=String.fromCharCode(e[e.l++]);if(h){var m=i(e.slice(e.l,e.l+h));(m[21589]||{}).mt&&(c=m[21589].mt),((a||{})[21589]||{}).mt&&(c=a[21589].mt)}e.l+=h;var g=e.slice(e.l,e.l+l);switch(s){case 8:g=function(e,t){if(!v)return ue(e,t);var r=new(0,v.InflateRaw),n=r._processChunk(e.slice(e.l),r._finishFlushFlag);return e.l+=r.bytesRead,n}(e,f);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+s)}var b=!1;8&o&&(134695760==e.read_shift(4)&&(e.read_shift(4),b=!0),l=e.read_shift(4),f=e.read_shift(4)),l!=t&&he(b,"Bad compressed size: "+t+" != "+l),f!=r&&he(b,"Bad uncompressed size: "+r+" != "+f),Ee(n,d,g,{unsafe:!0,mt:c})}var ve={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function me(e,t){if(e.ctype)return e.ctype;var r=e.name||"",n=r.match(/\.([^\.]+)$/);return n&&ve[n[1]]||t&&(n=(r=t).match(/[\.\\]([^\.\\])+$/))&&ve[n[1]]?ve[n[1]]:"application/octet-stream"}function ge(e){for(var t=g(e),r=[],n=0;n<t.length;n+=76)r.push(t.slice(n,n+76));return r.join("\r\n")+"\r\n"}function be(e){var t=e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,(function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return"="+(1==t.length?"0"+t:t)}));"\n"==(t=t.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(t="=0D"+t.slice(1));for(var r=[],n=(t=t.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),a=0;a<n.length;++a){var i=n[a];if(0!=i.length)for(var o=0;o<i.length;){var s=76,c=i.slice(o,o+s);"="==c.charAt(s-1)?s--:"="==c.charAt(s-2)?s-=2:"="==c.charAt(s-3)&&(s-=3),c=i.slice(o,o+s),(o+=s)<i.length&&(c+="="),r.push(c)}else r.push("")}return r.join("\r\n")}function ye(e,t,r){for(var n,a="",i="",o="",s=0;s<10;++s){var c=t[s];if(!c||c.match(/^\s*$/))break;var l=c.match(/^(.*?):\s*([^\s].*)$/);if(l)switch(l[1].toLowerCase()){case"content-location":a=l[2].trim();break;case"content-type":o=l[2].trim();break;case"content-transfer-encoding":i=l[2].trim()}}switch(++s,i.toLowerCase()){case"base64":n=x(b(t.slice(s).join("")));break;case"quoted-printable":n=function(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r];r<=e.length&&"="==n.charAt(n.length-1);)n=n.slice(0,n.length-1)+e[++r];t.push(n)}for(var a=0;a<t.length;++a)t[a]=t[a].replace(/[=][0-9A-Fa-f]{2}/g,(function(e){return String.fromCharCode(parseInt(e.slice(1),16))}));return x(t.join("\r\n"))}(t.slice(s));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+i)}var f=Ee(e,a.slice(r.length),n,{unsafe:!0});o&&(f.ctype=o)}function Ee(e,t,r,a){var i=a&&a.unsafe;i||h(e);var o=!i&&Te.find(e,t);if(!o){var s=e.FullPaths[0];t.slice(0,s.length)==s?s=t:("/"!=s.slice(-1)&&(s+="/"),s=(s+t).replace("//","/")),o={name:n(t),type:2},e.FileIndex.push(o),e.FullPaths.push(s),i||Te.utils.cfb_gc(e)}return o.content=r,o.size=r?r.length:0,a&&(a.CLSID&&(o.clsid=a.CLSID),a.mt&&(o.mt=a.mt),a.ct&&(o.ct=a.ct)),o}return t.find=function(e,t){var r=e.FullPaths.map((function(e){return e.toUpperCase()})),n=r.map((function(e){var t=e.split("/");return t[t.length-("/"==e.slice(-1)?2:1)]})),a=!1;47===t.charCodeAt(0)?(a=!0,t=r[0].slice(0,-1)+t):a=-1!==t.indexOf("/");var i=t.toUpperCase(),o=!0===a?r.indexOf(i):n.indexOf(i);if(-1!==o)return e.FileIndex[o];var s=!i.match(C);for(i=i.replace(S,""),s&&(i=i.replace(C,"!")),o=0;o<r.length;++o){if((s?r[o].replace(C,"!"):r[o]).replace(S,"")==i)return e.FileIndex[o];if((s?n[o].replace(C,"!"):n[o]).replace(S,"")==i)return e.FileIndex[o]}return null},t.read=function(t,r){var n=r&&r.type;switch(n||y&&Buffer.isBuffer(t)&&(n="buffer"),n||"base64"){case"file":return function(t,r){return o(),s(e.readFileSync(t),r)}(t,r);case"base64":return s(x(b(t)),r);case"binary":return s(x(t),r)}return s(t,r)},t.parse=s,t.write=function(t,r){var n=p(t,r);switch(r&&r.type||"buffer"){case"file":return o(),e.writeFileSync(r.filename,n),n;case"binary":return"string"==typeof n?n:D(n);case"base64":return g("string"==typeof n?n:D(n));case"buffer":if(y)return Buffer.isBuffer(n)?n:w(n);case"array":return"string"==typeof n?x(n):n}return n},t.writeFile=function(t,r,n){o();var a=p(t,n);e.writeFileSync(r,a)},t.utils={cfb_new:function(e){var t={};return h(t,e),t},cfb_add:Ee,cfb_del:function(e,t){h(e);var r=Te.find(e,t);if(r)for(var n=0;n<e.FileIndex.length;++n)if(e.FileIndex[n]==r)return e.FileIndex.splice(n,1),e.FullPaths.splice(n,1),!0;return!1},cfb_mov:function(e,t,r){h(e);var a=Te.find(e,t);if(a)for(var i=0;i<e.FileIndex.length;++i)if(e.FileIndex[i]==a)return e.FileIndex[i].name=n(r),e.FullPaths[i]=r,!0;return!1},cfb_gc:function(e){d(e,!0)},ReadShift:rr,CheckField:ir,prep_blob:or,bconcat:k,use_zlib:function(e){try{var t=new(0,e.InflateRaw);if(t._processChunk(new Uint8Array([3,0]),t._finishFlushFlag),!t.bytesRead)throw new Error("zlib does not expose bytesRead");v=e}catch(e){console.error("cannot use native zlib: "+(e.message||e))}},_deflateRaw:ae,_inflateRaw:ue,consts:N},t}();function Ee(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;++n)Object.prototype.hasOwnProperty.call(e,t[n])&&r.push(t[n]);return r}function xe(e){for(var t=[],r=Ee(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}var Ae=new Date(1899,11,30,0,0,0);function _e(e,t){var r=e.getTime();return t&&(r-=1263168e5),(r-(Ae.getTime()+6e4*(e.getTimezoneOffset()-Ae.getTimezoneOffset())))/864e5}var ke=new Date,Se=Ae.getTime()+6e4*(ke.getTimezoneOffset()-Ae.getTimezoneOffset()),Ce=ke.getTimezoneOffset();function Oe(e){var t=new Date;return t.setTime(24*e*60*60*1e3+Se),t.getTimezoneOffset()!==Ce&&t.setTime(t.getTime()+6e4*(t.getTimezoneOffset()-Ce)),t}function Re(e){var t=0,r=0,n=!1,a=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!a)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var i=1;i!=a.length;++i)if(a[i]){switch(r=1,i>3&&(n=!0),a[i].slice(a[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+a[i].slice(a[i].length-1));case"D":r*=24;case"H":r*=60;case"M":if(!n)throw new Error("Unsupported ISO Duration Field: M");r*=60}t+=r*parseInt(a[i],10)}return t}var Ne=new Date("2017-02-19T19:06:09.000Z"),De=isNaN(Ne.getFullYear())?new Date("2/19/17"):Ne,Ie=2017==De.getFullYear();function Le(e,t){var r=new Date(e);if(Ie)return t>0?r.setTime(r.getTime()+60*r.getTimezoneOffset()*1e3):t<0&&r.setTime(r.getTime()-60*r.getTimezoneOffset()*1e3),r;if(e instanceof Date)return e;if(1917==De.getFullYear()&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var a=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-60*i.getTimezoneOffset()*1e3)),i}function Pe(e,t){if(y&&Buffer.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return yt(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return yt(u(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!=typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return yt(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return yt(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡",ˆ:"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(e){return r[e]||e}))}catch(e){}for(var n=[],a=0;a!=e.length;++a)n.push(String.fromCharCode(e[a]));return n.join("")}function Me(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=Me(e[r]));return t}function Fe(e,t){for(var r="";r.length<t;)r+=e;return r}function Be(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var r=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,(function(){return r*=100,""}));return isNaN(t=Number(n))?(n=n.replace(/[(](.*)[)]/,(function(e,t){return r=-r,t})),isNaN(t=Number(n))?t:t/r):t/r}var Ue=["january","february","march","april","may","june","july","august","september","october","november","december"];function je(e){var t=new Date(e),r=new Date(NaN),n=t.getYear(),a=t.getMonth(),i=t.getDate();if(isNaN(i))return r;var o=e.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==Ue.indexOf(o))return r}else if(o.match(/[a-z]/))return r;return n<0||n>8099?r:(a>0||i>1)&&101!=n?t:e.match(/[^-0-9:,\/\\]/)?r:t}var He=function(){var e=5=="abacaba".split(/(:?b)/i).length;return function(t,r,n){if(e||"string"==typeof r)return t.split(r);for(var a=t.split(r),i=[a[0]],o=1;o<a.length;++o)i.push(n),i.push(a[o]);return i}}();function $e(e){return e?e.content&&e.type?Pe(e.content,!0):e.data?d(e.data):e.asNodeBuffer&&y?d(e.asNodeBuffer().toString("binary")):e.asBinary?d(e.asBinary()):e._data&&e._data.getContent?d(Pe(Array.prototype.slice.call(e._data.getContent(),0))):null:null}function ze(e){if(!e)return null;if(e.data)return f(e.data);if(e.asNodeBuffer&&y)return e.asNodeBuffer();if(e._data&&e._data.getContent){var t=e._data.getContent();return"string"==typeof t?f(t):Array.prototype.slice.call(t)}return e.content&&e.type?e.content:null}function We(e,t){for(var r=e.FullPaths||Ee(e.files),n=t.toLowerCase().replace(/[\/]/g,"\\"),a=n.replace(/\\/g,"/"),i=0;i<r.length;++i){var o=r[i].replace(/^Root Entry[\/]/,"").toLowerCase();if(n==o||a==o)return e.files?e.files[r[i]]:e.FileIndex[i]}return null}function Ve(e,t){var r=We(e,t);if(null==r)throw new Error("Cannot find file "+t+" in zip");return r}function Xe(e,t,r){if(!r)return(n=Ve(e,t))&&".bin"===n.name.slice(-4)?ze(n):$e(n);var n;if(!t)return null;try{return Xe(e,t)}catch(e){return null}}function Ge(e,t,r){if(!r)return $e(Ve(e,t));if(!t)return null;try{return Ge(e,t)}catch(e){return null}}function Ye(e,t,r){if(!r)return ze(Ve(e,t));if(!t)return null;try{return Ye(e,t)}catch(e){return null}}function qe(e){for(var t=e.FullPaths||Ee(e.files),r=[],n=0;n<t.length;++n)"/"!=t[n].slice(-1)&&r.push(t[n].replace(/^Root Entry[\/]/,""));return r.sort()}function Ke(e,t){switch(t.type){case"base64":return Te.read(e,{type:"base64"});case"binary":return Te.read(e,{type:"binary"});case"buffer":case"array":return Te.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+t.type)}function Ze(e,t){if("/"==e.charAt(0))return e.slice(1);var r=t.split("/");"/"!=t.slice(-1)&&r.pop();for(var n=e.split("/");0!==n.length;){var a=n.shift();".."===a?r.pop():"."!==a&&r.push(a)}return r.join("/")}var Je='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n',Qe=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,et=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,tt=Je.match(et)?et:/<[^>]*>/g,rt=/<\w*:/,nt=/<(\/?)\w+:/;function at(e,t,r){for(var n={},a=0,i=0;a!==e.length&&32!==(i=e.charCodeAt(a))&&10!==i&&13!==i;++a);if(t||(n[0]=e.slice(0,a)),a===e.length)return n;var o=e.match(Qe),s=0,c="",l=0,f="",u="",h=1;if(o)for(l=0;l!=o.length;++l){for(u=o[l],i=0;i!=u.length&&61!==u.charCodeAt(i);++i);for(f=u.slice(0,i).trim();32==u.charCodeAt(i+1);)++i;for(h=34==(a=u.charCodeAt(i+1))||39==a?1:0,c=u.slice(i+1+h,u.length-h),s=0;s!=f.length&&58!==f.charCodeAt(s);++s);if(s===f.length)f.indexOf("_")>0&&(f=f.slice(0,f.indexOf("_"))),n[f]=c,r||(n[f.toLowerCase()]=c);else{var d=(5===s&&"xmlns"===f.slice(0,5)?"xmlns":"")+f.slice(s+1);if(n[d]&&"ext"==f.slice(s-3,s))continue;n[d]=c,r||(n[d.toLowerCase()]=c)}}return n}function it(e){return e.replace(nt,"<$1")}var ot={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},st=xe(ot),ct=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,t=/_x([\da-fA-F]{4})_/gi;return function r(n){var a=n+"",i=a.indexOf("<![CDATA[");if(-1==i)return a.replace(e,(function(e,t){return ot[e]||String.fromCharCode(parseInt(t,e.indexOf("x")>-1?16:10))||e})).replace(t,(function(e,t){return String.fromCharCode(parseInt(t,16))}));var o=a.indexOf("]]>");return r(a.slice(0,i))+a.slice(i+9,o)+r(a.slice(o+3))}}(),lt=/[&<>'"]/g,ft=/[\u0000-\u001f]/g;function ut(e){return(e+"").replace(lt,(function(e){return st[e]})).replace(/\n/g,"<br/>").replace(ft,(function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}var ht=function(){var e=/&#(\d+);/g;function t(e,t){return String.fromCharCode(parseInt(t,10))}return function(r){return r.replace(e,t)}}();function dt(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function pt(e){for(var t="",r=0,n=0,a=0,i=0,o=0,s=0;r<e.length;)(n=e.charCodeAt(r++))<128?t+=String.fromCharCode(n):(a=e.charCodeAt(r++),n>191&&n<224?(o=(31&n)<<6,o|=63&a,t+=String.fromCharCode(o)):(i=e.charCodeAt(r++),n<240?t+=String.fromCharCode((15&n)<<12|(63&a)<<6|63&i):(s=((7&n)<<18|(63&a)<<12|(63&i)<<6|63&(o=e.charCodeAt(r++)))-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(1023&s)))));return t}function vt(e){var t,r,n,a=T(2*e.length),i=1,o=0,s=0;for(r=0;r<e.length;r+=i)i=1,(n=e.charCodeAt(r))<128?t=n:n<224?(t=64*(31&n)+(63&e.charCodeAt(r+1)),i=2):n<240?(t=4096*(15&n)+64*(63&e.charCodeAt(r+1))+(63&e.charCodeAt(r+2)),i=3):(i=4,t=262144*(7&n)+4096*(63&e.charCodeAt(r+1))+64*(63&e.charCodeAt(r+2))+(63&e.charCodeAt(r+3)),s=55296+((t-=65536)>>>10&1023),t=56320+(1023&t)),0!==s&&(a[o++]=255&s,a[o++]=s>>>8,s=0),a[o++]=t%256,a[o++]=t>>>8;return a.slice(0,o).toString("ucs2")}function mt(e){return w(e,"binary").toString("utf8")}var gt="foo bar baz☃🍣",bt=y&&(mt(gt)==pt(gt)&&mt||vt(gt)==pt(gt)&&vt)||pt,yt=y?function(e){return w(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,a=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(63&n)));break;case n>=55296&&n<57344:n-=55296,a=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(a>>18&7))),t.push(String.fromCharCode(144+(a>>12&63))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(63&a)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(63&n)))}return t.join("")},wt=function(){var e={};return function(t,r){var n=t+"|"+(r||"");return e[n]?e[n]:e[n]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+t+">",r||"")}}(),Tt=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var r=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),n=0;n<e.length;++n)r=r.replace(e[n][0],e[n][1]);return r}}(),Et=function(){var e={};return function(t){return void 0!==e[t]?e[t]:e[t]=new RegExp("<(?:vt:)?"+t+">([\\s\\S]*?)</(?:vt:)?"+t+">","g")}}(),xt=/<\/?(?:vt:)?variant>/g,At=/<(?:vt:)([^>]*)>([\s\S]*)</;function _t(e,t){var r=at(e),n=e.match(Et(r.baseType))||[],a=[];if(n.length!=r.size){if(t.WTF)throw new Error("unexpected vector length "+n.length+" != "+r.size);return a}return n.forEach((function(e){var t=e.replace(xt,"").match(At);t&&a.push({v:bt(t[2]),t:t[1]})})),a}function kt(e){if(y&&Buffer.isBuffer(e))return e.toString("utf8");if("string"==typeof e)return e;if("undefined"!=typeof Uint8Array&&e instanceof Uint8Array)return bt(A(_(e)));throw new Error("Bad input format: expected Buffer or string")}var St=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/gm,Ct=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Ot=function(e){for(var t=[],r=0;r<e[0].length;++r)if(e[0][r])for(var n=0,a=e[0][r].length;n<a;n+=10240)t.push.apply(t,e[0][r].slice(n,n+10240));return t},Rt=y?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map((function(e){return Buffer.isBuffer(e)?e:w(e)}))):Ot(e)}:Ot,Nt=function(e,t,r){for(var n=[],a=t;a<r;a+=2)n.push(String.fromCharCode(Zt(e,a)));return n.join("").replace(S,"")},Dt=y?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(S,""):Nt(e,t,r)}:Nt,It=function(e,t,r){for(var n=[],a=t;a<t+r;++a)n.push(("0"+e[a].toString(16)).slice(-2));return n.join("")},Lt=y?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):It(e,t,r)}:It,Pt=function(e,t,r){for(var n=[],a=t;a<r;a++)n.push(String.fromCharCode(Kt(e,a)));return n.join("")},Mt=y?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf8",t,r):Pt(e,t,r)}:Pt,Ft=function(e,t){var r=Qt(e,t);return r>0?Mt(e,t+4,t+4+r-1):""},Bt=Ft,Ut=function(e,t){var r=Qt(e,t);return r>0?Mt(e,t+4,t+4+r-1):""},jt=Ut,Ht=function(e,t){var r=2*Qt(e,t);return r>0?Mt(e,t+4,t+4+r-1):""},$t=Ht,zt=function(e,t){var r=Qt(e,t);return r>0?Dt(e,t+4,t+4+r):""},Wt=zt,Vt=function(e,t){var r=Qt(e,t);return r>0?Mt(e,t+4,t+4+r):""},Xt=Vt,Gt=function(e,t){return function(e,t){for(var r=1-2*(e[t+7]>>>7),n=((127&e[t+7])<<4)+(e[t+6]>>>4&15),a=15&e[t+6],i=5;i>=0;--i)a=256*a+e[t+i];return 2047==n?0==a?r*(1/0):NaN:(0==n?n=-1022:(n-=1023,a+=Math.pow(2,52)),r*Math.pow(2,n-52)*a)}(e,t)},Yt=Gt,qt=function(e){return Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array};y&&(Bt=function(e,t){if(!Buffer.isBuffer(e))return Ft(e,t);var r=e.readUInt32LE(t);return r>0?e.toString("utf8",t+4,t+4+r-1):""},jt=function(e,t){if(!Buffer.isBuffer(e))return Ut(e,t);var r=e.readUInt32LE(t);return r>0?e.toString("utf8",t+4,t+4+r-1):""},$t=function(e,t){if(!Buffer.isBuffer(e))return Ht(e,t);var r=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+r-1)},Wt=function(e,t){if(!Buffer.isBuffer(e))return zt(e,t);var r=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+r)},Xt=function(e,t){if(!Buffer.isBuffer(e))return Vt(e,t);var r=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+r)},Yt=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):Gt(e,t)},qt=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array});var Kt=function(e,t){return e[t]},Zt=function(e,t){return 256*e[t+1]+e[t]},Jt=function(e,t){var r=256*e[t+1]+e[t];return r<32768?r:-1*(65535-r+1)},Qt=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},er=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},tr=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function rr(e,t){var r,n,a,i,o,s,c="",l=[];switch(t){case"dbcs":if(s=this.l,y&&Buffer.isBuffer(this))c=this.slice(this.l,this.l+2*e).toString("utf16le");else for(o=0;o<e;++o)c+=String.fromCharCode(Zt(this,s)),s+=2;e*=2;break;case"utf8":c=Mt(this,this.l,this.l+e);break;case"utf16le":e*=2,c=Dt(this,this.l,this.l+e);break;case"wstr":return rr.call(this,e,"dbcs");case"lpstr-ansi":c=Bt(this,this.l),e=4+Qt(this,this.l);break;case"lpstr-cp":c=jt(this,this.l),e=4+Qt(this,this.l);break;case"lpwstr":c=$t(this,this.l),e=4+2*Qt(this,this.l);break;case"lpp4":e=4+Qt(this,this.l),c=Wt(this,this.l),2&e&&(e+=2);break;case"8lpp4":e=4+Qt(this,this.l),c=Xt(this,this.l),3&e&&(e+=4-(3&e));break;case"cstr":for(e=0,c="";0!==(a=Kt(this,this.l+e++));)l.push(p(a));c=l.join("");break;case"_wstr":for(e=0,c="";0!==(a=Zt(this,this.l+e));)l.push(p(a)),e+=2;e+=2,c=l.join("");break;case"dbcs-cont":for(c="",s=this.l,o=0;o<e;++o){if(this.lens&&-1!==this.lens.indexOf(s))return a=Kt(this,s),this.l=s+1,i=rr.call(this,e-o,a?"dbcs-cont":"sbcs-cont"),l.join("")+i;l.push(p(Zt(this,s))),s+=2}c=l.join(""),e*=2;break;case"cpstr":0;case"sbcs-cont":for(c="",s=this.l,o=0;o!=e;++o){if(this.lens&&-1!==this.lens.indexOf(s))return a=Kt(this,s),this.l=s+1,i=rr.call(this,e-o,a?"dbcs-cont":"sbcs-cont"),l.join("")+i;l.push(p(Kt(this,s))),s+=1}c=l.join("");break;default:switch(e){case 1:return r=Kt(this,this.l),this.l++,r;case 2:return r=("i"===t?Jt:Zt)(this,this.l),this.l+=2,r;case 4:case-4:return"i"===t||0==(128&this[this.l+3])?(r=(e>0?er:tr)(this,this.l),this.l+=4,r):(n=Qt(this,this.l),this.l+=4,n);case 8:case-8:if("f"===t)return n=8==e?Yt(this,this.l):Yt([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,n;e=8;case 16:c=Lt(this,this.l,e)}}return this.l+=e,c}var nr=function(e,t,r){e[r]=255&t,e[r+1]=t>>>8&255};function ar(e,t,r){var n=0,a=0;if("dbcs"===r){for(a=0;a!=t.length;++a)nr(this,t.charCodeAt(a),this.l+2*a);n=2*t.length}else if("sbcs"===r){for(t=t.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=t.length;++a)this[this.l+a]=255&t.charCodeAt(a);n=t.length}else{if("hex"===r){for(;a<e;++a)this[this.l++]=parseInt(t.slice(2*a,2*a+2),16)||0;return this}if("utf16le"===r){var i=Math.min(this.l+e,this.length);for(a=0;a<Math.min(t.length,e);++a){var o=t.charCodeAt(a);this[this.l++]=255&o,this[this.l++]=o>>8}for(;this.l<i;)this[this.l++]=0;return this}switch(e){case 1:n=1,this[this.l]=255&t;break;case 2:n=2,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t;break;case 3:n=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:n=4,function(e,t,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255}(this,t,this.l);break;case 8:if(n=8,"f"===r){!function(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,a=0,i=0,o=n?-t:t;isFinite(o)?0==o?a=i=0:(a=Math.floor(Math.log(o)/Math.LN2),i=o*Math.pow(2,52-a),a<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?a=-1022:(i-=Math.pow(2,52),a+=1023)):(a=2047,i=isNaN(t)?26985:0);for(var s=0;s<=5;++s,i/=256)e[r+s]=255&i;e[r+6]=(15&a)<<4|15&i,e[r+7]=a>>4|n}(this,t,this.l);break}case 16:break;case-4:n=4,function(e,t,r){e[r]=255&t,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255}(this,t,this.l)}}return this.l+=n,this}function ir(e,t){var r=Lt(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function or(e,t){e.l=t,e.read_shift=rr,e.chk=ir,e.write_shift=ar}function sr(e,t){e.l+=t}function cr(e){var t=T(e);return or(t,0),t}function lr(e,t,r){if(e){var n,a,i;or(e,e.l||0);for(var o=e.length,s=0,c=0;e.l<o;){128&(s=e.read_shift(1))&&(s=(127&s)+((127&e.read_shift(1))<<7));var l=Go[s]||Go[65535];for(i=127&(n=e.read_shift(1)),a=1;a<4&&128&n;++a)i+=(127&(n=e.read_shift(1)))<<7*a;c=e.l+i;var f=l.f&&l.f(e,i,r);if(e.l=c,t(f,l,s))return}}}function fr(){var e=[],t=y?256:2048,r=function(e){var t=cr(e);return or(t,0),t},n=r(t),a=function(){n&&(n.length>n.l&&((n=n.slice(0,n.l)).l=n.length),n.length>0&&e.push(n),n=null)},i=function(e){return n&&e<n.length-n.l?n:(a(),n=r(Math.max(e+1,t)))};return{next:i,push:function(e){a(),null==(n=e).l&&(n.l=n.length),i(t)},end:function(){return a(),k(e)},_bufs:e}}function ur(e,t,r){var n=Me(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function hr(e,t,r){var n=Me(e);return n.s=ur(n.s,t.s,r),n.e=ur(n.e,t.s,r),n}function dr(e,t){if(e.cRel&&e.c<0)for(e=Me(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=Me(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=wr(e);return e.cRel||null==e.cRel||(r=r.replace(/^([A-Z])/,"$$$1")),e.rRel||null==e.rRel||(r=r.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")),r}function pr(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?dr(e.s,t.biff)+":"+dr(e.e,t.biff):(e.s.rRel?"":"$")+mr(e.s.r)+":"+(e.e.rRel?"":"$")+mr(e.e.r):(e.s.cRel?"":"$")+br(e.s.c)+":"+(e.e.cRel?"":"$")+br(e.e.c)}function vr(e){return parseInt(e.replace(/\$(\d+)$/,"$1"),10)-1}function mr(e){return""+(e+1)}function gr(e){for(var t=e.replace(/^\$([A-Z])/,"$1"),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function br(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function yr(e){for(var t=0,r=0,n=0;n<e.length;++n){var a=e.charCodeAt(n);a>=48&&a<=57?t=10*t+(a-48):a>=65&&a<=90&&(r=26*r+(a-64))}return{c:r-1,r:t-1}}function wr(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function Tr(e){var t=e.indexOf(":");return-1==t?{s:yr(e),e:yr(e)}:{s:yr(e.slice(0,t)),e:yr(e.slice(t+1))}}function Er(e,t){return void 0===t||"number"==typeof t?Er(e.s,e.e):("string"!=typeof e&&(e=wr(e)),"string"!=typeof t&&(t=wr(t)),e==t?e:e+":"+t)}function xr(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,a=0,i=e.length;for(r=0;n<i&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.s.c=--r,r=0;n<i&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;if(t.s.r=--r,n===i||10!=a)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=i&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.e.c=--r,r=0;n!=i&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;return t.e.r=--r,t}function Ar(e,t,r){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),"e"==e.t?Kr[e.v]||e.v:function(e,t){var r="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=ve(e.z,r?_e(t):t)}catch(e){}try{return e.w=ve((e.XF||{}).numFmtId||(r?14:0),r?_e(t):t)}catch(e){return""+t}}(e,null==t?e.v:t))}function _r(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function kr(e,t){return function(e,t,r){var n=r||{},a=e?Array.isArray(e):n.dense,i=e||(a?[]:{}),o=0,s=0;if(i&&null!=n.origin){if("number"==typeof n.origin)o=n.origin;else{var c="string"==typeof n.origin?yr(n.origin):n.origin;o=c.r,s=c.c}i["!ref"]||(i["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var f=xr(i["!ref"]);l.s.c=f.s.c,l.s.r=f.s.r,l.e.c=Math.max(l.e.c,f.e.c),l.e.r=Math.max(l.e.r,f.e.r),-1==o&&(l.e.r=o=f.e.r+1)}for(var u=0;u!=t.length;++u)if(t[u]){if(!Array.isArray(t[u]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=t[u].length;++h)if(void 0!==t[u][h]){var d={v:t[u][h]},p=o+u,v=s+h;if(l.s.r>p&&(l.s.r=p),l.s.c>v&&(l.s.c=v),l.e.r<p&&(l.e.r=p),l.e.c<v&&(l.e.c=v),!t[u][h]||"object"!=typeof t[u][h]||Array.isArray(t[u][h])||t[u][h]instanceof Date)if(Array.isArray(d.v)&&(d.f=t[u][h][1],d.v=d.v[0]),null===d.v)if(d.f)d.t="n";else if(n.nullError)d.t="e",d.v=0;else{if(!n.sheetStubs)continue;d.t="z"}else"number"==typeof d.v?d.t="n":"boolean"==typeof d.v?d.t="b":d.v instanceof Date?(d.z=n.dateNF||B[14],n.cellDates?(d.t="d",d.w=ve(d.z,_e(d.v))):(d.t="n",d.v=_e(d.v),d.w=ve(d.z,d.v))):d.t="s";else d=t[u][h];if(a)i[p]||(i[p]=[]),i[p][v]&&i[p][v].z&&(d.z=i[p][v].z),i[p][v]=d;else{var m=wr({c:v,r:p});i[m]&&i[m].z&&(d.z=i[m].z),i[m]=d}}}return l.s.c<1e7&&(i["!ref"]=Er(l)),i}(null,e,t)}function Sr(e){var t=e.read_shift(4);return 0===t?"":e.read_shift(t,"dbcs")}function Cr(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function Or(e,t){var r=e.l,n=e.read_shift(1),a=Sr(e),i=[],o={t:a,h:a};if(0!=(1&n)){for(var s=e.read_shift(4),c=0;c!=s;++c)i.push(Cr(e));o.r=i}else o.r=[{ich:0,ifnt:0}];return e.l=r+t,o}var Rr=Or;function Nr(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function Dr(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}var Ir=Sr;function Lr(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}var Pr=Sr,Mr=Lr;function Fr(e){var t=e.slice(e.l,e.l+4),r=1&t[0],n=2&t[0];e.l+=4;var a=0===n?Yt([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):er(t,0)>>2;return r?a/100:a}function Br(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var Ur=Br;function jr(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Hr(e,t){var r=e.read_shift(4);switch(r){case 0:return"";case 4294967295:case 4294967294:return{2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"}[e.read_shift(4)]||""}if(r>400)throw new Error("Unsupported Clipboard: "+r.toString(16));return e.l-=4,e.read_shift(0,1==t?"lpstr":"lpwstr")}var $r=80,zr=[$r,81],Wr={1:{n:"CodePage",t:2},2:{n:"Category",t:$r},3:{n:"PresentationFormat",t:$r},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:$r},15:{n:"Company",t:$r},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:$r},27:{n:"ContentStatus",t:$r},28:{n:"Language",t:$r},29:{n:"Version",t:$r},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Vr={1:{n:"CodePage",t:2},2:{n:"Title",t:$r},3:{n:"Subject",t:$r},4:{n:"Author",t:$r},5:{n:"Keywords",t:$r},6:{n:"Comments",t:$r},7:{n:"Template",t:$r},8:{n:"LastAuthor",t:$r},9:{n:"RevNumber",t:$r},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:$r},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Xr={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},Gr=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function Yr(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var qr=Me(Yr([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),Kr={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Zr={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Jr={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Qr={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function en(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function tn(e,t){var r={"!id":{}};if(!e)return r;"/"!==t.charAt(0)&&(t="/"+t);var n={};return(e.match(tt)||[]).forEach((function(e){var a=at(e);if("<Relationship"===a[0]){var i={};i.Type=a.Type,i.Target=a.Target,i.Id=a.Id,a.TargetMode&&(i.TargetMode=a.TargetMode);var o="External"===a.TargetMode?a.Target:Ze(a.Target,t);r[o]=i,n[a.Id]=i}})),r["!id"]=n,r}var rn=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],nn=function(){for(var e=new Array(rn.length),t=0;t<rn.length;++t){var r=rn[t],n="(?:"+r[0].slice(0,r[0].indexOf(":"))+":)"+r[0].slice(r[0].indexOf(":")+1);e[t]=new RegExp("<"+n+"[^>]*>([\\s\\S]*?)</"+n+">")}return e}();function an(e){var t={};e=bt(e);for(var r=0;r<rn.length;++r){var n=rn[r],a=e.match(nn[r]);null!=a&&a.length>0&&(t[n[1]]=ct(a[1])),"date"===n[2]&&t[n[1]]&&(t[n[1]]=Le(t[n[1]]))}return t}var on=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];function sn(e,t,r,n){var a=[];if("string"==typeof e)a=_t(e,n);else for(var i=0;i<e.length;++i)a=a.concat(e[i].map((function(e){return{v:e}})));var o="string"==typeof t?_t(t,n).map((function(e){return e.v})):t,s=0,c=0;if(o.length>0)for(var l=0;l!==a.length;l+=2){switch(c=+a[l+1].v,a[l].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":r.Worksheets=c,r.SheetNames=o.slice(s,s+c);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":r.NamedRanges=c,r.DefinedNames=o.slice(s,s+c);break;case"Charts":case"Diagramme":r.Chartsheets=c,r.ChartNames=o.slice(s,s+c)}s+=c}}var cn,ln=/<[^>]+>[^<]*/g,fn={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function un(e,t,r){cn||(cn=xe(fn)),e[t=cn[t]||t]=r}function hn(e){var t=e.read_shift(4),r=e.read_shift(4);return new Date(1e3*(r/1e7*Math.pow(2,32)+t/1e7-11644473600)).toISOString().replace(/\.000/,"")}function dn(e,t,r){var n=e.l,a=e.read_shift(0,"lpstr-cp");if(r)for(;e.l-n&3;)++e.l;return a}function pn(e,t,r){var n=e.read_shift(0,"lpwstr");return r&&(e.l+=4-(n.length+1&3)&3),n}function vn(e,t,r){return 31===t?pn(e):dn(e,0,r)}function mn(e,t,r){return vn(e,t,!1===r?0:4)}function gn(e){var t=e.l,r=wn(e,81);return 0==e[e.l]&&0==e[e.l+1]&&e.l-t&2&&(e.l+=2),[r,wn(e,3)]}function bn(e,t){for(var r=e.read_shift(4),n={},a=0;a!=r;++a){var i=e.read_shift(4),o=e.read_shift(4);n[i]=e.read_shift(o,1200===t?"utf16le":"utf8").replace(S,"").replace(C,"!"),1200===t&&o%2&&(e.l+=2)}return 3&e.l&&(e.l=e.l>>3<<2),n}function yn(e){var t=e.read_shift(4),r=e.slice(e.l,e.l+t);return e.l+=t,(3&t)>0&&(e.l+=4-(3&t)&3),r}function wn(e,t,r){var n,a=e.read_shift(2),i=r||{};if(e.l+=2,12!==t&&a!==t&&-1===zr.indexOf(t)&&(4126!=(65534&t)||4126!=(65534&a)))throw new Error("Expected type "+t+" saw "+a);switch(12===t?a:t){case 2:return n=e.read_shift(2,"i"),i.raw||(e.l+=2),n;case 3:return e.read_shift(4,"i");case 11:return 0!==e.read_shift(4);case 19:return e.read_shift(4);case 30:return dn(e,0,4).replace(S,"");case 31:return pn(e);case 64:return hn(e);case 65:return yn(e);case 71:return function(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}(e);case 80:return mn(e,a,!i.raw).replace(S,"");case 81:return function(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return vn(e,t,0)}(e,a).replace(S,"");case 4108:return function(e){for(var t=e.read_shift(4),r=[],n=0;n<t/2;++n)r.push(gn(e));return r}(e);case 4126:case 4127:return 4127==a?function(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n){var a=e.l;r[n]=e.read_shift(0,"lpwstr").replace(S,""),e.l-a&2&&(e.l+=2)}return r}(e):function(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n)r[n]=e.read_shift(0,"lpstr-cp").replace(S,"");return r}(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+a)}}function Tn(e,t){var r=e.l,n=e.read_shift(4),a=e.read_shift(4),i=[],o=0,s=0,l=-1,f={};for(o=0;o!=a;++o){var u=e.read_shift(4),h=e.read_shift(4);i[o]=[u,h+r]}i.sort((function(e,t){return e[1]-t[1]}));var d={};for(o=0;o!=a;++o){if(e.l!==i[o][1]){var p=!0;if(o>0&&t)switch(t[i[o-1][0]].t){case 2:e.l+2===i[o][1]&&(e.l+=2,p=!1);break;case 80:case 4108:e.l<=i[o][1]&&(e.l=i[o][1],p=!1)}if((!t||0==o)&&e.l<=i[o][1]&&(p=!1,e.l=i[o][1]),p)throw new Error("Read Error: Expected address "+i[o][1]+" at "+e.l+" :"+o)}if(t){var v=t[i[o][0]];if(d[v.n]=wn(e,v.t,{raw:!0}),"version"===v.p&&(d[v.n]=String(d[v.n]>>16)+"."+("0000"+String(65535&d[v.n])).slice(-4)),"CodePage"==v.n)switch(d[v.n]){case 0:d[v.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:c(s=d[v.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+d[v.n])}}else if(1===i[o][0]){if(s=d.CodePage=wn(e,2),c(s),-1!==l){var m=e.l;e.l=i[l][1],f=bn(e,s),e.l=m}}else if(0===i[o][0]){if(0===s){l=o,e.l=i[o+1][1];continue}f=bn(e,s)}else{var g,b=f[i[o][0]];switch(e[e.l]){case 65:e.l+=4,g=yn(e);break;case 30:case 31:e.l+=4,g=mn(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,g=e.read_shift(4,"i");break;case 19:e.l+=4,g=e.read_shift(4);break;case 5:e.l+=4,g=e.read_shift(8,"f");break;case 11:e.l+=4,g=An(e,4);break;case 64:e.l+=4,g=Le(hn(e));break;default:throw new Error("unparsed value: "+e[e.l])}d[b]=g}}return e.l=r+n,d}function En(e,t,r){var n=e.content;if(!n)return{};or(n,0);var a,i,o,s,c=0;n.chk("feff","Byte Order: "),n.read_shift(2);var l=n.read_shift(4),f=n.read_shift(16);if(f!==Te.utils.consts.HEADER_CLSID&&f!==r)throw new Error("Bad PropertySet CLSID "+f);if(1!==(a=n.read_shift(4))&&2!==a)throw new Error("Unrecognized #Sets: "+a);if(i=n.read_shift(16),s=n.read_shift(4),1===a&&s!==n.l)throw new Error("Length mismatch: "+s+" !== "+n.l);2===a&&(o=n.read_shift(16),c=n.read_shift(4));var u,h=Tn(n,t),d={SystemIdentifier:l};for(var p in h)d[p]=h[p];if(d.FMTID=i,1===a)return d;if(c-n.l==2&&(n.l+=2),n.l!==c)throw new Error("Length mismatch 2: "+n.l+" !== "+c);try{u=Tn(n,null)}catch(e){}for(p in u)d[p]=u[p];return d.FMTID=[i,o],d}function xn(e,t){return e.read_shift(t),null}function An(e,t){return 1===e.read_shift(t)}function _n(e){return e.read_shift(2,"u")}function kn(e,t){return function(e,t,r){for(var n=[],a=e.l+t;e.l<a;)n.push(r(e,a-e.l));if(a!==e.l)throw new Error("Slurp error");return n}(e,t,_n)}function Sn(e,r,n){var a=e.read_shift(n&&n.biff>=12?2:1),i="sbcs-cont",o=t;n&&n.biff>=8&&(t=1200),n&&8!=n.biff?12==n.biff&&(i="wstr"):e.read_shift(1)&&(i="dbcs-cont"),n.biff>=2&&n.biff<=5&&(i="cpstr");var s=a?e.read_shift(a,i):"";return t=o,s}function Cn(e){var r=t;t=1200;var n,a=e.read_shift(2),i=e.read_shift(1),o=4&i,s=8&i,c=1+(1&i),l=0,f={};s&&(l=e.read_shift(2)),o&&(n=e.read_shift(4));var u=2==c?"dbcs-cont":"sbcs-cont",h=0===a?"":e.read_shift(a,u);return s&&(e.l+=4*l),o&&(e.l+=n),f.t=h,s||(f.raw="<t>"+f.t+"</t>",f.r=f.t),t=r,f}function On(e,t,r){if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}return 0===e.read_shift(1)?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont")}function Rn(e,t,r){var n=e.read_shift(r&&2==r.biff?1:2);return 0===n?(e.l++,""):On(e,n,r)}function Nn(e,t,r){if(r.biff>5)return Rn(e,0,r);var n=e.read_shift(1);return 0===n?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function Dn(e){var t=e.read_shift(4);return t>0?e.read_shift(t,"utf16le").replace(S,""):""}function In(e){return[e.read_shift(1),e.read_shift(1),e.read_shift(1),e.read_shift(1)]}function Ln(e,t){var r=In(e);return r[3]=0,r}function Pn(e){return{r:e.read_shift(2),c:e.read_shift(2),ixfe:e.read_shift(2)}}function Mn(e,t,r){var n=r.biff>8?4:2;return[e.read_shift(n),e.read_shift(n,"i"),e.read_shift(n,"i")]}function Fn(e){return[e.read_shift(2),Fr(e)]}function Bn(e){var t=e.read_shift(2),r=e.read_shift(2);return{s:{c:e.read_shift(2),r:t},e:{c:e.read_shift(2),r}}}function Un(e){var t=e.read_shift(2),r=e.read_shift(2);return{s:{c:e.read_shift(1),r:t},e:{c:e.read_shift(1),r}}}var jn=Un;function Hn(e){e.l+=4;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2);return e.l+=12,[r,t,n]}function $n(e){e.l+=2,e.l+=e.read_shift(2)}var zn={0:$n,4:$n,5:$n,6:$n,7:function(e){return e.l+=4,e.cf=e.read_shift(2),{}},8:$n,9:$n,10:$n,11:$n,12:$n,13:function(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t},14:$n,15:$n,16:$n,17:$n,18:$n,19:$n,20:$n,21:Hn};function Wn(e,t){var r={BIFFVer:0,dt:0};switch(r.BIFFVer=e.read_shift(2),(t-=2)>=2&&(r.dt=e.read_shift(2),e.l-=2),r.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+r.BIFFVer)}return e.read_shift(t),r}function Vn(e,t,r){var n=0;r&&2==r.biff||(n=e.read_shift(2));var a=e.read_shift(2);return r&&2==r.biff&&(n=1-(a>>15),a&=32767),[{Unsynced:1&n,DyZero:(2&n)>>1,ExAsc:(4&n)>>2,ExDsc:(8&n)>>3},a]}var Xn=Nn;function Gn(e,t,r){var n=e.l+t,a=8!=r.biff&&r.biff?2:4,i=e.read_shift(a),o=e.read_shift(a),s=e.read_shift(2),c=e.read_shift(2);return e.l=n,{s:{r:i,c:s},e:{r:o,c}}}function Yn(e,t,r){var n=Pn(e);2!=r.biff&&9!=t||++e.l;var a=function(e){var t=e.read_shift(1);return 1===e.read_shift(1)?t:1===t}(e);return n.val=a,n.t=!0===a||!1===a?"b":"e",n}var qn=function(e,t,r){return 0===t?"":Nn(e,0,r)};function Kn(e,t,r){var n,a=e.read_shift(2),i={fBuiltIn:1&a,fWantAdvise:a>>>1&1,fWantPict:a>>>2&1,fOle:a>>>3&1,fOleLink:a>>>4&1,cf:a>>>5&1023,fIcon:a>>>15&1};return 14849===r.sbcch&&(n=function(e,t,r){e.l+=4,t-=4;var n=e.l+t,a=Sn(e,0,r),i=e.read_shift(2);if(i!==(n-=e.l))throw new Error("Malformed AddinUdf: padding = "+n+" != "+i);return e.l+=i,a}(e,t-2,r)),i.body=n||e.read_shift(t-2),"string"==typeof n&&(i.Name=n),i}var Zn=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function Jn(e,t,r){var n=e.l+t,a=e.read_shift(2),i=e.read_shift(1),o=e.read_shift(1),s=e.read_shift(r&&2==r.biff?1:2),c=0;(!r||r.biff>=5)&&(5!=r.biff&&(e.l+=2),c=e.read_shift(2),5==r.biff&&(e.l+=2),e.l+=4);var l=On(e,o,r);32&a&&(l=Zn[l.charCodeAt(0)]);var f=n-e.l;r&&2==r.biff&&--f;var u=n!=e.l&&0!==s&&f>0?function(e,t,r,n){var a,i=e.l+t,o=Ii(e,n,r);return i!==e.l&&(a=Di(e,i-e.l,o,r)),[o,a]}(e,f,r,s):[];return{chKey:i,Name:l,itab:c,rgce:u}}function Qn(e,t,r){if(r.biff<8)return function(e,t,r){3==e[e.l+1]&&e[e.l]++;var n=Sn(e,0,r);return 3==n.charCodeAt(0)?n.slice(1):n}(e,0,r);for(var n=[],a=e.l+t,i=e.read_shift(r.biff>8?4:2);0!=i--;)n.push(Mn(e,r.biff,r));if(e.l!=a)throw new Error("Bad ExternSheet: "+e.l+" != "+a);return n}function ea(e,t,r){var n=jn(e,6);switch(r.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[n,Ui(e,t,r)]}var ta={8:function(e,t){var r=e.l+t;e.l+=10;var n=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var a=e.read_shift(1);return e.l+=a,e.l=r,{fmt:n}}};function ra(e,t,r){if(!r.cellStyles)return sr(e,t);var n=r&&r.biff>=12?4:2,a=e.read_shift(n),i=e.read_shift(n),o=e.read_shift(n),s=e.read_shift(n),c=e.read_shift(2);2==n&&(e.l+=2);var l={s:a,e:i,w:o,ixfe:s,flags:c};return(r.biff>=5||!r.biff)&&(l.level=c>>8&7),l}var na=Pn,aa=kn,ia=Rn,oa=[2,3,48,49,131,139,140,245],sa=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=xe({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(t,r){var n=r||{};n.dateNF||(n.dateNF="yyyymmdd");var a=kr(function(t,r){var n=[],a=T(1);switch(r.type){case"base64":a=x(b(t));break;case"binary":a=x(t);break;case"buffer":case"array":a=t}or(a,0);var i=a.read_shift(1),o=!!(136&i),s=!1,c=!1;switch(i){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:s=!0,o=!0;break;case 140:c=!0;break;default:throw new Error("DBF Unsupported Version: "+i.toString(16))}var l=0,f=521;2==i&&(l=a.read_shift(2)),a.l+=3,2!=i&&(l=a.read_shift(4)),l>1048576&&(l=1e6),2!=i&&(f=a.read_shift(2));var u=a.read_shift(2),d=r.codepage||1252;2!=i&&(a.l+=16,a.read_shift(1),0!==a[a.l]&&(d=e[a[a.l]]),a.l+=1,a.l+=2),c&&(a.l+=36);for(var p=[],v={},m=Math.min(a.length,2==i?521:f-10-(s?264:0)),g=c?32:11;a.l<m&&13!=a[a.l];)switch((v={}).name=h.utils.decode(d,a.slice(a.l,a.l+g)).replace(/[\u0000\r\n].*$/g,""),a.l+=g,v.type=String.fromCharCode(a.read_shift(1)),2==i||c||(v.offset=a.read_shift(4)),v.len=a.read_shift(1),2==i&&(v.offset=a.read_shift(2)),v.dec=a.read_shift(1),v.name.length&&p.push(v),2!=i&&(a.l+=c?13:14),v.type){case"B":s&&8==v.len||!r.WTF||console.log("Skipping "+v.name+":"+v.type);break;case"G":case"P":r.WTF&&console.log("Skipping "+v.name+":"+v.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+v.type)}if(13!==a[a.l]&&(a.l=f-1),13!==a.read_shift(1))throw new Error("DBF Terminator not found "+a.l+" "+a[a.l]);a.l=f;var y=0,w=0;for(n[0]=[],w=0;w!=p.length;++w)n[0][w]=p[w].name;for(;l-- >0;)if(42!==a[a.l])for(++a.l,n[++y]=[],w=0,w=0;w!=p.length;++w){var E=a.slice(a.l,a.l+p[w].len);a.l+=p[w].len,or(E,0);var A=h.utils.decode(d,E);switch(p[w].type){case"C":A.trim().length&&(n[y][w]=A.replace(/\s+$/,""));break;case"D":8===A.length?n[y][w]=new Date(+A.slice(0,4),+A.slice(4,6)-1,+A.slice(6,8)):n[y][w]=A;break;case"F":n[y][w]=parseFloat(A.trim());break;case"+":case"I":n[y][w]=c?2147483648^E.read_shift(-4,"i"):E.read_shift(4,"i");break;case"L":switch(A.trim().toUpperCase()){case"Y":case"T":n[y][w]=!0;break;case"N":case"F":n[y][w]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+A+"|")}break;case"M":if(!o)throw new Error("DBF Unexpected MEMO for type "+i.toString(16));n[y][w]="##MEMO##"+(c?parseInt(A.trim(),10):E.read_shift(4));break;case"N":(A=A.replace(/\u0000/g,"").trim())&&"."!=A&&(n[y][w]=+A||0);break;case"@":n[y][w]=new Date(E.read_shift(-8,"f")-621356832e5);break;case"T":n[y][w]=new Date(864e5*(E.read_shift(4)-2440588)+E.read_shift(4));break;case"Y":n[y][w]=E.read_shift(4,"i")/1e4+E.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":n[y][w]=-E.read_shift(-8,"f");break;case"B":if(s&&8==p[w].len){n[y][w]=E.read_shift(8,"f");break}case"G":case"P":E.l+=p[w].len;break;case"0":if("_NullFlags"===p[w].name)break;default:throw new Error("DBF Unsupported data type "+p[w].type)}}else a.l+=u;if(2!=i&&a.l<a.length&&26!=a[a.l++])throw new Error("DBF EOF Marker missing "+(a.l-1)+" of "+a.length+" "+a[a.l-1].toString(16));return r&&r.sheetRows&&(n=n.slice(0,r.sheetRows)),r.DBF=p,n}(t,n),n);return a["!cols"]=n.DBF.map((function(e){return{wch:e.len,DBF:e}})),delete n.DBF,a}var n={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function(e,t){try{return _r(r(e,t),t)}catch(e){if(t&&t.WTF)throw e}return{SheetNames:[],Sheets:{}}},to_sheet:r,from_sheet:function(e,r){var i=r||{};if(+i.codepage>=0&&c(+i.codepage),"string"==i.type)throw new Error("Cannot write DBF to JS string");var o=fr(),s=function(e,t){if(null==e||null==e["!ref"])return[];var r={t:"n",v:0},n=0,a=1,i=[],o=0,s="",c={s:{r:0,c:0},e:{r:0,c:0}},l=t||{},f=null!=l.range?l.range:e["!ref"];switch(1===l.header?n=1:"A"===l.header?n=2:Array.isArray(l.header)?n=3:null==l.header&&(n=0),typeof f){case"string":c=xr(f);break;case"number":(c=xr(e["!ref"])).s.r=f;break;default:c=f}n>0&&(a=0);var u=mr(c.s.r),h=[],d=[],p=0,v=0,m=Array.isArray(e),g=c.s.r,b=0,y={};m&&!e[g]&&(e[g]=[]);var w=l.skipHidden&&e["!cols"]||[],T=l.skipHidden&&e["!rows"]||[];for(b=c.s.c;b<=c.e.c;++b)if(!(w[b]||{}).hidden)switch(h[b]=br(b),r=m?e[g][b]:e[h[b]+u],n){case 1:i[b]=b-c.s.c;break;case 2:i[b]=h[b];break;case 3:i[b]=l.header[b-c.s.c];break;default:if(null==r&&(r={w:"__EMPTY",t:"s"}),s=o=Ar(r,null,l),v=y[o]||0){do{s=o+"_"+v++}while(y[s]);y[o]=v,y[s]=1}else y[o]=1;i[b]=s}for(g=c.s.r+a;g<=c.e.r;++g)if(!(T[g]||{}).hidden){var E=As(e,c,g,h,n,i,m,l);(!1===E.isempty||(1===n?!1!==l.blankrows:l.blankrows))&&(d[p++]=E.row)}return d.length=p,d}(e,{header:1,raw:!0,cellDates:!0}),l=s[0],f=s.slice(1),u=e["!cols"]||[],h=0,d=0,p=0,v=1;for(h=0;h<l.length;++h)if(((u[h]||{}).DBF||{}).name)l[h]=u[h].DBF.name,++p;else if(null!=l[h]){if(++p,"number"==typeof l[h]&&(l[h]=l[h].toString(10)),"string"!=typeof l[h])throw new Error("DBF Invalid column name "+l[h]+" |"+typeof l[h]+"|");if(l.indexOf(l[h])!==h)for(d=0;d<1024;++d)if(-1==l.indexOf(l[h]+"_"+d)){l[h]+="_"+d;break}}var m=xr(e["!ref"]),g=[],b=[],y=[];for(h=0;h<=m.e.c-m.s.c;++h){var w="",T="",E=0,x=[];for(d=0;d<f.length;++d)null!=f[d][h]&&x.push(f[d][h]);if(0!=x.length&&null!=l[h]){for(d=0;d<x.length;++d){switch(typeof x[d]){case"number":T="B";break;case"string":default:T="C";break;case"boolean":T="L";break;case"object":T=x[d]instanceof Date?"D":"C"}E=Math.max(E,String(x[d]).length),w=w&&w!=T?"C":T}E>250&&(E=250),"C"==(T=((u[h]||{}).DBF||{}).type)&&u[h].DBF.len>E&&(E=u[h].DBF.len),"B"==w&&"N"==T&&(w="N",y[h]=u[h].DBF.dec,E=u[h].DBF.len),b[h]="C"==w||"N"==T?E:n[w]||0,v+=b[h],g[h]=w}else g[h]="?"}var A=o.next(32);for(A.write_shift(4,318902576),A.write_shift(4,f.length),A.write_shift(2,296+32*p),A.write_shift(2,v),h=0;h<4;++h)A.write_shift(4,0);for(A.write_shift(4,0|(+t[a]||3)<<8),h=0,d=0;h<l.length;++h)if(null!=l[h]){var _=o.next(32),k=(l[h].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);_.write_shift(1,k,"sbcs"),_.write_shift(1,"?"==g[h]?"C":g[h],"sbcs"),_.write_shift(4,d),_.write_shift(1,b[h]||n[g[h]]||0),_.write_shift(1,y[h]||0),_.write_shift(1,2),_.write_shift(4,0),_.write_shift(1,0),_.write_shift(4,0),_.write_shift(4,0),d+=b[h]||n[g[h]]||0}var S=o.next(264);for(S.write_shift(4,13),h=0;h<65;++h)S.write_shift(4,0);for(h=0;h<f.length;++h){var C=o.next(v);for(C.write_shift(1,0),d=0;d<l.length;++d)if(null!=l[d])switch(g[d]){case"L":C.write_shift(1,null==f[h][d]?63:f[h][d]?84:70);break;case"B":C.write_shift(8,f[h][d]||0,"f");break;case"N":var O="0";for("number"==typeof f[h][d]&&(O=f[h][d].toFixed(y[d]||0)),p=0;p<b[d]-O.length;++p)C.write_shift(1,32);C.write_shift(1,O,"sbcs");break;case"D":f[h][d]?(C.write_shift(4,("0000"+f[h][d].getFullYear()).slice(-4),"sbcs"),C.write_shift(2,("00"+(f[h][d].getMonth()+1)).slice(-2),"sbcs"),C.write_shift(2,("00"+f[h][d].getDate()).slice(-2),"sbcs")):C.write_shift(8,"00000000","sbcs");break;case"C":var R=String(null!=f[h][d]?f[h][d]:"").slice(0,b[d]);for(C.write_shift(1,R,"sbcs"),p=0;p<b[d]-R.length;++p)C.write_shift(1,32)}}return o.next(1).write_shift(1,26),o.end()}}}(),ca=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("N("+Ee(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(t,r){var n=e[r];return"number"==typeof n?v(n):n},n=function(e,t,r){var n=t.charCodeAt(0)-32<<4|r.charCodeAt(0)-48;return 59==n?e:v(n)};function a(e,a){var i,o=e.split(/[\n\r]+/),s=-1,l=-1,f=0,u=0,h=[],d=[],p=null,v={},m=[],g=[],b=[],y=0;for(+a.codepage>=0&&c(+a.codepage);f!==o.length;++f){y=0;var w,T=o[f].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),E=T.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),x=E[0];if(T.length>0)switch(x){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==E[1].charAt(0)&&d.push(T.slice(3).replace(/;;/g,";"));break;case"C":var A=!1,_=!1,k=!1,S=!1,C=-1,O=-1;for(u=1;u<E.length;++u)switch(E[u].charAt(0)){case"A":case"G":break;case"X":l=parseInt(E[u].slice(1))-1,_=!0;break;case"Y":for(s=parseInt(E[u].slice(1))-1,_||(l=0),i=h.length;i<=s;++i)h[i]=[];break;case"K":'"'===(w=E[u].slice(1)).charAt(0)?w=w.slice(1,w.length-1):"TRUE"===w?w=!0:"FALSE"===w?w=!1:isNaN(Be(w))?isNaN(je(w).getDate())||(w=Le(w)):(w=Be(w),null!==p&&he(p)&&(w=Oe(w))),A=!0;break;case"E":S=!0;var R=si(E[u].slice(1),{r:s,c:l});h[s][l]=[h[s][l],R];break;case"S":k=!0,h[s][l]=[h[s][l],"S5S"];break;case"R":C=parseInt(E[u].slice(1))-1;break;case"C":O=parseInt(E[u].slice(1))-1;break;default:if(a&&a.WTF)throw new Error("SYLK bad record "+T)}if(A&&(h[s][l]&&2==h[s][l].length?h[s][l][0]=w:h[s][l]=w,p=null),k){if(S)throw new Error("SYLK shared formula cannot have own formula");var N=C>-1&&h[C][O];if(!N||!N[1])throw new Error("SYLK shared formula cannot find base");h[s][l][1]=fi(N[1],{r:s-C,c:l-O})}break;case"F":var D=0;for(u=1;u<E.length;++u)switch(E[u].charAt(0)){case"X":l=parseInt(E[u].slice(1))-1,++D;break;case"Y":for(s=parseInt(E[u].slice(1))-1,i=h.length;i<=s;++i)h[i]=[];break;case"M":y=parseInt(E[u].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":p=d[parseInt(E[u].slice(1))];break;case"W":for(b=E[u].slice(1).split(" "),i=parseInt(b[0],10);i<=parseInt(b[1],10);++i)y=parseInt(b[2],10),g[i-1]=0===y?{hidden:!0}:{wch:y},ja(g[i-1]);break;case"C":g[l=parseInt(E[u].slice(1))-1]||(g[l]={});break;case"R":m[s=parseInt(E[u].slice(1))-1]||(m[s]={}),y>0?(m[s].hpt=y,m[s].hpx=$a(y)):0===y&&(m[s].hidden=!0);break;default:if(a&&a.WTF)throw new Error("SYLK bad record "+T)}D<1&&(p=null);break;default:if(a&&a.WTF)throw new Error("SYLK bad record "+T)}}return m.length>0&&(v["!rows"]=m),g.length>0&&(v["!cols"]=g),a&&a.sheetRows&&(h=h.slice(0,a.sheetRows)),[h,v]}function i(e,t){var r=function(e,t){switch(t.type){case"base64":return a(b(e),t);case"binary":return a(e,t);case"buffer":return a(y&&Buffer.isBuffer(e)?e.toString("binary"):A(e),t);case"array":return a(Pe(e),t)}throw new Error("Unrecognized type "+t.type)}(e,t),n=r[0],i=r[1],o=kr(n,t);return Ee(i).forEach((function(e){o[e]=i[e]})),o}function o(e,t,r,n){var a="C;Y"+(r+1)+";X"+(n+1)+";K";switch(e.t){case"n":a+=e.v||0,e.f&&!e.F&&(a+=";E"+li(e.f,{r,c:n}));break;case"b":a+=e.v?"TRUE":"FALSE";break;case"e":a+=e.w||e.v;break;case"d":a+='"'+(e.w||e.v)+'"';break;case"s":a+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return a}return e["|"]=254,{to_workbook:function(e,t){return _r(i(e,t),t)},to_sheet:i,from_sheet:function(e,t){var r,n,a=["ID;PWXL;N;E"],i=[],s=xr(e["!ref"]),c=Array.isArray(e),l="\r\n";a.push("P;PGeneral"),a.push("F;P0;DG0G8;M255"),e["!cols"]&&(n=a,e["!cols"].forEach((function(e,t){var r="F;W"+(t+1)+" "+(t+1)+" ";e.hidden?r+="0":("number"!=typeof e.width||e.wpx||(e.wpx=Pa(e.width)),"number"!=typeof e.wpx||e.wch||(e.wch=Ma(e.wpx)),"number"==typeof e.wch&&(r+=Math.round(e.wch)))," "!=r.charAt(r.length-1)&&n.push(r)}))),e["!rows"]&&function(e,t){t.forEach((function(t,r){var n="F;";t.hidden?n+="M0;":t.hpt?n+="M"+20*t.hpt+";":t.hpx&&(n+="M"+20*Ha(t.hpx)+";"),n.length>2&&e.push(n+"R"+(r+1))}))}(a,e["!rows"]),a.push("B;Y"+(s.e.r-s.s.r+1)+";X"+(s.e.c-s.s.c+1)+";D"+[s.s.c,s.s.r,s.e.c,s.e.r].join(" "));for(var f=s.s.r;f<=s.e.r;++f)for(var u=s.s.c;u<=s.e.c;++u){var h=wr({r:f,c:u});(r=c?(e[f]||[])[u]:e[h])&&(null!=r.v||r.f&&!r.F)&&i.push(o(r,0,f,u))}return a.join(l)+l+i.join(l)+l+"E"+l}}}(),la=function(){function e(e,t){for(var r=e.split("\n"),n=-1,a=-1,i=0,o=[];i!==r.length;++i)if("BOT"!==r[i].trim()){if(!(n<0)){for(var s=r[i].trim().split(","),c=s[0],l=s[1],f=r[++i]||"";1&(f.match(/["]/g)||[]).length&&i<r.length-1;)f+="\n"+r[++i];switch(f=f.trim(),+c){case-1:if("BOT"===f){o[++n]=[],a=0;continue}if("EOD"!==f)throw new Error("Unrecognized DIF special command "+f);break;case 0:"TRUE"===f?o[n][a]=!0:"FALSE"===f?o[n][a]=!1:isNaN(Be(l))?isNaN(je(l).getDate())?o[n][a]=l:o[n][a]=Le(l):o[n][a]=Be(l),++a;break;case 1:(f=(f=f.slice(1,f.length-1)).replace(/""/g,'"'))&&f.match(/^=".*"$/)&&(f=f.slice(2,-1)),o[n][a++]=""!==f?f:null}if("EOD"===f)break}}else o[++n]=[],a=0;return t&&t.sheetRows&&(o=o.slice(0,t.sheetRows)),o}function t(t,r){return kr(function(t,r){switch(r.type){case"base64":return e(b(t),r);case"binary":return e(t,r);case"buffer":return e(y&&Buffer.isBuffer(t)?t.toString("binary"):A(t),r);case"array":return e(Pe(t),r)}throw new Error("Unrecognized type "+r.type)}(t,r),r)}return{to_workbook:function(e,r){return _r(t(e,r),r)},to_sheet:t,from_sheet:function(){var e=function(e,t,r,n,a){e.push(t),e.push(r+","+n),e.push('"'+a.replace(/"/g,'""')+'"')},t=function(e,t,r,n){e.push(t+","+r),e.push(1==t?'"'+n.replace(/"/g,'""')+'"':n)};return function(r){var n,a=[],i=xr(r["!ref"]),o=Array.isArray(r);e(a,"TABLE",0,1,"sheetjs"),e(a,"VECTORS",0,i.e.r-i.s.r+1,""),e(a,"TUPLES",0,i.e.c-i.s.c+1,""),e(a,"DATA",0,0,"");for(var s=i.s.r;s<=i.e.r;++s){t(a,-1,0,"BOT");for(var c=i.s.c;c<=i.e.c;++c){var l=wr({r:s,c});if(n=o?(r[s]||[])[c]:r[l])switch(n.t){case"n":var f=n.w;f||null==n.v||(f=n.v),null==f?n.f&&!n.F?t(a,1,0,"="+n.f):t(a,1,0,""):t(a,0,f,"V");break;case"b":t(a,0,n.v?1:0,n.v?"TRUE":"FALSE");break;case"s":t(a,1,0,isNaN(n.v)?n.v:'="'+n.v+'"');break;case"d":n.w||(n.w=ve(n.z||B[14],_e(Le(n.v)))),t(a,0,n.w,"V");break;default:t(a,1,0,"")}else t(a,1,0,"")}}return t(a,-1,0,"EOD"),a.join("\r\n")}}()}}(),fa=function(){function e(e){return e.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function t(e,t){return kr(function(e,t){for(var r=e.split("\n"),n=-1,a=-1,i=0,o=[];i!==r.length;++i){var s=r[i].trim().split(":");if("cell"===s[0]){var c=yr(s[1]);if(o.length<=c.r)for(n=o.length;n<=c.r;++n)o[n]||(o[n]=[]);switch(n=c.r,a=c.c,s[2]){case"t":o[n][a]=s[3].replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n");break;case"v":o[n][a]=+s[3];break;case"vtf":var l=s[s.length-1];case"vtc":"nl"===s[3]?o[n][a]=!!+s[4]:o[n][a]=+s[4],"vtf"==s[2]&&(o[n][a]=[o[n][a],l])}}}return t&&t.sheetRows&&(o=o.slice(0,t.sheetRows)),o}(e,t),t)}var r=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),n=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",a=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),i="--SocialCalcSpreadsheetControlSave--";function o(t){if(!t||!t["!ref"])return"";for(var r,n=[],a=[],i="",o=Tr(t["!ref"]),s=Array.isArray(t),c=o.s.r;c<=o.e.r;++c)for(var l=o.s.c;l<=o.e.c;++l)if(i=wr({r:c,c:l}),(r=s?(t[c]||[])[l]:t[i])&&null!=r.v&&"z"!==r.t){switch(a=["cell",i,"t"],r.t){case"s":case"str":a.push(e(r.v));break;case"n":r.f?(a[2]="vtf",a[3]="n",a[4]=r.v,a[5]=e(r.f)):(a[2]="v",a[3]=r.v);break;case"b":a[2]="vt"+(r.f?"f":"c"),a[3]="nl",a[4]=r.v?"1":"0",a[5]=e(r.f||(r.v?"TRUE":"FALSE"));break;case"d":var f=_e(Le(r.v));a[2]="vtc",a[3]="nd",a[4]=""+f,a[5]=r.w||ve(r.z||B[14],f);break;case"e":continue}n.push(a.join(":"))}return n.push("sheet:c:"+(o.e.c-o.s.c+1)+":r:"+(o.e.r-o.s.r+1)+":tvf:1"),n.push("valueformat:1:text-wiki"),n.join("\n")}return{to_workbook:function(e,r){return _r(t(e,r),r)},to_sheet:t,from_sheet:function(e){return[r,n,a,n,o(e),i].join("\n")}}}(),ua=function(){function e(e,t,r,n,a){a.raw?t[r][n]=e:""===e||("TRUE"===e?t[r][n]=!0:"FALSE"===e?t[r][n]=!1:isNaN(Be(e))?isNaN(je(e).getDate())?t[r][n]=e:t[r][n]=Le(e):t[r][n]=Be(e))}var t={44:",",9:"\t",59:";",124:"|"},r={44:3,9:2,59:1,124:0};function n(e){for(var n={},a=!1,i=0,o=0;i<e.length;++i)34==(o=e.charCodeAt(i))?a=!a:!a&&o in t&&(n[o]=(n[o]||0)+1);for(i in o=[],n)Object.prototype.hasOwnProperty.call(n,i)&&o.push([n[i],i]);if(!o.length)for(i in n=r)Object.prototype.hasOwnProperty.call(n,i)&&o.push([n[i],i]);return o.sort((function(e,t){return e[0]-t[0]||r[e[1]]-r[t[1]]})),t[o.pop()[1]]||44}function a(e,t){var r=t||{},a="",i=r.dense?[]:{},o={s:{c:0,r:0},e:{c:0,r:0}};"sep="==e.slice(0,4)?13==e.charCodeAt(5)&&10==e.charCodeAt(6)?(a=e.charAt(4),e=e.slice(7)):13==e.charCodeAt(5)||10==e.charCodeAt(5)?(a=e.charAt(4),e=e.slice(6)):a=n(e.slice(0,1024)):a=r&&r.FS?r.FS:n(e.slice(0,1024));var s=0,c=0,l=0,f=0,u=0,h=a.charCodeAt(0),d=!1,p=0,v=e.charCodeAt(0);e=e.replace(/\r\n/gm,"\n");var m,g,b=null!=r.dateNF?(g=(g="number"==typeof(m=r.dateNF)?B[m]:m).replace(ye,"(\\d+)"),new RegExp("^"+g+"$")):null;function y(){var t=e.slice(f,u),n={};if('"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.slice(1,-1).replace(/""/g,'"')),0===t.length)n.t="z";else if(r.raw)n.t="s",n.v=t;else if(0===t.trim().length)n.t="s",n.v=t;else if(61==t.charCodeAt(0))34==t.charCodeAt(1)&&34==t.charCodeAt(t.length-1)?(n.t="s",n.v=t.slice(2,-1).replace(/""/g,'"')):1!=t.length?(n.t="n",n.f=t.slice(1)):(n.t="s",n.v=t);else if("TRUE"==t)n.t="b",n.v=!0;else if("FALSE"==t)n.t="b",n.v=!1;else if(isNaN(l=Be(t)))if(!isNaN(je(t).getDate())||b&&t.match(b)){n.z=r.dateNF||B[14];var a=0;b&&t.match(b)&&(t=function(e,t,r){var n=-1,a=-1,i=-1,o=-1,s=-1,c=-1;(t.match(ye)||[]).forEach((function(e,t){var l=parseInt(r[t+1],10);switch(e.toLowerCase().charAt(0)){case"y":n=l;break;case"d":i=l;break;case"h":o=l;break;case"s":c=l;break;case"m":o>=0?s=l:a=l}})),c>=0&&-1==s&&a>=0&&(s=a,a=-1);var l=(""+(n>=0?n:(new Date).getFullYear())).slice(-4)+"-"+("00"+(a>=1?a:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);7==l.length&&(l="0"+l),8==l.length&&(l="20"+l);var f=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2);return-1==o&&-1==s&&-1==c?l:-1==n&&-1==a&&-1==i?f:l+"T"+f}(0,r.dateNF,t.match(b)||[]),a=1),r.cellDates?(n.t="d",n.v=Le(t,a)):(n.t="n",n.v=_e(Le(t,a))),!1!==r.cellText&&(n.w=ve(n.z,n.v instanceof Date?_e(n.v):n.v)),r.cellNF||delete n.z}else n.t="s",n.v=t;else n.t="n",!1!==r.cellText&&(n.w=t),n.v=l;if("z"==n.t||(r.dense?(i[s]||(i[s]=[]),i[s][c]=n):i[wr({c,r:s})]=n),f=u+1,v=e.charCodeAt(f),o.e.c<c&&(o.e.c=c),o.e.r<s&&(o.e.r=s),p==h)++c;else if(c=0,++s,r.sheetRows&&r.sheetRows<=s)return!0}e:for(;u<e.length;++u)switch(p=e.charCodeAt(u)){case 34:34===v&&(d=!d);break;case h:case 10:case 13:if(!d&&y())break e}return u-f>0&&y(),i["!ref"]=Er(o),i}function i(t,r){var n="",i="string"==r.type?[0,0,0,0]:ws(t,r);switch(r.type){case"base64":n=b(t);break;case"binary":case"string":n=t;break;case"buffer":n=65001==r.codepage?t.toString("utf8"):(r.codepage,y&&Buffer.isBuffer(t)?t.toString("binary"):A(t));break;case"array":n=Pe(t);break;default:throw new Error("Unrecognized type "+r.type)}return 239==i[0]&&187==i[1]&&191==i[2]?n=bt(n.slice(3)):"string"!=r.type&&"buffer"!=r.type&&65001==r.codepage?n=bt(n):r.type,"socialcalc:version:"==n.slice(0,19)?fa.to_sheet("string"==r.type?n:bt(n),r):function(t,r){return r&&r.PRN?r.FS||"sep="==t.slice(0,4)||t.indexOf("\t")>=0||t.indexOf(",")>=0||t.indexOf(";")>=0?a(t,r):kr(function(t,r){var n=r||{},a=[];if(!t||0===t.length)return a;for(var i=t.split(/[\r\n]/),o=i.length-1;o>=0&&0===i[o].length;)--o;for(var s=10,c=0,l=0;l<=o;++l)-1==(c=i[l].indexOf(" "))?c=i[l].length:c++,s=Math.max(s,c);for(l=0;l<=o;++l){a[l]=[];var f=0;for(e(i[l].slice(0,s).trim(),a,l,f,n),f=1;f<=(i[l].length-s)/10+1;++f)e(i[l].slice(s+10*(f-1),s+10*f).trim(),a,l,f,n)}return n.sheetRows&&(a=a.slice(0,n.sheetRows)),a}(t,r),r):a(t,r)}(n,r)}return{to_workbook:function(e,t){return _r(i(e,t),t)},to_sheet:i,from_sheet:function(e){for(var t,r=[],n=xr(e["!ref"]),a=Array.isArray(e),i=n.s.r;i<=n.e.r;++i){for(var o=[],s=n.s.c;s<=n.e.c;++s){var c=wr({r:i,c:s});if((t=a?(e[i]||[])[s]:e[c])&&null!=t.v){for(var l=(t.w||(Ar(t),t.w)||"").slice(0,10);l.length<10;)l+=" ";o.push(l+(0===s?" ":""))}else o.push(" ")}r.push(o.join(""))}return r.join("\n")}}}(),ha=function(){function e(e,t,r){if(e){or(e,e.l||0);for(var n=r.Enum||y;e.l<e.length;){var a=e.read_shift(2),i=n[a]||n[65535],o=e.read_shift(2),s=e.l+o,c=i.f&&i.f(e,o,r);if(e.l=s,t(c,i,a))return}}}function t(t,r){if(!t)return t;var n=r||{},a=n.dense?[]:{},i="Sheet1",o="",s=0,c={},l=[],f=[],u={s:{r:0,c:0},e:{r:0,c:0}},h=n.sheetRows||0;if(0==t[2]&&(8==t[3]||9==t[3])&&t.length>=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])n.Enum=y,e(t,(function(e,t,r){switch(r){case 0:n.vers=e,e>=4096&&(n.qpro=!0);break;case 6:u=e;break;case 204:e&&(o=e);break;case 222:o=e;break;case 15:case 51:n.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==r&&112==(112&e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=n.dateNF||B[14],n.cellDates&&(e[1].t="d",e[1].v=Oe(e[1].v))),n.qpro&&e[3]>s&&(a["!ref"]=Er(u),c[i]=a,l.push(i),a=n.dense?[]:{},u={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],i=o||"Sheet"+(s+1),o="");var f=n.dense?(a[e[0].r]||[])[e[0].c]:a[wr(e[0])];if(f){f.t=e[1].t,f.v=e[1].v,null!=e[1].z&&(f.z=e[1].z),null!=e[1].f&&(f.f=e[1].f);break}n.dense?(a[e[0].r]||(a[e[0].r]=[]),a[e[0].r][e[0].c]=e[1]):a[wr(e[0])]=e[1]}}),n);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);n.Enum=w,14==t[2]&&(n.qpro=!0,t.l=0),e(t,(function(e,t,r){switch(r){case 204:i=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>s&&(a["!ref"]=Er(u),c[i]=a,l.push(i),a=n.dense?[]:{},u={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],i="Sheet"+(s+1)),h>0&&e[0].r>=h)break;n.dense?(a[e[0].r]||(a[e[0].r]=[]),a[e[0].r][e[0].c]=e[1]):a[wr(e[0])]=e[1],u.e.c<e[0].c&&(u.e.c=e[0].c),u.e.r<e[0].r&&(u.e.r=e[0].r);break;case 27:e[14e3]&&(f[e[14e3][0]]=e[14e3][1]);break;case 1537:f[e[0]]=e[1],e[0]==s&&(i=e[1])}}),n)}if(a["!ref"]=Er(u),c[o||i]=a,l.push(o||i),!f.length)return{SheetNames:l,Sheets:c};for(var d={},p=[],v=0;v<f.length;++v)c[l[v]]?(p.push(f[v]||l[v]),d[f[v]]=c[f[v]]||c[l[v]]):(p.push(f[v]),d[f[v]]={"!ref":"A1"});return{SheetNames:p,Sheets:d}}function r(e,t,r){var n=[{c:0,r:0},{t:"n",v:0},0,0];return r.qpro&&20768!=r.vers?(n[0].c=e.read_shift(1),n[3]=e.read_shift(1),n[0].r=e.read_shift(2),e.l+=2):(n[2]=e.read_shift(1),n[0].c=e.read_shift(2),n[0].r=e.read_shift(2)),n}function n(e,t,n){var a=e.l+t,i=r(e,0,n);if(i[1].t="s",20768==n.vers){e.l++;var o=e.read_shift(1);return i[1].v=e.read_shift(o,"utf8"),i}return n.qpro&&e.l++,i[1].v=e.read_shift(a-e.l,"cstr"),i}function a(e,t,r){var n=cr(7+r.length);n.write_shift(1,255),n.write_shift(2,t),n.write_shift(2,e),n.write_shift(1,39);for(var a=0;a<n.length;++a){var i=r.charCodeAt(a);n.write_shift(1,i>=128?95:i)}return n.write_shift(1,0),n}function i(e,t,r){var n=cr(7);return n.write_shift(1,255),n.write_shift(2,t),n.write_shift(2,e),n.write_shift(2,r,"i"),n}function o(e,t,r){var n=cr(13);return n.write_shift(1,255),n.write_shift(2,t),n.write_shift(2,e),n.write_shift(8,r,"f"),n}function s(e,t,r){var n=32768&t;return t=(n?e:0)+((t&=-32769)>=8192?t-16384:t),(n?"":"$")+(r?br(t):mr(t))}var l={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},f=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function u(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function h(e,t,r,n){var a=cr(6+n.length);a.write_shift(2,e),a.write_shift(1,r),a.write_shift(1,t),a.write_shift(1,39);for(var i=0;i<n.length;++i){var o=n.charCodeAt(i);a.write_shift(1,o>=128?95:o)}return a.write_shift(1,0),a}function d(e,t){var r=u(e),n=e.read_shift(4),a=e.read_shift(4),i=e.read_shift(2);if(65535==i)return 0===n&&3221225472===a?(r[1].t="e",r[1].v=15):0===n&&3489660928===a?(r[1].t="e",r[1].v=42):r[1].v=0,r;var o=32768&i;return i=(32767&i)-16446,r[1].v=(1-2*o)*(a*Math.pow(2,i+32)+n*Math.pow(2,i)),r}function p(e,t,r,n){var a=cr(14);if(a.write_shift(2,e),a.write_shift(1,r),a.write_shift(1,t),0==n)return a.write_shift(4,0),a.write_shift(4,0),a.write_shift(2,65535),a;var i,o=0,s=0,c=0;return n<0&&(o=1,n=-n),s=0|Math.log2(n),0==(2147483648&(c=(n/=Math.pow(2,s-31))>>>0))&&(++s,c=(n/=2)>>>0),n-=c,c|=2147483648,c>>>=0,i=(n*=Math.pow(2,32))>>>0,a.write_shift(4,i),a.write_shift(4,c),s+=16383+(o?32768:0),a.write_shift(2,s),a}function v(e,t){var r=u(e),n=e.read_shift(8,"f");return r[1].v=n,r}function m(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function g(e,t){var r=cr(5+e.length);r.write_shift(2,14e3),r.write_shift(2,t);for(var n=0;n<e.length;++n){var a=e.charCodeAt(n);r[r.l++]=a>127?95:a}return r[r.l++]=0,r}var y={0:{n:"BOF",f:_n},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(e,t,r){var n={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&r.qpro?(n.s.c=e.read_shift(1),e.l++,n.s.r=e.read_shift(2),n.e.c=e.read_shift(1),e.l++,n.e.r=e.read_shift(2),n):(n.s.c=e.read_shift(2),n.s.r=e.read_shift(2),12==t&&r.qpro&&(e.l+=2),n.e.c=e.read_shift(2),n.e.r=e.read_shift(2),12==t&&r.qpro&&(e.l+=2),65535==n.s.c&&(n.s.c=n.e.c=n.s.r=n.e.r=0),n)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(e,t,n){var a=r(e,0,n);return a[1].v=e.read_shift(2,"i"),a}},14:{n:"NUMBER",f:function(e,t,n){var a=r(e,0,n);return a[1].v=e.read_shift(8,"f"),a}},15:{n:"LABEL",f:n},16:{n:"FORMULA",f:function(e,t,n){var a=e.l+t,i=r(e,0,n);if(i[1].v=e.read_shift(8,"f"),n.qpro)e.l=a;else{var o=e.read_shift(2);!function(e,t){or(e,0);for(var r=[],n=0,a="",i="",o="",c="";e.l<e.length;){var u=e[e.l++];switch(u){case 0:r.push(e.read_shift(8,"f"));break;case 1:i=s(t[0].c,e.read_shift(2),!0),a=s(t[0].r,e.read_shift(2),!1),r.push(i+a);break;case 2:var h=s(t[0].c,e.read_shift(2),!0),d=s(t[0].r,e.read_shift(2),!1);i=s(t[0].c,e.read_shift(2),!0),a=s(t[0].r,e.read_shift(2),!1),r.push(h+d+":"+i+a);break;case 3:if(e.l<e.length)return void console.error("WK1 premature formula end");break;case 4:r.push("("+r.pop()+")");break;case 5:r.push(e.read_shift(2));break;case 6:for(var p="";u=e[e.l++];)p+=String.fromCharCode(u);r.push('"'+p.replace(/"/g,'""')+'"');break;case 8:r.push("-"+r.pop());break;case 23:r.push("+"+r.pop());break;case 22:r.push("NOT("+r.pop()+")");break;case 20:case 21:c=r.pop(),o=r.pop(),r.push(["AND","OR"][u-20]+"("+o+","+c+")");break;default:if(u<32&&f[u])c=r.pop(),o=r.pop(),r.push(o+f[u]+c);else{if(!l[u])return u<=7?console.error("WK1 invalid opcode "+u.toString(16)):u<=24?console.error("WK1 unsupported op "+u.toString(16)):u<=30?console.error("WK1 invalid opcode "+u.toString(16)):u<=115?console.error("WK1 unsupported function opcode "+u.toString(16)):console.error("WK1 unrecognized opcode "+u.toString(16));if(69==(n=l[u][1])&&(n=e[e.l++]),n>r.length)return void console.error("WK1 bad formula parse 0x"+u.toString(16)+":|"+r.join("|")+"|");var v=r.slice(-n);r.length-=n,r.push(l[u][0]+"("+v.join(",")+")")}}}1==r.length?t[1].f=""+r[0]:console.error("WK1 bad formula parse |"+r.join("|")+"|")}(e.slice(e.l,e.l+o),i),e.l+=o}return i}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:n},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:m},222:{n:"SHEETNAMELP",f:function(e,t){var r=e[e.l++];r>t-1&&(r=t-1);for(var n="";n.length<r;)n+=String.fromCharCode(e[e.l++]);return n}},65535:{n:""}},w={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function(e,t){var r=u(e);return r[1].t="s",r[1].v=e.read_shift(t-4,"cstr"),r}},23:{n:"NUMBER17",f:d},24:{n:"NUMBER18",f:function(e,t){var r=u(e);r[1].v=e.read_shift(2);var n=r[1].v>>1;if(1&r[1].v)switch(7&n){case 0:n=5e3*(n>>3);break;case 1:n=500*(n>>3);break;case 2:n=(n>>3)/20;break;case 3:n=(n>>3)/200;break;case 4:n=(n>>3)/2e3;break;case 5:n=(n>>3)/2e4;break;case 6:n=(n>>3)/16;break;case 7:n=(n>>3)/64}return r[1].v=n,r}},25:{n:"FORMULA19",f:function(e,t){var r=d(e);return e.l+=t-14,r}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(e,t){for(var r={},n=e.l+t;e.l<n;){var a=e.read_shift(2);if(14e3==a){for(r[a]=[0,""],r[a][0]=e.read_shift(2);e[e.l];)r[a][1]+=String.fromCharCode(e[e.l]),e.l++;e.l++}}return r}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function(e,t){var r=u(e),n=e.read_shift(4);return r[1].v=n>>6,r}},38:{n:"??"},39:{n:"NUMBER27",f:v},40:{n:"FORMULA28",f:function(e,t){var r=v(e);return e.l+=t-10,r}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:m},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(e,t,r){if(r.qpro&&!(t<21)){var n=e.read_shift(1);return e.l+=17,e.l+=1,e.l+=2,[n,e.read_shift(t-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(e,t){var r=t||{};if(+r.codepage>=0&&c(+r.codepage),"string"==r.type)throw new Error("Cannot write WK1 to JS string");var n,s=fr(),l=xr(e["!ref"]),f=Array.isArray(e),u=[];qo(s,0,(1030,(n=cr(2)).write_shift(2,1030),n)),qo(s,6,function(e){var t=cr(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}(l));for(var h=Math.min(l.e.r,8191),d=l.s.r;d<=h;++d)for(var p=mr(d),v=l.s.c;v<=l.e.c;++v){d===l.s.r&&(u[v]=br(v));var m=u[v]+p,g=f?(e[d]||[])[v]:e[m];g&&"z"!=g.t&&("n"==g.t?(0|g.v)==g.v&&g.v>=-32768&&g.v<=32767?qo(s,13,i(d,v,g.v)):qo(s,14,o(d,v,g.v)):qo(s,15,a(d,v,Ar(g).slice(0,239))))}return qo(s,1),s.end()},book_to_wk3:function(e,t){var r=t||{};if(+r.codepage>=0&&c(+r.codepage),"string"==r.type)throw new Error("Cannot write WK3 to JS string");var n=fr();qo(n,0,function(e){var t=cr(26);t.write_shift(2,4096),t.write_shift(2,4),t.write_shift(4,0);for(var r=0,n=0,a=0,i=0;i<e.SheetNames.length;++i){var o=e.SheetNames[i],s=e.Sheets[o];if(s&&s["!ref"]){++a;var c=Tr(s["!ref"]);r<c.e.r&&(r=c.e.r),n<c.e.c&&(n=c.e.c)}}return r>8191&&(r=8191),t.write_shift(2,r),t.write_shift(1,a),t.write_shift(1,n),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}(e));for(var a=0,i=0;a<e.SheetNames.length;++a)(e.Sheets[e.SheetNames[a]]||{})["!ref"]&&qo(n,27,g(e.SheetNames[a],i++));var o=0;for(a=0;a<e.SheetNames.length;++a){var s=e.Sheets[e.SheetNames[a]];if(s&&s["!ref"]){for(var l=xr(s["!ref"]),f=Array.isArray(s),u=[],d=Math.min(l.e.r,8191),v=l.s.r;v<=d;++v)for(var m=mr(v),b=l.s.c;b<=l.e.c;++b){v===l.s.r&&(u[b]=br(b));var y=u[b]+m,w=f?(s[v]||[])[b]:s[y];w&&"z"!=w.t&&("n"==w.t?qo(n,23,p(v,b,o,w.v)):qo(n,22,h(v,b,o,Ar(w).slice(0,239))))}++o}}return qo(n,1),n.end()},to_workbook:function(e,r){switch(r.type){case"base64":return t(x(b(e)),r);case"binary":return t(x(e),r);case"buffer":case"array":return t(e,r)}throw"Unsupported type "+r.type}}}(),da=function(){var e=wt("t"),t=wt("rPr");function r(r){var n=r.match(e);if(!n)return{t:"s",v:""};var a={t:"s",v:ct(n[1])},i=r.match(t);return i&&(a.s=function(e){var t={},r=e.match(tt),n=0,a=!1;if(r)for(;n!=r.length;++n){var i=at(r[n]);switch(i[0].replace(/\w*:/g,"")){case"<condense":case"<extend":break;case"<shadow":if(!i.val)break;case"<shadow>":case"<shadow/>":t.shadow=1;break;case"</shadow>":break;case"<charset":if("1"==i.val)break;t.cp=o[parseInt(i.val,10)];break;case"<outline":if(!i.val)break;case"<outline>":case"<outline/>":t.outline=1;break;case"</outline>":break;case"<rFont":t.name=i.val;break;case"<sz":t.sz=i.val;break;case"<strike":if(!i.val)break;case"<strike>":case"<strike/>":t.strike=1;break;case"</strike>":break;case"<u":if(!i.val)break;switch(i.val){case"double":t.uval="double";break;case"singleAccounting":t.uval="single-accounting";break;case"doubleAccounting":t.uval="double-accounting"}case"<u>":case"<u/>":t.u=1;break;case"</u>":break;case"<b":if("0"==i.val)break;case"<b>":case"<b/>":t.b=1;break;case"</b>":break;case"<i":if("0"==i.val)break;case"<i>":case"<i/>":t.i=1;break;case"</i>":break;case"<color":i.rgb&&(t.color=i.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":t.family=i.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":t.valign=i.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":case"<scheme":case"<scheme>":case"<scheme/>":case"</scheme>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(47!==i[0].charCodeAt(1)&&!a)throw new Error("Unrecognized rich format "+i[0])}}return t}(i[1])),a}var n=/<(?:\w+:)?r>/g,a=/<\/(?:\w+:)?r>/;return function(e){return e.replace(n,"").split(a).map(r).filter((function(e){return e.v}))}}(),pa=function(){var e=/(\r\n|\n)/g;function t(t){var r=[[],t.v,[]];return t.v?(t.s&&function(e,t,r){var n=[];e.u&&n.push("text-decoration: underline;"),e.uval&&n.push("text-underline-style:"+e.uval+";"),e.sz&&n.push("font-size:"+e.sz+"pt;"),e.outline&&n.push("text-effect: outline;"),e.shadow&&n.push("text-shadow: auto;"),t.push('<span style="'+n.join("")+'">'),e.b&&(t.push("<b>"),r.push("</b>")),e.i&&(t.push("<i>"),r.push("</i>")),e.strike&&(t.push("<s>"),r.push("</s>"));var a=e.valign||"";"superscript"==a||"super"==a?a="sup":"subscript"==a&&(a="sub"),""!=a&&(t.push("<"+a+">"),r.push("</"+a+">")),r.push("</span>")}(t.s,r[0],r[2]),r[0].join("")+r[1].replace(e,"<br/>")+r[2].join("")):""}return function(e){return e.map(t).join("")}}(),va=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,ma=/<(?:\w+:)?r>/,ga=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function ba(e,t){var r=!t||t.cellHTML,n={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=ct(bt(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=bt(e),r&&(n.h=ut(n.t))):e.match(ma)&&(n.r=bt(e),n.t=ct(bt((e.replace(ga,"").match(va)||[]).join("").replace(tt,""))),r&&(n.h=pa(da(n.r)))),n):{t:""}}var ya=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,wa=/<(?:\w+:)?(?:si|sstItem)>/g,Ta=/<\/(?:\w+:)?(?:si|sstItem)>/;function Ea(e){for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function xa(e,t){var r={};return r.Major=e.read_shift(2),r.Minor=e.read_shift(2),t>=4&&(e.l+=t-4),r}function Aa(e){for(var t=e.read_shift(4),r=e.l+t-4,n={},a=e.read_shift(4),i=[];a-- >0;)i.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(n.name=e.read_shift(0,"lpp4"),n.comps=i,e.l!=r)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+r);return n}function _a(e,t){var r=e.l+t,n={};n.Flags=63&e.read_shift(4),e.l+=4,n.AlgID=e.read_shift(4);var a=!1;switch(n.AlgID){case 26126:case 26127:case 26128:a=36==n.Flags;break;case 26625:a=4==n.Flags;break;case 0:a=16==n.Flags||4==n.Flags||36==n.Flags;break;default:throw"Unrecognized encryption algorithm: "+n.AlgID}if(!a)throw new Error("Encryption Flags/AlgID mismatch");return n.AlgIDHash=e.read_shift(4),n.KeySize=e.read_shift(4),n.ProviderType=e.read_shift(4),e.l+=8,n.CSPName=e.read_shift(r-e.l>>1,"utf16le"),e.l=r,n}function ka(e,t){var r={},n=e.l+t;return e.l+=4,r.Salt=e.slice(e.l,e.l+16),e.l+=16,r.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),r.VerifierHash=e.slice(e.l,n),e.l=n,r}function Sa(e){if(36!=(63&e.read_shift(4)))throw new Error("EncryptionInfo mismatch");var t=e.read_shift(4);return{t:"Std",h:_a(e,t),v:ka(e,e.length-e.l)}}function Ca(){throw new Error("File is password-protected: ECMA-376 Extensible")}function Oa(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var r=e.read_shift(e.length-e.l,"utf8"),n={};return r.replace(tt,(function(e){var r=at(e);switch(it(r[0])){case"<?xml":case"<encryption":case"</encryption>":case"</keyEncryptors>":case"</keyEncryptor>":break;case"<keyData":t.forEach((function(e){n[e]=r[e]}));break;case"<dataIntegrity":n.encryptedHmacKey=r.encryptedHmacKey,n.encryptedHmacValue=r.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":n.encs=[];break;case"<keyEncryptor":n.uri=r.uri;break;case"<encryptedKey":n.encs.push(r);break;default:throw r[0]}})),n}var Ra=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],r=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],n=function(e,t){return 255&((r=e^t)/2|128*r);var r};return function(a){for(var i,o,s,c=Ea(a),l=function(e){for(var n=t[e.length-1],a=104,i=e.length-1;i>=0;--i)for(var o=e[i],s=0;7!=s;++s)64&o&&(n^=r[a]),o*=2,--a;return n}(c),f=c.length,u=T(16),h=0;16!=h;++h)u[h]=0;for(1==(1&f)&&(i=l>>8,u[f]=n(e[0],i),--f,i=255&l,o=c[c.length-1],u[f]=n(o,i));f>0;)i=l>>8,u[--f]=n(c[f],i),i=255&l,u[--f]=n(c[f],i);for(f=15,s=15-c.length;s>0;)i=l>>8,u[f]=n(e[s],i),--s,i=255&l,u[--f]=n(c[f],i),--f,--s;return u}}();var Na=function(){function e(e,r){switch(r.type){case"base64":return t(b(e),r);case"binary":return t(e,r);case"buffer":return t(y&&Buffer.isBuffer(e)?e.toString("binary"):A(e),r);case"array":return t(Pe(e),r)}throw new Error("Unrecognized type "+r.type)}function t(e,t){var r=(t||{}).dense?[]:{},n=e.match(/\\trowd.*?\\row\b/g);if(!n.length)throw new Error("RTF missing table");var a={s:{c:0,r:0},e:{c:0,r:n.length-1}};return n.forEach((function(e,t){Array.isArray(r)&&(r[t]=[]);for(var n,i=/\\\w+\b/g,o=0,s=-1;n=i.exec(e);){if("\\cell"===n[0]){var c=e.slice(o,i.lastIndex-n[0].length);if(" "==c[0]&&(c=c.slice(1)),++s,c.length){var l={v:c,t:"s"};Array.isArray(r)?r[t][s]=l:r[wr({r:t,c:s})]=l}}o=i.lastIndex}s>a.e.c&&(a.e.c=s)})),r["!ref"]=Er(a),r}return{to_workbook:function(t,r){return _r(e(t,r),r)},to_sheet:e,from_sheet:function(e){for(var t,r=["{\\rtf1\\ansi"],n=xr(e["!ref"]),a=Array.isArray(e),i=n.s.r;i<=n.e.r;++i){r.push("\\trowd\\trautofit1");for(var o=n.s.c;o<=n.e.c;++o)r.push("\\cellx"+(o+1));for(r.push("\\pard\\intbl"),o=n.s.c;o<=n.e.c;++o){var s=wr({r:i,c:o});(t=a?(e[i]||[])[o]:e[s])&&(null!=t.v||t.f&&!t.F)&&(r.push(" "+(t.w||(Ar(t),t.w))),r.push("\\cell"))}r.push("\\pard\\intbl\\row")}return r.join("")+"}"}}}();function Da(e){for(var t=0,r=1;3!=t;++t)r=256*r+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}function Ia(e,t){if(0===t)return e;var r,n,a=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.max(t,r,n),i=Math.min(t,r,n),o=a-i;if(0===o)return[0,0,t];var s,c=0,l=a+i;switch(s=o/(l>1?2-l:l),a){case t:c=((r-n)/o+6)%6;break;case r:c=(n-t)/o+2;break;case n:c=(t-r)/o+4}return[c/6,s,l/2]}((n=(r=e).slice("#"===r[0]?1:0).slice(0,6),[parseInt(n.slice(0,2),16),parseInt(n.slice(2,4),16),parseInt(n.slice(4,6),16)]));return a[2]=t<0?a[2]*(1+t):1-(1-a[2])*(1-t),Da(function(e){var t,r=e[0],n=e[1],a=e[2],i=2*n*(a<.5?a:1-a),o=a-i/2,s=[o,o,o],c=6*r;if(0!==n)switch(0|c){case 0:case 6:t=i*c,s[0]+=i,s[1]+=t;break;case 1:t=i*(2-c),s[0]+=t,s[1]+=i;break;case 2:t=i*(c-2),s[1]+=i,s[2]+=t;break;case 3:t=i*(4-c),s[1]+=t,s[2]+=i;break;case 4:t=i*(c-4),s[2]+=i,s[0]+=t;break;case 5:t=i*(6-c),s[2]+=t,s[0]+=i}for(var l=0;3!=l;++l)s[l]=Math.round(255*s[l]);return s}(a))}var La=6;function Pa(e){return Math.floor((e+Math.round(128/La)/256)*La)}function Ma(e){return Math.floor((e-5)/La*100+.5)/100}function Fa(e){return Math.round((e*La+5)/La*256)/256}function Ba(e){return Fa(Ma(Pa(e)))}function Ua(e){var t=Math.abs(e-Ba(e)),r=La;if(t>.005)for(La=1;La<15;++La)Math.abs(e-Ba(e))<=t&&(t=Math.abs(e-Ba(e)),r=La);La=r}function ja(e){e.width?(e.wpx=Pa(e.width),e.wch=Ma(e.wpx),e.MDW=La):e.wpx?(e.wch=Ma(e.wpx),e.width=Fa(e.wch),e.MDW=La):"number"==typeof e.wch&&(e.width=Fa(e.wch),e.wpx=Pa(e.width),e.MDW=La),e.customWidth&&delete e.customWidth}function Ha(e){return 96*e/96}function $a(e){return 96*e/96}var za={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"},Wa=["numFmtId","fillId","fontId","borderId","xfId"],Va=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"],Xa=function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,r=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,n=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,a=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(i,s,c){var l,f={};return i?((l=(i=i.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"")).match(e))&&function(e,t,r){t.NumberFmt=[];for(var n=Ee(B),a=0;a<n.length;++a)t.NumberFmt[n[a]]=B[n[a]];var i=e[0].match(tt);if(i)for(a=0;a<i.length;++a){var o=at(i[a]);switch(it(o[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":case"</numFmt>":break;case"<numFmt":var s=ct(bt(o.formatCode)),c=parseInt(o.numFmtId,10);if(t.NumberFmt[c]=s,c>0){if(c>392){for(c=392;c>60&&null!=t.NumberFmt[c];--c);t.NumberFmt[c]=s}me(s,c)}break;default:if(r.WTF)throw new Error("unrecognized "+o[0]+" in numFmts")}}}(l,f,c),(l=i.match(n))&&function(e,t,r,n){t.Fonts=[];var a={},i=!1;(e[0].match(tt)||[]).forEach((function(e){var s=at(e);switch(it(s[0])){case"<fonts":case"<fonts>":case"</fonts>":case"<font":case"<font>":case"<name/>":case"</name>":case"<sz/>":case"</sz>":case"<vertAlign/>":case"</vertAlign>":case"<family/>":case"</family>":case"<scheme/>":case"</scheme>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"</font>":case"<font/>":t.Fonts.push(a),a={};break;case"<name":s.val&&(a.name=bt(s.val));break;case"<b":a.bold=s.val?dt(s.val):1;break;case"<b/>":a.bold=1;break;case"<i":a.italic=s.val?dt(s.val):1;break;case"<i/>":a.italic=1;break;case"<u":switch(s.val){case"none":a.underline=0;break;case"single":a.underline=1;break;case"double":a.underline=2;break;case"singleAccounting":a.underline=33;break;case"doubleAccounting":a.underline=34}break;case"<u/>":a.underline=1;break;case"<strike":a.strike=s.val?dt(s.val):1;break;case"<strike/>":a.strike=1;break;case"<outline":a.outline=s.val?dt(s.val):1;break;case"<outline/>":a.outline=1;break;case"<shadow":a.shadow=s.val?dt(s.val):1;break;case"<shadow/>":a.shadow=1;break;case"<condense":a.condense=s.val?dt(s.val):1;break;case"<condense/>":a.condense=1;break;case"<extend":a.extend=s.val?dt(s.val):1;break;case"<extend/>":a.extend=1;break;case"<sz":s.val&&(a.sz=+s.val);break;case"<vertAlign":s.val&&(a.vertAlign=s.val);break;case"<family":s.val&&(a.family=parseInt(s.val,10));break;case"<scheme":s.val&&(a.scheme=s.val);break;case"<charset":if("1"==s.val)break;s.codepage=o[parseInt(s.val,10)];break;case"<color":if(a.color||(a.color={}),s.auto&&(a.color.auto=dt(s.auto)),s.rgb)a.color.rgb=s.rgb.slice(-6);else if(s.indexed){a.color.index=parseInt(s.indexed,10);var c=qr[a.color.index];81==a.color.index&&(c=qr[1]),c||(c=qr[1]),a.color.rgb=c[0].toString(16)+c[1].toString(16)+c[2].toString(16)}else s.theme&&(a.color.theme=parseInt(s.theme,10),s.tint&&(a.color.tint=parseFloat(s.tint)),s.theme&&r.themeElements&&r.themeElements.clrScheme&&(a.color.rgb=Ia(r.themeElements.clrScheme[a.color.theme].rgb,a.color.tint||0)));break;case"<AlternateContent":case"<ext":i=!0;break;case"</AlternateContent>":case"</ext>":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+s[0]+" in fonts")}}))}(l,f,s,c),(l=i.match(r))&&function(e,t,r,n){t.Fills=[];var a={},i=!1;(e[0].match(tt)||[]).forEach((function(e){var r=at(e);switch(it(r[0])){case"<fills":case"<fills>":case"</fills>":case"</fill>":case"<gradientFill>":case"<patternFill/>":case"</patternFill>":case"<bgColor/>":case"</bgColor>":case"<fgColor/>":case"</fgColor>":case"<stop":case"<stop/>":case"</stop>":case"<color":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<fill>":case"<fill":case"<fill/>":a={},t.Fills.push(a);break;case"<gradientFill":case"</gradientFill>":t.Fills.push(a),a={};break;case"<patternFill":case"<patternFill>":r.patternType&&(a.patternType=r.patternType);break;case"<bgColor":a.bgColor||(a.bgColor={}),r.indexed&&(a.bgColor.indexed=parseInt(r.indexed,10)),r.theme&&(a.bgColor.theme=parseInt(r.theme,10)),r.tint&&(a.bgColor.tint=parseFloat(r.tint)),r.rgb&&(a.bgColor.rgb=r.rgb.slice(-6));break;case"<fgColor":a.fgColor||(a.fgColor={}),r.theme&&(a.fgColor.theme=parseInt(r.theme,10)),r.tint&&(a.fgColor.tint=parseFloat(r.tint)),null!=r.rgb&&(a.fgColor.rgb=r.rgb.slice(-6));break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+r[0]+" in fills")}}))}(l,f,0,c),(l=i.match(a))&&function(e,t,r,n){t.Borders=[];var a={},i=!1;(e[0].match(tt)||[]).forEach((function(e){var r=at(e);switch(it(r[0])){case"<borders":case"<borders>":case"</borders>":case"</border>":case"<left/>":case"<left":case"<left>":case"</left>":case"<right/>":case"<right":case"<right>":case"</right>":case"<top/>":case"<top":case"<top>":case"</top>":case"<bottom/>":case"<bottom":case"<bottom>":case"</bottom>":case"<diagonal":case"<diagonal>":case"<diagonal/>":case"</diagonal>":case"<horizontal":case"<horizontal>":case"<horizontal/>":case"</horizontal>":case"<vertical":case"<vertical>":case"<vertical/>":case"</vertical>":case"<start":case"<start>":case"<start/>":case"</start>":case"<end":case"<end>":case"<end/>":case"</end>":case"<color":case"<color>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<border":case"<border>":case"<border/>":a={},r.diagonalUp&&(a.diagonalUp=dt(r.diagonalUp)),r.diagonalDown&&(a.diagonalDown=dt(r.diagonalDown)),t.Borders.push(a);break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+r[0]+" in borders")}}))}(l,f,0,c),(l=i.match(t))&&function(e,t,r){var n;t.CellXf=[];var a=!1;(e[0].match(tt)||[]).forEach((function(e){var i=at(e),o=0;switch(it(i[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":case"</xf>":case"</alignment>":case"<protection":case"</protection>":case"<protection/>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<xf":case"<xf/>":for(delete(n=i)[0],o=0;o<Wa.length;++o)n[Wa[o]]&&(n[Wa[o]]=parseInt(n[Wa[o]],10));for(o=0;o<Va.length;++o)n[Va[o]]&&(n[Va[o]]=dt(n[Va[o]]));if(t.NumberFmt&&n.numFmtId>392)for(o=392;o>60;--o)if(t.NumberFmt[n.numFmtId]==t.NumberFmt[o]){n.numFmtId=o;break}t.CellXf.push(n);break;case"<alignment":case"<alignment/>":var s={};i.vertical&&(s.vertical=i.vertical),i.horizontal&&(s.horizontal=i.horizontal),null!=i.textRotation&&(s.textRotation=i.textRotation),i.indent&&(s.indent=i.indent),i.wrapText&&(s.wrapText=dt(i.wrapText)),n.alignment=s;break;case"<AlternateContent":case"<ext":a=!0;break;case"</AlternateContent>":case"</ext>":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+i[0]+" in cellXfs")}}))}(l,f,c),f):f}}(),Ga=sr,Ya=sr,qa=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function Ka(e,t,r){t.themeElements.clrScheme=[];var n={};(e[0].match(tt)||[]).forEach((function(e){var a=at(e);switch(a[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":n.rgb=a.val;break;case"<a:sysClr":n.rgb=a.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":"/"===a[0].charAt(1)?(t.themeElements.clrScheme[qa.indexOf(a[0])]=n,n={}):n.name=a[0].slice(3,a[0].length-1);break;default:if(r&&r.WTF)throw new Error("Unrecognized "+a[0]+" in clrScheme")}}))}function Za(){}function Ja(){}var Qa=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,ei=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,ti=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/,ri=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function ni(e,t){var r;e&&0!==e.length||(e=function(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var r=[Je];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}());var n={};if(!(r=e.match(ri)))throw new Error("themeElements not found in theme");return function(e,t,r){var n;t.themeElements={},[["clrScheme",Qa,Ka],["fontScheme",ei,Za],["fmtScheme",ti,Ja]].forEach((function(a){if(!(n=e.match(a[1])))throw new Error(a[0]+" not found in themeElements");a[2](n,t,r)}))}(r[0],n,t),n.raw=e,n}function ai(e){var t=e.read_shift(2),r=e.read_shift(2)-4,n=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:n[1]=function(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:case 4:e.l+=4;break;case 1:t.xclrValue=function(e,t){return sr(e,4)}(e);break;case 2:t.xclrValue=In(e);break;case 3:t.xclrValue=function(e){return e.read_shift(4)}(e)}return e.l+=8,t}(e);break;case 6:n[1]=function(e,t){return sr(e,t)}(e,r);break;case 14:case 15:n[1]=e.read_shift(1===r?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+r)}return n}function ii(e,t,r,n){var a,i=Array.isArray(e);t.forEach((function(t){var o=yr(t.ref);if(i?(e[o.r]||(e[o.r]=[]),a=e[o.r][o.c]):a=e[t.ref],!a){a={t:"z"},i?e[o.r][o.c]=a:e[t.ref]=a;var s=xr(e["!ref"]||"BDWGO1000001:A1");s.s.r>o.r&&(s.s.r=o.r),s.e.r<o.r&&(s.e.r=o.r),s.s.c>o.c&&(s.s.c=o.c),s.e.c<o.c&&(s.e.c=o.c);var c=Er(s);c!==e["!ref"]&&(e["!ref"]=c)}a.c||(a.c=[]);var l={a:t.author,t:t.t,r:t.r,T:r};t.h&&(l.h=t.h);for(var f=a.c.length-1;f>=0;--f){if(!r&&a.c[f].T)return;r&&!a.c[f].T&&a.c.splice(f,1)}if(r&&n)for(f=0;f<n.length;++f)if(l.a==n[f].id){l.a=n[f].name||l.a;break}a.c.push(l)}))}var oi=Sr,si=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(e,r,n,a){var i=!1,o=!1;0==n.length?o=!0:"["==n.charAt(0)&&(o=!0,n=n.slice(1,-1)),0==a.length?i=!0:"["==a.charAt(0)&&(i=!0,a=a.slice(1,-1));var s=n.length>0?0|parseInt(n,10):0,c=a.length>0?0|parseInt(a,10):0;return i?c+=t.c:--c,o?s+=t.r:--s,r+(i?"":"$")+br(c)+(o?"":"$")+mr(s)}return function(n,a){return t=a,n.replace(e,r)}}(),ci=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,li=function(){return function(e,t){return e.replace(ci,(function(e,r,n,a,i,o){var s=gr(a)-(n?0:t.c),c=vr(o)-(i?0:t.r);return r+"R"+(0==c?"":i?c+1:"["+c+"]")+"C"+(0==s?"":n?s+1:"["+s+"]")}))}}();function fi(e,t){return e.replace(ci,(function(e,r,n,a,i,o){return r+("$"==n?n+a:br(gr(a)+t.c))+("$"==i?i+o:mr(vr(o)+t.r))}))}function ui(e,t,r){var n=Tr(t).s,a=yr(r);return fi(e,{r:a.r-n.r,c:a.c-n.c})}function hi(e){return e.replace(/_xlfn\./g,"")}function di(e){e.l+=1}function pi(e,t){var r=e.read_shift(1==t?1:2);return[16383&r,r>>14&1,r>>15&1]}function vi(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return mi(e);12==r.biff&&(n=4)}var a=e.read_shift(n),i=e.read_shift(n),o=pi(e,2),s=pi(e,2);return{s:{r:a,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function mi(e){var t=pi(e,2),r=pi(e,2),n=e.read_shift(1),a=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:a,cRel:r[1],rRel:r[2]}}}function gi(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return function(e){var t=pi(e,2),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}(e);var n=e.read_shift(r&&12==r.biff?4:2),a=pi(e,2);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function bi(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:255&r,fQuoted:!!(16384&r),cRel:r>>15,rRel:r>>15}}function yi(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function wi(e){return[e.read_shift(1),e.read_shift(1)]}function Ti(e,t){var r=[e.read_shift(1)];if(12==t)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2}switch(r[0]){case 4:r[1]=An(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:r[1]=Kr[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:r[1]=jr(e);break;case 2:r[1]=Nn(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function Ei(e,t,r){for(var n=e.read_shift(12==r.biff?4:2),a=[],i=0;i!=n;++i)a.push((12==r.biff?Ur:Bn)(e,8));return a}function xi(e,t,r){var n=0,a=0;12==r.biff?(n=e.read_shift(4),a=e.read_shift(4)):(a=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,0==--a&&(a=256));for(var i=0,o=[];i!=n&&(o[i]=[]);++i)for(var s=0;s!=a;++s)o[i][s]=Ti(e,r.biff);return o}function Ai(e,t,r){return e.l+=2,[bi(e)]}function _i(e){return e.l+=6,[]}function ki(e){return e.l+=2,[_n(e),1&e.read_shift(2)]}var Si=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],Ci={1:{n:"PtgExp",f:function(e,t,r){return e.l++,r&&12==r.biff?[e.read_shift(4,"i"),0]:[e.read_shift(2),e.read_shift(r&&2==r.biff?1:2)]}},2:{n:"PtgTbl",f:sr},3:{n:"PtgAdd",f:di},4:{n:"PtgSub",f:di},5:{n:"PtgMul",f:di},6:{n:"PtgDiv",f:di},7:{n:"PtgPower",f:di},8:{n:"PtgConcat",f:di},9:{n:"PtgLt",f:di},10:{n:"PtgLe",f:di},11:{n:"PtgEq",f:di},12:{n:"PtgGe",f:di},13:{n:"PtgGt",f:di},14:{n:"PtgNe",f:di},15:{n:"PtgIsect",f:di},16:{n:"PtgUnion",f:di},17:{n:"PtgRange",f:di},18:{n:"PtgUplus",f:di},19:{n:"PtgUminus",f:di},20:{n:"PtgPercent",f:di},21:{n:"PtgParen",f:di},22:{n:"PtgMissArg",f:di},23:{n:"PtgStr",f:function(e,t,r){return e.l++,Sn(e,0,r)}},26:{n:"PtgSheet",f:function(e,t,r){return e.l+=5,e.l+=2,e.l+=2==r.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(e,t,r){return e.l+=2==r.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(e){return e.l++,Kr[e.read_shift(1)]}},29:{n:"PtgBool",f:function(e){return e.l++,0!==e.read_shift(1)}},30:{n:"PtgInt",f:function(e){return e.l++,e.read_shift(2)}},31:{n:"PtgNum",f:function(e){return e.l++,jr(e)}},32:{n:"PtgArray",f:function(e,t,r){var n=(96&e[e.l++])>>5;return e.l+=2==r.biff?6:12==r.biff?14:7,[n]}},33:{n:"PtgFunc",f:function(e,t,r){var n=(96&e[e.l])>>5;e.l+=1;var a=e.read_shift(r&&r.biff<=3?1:2);return[qi[a],Yi[a],n]}},34:{n:"PtgFuncVar",f:function(e,t,r){var n=e[e.l++],a=e.read_shift(1),i=r&&r.biff<=3?[88==n?-1:0,e.read_shift(1)]:function(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}(e);return[a,(0===i[0]?Yi:Gi)[i[1]]]}},35:{n:"PtgName",f:function(e,t,r){var n=e.read_shift(1)>>>5&3,a=!r||r.biff>=8?4:2,i=e.read_shift(a);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12}return[n,0,i]}},36:{n:"PtgRef",f:function(e,t,r){var n=(96&e[e.l])>>5;return e.l+=1,[n,gi(e,0,r)]}},37:{n:"PtgArea",f:function(e,t,r){return[(96&e[e.l++])>>5,vi(e,r.biff>=2&&r.biff,r)]}},38:{n:"PtgMemArea",f:function(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=r&&2==r.biff?3:4,[n,e.read_shift(r&&2==r.biff?1:2)]}},39:{n:"PtgMemErr",f:sr},40:{n:"PtgMemNoMem",f:sr},41:{n:"PtgMemFunc",f:function(e,t,r){return[e.read_shift(1)>>>5&3,e.read_shift(r&&2==r.biff?1:2)]}},42:{n:"PtgRefErr",f:function(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,12==r.biff&&(e.l+=2),[n]}},43:{n:"PtgAreaErr",f:function(e,t,r){var n=(96&e[e.l++])>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}},44:{n:"PtgRefN",f:function(e,t,r){var n=(96&e[e.l])>>5;e.l+=1;var a=function(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return function(e){var t=e.read_shift(2),r=e.read_shift(1),n=(32768&t)>>15,a=(16384&t)>>14;return t&=16383,1==n&&t>=8192&&(t-=16384),1==a&&r>=128&&(r-=256),{r:t,c:r,cRel:a,rRel:n}}(e);var a=e.read_shift(n>=12?4:2),i=e.read_shift(2),o=(16384&i)>>14,s=(32768&i)>>15;if(i&=16383,1==s)for(;a>524287;)a-=1048576;if(1==o)for(;i>8191;)i-=16384;return{r:a,c:i,cRel:o,rRel:s}}(e,0,r);return[n,a]}},45:{n:"PtgAreaN",f:function(e,t,r){var n=(96&e[e.l++])>>5,a=function(e,t,r){if(r.biff<8)return mi(e);var n=e.read_shift(12==r.biff?4:2),a=e.read_shift(12==r.biff?4:2),i=pi(e,2),o=pi(e,2);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:a,c:o[0],cRel:o[1],rRel:o[2]}}}(e,0,r);return[n,a]}},46:{n:"PtgMemAreaN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},57:{n:"PtgNameX",f:function(e,t,r){return 5==r.biff?function(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}(e):[e.read_shift(1)>>>5&3,e.read_shift(2),e.read_shift(4)]}},58:{n:"PtgRef3d",f:function(e,t,r){var n=(96&e[e.l])>>5;e.l+=1;var a=e.read_shift(2);return r&&5==r.biff&&(e.l+=12),[n,a,gi(e,0,r)]}},59:{n:"PtgArea3d",f:function(e,t,r){var n=(96&e[e.l++])>>5,a=e.read_shift(2,"i");if(r&&5===r.biff)e.l+=12;return[n,a,vi(e,0,r)]}},60:{n:"PtgRefErr3d",f:function(e,t,r){var n=(96&e[e.l++])>>5,a=e.read_shift(2),i=4;if(r)switch(r.biff){case 5:i=15;break;case 12:i=6}return e.l+=i,[n,a]}},61:{n:"PtgAreaErr3d",f:function(e,t,r){var n=(96&e[e.l++])>>5,a=e.read_shift(2),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12}return e.l+=i,[n,a]}},255:{}},Oi={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Ri={1:{n:"PtgElfLel",f:ki},2:{n:"PtgElfRw",f:Ai},3:{n:"PtgElfCol",f:Ai},6:{n:"PtgElfRwV",f:Ai},7:{n:"PtgElfColV",f:Ai},10:{n:"PtgElfRadical",f:Ai},11:{n:"PtgElfRadicalS",f:_i},13:{n:"PtgElfColS",f:_i},15:{n:"PtgElfColSV",f:_i},16:{n:"PtgElfRadicalLel",f:ki},25:{n:"PtgList",f:function(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),a=e.read_shift(2),i=e.read_shift(2);return{ixti:t,coltype:3&r,rt:Si[r>>2&31],idx:n,c:a,C:i}}},29:{n:"PtgSxName",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},Ni={0:{n:"PtgAttrNoop",f:function(e){return e.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(e,t,r){var n=255&e[e.l+1]?1:0;return e.l+=r&&2==r.biff?3:4,[n]}},2:{n:"PtgAttrIf",f:function(e,t,r){var n=255&e[e.l+1]?1:0;return e.l+=2,[n,e.read_shift(r&&2==r.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(e,t,r){e.l+=2;for(var n=e.read_shift(r&&2==r.biff?1:2),a=[],i=0;i<=n;++i)a.push(e.read_shift(r&&2==r.biff?1:2));return a}},8:{n:"PtgAttrGoto",f:function(e,t,r){var n=255&e[e.l+1]?1:0;return e.l+=2,[n,e.read_shift(r&&2==r.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(e,t,r){e.l+=r&&2==r.biff?3:4}},32:{n:"PtgAttrBaxcel",f:yi},33:{n:"PtgAttrBaxcel",f:yi},64:{n:"PtgAttrSpace",f:function(e){return e.read_shift(2),wi(e)}},65:{n:"PtgAttrSpaceSemi",f:function(e){return e.read_shift(2),wi(e)}},128:{n:"PtgAttrIfError",f:function(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}},255:{}};function Di(e,t,r,n){if(n.biff<8)return sr(e,t);for(var a=e.l+t,i=[],o=0;o!==r.length;++o)switch(r[o][0]){case"PtgArray":r[o][1]=xi(e,0,n),i.push(r[o][1]);break;case"PtgMemArea":r[o][2]=Ei(e,r[o][1],n),i.push(r[o][2]);break;case"PtgExp":n&&12==n.biff&&(r[o][1][1]=e.read_shift(4),i.push(r[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[o][0]}return 0!=(t=a-e.l)&&i.push(sr(e,t)),i}function Ii(e,t,r){for(var n,a,i=e.l+t,o=[];i!=e.l;)t=i-e.l,a=e[e.l],n=Ci[a]||Ci[Oi[a]],24!==a&&25!==a||(n=(24===a?Ri:Ni)[e[e.l+1]]),n&&n.f?o.push([n.n,n.f(e,t,r)]):sr(e,t);return o}function Li(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r],a=[],i=0;i<n.length;++i){var o=n[i];o?2===o[0]?a.push('"'+o[1].replace(/"/g,'""')+'"'):a.push(o[1]):a.push("")}t.push(a.join(","))}return t.join(";")}var Pi={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Mi(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var a="";if(r.biff>8)switch(e[n[0]][0]){case 357:return a=-1==n[1]?"#REF":e.SheetNames[n[1]],n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 358:return null!=r.SID?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return a=-1==n[1]?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[n[0]][0][3]?(a=-1==n[1]?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?a:a+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function Fi(e,t,r){var n=Mi(e,t,r);return"#REF"==n?n:function(e,t){if(!(e||t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}(n,r)}function Bi(e,t,r,n,a){var i,o,s,c,l=a&&a.biff||8,f={s:{c:0,r:0},e:{c:0,r:0}},u=[],h=0,d=0,p="";if(!e[0]||!e[0][0])return"";for(var v=-1,m="",g=0,b=e[0].length;g<b;++g){var y=e[0][g];switch(y[0]){case"PtgUminus":u.push("-"+u.pop());break;case"PtgUplus":u.push("+"+u.pop());break;case"PtgPercent":u.push(u.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(i=u.pop(),o=u.pop(),v>=0){switch(e[0][v][1][0]){case 0:m=Fe(" ",e[0][v][1][1]);break;case 1:m=Fe("\r",e[0][v][1][1]);break;default:if(m="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][v][1][0])}o+=m,v=-1}u.push(o+Pi[y[0]]+i);break;case"PtgIsect":i=u.pop(),o=u.pop(),u.push(o+" "+i);break;case"PtgUnion":i=u.pop(),o=u.pop(),u.push(o+","+i);break;case"PtgRange":i=u.pop(),o=u.pop(),u.push(o+":"+i);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":s=ur(y[1][1],f,a),u.push(dr(s,l));break;case"PtgRefN":s=r?ur(y[1][1],r,a):y[1][1],u.push(dr(s,l));break;case"PtgRef3d":h=y[1][1],s=ur(y[1][2],f,a),p=Fi(n,h,a),u.push(p+"!"+dr(s,l));break;case"PtgFunc":case"PtgFuncVar":var w=y[1][0],T=y[1][1];w||(w=0);var E=0==(w&=127)?[]:u.slice(-w);u.length-=w,"User"===T&&(T=E.shift()),u.push(T+"("+E.join(",")+")");break;case"PtgBool":u.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":u.push(y[1]);break;case"PtgNum":u.push(String(y[1]));break;case"PtgStr":u.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":c=hr(y[1][1],r?{s:r}:f,a),u.push(pr(c,a));break;case"PtgArea":c=hr(y[1][1],f,a),u.push(pr(c,a));break;case"PtgArea3d":h=y[1][1],c=y[1][2],p=Fi(n,h,a),u.push(p+"!"+pr(c,a));break;case"PtgAttrSum":u.push("SUM("+u.pop()+")");break;case"PtgName":d=y[1][2];var x=(n.names||[])[d-1]||(n[0]||[])[d],A=x?x.Name:"SH33TJSNAME"+String(d);A&&"_xlfn."==A.slice(0,6)&&!a.xlfn&&(A=A.slice(6)),u.push(A);break;case"PtgNameX":var _,k=y[1][1];if(d=y[1][2],!(a.biff<=5)){var S="";if(14849==((n[k]||[])[0]||[])[0]||(1025==((n[k]||[])[0]||[])[0]?n[k][d]&&n[k][d].itab>0&&(S=n.SheetNames[n[k][d].itab-1]+"!"):S=n.SheetNames[d-1]+"!"),n[k]&&n[k][d])S+=n[k][d].Name;else if(n[0]&&n[0][d])S+=n[0][d].Name;else{var C=(Mi(n,k,a)||"").split(";;");C[d-1]?S=C[d-1]:S+="SH33TJSERRX"}u.push(S);break}k<0&&(k=-k),n[k]&&(_=n[k][d]),_||(_={Name:"SH33TJSERRY"}),u.push(_.Name);break;case"PtgParen":var O="(",R=")";if(v>=0){switch(m="",e[0][v][1][0]){case 2:O=Fe(" ",e[0][v][1][1])+O;break;case 3:O=Fe("\r",e[0][v][1][1])+O;break;case 4:R=Fe(" ",e[0][v][1][1])+R;break;case 5:R=Fe("\r",e[0][v][1][1])+R;break;default:if(a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][v][1][0])}v=-1}u.push(O+u.pop()+R);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":u.push("#REF!");break;case"PtgExp":s={c:y[1][1],r:y[1][0]};var N={c:r.c,r:r.r};if(n.sharedf[wr(s)]){var D=n.sharedf[wr(s)];u.push(Bi(D,0,N,n,a))}else{var I=!1;for(i=0;i!=n.arrayf.length;++i)if(o=n.arrayf[i],!(s.c<o[0].s.c||s.c>o[0].e.c||s.r<o[0].s.r||s.r>o[0].e.r)){u.push(Bi(o[1],0,N,n,a)),I=!0;break}I||u.push(y[1])}break;case"PtgArray":u.push("{"+Li(y[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":v=g;break;case"PtgMissArg":u.push("");break;case"PtgList":u.push("Table"+y[1].idx+"[#"+y[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(y))}if(3!=a.biff&&v>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(e[0][g][0])){var L=!0;switch((y=e[0][v])[1][0]){case 4:L=!1;case 0:m=Fe(" ",y[1][1]);break;case 5:L=!1;case 1:m=Fe("\r",y[1][1]);break;default:if(m="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}u.push((L?m:"")+u.pop()+(L?"":m)),v=-1}}if(u.length>1&&a.WTF)throw new Error("bad formula stack");return u[0]}function Ui(e,t,r){var n,a=e.l+t,i=2==r.biff?1:2,o=e.read_shift(i);if(65535==o)return[[],sr(e,t-2)];var s=Ii(e,o,r);return t!==o+i&&(n=Di(e,t-o-i,s,r)),e.l=a,[s,n]}function ji(e,t,r){var n,a=e.l+t,i=e.read_shift(2),o=Ii(e,i,r);return 65535==i?[[],sr(e,t-2)]:(t!==i+2&&(n=Di(e,a-i-2,o,r)),[o,n])}function Hi(e,t,r){var n=e.l+t,a=Pn(e);2==r.biff&&++e.l;var i=function(e){var t;if(65535!==Zt(e,e.l+6))return[jr(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=1===e[e.l+2],e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}(e),o=e.read_shift(1);2!=r.biff&&(e.read_shift(1),r.biff>=5&&e.read_shift(4));var s=function(e,t,r){var n,a=e.l+t,i=2==r.biff?1:2,o=e.read_shift(i);if(65535==o)return[[],sr(e,t-2)];var s=Ii(e,o,r);return t!==o+i&&(n=Di(e,t-o-i,s,r)),e.l=a,[s,n]}(e,n-e.l,r);return{cell:a,val:i[0],formula:s,shared:o>>3&1,tt:i[1]}}function $i(e,t,r){var n=e.read_shift(4),a=Ii(e,n,r),i=e.read_shift(4);return[a,i>0?Di(e,i,a,r):null]}var zi=$i,Wi=$i,Vi=$i,Xi=$i,Gi={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Yi={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},qi={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Ki(e){return"of:"==e.slice(0,3)&&(e=e.slice(3)),61==e.charCodeAt(0)&&61==(e=e.slice(1)).charCodeAt(0)&&(e=e.slice(1)),(e=(e=(e=e.replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,(function(e,t){return t.replace(/\./g,"")}))).replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function Zi(e){var t=e.split(":");return[t[0].split(".")[0],t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}var Ji={},Qi={};function eo(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(r=[1,1,1,1,.5,.5]),null==e.left&&(e.left=r[0]),null==e.right&&(e.right=r[1]),null==e.top&&(e.top=r[2]),null==e.bottom&&(e.bottom=r[3]),null==e.header&&(e.header=r[4]),null==e.footer&&(e.footer=r[5])}}function to(e,t,r,n,a,i){try{n.cellNF&&(e.z=B[t])}catch(e){if(n.WTF)throw e}if("z"!==e.t||n.cellStyles){if("d"===e.t&&"string"==typeof e.v&&(e.v=Le(e.v)),(!n||!1!==n.cellText)&&"z"!==e.t)try{if(null==B[t]&&me(be[t]||"General",t),"e"===e.t)e.w=e.w||Kr[e.v];else if(0===t)if("n"===e.t)(0|e.v)===e.v?e.w=e.v.toString(10):e.w=Y(e.v);else if("d"===e.t){var o=_e(e.v);e.w=(0|o)===o?o.toString(10):Y(o)}else{if(void 0===e.v)return"";e.w=q(e.v,Qi)}else"d"===e.t?e.w=ve(t,_e(e.v),Qi):e.w=ve(t,e.v,Qi)}catch(e){if(n.WTF)throw e}if(n.cellStyles&&null!=r)try{e.s=i.Fills[r],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=Ia(a.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),n.WTF&&(e.s.fgColor.raw_rgb=a.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=Ia(a.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),n.WTF&&(e.s.bgColor.raw_rgb=a.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(e){if(n.WTF&&i.Fills)throw e}}}var ro=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,no=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,ao=/<(?:\w:)?hyperlink [^>]*>/gm,io=/"(\w*:\w*)"/,oo=/<(?:\w:)?col\b[^>]*[\/]?>/g,so=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,co=/<(?:\w:)?pageMargins[^>]*\/>/g,lo=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,fo=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,uo=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function ho(e,t,r,n){var a=at(e);r.Sheets[n]||(r.Sheets[n]={}),a.codeName&&(r.Sheets[n].CodeName=ct(bt(a.codeName)))}var po=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/,vo=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,n=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,a=/ref=["']([^"']*)["']/,i=wt("v"),o=wt("f");return function(s,c,l,f,u,h){for(var d,p,v,m,g,b=0,y="",w=[],T=[],E=0,x=0,A=0,_="",k=0,S=0,C=0,O=0,R=Array.isArray(h.CellXf),N=[],D=[],I=Array.isArray(c),L=[],P={},M=!1,F=!!l.sheetStubs,U=s.split(t),j=0,H=U.length;j!=H;++j){var $=(y=U[j].trim()).length;if(0!==$){var z=0;e:for(b=0;b<$;++b)switch(y[b]){case">":if("/"!=y[b-1]){++b;break e}if(l&&l.cellStyles){if(k=null!=(p=at(y.slice(z,b),!0)).r?parseInt(p.r,10):k+1,S=-1,l.sheetRows&&l.sheetRows<k)continue;P={},M=!1,p.ht&&(M=!0,P.hpt=parseFloat(p.ht),P.hpx=$a(P.hpt)),"1"==p.hidden&&(M=!0,P.hidden=!0),null!=p.outlineLevel&&(M=!0,P.level=+p.outlineLevel),M&&(L[k-1]=P)}break;case"<":z=b}if(z>=b)break;if(k=null!=(p=at(y.slice(z,b),!0)).r?parseInt(p.r,10):k+1,S=-1,!(l.sheetRows&&l.sheetRows<k)){f.s.r>k-1&&(f.s.r=k-1),f.e.r<k-1&&(f.e.r=k-1),l&&l.cellStyles&&(P={},M=!1,p.ht&&(M=!0,P.hpt=parseFloat(p.ht),P.hpx=$a(P.hpt)),"1"==p.hidden&&(M=!0,P.hidden=!0),null!=p.outlineLevel&&(M=!0,P.level=+p.outlineLevel),M&&(L[k-1]=P)),w=y.slice(b).split(e);for(var W=0;W!=w.length&&"<"==w[W].trim().charAt(0);++W);for(w=w.slice(W),b=0;b!=w.length;++b)if(0!==(y=w[b].trim()).length){if(T=y.match(r),E=b,x=0,A=0,y="<c "+("<"==y.slice(0,1)?">":"")+y,null!=T&&2===T.length){for(E=0,_=T[1],x=0;x!=_.length&&!((A=_.charCodeAt(x)-64)<1||A>26);++x)E=26*E+A;S=--E}else++S;for(x=0;x!=y.length&&62!==y.charCodeAt(x);++x);if(++x,(p=at(y.slice(0,x),!0)).r||(p.r=wr({r:k-1,c:S})),d={t:""},null!=(T=(_=y.slice(x)).match(i))&&""!==T[1]&&(d.v=ct(T[1])),l.cellFormula){if(null!=(T=_.match(o))&&""!==T[1]){if(d.f=ct(bt(T[1])).replace(/\r\n/g,"\n"),l.xlfn||(d.f=hi(d.f)),T[0].indexOf('t="array"')>-1)d.F=(_.match(a)||[])[1],d.F.indexOf(":")>-1&&N.push([xr(d.F),d.F]);else if(T[0].indexOf('t="shared"')>-1){m=at(T[0]);var V=ct(bt(T[1]));l.xlfn||(V=hi(V)),D[parseInt(m.si,10)]=[m,V,p.r]}}else(T=_.match(/<f[^>]*\/>/))&&D[(m=at(T[0])).si]&&(d.f=ui(D[m.si][1],D[m.si][2],p.r));var X=yr(p.r);for(x=0;x<N.length;++x)X.r>=N[x][0].s.r&&X.r<=N[x][0].e.r&&X.c>=N[x][0].s.c&&X.c<=N[x][0].e.c&&(d.F=N[x][1])}if(null==p.t&&void 0===d.v)if(d.f||d.F)d.v=0,d.t="n";else{if(!F)continue;d.t="z"}else d.t=p.t||"n";switch(f.s.c>S&&(f.s.c=S),f.e.c<S&&(f.e.c=S),d.t){case"n":if(""==d.v||null==d.v){if(!F)continue;d.t="z"}else d.v=parseFloat(d.v);break;case"s":if(void 0===d.v){if(!F)continue;d.t="z"}else v=Ji[parseInt(d.v,10)],d.v=v.t,d.r=v.r,l.cellHTML&&(d.h=v.h);break;case"str":d.t="s",d.v=null!=d.v?bt(d.v):"",l.cellHTML&&(d.h=ut(d.v));break;case"inlineStr":T=_.match(n),d.t="s",null!=T&&(v=ba(T[1]))?(d.v=v.t,l.cellHTML&&(d.h=v.h)):d.v="";break;case"b":d.v=dt(d.v);break;case"d":l.cellDates?d.v=Le(d.v,1):(d.v=_e(Le(d.v,1)),d.t="n");break;case"e":l&&!1===l.cellText||(d.w=d.v),d.v=Zr[d.v]}if(C=O=0,g=null,R&&void 0!==p.s&&null!=(g=h.CellXf[p.s])&&(null!=g.numFmtId&&(C=g.numFmtId),l.cellStyles&&null!=g.fillId&&(O=g.fillId)),to(d,C,O,l,u,h),l.cellDates&&R&&"n"==d.t&&he(B[C])&&(d.t="d",d.v=Oe(d.v)),p.cm&&l.xlmeta){var G=(l.xlmeta.Cell||[])[+p.cm-1];G&&"XLDAPR"==G.type&&(d.D=!0)}if(I){var Y=yr(p.r);c[Y.r]||(c[Y.r]=[]),c[Y.r][Y.c]=d}else c[p.r]=d}}}}L.length>0&&(c["!rows"]=L)}}(),mo=Ur;function go(e){return[Dr(e),jr(e),"n"]}var bo=Ur,yo=["left","right","top","bottom","header","footer"];var wo=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],To=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],Eo=[],xo=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function Ao(e,t){for(var r=0;r!=e.length;++r)for(var n=e[r],a=0;a!=t.length;++a){var i=t[a];if(null==n[i[0]])n[i[0]]=i[1];else switch(i[2]){case"bool":"string"==typeof n[i[0]]&&(n[i[0]]=dt(n[i[0]]));break;case"int":"string"==typeof n[i[0]]&&(n[i[0]]=parseInt(n[i[0]],10))}}}function _o(e,t){for(var r=0;r!=t.length;++r){var n=t[r];if(null==e[n[0]])e[n[0]]=n[1];else switch(n[2]){case"bool":"string"==typeof e[n[0]]&&(e[n[0]]=dt(e[n[0]]));break;case"int":"string"==typeof e[n[0]]&&(e[n[0]]=parseInt(e[n[0]],10))}}}function ko(e){_o(e.WBProps,wo),_o(e.CalcPr,xo),Ao(e.WBView,To),Ao(e.Sheets,Eo),Qi.date1904=dt(e.WBProps.date1904)}var So="][*?/\\".split("");var Co=/<\w+:workbook/;function Oo(e,t){var r={};return e.read_shift(4),r.ArchID=e.read_shift(4),e.l+=t-8,r}function Ro(e,t,r,n,a,i,o,s){return".bin"===t.slice(-4)?function(e,t,r,n,a,i,o){if(!e)return e;var s=t||{};n||(n={"!id":{}});var c,l,f,u,h,d,p,v,m,g,b=s.dense?[]:{},y={s:{r:2e6,c:2e6},e:{r:0,c:0}},w=[],T=!1,E=!1,x=[];s.biff=12,s["!row"]=0;var A=0,_=!1,k=[],S={},C=s.supbooks||a.supbooks||[[]];if(C.sharedf=S,C.arrayf=k,C.SheetNames=a.SheetNames||a.Sheets.map((function(e){return e.name})),!s.supbooks&&(s.supbooks=C,a.Names))for(var O=0;O<a.Names.length;++O)C[0][O+1]=a.Names[O];var R,N,D=[],I=[],L=!1;if(Go[16]={n:"BrtShortReal",f:go},lr(e,(function(e,t,O){if(!E)switch(O){case 148:c=e;break;case 0:l=e,s.sheetRows&&s.sheetRows<=l.r&&(E=!0),m=mr(h=l.r),s["!row"]=l.r,(e.hidden||e.hpt||null!=e.level)&&(e.hpt&&(e.hpx=$a(e.hpt)),I[e.r]=e);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(f={t:e[2]},e[2]){case"n":f.v=e[1];break;case"s":v=Ji[e[1]],f.v=v.t,f.r=v.r;break;case"b":f.v=!!e[1];break;case"e":f.v=e[1],!1!==s.cellText&&(f.w=Kr[f.v]);break;case"str":f.t="s",f.v=e[1];break;case"is":f.t="s",f.v=e[1].t}if((u=o.CellXf[e[0].iStyleRef])&&to(f,u.numFmtId,null,s,i,o),d=-1==e[0].c?d+1:e[0].c,s.dense?(b[h]||(b[h]=[]),b[h][d]=f):b[br(d)+m]=f,s.cellFormula){for(_=!1,A=0;A<k.length;++A){var P=k[A];l.r>=P[0].s.r&&l.r<=P[0].e.r&&d>=P[0].s.c&&d<=P[0].e.c&&(f.F=Er(P[0]),_=!0)}!_&&e.length>3&&(f.f=e[3])}if(y.s.r>l.r&&(y.s.r=l.r),y.s.c>d&&(y.s.c=d),y.e.r<l.r&&(y.e.r=l.r),y.e.c<d&&(y.e.c=d),s.cellDates&&u&&"n"==f.t&&he(B[u.numFmtId])){var M=$(f.v);M&&(f.t="d",f.v=new Date(M.y,M.m-1,M.d,M.H,M.M,M.S,M.u))}R&&("XLDAPR"==R.type&&(f.D=!0),R=void 0),N&&(N=void 0);break;case 1:case 12:if(!s.sheetStubs||T)break;f={t:"z",v:void 0},d=-1==e[0].c?d+1:e[0].c,s.dense?(b[h]||(b[h]=[]),b[h][d]=f):b[br(d)+m]=f,y.s.r>l.r&&(y.s.r=l.r),y.s.c>d&&(y.s.c=d),y.e.r<l.r&&(y.e.r=l.r),y.e.c<d&&(y.e.c=d),R&&("XLDAPR"==R.type&&(f.D=!0),R=void 0),N&&(N=void 0);break;case 176:x.push(e);break;case 49:R=((s.xlmeta||{}).Cell||[])[e-1];break;case 494:var F=n["!id"][e.relId];for(F?(e.Target=F.Target,e.loc&&(e.Target+="#"+e.loc),e.Rel=F):""==e.relId&&(e.Target="#"+e.loc),h=e.rfx.s.r;h<=e.rfx.e.r;++h)for(d=e.rfx.s.c;d<=e.rfx.e.c;++d)s.dense?(b[h]||(b[h]=[]),b[h][d]||(b[h][d]={t:"z",v:void 0}),b[h][d].l=e):(p=wr({c:d,r:h}),b[p]||(b[p]={t:"z",v:void 0}),b[p].l=e);break;case 426:if(!s.cellFormula)break;k.push(e),(g=s.dense?b[h][d]:b[br(d)+m]).f=Bi(e[1],0,{r:l.r,c:d},C,s),g.F=Er(e[0]);break;case 427:if(!s.cellFormula)break;S[wr(e[0].s)]=e[1],(g=s.dense?b[h][d]:b[br(d)+m]).f=Bi(e[1],0,{r:l.r,c:d},C,s);break;case 60:if(!s.cellStyles)break;for(;e.e>=e.s;)D[e.e--]={width:e.w/256,hidden:!!(1&e.flags),level:e.level},L||(L=!0,Ua(e.w/256)),ja(D[e.e+1]);break;case 161:b["!autofilter"]={ref:Er(e)};break;case 476:b["!margins"]=e;break;case 147:a.Sheets[r]||(a.Sheets[r]={}),e.name&&(a.Sheets[r].CodeName=e.name),(e.above||e.left)&&(b["!outline"]={above:e.above,left:e.left});break;case 137:a.Views||(a.Views=[{}]),a.Views[0]||(a.Views[0]={}),e.RTL&&(a.Views[0].RTL=!0);break;case 485:case 64:case 1053:case 151:case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:T=!0;break;case 36:T=!1;break;case 37:w.push(O),T=!0;break;case 38:w.pop(),T=!1;break;default:if(t.T);else if(!T||s.WTF)throw new Error("Unexpected record 0x"+O.toString(16))}}),s),delete s.supbooks,delete s["!row"],!b["!ref"]&&(y.s.r<2e6||c&&(c.e.r>0||c.e.c>0||c.s.r>0||c.s.c>0))&&(b["!ref"]=Er(c||y)),s.sheetRows&&b["!ref"]){var P=xr(b["!ref"]);s.sheetRows<=+P.e.r&&(P.e.r=s.sheetRows-1,P.e.r>y.e.r&&(P.e.r=y.e.r),P.e.r<P.s.r&&(P.s.r=P.e.r),P.e.c>y.e.c&&(P.e.c=y.e.c),P.e.c<P.s.c&&(P.s.c=P.e.c),b["!fullref"]=b["!ref"],b["!ref"]=Er(P))}return x.length>0&&(b["!merges"]=x),D.length>0&&(b["!cols"]=D),I.length>0&&(b["!rows"]=I),b}(e,n,r,a,i,o,s):function(e,t,r,n,a,i,o){if(!e)return e;n||(n={"!id":{}});var s=t.dense?[]:{},c={s:{r:2e6,c:2e6},e:{r:0,c:0}},l="",f="",u=e.match(no);u?(l=e.slice(0,u.index),f=e.slice(u.index+u[0].length)):l=f=e;var h=l.match(lo);h?ho(h[0],0,a,r):(h=l.match(fo))&&function(e,t,r,n,a){ho(e.slice(0,e.indexOf(">")),0,n,a)}(h[0],h[1],0,a,r);var d=(l.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var p=l.slice(d,d+50).match(io);p&&function(e,t){var r=xr(t);r.s.r<=r.e.r&&r.s.c<=r.e.c&&r.s.r>=0&&r.s.c>=0&&(e["!ref"]=Er(r))}(s,p[1])}var v=l.match(uo);v&&v[1]&&function(e,t){t.Views||(t.Views=[{}]),(e.match(po)||[]).forEach((function(e,r){var n=at(e);t.Views[r]||(t.Views[r]={}),+n.zoomScale&&(t.Views[r].zoom=+n.zoomScale),dt(n.rightToLeft)&&(t.Views[r].RTL=!0)}))}(v[1],a);var m=[];if(t.cellStyles){var g=l.match(oo);g&&function(e,t){for(var r=!1,n=0;n!=t.length;++n){var a=at(t[n],!0);a.hidden&&(a.hidden=dt(a.hidden));var i=parseInt(a.min,10)-1,o=parseInt(a.max,10)-1;for(a.outlineLevel&&(a.level=+a.outlineLevel||0),delete a.min,delete a.max,a.width=+a.width,!r&&a.width&&(r=!0,Ua(a.width)),ja(a);i<=o;)e[i++]=Me(a)}}(m,g)}u&&vo(u[1],s,t,c,i,o);var b=f.match(so);b&&(s["!autofilter"]=function(e){return{ref:(e.match(/ref="([^"]*)"/)||[])[1]}}(b[0]));var y=[],w=f.match(ro);if(w)for(d=0;d!=w.length;++d)y[d]=xr(w[d].slice(w[d].indexOf('"')+1));var T=f.match(ao);T&&function(e,t,r){for(var n=Array.isArray(e),a=0;a!=t.length;++a){var i=at(bt(t[a]),!0);if(!i.ref)return;var o=((r||{})["!id"]||[])[i.id];o?(i.Target=o.Target,i.location&&(i.Target+="#"+ct(i.location))):(i.Target="#"+ct(i.location),o={Target:i.Target,TargetMode:"Internal"}),i.Rel=o,i.tooltip&&(i.Tooltip=i.tooltip,delete i.tooltip);for(var s=xr(i.ref),c=s.s.r;c<=s.e.r;++c)for(var l=s.s.c;l<=s.e.c;++l){var f=wr({c:l,r:c});n?(e[c]||(e[c]=[]),e[c][l]||(e[c][l]={t:"z",v:void 0}),e[c][l].l=i):(e[f]||(e[f]={t:"z",v:void 0}),e[f].l=i)}}}(s,T,n);var E,x,A=f.match(co);if(A&&(s["!margins"]=(E=at(A[0]),x={},["left","right","top","bottom","header","footer"].forEach((function(e){E[e]&&(x[e]=parseFloat(E[e]))})),x)),!s["!ref"]&&c.e.c>=c.s.c&&c.e.r>=c.s.r&&(s["!ref"]=Er(c)),t.sheetRows>0&&s["!ref"]){var _=xr(s["!ref"]);t.sheetRows<=+_.e.r&&(_.e.r=t.sheetRows-1,_.e.r>c.e.r&&(_.e.r=c.e.r),_.e.r<_.s.r&&(_.s.r=_.e.r),_.e.c>c.e.c&&(_.e.c=c.e.c),_.e.c<_.s.c&&(_.s.c=_.e.c),s["!fullref"]=s["!ref"],s["!ref"]=Er(_))}return m.length>0&&(s["!cols"]=m),y.length>0&&(s["!merges"]=y),s}(e,n,r,a,i,o,s)}var No,Do=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,Io=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function Lo(e,t){var r=e.split(/\s+/),n=[];if(t||(n[0]=r[0]),1===r.length)return n;var a,i,o,s=e.match(Do);if(s)for(o=0;o!=s.length;++o)-1===(i=(a=s[o].match(Io))[1].indexOf(":"))?n[a[1]]=a[2].slice(1,a[2].length-1):n["xmlns:"===a[1].slice(0,6)?"xmlns"+a[1].slice(6):a[1].slice(i+1)]=a[2].slice(1,a[2].length-1);return n}function Po(e){var t={};if(1===e.split(/\s+/).length)return t;var r,n,a,i=e.match(Do);if(i)for(a=0;a!=i.length;++a)-1===(n=(r=i[a].match(Io))[1].indexOf(":"))?t[r[1]]=r[2].slice(1,r[2].length-1):t["xmlns:"===r[1].slice(0,6)?"xmlns"+r[1].slice(6):r[1].slice(n+1)]=r[2].slice(1,r[2].length-1);return t}function Mo(e,t,r,n){var a=n;switch((r[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":a=dt(n);break;case"i2":case"int":a=parseInt(n,10);break;case"r4":case"float":a=parseFloat(n);break;case"date":case"dateTime.tz":a=Le(n);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}e[ct(t)]=a}function Fo(e,t,r){if(r.cellStyles&&t.Interior){var n=t.Interior;n.Pattern&&(n.patternType=za[n.Pattern]||n.Pattern)}e[t.ID]=t}function Bo(e,t,r,n,a,i,o,s,c,l){var f="General",u=n.StyleID,h={};l=l||{};var d=[],p=0;for(void 0===u&&s&&(u=s.StyleID),void 0===u&&o&&(u=o.StyleID);void 0!==i[u]&&(i[u].nf&&(f=i[u].nf),i[u].Interior&&d.push(i[u].Interior),i[u].Parent);)u=i[u].Parent;switch(r.Type){case"Boolean":n.t="b",n.v=dt(e);break;case"String":n.t="s",n.r=ht(ct(e)),n.v=e.indexOf("<")>-1?ct(t||e).replace(/<.*?>/g,""):n.r;break;case"DateTime":"Z"!=e.slice(-1)&&(e+="Z"),n.v=(Le(e)-new Date(Date.UTC(1899,11,30)))/864e5,n.v!=n.v?n.v=ct(e):n.v<60&&(n.v=n.v-1),f&&"General"!=f||(f="yyyy-mm-dd");case"Number":void 0===n.v&&(n.v=+e),n.t||(n.t="n");break;case"Error":n.t="e",n.v=Zr[e],!1!==l.cellText&&(n.w=e);break;default:""==e&&""==t?n.t="z":(n.t="s",n.v=ht(t||e))}if(function(e,t,r){if("z"!==e.t){if(!r||!1!==r.cellText)try{"e"===e.t?e.w=e.w||Kr[e.v]:"General"===t?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=Y(e.v):e.w=q(e.v):e.w=(n=t||"General",a=e.v,"General"===(i=No[n]||ct(n))?q(a):ve(i,a))}catch(e){if(r.WTF)throw e}var n,a,i;try{var o=No[t]||t||"General";if(r.cellNF&&(e.z=o),r.cellDates&&"n"==e.t&&he(o)){var s=$(e.v);s&&(e.t="d",e.v=new Date(s.y,s.m-1,s.d,s.H,s.M,s.S,s.u))}}catch(e){if(r.WTF)throw e}}}(n,f,l),!1!==l.cellFormula)if(n.Formula){var v=ct(n.Formula);61==v.charCodeAt(0)&&(v=v.slice(1)),n.f=si(v,a),delete n.Formula,"RC"==n.ArrayRange?n.F=si("RC:RC",a):n.ArrayRange&&(n.F=si(n.ArrayRange,a),c.push([xr(n.F),n.F]))}else for(p=0;p<c.length;++p)a.r>=c[p][0].s.r&&a.r<=c[p][0].e.r&&a.c>=c[p][0].s.c&&a.c<=c[p][0].e.c&&(n.F=c[p][1]);l.cellStyles&&(d.forEach((function(e){!h.patternType&&e.patternType&&(h.patternType=e.patternType)})),n.s=h),void 0!==n.StyleID&&(n.ixfe=n.StyleID)}function Uo(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.v=e.w=e.ixfe=void 0}function jo(e,t){var r=t||{};ge();var n=d(kt(e));"binary"!=r.type&&"array"!=r.type&&"base64"!=r.type||(n=bt(n));var a,i=n.slice(0,1024).toLowerCase(),o=!1;if((1023&(i=i.replace(/".*?"/g,"")).indexOf(">"))>Math.min(1023&i.indexOf(","),1023&i.indexOf(";"))){var s=Me(r);return s.type="string",ua.to_workbook(n,s)}if(-1==i.indexOf("<?xml")&&["html","table","head","meta","script","style","div"].forEach((function(e){i.indexOf("<"+e)>=0&&(o=!0)})),o)return function(e,t){var r=e.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!r||0==r.length)throw new Error("Invalid HTML: could not find <table>");if(1==r.length)return _r(Ko(r[0],t),t);var n={SheetNames:[],Sheets:{}};return r.forEach((function(e,r){_s(n,Ko(e,t),"Sheet"+(r+1))})),n}(n,r);No={"General Number":"General","General Date":B[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":B[15],"Short Date":B[14],"Long Time":B[19],"Medium Time":B[18],"Short Time":B[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:B[2],Standard:B[4],Percent:B[10],Scientific:B[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var c,l,f=[],u={},h=[],p=r.dense?[]:{},v="",m={},g={},b=Lo('<Data ss:Type="String">'),y=0,w=0,T=0,E={s:{r:2e6,c:2e6},e:{r:0,c:0}},x={},A={},_="",k=0,S=[],C={},O={},R=0,N=[],D=[],I={},L=[],P=!1,M=[],F=[],U={},j=0,H=0,$={Sheets:[],WBProps:{date1904:!1}},z={};St.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/gm,"");for(var W="";a=St.exec(n);)switch(a[3]=(W=a[3]).toLowerCase()){case"data":if("data"==W){if("/"===a[1]){if((c=f.pop())[0]!==a[3])throw new Error("Bad state: "+c.join("|"))}else"/"!==a[0].charAt(a[0].length-2)&&f.push([a[3],!0]);break}if(f[f.length-1][1])break;"/"===a[1]?Bo(n.slice(y,a.index),_,b,"comment"==f[f.length-1][0]?I:m,{c:w,r:T},x,L[w],g,M,r):(_="",b=Lo(a[0]),y=a.index+a[0].length);break;case"cell":if("/"===a[1])if(D.length>0&&(m.c=D),(!r.sheetRows||r.sheetRows>T)&&void 0!==m.v&&(r.dense?(p[T]||(p[T]=[]),p[T][w]=m):p[br(w)+mr(T)]=m),m.HRef&&(m.l={Target:ct(m.HRef)},m.HRefScreenTip&&(m.l.Tooltip=m.HRefScreenTip),delete m.HRef,delete m.HRefScreenTip),(m.MergeAcross||m.MergeDown)&&(j=w+(0|parseInt(m.MergeAcross,10)),H=T+(0|parseInt(m.MergeDown,10)),S.push({s:{c:w,r:T},e:{c:j,r:H}})),r.sheetStubs)if(m.MergeAcross||m.MergeDown){for(var V=w;V<=j;++V)for(var X=T;X<=H;++X)(V>w||X>T)&&(r.dense?(p[X]||(p[X]=[]),p[X][V]={t:"z"}):p[br(V)+mr(X)]={t:"z"});w=j+1}else++w;else m.MergeAcross?w=j+1:++w;else(m=Po(a[0])).Index&&(w=+m.Index-1),w<E.s.c&&(E.s.c=w),w>E.e.c&&(E.e.c=w),"/>"===a[0].slice(-2)&&++w,D=[];break;case"row":"/"===a[1]||"/>"===a[0].slice(-2)?(T<E.s.r&&(E.s.r=T),T>E.e.r&&(E.e.r=T),"/>"===a[0].slice(-2)&&(g=Lo(a[0])).Index&&(T=+g.Index-1),w=0,++T):((g=Lo(a[0])).Index&&(T=+g.Index-1),U={},("0"==g.AutoFitHeight||g.Height)&&(U.hpx=parseInt(g.Height,10),U.hpt=Ha(U.hpx),F[T]=U),"1"==g.Hidden&&(U.hidden=!0,F[T]=U));break;case"worksheet":if("/"===a[1]){if((c=f.pop())[0]!==a[3])throw new Error("Bad state: "+c.join("|"));h.push(v),E.s.r<=E.e.r&&E.s.c<=E.e.c&&(p["!ref"]=Er(E),r.sheetRows&&r.sheetRows<=E.e.r&&(p["!fullref"]=p["!ref"],E.e.r=r.sheetRows-1,p["!ref"]=Er(E))),S.length&&(p["!merges"]=S),L.length>0&&(p["!cols"]=L),F.length>0&&(p["!rows"]=F),u[v]=p}else E={s:{r:2e6,c:2e6},e:{r:0,c:0}},T=w=0,f.push([a[3],!1]),c=Lo(a[0]),v=ct(c.Name),p=r.dense?[]:{},S=[],M=[],F=[],z={name:v,Hidden:0},$.Sheets.push(z);break;case"table":if("/"===a[1]){if((c=f.pop())[0]!==a[3])throw new Error("Bad state: "+c.join("|"))}else{if("/>"==a[0].slice(-2))break;f.push([a[3],!1]),L=[],P=!1}break;case"style":"/"===a[1]?Fo(x,A,r):A=Lo(a[0]);break;case"numberformat":A.nf=ct(Lo(a[0]).Format||"General"),No[A.nf]&&(A.nf=No[A.nf]);for(var G=0;392!=G&&B[G]!=A.nf;++G);if(392==G)for(G=57;392!=G;++G)if(null==B[G]){me(A.nf,G);break}break;case"column":if("table"!==f[f.length-1][0])break;if((l=Lo(a[0])).Hidden&&(l.hidden=!0,delete l.Hidden),l.Width&&(l.wpx=parseInt(l.Width,10)),!P&&l.wpx>10){P=!0,La=6;for(var Y=0;Y<L.length;++Y)L[Y]&&ja(L[Y])}P&&ja(l),L[l.Index-1||L.length]=l;for(var q=0;q<+l.Span;++q)L[L.length]=Me(l);break;case"namedrange":if("/"===a[1])break;$.Names||($.Names=[]);var K=at(a[0]),Z={Name:K.Name,Ref:si(K.RefersTo.slice(1),{r:0,c:0})};$.Sheets.length>0&&(Z.Sheet=$.Sheets.length-1),$.Names.push(Z);break;case"namedcell":case"b":case"i":case"u":case"s":case"em":case"h2":case"h3":case"sub":case"sup":case"span":case"alignment":case"borders":case"border":case"protection":case"paragraphs":case"name":case"pixelsperinch":case"null":break;case"font":if("/>"===a[0].slice(-2))break;"/"===a[1]?_+=n.slice(k,a.index):k=a.index+a[0].length;break;case"interior":if(!r.cellStyles)break;A.Interior=Lo(a[0]);break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if("/>"===a[0].slice(-2))break;"/"===a[1]?un(C,W,n.slice(R,a.index)):R=a.index+a[0].length;break;case"styles":case"workbook":if("/"===a[1]){if((c=f.pop())[0]!==a[3])throw new Error("Bad state: "+c.join("|"))}else f.push([a[3],!1]);break;case"comment":if("/"===a[1]){if((c=f.pop())[0]!==a[3])throw new Error("Bad state: "+c.join("|"));Uo(I),D.push(I)}else f.push([a[3],!1]),I={a:(c=Lo(a[0])).Author};break;case"autofilter":if("/"===a[1]){if((c=f.pop())[0]!==a[3])throw new Error("Bad state: "+c.join("|"))}else if("/"!==a[0].charAt(a[0].length-2)){var J=Lo(a[0]);p["!autofilter"]={ref:si(J.Range).replace(/\$/g,"")},f.push([a[3],!0])}break;case"datavalidation":if("/"===a[1]){if((c=f.pop())[0]!==a[3])throw new Error("Bad state: "+c.join("|"))}else"/"!==a[0].charAt(a[0].length-2)&&f.push([a[3],!0]);break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===a[1]){if((c=f.pop())[0]!==a[3])throw new Error("Bad state: "+c.join("|"))}else"/"!==a[0].charAt(a[0].length-2)&&f.push([a[3],!0]);break;default:if(0==f.length&&"document"==a[3])return es(n,r);if(0==f.length&&"uof"==a[3])return es(n,r);var Q=!0;switch(f[f.length-1][0]){case"officedocumentsettings":switch(a[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:Q=!1}break;case"componentoptions":switch(a[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:Q=!1}break;case"excelworkbook":switch(a[3]){case"date1904":$.WBProps.date1904=!0;break;case"windowheight":case"windowwidth":case"windowtopx":case"windowtopy":case"tabratio":case"protectstructure":case"protectwindow":case"protectwindows":case"activesheet":case"displayinknotes":case"firstvisiblesheet":case"supbook":case"sheetname":case"sheetindex":case"sheetindexfirst":case"sheetindexlast":case"dll":case"acceptlabelsinformulas":case"donotsavelinkvalues":case"iteration":case"maxiterations":case"maxchange":case"path":case"xct":case"count":case"selectedsheets":case"calculation":case"uncalced":case"startupprompt":case"crn":case"externname":case"formula":case"colfirst":case"collast":case"wantadvise":case"boolean":case"error":case"text":case"ole":case"noautorecover":case"publishobjects":case"donotcalculatebeforesave":case"number":case"refmoder1c1":case"embedsavesmarttags":break;default:Q=!1}break;case"workbookoptions":switch(a[3]){case"owcversion":case"height":case"width":break;default:Q=!1}break;case"worksheetoptions":switch(a[3]){case"visible":if("/>"===a[0].slice(-2));else if("/"===a[1])switch(n.slice(R,a.index)){case"SheetHidden":z.Hidden=1;break;case"SheetVeryHidden":z.Hidden=2}else R=a.index+a[0].length;break;case"header":p["!margins"]||eo(p["!margins"]={},"xlml"),isNaN(+at(a[0]).Margin)||(p["!margins"].header=+at(a[0]).Margin);break;case"footer":p["!margins"]||eo(p["!margins"]={},"xlml"),isNaN(+at(a[0]).Margin)||(p["!margins"].footer=+at(a[0]).Margin);break;case"pagemargins":var ee=at(a[0]);p["!margins"]||eo(p["!margins"]={},"xlml"),isNaN(+ee.Top)||(p["!margins"].top=+ee.Top),isNaN(+ee.Left)||(p["!margins"].left=+ee.Left),isNaN(+ee.Right)||(p["!margins"].right=+ee.Right),isNaN(+ee.Bottom)||(p["!margins"].bottom=+ee.Bottom);break;case"displayrighttoleft":$.Views||($.Views=[]),$.Views[0]||($.Views[0]={}),$.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":case"splithorizontal":case"splitvertical":case"donotdisplaygridlines":case"activerow":case"activecol":case"toprowbottompane":case"leftcolumnrightpane":case"unsynced":case"print":case"printerrors":case"panes":case"scale":case"pane":case"number":case"layout":case"pagesetup":case"selected":case"protectobjects":case"enableselection":case"protectscenarios":case"validprinterinfo":case"horizontalresolution":case"verticalresolution":case"numberofcopies":case"activepane":case"toprowvisible":case"leftcolumnvisible":case"fittopage":case"rangeselection":case"papersizeindex":case"pagelayoutzoom":case"pagebreakzoom":case"filteron":case"fitwidth":case"fitheight":case"commentslayout":case"zoom":case"lefttoright":case"gridlines":case"allowsort":case"allowfilter":case"allowinsertrows":case"allowdeleterows":case"allowinsertcols":case"allowdeletecols":case"allowinserthyperlinks":case"allowformatcells":case"allowsizecols":case"allowsizerows":case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;case"nosummaryrowsbelowdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].above=!0;break;case"nosummarycolumnsrightdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].left=!0;break;default:Q=!1}break;case"pivottable":case"pivotcache":switch(a[3]){case"immediateitemsondrop":case"showpagemultipleitemlabel":case"compactrowindent":case"location":case"pivotfield":case"orientation":case"layoutform":case"layoutsubtotallocation":case"layoutcompactrow":case"position":case"pivotitem":case"datatype":case"datafield":case"sourcename":case"parentfield":case"ptlineitems":case"ptlineitem":case"countofsameitems":case"item":case"itemtype":case"ptsource":case"cacheindex":case"consolidationreference":case"filename":case"reference":case"nocolumngrand":case"norowgrand":case"blanklineafteritems":case"hidden":case"subtotal":case"basefield":case"mapchilditems":case"function":case"refreshonfileopen":case"printsettitles":case"mergelabels":case"defaultversion":case"refreshname":case"refreshdate":case"refreshdatecopy":case"versionlastrefresh":case"versionlastupdate":case"versionupdateablemin":case"versionrefreshablemin":case"calculation":break;default:Q=!1}break;case"pagebreaks":switch(a[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:Q=!1}break;case"autofilter":switch(a[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:Q=!1}break;case"querytable":switch(a[3]){case"id":case"autoformatfont":case"autoformatpattern":case"querysource":case"querytype":case"enableredirections":case"refreshedinxl9":case"urlstring":case"htmltables":case"connection":case"commandtext":case"refreshinfo":case"notitles":case"nextid":case"columninfo":case"overwritecells":case"donotpromptforfile":case"textwizardsettings":case"source":case"number":case"decimal":case"thousandseparator":case"trailingminusnumbers":case"formatsettings":case"fieldtype":case"delimiters":case"tab":case"comma":case"autoformatname":case"versionlastedit":case"versionlastrefresh":break;default:Q=!1}break;case"datavalidation":switch(a[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":case"cellrangelist":break;default:Q=!1}break;case"sorting":case"conditionalformatting":switch(a[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"cellrangelist":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":break;default:Q=!1}break;case"mapinfo":case"schema":case"data":switch(a[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:Q=!1}break;case"smarttags":break;default:Q=!1}if(Q)break;if(a[3].match(/!\[CDATA/))break;if(!f[f.length-1][1])throw"Unrecognized tag: "+a[3]+"|"+f.join("|");if("customdocumentproperties"===f[f.length-1][0]){if("/>"===a[0].slice(-2))break;"/"===a[1]?Mo(O,W,N,n.slice(R,a.index)):(N=a,R=a.index+a[0].length);break}if(r.WTF)throw"Unrecognized tag: "+a[3]+"|"+f.join("|")}var te={};return r.bookSheets||r.bookProps||(te.Sheets=u),te.SheetNames=h,te.Workbook=$,te.SSF=Me(B),te.Props=C,te.Custprops=O,te}function Ho(e,t){switch(vs(t=t||{}),t.type||"base64"){case"base64":return jo(b(e),t);case"binary":case"buffer":case"file":return jo(e,t);case"array":return jo(A(e),t)}}var $o=[60,1084,2066,2165,2175];function zo(e,t,r,n,a){var i=n,o=[],s=r.slice(r.l,r.l+i);if(a&&a.enc&&a.enc.insitu&&s.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:case 133:break;default:a.enc.insitu(s)}o.push(s),r.l+=i;for(var c=Zt(r,r.l),l=Yo[c],f=0;null!=l&&$o.indexOf(c)>-1;)i=Zt(r,r.l+2),f=r.l+4,2066==c?f+=4:2165!=c&&2175!=c||(f+=12),s=r.slice(f,r.l+4+i),o.push(s),r.l+=4+i,l=Yo[c=Zt(r,r.l)];var u=k(o);or(u,0);var h=0;u.lens=[];for(var d=0;d<o.length;++d)u.lens.push(h),h+=o[d].length;if(u.length<n)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+u.length+" < "+n;return t.f(u,u.length,a)}function Wo(e,t,r){if("z"!==e.t&&e.XF){var n=0;try{n=e.z||e.XF.numFmtId||0,t.cellNF&&(e.z=B[n])}catch(e){if(t.WTF)throw e}if(!t||!1!==t.cellText)try{"e"===e.t?e.w=e.w||Kr[e.v]:0===n||"General"==n?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=Y(e.v):e.w=q(e.v):e.w=ve(n,e.v,{date1904:!!r,dateNF:t&&t.dateNF})}catch(e){if(t.WTF)throw e}if(t.cellDates&&n&&"n"==e.t&&he(B[n]||String(n))){var a=$(e.v);a&&(e.t="d",e.v=new Date(a.y,a.m-1,a.d,a.H,a.M,a.S,a.u))}}}function Vo(e,t,r){return{v:e,ixfe:t,t:r}}function Xo(e,t){var r,n,a,i;if(t||(t={}),vs(t),l(),t.codepage&&s(t.codepage),e.FullPaths){if(Te.find(e,"/encryption"))throw new Error("File is password-protected");r=Te.find(e,"!CompObj"),n=Te.find(e,"/Workbook")||Te.find(e,"/Book")}else{switch(t.type){case"base64":e=x(b(e));break;case"binary":e=x(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e))}or(e,0),n={content:e}}if(r&&function(e){var t={},r=e.content;if(r.l=28,t.AnsiUserType=r.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=function(e){return Hr(e,1)}(r),r.length-r.l<=4)return t;var n=r.read_shift(4);0==n||n>40||(r.l-=4,t.Reserved1=r.read_shift(0,"lpstr-ansi"),r.length-r.l<=4||1907505652!==(n=r.read_shift(4))||(t.UnicodeClipboardFormat=function(e){return Hr(e,2)}(r),0==(n=r.read_shift(4))||n>40||(r.l-=4,t.Reserved2=r.read_shift(0,"lpwstr"))))}(r),t.bookProps&&!t.bookSheets)a={};else{var o=y?"buffer":"array";if(n&&n.content)a=function(e,t){var r,n,a,i,o,s,l,f,u={opts:{}},h={},d=t.dense?[]:{},p={},v={},m=null,g=[],b="",y={},w="",T={},E=[],x=[],A=[],_={Sheets:[],WBProps:{date1904:!1},Views:[{}]},k={},S=function(e){return e<8?qr[e]:e<64&&A[e-8]||qr[e]},C=function(e,t,n){if(!(U>1||n.sheetRows&&e.r>=n.sheetRows)){if(n.cellStyles&&t.XF&&t.XF.data&&function(e,t,r){var n,a=t.XF.data;a&&a.patternType&&r&&r.cellStyles&&(t.s={},t.s.patternType=a.patternType,(n=Da(S(a.icvFore)))&&(t.s.fgColor={rgb:n}),(n=Da(S(a.icvBack)))&&(t.s.bgColor={rgb:n}))}(0,t,n),delete t.ixfe,delete t.XF,r=e,w=wr(e),v&&v.s&&v.e||(v={s:{r:0,c:0},e:{r:0,c:0}}),e.r<v.s.r&&(v.s.r=e.r),e.c<v.s.c&&(v.s.c=e.c),e.r+1>v.e.r&&(v.e.r=e.r+1),e.c+1>v.e.c&&(v.e.c=e.c+1),n.cellFormula&&t.f)for(var a=0;a<E.length;++a)if(!(E[a][0].s.c>e.c||E[a][0].s.r>e.r||E[a][0].e.c<e.c||E[a][0].e.r<e.r)){t.F=Er(E[a][0]),E[a][0].s.c==e.c&&E[a][0].s.r==e.r||delete t.f,t.f&&(t.f=""+Bi(E[a][1],0,e,P,O));break}n.dense?(d[e.r]||(d[e.r]=[]),d[e.r][e.c]=t):d[w]=t}},O={enc:!1,sbcch:0,snames:[],sharedf:T,arrayf:E,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!t&&!!t.cellStyles,WTF:!!t&&!!t.wtf};t.password&&(O.password=t.password);var R=[],N=[],D=[],I=[],L=!1,P=[];P.SheetNames=O.snames,P.sharedf=O.sharedf,P.arrayf=O.arrayf,P.names=[],P.XTI=[];var M,F=0,U=0,j=0,H=[],$=[];O.codepage=1200,c(1200);for(var z=!1;e.l<e.length-1;){var W=e.l,V=e.read_shift(2);if(0===V&&10===F)break;var X=e.l===e.length?0:e.read_shift(2),G=Yo[V];if(G&&G.f){if(t.bookSheets&&133===F&&133!==V)break;if(F=V,2===G.r||12==G.r){var Y=e.read_shift(2);if(X-=2,!O.enc&&Y!==V&&((255&Y)<<8|Y>>8)!==V)throw new Error("rt mismatch: "+Y+"!="+V);12==G.r&&(e.l+=10,X-=10)}var q={};if(q=10===V?G.f(e,X,O):zo(V,G,e,X,O),0==U&&-1===[9,521,1033,2057].indexOf(F))continue;switch(V){case 34:u.opts.Date1904=_.WBProps.date1904=q;break;case 134:u.opts.WriteProtect=!0;break;case 47:if(O.enc||(e.l=0),O.enc=q,!t.password)throw new Error("File is password-protected");if(null==q.valid)throw new Error("Encryption scheme unsupported");if(!q.valid)throw new Error("Password is incorrect");break;case 92:O.lastuser=q;break;case 66:var K=Number(q);switch(K){case 21010:K=1200;break;case 32768:K=1e4;break;case 32769:K=1252}c(O.codepage=K),z=!0;break;case 317:O.rrtabid=q;break;case 25:O.winlocked=q;break;case 439:u.opts.RefreshAll=q;break;case 12:u.opts.CalcCount=q;break;case 16:u.opts.CalcDelta=q;break;case 17:u.opts.CalcIter=q;break;case 13:u.opts.CalcMode=q;break;case 14:u.opts.CalcPrecision=q;break;case 95:u.opts.CalcSaveRecalc=q;break;case 15:O.CalcRefMode=q;break;case 2211:u.opts.FullCalc=q;break;case 129:q.fDialog&&(d["!type"]="dialog"),q.fBelow||((d["!outline"]||(d["!outline"]={})).above=!0),q.fRight||((d["!outline"]||(d["!outline"]={})).left=!0);break;case 224:x.push(q);break;case 430:P.push([q]),P[P.length-1].XTI=[];break;case 35:case 547:P[P.length-1].push(q);break;case 24:case 536:M={Name:q.Name,Ref:Bi(q.rgce,0,null,P,O)},q.itab>0&&(M.Sheet=q.itab-1),P.names.push(M),P[0]||(P[0]=[],P[0].XTI=[]),P[P.length-1].push(q),"_xlnm._FilterDatabase"==q.Name&&q.itab>0&&q.rgce&&q.rgce[0]&&q.rgce[0][0]&&"PtgArea3d"==q.rgce[0][0][0]&&($[q.itab-1]={ref:Er(q.rgce[0][0][1][2])});break;case 22:O.ExternCount=q;break;case 23:0==P.length&&(P[0]=[],P[0].XTI=[]),P[P.length-1].XTI=P[P.length-1].XTI.concat(q),P.XTI=P.XTI.concat(q);break;case 2196:if(O.biff<8)break;null!=M&&(M.Comment=q[1]);break;case 18:d["!protect"]=q;break;case 19:0!==q&&O.WTF&&console.error("Password verifier: "+q);break;case 133:p[q.pos]=q,O.snames.push(q.name);break;case 10:if(--U)break;if(v.e){if(v.e.r>0&&v.e.c>0){if(v.e.r--,v.e.c--,d["!ref"]=Er(v),t.sheetRows&&t.sheetRows<=v.e.r){var Z=v.e.r;v.e.r=t.sheetRows-1,d["!fullref"]=d["!ref"],d["!ref"]=Er(v),v.e.r=Z}v.e.r++,v.e.c++}R.length>0&&(d["!merges"]=R),N.length>0&&(d["!objects"]=N),D.length>0&&(d["!cols"]=D),I.length>0&&(d["!rows"]=I),_.Sheets.push(k)}""===b?y=d:h[b]=d,d=t.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(8===O.biff&&(O.biff={9:2,521:3,1033:4}[V]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[q.BIFFVer]||8),O.biffguess=0==q.BIFFVer,0==q.BIFFVer&&4096==q.dt&&(O.biff=5,z=!0,c(O.codepage=28591)),8==O.biff&&0==q.BIFFVer&&16==q.dt&&(O.biff=2),U++)break;if(d=t.dense?[]:{},O.biff<8&&!z&&(z=!0,c(O.codepage=t.codepage||1252)),O.biff<5||0==q.BIFFVer&&4096==q.dt){""===b&&(b="Sheet1"),v={s:{r:0,c:0},e:{r:0,c:0}};var J={pos:e.l-X,name:b};p[J.pos]=J,O.snames.push(b)}else b=(p[W]||{name:""}).name;32==q.dt&&(d["!type"]="chart"),64==q.dt&&(d["!type"]="macro"),R=[],N=[],O.arrayf=E=[],D=[],I=[],L=!1,k={Hidden:(p[W]||{hs:0}).hs,name:b};break;case 515:case 3:case 2:"chart"==d["!type"]&&(t.dense?(d[q.r]||[])[q.c]:d[wr({c:q.c,r:q.r})])&&++q.c,s={ixfe:q.ixfe,XF:x[q.ixfe]||{},v:q.val,t:"n"},j>0&&(s.z=H[s.ixfe>>8&63]),Wo(s,t,u.opts.Date1904),C({c:q.c,r:q.r},s,t);break;case 5:case 517:s={ixfe:q.ixfe,XF:x[q.ixfe],v:q.val,t:q.t},j>0&&(s.z=H[s.ixfe>>8&63]),Wo(s,t,u.opts.Date1904),C({c:q.c,r:q.r},s,t);break;case 638:s={ixfe:q.ixfe,XF:x[q.ixfe],v:q.rknum,t:"n"},j>0&&(s.z=H[s.ixfe>>8&63]),Wo(s,t,u.opts.Date1904),C({c:q.c,r:q.r},s,t);break;case 189:for(var Q=q.c;Q<=q.C;++Q){var ee=q.rkrec[Q-q.c][0];s={ixfe:ee,XF:x[ee],v:q.rkrec[Q-q.c][1],t:"n"},j>0&&(s.z=H[s.ixfe>>8&63]),Wo(s,t,u.opts.Date1904),C({c:Q,r:q.r},s,t)}break;case 6:case 518:case 1030:if("String"==q.val){m=q;break}if((s=Vo(q.val,q.cell.ixfe,q.tt)).XF=x[s.ixfe],t.cellFormula){var te=q.formula;if(te&&te[0]&&te[0][0]&&"PtgExp"==te[0][0][0]){var re=te[0][0][1][0],ne=te[0][0][1][1],ae=wr({r:re,c:ne});T[ae]?s.f=""+Bi(q.formula,0,q.cell,P,O):s.F=((t.dense?(d[re]||[])[ne]:d[ae])||{}).F}else s.f=""+Bi(q.formula,0,q.cell,P,O)}j>0&&(s.z=H[s.ixfe>>8&63]),Wo(s,t,u.opts.Date1904),C(q.cell,s,t),m=q;break;case 7:case 519:if(!m)throw new Error("String record expects Formula");m.val=q,(s=Vo(q,m.cell.ixfe,"s")).XF=x[s.ixfe],t.cellFormula&&(s.f=""+Bi(m.formula,0,m.cell,P,O)),j>0&&(s.z=H[s.ixfe>>8&63]),Wo(s,t,u.opts.Date1904),C(m.cell,s,t),m=null;break;case 33:case 545:E.push(q);var ie=wr(q[0].s);if(n=t.dense?(d[q[0].s.r]||[])[q[0].s.c]:d[ie],t.cellFormula&&n){if(!m)break;if(!ie||!n)break;n.f=""+Bi(q[1],0,q[0],P,O),n.F=Er(q[0])}break;case 1212:if(!t.cellFormula)break;if(w){if(!m)break;T[wr(m.cell)]=q[0],((n=t.dense?(d[m.cell.r]||[])[m.cell.c]:d[wr(m.cell)])||{}).f=""+Bi(q[0],0,r,P,O)}break;case 253:s=Vo(g[q.isst].t,q.ixfe,"s"),g[q.isst].h&&(s.h=g[q.isst].h),s.XF=x[s.ixfe],j>0&&(s.z=H[s.ixfe>>8&63]),Wo(s,t,u.opts.Date1904),C({c:q.c,r:q.r},s,t);break;case 513:t.sheetStubs&&(s={ixfe:q.ixfe,XF:x[q.ixfe],t:"z"},j>0&&(s.z=H[s.ixfe>>8&63]),Wo(s,t,u.opts.Date1904),C({c:q.c,r:q.r},s,t));break;case 190:if(t.sheetStubs)for(var oe=q.c;oe<=q.C;++oe){var se=q.ixfe[oe-q.c];s={ixfe:se,XF:x[se],t:"z"},j>0&&(s.z=H[s.ixfe>>8&63]),Wo(s,t,u.opts.Date1904),C({c:oe,r:q.r},s,t)}break;case 214:case 516:case 4:(s=Vo(q.val,q.ixfe,"s")).XF=x[s.ixfe],j>0&&(s.z=H[s.ixfe>>8&63]),Wo(s,t,u.opts.Date1904),C({c:q.c,r:q.r},s,t);break;case 0:case 512:1===U&&(v=q);break;case 252:g=q;break;case 1054:if(4==O.biff){H[j++]=q[1];for(var ce=0;ce<j+163&&B[ce]!=q[1];++ce);ce>=163&&me(q[1],j+163)}else me(q[1],q[0]);break;case 30:H[j++]=q;for(var le=0;le<j+163&&B[le]!=q;++le);le>=163&&me(q,j+163);break;case 229:R=R.concat(q);break;case 93:N[q.cmo[0]]=O.lastobj=q;break;case 438:O.lastobj.TxO=q;break;case 127:O.lastobj.ImData=q;break;case 440:for(o=q[0].s.r;o<=q[0].e.r;++o)for(i=q[0].s.c;i<=q[0].e.c;++i)(n=t.dense?(d[o]||[])[i]:d[wr({c:i,r:o})])&&(n.l=q[1]);break;case 2048:for(o=q[0].s.r;o<=q[0].e.r;++o)for(i=q[0].s.c;i<=q[0].e.c;++i)(n=t.dense?(d[o]||[])[i]:d[wr({c:i,r:o})])&&n.l&&(n.l.Tooltip=q[1]);break;case 28:if(O.biff<=5&&O.biff>=2)break;n=t.dense?(d[q[0].r]||[])[q[0].c]:d[wr(q[0])];var fe=N[q[2]];n||(t.dense?(d[q[0].r]||(d[q[0].r]=[]),n=d[q[0].r][q[0].c]={t:"z"}):n=d[wr(q[0])]={t:"z"},v.e.r=Math.max(v.e.r,q[0].r),v.s.r=Math.min(v.s.r,q[0].r),v.e.c=Math.max(v.e.c,q[0].c),v.s.c=Math.min(v.s.c,q[0].c)),n.c||(n.c=[]),a={a:q[1],t:fe.TxO.t},n.c.push(a);break;case 2173:x[q.ixfe],q.ext.forEach((function(e){e[0]}));break;case 125:if(!O.cellStyles)break;for(;q.e>=q.s;)D[q.e--]={width:q.w/256,level:q.level||0,hidden:!!(1&q.flags)},L||(L=!0,Ua(q.w/256)),ja(D[q.e+1]);break;case 520:var ue={};null!=q.level&&(I[q.r]=ue,ue.level=q.level),q.hidden&&(I[q.r]=ue,ue.hidden=!0),q.hpt&&(I[q.r]=ue,ue.hpt=q.hpt,ue.hpx=$a(q.hpt));break;case 38:case 39:case 40:case 41:d["!margins"]||eo(d["!margins"]={}),d["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[V]]=q;break;case 161:d["!margins"]||eo(d["!margins"]={}),d["!margins"].header=q.header,d["!margins"].footer=q.footer;break;case 574:q.RTL&&(_.Views[0].RTL=!0);break;case 146:A=q;break;case 2198:f=q;break;case 140:l=q;break;case 442:b?k.CodeName=q||k.name:_.WBProps.CodeName=q||"ThisWorkbook"}}else G||console.error("Missing Info for XLS Record 0x"+V.toString(16)),e.l+=X}return u.SheetNames=Ee(p).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return p[e].name})),t.bookSheets||(u.Sheets=h),!u.SheetNames.length&&y["!ref"]?(u.SheetNames.push("Sheet1"),u.Sheets&&(u.Sheets.Sheet1=y)):u.Preamble=y,u.Sheets&&$.forEach((function(e,t){u.Sheets[u.SheetNames[t]]["!autofilter"]=e})),u.Strings=g,u.SSF=Me(B),O.enc&&(u.Encryption=O.enc),f&&(u.Themes=f),u.Metadata={},void 0!==l&&(u.Metadata.Country=l),P.names.length>0&&(_.Names=P.names),u.Workbook=_,u}(n.content,t);else if((i=Te.find(e,"PerfectOffice_MAIN"))&&i.content)a=ha.to_workbook(i.content,(t.type=o,t));else{if(!(i=Te.find(e,"NativeContent_MAIN"))||!i.content)throw(i=Te.find(e,"MN0"))&&i.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");a=ha.to_workbook(i.content,(t.type=o,t))}t.bookVBA&&e.FullPaths&&Te.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(a.vbaraw=function(e){var t=Te.utils.cfb_new({root:"R"});return e.FullPaths.forEach((function(r,n){if("/"!==r.slice(-1)&&r.match(/_VBA_PROJECT_CUR/)){var a=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Te.utils.cfb_add(t,a,e.FileIndex[n].content)}})),Te.write(t)}(e))}var f={};return e.FullPaths&&function(e,t,r){var n=Te.find(e,"/!DocumentSummaryInformation");if(n&&n.size>0)try{var a=En(n,Wr,"02d5cdd59c2e1b10939708002b2cf9ae");for(var i in a)t[i]=a[i]}catch(e){if(r.WTF)throw e}var o=Te.find(e,"/!SummaryInformation");if(o&&o.size>0)try{var s=En(o,Vr,"e0859ff2f94f6810ab9108002b27b3d9");for(var c in s)null==t[c]&&(t[c]=s[c])}catch(e){if(r.WTF)throw e}t.HeadingPairs&&t.TitlesOfParts&&(sn(t.HeadingPairs,t.TitlesOfParts,t,r),delete t.HeadingPairs,delete t.TitlesOfParts)}(e,f,t),a.Props=a.Custprops=f,t.bookFiles&&(a.cfb=e),a}var Go={0:{f:function(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var a=e.read_shift(2);e.l+=1;var i=e.read_shift(1);return e.l=n,7&i&&(r.level=7&i),16&i&&(r.hidden=!0),32&i&&(r.hpt=a/20),r}},1:{f:function(e){return[Nr(e)]}},2:{f:function(e){return[Nr(e),Fr(e),"n"]}},3:{f:function(e){return[Nr(e),e.read_shift(1),"e"]}},4:{f:function(e){return[Nr(e),e.read_shift(1),"b"]}},5:{f:function(e){return[Nr(e),jr(e),"n"]}},6:{f:function(e){return[Nr(e),Sr(e),"str"]}},7:{f:function(e){return[Nr(e),e.read_shift(4),"s"]}},8:{f:function(e,t,r){var n=e.l+t,a=Nr(e);a.r=r["!row"];var i=[a,Sr(e),"str"];if(r.cellFormula){e.l+=2;var o=Wi(e,n-e.l,r);i[3]=Bi(o,0,a,r.supbooks,r)}else e.l=n;return i}},9:{f:function(e,t,r){var n=e.l+t,a=Nr(e);a.r=r["!row"];var i=[a,jr(e),"n"];if(r.cellFormula){e.l+=2;var o=Wi(e,n-e.l,r);i[3]=Bi(o,0,a,r.supbooks,r)}else e.l=n;return i}},10:{f:function(e,t,r){var n=e.l+t,a=Nr(e);a.r=r["!row"];var i=[a,e.read_shift(1),"b"];if(r.cellFormula){e.l+=2;var o=Wi(e,n-e.l,r);i[3]=Bi(o,0,a,r.supbooks,r)}else e.l=n;return i}},11:{f:function(e,t,r){var n=e.l+t,a=Nr(e);a.r=r["!row"];var i=[a,e.read_shift(1),"e"];if(r.cellFormula){e.l+=2;var o=Wi(e,n-e.l,r);i[3]=Bi(o,0,a,r.supbooks,r)}else e.l=n;return i}},12:{f:function(e){return[Dr(e)]}},13:{f:function(e){return[Dr(e),Fr(e),"n"]}},14:{f:function(e){return[Dr(e),e.read_shift(1),"e"]}},15:{f:function(e){return[Dr(e),e.read_shift(1),"b"]}},16:{f:go},17:{f:function(e){return[Dr(e),Sr(e),"str"]}},18:{f:function(e){return[Dr(e),e.read_shift(4),"s"]}},19:{f:Or},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var a=e.read_shift(4),i=Pr(e),o=Vi(e,0,r),s=Lr(e);e.l=n;var c={Name:i,Ptg:o};return a<268435455&&(c.Sheet=a),s&&(c.Comment=s),c}},40:{},42:{},43:{f:function(e,t,r){var n={};n.sz=e.read_shift(2)/20;var a=function(e){var t=e.read_shift(1);return e.l++,{fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t}}(e);switch(a.fItalic&&(n.italic=1),a.fCondense&&(n.condense=1),a.fExtend&&(n.extend=1),a.fShadow&&(n.shadow=1),a.fOutline&&(n.outline=1),a.fStrikeout&&(n.strike=1),700===e.read_shift(2)&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript"}var i=e.read_shift(1);0!=i&&(n.underline=i);var o=e.read_shift(1);o>0&&(n.family=o);var s=e.read_shift(1);switch(s>0&&(n.charset=s),e.l++,n.color=function(e){var t={},r=e.read_shift(1)>>>1,n=e.read_shift(1),a=e.read_shift(2,"i"),i=e.read_shift(1),o=e.read_shift(1),s=e.read_shift(1);switch(e.l++,r){case 0:t.auto=1;break;case 1:t.index=n;var c=qr[n];c&&(t.rgb=Da(c));break;case 2:t.rgb=Da([i,o,s]);break;case 3:t.theme=n}return 0!=a&&(t.tint=a>0?a/32767:a/32768),t}(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor"}return n.name=Sr(e),n}},44:{f:function(e,t){return[e.read_shift(2),Sr(e)]}},45:{f:Ga},46:{f:Ya},47:{f:function(e,t){var r=e.l+t,n=e.read_shift(2),a=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:a}}},48:{},49:{f:function(e){return e.read_shift(4,"i")}},50:{},51:{f:function(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:ra},62:{f:function(e){return[Nr(e),Or(e),"is"]}},63:{f:function(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=wr(r);var n=e.read_shift(1);return 2&n&&(t.l="1"),8&n&&(t.a="1"),t}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:sr,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(e,t){var r={},n=e[e.l];return++e.l,r.above=!(64&n),r.left=!(128&n),e.l+=18,r.name=Ir(e,t-19),r}},148:{f:mo,p:16},151:{f:function(){}},152:{},153:{f:function(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var a=t>8?Sr(e):"";return a.length>0&&(r.CodeName=a),r.autoCompressPictures=!!(65536&n),r.backupFile=!!(64&n),r.checkCompatibility=!!(4096&n),r.date1904=!!(1&n),r.filterPrivacy=!!(8&n),r.hidePivotFieldList=!!(1024&n),r.promptedSolutions=!!(16&n),r.publishItems=!!(2048&n),r.refreshAllConnections=!!(262144&n),r.saveExternalLinkValues=!!(128&n),r.showBorderUnselectedTables=!!(4&n),r.showInkAnnotation=!!(32&n),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(32768&n),r.updateLinks=["userSet","never","always"][n>>8&3],r}},154:{},155:{},156:{f:function(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=Mr(e,t-8),r.name=Sr(e),r}},157:{},158:{},159:{T:1,f:function(e){return[e.read_shift(4),e.read_shift(4)]}},160:{T:-1},161:{T:1,f:Ur},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:bo},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Sr(e)}}},336:{T:-1},337:{f:function(e){return e.l+=4,0!=e.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Mr},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Qn},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(e,t,r){var n=e.l+t,a=Br(e),i=e.read_shift(1),o=[a];if(o[2]=i,r.cellFormula){var s=zi(e,n-e.l,r);o[1]=s}else e.l=n;return o}},427:{f:function(e,t,r){var n=e.l+t,a=[Ur(e,16)];if(r.cellFormula){var i=Xi(e,n-e.l,r);a[1]=i,e.l=n}else e.l=n;return a}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(e){var t={};return yo.forEach((function(r){t[r]=jr(e)})),t}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(e,t){var r=e.l+t,n=Ur(e,16),a=Lr(e),i=Sr(e),o=Sr(e),s=Sr(e);e.l=r;var c={rfx:n,relId:a,loc:i,display:s};return o&&(c.Tooltip=o),c}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Mr},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:oi},633:{T:1},634:{T:-1},635:{T:1,f:function(e){var t={};t.iauthor=e.read_shift(4);var r=Ur(e,16);return t.rfx=r.s,t.ref=wr(r.s),e.l+=16,t}},636:{T:-1},637:{f:Rr},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(e,t){return e.l+=10,{name:Sr(e)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},Yo={6:{f:Hi},10:{f:xn},12:{f:_n},13:{f:_n},14:{f:An},15:{f:An},16:{f:jr},17:{f:An},18:{f:An},19:{f:_n},20:{f:qn},21:{f:qn},23:{f:Qn},24:{f:Jn},25:{f:An},26:{},27:{},28:{f:function(e,t,r){return function(e,t,r){if(!(r.biff<8)){var n=e.read_shift(2),a=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),s=Nn(e,0,r);return r.biff<8&&e.read_shift(1),[{r:n,c:a},s,o,i]}}(e,0,r)}},29:{},34:{f:An},35:{f:Kn},38:{f:jr},39:{f:jr},40:{f:jr},41:{f:jr},42:{f:An},43:{f:An},47:{f:function(e,t,r){var n={Type:r.biff>=8?e.read_shift(2):0};return n.Type?function(e,t,r){var n=r||{};n.Info=e.read_shift(2),e.l-=2,1===n.Info?n.Data=function(e){var t={},r=t.EncryptionVersionInfo=xa(e,4);if(1!=r.Major||1!=r.Minor)throw"unrecognized version code "+r.Major+" : "+r.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}(e):n.Data=function(e,t){var r={},n=r.EncryptionVersionInfo=xa(e,4);if(t-=4,2!=n.Minor)throw new Error("unrecognized minor version code: "+n.Minor);if(n.Major>4||n.Major<2)throw new Error("unrecognized major version code: "+n.Major);r.Flags=e.read_shift(4),t-=4;var a=e.read_shift(4);return t-=4,r.EncryptionHeader=_a(e,a),t-=a,r.EncryptionVerifier=ka(e,t),r}(e,t)}(e,t-2,n):function(e,t,r,n){var a,i,o,s={key:_n(e),verificationBytes:_n(e)};r.password&&(s.verifier=function(e){var t,r,n=0,a=Ea(e),i=a.length+1;for((t=T(i))[0]=a.length,r=1;r!=i;++r)t[r]=a[r-1];for(r=i-1;r>=0;--r)n=((0==(16384&n)?0:1)|n<<1&32767)^t[r];return 52811^n}(r.password)),n.valid=s.verificationBytes===s.verifier,n.valid&&(n.insitu=(a=r.password,i=0,o=Ra(a),function(e){var t=function(e,t,r,n,a){var i,o;for(a||(a=t),n||(n=Ra("")),i=0;i!=t.length;++i)o=t[i],o=255&((o^=n[r])>>5|o<<3),a[i]=o,++r;return[a,r,n]}(0,e,i,o);return i=t[1],t[0]}))}(e,r.biff,r,n),n}},49:{f:function(e,t,r){var n={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(r&&r.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10}return n.name=Sn(e,0,r),n}},51:{f:_n},60:{},61:{f:function(e){return{Pos:[e.read_shift(2),e.read_shift(2)],Dim:[e.read_shift(2),e.read_shift(2)],Flags:e.read_shift(2),CurTab:e.read_shift(2),FirstTab:e.read_shift(2),Selected:e.read_shift(2),TabRatio:e.read_shift(2)}}},64:{f:An},65:{f:function(){}},66:{f:_n},77:{},80:{},81:{},82:{},85:{f:_n},89:{},90:{},91:{},92:{f:function(e,t,r){if(r.enc)return e.l+=t,"";var n=e.l,a=Nn(e,0,r);return e.read_shift(t+n-e.l),a}},93:{f:function(e,t,r){if(r&&r.biff<8)return function(e,t,r){e.l+=4;var n=e.read_shift(2),a=e.read_shift(2),i=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var o=[];return o.push((ta[n]||sr)(e,t,r)),{cmo:[a,n,i],ft:o}}(e,t,r);var n=Hn(e),a=function(e,t){for(var r=e.l+t,n=[];e.l<r;){var a=e.read_shift(2);e.l-=2;try{n.push(zn[a](e,r-e.l))}catch(t){return e.l=r,n}}return e.l!=r&&(e.l=r),n}(e,t-22,n[1]);return{cmo:n,ft:a}}},94:{},95:{f:An},96:{},97:{},99:{f:An},125:{f:ra},128:{f:function(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(0!==t[0]&&t[0]--,0!==t[1]&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}},129:{f:function(e,t,r){var n=r&&8==r.biff||2==t?e.read_shift(2):(e.l+=t,0);return{fDialog:16&n,fBelow:64&n,fRight:128&n}}},130:{f:_n},131:{f:An},132:{f:An},133:{f:function(e,t,r){var n=e.read_shift(4),a=3&e.read_shift(1),i=e.read_shift(1);switch(i){case 0:i="Worksheet";break;case 1:i="Macrosheet";break;case 2:i="Chartsheet";break;case 6:i="VBAModule"}var o=Sn(e,0,r);return 0===o.length&&(o="Sheet1"),{pos:n,hs:a,dt:i,name:o}}},134:{},140:{f:function(e){var t,r=[0,0];return t=e.read_shift(2),r[0]=Xr[t]||t,t=e.read_shift(2),r[1]=Xr[t]||t,r}},141:{f:_n},144:{},146:{f:function(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(Ln(e));return r}},151:{},152:{},153:{},154:{},155:{},156:{f:_n},157:{},158:{},160:{f:aa},161:{f:function(e,t){var r={};return t<32||(e.l+=16,r.header=jr(e),r.footer=jr(e),e.l+=2),r}},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:function(e,t){for(var r=e.l+t-2,n=e.read_shift(2),a=e.read_shift(2),i=[];e.l<r;)i.push(Fn(e));if(e.l!==r)throw new Error("MulRK read error");var o=e.read_shift(2);if(i.length!=o-a+1)throw new Error("MulRK length mismatch");return{r:n,c:a,C:o,rkrec:i}}},190:{f:function(e,t){for(var r=e.l+t-2,n=e.read_shift(2),a=e.read_shift(2),i=[];e.l<r;)i.push(e.read_shift(2));if(e.l!==r)throw new Error("MulBlank read error");var o=e.read_shift(2);if(i.length!=o-a+1)throw new Error("MulBlank length mismatch");return{r:n,c:a,C:o,ixfe:i}}},193:{f:xn},197:{},198:{},199:{},200:{},201:{},202:{f:An},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:_n},220:{},221:{f:An},222:{},224:{f:function(e,t,r){var n={};return n.ifnt=e.read_shift(2),n.numFmtId=e.read_shift(2),n.flags=e.read_shift(2),n.fStyle=n.flags>>2&1,n.data=function(e,t,r,n){var a={},i=e.read_shift(4),o=e.read_shift(4),s=e.read_shift(4),c=e.read_shift(2);return a.patternType=Gr[s>>26],n.cellStyles?(a.alc=7&i,a.fWrap=i>>3&1,a.alcV=i>>4&7,a.fJustLast=i>>7&1,a.trot=i>>8&255,a.cIndent=i>>16&15,a.fShrinkToFit=i>>20&1,a.iReadOrder=i>>22&2,a.fAtrNum=i>>26&1,a.fAtrFnt=i>>27&1,a.fAtrAlc=i>>28&1,a.fAtrBdr=i>>29&1,a.fAtrPat=i>>30&1,a.fAtrProt=i>>31&1,a.dgLeft=15&o,a.dgRight=o>>4&15,a.dgTop=o>>8&15,a.dgBottom=o>>12&15,a.icvLeft=o>>16&127,a.icvRight=o>>23&127,a.grbitDiag=o>>30&3,a.icvTop=127&s,a.icvBottom=s>>7&127,a.icvDiag=s>>14&127,a.dgDiag=s>>21&15,a.icvFore=127&c,a.icvBack=c>>7&127,a.fsxButton=c>>14&1,a):a}(e,0,n.fStyle,r),n}},225:{f:function(e,t){return 0===t||e.read_shift(2),1200}},226:{f:xn},227:{},229:{f:function(e,t){for(var r=[],n=e.read_shift(2);n--;)r.push(Bn(e));return r}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(e,t){for(var r=e.l+t,n=e.read_shift(4),a=e.read_shift(4),i=[],o=0;o!=a&&e.l<r;++o)i.push(Cn(e));return i.Count=n,i.Unique=a,i}},253:{f:function(e){var t=Pn(e);return t.isst=e.read_shift(4),t}},255:{f:function(e,t){var r={};return r.dsst=e.read_shift(2),e.l+=t-2,r}},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:kn},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:An},353:{f:xn},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:function(e,t,r){var n=e.l+t,a=e.read_shift(2),i=e.read_shift(2);if(r.sbcch=i,1025==i||14849==i)return[i,a];if(i<1||i>255)throw new Error("Unexpected SupBook type: "+i);for(var o=On(e,i),s=[];n>e.l;)s.push(Rn(e));return[i,a,o,s]}},431:{f:An},432:{},433:{},434:{},437:{},438:{f:function(e,t,r){var n=e.l,a="";try{e.l+=4;var i=(r.lastobj||{cmo:[0,0]}).cmo[1];-1==[0,5,7,11,12,14].indexOf(i)?e.l+=6:function(e){var t=e.read_shift(1);e.l++;var r=e.read_shift(2);e.l+=2}(e);var o=e.read_shift(2);e.read_shift(2),_n(e);var s=e.read_shift(2);e.l+=s;for(var c=1;c<e.lens.length-1;++c){if(e.l-n!=e.lens[c])throw new Error("TxO: bad continue record");var l=e[e.l];if((a+=On(e,e.lens[c+1]-e.lens[c]-1)).length>=(l?o:2*o))break}if(a.length!==o&&a.length!==2*o)throw new Error("cchText: "+o+" != "+a.length);return e.l=n+t,{t:a}}catch(r){return e.l=n+t,{t:a}}}},439:{f:An},440:{f:function(e,t){var r=Bn(e);e.l+=16;var n=function(e,t){var r=e.l+t,n=e.read_shift(4);if(2!==n)throw new Error("Unrecognized streamVersion: "+n);var a=e.read_shift(2);e.l+=2;var i,o,s,c,l,f,u="";16&a&&(i=Dn(e,e.l)),128&a&&(o=Dn(e,e.l)),257==(257&a)&&(s=Dn(e,e.l)),1==(257&a)&&(c=function(e,t){var r=e.read_shift(16);switch(r){case"e0c9ea79f9bace118c8200aa004ba90b":return function(e){var t=e.read_shift(4),r=e.l,n=!1;t>24&&(e.l+=t-24,"795881f43b1d7f48af2c825dc4852763"===e.read_shift(16)&&(n=!0),e.l=r);var a=e.read_shift((n?t-24:t)>>1,"utf16le").replace(S,"");return n&&(e.l+=24),a}(e);case"0303000000000000c000000000000046":return function(e){for(var t=e.read_shift(2),r="";t-- >0;)r+="../";var n=e.read_shift(0,"lpstr-ansi");if(e.l+=2,57005!=e.read_shift(2))throw new Error("Bad FileMoniker");if(0===e.read_shift(4))return r+n.replace(/\\/g,"/");var a=e.read_shift(4);if(3!=e.read_shift(2))throw new Error("Bad FileMoniker");return r+e.read_shift(a>>1,"utf16le").replace(S,"")}(e);default:throw new Error("Unsupported Moniker "+r)}}(e,e.l)),8&a&&(u=Dn(e,e.l)),32&a&&(l=e.read_shift(16)),64&a&&(f=hn(e)),e.l=r;var h=o||s||c||"";h&&u&&(h+="#"+u),h||(h="#"+u),2&a&&"/"==h.charAt(0)&&"/"!=h.charAt(1)&&(h="file://"+h);var d={Target:h};return l&&(d.guid=l),f&&(d.time=f),i&&(d.Tooltip=i),d}(e,t-24);return[r,n]}},441:{},442:{f:Rn},443:{},444:{f:_n},445:{},446:{},448:{f:xn},449:{f:function(e){return e.read_shift(2),e.read_shift(4)},r:2},450:{f:xn},512:{f:Gn},513:{f:na},515:{f:function(e,t,r){r.biffguess&&2==r.biff&&(r.biff=5);var n=Pn(e),a=jr(e);return n.val=a,n}},516:{f:function(e,t,r){r.biffguess&&2==r.biff&&(r.biff=5),e.l;var n=Pn(e);2==r.biff&&e.l++;var a=Rn(e,e.l,r);return n.val=a,n}},517:{f:Yn},519:{f:ia},520:{f:function(e){var t={};t.r=e.read_shift(2),t.c=e.read_shift(2),t.cnt=e.read_shift(2)-t.c;var r=e.read_shift(2);e.l+=4;var n=e.read_shift(1);return e.l+=3,7&n&&(t.level=7&n),32&n&&(t.hidden=!0),64&n&&(t.hpt=r/20),t}},523:{},545:{f:ea},549:{f:Vn},566:{},574:{f:function(e,t,r){return r&&r.biff>=2&&r.biff<5?{}:{RTL:64&e.read_shift(2)}}},638:{f:function(e){var t=e.read_shift(2),r=e.read_shift(2),n=Fn(e);return{r:t,c:r,ixfe:n[0],rknum:n[1]}}},659:{},1048:{},1054:{f:function(e,t,r){return[e.read_shift(2),Nn(e,0,r)]}},1084:{},1212:{f:function(e,t,r){var n=Un(e);e.l++;var a=e.read_shift(1);return[ji(e,t-=8,r),a,n]}},2048:{f:function(e,t){e.read_shift(2);var r=Bn(e),n=e.read_shift((t-10)/2,"dbcs-cont");return[r,n=n.replace(S,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Wn},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:xn},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t},r:12},2173:{f:function(e,t){e.l,e.l+=2;var r=e.read_shift(2);e.l+=2;for(var n=e.read_shift(2),a=[];n-- >0;)a.push(ai(e,e.l));return{ixfe:r,ext:a}},r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:An,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:function(e,t,r){if(!(r.biff<8)){var n=e.read_shift(2),a=e.read_shift(2);return[On(e,n,r),On(e,a,r)]}e.l+=t},r:12},2197:{},2198:{f:function(e,t,r){var n=e.l+t;if(124226!==e.read_shift(4))if(r.cellStyles){var a,i=e.slice(e.l);e.l=n;try{a=Ke(i,{type:"array"})}catch(e){return}var o=Ge(a,"theme/theme/theme1.xml",!0);if(o)return ni(o,r)}else e.l=n},r:12},2199:{},2200:{},2201:{},2202:{f:function(e){return[0!==e.read_shift(4),0!==e.read_shift(4),e.read_shift(4)]},r:12},2203:{f:xn},2204:{},2205:{},2206:{},2207:{},2211:{f:function(e){var t=function(e){var t=e.read_shift(2),r=e.read_shift(2);return e.l+=8,{type:t,flags:r}}(e);if(2211!=t.type)throw new Error("Invalid Future Record "+t.type);return 0!==e.read_shift(4)}},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:_n},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:function(e,t,r){var n={area:!1};if(5!=r.biff)return e.l+=t,n;var a=e.read_shift(1);return e.l+=3,16&a&&(n.area=!0),n}},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:function(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(Ln(e));return r}},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:Gn},1:{},2:{f:function(e){var t=Pn(e);++e.l;var r=e.read_shift(2);return t.t="n",t.val=r,t}},3:{f:function(e){var t=Pn(e);++e.l;var r=jr(e);return t.t="n",t.val=r,t}},4:{f:function(e,t,r){r.biffguess&&5==r.biff&&(r.biff=2);var n=Pn(e);++e.l;var a=Nn(e,0,r);return n.t="str",n.val=a,n}},5:{f:Yn},7:{f:function(e){var t=e.read_shift(1);return 0===t?(e.l++,""):e.read_shift(t,"sbcs-cont")}},8:{},9:{f:Wn},11:{},22:{f:_n},30:{f:Xn},31:{},32:{},33:{f:ea},36:{},37:{f:Vn},50:{f:function(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}},62:{},52:{},67:{},68:{f:_n},69:{},86:{},126:{},127:{f:function(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),a={fmt:t,env:r,len:n,data:e.slice(e.l,e.l+n)};return e.l+=n,a}},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:function(e,t,r){var n=e.l+t,a=Pn(e),i=e.read_shift(2),o=On(e,i,r);return e.l=n,a.t="str",a.val=o,a}},223:{},234:{},354:{},421:{},518:{f:Hi},521:{f:Wn},536:{f:Jn},547:{f:Kn},561:{},579:{},1030:{f:Hi},1033:{f:Wn},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function qo(e,t,r,n){var a=t;if(!isNaN(a)){var i=n||(r||[]).length||0,o=e.next(4);o.write_shift(2,a),o.write_shift(2,i),i>0&&qt(r)&&e.push(r)}}function Ko(e,t){var r=t||{},n=r.dense?[]:{},a=(e=e.replace(/<!--.*?-->/g,"")).match(/<table/i);if(!a)throw new Error("Invalid HTML: could not find <table>");var i=e.match(/<\/table/i),o=a.index,s=i&&i.index||e.length,c=He(e.slice(o,s),/(:?<tr[^>]*>)/i,"<tr>"),l=-1,f=0,u=0,h=0,d={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(o=0;o<c.length;++o){var v=c[o].trim(),m=v.slice(0,3).toLowerCase();if("<tr"!=m){if("<td"==m||"<th"==m){var g=v.split(/<\/t[dh]>/i);for(s=0;s<g.length;++s){var b=g[s].trim();if(b.match(/<t[dh]/i)){for(var y=b,w=0;"<"==y.charAt(0)&&(w=y.indexOf(">"))>-1;)y=y.slice(w+1);for(var T=0;T<p.length;++T){var E=p[T];E.s.c==f&&E.s.r<l&&l<=E.e.r&&(f=E.e.c+1,T=-1)}var x=at(b.slice(0,b.indexOf(">")));h=x.colspan?+x.colspan:1,((u=+x.rowspan)>1||h>1)&&p.push({s:{r:l,c:f},e:{r:l+(u||1)-1,c:f+h-1}});var A=x.t||x["data-t"]||"";if(y.length)if(y=Tt(y),d.s.r>l&&(d.s.r=l),d.e.r<l&&(d.e.r=l),d.s.c>f&&(d.s.c=f),d.e.c<f&&(d.e.c=f),y.length){var _={t:"s",v:y};r.raw||!y.trim().length||"s"==A||("TRUE"===y?_={t:"b",v:!0}:"FALSE"===y?_={t:"b",v:!1}:isNaN(Be(y))?isNaN(je(y).getDate())||(_={t:"d",v:Le(y)},r.cellDates||(_={t:"n",v:_e(_.v)}),_.z=r.dateNF||B[14]):_={t:"n",v:Be(y)}),r.dense?(n[l]||(n[l]=[]),n[l][f]=_):n[wr({r:l,c:f})]=_,f+=h}else f+=h;else f+=h}}}}else{if(++l,r.sheetRows&&r.sheetRows<=l){--l;break}f=0}}return n["!ref"]=Er(d),p.length&&(n["!merges"]=p),n}var Zo={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function Jo(e,t){var r,n,a,i,o,s,c,l=t||{},f=kt(e),u=[],h={name:""},d="",p=0,v={},m=[],g=l.dense?[]:{},b={value:""},y="",w=0,T=[],E=-1,x=-1,A={s:{r:1e6,c:1e7},e:{r:0,c:0}},_=0,k={},S=[],C={},O=[],R=1,N=1,D=[],I={Names:[]},L={},P=["",""],M=[],F={},B="",U=0,j=!1,H=!1,$=0;for(St.lastIndex=0,f=f.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");o=St.exec(f);)switch(o[3]=o[3].replace(/_.*$/,"")){case"table":case"工作表":"/"===o[1]?(A.e.c>=A.s.c&&A.e.r>=A.s.r?g["!ref"]=Er(A):g["!ref"]="A1:A1",l.sheetRows>0&&l.sheetRows<=A.e.r&&(g["!fullref"]=g["!ref"],A.e.r=l.sheetRows-1,g["!ref"]=Er(A)),S.length&&(g["!merges"]=S),O.length&&(g["!rows"]=O),a.name=a["名称"]||a.name,"undefined"!=typeof JSON&&JSON.stringify(a),m.push(a.name),v[a.name]=g,H=!1):"/"!==o[0].charAt(o[0].length-2)&&(a=at(o[0],!1),E=x=-1,A.s.r=A.s.c=1e7,A.e.r=A.e.c=0,g=l.dense?[]:{},S=[],O=[],H=!0);break;case"table-row-group":"/"===o[1]?--_:++_;break;case"table-row":case"行":if("/"===o[1]){E+=R,R=1;break}if((i=at(o[0],!1))["行号"]?E=i["行号"]-1:-1==E&&(E=0),(R=+i["number-rows-repeated"]||1)<10)for($=0;$<R;++$)_>0&&(O[E+$]={level:_});x=-1;break;case"covered-table-cell":"/"!==o[1]&&++x,l.sheetStubs&&(l.dense?(g[E]||(g[E]=[]),g[E][x]={t:"z"}):g[wr({r:E,c:x})]={t:"z"}),y="",T=[];break;case"table-cell":case"数据":if("/"===o[0].charAt(o[0].length-2))++x,b=at(o[0],!1),N=parseInt(b["number-columns-repeated"]||"1",10),s={t:"z",v:null},b.formula&&0!=l.cellFormula&&(s.f=Ki(ct(b.formula))),"string"==(b["数据类型"]||b["value-type"])&&(s.t="s",s.v=ct(b["string-value"]||""),l.dense?(g[E]||(g[E]=[]),g[E][x]=s):g[wr({r:E,c:x})]=s),x+=N-1;else if("/"!==o[1]){y="",w=0,T=[],N=1;var z=R?E+R-1:E;if(++x>A.e.c&&(A.e.c=x),x<A.s.c&&(A.s.c=x),E<A.s.r&&(A.s.r=E),z>A.e.r&&(A.e.r=z),M=[],F={},s={t:(b=at(o[0],!1))["数据类型"]||b["value-type"],v:null},l.cellFormula)if(b.formula&&(b.formula=ct(b.formula)),b["number-matrix-columns-spanned"]&&b["number-matrix-rows-spanned"]&&(C={s:{r:E,c:x},e:{r:E+(parseInt(b["number-matrix-rows-spanned"],10)||0)-1,c:x+(parseInt(b["number-matrix-columns-spanned"],10)||0)-1}},s.F=Er(C),D.push([C,s.F])),b.formula)s.f=Ki(b.formula);else for($=0;$<D.length;++$)E>=D[$][0].s.r&&E<=D[$][0].e.r&&x>=D[$][0].s.c&&x<=D[$][0].e.c&&(s.F=D[$][1]);switch((b["number-columns-spanned"]||b["number-rows-spanned"])&&(C={s:{r:E,c:x},e:{r:E+(parseInt(b["number-rows-spanned"],10)||0)-1,c:x+(parseInt(b["number-columns-spanned"],10)||0)-1}},S.push(C)),b["number-columns-repeated"]&&(N=parseInt(b["number-columns-repeated"],10)),s.t){case"boolean":s.t="b",s.v=dt(b["boolean-value"]);break;case"float":case"percentage":case"currency":s.t="n",s.v=parseFloat(b.value);break;case"date":s.t="d",s.v=Le(b["date-value"]),l.cellDates||(s.t="n",s.v=_e(s.v)),s.z="m/d/yy";break;case"time":s.t="n",s.v=Re(b["time-value"])/86400,l.cellDates&&(s.t="d",s.v=Oe(s.v)),s.z="HH:MM:SS";break;case"number":s.t="n",s.v=parseFloat(b["数据数值"]);break;default:if("string"!==s.t&&"text"!==s.t&&s.t)throw new Error("Unsupported value type "+s.t);s.t="s",null!=b["string-value"]&&(y=ct(b["string-value"]),T=[])}}else{if(j=!1,"s"===s.t&&(s.v=y||"",T.length&&(s.R=T),j=0==w),L.Target&&(s.l=L),M.length>0&&(s.c=M,M=[]),y&&!1!==l.cellText&&(s.w=y),j&&(s.t="z",delete s.v),(!j||l.sheetStubs)&&!(l.sheetRows&&l.sheetRows<=E))for(var W=0;W<R;++W){if(N=parseInt(b["number-columns-repeated"]||"1",10),l.dense)for(g[E+W]||(g[E+W]=[]),g[E+W][x]=0==W?s:Me(s);--N>0;)g[E+W][x+N]=Me(s);else for(g[wr({r:E+W,c:x})]=s;--N>0;)g[wr({r:E+W,c:x+N})]=Me(s);A.e.c<=x&&(A.e.c=x)}x+=(N=parseInt(b["number-columns-repeated"]||"1",10))-1,N=0,s={},y="",T=[]}L={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if("/"===o[1]){if((r=u.pop())[0]!==o[3])throw"Bad state: "+r}else"/"!==o[0].charAt(o[0].length-2)&&u.push([o[3],!0]);break;case"annotation":if("/"===o[1]){if((r=u.pop())[0]!==o[3])throw"Bad state: "+r;F.t=y,T.length&&(F.R=T),F.a=B,M.push(F)}else"/"!==o[0].charAt(o[0].length-2)&&u.push([o[3],!1]);B="",U=0,y="",w=0,T=[];break;case"creator":"/"===o[1]?B=f.slice(U,o.index):U=o.index+o[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if("/"===o[1]){if((r=u.pop())[0]!==o[3])throw"Bad state: "+r}else"/"!==o[0].charAt(o[0].length-2)&&u.push([o[3],!1]);y="",w=0,T=[];break;case"scientific-number":case"currency-symbol":case"currency-style":case"script":case"libraries":case"automatic-styles":case"default-style":case"page-layout":case"style":case"map":case"font-face":case"paragraph-properties":case"table-properties":case"table-column-properties":case"table-row-properties":case"table-cell-properties":case"fraction":case"boolean-style":case"boolean":case"text-style":case"text-content":case"text-properties":case"embedded-text":case"body":case"电子表格":case"forms":case"table-column":case"table-header-rows":case"table-rows":case"table-column-group":case"table-header-columns":case"table-columns":case"null-date":case"graphic-properties":case"calculation-settings":case"named-expressions":case"label-range":case"label-ranges":case"named-expression":case"sort":case"sort-by":case"sort-groups":case"tab":case"line-break":case"span":case"s":case"date":case"object":case"title":case"标题":case"desc":case"binary-data":case"table-source":case"scenario":case"iteration":case"content-validations":case"content-validation":case"help-message":case"error-message":case"database-ranges":case"filter":case"filter-and":case"filter-or":case"filter-condition":case"list-level-style-bullet":case"list-level-style-number":case"list-level-properties":case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":case"event-listener":case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":case"config-item":case"page-number":case"page-count":case"time":case"cell-range-source":case"detective":case"operation":case"highlighted-range":case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":case"rect":case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if("/"===o[1]){if(k[h.name]=d,(r=u.pop())[0]!==o[3])throw"Bad state: "+r}else"/"!==o[0].charAt(o[0].length-2)&&(d="",h=at(o[0],!1),u.push([o[3],!0]));break;case"number":case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(u[u.length-1][0]){case"time-style":case"date-style":n=at(o[0],!1),d+=Zo[o[3]]["long"===n.style?1:0]}break;case"text":if("/>"===o[0].slice(-2))break;if("/"===o[1])switch(u[u.length-1][0]){case"number-style":case"date-style":case"time-style":d+=f.slice(p,o.index)}else p=o.index+o[0].length;break;case"named-range":P=Zi((n=at(o[0],!1))["cell-range-address"]);var V={Name:n.name,Ref:P[0]+"!"+P[1]};H&&(V.Sheet=m.length),I.Names.push(V);break;case"p":case"文本串":if(["master-styles"].indexOf(u[u.length-1][0])>-1)break;if("/"!==o[1]||b&&b["string-value"])at(o[0],!1),w=o.index+o[0].length;else{var X=(c=void 0,c=f.slice(w,o.index).replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,(function(e,t){return Array(parseInt(t,10)+1).join(" ")})).replace(/<text:tab[^>]*\/>/g,"\t").replace(/<text:line-break\/>/g,"\n"),[ct(c.replace(/<[^>]*>/g,""))]);y=(y.length>0?y+"\n":"")+X[0]}break;case"database-range":if("/"===o[1])break;try{v[(P=Zi(at(o[0])["target-range-address"]))[0]]["!autofilter"]={ref:P[1]}}catch(e){}break;case"a":if("/"!==o[1]){if(!(L=at(o[0],!1)).href)break;L.Target=ct(L.href),delete L.href,"#"==L.Target.charAt(0)&&L.Target.indexOf(".")>-1?(P=Zi(L.Target.slice(1)),L.Target="#"+P[0]+"!"+P[1]):L.Target.match(/^\.\.[\\\/]/)&&(L.Target=L.Target.slice(3))}break;default:switch(o[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(l.WTF)throw new Error(o)}}var G={Sheets:v,SheetNames:m,Workbook:I};return l.bookSheets&&delete G.Sheets,G}function Qo(e,t){t=t||{},We(e,"META-INF/manifest.xml")&&function(e,t){for(var r,n,a=kt(e);r=St.exec(a);)switch(r[3]){case"manifest":break;case"file-entry":if("/"==(n=at(r[0],!1)).path&&"application/vnd.oasis.opendocument.spreadsheet"!==n.type)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw r}}(Xe(e,"META-INF/manifest.xml"),t);var r=Ge(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var n=Jo(bt(r),t);return We(e,"meta.xml")&&(n.Props=an(Xe(e,"meta.xml"))),n}function es(e,t){return Jo(e,t)}function ts(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function rs(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):bt(A(e))}function ns(e){var t=e.reduce((function(e,t){return e+t.length}),0),r=new Uint8Array(t),n=0;return e.forEach((function(e){r.set(e,n),n+=e.length})),r}function as(e){return 16843009*((e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135)>>>24}function is(e,t){var r=t?t[0]:0,n=127&e[r];e:if(e[r++]>=128){if(n|=(127&e[r])<<7,e[r++]<128)break e;if(n|=(127&e[r])<<14,e[r++]<128)break e;if(n|=(127&e[r])<<21,e[r++]<128)break e;if(n+=(127&e[r])*Math.pow(2,28),++r,e[r++]<128)break e;if(n+=(127&e[r])*Math.pow(2,35),++r,e[r++]<128)break e;if(n+=(127&e[r])*Math.pow(2,42),++r,e[r++]<128)break e}return t&&(t[0]=r),n}function os(e){var t=0,r=127&e[t];e:if(e[t++]>=128){if(r|=(127&e[t])<<7,e[t++]<128)break e;if(r|=(127&e[t])<<14,e[t++]<128)break e;if(r|=(127&e[t])<<21,e[t++]<128)break e;r|=(127&e[t])<<28}return r}function ss(e){for(var t=[],r=[0];r[0]<e.length;){var n,a=r[0],i=is(e,r),o=7&i,s=0;if(0==(i=Math.floor(i/8)))break;switch(o){case 0:for(var c=r[0];e[r[0]++]>=128;);n=e.slice(c,r[0]);break;case 5:s=4,n=e.slice(r[0],r[0]+s),r[0]+=s;break;case 1:s=8,n=e.slice(r[0],r[0]+s),r[0]+=s;break;case 2:s=is(e,r),n=e.slice(r[0],r[0]+s),r[0]+=s;break;default:throw new Error("PB Type ".concat(o," for Field ").concat(i," at offset ").concat(a))}var l={data:n,type:o};null==t[i]?t[i]=[l]:t[i].push(l)}return t}function cs(e,t){return(null==e?void 0:e.map((function(e){return t(e.data)})))||[]}function ls(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=is(t,r),a=[];r[0]<t.length;){var i=3&t[r[0]];if(0!=i){var o=0,s=0;if(1==i?(s=4+(t[r[0]]>>2&7),o=(224&t[r[0]++])<<3,o|=t[r[0]++]):(s=1+(t[r[0]++]>>2),2==i?(o=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(o=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),a=[ns(a)],0==o)throw new Error("Invalid offset 0");if(o>a[0].length)throw new Error("Invalid offset beyond length");if(s>=o)for(a.push(a[0].slice(-o)),s-=o;s>=a[a.length-1].length;)a.push(a[a.length-1]),s-=a[a.length-1].length;a.push(a[0].slice(-o,-o+s))}else{var c=t[r[0]++]>>2;if(c<60)++c;else{var l=c-59;c=t[r[0]],l>1&&(c|=t[r[0]+1]<<8),l>2&&(c|=t[r[0]+2]<<16),l>3&&(c|=t[r[0]+3]<<24),c>>>=0,c++,r[0]+=l}a.push(t.slice(r[0],r[0]+c)),r[0]+=c}}var f=ns(a);if(f.length!=n)throw new Error("Unexpected length: ".concat(f.length," != ").concat(n));return f}function fs(e,t,r){switch(e[0]){case 0:case 1:case 2:case 3:return function(e,t,r,n){var a,i=ts(e),o=i.getUint32(4,!0),s=(n>1?12:8)+4*as(o&(n>1?3470:398)),c=-1,l=-1,f=NaN,u=new Date(2001,0,1);switch(512&o&&(c=i.getUint32(s,!0),s+=4),s+=4*as(o&(n>1?12288:4096)),16&o&&(l=i.getUint32(s,!0),s+=4),32&o&&(f=i.getFloat64(s,!0),s+=8),64&o&&(u.setTime(u.getTime()+1e3*i.getFloat64(s,!0)),s+=8),e[2]){case 0:break;case 2:a={t:"n",v:f};break;case 3:a={t:"s",v:t[l]};break;case 5:a={t:"d",v:u};break;case 6:a={t:"b",v:f>0};break;case 7:a={t:"n",v:f/86400};break;case 8:a={t:"e",v:0};break;case 9:if(c>-1)a={t:"s",v:r[c]};else if(l>-1)a={t:"s",v:t[l]};else{if(isNaN(f))throw new Error("Unsupported cell type ".concat(e.slice(0,4)));a={t:"n",v:f}}break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return a}(e,t,r,e[0]);case 5:return function(e,t,r){var n,a=ts(e),i=a.getUint32(8,!0),o=12,s=-1,c=-1,l=NaN,f=NaN,u=new Date(2001,0,1);switch(1&i&&(l=function(e,t){for(var r=(127&e[t+15])<<7|e[t+14]>>1,n=1&e[t+14],a=t+13;a>=t;--a)n=256*n+e[a];return(128&e[t+15]?-n:n)*Math.pow(10,r-6176)}(e,o),o+=16),2&i&&(f=a.getFloat64(o,!0),o+=8),4&i&&(u.setTime(u.getTime()+1e3*a.getFloat64(o,!0)),o+=8),8&i&&(c=a.getUint32(o,!0),o+=4),16&i&&(s=a.getUint32(o,!0),o+=4),e[1]){case 0:break;case 2:case 10:n={t:"n",v:l};break;case 3:n={t:"s",v:t[c]};break;case 5:n={t:"d",v:u};break;case 6:n={t:"b",v:f>0};break;case 7:n={t:"n",v:f/86400};break;case 8:n={t:"e",v:0};break;case 9:if(!(s>-1))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&i," : ").concat(e.slice(0,4)));n={t:"s",v:r[s]};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&i," : ").concat(e.slice(0,4)))}return n}(e,t,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function us(e){return is(ss(e)[1][0].data)}function hs(e,t){var r=ss(t.data),n=os(r[1][0].data),a=r[3],i=[];return(a||[]).forEach((function(t){var r=ss(t.data),a=os(r[1][0].data)>>>0;switch(n){case 1:i[a]=rs(r[3][0].data);break;case 8:var o=ss(e[us(r[9][0].data)][0].data),s=e[us(o[1][0].data)][0],c=os(s.meta[1][0].data);if(2001!=c)throw new Error("2000 unexpected reference to ".concat(c));var l=ss(s.data);i[a]=l[3].map((function(e){return rs(e.data)})).join("")}})),i}function ds(e,t){var r={"!ref":"A1"},n=e[us(ss(t.data)[2][0].data)],a=os(n[0].meta[1][0].data);if(6001!=a)throw new Error("6000 unexpected reference to ".concat(a));return function(e,t,r){var n,a=ss(t.data),i={s:{r:0,c:0},e:{r:0,c:0}};if(i.e.r=(os(a[6][0].data)>>>0)-1,i.e.r<0)throw new Error("Invalid row varint ".concat(a[6][0].data));if(i.e.c=(os(a[7][0].data)>>>0)-1,i.e.c<0)throw new Error("Invalid col varint ".concat(a[7][0].data));r["!ref"]=Er(i);var o=ss(a[4][0].data),s=hs(e,e[us(o[4][0].data)][0]),c=(null==(n=o[17])?void 0:n[0])?hs(e,e[us(o[17][0].data)][0]):[],l=ss(o[3][0].data),f=0;l[1].forEach((function(t){var n=ss(t.data),a=e[us(n[2][0].data)][0],i=os(a.meta[1][0].data);if(6002!=i)throw new Error("6001 unexpected reference to ".concat(i));var o=function(e,t){var r,n=ss(t.data),a=(null==(r=null==n?void 0:n[7])?void 0:r[0])?os(n[7][0].data)>>>0>0?1:0:-1,i=cs(n[5],(function(e){return function(e,t){var r,n,a,i,o,s,c,l,f,u,h,d,p,v,m,g,b=ss(e),y=os(b[1][0].data)>>>0,w=os(b[2][0].data)>>>0,T=(null==(n=null==(r=b[8])?void 0:r[0])?void 0:n.data)&&os(b[8][0].data)>0||!1;if((null==(i=null==(a=b[7])?void 0:a[0])?void 0:i.data)&&0!=t)m=null==(s=null==(o=b[7])?void 0:o[0])?void 0:s.data,g=null==(l=null==(c=b[6])?void 0:c[0])?void 0:l.data;else{if(!(null==(u=null==(f=b[4])?void 0:f[0])?void 0:u.data)||1==t)throw"NUMBERS Tile missing ".concat(t," cell storage");m=null==(d=null==(h=b[4])?void 0:h[0])?void 0:d.data,g=null==(v=null==(p=b[3])?void 0:p[0])?void 0:v.data}for(var E=T?4:1,x=ts(m),A=[],_=0;_<m.length/2;++_){var k=x.getUint16(2*_,!0);k<65535&&A.push([_,k])}if(A.length!=w)throw"Expected ".concat(w," cells, found ").concat(A.length);var S=[];for(_=0;_<A.length-1;++_)S[A[_][0]]=g.subarray(A[_][1]*E,A[_+1][1]*E);return A.length>=1&&(S[A[A.length-1][0]]=g.subarray(A[A.length-1][1]*E)),{R:y,cells:S}}(e,a)}));return{nrows:os(n[4][0].data)>>>0,data:i.reduce((function(e,t){return e[t.R]||(e[t.R]=[]),t.cells.forEach((function(r,n){if(e[t.R][n])throw new Error("Duplicate cell r=".concat(t.R," c=").concat(n));e[t.R][n]=r})),e}),[])}}(0,a);o.data.forEach((function(e,t){e.forEach((function(e,n){var a=wr({r:f+t,c:n}),i=fs(e,s,c);i&&(r[a]=i)}))})),f+=o.nrows}))}(e,n[0],r),r}function ps(e){var t,r,n,a,i={},o=[];if(e.FullPaths.forEach((function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")})),e.FileIndex.forEach((function(e){if(e.name.match(/\.iwa$/)){var t,r;try{t=function(e){for(var t=[],r=0;r<e.length;){var n=e[r++],a=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(ls(n,e.slice(r,r+a))),r+=a}if(r!==e.length)throw new Error("data is not a valid framed stream!");return ns(t)}(e.content)}catch(t){return console.log("?? "+e.content.length+" "+(t.message||t))}try{r=function(e){for(var t,r=[],n=[0];n[0]<e.length;){var a=is(e,n),i=ss(e.slice(n[0],n[0]+a));n[0]+=a;var o={id:os(i[1][0].data),messages:[]};i[2].forEach((function(t){var r=ss(t.data),a=os(r[3][0].data);o.messages.push({meta:r,data:e.slice(n[0],n[0]+a)}),n[0]+=a})),(null==(t=i[3])?void 0:t[0])&&(o.merge=os(i[3][0].data)>>>0>0),r.push(o)}return r}(t)}catch(e){return console.log("## "+(e.message||e))}r.forEach((function(e){i[e.id]=e.messages,o.push(e.id)}))}})),!o.length)throw new Error("File has no messages");var s=(null==(a=null==(n=null==(r=null==(t=null==i?void 0:i[1])?void 0:t[0])?void 0:r.meta)?void 0:n[1])?void 0:a[0].data)&&1==os(i[1][0].meta[1][0].data)&&i[1][0];if(s||o.forEach((function(e){i[e].forEach((function(e){if(1==os(e.meta[1][0].data)>>>0){if(s)throw new Error("Document has multiple roots");s=e}}))})),!s)throw new Error("Cannot find Document root");return function(e,t){var r={SheetNames:[],Sheets:{}};if(cs(ss(t.data)[1],us).forEach((function(t){e[t].forEach((function(t){if(2==os(t.meta[1][0].data)){var n=function(e,t){var r,n=ss(t.data),a={name:(null==(r=n[1])?void 0:r[0])?rs(n[1][0].data):"",sheets:[]};return cs(n[2],us).forEach((function(t){e[t].forEach((function(t){6e3==os(t.meta[1][0].data)&&a.sheets.push(ds(e,t))}))})),a}(e,t);n.sheets.forEach((function(e,t){_s(r,e,0==t?n.name:n.name+"_"+t,!0)}))}}))})),0==r.SheetNames.length)throw new Error("Empty NUMBERS file");return r}(i,s)}function vs(e){var t;(t=[["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]],function(e){for(var r=0;r!=t.length;++r){var n=t[r];void 0===e[n[0]]&&(e[n[0]]=n[1]),"n"===n[2]&&(e[n[0]]=Number(e[n[0]]))}})(e)}function ms(e,t,r,n,a,i,o,s,c,l,f,u){try{i[n]=tn(Ge(e,r,!0),t);var h,d=Xe(e,t);switch(s){case"sheet":h=Ro(d,t,a,c,i[n],l,f,u);break;case"chart":if(!(h=function(e,t,r,n,a,i,o,s){return".bin"===t.slice(-4)?function(e,t,r,n,a){if(!e)return e;n||(n={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},o=[],s=!1;return lr(e,(function(e,n,c){switch(c){case 550:i["!rel"]=e;break;case 651:a.Sheets[r]||(a.Sheets[r]={}),e.name&&(a.Sheets[r].CodeName=e.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:o.push(c);break;case 38:o.pop();break;default:if(n.T>0)o.push(c);else if(n.T<0)o.pop();else if(!s||t.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}}),t),n["!id"][i["!rel"]]&&(i["!drawel"]=n["!id"][i["!rel"]]),i}(e,n,r,a,i):function(e,t,r,n,a){if(!e)return e;n||(n={"!id":{}});var i,o={"!type":"chart","!drawel":null,"!rel":""},s=e.match(lo);return s&&ho(s[0],0,a,r),(i=e.match(/drawing r:id="(.*?)"/))&&(o["!rel"]=i[1]),n["!id"][o["!rel"]]&&(o["!drawel"]=n["!id"][o["!rel"]]),o}(e,0,r,a,i)}(d,t,a,c,i[n],l))||!h["!drawel"])break;var p=Ze(h["!drawel"].Target,t),v=en(p),m=function(e,t){if(!e)return"??";var r=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][r].Target}(Ge(e,p,!0),tn(Ge(e,v,!0),p)),g=Ze(m,p),b=en(g);h=function(e,t,r,n,a,i){var o=i||{"!type":"chart"};if(!e)return i;var s=0,c=0,l="A",f={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach((function(e){var t=function(e){var t,r=[],n=e.match(/^<c:numCache>/);(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach((function(e){var t=e.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);t&&(r[+t[1]]=n?+t[2]:t[2])}));var a=ct((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/<c:f>(.*?)<\/c:f>/gm)||[]).forEach((function(e){t=e.replace(/<.*?>/g,"")})),[r,a,t]}(e);f.s.r=f.s.c=0,f.e.c=s,l=br(s),t[0].forEach((function(e,r){o[l+mr(r)]={t:"n",v:e,z:t[1]},c=r})),f.e.r<c&&(f.e.r=c),++s})),s>0&&(o["!ref"]=Er(f)),o}(Ge(e,g,!0),0,0,tn(Ge(e,b,!0),g),0,h);break;case"macro":w=t,i[n],w.slice(-4),h={"!type":"macro"};break;case"dialog":h=function(e,t,r,n,a,i,o,s){return t.slice(-4),{"!type":"dialog"}}(0,t,0,0,i[n]);break;default:throw new Error("Unrecognized sheet type "+s)}o[n]=h;var y=[];i&&i[n]&&Ee(i[n]).forEach((function(r){var a="";if(i[n][r].Type==Qr.CMNT){a=Ze(i[n][r].Target,t);var o=function(e,t,r){return".bin"===t.slice(-4)?function(e,t){var r=[],n=[],a={},i=!1;return lr(e,(function(e,o,s){switch(s){case 632:n.push(e);break;case 635:a=e;break;case 637:a.t=e.t,a.h=e.h,a.r=e.r;break;case 636:if(a.author=n[a.iauthor],delete a.iauthor,t.sheetRows&&a.rfx&&t.sheetRows<=a.rfx.r)break;a.t||(a.t=""),delete a.rfx,r.push(a);break;case 3072:case 37:case 38:break;case 35:i=!0;break;case 36:i=!1;break;default:if(o.T);else if(!i||t.WTF)throw new Error("Unexpected record 0x"+s.toString(16))}})),r}(e,r):function(e,t){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var r=[],n=[],a=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);a&&a[1]&&a[1].split(/<\/\w*:?author>/).forEach((function(e){if(""!==e&&""!==e.trim()){var t=e.match(/<(?:\w+:)?author[^>]*>(.*)/);t&&r.push(t[1])}}));var i=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return i&&i[1]&&i[1].split(/<\/\w*:?comment>/).forEach((function(e){if(""!==e&&""!==e.trim()){var a=e.match(/<(?:\w+:)?comment[^>]*>/);if(a){var i=at(a[0]),o={author:i.authorId&&r[i.authorId]||"sheetjsghost",ref:i.ref,guid:i.guid},s=yr(i.ref);if(!(t.sheetRows&&t.sheetRows<=s.r)){var c=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),l=!!c&&!!c[1]&&ba(c[1])||{r:"",t:"",h:""};o.r=l.r,"<t></t>"==l.r&&(l.t=l.h=""),o.t=(l.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),t.cellHTML&&(o.h=l.h),n.push(o)}}}})),n}(e,r)}(Xe(e,a,!0),a,c);if(!o||!o.length)return;ii(h,o,!1)}i[n][r].Type==Qr.TCMNT&&(a=Ze(i[n][r].Target,t),y=y.concat(function(e,t){var r=[],n=!1,a={},i=0;return e.replace(tt,(function(o,s){var c=at(o);switch(it(c[0])){case"<?xml":case"<ThreadedComments":case"</ThreadedComments>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<threadedComment":a={author:c.personId,guid:c.id,ref:c.ref,T:1};break;case"</threadedComment>":null!=a.t&&r.push(a);break;case"<text>":case"<text":i=s+o.length;break;case"</text>":a.t=e.slice(i,s).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"<mentions":case"<mentions>":case"<ext":n=!0;break;case"</mentions>":case"</ext>":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+c[0]+" in threaded comments")}return o})),r}(Xe(e,a,!0),c)))})),y&&y.length&&ii(h,y,!0,c.people||[])}catch(e){if(c.WTF)throw e}var w}function gs(e){return"/"==e.charAt(0)?e.slice(1):e}function bs(e,t){if(ge(),vs(t=t||{}),We(e,"META-INF/manifest.xml"))return Qo(e,t);if(We(e,"objectdata.xml"))return Qo(e,t);if(We(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array support");if(e.FileIndex)return ps(e);var r=Te.utils.cfb_new();return qe(e).forEach((function(t){!function(e,t,r){if(e.FullPaths){var n;if("string"==typeof r)return n=y?w(r):function(e){for(var t=[],r=0,n=e.length+250,a=T(e.length+255),i=0;i<e.length;++i){var o=e.charCodeAt(i);if(o<128)a[r++]=o;else if(o<2048)a[r++]=192|o>>6&31,a[r++]=128|63&o;else if(o>=55296&&o<57344){o=64+(1023&o);var s=1023&e.charCodeAt(++i);a[r++]=240|o>>8&7,a[r++]=128|o>>2&63,a[r++]=128|s>>6&15|(3&o)<<4,a[r++]=128|63&s}else a[r++]=224|o>>12&15,a[r++]=128|o>>6&63,a[r++]=128|63&o;r>n&&(t.push(a.slice(0,r)),r=0,a=T(65535),n=65530)}return t.push(a.slice(0,r)),k(t)}(r),Te.utils.cfb_add(e,t,n);Te.utils.cfb_add(e,t,r)}else e.file(t,r)}(r,t,Ye(e,t))})),ps(r)}if(!We(e,"[Content_Types].xml")){if(We(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(We(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var n,a,i=qe(e),o=function(e){var t={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};if(!e||!e.match)return t;var r={};if((e.match(tt)||[]).forEach((function(e){var n=at(e);switch(n[0].replace(rt,"<")){case"<?xml":break;case"<Types":t.xmlns=n["xmlns"+(n[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":r[n.Extension]=n.ContentType;break;case"<Override":void 0!==t[Jr[n.ContentType]]&&t[Jr[n.ContentType]].push(n.PartName)}})),"http://schemas.openxmlformats.org/package/2006/content-types"!==t.xmlns)throw new Error("Unknown Namespace: "+t.xmlns);return t.calcchain=t.calcchains.length>0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=r,delete t.calcchains,t}(Ge(e,"[Content_Types].xml")),s=!1;if(0===o.workbooks.length&&Xe(e,a="xl/workbook.xml",!0)&&o.workbooks.push(a),0===o.workbooks.length){if(!Xe(e,a="xl/workbook.bin",!0))throw new Error("Could not find workbook");o.workbooks.push(a),s=!0}"bin"==o.workbooks[0].slice(-3)&&(s=!0);var c={},l={};if(!t.bookSheets&&!t.bookProps){if(Ji=[],o.sst)try{Ji=function(e,t,r){return".bin"===t.slice(-4)?function(e,t){var r=[],n=!1;return lr(e,(function(e,a,i){switch(i){case 159:r.Count=e[0],r.Unique=e[1];break;case 19:r.push(e);break;case 160:return!0;case 35:n=!0;break;case 36:n=!1;break;default:if(a.T,!n||t.WTF)throw new Error("Unexpected record 0x"+i.toString(16))}})),r}(e,r):function(e,t){var r=[],n="";if(!e)return r;var a=e.match(ya);if(a){n=a[2].replace(wa,"").split(Ta);for(var i=0;i!=n.length;++i){var o=ba(n[i].trim(),t);null!=o&&(r[r.length]=o)}a=at(a[1]),r.Count=a.count,r.Unique=a.uniqueCount}return r}(e,r)}(Xe(e,gs(o.sst)),o.sst,t)}catch(e){if(t.WTF)throw e}t.cellStyles&&o.themes.length&&(c=function(e,t,r){return ni(e,r)}(Ge(e,o.themes[0].replace(/^\//,""),!0)||"",o.themes[0],t)),o.style&&(l=function(e,t,r,n){return".bin"===t.slice(-4)?function(e,t,r){var n={NumberFmt:[]};for(var a in B)n.NumberFmt[a]=B[a];n.CellXf=[],n.Fonts=[];var i=[],o=!1;return lr(e,(function(e,a,s){switch(s){case 44:n.NumberFmt[e[0]]=e[1],me(e[1],e[0]);break;case 43:n.Fonts.push(e),null!=e.color.theme&&t&&t.themeElements&&t.themeElements.clrScheme&&(e.color.rgb=Ia(t.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0));break;case 1025:case 45:case 46:case 48:case 507:case 572:case 475:case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 47:617==i[i.length-1]&&n.CellXf.push(e);break;case 35:o=!0;break;case 36:o=!1;break;case 37:i.push(s),o=!0;break;case 38:i.pop(),o=!1;break;default:if(a.T>0)i.push(s);else if(a.T<0)i.pop();else if(!o||r.WTF&&37!=i[i.length-1])throw new Error("Unexpected record 0x"+s.toString(16))}})),n}(e,r,n):Xa(e,r,n)}(Xe(e,gs(o.style)),o.style,c,t))}o.links.map((function(r){try{return tn(Ge(e,en(gs(r))),r),function(e,t,r,n){if(".bin"===r.slice(-4))return function(e,t,r,n){if(!e)return e;var a=n||{},i=!1;lr(e,(function(e,t,r){switch(r){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:i=!0;break;case 36:i=!1;break;default:if(t.T);else if(!i||a.WTF)throw new Error("Unexpected record 0x"+r.toString(16))}}),a)}(e,0,0,n)}(Xe(e,gs(r)),0,r,t)}catch(e){}}));var f=function(e,t,r){return".bin"===t.slice(-4)?function(e,t){var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},n=[],a=!1;t||(t={}),t.biff=12;var i=[],o=[[]];return o.SheetNames=[],o.XTI=[],Go[16]={n:"BrtFRTArchID$",f:Oo},lr(e,(function(e,s,c){switch(c){case 156:o.SheetNames.push(e.name),r.Sheets.push(e);break;case 153:r.WBProps=e;break;case 39:null!=e.Sheet&&(t.SID=e.Sheet),e.Ref=Bi(e.Ptg,0,null,o,t),delete t.SID,delete e.Ptg,i.push(e);break;case 1036:case 361:case 2071:case 158:case 143:case 664:case 353:case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:case 16:break;case 357:case 358:case 355:case 667:o[0].length?o.push([c,e]):o[0]=[c,e],o[o.length-1].XTI=[];break;case 362:0===o.length&&(o[0]=[],o[0].XTI=[]),o[o.length-1].XTI=o[o.length-1].XTI.concat(e),o.XTI=o.XTI.concat(e);break;case 35:case 37:n.push(c),a=!0;break;case 36:case 38:n.pop(),a=!1;break;default:if(s.T);else if(!a||t.WTF&&37!=n[n.length-1]&&35!=n[n.length-1])throw new Error("Unexpected record 0x"+c.toString(16))}}),t),ko(r),r.Names=i,r.supbooks=o,r}(e,r):function(e,t){if(!e)throw new Error("Could not find file");var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},n=!1,a="xmlns",i={},o=0;if(e.replace(tt,(function(s,c){var l=at(s);switch(it(l[0])){case"<?xml":case"</workbook>":case"<fileVersion/>":case"</fileVersion>":case"<fileSharing":case"<fileSharing/>":case"</workbookPr>":case"<workbookProtection":case"<workbookProtection/>":case"<bookViews":case"<bookViews>":case"</bookViews>":case"</workbookView>":case"<sheets":case"<sheets>":case"</sheets>":case"</sheet>":case"<functionGroups":case"<functionGroups/>":case"<functionGroup":case"<externalReferences":case"</externalReferences>":case"<externalReferences>":case"<externalReference":case"<definedNames/>":case"<definedName/>":case"</calcPr>":case"<oleSize":case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":case"<customWorkbookView":case"</customWorkbookView>":case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":case"<pivotCache":case"<smartTagPr":case"<smartTagPr/>":case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":case"<smartTagType":case"<webPublishing":case"<webPublishing/>":case"<fileRecoveryPr":case"<fileRecoveryPr/>":case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":case"<webPublishObject":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":case"<ArchID":case"<revisionPtr":break;case"<workbook":s.match(Co)&&(a="xmlns"+s.match(/<(\w+):/)[1]),r.xmlns=l[a];break;case"<fileVersion":delete l[0],r.AppVersion=l;break;case"<workbookPr":case"<workbookPr/>":wo.forEach((function(e){if(null!=l[e[0]])switch(e[2]){case"bool":r.WBProps[e[0]]=dt(l[e[0]]);break;case"int":r.WBProps[e[0]]=parseInt(l[e[0]],10);break;default:r.WBProps[e[0]]=l[e[0]]}})),l.codeName&&(r.WBProps.CodeName=bt(l.codeName));break;case"<workbookView":case"<workbookView/>":delete l[0],r.WBView.push(l);break;case"<sheet":switch(l.state){case"hidden":l.Hidden=1;break;case"veryHidden":l.Hidden=2;break;default:l.Hidden=0}delete l.state,l.name=ct(bt(l.name)),delete l[0],r.Sheets.push(l);break;case"<definedNames>":case"<definedNames":case"<ext":case"<AlternateContent":case"<AlternateContent>":n=!0;break;case"</definedNames>":case"</ext>":case"</AlternateContent>":n=!1;break;case"<definedName":(i={}).Name=bt(l.name),l.comment&&(i.Comment=l.comment),l.localSheetId&&(i.Sheet=+l.localSheetId),dt(l.hidden||"0")&&(i.Hidden=!0),o=c+s.length;break;case"</definedName>":i.Ref=ct(bt(e.slice(o,c))),r.Names.push(i);break;case"<calcPr":case"<calcPr/>":delete l[0],r.CalcPr=l;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+l[0]+" in workbook")}return s})),-1===Ct.indexOf(r.xmlns))throw new Error("Unknown Namespace: "+r.xmlns);return ko(r),r}(e,r)}(Xe(e,gs(o.workbooks[0])),o.workbooks[0],t),u={},h="";o.coreprops.length&&((h=Xe(e,gs(o.coreprops[0]),!0))&&(u=an(h)),0!==o.extprops.length&&(h=Xe(e,gs(o.extprops[0]),!0))&&function(e,t,r){var n={};t||(t={}),e=bt(e),on.forEach((function(r){var a=(e.match(wt(r[0]))||[])[1];switch(r[2]){case"string":a&&(t[r[1]]=ct(a));break;case"bool":t[r[1]]="true"===a;break;case"raw":var i=e.match(new RegExp("<"+r[0]+"[^>]*>([\\s\\S]*?)</"+r[0]+">"));i&&i.length>0&&(n[r[1]]=i[1])}})),n.HeadingPairs&&n.TitlesOfParts&&sn(n.HeadingPairs,n.TitlesOfParts,t,r)}(h,u,t));var d={};t.bookSheets&&!t.bookProps||0!==o.custprops.length&&(h=Ge(e,gs(o.custprops[0]),!0))&&(d=function(e,t){var r={},n="",a=e.match(ln);if(a)for(var i=0;i!=a.length;++i){var o=a[i],s=at(o);switch(s[0]){case"<?xml":case"<Properties":break;case"<property":n=ct(s.name);break;case"</property>":n=null;break;default:if(0===o.indexOf("<vt:")){var c=o.split(">"),l=c[0].slice(4),f=c[1];switch(l){case"lpstr":case"bstr":case"lpwstr":case"cy":case"error":r[n]=ct(f);break;case"bool":r[n]=dt(f);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":r[n]=parseInt(f,10);break;case"r4":case"r8":case"decimal":r[n]=parseFloat(f);break;case"filetime":case"date":r[n]=Le(f);break;default:if("/"==l.slice(-1))break;t.WTF&&"undefined"!=typeof console&&console.warn("Unexpected",o,l,c)}}else if("</"===o.slice(0,2));else if(t.WTF)throw new Error(o)}}return r}(h,t));var p={};if((t.bookSheets||t.bookProps)&&(f.Sheets?n=f.Sheets.map((function(e){return e.name})):u.Worksheets&&u.SheetNames.length>0&&(n=u.SheetNames),t.bookProps&&(p.Props=u,p.Custprops=d),t.bookSheets&&void 0!==n&&(p.SheetNames=n),t.bookSheets?p.SheetNames:t.bookProps))return p;n={};var v,m={};t.bookDeps&&o.calcchain&&(v=Xe(e,gs(o.calcchain)),m=".bin"===o.calcchain.slice(-4)?function(e,t,r){var n=[];return lr(e,(function(e,t,r){if(63===r)n.push(e);else if(!t.T)throw new Error("Unexpected record 0x"+r.toString(16))})),n}(v):function(e){var t=[];if(!e)return t;var r=1;return(e.match(tt)||[]).forEach((function(e){var n=at(e);switch(n[0]){case"<?xml":case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete n[0],n.i?r=n.i:n.i=r,t.push(n)}})),t}(v));var g,b,E=0,x={},A=f.Sheets;u.Worksheets=A.length,u.SheetNames=[];for(var _=0;_!=A.length;++_)u.SheetNames[_]=A[_].name;var S=s?"bin":"xml",C=o.workbooks[0].lastIndexOf("/"),O=(o.workbooks[0].slice(0,C+1)+"_rels/"+o.workbooks[0].slice(C+1)+".rels").replace(/^\//,"");We(e,O)||(O="xl/_rels/workbook."+S+".rels");var R=tn(Ge(e,O,!0),O.replace(/_rels.*/,"s5s"));(o.metadata||[]).length>=1&&(t.xlmeta=function(e,t,r){return".bin"===t.slice(-4)?function(e,t,r){var n={Types:[],Cell:[],Value:[]},a=r||{},i=[],o=!1,s=2;return lr(e,(function(e,t,r){switch(r){case 335:n.Types.push({name:e.name});break;case 51:e.forEach((function(e){1==s?n.Cell.push({type:n.Types[e[0]-1].name,index:e[1]}):0==s&&n.Value.push({type:n.Types[e[0]-1].name,index:e[1]})}));break;case 337:s=e?1:0;break;case 338:s=2;break;case 35:i.push(r),o=!0;break;case 36:i.pop(),o=!1;break;default:if(t.T);else if(!o||a.WTF&&35!=i[i.length-1])throw new Error("Unexpected record 0x"+r.toString(16))}})),n}(e,0,r):function(e,t,r){var n={Types:[],Cell:[],Value:[]};if(!e)return n;var a,i=!1,o=2;return e.replace(tt,(function(e){var t=at(e);switch(it(t[0])){case"<?xml":case"<metadata":case"</metadata>":case"<metadataTypes":case"</metadataTypes>":case"</metadataType>":case"</futureMetadata>":case"<bk>":case"</bk>":case"</rc>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<metadataType":n.Types.push({name:t.name});break;case"<futureMetadata":for(var s=0;s<n.Types.length;++s)n.Types[s].name==t.name&&(a=n.Types[s]);break;case"<rc":1==o?n.Cell.push({type:n.Types[t.t-1].name,index:+t.v}):0==o&&n.Value.push({type:n.Types[t.t-1].name,index:+t.v});break;case"<cellMetadata":o=1;break;case"</cellMetadata>":case"</valueMetadata>":o=2;break;case"<valueMetadata":o=0;break;case"<ext":i=!0;break;case"</ext>":i=!1;break;case"<rvb":if(!a)break;a.offsets||(a.offsets=[]),a.offsets.push(+t.i);break;default:if(!i&&r.WTF)throw new Error("unrecognized "+t[0]+" in metadata")}return e})),n}(e,0,r)}(Xe(e,gs(o.metadata[0])),o.metadata[0],t)),(o.people||[]).length>=1&&(t.people=function(e,t){var r=[],n=!1;return e.replace(tt,(function(e){var a=at(e);switch(it(a[0])){case"<?xml":case"<personList":case"</personList>":case"</person>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<person":r.push({name:a.displayname,id:a.id});break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+a[0]+" in threaded comments")}return e})),r}(Xe(e,gs(o.people[0])),t)),R&&(R=function(e,t){if(!e)return 0;try{e=t.map((function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,(r=e["!id"][t.id].Type,Qr.WS.indexOf(r)>-1?"sheet":Qr.CS&&r==Qr.CS?"chart":Qr.DS&&r==Qr.DS?"dialog":Qr.MS&&r==Qr.MS?"macro":r&&r.length?r:"sheet")];var r}))}catch(e){return null}return e&&0!==e.length?e:null}(R,f.Sheets));var N=Xe(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(E=0;E!=u.Worksheets;++E){var D="sheet";if(R&&R[E]?(g="xl/"+R[E][1].replace(/[\/]?xl\//,""),We(e,g)||(g=R[E][1]),We(e,g)||(g=O.replace(/_rels\/.*$/,"")+R[E][1]),D=R[E][2]):g=(g="xl/worksheets/sheet"+(E+1-N)+"."+S).replace(/sheet0\./,"sheet."),b=g.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(E!=t.sheets)continue e;break;case"string":if(u.SheetNames[E].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var I=!1,L=0;L!=t.sheets.length;++L)"number"==typeof t.sheets[L]&&t.sheets[L]==E&&(I=1),"string"==typeof t.sheets[L]&&t.sheets[L].toLowerCase()==u.SheetNames[E].toLowerCase()&&(I=1);if(!I)continue e}}ms(e,g,b,u.SheetNames[E],E,x,n,D,t,f,c,l)}return p={Directory:o,Workbook:f,Props:u,Custprops:d,Deps:m,Sheets:n,SheetNames:u.SheetNames,Strings:Ji,Styles:l,Themes:c,SSF:Me(B)},t&&t.bookFiles&&(e.files?(p.keys=i,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach((function(t,r){t=t.replace(/^Root Entry[\/]/,""),p.keys.push(t),p.files[t]=e.FileIndex[r]})))),t&&t.bookVBA&&(o.vba.length>0?p.vbaraw=Xe(e,gs(o.vba[0]),!0):o.defaults&&"application/vnd.ms-office.vbaProject"===o.defaults.bin&&(p.vbaraw=Xe(e,"xl/vbaProject.bin",!0))),p}function ys(e,t){var r,n,a=t||{},i="Workbook",o=Te.find(e,i);try{if(i="/!DataSpaces/Version",!(o=Te.find(e,i))||!o.content)throw new Error("ECMA-376 Encrypted file missing "+i);if(r=o.content,(n={}).id=r.read_shift(0,"lpp4"),n.R=xa(r,4),n.U=xa(r,4),n.W=xa(r,4),i="/!DataSpaces/DataSpaceMap",!(o=Te.find(e,i))||!o.content)throw new Error("ECMA-376 Encrypted file missing "+i);var s=function(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(Aa(e));return t}(o.content);if(1!==s.length||1!==s[0].comps.length||0!==s[0].comps[0].t||"StrongEncryptionDataSpace"!==s[0].name||"EncryptedPackage"!==s[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+i);if(i="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(o=Te.find(e,i))||!o.content)throw new Error("ECMA-376 Encrypted file missing "+i);var c=function(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(e.read_shift(0,"lpp4"));return t}(o.content);if(1!=c.length||"StrongEncryptionTransform"!=c[0])throw new Error("ECMA-376 Encrypted file bad "+i);if(i="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(o=Te.find(e,i))||!o.content)throw new Error("ECMA-376 Encrypted file missing "+i);!function(e){var t=function(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=xa(e,4),t.U=xa(e,4),t.W=xa(e,4),t}(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record")}(o.content)}catch(e){}if(i="/EncryptionInfo",!(o=Te.find(e,i))||!o.content)throw new Error("ECMA-376 Encrypted file missing "+i);var l=function(e){var t=xa(e);switch(t.Minor){case 2:return[t.Minor,Sa(e)];case 3:return[t.Minor,Ca()];case 4:return[t.Minor,Oa(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}(o.content);if(i="/EncryptedPackage",!(o=Te.find(e,i))||!o.content)throw new Error("ECMA-376 Encrypted file missing "+i);if(4==l[0]&&"undefined"!=typeof decrypt_agile)return decrypt_agile(l[1],o.content,a.password||"",a);if(2==l[0]&&"undefined"!=typeof decrypt_std76)return decrypt_std76(l[1],o.content,a.password||"",a);throw new Error("File is password-protected")}function ws(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=b(e.slice(0,12));break;case"binary":r=e;break;default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function Ts(e,t){var r=0;e:for(;r<e.length;)switch(e.charCodeAt(r)){case 10:case 13:case 32:++r;break;case 60:return Ho(e.slice(r),t);default:break e}return ua.to_workbook(e,t)}function Es(e,t,r,n){return n?(r.type="string",ua.to_workbook(e,r)):ua.to_workbook(t,r)}function xs(t,r){l();var n=r||{};if("undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer)return xs(new Uint8Array(t),((n=Me(n)).type="array",n));"undefined"!=typeof Uint8Array&&t instanceof Uint8Array&&!n.type&&(n.type="undefined"!=typeof Deno?"buffer":"array");var a,i=t,o=!1;if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),Qi={},n.dateNF&&(Qi.dateNF=n.dateNF),n.type||(n.type=y&&Buffer.isBuffer(t)?"buffer":"base64"),"file"==n.type&&(n.type=y?"buffer":"binary",i=function(t){if("undefined"!=typeof Deno)return Deno.readFileSync(t);if(void 0!==e&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var r=File(t);r.open("r"),r.encoding="binary";var n=r.read();return r.close(),n}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error("Cannot access file "+t)}(t),"undefined"==typeof Uint8Array||y||(n.type="array")),"string"==n.type&&(o=!0,n.type="binary",n.codepage=65001,i=function(e){return e.match(/[^\x00-\x7F]/)?yt(e):e}(t)),"array"==n.type&&"undefined"!=typeof Uint8Array&&t instanceof Uint8Array&&"undefined"!=typeof ArrayBuffer){var s=new ArrayBuffer(3),c=new Uint8Array(s);if(c.foo="bar",!c.foo)return(n=Me(n)).type="array",xs(_(i),n)}switch((a=ws(i,n))[0]){case 208:if(207===a[1]&&17===a[2]&&224===a[3]&&161===a[4]&&177===a[5]&&26===a[6]&&225===a[7])return function(e,t){return Te.find(e,"EncryptedPackage")?ys(e,t):Xo(e,t)}(Te.read(i,n),n);break;case 9:if(a[1]<=8)return Xo(i,n);break;case 60:return Ho(i,n);case 73:if(73===a[1]&&42===a[2]&&0===a[3])throw new Error("TIFF Image File is not a spreadsheet");if(68===a[1])return function(e,t){var r=t||{},n=!!r.WTF;r.WTF=!0;try{var a=ca.to_workbook(e,r);return r.WTF=n,a}catch(a){if(r.WTF=n,!a.message.match(/SYLK bad record ID/)&&n)throw a;return ua.to_workbook(e,t)}}(i,n);break;case 84:if(65===a[1]&&66===a[2]&&76===a[3])return la.to_workbook(i,n);break;case 80:return 75===a[1]&&a[2]<9&&a[3]<9?function(e,t){var r=e,n=t||{};return n.type||(n.type=y&&Buffer.isBuffer(e)?"buffer":"base64"),bs(Ke(r,n),n)}(i,n):Es(t,i,n,o);case 239:return 60===a[3]?Ho(i,n):Es(t,i,n,o);case 255:if(254===a[1])return function(e,t){var r=e;return"base64"==t.type&&(r=b(r)),r=h.utils.decode(1200,r.slice(2),"str"),t.type="binary",Ts(r,t)}(i,n);if(0===a[1]&&2===a[2]&&0===a[3])return ha.to_workbook(i,n);break;case 0:if(0===a[1]){if(a[2]>=2&&0===a[3])return ha.to_workbook(i,n);if(0===a[2]&&(8===a[3]||9===a[3]))return ha.to_workbook(i,n)}break;case 3:case 131:case 139:case 140:return sa.to_workbook(i,n);case 123:if(92===a[1]&&114===a[2]&&116===a[3])return Na.to_workbook(i,n);break;case 10:case 13:case 32:return function(e,t){var r="",n=ws(e,t);switch(t.type){case"base64":r=b(e);break;case"binary":r=e;break;case"buffer":r=e.toString("binary");break;case"array":r=Pe(e);break;default:throw new Error("Unrecognized type "+t.type)}return 239==n[0]&&187==n[1]&&191==n[2]&&(r=bt(r)),t.type="binary",Ts(r,t)}(i,n);case 137:if(80===a[1]&&78===a[2]&&71===a[3])throw new Error("PNG Image File is not a spreadsheet")}return oa.indexOf(a[0])>-1&&a[2]<=12&&a[3]<=31?sa.to_workbook(i,n):Es(t,i,n,o)}function As(e,t,r,n,a,i,o,s){var c=mr(r),l=s.defval,f=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),u=!0,h=1===a?[]:{};if(1!==a)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:r,enumerable:!1})}catch(e){h.__rowNum__=r}else h.__rowNum__=r;if(!o||e[r])for(var d=t.s.c;d<=t.e.c;++d){var p=o?e[r][d]:e[n[d]+c];if(void 0!==p&&void 0!==p.t){var v=p.v;switch(p.t){case"z":if(null==v)break;continue;case"e":v=0==v?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(null!=i[d]){if(null==v)if("e"==p.t&&null===v)h[i[d]]=null;else if(void 0!==l)h[i[d]]=l;else{if(!f||null!==v)continue;h[i[d]]=null}else h[i[d]]=f&&("n"!==p.t||"n"===p.t&&!1!==s.rawNumbers)?v:Ar(p,v,s);null!=v&&(u=!1)}}else{if(void 0===l)continue;null!=i[d]&&(h[i[d]]=l)}}return{row:h,isempty:u}}function _s(e,t,r,n){var a=1;if(!r)for(;a<=65535&&-1!=e.SheetNames.indexOf(r="Sheet"+a);++a,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);a=i&&+i[2]||0;var o=i&&i[1]||r;for(++a;a<=65535&&-1!=e.SheetNames.indexOf(r=o+a);++a);}if(function(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;So.forEach((function(n){if(-1!=e.indexOf(n)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}}))}(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}var ks,Ss=r(354),Cs=r.n(Ss),Os=function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))};!function(e){e.version="1.1";class t{static getFileMD5(e){return new Promise(((t,r)=>{const n=new FileReader;n.readAsBinaryString(e),n.onload=n=>{(new(Cs())).md5(e,((e,n)=>{null!==e?r(e):t(n)}),(e=>{console.log("getFileMD5 progress number:",e)}))}}))}static getBase64(e){return new Promise(((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(n.result),n.onerror=e=>r(e)}))}static getFileChunks(e,t=1048576){let{size:r}=e,n=Math.ceil(r/t),a=new Array;if(r>t)for(let r=0;r<n;r++){let n=r*t,i=(r+1)*t,o=e.slice(n,i);a.push(o)}else a.push(e);return{fileChunks:a,sliceSize:t,chunksLength:a.length}}static uploadFiles(e,r,n=(e=>{}),a=(e=>{}),i=1048576){return Os(this,void 0,void 0,(function*(){if(""==e[0].fileName||""==e[0].fileSize||0==e[0].fileSize)throw new Error("文件异常");for(let a=0;a<e.length;a++){const o=e[a],s=yield t.getFileMD5(o);let{fileChunks:c,sliceSize:l,chunksLength:f}=t.getFileChunks(o,i);for(let e in c){let n=c[Number(e)];const i=yield t.getBase64(n);let u={chunkIndex:Number(e),chunksLength:f,sliceSize:l,chunkSize:n.size,fileSize:o.size,fileName:o.name,data:i.split(";base64,")[1],lastModifiedDate:o.lastModifiedDate,md5:s,index:a,dataType:"base64"};yield r(u)}n(o)}a(e)}))}static selectFile(e={multiple:!0,accept:"*/*"}){return new Promise(((t,r)=>{const n=document.createElement("input");n.type="file",n.accept=e.accept,n.multiple=e.multiple,n.addEventListener("change",(e=>{try{null===n.files?r(null):t(n.files)}catch(e){r(e)}})),n.click()}))}static readLocalExcel(e,t={multiple:!0,accept:"*/*"}){this.selectFile(t).then((t=>{if(null!==t)for(let r=0;r<t.length;r++){const n=t[r];let a=new FileReader;a.readAsArrayBuffer(n),a.onloadend=function(t){return Os(this,void 0,void 0,(function*(){let r=xs(t.target.result,{type:"binary"});e(n,r)}))}}})).catch((e=>{throw e}))}}function r(e,t){let n,a;e>t?(n=e,a=t):(n=t,a=e);let i=n%a;return 0===i?a:r(a,i)}e.File=t,e.fullScreen=(e=null)=>{null===e&&(e=document.documentElement),e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen?e.msRequestFullscreen():e.oRequestFullscreen?e.oRequestFullscreen():e.webkitRequestFullScreen&&e.webkitRequestFullScreen()},e.getVideoScale=e=>Os(this,void 0,void 0,(function*(){const t=document.createElement("video");t.setAttribute("width","10"),t.setAttribute("height","10"),t.setAttribute("style","position: absolute;opacity: 0;z-index: -5;top: 0;"),t.setAttribute("src",e),document.body.appendChild(t);const n=new Promise((function(e,n){t.addEventListener("canplay",(function(t){const n=r(t.target.videoWidth,t.target.videoHeight);e([t.target.videoWidth/n,t.target.videoHeight/n])}))})),a=yield n;return document.body.removeChild(t),a})),e.getVideoBase64=(t,r=-1,n=2e3)=>Os(this,void 0,void 0,(function*(){const a=yield e.getVideoScale(t),i=a[0]+"",o=a[1]+"";return yield new Promise((function(e){let a="",s=document.createElement("video");s.setAttribute("crossOrigin","anonymous"),s.setAttribute("src",t),s.setAttribute("width",i),s.setAttribute("height",o),s.setAttribute("autoplay","autoplay"),document.body.appendChild(s),s.addEventListener("loadeddata",(function(){s.pause(),-1===r&&(r=Math.random()*s.duration),s.currentTime=r,setTimeout((()=>{let t=document.createElement("canvas");t.width=s.width,t.height=s.height,t.getContext("2d").drawImage(s,0,0,s.width,s.height),a=t.toDataURL("image/jpeg"),document.body.removeChild(s),e(a)}),n)}))}))}))}(ks||(ks={}));var Rs=Object.freeze({});function Ns(e){return null==e}function Ds(e){return null!=e}function Is(e){return!0===e}function Ls(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function Ps(e){return null!==e&&"object"==typeof e}var Ms=Object.prototype.toString;function Fs(e){return"[object Object]"===Ms.call(e)}function Bs(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function Us(e){return Ds(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function js(e){return null==e?"":Array.isArray(e)||Fs(e)&&e.toString===Ms?JSON.stringify(e,null,2):String(e)}function Hs(e){var t=parseFloat(e);return isNaN(t)?e:t}function $s(e,t){for(var r=Object.create(null),n=e.split(","),a=0;a<n.length;a++)r[n[a]]=!0;return t?function(e){return r[e.toLowerCase()]}:function(e){return r[e]}}$s("slot,component",!0);var zs=$s("key,ref,slot,slot-scope,is");function Ws(e,t){if(e.length){var r=e.indexOf(t);if(r>-1)return e.splice(r,1)}}var Vs=Object.prototype.hasOwnProperty;function Xs(e,t){return Vs.call(e,t)}function Gs(e){var t=Object.create(null);return function(r){return t[r]||(t[r]=e(r))}}var Ys=/-(\w)/g,qs=Gs((function(e){return e.replace(Ys,(function(e,t){return t?t.toUpperCase():""}))})),Ks=Gs((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),Zs=/\B([A-Z])/g,Js=Gs((function(e){return e.replace(Zs,"-$1").toLowerCase()})),Qs=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function r(r){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,r):e.call(t)}return r._length=e.length,r};function ec(e,t){t=t||0;for(var r=e.length-t,n=new Array(r);r--;)n[r]=e[r+t];return n}function tc(e,t){for(var r in t)e[r]=t[r];return e}function rc(e){for(var t={},r=0;r<e.length;r++)e[r]&&tc(t,e[r]);return t}function nc(e,t,r){}var ac=function(e,t,r){return!1},ic=function(e){return e};function oc(e,t){if(e===t)return!0;var r=Ps(e),n=Ps(t);if(!r||!n)return!r&&!n&&String(e)===String(t);try{var a=Array.isArray(e),i=Array.isArray(t);if(a&&i)return e.length===t.length&&e.every((function(e,r){return oc(e,t[r])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(a||i)return!1;var o=Object.keys(e),s=Object.keys(t);return o.length===s.length&&o.every((function(r){return oc(e[r],t[r])}))}catch(e){return!1}}function sc(e,t){for(var r=0;r<e.length;r++)if(oc(e[r],t))return r;return-1}function cc(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var lc="data-server-rendered",fc=["component","directive","filter"],uc=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],hc={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:ac,isReservedAttr:ac,isUnknownElement:ac,getTagNamespace:nc,parsePlatformTagName:ic,mustUseProp:ac,async:!0,_lifecycleHooks:uc};function dc(e,t,r,n){Object.defineProperty(e,t,{value:r,enumerable:!!n,writable:!0,configurable:!0})}var pc,vc=new RegExp("[^"+/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/.source+".$_\\d]"),mc="__proto__"in{},gc="undefined"!=typeof window,bc="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,yc=bc&&WXEnvironment.platform.toLowerCase(),wc=gc&&window.navigator.userAgent.toLowerCase(),Tc=wc&&/msie|trident/.test(wc),Ec=wc&&wc.indexOf("msie 9.0")>0,xc=wc&&wc.indexOf("edge/")>0,Ac=(wc&&wc.indexOf("android"),wc&&/iphone|ipad|ipod|ios/.test(wc)||"ios"===yc),_c=(wc&&/chrome\/\d+/.test(wc),wc&&/phantomjs/.test(wc),wc&&wc.match(/firefox\/(\d+)/)),kc={}.watch,Sc=!1;if(gc)try{var Cc={};Object.defineProperty(Cc,"passive",{get:function(){Sc=!0}}),window.addEventListener("test-passive",null,Cc)}catch(e){}var Oc=function(){return void 0===pc&&(pc=!gc&&!bc&&void 0!==r.g&&r.g.process&&"server"===r.g.process.env.VUE_ENV),pc},Rc=gc&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Nc(e){return"function"==typeof e&&/native code/.test(e.toString())}var Dc,Ic="undefined"!=typeof Symbol&&Nc(Symbol)&&"undefined"!=typeof Reflect&&Nc(Reflect.ownKeys);Dc="undefined"!=typeof Set&&Nc(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var Lc=nc,Pc=0,Mc=function(){this.id=Pc++,this.subs=[]};Mc.prototype.addSub=function(e){this.subs.push(e)},Mc.prototype.removeSub=function(e){Ws(this.subs,e)},Mc.prototype.depend=function(){Mc.target&&Mc.target.addDep(this)},Mc.prototype.notify=function(){for(var e=this.subs.slice(),t=0,r=e.length;t<r;t++)e[t].update()},Mc.target=null;var Fc=[];function Bc(e){Fc.push(e),Mc.target=e}function Uc(){Fc.pop(),Mc.target=Fc[Fc.length-1]}var jc=function(e,t,r,n,a,i,o,s){this.tag=e,this.data=t,this.children=r,this.text=n,this.elm=a,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},Hc={child:{configurable:!0}};Hc.child.get=function(){return this.componentInstance},Object.defineProperties(jc.prototype,Hc);var $c=function(e){void 0===e&&(e="");var t=new jc;return t.text=e,t.isComment=!0,t};function zc(e){return new jc(void 0,void 0,void 0,String(e))}function Wc(e){var t=new jc(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Vc=Array.prototype,Xc=Object.create(Vc);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=Vc[e];dc(Xc,e,(function(){for(var r=[],n=arguments.length;n--;)r[n]=arguments[n];var a,i=t.apply(this,r),o=this.__ob__;switch(e){case"push":case"unshift":a=r;break;case"splice":a=r.slice(2)}return a&&o.observeArray(a),o.dep.notify(),i}))}));var Gc=Object.getOwnPropertyNames(Xc),Yc=!0;function qc(e){Yc=e}var Kc=function(e){this.value=e,this.dep=new Mc,this.vmCount=0,dc(e,"__ob__",this),Array.isArray(e)?(mc?function(e,t){e.__proto__=t}(e,Xc):function(e,t,r){for(var n=0,a=r.length;n<a;n++){var i=r[n];dc(e,i,t[i])}}(e,Xc,Gc),this.observeArray(e)):this.walk(e)};function Zc(e,t){var r;if(Ps(e)&&!(e instanceof jc))return Xs(e,"__ob__")&&e.__ob__ instanceof Kc?r=e.__ob__:Yc&&!Oc()&&(Array.isArray(e)||Fs(e))&&Object.isExtensible(e)&&!e._isVue&&(r=new Kc(e)),t&&r&&r.vmCount++,r}function Jc(e,t,r,n,a){var i=new Mc,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var s=o&&o.get,c=o&&o.set;s&&!c||2!==arguments.length||(r=e[t]);var l=!a&&Zc(r);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):r;return Mc.target&&(i.depend(),l&&(l.dep.depend(),Array.isArray(t)&&tl(t))),t},set:function(t){var n=s?s.call(e):r;t===n||t!=t&&n!=n||s&&!c||(c?c.call(e,t):r=t,l=!a&&Zc(t),i.notify())}})}}function Qc(e,t,r){if(Array.isArray(e)&&Bs(t))return e.length=Math.max(e.length,t),e.splice(t,1,r),r;if(t in e&&!(t in Object.prototype))return e[t]=r,r;var n=e.__ob__;return e._isVue||n&&n.vmCount?r:n?(Jc(n.value,t,r),n.dep.notify(),r):(e[t]=r,r)}function el(e,t){if(Array.isArray(e)&&Bs(t))e.splice(t,1);else{var r=e.__ob__;e._isVue||r&&r.vmCount||Xs(e,t)&&(delete e[t],r&&r.dep.notify())}}function tl(e){for(var t=void 0,r=0,n=e.length;r<n;r++)(t=e[r])&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&tl(t)}Kc.prototype.walk=function(e){for(var t=Object.keys(e),r=0;r<t.length;r++)Jc(e,t[r])},Kc.prototype.observeArray=function(e){for(var t=0,r=e.length;t<r;t++)Zc(e[t])};var rl=hc.optionMergeStrategies;function nl(e,t){if(!t)return e;for(var r,n,a,i=Ic?Reflect.ownKeys(t):Object.keys(t),o=0;o<i.length;o++)"__ob__"!==(r=i[o])&&(n=e[r],a=t[r],Xs(e,r)?n!==a&&Fs(n)&&Fs(a)&&nl(n,a):Qc(e,r,a));return e}function al(e,t,r){return r?function(){var n="function"==typeof t?t.call(r,r):t,a="function"==typeof e?e.call(r,r):e;return n?nl(n,a):a}:t?e?function(){return nl("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function il(e,t){var r=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return r?function(e){for(var t=[],r=0;r<e.length;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}(r):r}function ol(e,t,r,n){var a=Object.create(e||null);return t?tc(a,t):a}rl.data=function(e,t,r){return r?al(e,t,r):t&&"function"!=typeof t?e:al(e,t)},uc.forEach((function(e){rl[e]=il})),fc.forEach((function(e){rl[e+"s"]=ol})),rl.watch=function(e,t,r,n){if(e===kc&&(e=void 0),t===kc&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var a={};for(var i in tc(a,e),t){var o=a[i],s=t[i];o&&!Array.isArray(o)&&(o=[o]),a[i]=o?o.concat(s):Array.isArray(s)?s:[s]}return a},rl.props=rl.methods=rl.inject=rl.computed=function(e,t,r,n){if(!e)return t;var a=Object.create(null);return tc(a,e),t&&tc(a,t),a},rl.provide=al;var sl=function(e,t){return void 0===t?e:t};function cl(e,t,r){if("function"==typeof t&&(t=t.options),function(e,t){var r=e.props;if(r){var n,a,i={};if(Array.isArray(r))for(n=r.length;n--;)"string"==typeof(a=r[n])&&(i[qs(a)]={type:null});else if(Fs(r))for(var o in r)a=r[o],i[qs(o)]=Fs(a)?a:{type:a};e.props=i}}(t),function(e,t){var r=e.inject;if(r){var n=e.inject={};if(Array.isArray(r))for(var a=0;a<r.length;a++)n[r[a]]={from:r[a]};else if(Fs(r))for(var i in r){var o=r[i];n[i]=Fs(o)?tc({from:i},o):{from:o}}}}(t),function(e){var t=e.directives;if(t)for(var r in t){var n=t[r];"function"==typeof n&&(t[r]={bind:n,update:n})}}(t),!t._base&&(t.extends&&(e=cl(e,t.extends,r)),t.mixins))for(var n=0,a=t.mixins.length;n<a;n++)e=cl(e,t.mixins[n],r);var i,o={};for(i in e)s(i);for(i in t)Xs(e,i)||s(i);function s(n){var a=rl[n]||sl;o[n]=a(e[n],t[n],r,n)}return o}function ll(e,t,r,n){if("string"==typeof r){var a=e[t];if(Xs(a,r))return a[r];var i=qs(r);if(Xs(a,i))return a[i];var o=Ks(i);return Xs(a,o)?a[o]:a[r]||a[i]||a[o]}}function fl(e,t,r,n){var a=t[e],i=!Xs(r,e),o=r[e],s=pl(Boolean,a.type);if(s>-1)if(i&&!Xs(a,"default"))o=!1;else if(""===o||o===Js(e)){var c=pl(String,a.type);(c<0||s<c)&&(o=!0)}if(void 0===o){o=function(e,t,r){if(Xs(t,"default")){var n=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[r]&&void 0!==e._props[r]?e._props[r]:"function"==typeof n&&"Function"!==hl(t.type)?n.call(e):n}}(n,a,e);var l=Yc;qc(!0),Zc(o),qc(l)}return o}var ul=/^\s*function (\w+)/;function hl(e){var t=e&&e.toString().match(ul);return t?t[1]:""}function dl(e,t){return hl(e)===hl(t)}function pl(e,t){if(!Array.isArray(t))return dl(t,e)?0:-1;for(var r=0,n=t.length;r<n;r++)if(dl(t[r],e))return r;return-1}function vl(e,t,r){Bc();try{if(t)for(var n=t;n=n.$parent;){var a=n.$options.errorCaptured;if(a)for(var i=0;i<a.length;i++)try{if(!1===a[i].call(n,e,t,r))return}catch(e){gl(e,n,"errorCaptured hook")}}gl(e,t,r)}finally{Uc()}}function ml(e,t,r,n,a){var i;try{(i=r?e.apply(t,r):e.call(t))&&!i._isVue&&Us(i)&&!i._handled&&(i.catch((function(e){return vl(e,n,a+" (Promise/async)")})),i._handled=!0)}catch(e){vl(e,n,a)}return i}function gl(e,t,r){if(hc.errorHandler)try{return hc.errorHandler.call(null,e,t,r)}catch(t){t!==e&&bl(t)}bl(e)}function bl(e,t,r){if(!gc&&!bc||"undefined"==typeof console)throw e;console.error(e)}var yl,wl=!1,Tl=[],El=!1;function xl(){El=!1;var e=Tl.slice(0);Tl.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&Nc(Promise)){var Al=Promise.resolve();yl=function(){Al.then(xl),Ac&&setTimeout(nc)},wl=!0}else if(Tc||"undefined"==typeof MutationObserver||!Nc(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())yl="undefined"!=typeof setImmediate&&Nc(setImmediate)?function(){setImmediate(xl)}:function(){setTimeout(xl,0)};else{var _l=1,kl=new MutationObserver(xl),Sl=document.createTextNode(String(_l));kl.observe(Sl,{characterData:!0}),yl=function(){_l=(_l+1)%2,Sl.data=String(_l)},wl=!0}function Cl(e,t){var r;if(Tl.push((function(){if(e)try{e.call(t)}catch(e){vl(e,t,"nextTick")}else r&&r(t)})),El||(El=!0,yl()),!e&&"undefined"!=typeof Promise)return new Promise((function(e){r=e}))}var Ol=new Dc;function Rl(e){Nl(e,Ol),Ol.clear()}function Nl(e,t){var r,n,a=Array.isArray(e);if(!(!a&&!Ps(e)||Object.isFrozen(e)||e instanceof jc)){if(e.__ob__){var i=e.__ob__.dep.id;if(t.has(i))return;t.add(i)}if(a)for(r=e.length;r--;)Nl(e[r],t);else for(r=(n=Object.keys(e)).length;r--;)Nl(e[n[r]],t)}}var Dl=Gs((function(e){var t="&"===e.charAt(0),r="~"===(e=t?e.slice(1):e).charAt(0),n="!"===(e=r?e.slice(1):e).charAt(0);return{name:e=n?e.slice(1):e,once:r,capture:n,passive:t}}));function Il(e,t){function r(){var e=arguments,n=r.fns;if(!Array.isArray(n))return ml(n,null,arguments,t,"v-on handler");for(var a=n.slice(),i=0;i<a.length;i++)ml(a[i],null,e,t,"v-on handler")}return r.fns=e,r}function Ll(e,t,r,n,a,i){var o,s,c,l;for(o in e)s=e[o],c=t[o],l=Dl(o),Ns(s)||(Ns(c)?(Ns(s.fns)&&(s=e[o]=Il(s,i)),Is(l.once)&&(s=e[o]=a(l.name,s,l.capture)),r(l.name,s,l.capture,l.passive,l.params)):s!==c&&(c.fns=s,e[o]=c));for(o in t)Ns(e[o])&&n((l=Dl(o)).name,t[o],l.capture)}function Pl(e,t,r){var n;e instanceof jc&&(e=e.data.hook||(e.data.hook={}));var a=e[t];function i(){r.apply(this,arguments),Ws(n.fns,i)}Ns(a)?n=Il([i]):Ds(a.fns)&&Is(a.merged)?(n=a).fns.push(i):n=Il([a,i]),n.merged=!0,e[t]=n}function Ml(e,t,r,n,a){if(Ds(t)){if(Xs(t,r))return e[r]=t[r],a||delete t[r],!0;if(Xs(t,n))return e[r]=t[n],a||delete t[n],!0}return!1}function Fl(e){return Ls(e)?[zc(e)]:Array.isArray(e)?Ul(e):void 0}function Bl(e){return Ds(e)&&Ds(e.text)&&!1===e.isComment}function Ul(e,t){var r,n,a,i,o=[];for(r=0;r<e.length;r++)Ns(n=e[r])||"boolean"==typeof n||(i=o[a=o.length-1],Array.isArray(n)?n.length>0&&(Bl((n=Ul(n,(t||"")+"_"+r))[0])&&Bl(i)&&(o[a]=zc(i.text+n[0].text),n.shift()),o.push.apply(o,n)):Ls(n)?Bl(i)?o[a]=zc(i.text+n):""!==n&&o.push(zc(n)):Bl(n)&&Bl(i)?o[a]=zc(i.text+n.text):(Is(e._isVList)&&Ds(n.tag)&&Ns(n.key)&&Ds(t)&&(n.key="__vlist"+t+"_"+r+"__"),o.push(n)));return o}function jl(e,t){if(e){for(var r=Object.create(null),n=Ic?Reflect.ownKeys(e):Object.keys(e),a=0;a<n.length;a++){var i=n[a];if("__ob__"!==i){for(var o=e[i].from,s=t;s;){if(s._provided&&Xs(s._provided,o)){r[i]=s._provided[o];break}s=s.$parent}if(!s&&"default"in e[i]){var c=e[i].default;r[i]="function"==typeof c?c.call(t):c}}}return r}}function Hl(e,t){if(!e||!e.length)return{};for(var r={},n=0,a=e.length;n<a;n++){var i=e[n],o=i.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,i.context!==t&&i.fnContext!==t||!o||null==o.slot)(r.default||(r.default=[])).push(i);else{var s=o.slot,c=r[s]||(r[s]=[]);"template"===i.tag?c.push.apply(c,i.children||[]):c.push(i)}}for(var l in r)r[l].every($l)&&delete r[l];return r}function $l(e){return e.isComment&&!e.asyncFactory||" "===e.text}function zl(e){return e.isComment&&e.asyncFactory}function Wl(e,t,r){var n,a=Object.keys(t).length>0,i=e?!!e.$stable:!a,o=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(i&&r&&r!==Rs&&o===r.$key&&!a&&!r.$hasNormal)return r;for(var s in n={},e)e[s]&&"$"!==s[0]&&(n[s]=Vl(t,s,e[s]))}else n={};for(var c in t)c in n||(n[c]=Xl(t,c));return e&&Object.isExtensible(e)&&(e._normalized=n),dc(n,"$stable",i),dc(n,"$key",o),dc(n,"$hasNormal",a),n}function Vl(e,t,r){var n=function(){var e=arguments.length?r.apply(null,arguments):r({}),t=(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:Fl(e))&&e[0];return e&&(!t||1===e.length&&t.isComment&&!zl(t))?void 0:e};return r.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0}),n}function Xl(e,t){return function(){return e[t]}}function Gl(e,t){var r,n,a,i,o;if(Array.isArray(e)||"string"==typeof e)for(r=new Array(e.length),n=0,a=e.length;n<a;n++)r[n]=t(e[n],n);else if("number"==typeof e)for(r=new Array(e),n=0;n<e;n++)r[n]=t(n+1,n);else if(Ps(e))if(Ic&&e[Symbol.iterator]){r=[];for(var s=e[Symbol.iterator](),c=s.next();!c.done;)r.push(t(c.value,r.length)),c=s.next()}else for(i=Object.keys(e),r=new Array(i.length),n=0,a=i.length;n<a;n++)o=i[n],r[n]=t(e[o],o,n);return Ds(r)||(r=[]),r._isVList=!0,r}function Yl(e,t,r,n){var a,i=this.$scopedSlots[e];i?(r=r||{},n&&(r=tc(tc({},n),r)),a=i(r)||("function"==typeof t?t():t)):a=this.$slots[e]||("function"==typeof t?t():t);var o=r&&r.slot;return o?this.$createElement("template",{slot:o},a):a}function ql(e){return ll(this.$options,"filters",e)||ic}function Kl(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Zl(e,t,r,n,a){var i=hc.keyCodes[t]||r;return a&&n&&!hc.keyCodes[t]?Kl(a,n):i?Kl(i,e):n?Js(n)!==t:void 0===e}function Jl(e,t,r,n,a){if(r&&Ps(r)){var i;Array.isArray(r)&&(r=rc(r));var o=function(o){if("class"===o||"style"===o||zs(o))i=e;else{var s=e.attrs&&e.attrs.type;i=n||hc.mustUseProp(t,s,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=qs(o),l=Js(o);c in i||l in i||(i[o]=r[o],a&&((e.on||(e.on={}))["update:"+o]=function(e){r[o]=e}))};for(var s in r)o(s)}return e}function Ql(e,t){var r=this._staticTrees||(this._staticTrees=[]),n=r[e];return n&&!t||tf(n=r[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),n}function ef(e,t,r){return tf(e,"__once__"+t+(r?"_"+r:""),!0),e}function tf(e,t,r){if(Array.isArray(e))for(var n=0;n<e.length;n++)e[n]&&"string"!=typeof e[n]&&rf(e[n],t+"_"+n,r);else rf(e,t,r)}function rf(e,t,r){e.isStatic=!0,e.key=t,e.isOnce=r}function nf(e,t){if(t&&Fs(t)){var r=e.on=e.on?tc({},e.on):{};for(var n in t){var a=r[n],i=t[n];r[n]=a?[].concat(a,i):i}}return e}function af(e,t,r,n){t=t||{$stable:!r};for(var a=0;a<e.length;a++){var i=e[a];Array.isArray(i)?af(i,t,r):i&&(i.proxy&&(i.fn.proxy=!0),t[i.key]=i.fn)}return n&&(t.$key=n),t}function of(e,t){for(var r=0;r<t.length;r+=2){var n=t[r];"string"==typeof n&&n&&(e[t[r]]=t[r+1])}return e}function sf(e,t){return"string"==typeof e?t+e:e}function cf(e){e._o=ef,e._n=Hs,e._s=js,e._l=Gl,e._t=Yl,e._q=oc,e._i=sc,e._m=Ql,e._f=ql,e._k=Zl,e._b=Jl,e._v=zc,e._e=$c,e._u=af,e._g=nf,e._d=of,e._p=sf}function lf(e,t,r,n,a){var i,o=this,s=a.options;Xs(n,"_uid")?(i=Object.create(n))._original=n:(i=n,n=n._original);var c=Is(s._compiled),l=!c;this.data=e,this.props=t,this.children=r,this.parent=n,this.listeners=e.on||Rs,this.injections=jl(s.inject,n),this.slots=function(){return o.$slots||Wl(e.scopedSlots,o.$slots=Hl(r,n)),o.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Wl(e.scopedSlots,this.slots())}}),c&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=Wl(e.scopedSlots,this.$slots)),s._scopeId?this._c=function(e,t,r,a){var o=mf(i,e,t,r,a,l);return o&&!Array.isArray(o)&&(o.fnScopeId=s._scopeId,o.fnContext=n),o}:this._c=function(e,t,r,n){return mf(i,e,t,r,n,l)}}function ff(e,t,r,n,a){var i=Wc(e);return i.fnContext=r,i.fnOptions=n,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function uf(e,t){for(var r in t)e[qs(r)]=t[r]}cf(lf.prototype);var hf={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var r=e;hf.prepatch(r,r)}else{var n=e.componentInstance=function(e,t){var r={_isComponent:!0,_parentVnode:e,parent:t},n=e.data.inlineTemplate;return Ds(n)&&(r.render=n.render,r.staticRenderFns=n.staticRenderFns),new e.componentOptions.Ctor(r)}(e,kf);n.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var r=t.componentOptions;!function(e,t,r,n,a){var i=n.data.scopedSlots,o=e.$scopedSlots,s=!!(i&&!i.$stable||o!==Rs&&!o.$stable||i&&e.$scopedSlots.$key!==i.$key||!i&&e.$scopedSlots.$key),c=!!(a||e.$options._renderChildren||s);if(e.$options._parentVnode=n,e.$vnode=n,e._vnode&&(e._vnode.parent=n),e.$options._renderChildren=a,e.$attrs=n.data.attrs||Rs,e.$listeners=r||Rs,t&&e.$options.props){qc(!1);for(var l=e._props,f=e.$options._propKeys||[],u=0;u<f.length;u++){var h=f[u],d=e.$options.props;l[h]=fl(h,d,t,e)}qc(!0),e.$options.propsData=t}r=r||Rs;var p=e.$options._parentListeners;e.$options._parentListeners=r,_f(e,r,p),c&&(e.$slots=Hl(a,n.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,r.propsData,r.listeners,t,r.children)},insert:function(e){var t,r=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,Nf(n,"mounted")),e.data.keepAlive&&(r._isMounted?((t=n)._inactive=!1,If.push(t)):Of(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Rf(t,!0):t.$destroy())}},df=Object.keys(hf);function pf(e,t,r,n,a){if(!Ns(e)){var i=r.$options._base;if(Ps(e)&&(e=i.extend(e)),"function"==typeof e){var o;if(Ns(e.cid)&&(e=function(e,t){if(Is(e.error)&&Ds(e.errorComp))return e.errorComp;if(Ds(e.resolved))return e.resolved;var r=yf;if(r&&Ds(e.owners)&&-1===e.owners.indexOf(r)&&e.owners.push(r),Is(e.loading)&&Ds(e.loadingComp))return e.loadingComp;if(r&&!Ds(e.owners)){var n=e.owners=[r],a=!0,i=null,o=null;r.$on("hook:destroyed",(function(){return Ws(n,r)}));var s=function(e){for(var t=0,r=n.length;t<r;t++)n[t].$forceUpdate();e&&(n.length=0,null!==i&&(clearTimeout(i),i=null),null!==o&&(clearTimeout(o),o=null))},c=cc((function(r){e.resolved=wf(r,t),a?n.length=0:s(!0)})),l=cc((function(t){Ds(e.errorComp)&&(e.error=!0,s(!0))})),f=e(c,l);return Ps(f)&&(Us(f)?Ns(e.resolved)&&f.then(c,l):Us(f.component)&&(f.component.then(c,l),Ds(f.error)&&(e.errorComp=wf(f.error,t)),Ds(f.loading)&&(e.loadingComp=wf(f.loading,t),0===f.delay?e.loading=!0:i=setTimeout((function(){i=null,Ns(e.resolved)&&Ns(e.error)&&(e.loading=!0,s(!1))}),f.delay||200)),Ds(f.timeout)&&(o=setTimeout((function(){o=null,Ns(e.resolved)&&l(null)}),f.timeout)))),a=!1,e.loading?e.loadingComp:e.resolved}}(o=e,i),void 0===e))return function(e,t,r,n,a){var i=$c();return i.asyncFactory=e,i.asyncMeta={data:t,context:r,children:n,tag:a},i}(o,t,r,n,a);t=t||{},Jf(e),Ds(t.model)&&function(e,t){var r=e.model&&e.model.prop||"value",n=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[r]=t.model.value;var a=t.on||(t.on={}),i=a[n],o=t.model.callback;Ds(i)?(Array.isArray(i)?-1===i.indexOf(o):i!==o)&&(a[n]=[o].concat(i)):a[n]=o}(e.options,t);var s=function(e,t,r){var n=t.options.props;if(!Ns(n)){var a={},i=e.attrs,o=e.props;if(Ds(i)||Ds(o))for(var s in n){var c=Js(s);Ml(a,o,s,c,!0)||Ml(a,i,s,c,!1)}return a}}(t,e);if(Is(e.options.functional))return function(e,t,r,n,a){var i=e.options,o={},s=i.props;if(Ds(s))for(var c in s)o[c]=fl(c,s,t||Rs);else Ds(r.attrs)&&uf(o,r.attrs),Ds(r.props)&&uf(o,r.props);var l=new lf(r,o,a,n,e),f=i.render.call(null,l._c,l);if(f instanceof jc)return ff(f,r,l.parent,i);if(Array.isArray(f)){for(var u=Fl(f)||[],h=new Array(u.length),d=0;d<u.length;d++)h[d]=ff(u[d],r,l.parent,i);return h}}(e,s,t,r,n);var c=t.on;if(t.on=t.nativeOn,Is(e.options.abstract)){var l=t.slot;t={},l&&(t.slot=l)}!function(e){for(var t=e.hook||(e.hook={}),r=0;r<df.length;r++){var n=df[r],a=t[n],i=hf[n];a===i||a&&a._merged||(t[n]=a?vf(i,a):i)}}(t);var f=e.options.name||a;return new jc("vue-component-"+e.cid+(f?"-"+f:""),t,void 0,void 0,void 0,r,{Ctor:e,propsData:s,listeners:c,tag:a,children:n},o)}}}function vf(e,t){var r=function(r,n){e(r,n),t(r,n)};return r._merged=!0,r}function mf(e,t,r,n,a,i){return(Array.isArray(r)||Ls(r))&&(a=n,n=r,r=void 0),Is(i)&&(a=2),function(e,t,r,n,a){if(Ds(r)&&Ds(r.__ob__))return $c();if(Ds(r)&&Ds(r.is)&&(t=r.is),!t)return $c();var i,o,s;(Array.isArray(n)&&"function"==typeof n[0]&&((r=r||{}).scopedSlots={default:n[0]},n.length=0),2===a?n=Fl(n):1===a&&(n=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(n)),"string"==typeof t)?(o=e.$vnode&&e.$vnode.ns||hc.getTagNamespace(t),i=hc.isReservedTag(t)?new jc(hc.parsePlatformTagName(t),r,n,void 0,void 0,e):r&&r.pre||!Ds(s=ll(e.$options,"components",t))?new jc(t,r,n,void 0,void 0,e):pf(s,r,e,n,t)):i=pf(t,r,e,n);return Array.isArray(i)?i:Ds(i)?(Ds(o)&&gf(i,o),Ds(r)&&function(e){Ps(e.style)&&Rl(e.style),Ps(e.class)&&Rl(e.class)}(r),i):$c()}(e,t,r,n,a)}function gf(e,t,r){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,r=!0),Ds(e.children))for(var n=0,a=e.children.length;n<a;n++){var i=e.children[n];Ds(i.tag)&&(Ns(i.ns)||Is(r)&&"svg"!==i.tag)&&gf(i,t,r)}}var bf,yf=null;function wf(e,t){return(e.__esModule||Ic&&"Module"===e[Symbol.toStringTag])&&(e=e.default),Ps(e)?t.extend(e):e}function Tf(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var r=e[t];if(Ds(r)&&(Ds(r.componentOptions)||zl(r)))return r}}function Ef(e,t){bf.$on(e,t)}function xf(e,t){bf.$off(e,t)}function Af(e,t){var r=bf;return function n(){var a=t.apply(null,arguments);null!==a&&r.$off(e,n)}}function _f(e,t,r){bf=e,Ll(t,r||{},Ef,xf,Af,e),bf=void 0}var kf=null;function Sf(e){var t=kf;return kf=e,function(){kf=t}}function Cf(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Of(e,t){if(t){if(e._directInactive=!1,Cf(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var r=0;r<e.$children.length;r++)Of(e.$children[r]);Nf(e,"activated")}}function Rf(e,t){if(!(t&&(e._directInactive=!0,Cf(e))||e._inactive)){e._inactive=!0;for(var r=0;r<e.$children.length;r++)Rf(e.$children[r]);Nf(e,"deactivated")}}function Nf(e,t){Bc();var r=e.$options[t],n=t+" hook";if(r)for(var a=0,i=r.length;a<i;a++)ml(r[a],e,null,e,n);e._hasHookEvent&&e.$emit("hook:"+t),Uc()}var Df=[],If=[],Lf={},Pf=!1,Mf=!1,Ff=0,Bf=0,Uf=Date.now;if(gc&&!Tc){var jf=window.performance;jf&&"function"==typeof jf.now&&Uf()>document.createEvent("Event").timeStamp&&(Uf=function(){return jf.now()})}function Hf(){var e,t;for(Bf=Uf(),Mf=!0,Df.sort((function(e,t){return e.id-t.id})),Ff=0;Ff<Df.length;Ff++)(e=Df[Ff]).before&&e.before(),t=e.id,Lf[t]=null,e.run();var r=If.slice(),n=Df.slice();Ff=Df.length=If.length=0,Lf={},Pf=Mf=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Of(e[t],!0)}(r),function(e){for(var t=e.length;t--;){var r=e[t],n=r.vm;n._watcher===r&&n._isMounted&&!n._isDestroyed&&Nf(n,"updated")}}(n),Rc&&hc.devtools&&Rc.emit("flush")}var $f=0,zf=function(e,t,r,n,a){this.vm=e,a&&(e._watcher=this),e._watchers.push(this),n?(this.deep=!!n.deep,this.user=!!n.user,this.lazy=!!n.lazy,this.sync=!!n.sync,this.before=n.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=r,this.id=++$f,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new Dc,this.newDepIds=new Dc,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!vc.test(e)){var t=e.split(".");return function(e){for(var r=0;r<t.length;r++){if(!e)return;e=e[t[r]]}return e}}}(t),this.getter||(this.getter=nc)),this.value=this.lazy?void 0:this.get()};zf.prototype.get=function(){var e;Bc(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;vl(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Rl(e),Uc(),this.cleanupDeps()}return e},zf.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},zf.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},zf.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==Lf[t]){if(Lf[t]=!0,Mf){for(var r=Df.length-1;r>Ff&&Df[r].id>e.id;)r--;Df.splice(r+1,0,e)}else Df.push(e);Pf||(Pf=!0,Cl(Hf))}}(this)},zf.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||Ps(e)||this.deep){var t=this.value;if(this.value=e,this.user){var r='callback for watcher "'+this.expression+'"';ml(this.cb,this.vm,[e,t],this.vm,r)}else this.cb.call(this.vm,e,t)}}},zf.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},zf.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},zf.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||Ws(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Wf={enumerable:!0,configurable:!0,get:nc,set:nc};function Vf(e,t,r){Wf.get=function(){return this[t][r]},Wf.set=function(e){this[t][r]=e},Object.defineProperty(e,r,Wf)}var Xf={lazy:!0};function Gf(e,t,r){var n=!Oc();"function"==typeof r?(Wf.get=n?Yf(t):qf(r),Wf.set=nc):(Wf.get=r.get?n&&!1!==r.cache?Yf(t):qf(r.get):nc,Wf.set=r.set||nc),Object.defineProperty(e,t,Wf)}function Yf(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),Mc.target&&t.depend(),t.value}}function qf(e){return function(){return e.call(this,this)}}function Kf(e,t,r,n){return Fs(r)&&(n=r,r=r.handler),"string"==typeof r&&(r=e[r]),e.$watch(t,r,n)}var Zf=0;function Jf(e){var t=e.options;if(e.super){var r=Jf(e.super);if(r!==e.superOptions){e.superOptions=r;var n=function(e){var t,r=e.options,n=e.sealedOptions;for(var a in r)r[a]!==n[a]&&(t||(t={}),t[a]=r[a]);return t}(e);n&&tc(e.extendOptions,n),(t=e.options=cl(r,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function Qf(e){this._init(e)}function eu(e){return e&&(e.Ctor.options.name||e.tag)}function tu(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(r=e,!("[object RegExp]"!==Ms.call(r))&&e.test(t));var r}function ru(e,t){var r=e.cache,n=e.keys,a=e._vnode;for(var i in r){var o=r[i];if(o){var s=o.name;s&&!t(s)&&nu(r,i,n,a)}}}function nu(e,t,r,n){var a=e[t];!a||n&&a.tag===n.tag||a.componentInstance.$destroy(),e[t]=null,Ws(r,t)}Qf.prototype._init=function(e){var t=this;t._uid=Zf++,t._isVue=!0,e&&e._isComponent?function(e,t){var r=e.$options=Object.create(e.constructor.options),n=t._parentVnode;r.parent=t.parent,r._parentVnode=n;var a=n.componentOptions;r.propsData=a.propsData,r._parentListeners=a.listeners,r._renderChildren=a.children,r._componentTag=a.tag,t.render&&(r.render=t.render,r.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=cl(Jf(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,r=t.parent;if(r&&!t.abstract){for(;r.$options.abstract&&r.$parent;)r=r.$parent;r.$children.push(e)}e.$parent=r,e.$root=r?r.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&_f(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,n=r&&r.context;e.$slots=Hl(t._renderChildren,n),e.$scopedSlots=Rs,e._c=function(t,r,n,a){return mf(e,t,r,n,a,!1)},e.$createElement=function(t,r,n,a){return mf(e,t,r,n,a,!0)};var a=r&&r.data;Jc(e,"$attrs",a&&a.attrs||Rs,null,!0),Jc(e,"$listeners",t._parentListeners||Rs,null,!0)}(t),Nf(t,"beforeCreate"),function(e){var t=jl(e.$options.inject,e);t&&(qc(!1),Object.keys(t).forEach((function(r){Jc(e,r,t[r])})),qc(!0))}(t),function(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var r=e.$options.propsData||{},n=e._props={},a=e.$options._propKeys=[];e.$parent&&qc(!1);var i=function(i){a.push(i);var o=fl(i,t,r,e);Jc(n,i,o),i in e||Vf(e,"_props",i)};for(var o in t)i(o);qc(!0)}(e,t.props),t.methods&&function(e,t){for(var r in e.$options.props,t)e[r]="function"!=typeof t[r]?nc:Qs(t[r],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;Fs(t=e._data="function"==typeof t?function(e,t){Bc();try{return e.call(t,t)}catch(e){return vl(e,t,"data()"),{}}finally{Uc()}}(t,e):t||{})||(t={});for(var r,n=Object.keys(t),a=e.$options.props,i=(e.$options.methods,n.length);i--;){var o=n[i];a&&Xs(a,o)||(r=void 0,36===(r=(o+"").charCodeAt(0))||95===r)||Vf(e,"_data",o)}Zc(t,!0)}(e):Zc(e._data={},!0),t.computed&&function(e,t){var r=e._computedWatchers=Object.create(null),n=Oc();for(var a in t){var i=t[a],o="function"==typeof i?i:i.get;n||(r[a]=new zf(e,o||nc,nc,Xf)),a in e||Gf(e,a,i)}}(e,t.computed),t.watch&&t.watch!==kc&&function(e,t){for(var r in t){var n=t[r];if(Array.isArray(n))for(var a=0;a<n.length;a++)Kf(e,r,n[a]);else Kf(e,r,n)}}(e,t.watch)}(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Nf(t,"created"),t.$options.el&&t.$mount(t.$options.el)},function(e){Object.defineProperty(e.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(e.prototype,"$props",{get:function(){return this._props}}),e.prototype.$set=Qc,e.prototype.$delete=el,e.prototype.$watch=function(e,t,r){var n=this;if(Fs(t))return Kf(n,e,t,r);(r=r||{}).user=!0;var a=new zf(n,e,t,r);if(r.immediate){var i='callback for immediate watcher "'+a.expression+'"';Bc(),ml(t,n,[a.value],n,i),Uc()}return function(){a.teardown()}}}(Qf),function(e){var t=/^hook:/;e.prototype.$on=function(e,r){var n=this;if(Array.isArray(e))for(var a=0,i=e.length;a<i;a++)n.$on(e[a],r);else(n._events[e]||(n._events[e]=[])).push(r),t.test(e)&&(n._hasHookEvent=!0);return n},e.prototype.$once=function(e,t){var r=this;function n(){r.$off(e,n),t.apply(r,arguments)}return n.fn=t,r.$on(e,n),r},e.prototype.$off=function(e,t){var r=this;if(!arguments.length)return r._events=Object.create(null),r;if(Array.isArray(e)){for(var n=0,a=e.length;n<a;n++)r.$off(e[n],t);return r}var i,o=r._events[e];if(!o)return r;if(!t)return r._events[e]=null,r;for(var s=o.length;s--;)if((i=o[s])===t||i.fn===t){o.splice(s,1);break}return r},e.prototype.$emit=function(e){var t=this,r=t._events[e];if(r){r=r.length>1?ec(r):r;for(var n=ec(arguments,1),a='event handler for "'+e+'"',i=0,o=r.length;i<o;i++)ml(r[i],t,n,t,a)}return t}}(Qf),function(e){e.prototype._update=function(e,t){var r=this,n=r.$el,a=r._vnode,i=Sf(r);r._vnode=e,r.$el=a?r.__patch__(a,e):r.__patch__(r.$el,e,t,!1),i(),n&&(n.__vue__=null),r.$el&&(r.$el.__vue__=r),r.$vnode&&r.$parent&&r.$vnode===r.$parent._vnode&&(r.$parent.$el=r.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Nf(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||Ws(t.$children,e),e._watcher&&e._watcher.teardown();for(var r=e._watchers.length;r--;)e._watchers[r].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Nf(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(Qf),function(e){cf(e.prototype),e.prototype.$nextTick=function(e){return Cl(e,this)},e.prototype._render=function(){var e,t=this,r=t.$options,n=r.render,a=r._parentVnode;a&&(t.$scopedSlots=Wl(a.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=a;try{yf=t,e=n.call(t._renderProxy,t.$createElement)}catch(r){vl(r,t,"render"),e=t._vnode}finally{yf=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof jc||(e=$c()),e.parent=a,e}}(Qf);var au=[String,RegExp,Array],iu={name:"keep-alive",abstract:!0,props:{include:au,exclude:au,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,r=e.keys,n=e.vnodeToCache,a=e.keyToCache;if(n){var i=n.tag,o=n.componentInstance,s=n.componentOptions;t[a]={name:eu(s),tag:i,componentInstance:o},r.push(a),this.max&&r.length>parseInt(this.max)&&nu(t,r[0],r,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)nu(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){ru(e,(function(e){return tu(t,e)}))})),this.$watch("exclude",(function(t){ru(e,(function(e){return!tu(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Tf(e),r=t&&t.componentOptions;if(r){var n=eu(r),a=this.include,i=this.exclude;if(a&&(!n||!tu(a,n))||i&&n&&tu(i,n))return t;var o=this.cache,s=this.keys,c=null==t.key?r.Ctor.cid+(r.tag?"::"+r.tag:""):t.key;o[c]?(t.componentInstance=o[c].componentInstance,Ws(s,c),s.push(c)):(this.vnodeToCache=t,this.keyToCache=c),t.data.keepAlive=!0}return t||e&&e[0]}},ou={KeepAlive:iu};!function(e){var t={get:function(){return hc}};Object.defineProperty(e,"config",t),e.util={warn:Lc,extend:tc,mergeOptions:cl,defineReactive:Jc},e.set=Qc,e.delete=el,e.nextTick=Cl,e.observable=function(e){return Zc(e),e},e.options=Object.create(null),fc.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,tc(e.options.components,ou),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var r=ec(arguments,1);return r.unshift(this),"function"==typeof e.install?e.install.apply(e,r):"function"==typeof e&&e.apply(null,r),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=cl(this.options,e),this}}(e),function(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var r=this,n=r.cid,a=e._Ctor||(e._Ctor={});if(a[n])return a[n];var i=e.name||r.options.name,o=function(e){this._init(e)};return(o.prototype=Object.create(r.prototype)).constructor=o,o.cid=t++,o.options=cl(r.options,e),o.super=r,o.options.props&&function(e){var t=e.options.props;for(var r in t)Vf(e.prototype,"_props",r)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var r in t)Gf(e.prototype,r,t[r])}(o),o.extend=r.extend,o.mixin=r.mixin,o.use=r.use,fc.forEach((function(e){o[e]=r[e]})),i&&(o.options.components[i]=o),o.superOptions=r.options,o.extendOptions=e,o.sealedOptions=tc({},o.options),a[n]=o,o}}(e),function(e){fc.forEach((function(t){e[t]=function(e,r){return r?("component"===t&&Fs(r)&&(r.name=r.name||e,r=this.options._base.extend(r)),"directive"===t&&"function"==typeof r&&(r={bind:r,update:r}),this.options[t+"s"][e]=r,r):this.options[t+"s"][e]}}))}(e)}(Qf),Object.defineProperty(Qf.prototype,"$isServer",{get:Oc}),Object.defineProperty(Qf.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Qf,"FunctionalRenderContext",{value:lf}),Qf.version="2.6.14";var su=$s("style,class"),cu=$s("input,textarea,option,select,progress"),lu=$s("contenteditable,draggable,spellcheck"),fu=$s("events,caret,typing,plaintext-only"),uu=$s("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),hu="http://www.w3.org/1999/xlink",du=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},pu=function(e){return du(e)?e.slice(6,e.length):""},vu=function(e){return null==e||!1===e};function mu(e,t){return{staticClass:gu(e.staticClass,t.staticClass),class:Ds(e.class)?[e.class,t.class]:t.class}}function gu(e,t){return e?t?e+" "+t:e:t||""}function bu(e){return Array.isArray(e)?function(e){for(var t,r="",n=0,a=e.length;n<a;n++)Ds(t=bu(e[n]))&&""!==t&&(r&&(r+=" "),r+=t);return r}(e):Ps(e)?function(e){var t="";for(var r in e)e[r]&&(t&&(t+=" "),t+=r);return t}(e):"string"==typeof e?e:""}var yu={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},wu=$s("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Tu=$s("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Eu=function(e){return wu(e)||Tu(e)},xu=Object.create(null),Au=$s("text,number,password,search,email,tel,url"),_u=Object.freeze({createElement:function(e,t){var r=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&r.setAttribute("multiple","multiple"),r},createElementNS:function(e,t){return document.createElementNS(yu[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,r){e.insertBefore(t,r)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),ku={create:function(e,t){Su(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Su(e,!0),Su(t))},destroy:function(e){Su(e,!0)}};function Su(e,t){var r=e.data.ref;if(Ds(r)){var n=e.context,a=e.componentInstance||e.elm,i=n.$refs;t?Array.isArray(i[r])?Ws(i[r],a):i[r]===a&&(i[r]=void 0):e.data.refInFor?Array.isArray(i[r])?i[r].indexOf(a)<0&&i[r].push(a):i[r]=[a]:i[r]=a}}var Cu=new jc("",{},[]),Ou=["create","activate","update","remove","destroy"];function Ru(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&Ds(e.data)===Ds(t.data)&&function(e,t){if("input"!==e.tag)return!0;var r,n=Ds(r=e.data)&&Ds(r=r.attrs)&&r.type,a=Ds(r=t.data)&&Ds(r=r.attrs)&&r.type;return n===a||Au(n)&&Au(a)}(e,t)||Is(e.isAsyncPlaceholder)&&Ns(t.asyncFactory.error))}function Nu(e,t,r){var n,a,i={};for(n=t;n<=r;++n)Ds(a=e[n].key)&&(i[a]=n);return i}var Du={create:Iu,update:Iu,destroy:function(e){Iu(e,Cu)}};function Iu(e,t){(e.data.directives||t.data.directives)&&function(e,t){var r,n,a,i=e===Cu,o=t===Cu,s=Pu(e.data.directives,e.context),c=Pu(t.data.directives,t.context),l=[],f=[];for(r in c)n=s[r],a=c[r],n?(a.oldValue=n.value,a.oldArg=n.arg,Fu(a,"update",t,e),a.def&&a.def.componentUpdated&&f.push(a)):(Fu(a,"bind",t,e),a.def&&a.def.inserted&&l.push(a));if(l.length){var u=function(){for(var r=0;r<l.length;r++)Fu(l[r],"inserted",t,e)};i?Pl(t,"insert",u):u()}if(f.length&&Pl(t,"postpatch",(function(){for(var r=0;r<f.length;r++)Fu(f[r],"componentUpdated",t,e)})),!i)for(r in s)c[r]||Fu(s[r],"unbind",e,e,o)}(e,t)}var Lu=Object.create(null);function Pu(e,t){var r,n,a=Object.create(null);if(!e)return a;for(r=0;r<e.length;r++)(n=e[r]).modifiers||(n.modifiers=Lu),a[Mu(n)]=n,n.def=ll(t.$options,"directives",n.name);return a}function Mu(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Fu(e,t,r,n,a){var i=e.def&&e.def[t];if(i)try{i(r.elm,e,r,n,a)}catch(n){vl(n,r.context,"directive "+e.name+" "+t+" hook")}}var Bu=[ku,Du];function Uu(e,t){var r=t.componentOptions;if(!(Ds(r)&&!1===r.Ctor.options.inheritAttrs||Ns(e.data.attrs)&&Ns(t.data.attrs))){var n,a,i=t.elm,o=e.data.attrs||{},s=t.data.attrs||{};for(n in Ds(s.__ob__)&&(s=t.data.attrs=tc({},s)),s)a=s[n],o[n]!==a&&ju(i,n,a,t.data.pre);for(n in(Tc||xc)&&s.value!==o.value&&ju(i,"value",s.value),o)Ns(s[n])&&(du(n)?i.removeAttributeNS(hu,pu(n)):lu(n)||i.removeAttribute(n))}}function ju(e,t,r,n){n||e.tagName.indexOf("-")>-1?Hu(e,t,r):uu(t)?vu(r)?e.removeAttribute(t):(r="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,r)):lu(t)?e.setAttribute(t,function(e,t){return vu(t)||"false"===t?"false":"contenteditable"===e&&fu(t)?t:"true"}(t,r)):du(t)?vu(r)?e.removeAttributeNS(hu,pu(t)):e.setAttributeNS(hu,t,r):Hu(e,t,r)}function Hu(e,t,r){if(vu(r))e.removeAttribute(t);else{if(Tc&&!Ec&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==r&&!e.__ieph){var n=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",n)};e.addEventListener("input",n),e.__ieph=!0}e.setAttribute(t,r)}}var $u={create:Uu,update:Uu};function zu(e,t){var r=t.elm,n=t.data,a=e.data;if(!(Ns(n.staticClass)&&Ns(n.class)&&(Ns(a)||Ns(a.staticClass)&&Ns(a.class)))){var i=function(e){for(var t=e.data,r=e,n=e;Ds(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(t=mu(n.data,t));for(;Ds(r=r.parent);)r&&r.data&&(t=mu(t,r.data));return a=t.staticClass,i=t.class,Ds(a)||Ds(i)?gu(a,bu(i)):"";var a,i}(t),o=r._transitionClasses;Ds(o)&&(i=gu(i,bu(o))),i!==r._prevClass&&(r.setAttribute("class",i),r._prevClass=i)}}var Wu,Vu={create:zu,update:zu};function Xu(e,t,r){var n=Wu;return function a(){var i=t.apply(null,arguments);null!==i&&qu(e,a,r,n)}}var Gu=wl&&!(_c&&Number(_c[1])<=53);function Yu(e,t,r,n){if(Gu){var a=Bf,i=t;t=i._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=a||e.timeStamp<=0||e.target.ownerDocument!==document)return i.apply(this,arguments)}}Wu.addEventListener(e,t,Sc?{capture:r,passive:n}:r)}function qu(e,t,r,n){(n||Wu).removeEventListener(e,t._wrapper||t,r)}function Ku(e,t){if(!Ns(e.data.on)||!Ns(t.data.on)){var r=t.data.on||{},n=e.data.on||{};Wu=t.elm,function(e){if(Ds(e.__r)){var t=Tc?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}Ds(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(r),Ll(r,n,Yu,qu,Xu,t.context),Wu=void 0}}var Zu,Ju={create:Ku,update:Ku};function Qu(e,t){if(!Ns(e.data.domProps)||!Ns(t.data.domProps)){var r,n,a=t.elm,i=e.data.domProps||{},o=t.data.domProps||{};for(r in Ds(o.__ob__)&&(o=t.data.domProps=tc({},o)),i)r in o||(a[r]="");for(r in o){if(n=o[r],"textContent"===r||"innerHTML"===r){if(t.children&&(t.children.length=0),n===i[r])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===r&&"PROGRESS"!==a.tagName){a._value=n;var s=Ns(n)?"":String(n);eh(a,s)&&(a.value=s)}else if("innerHTML"===r&&Tu(a.tagName)&&Ns(a.innerHTML)){(Zu=Zu||document.createElement("div")).innerHTML="<svg>"+n+"</svg>";for(var c=Zu.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;c.firstChild;)a.appendChild(c.firstChild)}else if(n!==i[r])try{a[r]=n}catch(e){}}}}function eh(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var r=!0;try{r=document.activeElement!==e}catch(e){}return r&&e.value!==t}(e,t)||function(e,t){var r=e.value,n=e._vModifiers;if(Ds(n)){if(n.number)return Hs(r)!==Hs(t);if(n.trim)return r.trim()!==t.trim()}return r!==t}(e,t))}var th={create:Qu,update:Qu},rh=Gs((function(e){var t={},r=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function nh(e){var t=ah(e.style);return e.staticStyle?tc(e.staticStyle,t):t}function ah(e){return Array.isArray(e)?rc(e):"string"==typeof e?rh(e):e}var ih,oh=/^--/,sh=/\s*!important$/,ch=function(e,t,r){if(oh.test(t))e.style.setProperty(t,r);else if(sh.test(r))e.style.setProperty(Js(t),r.replace(sh,""),"important");else{var n=fh(t);if(Array.isArray(r))for(var a=0,i=r.length;a<i;a++)e.style[n]=r[a];else e.style[n]=r}},lh=["Webkit","Moz","ms"],fh=Gs((function(e){if(ih=ih||document.createElement("div").style,"filter"!==(e=qs(e))&&e in ih)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<lh.length;r++){var n=lh[r]+t;if(n in ih)return n}}));function uh(e,t){var r=t.data,n=e.data;if(!(Ns(r.staticStyle)&&Ns(r.style)&&Ns(n.staticStyle)&&Ns(n.style))){var a,i,o=t.elm,s=n.staticStyle,c=n.normalizedStyle||n.style||{},l=s||c,f=ah(t.data.style)||{};t.data.normalizedStyle=Ds(f.__ob__)?tc({},f):f;var u=function(e,t){for(var r,n={},a=e;a.componentInstance;)(a=a.componentInstance._vnode)&&a.data&&(r=nh(a.data))&&tc(n,r);(r=nh(e.data))&&tc(n,r);for(var i=e;i=i.parent;)i.data&&(r=nh(i.data))&&tc(n,r);return n}(t);for(i in l)Ns(u[i])&&ch(o,i,"");for(i in u)(a=u[i])!==l[i]&&ch(o,i,null==a?"":a)}}var hh={create:uh,update:uh},dh=/\s+/;function ph(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(dh).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var r=" "+(e.getAttribute("class")||"")+" ";r.indexOf(" "+t+" ")<0&&e.setAttribute("class",(r+t).trim())}}function vh(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(dh).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var r=" "+(e.getAttribute("class")||"")+" ",n=" "+t+" ";r.indexOf(n)>=0;)r=r.replace(n," ");(r=r.trim())?e.setAttribute("class",r):e.removeAttribute("class")}}function mh(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&tc(t,gh(e.name||"v")),tc(t,e),t}return"string"==typeof e?gh(e):void 0}}var gh=Gs((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),bh=gc&&!Ec,yh="transition",wh="animation",Th="transition",Eh="transitionend",xh="animation",Ah="animationend";bh&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Th="WebkitTransition",Eh="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(xh="WebkitAnimation",Ah="webkitAnimationEnd"));var _h=gc?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function kh(e){_h((function(){_h(e)}))}function Sh(e,t){var r=e._transitionClasses||(e._transitionClasses=[]);r.indexOf(t)<0&&(r.push(t),ph(e,t))}function Ch(e,t){e._transitionClasses&&Ws(e._transitionClasses,t),vh(e,t)}function Oh(e,t,r){var n=Nh(e,t),a=n.type,i=n.timeout,o=n.propCount;if(!a)return r();var s=a===yh?Eh:Ah,c=0,l=function(){e.removeEventListener(s,f),r()},f=function(t){t.target===e&&++c>=o&&l()};setTimeout((function(){c<o&&l()}),i+1),e.addEventListener(s,f)}var Rh=/\b(transform|all)(,|$)/;function Nh(e,t){var r,n=window.getComputedStyle(e),a=(n[Th+"Delay"]||"").split(", "),i=(n[Th+"Duration"]||"").split(", "),o=Dh(a,i),s=(n[xh+"Delay"]||"").split(", "),c=(n[xh+"Duration"]||"").split(", "),l=Dh(s,c),f=0,u=0;return t===yh?o>0&&(r=yh,f=o,u=i.length):t===wh?l>0&&(r=wh,f=l,u=c.length):u=(r=(f=Math.max(o,l))>0?o>l?yh:wh:null)?r===yh?i.length:c.length:0,{type:r,timeout:f,propCount:u,hasTransform:r===yh&&Rh.test(n[Th+"Property"])}}function Dh(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,r){return Ih(t)+Ih(e[r])})))}function Ih(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Lh(e,t){var r=e.elm;Ds(r._leaveCb)&&(r._leaveCb.cancelled=!0,r._leaveCb());var n=mh(e.data.transition);if(!Ns(n)&&!Ds(r._enterCb)&&1===r.nodeType){for(var a=n.css,i=n.type,o=n.enterClass,s=n.enterToClass,c=n.enterActiveClass,l=n.appearClass,f=n.appearToClass,u=n.appearActiveClass,h=n.beforeEnter,d=n.enter,p=n.afterEnter,v=n.enterCancelled,m=n.beforeAppear,g=n.appear,b=n.afterAppear,y=n.appearCancelled,w=n.duration,T=kf,E=kf.$vnode;E&&E.parent;)T=E.context,E=E.parent;var x=!T._isMounted||!e.isRootInsert;if(!x||g||""===g){var A=x&&l?l:o,_=x&&u?u:c,k=x&&f?f:s,S=x&&m||h,C=x&&"function"==typeof g?g:d,O=x&&b||p,R=x&&y||v,N=Hs(Ps(w)?w.enter:w),D=!1!==a&&!Ec,I=Fh(C),L=r._enterCb=cc((function(){D&&(Ch(r,k),Ch(r,_)),L.cancelled?(D&&Ch(r,A),R&&R(r)):O&&O(r),r._enterCb=null}));e.data.show||Pl(e,"insert",(function(){var t=r.parentNode,n=t&&t._pending&&t._pending[e.key];n&&n.tag===e.tag&&n.elm._leaveCb&&n.elm._leaveCb(),C&&C(r,L)})),S&&S(r),D&&(Sh(r,A),Sh(r,_),kh((function(){Ch(r,A),L.cancelled||(Sh(r,k),I||(Mh(N)?setTimeout(L,N):Oh(r,i,L)))}))),e.data.show&&(t&&t(),C&&C(r,L)),D||I||L()}}}function Ph(e,t){var r=e.elm;Ds(r._enterCb)&&(r._enterCb.cancelled=!0,r._enterCb());var n=mh(e.data.transition);if(Ns(n)||1!==r.nodeType)return t();if(!Ds(r._leaveCb)){var a=n.css,i=n.type,o=n.leaveClass,s=n.leaveToClass,c=n.leaveActiveClass,l=n.beforeLeave,f=n.leave,u=n.afterLeave,h=n.leaveCancelled,d=n.delayLeave,p=n.duration,v=!1!==a&&!Ec,m=Fh(f),g=Hs(Ps(p)?p.leave:p),b=r._leaveCb=cc((function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[e.key]=null),v&&(Ch(r,s),Ch(r,c)),b.cancelled?(v&&Ch(r,o),h&&h(r)):(t(),u&&u(r)),r._leaveCb=null}));d?d(y):y()}function y(){b.cancelled||(!e.data.show&&r.parentNode&&((r.parentNode._pending||(r.parentNode._pending={}))[e.key]=e),l&&l(r),v&&(Sh(r,o),Sh(r,c),kh((function(){Ch(r,o),b.cancelled||(Sh(r,s),m||(Mh(g)?setTimeout(b,g):Oh(r,i,b)))}))),f&&f(r,b),v||m||b())}}function Mh(e){return"number"==typeof e&&!isNaN(e)}function Fh(e){if(Ns(e))return!1;var t=e.fns;return Ds(t)?Fh(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Bh(e,t){!0!==t.data.show&&Lh(t)}var Uh=function(e){var t,r,n={},a=e.modules,i=e.nodeOps;for(t=0;t<Ou.length;++t)for(n[Ou[t]]=[],r=0;r<a.length;++r)Ds(a[r][Ou[t]])&&n[Ou[t]].push(a[r][Ou[t]]);function o(e){var t=i.parentNode(e);Ds(t)&&i.removeChild(t,e)}function s(e,t,r,a,o,s,u){if(Ds(e.elm)&&Ds(s)&&(e=s[u]=Wc(e)),e.isRootInsert=!o,!function(e,t,r,a){var i=e.data;if(Ds(i)){var o=Ds(e.componentInstance)&&i.keepAlive;if(Ds(i=i.hook)&&Ds(i=i.init)&&i(e,!1),Ds(e.componentInstance))return c(e,t),l(r,e.elm,a),Is(o)&&function(e,t,r,a){for(var i,o=e;o.componentInstance;)if(Ds(i=(o=o.componentInstance._vnode).data)&&Ds(i=i.transition)){for(i=0;i<n.activate.length;++i)n.activate[i](Cu,o);t.push(o);break}l(r,e.elm,a)}(e,t,r,a),!0}}(e,t,r,a)){var p=e.data,v=e.children,m=e.tag;Ds(m)?(e.elm=e.ns?i.createElementNS(e.ns,m):i.createElement(m,e),d(e),f(e,v,t),Ds(p)&&h(e,t),l(r,e.elm,a)):Is(e.isComment)?(e.elm=i.createComment(e.text),l(r,e.elm,a)):(e.elm=i.createTextNode(e.text),l(r,e.elm,a))}}function c(e,t){Ds(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,u(e)?(h(e,t),d(e)):(Su(e),t.push(e))}function l(e,t,r){Ds(e)&&(Ds(r)?i.parentNode(r)===e&&i.insertBefore(e,t,r):i.appendChild(e,t))}function f(e,t,r){if(Array.isArray(t))for(var n=0;n<t.length;++n)s(t[n],r,e.elm,null,!0,t,n);else Ls(e.text)&&i.appendChild(e.elm,i.createTextNode(String(e.text)))}function u(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return Ds(e.tag)}function h(e,r){for(var a=0;a<n.create.length;++a)n.create[a](Cu,e);Ds(t=e.data.hook)&&(Ds(t.create)&&t.create(Cu,e),Ds(t.insert)&&r.push(e))}function d(e){var t;if(Ds(t=e.fnScopeId))i.setStyleScope(e.elm,t);else for(var r=e;r;)Ds(t=r.context)&&Ds(t=t.$options._scopeId)&&i.setStyleScope(e.elm,t),r=r.parent;Ds(t=kf)&&t!==e.context&&t!==e.fnContext&&Ds(t=t.$options._scopeId)&&i.setStyleScope(e.elm,t)}function p(e,t,r,n,a,i){for(;n<=a;++n)s(r[n],i,e,t,!1,r,n)}function v(e){var t,r,a=e.data;if(Ds(a))for(Ds(t=a.hook)&&Ds(t=t.destroy)&&t(e),t=0;t<n.destroy.length;++t)n.destroy[t](e);if(Ds(t=e.children))for(r=0;r<e.children.length;++r)v(e.children[r])}function m(e,t,r){for(;t<=r;++t){var n=e[t];Ds(n)&&(Ds(n.tag)?(g(n),v(n)):o(n.elm))}}function g(e,t){if(Ds(t)||Ds(e.data)){var r,a=n.remove.length+1;for(Ds(t)?t.listeners+=a:t=function(e,t){function r(){0==--r.listeners&&o(e)}return r.listeners=t,r}(e.elm,a),Ds(r=e.componentInstance)&&Ds(r=r._vnode)&&Ds(r.data)&&g(r,t),r=0;r<n.remove.length;++r)n.remove[r](e,t);Ds(r=e.data.hook)&&Ds(r=r.remove)?r(e,t):t()}else o(e.elm)}function b(e,t,r,n){for(var a=r;a<n;a++){var i=t[a];if(Ds(i)&&Ru(e,i))return a}}function y(e,t,r,a,o,c){if(e!==t){Ds(t.elm)&&Ds(a)&&(t=a[o]=Wc(t));var l=t.elm=e.elm;if(Is(e.isAsyncPlaceholder))Ds(t.asyncFactory.resolved)?E(e.elm,t,r):t.isAsyncPlaceholder=!0;else if(Is(t.isStatic)&&Is(e.isStatic)&&t.key===e.key&&(Is(t.isCloned)||Is(t.isOnce)))t.componentInstance=e.componentInstance;else{var f,h=t.data;Ds(h)&&Ds(f=h.hook)&&Ds(f=f.prepatch)&&f(e,t);var d=e.children,v=t.children;if(Ds(h)&&u(t)){for(f=0;f<n.update.length;++f)n.update[f](e,t);Ds(f=h.hook)&&Ds(f=f.update)&&f(e,t)}Ns(t.text)?Ds(d)&&Ds(v)?d!==v&&function(e,t,r,n,a){for(var o,c,l,f=0,u=0,h=t.length-1,d=t[0],v=t[h],g=r.length-1,w=r[0],T=r[g],E=!a;f<=h&&u<=g;)Ns(d)?d=t[++f]:Ns(v)?v=t[--h]:Ru(d,w)?(y(d,w,n,r,u),d=t[++f],w=r[++u]):Ru(v,T)?(y(v,T,n,r,g),v=t[--h],T=r[--g]):Ru(d,T)?(y(d,T,n,r,g),E&&i.insertBefore(e,d.elm,i.nextSibling(v.elm)),d=t[++f],T=r[--g]):Ru(v,w)?(y(v,w,n,r,u),E&&i.insertBefore(e,v.elm,d.elm),v=t[--h],w=r[++u]):(Ns(o)&&(o=Nu(t,f,h)),Ns(c=Ds(w.key)?o[w.key]:b(w,t,f,h))?s(w,n,e,d.elm,!1,r,u):Ru(l=t[c],w)?(y(l,w,n,r,u),t[c]=void 0,E&&i.insertBefore(e,l.elm,d.elm)):s(w,n,e,d.elm,!1,r,u),w=r[++u]);f>h?p(e,Ns(r[g+1])?null:r[g+1].elm,r,u,g,n):u>g&&m(t,f,h)}(l,d,v,r,c):Ds(v)?(Ds(e.text)&&i.setTextContent(l,""),p(l,null,v,0,v.length-1,r)):Ds(d)?m(d,0,d.length-1):Ds(e.text)&&i.setTextContent(l,""):e.text!==t.text&&i.setTextContent(l,t.text),Ds(h)&&Ds(f=h.hook)&&Ds(f=f.postpatch)&&f(e,t)}}}function w(e,t,r){if(Is(r)&&Ds(e.parent))e.parent.data.pendingInsert=t;else for(var n=0;n<t.length;++n)t[n].data.hook.insert(t[n])}var T=$s("attrs,class,staticClass,staticStyle,key");function E(e,t,r,n){var a,i=t.tag,o=t.data,s=t.children;if(n=n||o&&o.pre,t.elm=e,Is(t.isComment)&&Ds(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(Ds(o)&&(Ds(a=o.hook)&&Ds(a=a.init)&&a(t,!0),Ds(a=t.componentInstance)))return c(t,r),!0;if(Ds(i)){if(Ds(s))if(e.hasChildNodes())if(Ds(a=o)&&Ds(a=a.domProps)&&Ds(a=a.innerHTML)){if(a!==e.innerHTML)return!1}else{for(var l=!0,u=e.firstChild,d=0;d<s.length;d++){if(!u||!E(u,s[d],r,n)){l=!1;break}u=u.nextSibling}if(!l||u)return!1}else f(t,s,r);if(Ds(o)){var p=!1;for(var v in o)if(!T(v)){p=!0,h(t,r);break}!p&&o.class&&Rl(o.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,r,a){if(!Ns(t)){var o,c=!1,l=[];if(Ns(e))c=!0,s(t,l);else{var f=Ds(e.nodeType);if(!f&&Ru(e,t))y(e,t,l,null,null,a);else{if(f){if(1===e.nodeType&&e.hasAttribute(lc)&&(e.removeAttribute(lc),r=!0),Is(r)&&E(e,t,l))return w(t,l,!0),e;o=e,e=new jc(i.tagName(o).toLowerCase(),{},[],void 0,o)}var h=e.elm,d=i.parentNode(h);if(s(t,l,h._leaveCb?null:d,i.nextSibling(h)),Ds(t.parent))for(var p=t.parent,g=u(t);p;){for(var b=0;b<n.destroy.length;++b)n.destroy[b](p);if(p.elm=t.elm,g){for(var T=0;T<n.create.length;++T)n.create[T](Cu,p);var x=p.data.hook.insert;if(x.merged)for(var A=1;A<x.fns.length;A++)x.fns[A]()}else Su(p);p=p.parent}Ds(d)?m([e],0,0):Ds(e.tag)&&v(e)}}return w(t,l,c),t.elm}Ds(e)&&v(e)}}({nodeOps:_u,modules:[$u,Vu,Ju,th,hh,gc?{create:Bh,activate:Bh,remove:function(e,t){!0!==e.data.show?Ph(e,t):t()}}:{}].concat(Bu)});Ec&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Gh(e,"input")}));var jh={inserted:function(e,t,r,n){"select"===r.tag?(n.elm&&!n.elm._vOptions?Pl(r,"postpatch",(function(){jh.componentUpdated(e,t,r)})):Hh(e,t,r.context),e._vOptions=[].map.call(e.options,Wh)):("textarea"===r.tag||Au(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Vh),e.addEventListener("compositionend",Xh),e.addEventListener("change",Xh),Ec&&(e.vmodel=!0)))},componentUpdated:function(e,t,r){if("select"===r.tag){Hh(e,t,r.context);var n=e._vOptions,a=e._vOptions=[].map.call(e.options,Wh);a.some((function(e,t){return!oc(e,n[t])}))&&(e.multiple?t.value.some((function(e){return zh(e,a)})):t.value!==t.oldValue&&zh(t.value,a))&&Gh(e,"change")}}};function Hh(e,t,r){$h(e,t),(Tc||xc)&&setTimeout((function(){$h(e,t)}),0)}function $h(e,t,r){var n=t.value,a=e.multiple;if(!a||Array.isArray(n)){for(var i,o,s=0,c=e.options.length;s<c;s++)if(o=e.options[s],a)i=sc(n,Wh(o))>-1,o.selected!==i&&(o.selected=i);else if(oc(Wh(o),n))return void(e.selectedIndex!==s&&(e.selectedIndex=s));a||(e.selectedIndex=-1)}}function zh(e,t){return t.every((function(t){return!oc(t,e)}))}function Wh(e){return"_value"in e?e._value:e.value}function Vh(e){e.target.composing=!0}function Xh(e){e.target.composing&&(e.target.composing=!1,Gh(e.target,"input"))}function Gh(e,t){var r=document.createEvent("HTMLEvents");r.initEvent(t,!0,!0),e.dispatchEvent(r)}function Yh(e){return!e.componentInstance||e.data&&e.data.transition?e:Yh(e.componentInstance._vnode)}var qh={bind:function(e,t,r){var n=t.value,a=(r=Yh(r)).data&&r.data.transition,i=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;n&&a?(r.data.show=!0,Lh(r,(function(){e.style.display=i}))):e.style.display=n?i:"none"},update:function(e,t,r){var n=t.value;!n!=!t.oldValue&&((r=Yh(r)).data&&r.data.transition?(r.data.show=!0,n?Lh(r,(function(){e.style.display=e.__vOriginalDisplay})):Ph(r,(function(){e.style.display="none"}))):e.style.display=n?e.__vOriginalDisplay:"none")},unbind:function(e,t,r,n,a){a||(e.style.display=e.__vOriginalDisplay)}},Kh={model:jh,show:qh},Zh={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Jh(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Jh(Tf(t.children)):e}function Qh(e){var t={},r=e.$options;for(var n in r.propsData)t[n]=e[n];var a=r._parentListeners;for(var i in a)t[qs(i)]=a[i];return t}function ed(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var td=function(e){return e.tag||zl(e)},rd=function(e){return"show"===e.name},nd={name:"transition",props:Zh,abstract:!0,render:function(e){var t=this,r=this.$slots.default;if(r&&(r=r.filter(td)).length){var n=this.mode,a=r[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return a;var i=Jh(a);if(!i)return a;if(this._leaving)return ed(e,a);var o="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?o+"comment":o+i.tag:Ls(i.key)?0===String(i.key).indexOf(o)?i.key:o+i.key:i.key;var s=(i.data||(i.data={})).transition=Qh(this),c=this._vnode,l=Jh(c);if(i.data.directives&&i.data.directives.some(rd)&&(i.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(i,l)&&!zl(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=tc({},s);if("out-in"===n)return this._leaving=!0,Pl(f,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),ed(e,a);if("in-out"===n){if(zl(i))return c;var u,h=function(){u()};Pl(s,"afterEnter",h),Pl(s,"enterCancelled",h),Pl(f,"delayLeave",(function(e){u=e}))}}return a}}},ad=tc({tag:String,moveClass:String},Zh);function id(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function od(e){e.data.newPos=e.elm.getBoundingClientRect()}function sd(e){var t=e.data.pos,r=e.data.newPos,n=t.left-r.left,a=t.top-r.top;if(n||a){e.data.moved=!0;var i=e.elm.style;i.transform=i.WebkitTransform="translate("+n+"px,"+a+"px)",i.transitionDuration="0s"}}delete ad.mode;var cd={Transition:nd,TransitionGroup:{props:ad,beforeMount:function(){var e=this,t=this._update;this._update=function(r,n){var a=Sf(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,a(),t.call(e,r,n)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),n=this.prevChildren=this.children,a=this.$slots.default||[],i=this.children=[],o=Qh(this),s=0;s<a.length;s++){var c=a[s];c.tag&&null!=c.key&&0!==String(c.key).indexOf("__vlist")&&(i.push(c),r[c.key]=c,(c.data||(c.data={})).transition=o)}if(n){for(var l=[],f=[],u=0;u<n.length;u++){var h=n[u];h.data.transition=o,h.data.pos=h.elm.getBoundingClientRect(),r[h.key]?l.push(h):f.push(h)}this.kept=e(t,null,l),this.removed=f}return e(t,null,i)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(id),e.forEach(od),e.forEach(sd),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var r=e.elm,n=r.style;Sh(r,t),n.transform=n.WebkitTransform=n.transitionDuration="",r.addEventListener(Eh,r._moveCb=function e(n){n&&n.target!==r||n&&!/transform$/.test(n.propertyName)||(r.removeEventListener(Eh,e),r._moveCb=null,Ch(r,t))})}})))},methods:{hasMove:function(e,t){if(!bh)return!1;if(this._hasMove)return this._hasMove;var r=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){vh(r,e)})),ph(r,t),r.style.display="none",this.$el.appendChild(r);var n=Nh(r);return this.$el.removeChild(r),this._hasMove=n.hasTransform}}}};Qf.config.mustUseProp=function(e,t,r){return"value"===r&&cu(e)&&"button"!==t||"selected"===r&&"option"===e||"checked"===r&&"input"===e||"muted"===r&&"video"===e},Qf.config.isReservedTag=Eu,Qf.config.isReservedAttr=su,Qf.config.getTagNamespace=function(e){return Tu(e)?"svg":"math"===e?"math":void 0},Qf.config.isUnknownElement=function(e){if(!gc)return!0;if(Eu(e))return!1;if(e=e.toLowerCase(),null!=xu[e])return xu[e];var t=document.createElement(e);return e.indexOf("-")>-1?xu[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:xu[e]=/HTMLUnknownElement/.test(t.toString())},tc(Qf.options.directives,Kh),tc(Qf.options.components,cd),Qf.prototype.__patch__=gc?Uh:nc,Qf.prototype.$mount=function(e,t){return function(e,t,r){var n;return e.$el=t,e.$options.render||(e.$options.render=$c),Nf(e,"beforeMount"),n=function(){e._update(e._render(),r)},new zf(e,n,nc,{before:function(){e._isMounted&&!e._isDestroyed&&Nf(e,"beforeUpdate")}},!0),r=!1,null==e.$vnode&&(e._isMounted=!0,Nf(e,"mounted")),e}(this,e=e&&gc?function(e){return"string"==typeof e?document.querySelector(e)||document.createElement("div"):e}(e):void 0,t)},gc&&setTimeout((function(){hc.devtools&&Rc&&Rc.emit("init",Qf)}),0);const ld=Qf;function fd(e){return fd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fd(e)}function ud(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hd(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function dd(e,t){pd(e,t),Object.getOwnPropertyNames(t.prototype).forEach((function(r){pd(e.prototype,t.prototype,r)})),Object.getOwnPropertyNames(t).forEach((function(r){pd(e,t,r)}))}function pd(e,t,r){(r?Reflect.getOwnMetadataKeys(t,r):Reflect.getOwnMetadataKeys(t)).forEach((function(n){var a=r?Reflect.getOwnMetadata(n,t,r):Reflect.getOwnMetadata(n,t);r?Reflect.defineMetadata(n,a,e,r):Reflect.defineMetadata(n,a,e)}))}var vd={__proto__:[]}instanceof Array;function md(e){return function(t,r,n){var a="function"==typeof t?t:t.constructor;a.__decorators__||(a.__decorators__=[]),"number"!=typeof n&&(n=void 0),a.__decorators__.push((function(t){return e(t,r,n)}))}}function gd(e,t){var r=t.prototype._init;t.prototype._init=function(){var t=this,r=Object.getOwnPropertyNames(e);if(e.$options.props)for(var n in e.$options.props)e.hasOwnProperty(n)||r.push(n);r.forEach((function(r){"_"!==r.charAt(0)&&Object.defineProperty(t,r,{get:function(){return e[r]},set:function(t){e[r]=t},configurable:!0})}))};var n=new t;t.prototype._init=r;var a={};return Object.keys(n).forEach((function(e){void 0!==n[e]&&(a[e]=n[e])})),a}var bd=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function yd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.name=t.name||e._componentTag||e.name;var r=e.prototype;Object.getOwnPropertyNames(r).forEach((function(e){if("constructor"!==e)if(bd.indexOf(e)>-1)t[e]=r[e];else{var n=Object.getOwnPropertyDescriptor(r,e);void 0!==n.value?"function"==typeof n.value?(t.methods||(t.methods={}))[e]=n.value:(t.mixins||(t.mixins=[])).push({data:function(){return ud({},e,n.value)}}):(n.get||n.set)&&((t.computed||(t.computed={}))[e]={get:n.get,set:n.set})}})),(t.mixins||(t.mixins=[])).push({data:function(){return gd(this,e)}});var n=e.__decorators__;n&&(n.forEach((function(e){return e(t)})),delete e.__decorators__);var a=Object.getPrototypeOf(e.prototype),i=a instanceof ld?a.constructor:ld,o=i.extend(t);return Td(o,e,i),hd()&&dd(o,e),o}var wd={prototype:!0,arguments:!0,callee:!0,caller:!0};function Td(e,t,r){Object.getOwnPropertyNames(t).forEach((function(n){if(!wd[n]){var a=Object.getOwnPropertyDescriptor(e,n);if(!a||a.configurable){var i,o,s=Object.getOwnPropertyDescriptor(t,n);if(!vd){if("cid"===n)return;var c=Object.getOwnPropertyDescriptor(r,n);if(o=fd(i=s.value),null!=i&&("object"===o||"function"===o)&&c&&c.value===s.value)return}Object.defineProperty(e,n,s)}}}))}function Ed(e){return"function"==typeof e?yd(e):function(t){return yd(t,e)}}Ed.registerHooks=function(e){var t;bd.push.apply(bd,function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(t=e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}())};const xd=Ed;var Ad="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function _d(e){return void 0===e&&(e={}),function(t,r){!function(e,t,r){if(Ad&&!Array.isArray(e)&&"function"!=typeof e&&!e.hasOwnProperty("type")&&void 0===e.type){var n=Reflect.getMetadata("design:type",t,r);n!==Object&&(e.type=n)}}(e,t,r),md((function(t,r){(t.props||(t.props={}))[r]=e}))(t,r)}}function kd(e,t){void 0===t&&(t={});var r=t.deep,n=void 0!==r&&r,a=t.immediate,i=void 0!==a&&a;return md((function(t,r){"object"!=typeof t.watch&&(t.watch=Object.create(null));var a=t.watch;"object"!=typeof a[e]||Array.isArray(a[e])?void 0===a[e]&&(a[e]=[]):a[e]=[a[e]],a[e].push({handler:r,deep:n,immediate:i})}))}var Sd=function(e,t,r,n){var a,i=arguments.length,o=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o};let Cd=class extends ld{constructor(){super(...arguments),Object.defineProperty(this,"msg",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentTime",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"data_0",{enumerable:!0,configurable:!0,writable:!0,value:{page_index:0,page_size:3,data:[{a:"面料类",b:"16500",c:"12063",d:"45.5%"},{a:"面料类",b:"26500",c:"12063",d:"45.5%"},{a:"面料类",b:"36500",c:"12063",d:"45.5%"},{a:"面料类",b:"46500",c:"12063",d:"45.5%"},{a:"面料类",b:"56500",c:"12063",d:"45.5%"}]}})}get reversedMessage(){return this.currentTime}test2(e){alert("你好"),console.log("event",e)}test1(){}created(){}mounted(){this.$nextTick((()=>{}))}updated(){}destroyed(){}};Object.defineProperty(Cd,"entryName",{enumerable:!0,configurable:!0,writable:!0,value:"FileViewer"}),Sd([_d(Number)],Cd.prototype,"msg",void 0),Sd([_d()],Cd.prototype,"name",void 0),Cd=Sd([xd({components:{}}),xd({name:"FileViewer"})],Cd);const Od=Cd;var Rd=r(379),Nd=r.n(Rd),Dd=r(795),Id=r.n(Dd),Ld=r(569),Pd=r.n(Ld),Md=r(565),Fd=r.n(Md),Bd=r(216),Ud=r.n(Bd),jd=r(589),Hd=r.n(jd),$d=r(279),zd={};function Wd(e,t,r,n,a,i,o,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=r,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),o?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},l._ssrRegister=c):a&&(c=s?function(){a.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(l.functional){l._injectStyles=c;var f=l.render;l.render=function(e,t){return c.call(t),f(e,t)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return{exports:e,options:l}}zd.styleTagTransform=Hd(),zd.setAttributes=Fd(),zd.insert=Pd().bind(null,"head"),zd.domAPI=Id(),zd.insertStyleElement=Ud(),Nd()($d.Z,zd),$d.Z&&$d.Z.locals&&$d.Z.locals;const Vd=Wd(Od,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[e._m(0),e._v(" "),r("button",{staticClass:"click-button",on:{click:function(t){return e.test2(t)}}},[e._v("点击事件")])])}),[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{"background-color":"#42b983",color:"red"}},[e._v("\n zxcxzcxzcz\n "),r("span",[e._v("测试")])])}],!1,null,"7a6f68ae",null).exports,Xd={name:"ImageViewer",data:()=>({viewerSrc:"",image:null,listDataCache:[],index:0,_shrink:.4,_enlarge:.6}),props:{list:{type:Array,default:[]},show:{type:Boolean,default:!1},currentIndex:{type:Number,default:0},name:{type:[String,Array],default:null},shrink:{type:Number,default:.6},enlarge:{type:Number,default:.6},alt:{type:String,default:"加载失败..."}},computed:{listLength(){return this.list.length},realSrc(){return this.list[this.index]},realName(){return null==this.name?this.list[this.index]:"string"==typeof this.name?this.name:Array.isArray(this.name)?this.name[this.index]:"未命名"},currentData(){return this.listDataCache[this.index]}},watch:{show(e){e?(this.$emit("open"),this.index=this.currentIndex,this.init(),setTimeout((()=>{this.switchAction("prev")}),100)):this.$emit("close")}},mounted(){this._shrink=1-this.shrink,this._enlarge=1+this.enlarge},methods:{init(){this.initMouseWheel(),this.keydown(),this.initListDataCache()},initListDataCache(e=0){const t=[],r=this;this.list.forEach(((e,n)=>{const a=new Image;t.push(new Promise((t=>{a.onload=function(e){r.listDataCache[n]={transform:{scaleX:"1",skewY:"0",translateX:"-50%",translateY:"-50%",rotate:"0deg"},left:"50%",top:"50%",width:`${a.width}px`,height:`${a.height}px`},t(""),a.onload=null},a.onerror=function(e){t(""),a.onerror=null},a.src=e})))})),Promise.all(t).then((t=>{this.image=this.$refs.duoViewerImage,this.initDrag(),this.$emit("loadComplete");const{width:r,height:n}=this.listDataCache[e];this.setStyleByName(this.image,"width",r),this.setStyleByName(this.image,"height",n)})),Promise.race(t).then((t=>{setTimeout((()=>{this.switchAction("prev")}),100),this.image=this.$refs.duoViewerImage,this.initDrag(),this.$emit("loadComplete");const{width:r,height:n}=this.listDataCache[e];this.setStyleByName(this.image,"width",r),this.setStyleByName(this.image,"height",n)}))},resetPosition(){let e=this.image,t=this.getCurrentTransform(e);this.setStyleByName(e,"top","50%"),this.setStyleByName(e,"left","50%"),t.translateX="-50%",t.translateY="-50%",this.setTransform(e,t)},resetRotate(){let e=this.image,t=this.getCurrentTransform(e);t.rotate="0deg",this.setTransform(e,t)},resetZoom(e=!0){const t=this.image,r=new Image;r.src=this.list[this.index];const n=this;r.onload=()=>{let{width:a,height:i}=r;if(e){let e=1;e=a>i?a/document.body.clientWidth:i/document.body.clientHeight,a=a/e*.8,i=i/e*.8}n.setStyleByName(t,"width",`${a}px`),n.setStyleByName(t,"height",`${i}px`),this.listDataCache[this.index]&&(this.listDataCache[this.index].width=`${a}px`,this.listDataCache[this.index].height=`${i}px`)}},resetAll(){this.resetZoom(),this.resetRotate(),this.resetPosition(),this.initListDataCache(this.index)},rotate(e){let t=this.image,r=this.getCurrentTransform(t),n=Math.round(Math.atan2(+r.skewY,+r.scaleX)*(180/Math.PI))+("left"===e?-90:90);r.rotate=`${n}deg`,r.translateX=`${r.translateX}px`,r.translateY=`${r.translateY}px`,this.currentData.transform=r,this.setTransform(t,r)},getStyleByName:(e,t)=>window.getComputedStyle(e,null)[t],setStyleByName(e,t,r){e&&(e.style[t]=r)},getCurrentTransform(e){let t;const r=this.getStyleByName(e,"transform");if("none"!==r)return t=r.split("(")[1].split(")")[0].split(","),{scaleX:t[0].trim(),skewY:t[1].trim(),translateX:t[4].trim(),translateY:t[5].trim()}},switchAction(e){let t=this.index;switch(e){case"prev":this.index+=this.index<=0?0:-1;break;case"next":let t=this.listLength-1;this.index+=this.index>=t?t-this.index:1;break;default:this.index=+e}this.judgeThumbnailListMove(t,this.index),setTimeout((()=>{try{const e=this.currentData;this.setStyleByName(this.image,"width",e.width),this.setStyleByName(this.image,"height",e.height),this.setStyleByName(this.image,"left",e.left),this.setStyleByName(this.image,"top",e.top),this.setTransform(this.image,e.transform)}catch(e){console.log("switchAction",e,this.currentData)}this.resetZoom(),this.resetPosition()}),100)},judgeThumbnailListMove(e,t){if(e==t)return;let r=0,n=0,a=34*(t-e),i=(this.listLength,this.$refs.duoViewerImageThumbnailList);i&&(n=this.getCurrentTransform(i),n&&(r=Math.abs(+n.translateX)),this.setTransform(i,{scaleX:"1",skewY:"0",translateX:`-${r+a}px`,translateY:"0%",rotate:"0deg"}))},setTransform(e,t){let r="";r+=`translateX(${t.translateX}) `,r+=`translateY(${t.translateY}) `,t.rotate&&(r+=`rotate(${t.rotate}) `),this.setStyleByName(e,"transform",r)},zoom(e){let t=this.image,r=+this.getStyleByName(t,"width").split("px")[0],n=+this.getStyleByName(t,"height").split("px")[0];n<=20&&"out"===e||("out"===e?(this.setStyleByName(t,"width",r*this._shrink+"px"),this.setStyleByName(t,"height",n*this._shrink+"px")):(this.setStyleByName(t,"width",r*this._enlarge+"px"),this.setStyleByName(t,"height",n*this._enlarge+"px")),this.currentData&&(this.currentData.width=this.getStyleByName(this.image,"width"),this.currentData.height=this.getStyleByName(this.image,"height")))},requestFullScreen(){let e=this.$refs.duoViewer,t=e.requestFullScreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;if(t)t.call(e);else if(void 0!==window.ActiveXObject){let e=new ActiveXObject("WScript.Shell");null!==e&&e.SendKeys("{F11}")}},keydown(){window.addEventListener("keydown",(e=>{(e=event||window.event||arguments.callee.caller.arguments[0])&&40==e.keyCode&&this.zoom("out"),e&&37==e.keyCode&&this.switchAction("prev"),e&&39==e.keyCode&&this.switchAction("next"),e&&38==e.keyCode&&this.zoom("in"),e&&27==e.keyCode&&this.handleClose()}))},initDrag(){let e,t,r,n,a,i,o,s,c=this.image;if(!c)return void console.error("初始化图片拖拽失败");const l=()=>(o=document.body.scrollLeft||document.documentElement.scrollLeft,s=document.body.scrollTop||document.documentElement.scrollTop,{scrollLeft:o,scrollTop:s}),f=e=>(a=e.pageX||e.clientX+l().scrollLeft,i=e.pageY||e.clientY+l().scrollTop,{pageX:a,pageY:i});c.onmousedown=a=>(a=a||window.event,e=f(a).pageX-c.offsetLeft,t=f(a).pageY-c.offsetTop,document.onmousemove=a=>{a=a||window.event,r=f(a).pageX-e,n=f(a).pageY-t,c.style.left=`${r}px`,c.style.top=`${n}px`},!1),document.onmouseup=()=>{document.onmousemove=null,this.listDataCache[this.index].left=`${r}px`,this.listDataCache[this.index].top=`${n}px`}},initMouseWheel(){const e=e=>{(e=e||window.event).wheelDelta?(e.wheelDelta>0&&this.zoom("out"),e.wheelDelta<0&&this.zoom("in")):e.detail&&(e.detail>0&&this.zoom("out"),e.detail<0&&this.zoom("in"))};document.addEventListener&&document.addEventListener("DOMMouseScroll",e,!1),window.onmousewheel=document.onmousewheel=e},clickAgent(e){switch(e.target.getAttribute("data-viewer-action")){case"zoom-in":this.zoom("in");break;case"zoom-out":this.zoom("out");break;case"one-to-one":this.resetZoom(!1);break;case"prev":this.switchAction("prev");break;case"play":this.requestFullScreen();break;case"next":this.switchAction("next");break;case"reset":this.resetAll();break;case"select":this.switchAction(e.target.getAttribute("data-viewer-action-index"));break;case"rotate-left":this.rotate("left");break;case"rotate-right":this.rotate("right")}},handleClose(){this.$emit("update:show",!1)}}},Gd=Xd;var Yd=r(906),qd={};qd.styleTagTransform=Hd(),qd.setAttributes=Fd(),qd.insert=Pd().bind(null,"head"),qd.domAPI=Id(),qd.insertStyleElement=Ud(),Nd()(Yd.Z,qd),Yd.Z&&Yd.Z.locals&&Yd.Z.locals;const Kd=Wd(Gd,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.show?r("div",{ref:"duoViewer",staticClass:"duo-viewer",on:{click:e.clickAgent}},[r("div",{staticClass:"duo-viewer-mask"},[r("img",{ref:"duoViewerImage",staticClass:"duo-viewer-mask__image",attrs:{src:e.realSrc,alt:e.alt}})]),e._v(" "),r("div",{staticClass:"duo-viewer-footer"},[r("div",{staticClass:"duo-viewer-footer__title"},[e._v(e._s(e.realName))]),e._v(" "),e._m(0),e._v(" "),r("div",{staticClass:"duo-viewer-footer__navbar"},[r("div",{staticClass:"duo-viewer-footer__navbar-thumbnail-wrap"},[r("div",{ref:"duoViewerImageThumbnailList",staticClass:"duo-viewer-footer__navbar-thumbnail-list",style:{width:34*e.listLength+"px"}},e._l(e.list,(function(t,n){return r("div",{key:t+n,class:n===e.index?"duo-viewer-footer__navbar-thumbnail-item viewer-current":"duo-viewer-footer__navbar-thumbnail-item"},[r("img",{staticClass:"duo-viewer-footer__navbar-thumbnail-image",attrs:{"data-viewer-action":"select","data-viewer-action-index":n,src:t,alt:e.alt}})])})),0)])])]),e._v(" "),r("div",{staticClass:"duo-viewer-close",on:{click:e.handleClose}},[r("div",{staticClass:"duo-viewer-close__off"})])]):e._e()}),[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"duo-viewer-footer__toolbar"},[r("ul",[r("li",{staticClass:"duo-viewer-footer__zoom-in",attrs:{"data-viewer-action":"zoom-in"}}),e._v(" "),r("li",{staticClass:"duo-viewer-footer__zoom-out",attrs:{"data-viewer-action":"zoom-out"}}),e._v(" "),r("li",{staticClass:"duo-viewer-footer__one-to-one",attrs:{"data-viewer-action":"one-to-one"}}),e._v(" "),r("li",{staticClass:"duo-viewer-footer__prev",attrs:{"data-viewer-action":"prev"}}),e._v(" "),r("li",{staticClass:"duo-viewer-footer__play",attrs:{"data-viewer-action":"play"}}),e._v(" "),r("li",{staticClass:"duo-viewer-footer__next",attrs:{"data-viewer-action":"next"}}),e._v(" "),r("li",{staticClass:"duo-viewer-footer__reset",attrs:{"data-viewer-action":"reset"}}),e._v(" "),r("li",{staticClass:"duo-viewer-footer__rotate-left",attrs:{"data-viewer-action":"rotate-left"}}),e._v(" "),r("li",{staticClass:"duo-viewer-footer__rotate-right",attrs:{"data-viewer-action":"rotate-right"}})])])}],!1,null,"78278b24",null).exports,Zd={name:"ImageViewer",data:()=>({viewerSrc:"",image:null,listDataCache:[],index:0,imgUrl:"",isCreatePoster:!1}),props:{list:{type:Array,default:[]},show:{type:Boolean,default:!1},currentIndex:{type:Number,default:0},name:{type:[String,Array],default:null},width:{type:String,default:null},height:{type:String,default:null},imgList:{type:[String,Array],default:null},showThumbnail:{type:Boolean,default:!1}},computed:{listLength(){return this.list.length},realSrc(){return null===this.width&&null===this.height&&ks.getVideoScale(this.list[this.index]).then((e=>{this.width=e[0],this.height=e[1]})),this.list[this.index]},realName(){return null==this.name?this.list[this.index]:"string"==typeof this.name?this.name:Array.isArray(this.name)?this.name[this.index]:"未命名"},currentData(){return this.listDataCache[this.index]}},watch:{show(e){if(e){null===this.imgList&&this.showThumbnail&&(this.imgList=new Array,this.isCreatePoster=!0);for(let e=0;e<this.list.length;e++)this.createVideoImg(this.list[e],e);this.$emit("open"),this.index=this.currentIndex,this.init()}else this.$emit("close")}},mounted(){},methods:{getVideoImg(e,t){return null!==this.imgList&&"string"==typeof this.imgList?this.imgList:null!==this.imgList&&Array.isArray(this.imgList)?this.imgList[t]:""},async createVideoImg(e,t){if(!this.isCreatePoster)return;const r=await ks.getVideoBase64(e);this.imgList.push(r)},init(){this.keydown()},resetRotate(){let e=this.image,t=this.getCurrentTransform(e);t.rotate="0deg",this.setTransform(e,t)},resetZoom(){let e=this.image;const t=new Image;t.src=this.list[this.index];const{width:r,height:n}=t;this.setStyleByName(e,"width",`${r}px`),this.setStyleByName(e,"height",`${n}px`),this.listDataCache[this.index].width=`${r}px`,this.listDataCache[this.index].height=`${n}px`},resetAll(){this.resetZoom(),this.resetRotate(),this.resetPosition(),this.initListDataCache(this.index)},rotate(e){let t=this.image,r=this.getCurrentTransform(t),n=Math.round(Math.atan2(+r.skewY,+r.scaleX)*(180/Math.PI))+("left"===e?-90:90);r.rotate=`${n}deg`,r.translateX=`${r.translateX}px`,r.translateY=`${r.translateY}px`,this.currentData.transform=r,this.setTransform(t,r)},getStyleByName:(e,t)=>window.getComputedStyle(e,null)[t],setStyleByName(e,t,r){e&&(e.style[t]=r)},getCurrentTransform(e){let t,r=this.getStyleByName(e,"transform");if("none"!==r)return t=r.split("(")[1].split(")")[0].split(","),{scaleX:t[0].trim(),skewY:t[1].trim(),translateX:t[4].trim(),translateY:t[5].trim()}},switchAction(e){let t=this.index;switch(e){case"prev":this.index+=this.index<=0?0:-1;break;case"next":let t=this.listLength-1;this.index+=this.index>=t?t-this.index:1;break;default:this.index=+e}this.judgeThumbnailListMove(t,this.index)},judgeThumbnailListMove(e,t){if(e==t)return;let r=0,n=0,a=34*(t-e),i=(this.listLength,this.$refs.duoViewerImageThumbnailList);i&&(n=this.getCurrentTransform(i),n&&(r=Math.abs(+n.translateX)),this.setTransform(i,{scaleX:"1",skewY:"0",translateX:`-${r+a}px`,translateY:"0%",rotate:"0deg"}))},setTransform(e,t){let r="";r+=`translateX(${t.translateX}) `,r+=`translateY(${t.translateY}) `,t.rotate&&(r+=`rotate(${t.rotate}) `),this.setStyleByName(e,"transform",r)},requestFullScreen(){let e=this.$refs.duoViewer,t=e.requestFullScreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;if(t)t.call(e);else if(void 0!==window.ActiveXObject){let e=new ActiveXObject("WScript.Shell");null!==e&&e.SendKeys("{F11}")}},keydown(){window.addEventListener("keydown",(e=>{(e=event||window.event||arguments.callee.caller.arguments[0])&&40==e.keyCode&&this.zoom("out"),e&&37==e.keyCode&&this.switchAction("prev"),e&&39==e.keyCode&&this.switchAction("next"),e&&38==e.keyCode&&this.zoom("in"),e&&27==e.keyCode&&this.handleClose()}))},initMouseWheel(){const e=e=>{(e=e||window.event).wheelDelta?(e.wheelDelta>0&&this.zoom("out"),e.wheelDelta<0&&this.zoom("in")):e.detail&&(e.detail>0&&this.zoom("out"),e.detail<0&&this.zoom("in"))};document.addEventListener&&document.addEventListener("DOMMouseScroll",e,!1),window.onmousewheel=document.onmousewheel=e},clickAgent(e){switch(e.target.getAttribute("data-viewer-action")){case"zoom-in":this.zoom("in");break;case"zoom-out":this.zoom("out");break;case"one-to-one":this.resetZoom();break;case"prev":this.switchAction("prev");break;case"play":this.requestFullScreen();break;case"next":this.switchAction("next");break;case"reset":this.resetAll();break;case"select":this.switchAction(e.target.getAttribute("data-viewer-action-index"));break;case"rotate-left":this.rotate("left");break;case"rotate-right":this.rotate("right")}},handleClose(){this.imgList=null,this.isCreatePoster=!1,this.$emit("update:show",!1)}}},Jd=Zd;var Qd=r(366),ep={};ep.styleTagTransform=Hd(),ep.setAttributes=Fd(),ep.insert=Pd().bind(null,"head"),ep.domAPI=Id(),ep.insertStyleElement=Ud(),Nd()(Qd.Z,ep),Qd.Z&&Qd.Z.locals&&Qd.Z.locals;const tp=Wd(Jd,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.show?r("div",{ref:"duoViewer",staticClass:"duo-viewer",on:{click:e.clickAgent}},[r("div",{staticClass:"duo-viewer-mask"},[r("video",{staticClass:"duo-viewer-mask__image",attrs:{width:e.width,height:e.height,src:e.realSrc,type:"video/mp4",controls:"controls",autoplay:"autoplay",loop:"loop"}},[e._v("\n 您的浏览器不支持 HTML5 video 标签。\n ")])]),e._v(" "),e.showThumbnail?r("div",{staticClass:"duo-viewer-footer"},[r("div",{staticClass:"duo-viewer-footer__title"},[e._v(e._s(e.realName))]),e._v(" "),e._m(0),e._v(" "),r("div",{staticClass:"duo-viewer-footer__navbar"},[r("div",{staticClass:"duo-viewer-footer__navbar-thumbnail-wrap"},[r("div",{ref:"duoViewerImageThumbnailList",staticClass:"duo-viewer-footer__navbar-thumbnail-list",style:{width:34*e.listLength+"px"}},e._l(e.list,(function(t,n){return r("div",{key:t+n,class:n===e.index?"duo-viewer-footer__navbar-thumbnail-item viewer-current":"duo-viewer-footer__navbar-thumbnail-item"},[r("img",{staticClass:"duo-viewer-footer__navbar-thumbnail-image",attrs:{"data-viewer-action":"select","data-viewer-action-index":n,src:e.getVideoImg(t,n),alt:e.alt}})])})),0)])])]):e._e(),e._v(" "),r("div",{staticClass:"duo-viewer-close",on:{click:e.handleClose}},[r("div",{staticClass:"duo-viewer-close__off"})])]):e._e()}),[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"duo-viewer-footer__toolbar"},[r("ul",[r("li",{staticClass:"duo-viewer-footer__zoom-in",attrs:{"data-viewer-action":"zoom-in"}}),e._v(" "),r("li",{staticClass:"duo-viewer-footer__zoom-out",attrs:{"data-viewer-action":"zoom-out"}}),e._v(" "),r("li",{staticClass:"duo-viewer-footer__one-to-one",attrs:{"data-viewer-action":"one-to-one"}}),e._v(" "),r("li",{staticClass:"duo-viewer-footer__prev",attrs:{"data-viewer-action":"prev"}}),e._v(" "),r("li",{staticClass:"duo-viewer-footer__play",attrs:{"data-viewer-action":"play"}}),e._v(" "),r("li",{staticClass:"duo-viewer-footer__next",attrs:{"data-viewer-action":"next"}}),e._v(" "),r("li",{staticClass:"duo-viewer-footer__reset",attrs:{"data-viewer-action":"reset"}}),e._v(" "),r("li",{staticClass:"duo-viewer-footer__rotate-left",attrs:{"data-viewer-action":"rotate-left"}}),e._v(" "),r("li",{staticClass:"duo-viewer-footer__rotate-right",attrs:{"data-viewer-action":"rotate-right"}})])])}],!1,null,"1d5bdf50",null).exports;var rp=function(e,t,r,n){var a,i=arguments.length,o=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o};const np={t:"top",m:"marginTop",b:"bottom"},ap={l:"left",m:"marginLeft",r:"right"};let ip=class extends ld{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"stickSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parentScaleX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parentScaleY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isActive",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"preventActiveBehavior",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isDraggable",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isResizable",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"aspectRatio",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parentLimitation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"snapToGrid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"gridX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"gridY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parentW",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parentH",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"w",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"h",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"minw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"minh",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"z",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dragHandle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dragCancel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sticks",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"axis",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contentClass",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isStorage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"emits",{enumerable:!0,configurable:!0,writable:!0,value:["clicked","dragging","dragstop","resizing","resizestop","activated","deactivated"]}),Object.defineProperty(this,"fixAspectRatio",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"active",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"zIndex",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"parentWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"parentHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"left",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"top",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"right",{enumerable:!0,configurable:!0,writable:!0,value:50}),Object.defineProperty(this,"bottom",{enumerable:!0,configurable:!0,writable:!0,value:50}),Object.defineProperty(this,"minHeight",{enumerable:!0,configurable:!0,writable:!0,value:10}),Object.defineProperty(this,"stickDrag",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"bodyDrag",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"dimensionsBeforeMove",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"limits",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentStick",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"aspectFactor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"domEvents",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parentElement",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_uid",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}beforeCreate(){this.stickDrag=!1,this.bodyDrag=!1,this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}},this.currentStick=null}mounted(){if(this.parentElement=this.$el.parentNode,this.parentWidth=this.parentW?this.parentW:this.parentElement.clientWidth,this.parentHeight=this.parentH?this.parentH:this.parentElement.clientHeight,this.left=this.x,this.top=this.y,this.right=this.parentWidth-("auto"===this.w?this.$refs.container.scrollWidth:this.w)-this.left,this.bottom=this.parentHeight-("auto"===this.h?this.$refs.container.scrollHeight:this.h)-this.top,this.domEvents=new Map([["mousemove",this.move],["mouseup",this.up],["mouseleave",this.up],["mousedown",this.deselect],["touchmove",this.move],["touchend",this.up],["touchcancel",this.up],["touchstart",this.up],["keydown",this.keydown]]),function(e){e.forEach(((e,t)=>{document.documentElement.addEventListener(t,e)}))}(this.domEvents),this.dragHandle&&[...this.$el.querySelectorAll(this.dragHandle)].forEach((e=>{e.setAttribute("data-drag-handle",this._uid)})),this.dragCancel&&[...this.$el.querySelectorAll(this.dragCancel)].forEach((e=>{e.setAttribute("data-drag-cancel",this._uid)})),""!==this.name.trim()&&this.isStorage){let e=JSON.parse(localStorage.getItem("DragResizeView_Rect_"+this.name));null!==e&&null!==e.left&&null!==e.top&&null!==e.right&&null!==e.bottom?(this.left=e.left,this.top=e.top,this.right=e.right,this.bottom=e.bottom):localStorage.removeItem("DragResizeView_Rect_"+this.name)}}beforeDestroy(){!function(e){e.forEach(((e,t)=>{document.documentElement.removeEventListener(t,e)}))}(this.domEvents)}deselect(){this.preventActiveBehavior||(this.active=!1)}move(e){if(!this.stickDrag&&!this.bodyDrag)return;e.stopPropagation();const t=void 0!==e.pageX?e.pageX:e.touches[0].pageX,r=void 0!==e.pageY?e.pageY:e.touches[0].pageY,{dimensionsBeforeMove:n}=this,a={x:(n.pointerX-t)/this.parentScaleX,y:(n.pointerY-r)/this.parentScaleY};if(this.stickDrag&&this.stickMove(a),this.bodyDrag){if("x"===this.axis)a.y=0;else if("y"===this.axis)a.x=0;else if("none"===this.axis)return;this.bodyMove(a)}}up(e){this.stickDrag?this.stickUp():this.bodyDrag&&this.bodyUp()}keydown(e){if(!this.stickDrag&&!this.bodyDrag)return;e.stopPropagation();const{dimensionsBeforeMove:t}=this;let r=0,n=0;if("a"===e.key||"ArrowLeft"===e.key)r=t.pointerX-1,n=t.pointerY;else if("d"===e.key||"ArrowRight"===e.key)r=t.pointerX+1,n=t.pointerY;else if("w"===e.key||"ArrowUp"===e.key)r=t.pointerX,n=t.pointerY-1;else{if("s"!==e.key&&"ArrowDown"!==e.key)return;r=t.pointerX,n=t.pointerY+1}const a={x:(t.pointerX-r)/this.parentScaleX,y:(t.pointerY-n)/this.parentScaleY};if(this.stickDrag&&this.stickMove(a),"x"===this.axis)a.y=0;else if("y"===this.axis)a.x=0;else if("none"===this.axis)return;this.bodyMove(a),this.saveDimensionsBeforeMove(a.x,a.y)}bodyDown(e){const{target:t,button:r}=e;if(this.preventActiveBehavior||(this.active=!0),r&&0!==r)return;if(this.$emit("clicked",e),!this.active)return;if(this.dragHandle&&t.getAttribute("data-drag-handle")!==this._uid.toString())return;if(this.dragCancel&&t.getAttribute("data-drag-cancel")===this._uid.toString())return;void 0!==e.stopPropagation&&e.stopPropagation(),void 0!==e.preventDefault&&e.preventDefault(),this.isDraggable&&(this.bodyDrag=!0);const n=void 0!==e.pageX?e.pageX:e.touches[0].pageX,a=void 0!==e.pageY?e.pageY:e.touches[0].pageY;this.saveDimensionsBeforeMove(n,a),this.parentLimitation&&(this.limits=this.calcDragLimitation())}bodyMove(e){const{dimensionsBeforeMove:t,parentWidth:r,parentHeight:n,gridX:a,gridY:i,width:o,height:s}=this;let c=t.top-e.y,l=t.bottom+e.y,f=t.left-e.x,u=t.right+e.x;if(this.snapToGrid){let e=!0,t=!0,h=c-Math.floor(c/i)*i,d=n-l-Math.floor((n-l)/i)*i,p=f-Math.floor(f/a)*a,v=r-u-Math.floor((r-u)/a)*a;h>i/2&&(h-=i),d>i/2&&(d-=i),p>a/2&&(p-=a),v>a/2&&(v-=a),Math.abs(d)<Math.abs(h)&&(e=!1),Math.abs(v)<Math.abs(p)&&(t=!1),c-=e?h:d,l=n-s-c,f-=t?p:v,u=r-o-f}({newLeft:this.left,newRight:this.right,newTop:this.top,newBottom:this.bottom}=this.rectCorrectionByLimit({newLeft:f,newRight:u,newTop:c,newBottom:l})),this.$emit("dragging",this.rect),this.storageElementInfo()}bodyUp(){this.bodyDrag=!1,this.$emit("dragging",this.rect),this.$emit("dragstop",this.rect),this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}}}stickDown(e,t,r=!1){if(!(this.isResizable&&this.active||r))return;this.stickDrag=!0;const n=void 0!==t.pageX?t.pageX:t.touches[0].pageX,a=void 0!==t.pageY?t.pageY:t.touches[0].pageY;this.saveDimensionsBeforeMove(n,a),this.currentStick=e,this.limits=this.calcResizeLimits()}saveDimensionsBeforeMove(e,t){this.dimensionsBeforeMove.pointerX=e,this.dimensionsBeforeMove.pointerY=t,this.dimensionsBeforeMove.left=this.left,this.dimensionsBeforeMove.right=this.right,this.dimensionsBeforeMove.top=this.top,this.dimensionsBeforeMove.bottom=this.bottom,this.dimensionsBeforeMove.width=this.width,this.dimensionsBeforeMove.height=this.height,this.aspectFactor=this.width/this.height}stickMove(e){const{currentStick:t,dimensionsBeforeMove:r,gridY:n,gridX:a,snapToGrid:i,parentHeight:o,parentWidth:s}=this;let c=r.top,l=r.bottom,f=r.left,u=r.right;switch(t[0]){case"b":l=r.bottom+e.y,i&&(l=o-Math.round((o-l)/n)*n);break;case"t":c=r.top-e.y,i&&(c=Math.round(c/n)*n)}switch(t[1]){case"r":u=r.right+e.x,i&&(u=s-Math.round((s-u)/a)*a);break;case"l":f=r.left-e.x,i&&(f=Math.round(f/a)*a)}({newLeft:f,newRight:u,newTop:c,newBottom:l}=this.rectCorrectionByLimit({newLeft:f,newRight:u,newTop:c,newBottom:l})),this.aspectRatio&&({newLeft:f,newRight:u,newTop:c,newBottom:l}=this.rectCorrectionByAspectRatio({newLeft:f,newRight:u,newTop:c,newBottom:l})),this.left=f,this.right=u,this.top=c,this.bottom=l,this.$emit("resizing",this.rect),this.storageElementInfo()}stickUp(){this.stickDrag=!1,this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}},this.$emit("resizing",this.rect),this.$emit("resizestop",this.rect)}calcDragLimitation(){const{parentWidth:e,parentHeight:t}=this;return{left:{min:0,max:e-this.width},right:{min:0,max:e-this.width},top:{min:0,max:t-this.height},bottom:{min:0,max:t-this.height}}}calcResizeLimits(){const{aspectFactor:e,width:t,height:r,bottom:n,top:a,left:i,right:o}=this;let{minh:s,minw:c}=this;const l=this.parentLimitation?0:null;this.aspectRatio&&(c/s>e?s=c/e:c=e*s);const f={left:{min:l,max:i+(t-c)},right:{min:l,max:o+(t-c)},top:{min:l,max:a+(r-s)},bottom:{min:l,max:n+(r-s)}};if(this.aspectRatio){const l={left:{min:i-Math.min(a,n)*e*2,max:i+(r-s)/2*e*2},right:{min:o-Math.min(a,n)*e*2,max:o+(r-s)/2*e*2},top:{min:a-Math.min(i,o)/e*2,max:a+(t-c)/2/e*2},bottom:{min:n-Math.min(i,o)/e*2,max:n+(t-c)/2/e*2}};"m"===this.currentStick[0]?(f.left={min:Math.max(f.left.min,l.left.min),max:Math.min(f.left.max,l.left.max)},f.right={min:Math.max(f.right.min,l.right.min),max:Math.min(f.right.max,l.right.max)}):"m"===this.currentStick[1]&&(f.top={min:Math.max(f.top.min,l.top.min),max:Math.min(f.top.max,l.top.max)},f.bottom={min:Math.max(f.bottom.min,l.bottom.min),max:Math.min(f.bottom.max,l.bottom.max)})}return f}sideCorrectionByLimit(e,t){let r=t;return null!==e.min&&t<e.min?r=e.min:null!==e.max&&e.max<t&&(r=e.max),r}rectCorrectionByLimit(e){const{limits:t}=this;let{newRight:r,newLeft:n,newBottom:a,newTop:i}=e;return n=this.sideCorrectionByLimit(t.left,n),r=this.sideCorrectionByLimit(t.right,r),i=this.sideCorrectionByLimit(t.top,i),a=this.sideCorrectionByLimit(t.bottom,a),{newLeft:n,newRight:r,newTop:i,newBottom:a}}rectCorrectionByAspectRatio(e){let{newLeft:t,newRight:r,newTop:n,newBottom:a}=e;const{parentWidth:i,parentHeight:o,currentStick:s,aspectFactor:c,dimensionsBeforeMove:l}=this;let f=i-t-r,u=o-n-a;if("m"===s[1]){const e=u-l.height;t-=e*c/2,r-=e*c/2}else if("m"===s[0]){const e=f-l.width;n-=e/c/2,a-=e/c/2}else f/u>c?(f=c*u,"l"===s[1]?t=i-r-f:r=i-t-f):(u=f/c,"t"===s[0]?n=o-a-u:a=o-n-u);return{newLeft:t,newRight:r,newTop:n,newBottom:a}}storageElementInfo(){if(!this.isStorage)return;if(""===this.name.trim())throw"unspecified name";if(null===this.rect.left||null===this.rect.top||null===this.right||null===this.bottom)return;const e={left:this.rect.left,top:this.rect.top,right:this.right,bottom:this.bottom};localStorage.setItem("DragResizeView_Rect_"+this.name,JSON.stringify(e))}get positionStyle(){return{top:this.top+"px",left:this.left+"px",zIndex:this.zIndex}}get sizeStyle(){return{width:"auto"==this.w?"auto":this.width+"px",height:"auto"==this.h?"auto":this.height+"px"}}get vdrStick(){return e=>{const t={width:this.stickSize/this.parentScaleX+"px",height:this.stickSize/this.parentScaleY+"px"};return t[np[e[0]]]=this.stickSize/this.parentScaleX/-2+"px",t[ap[e[1]]]=this.stickSize/this.parentScaleX/-2+"px",t}}get width(){return this.parentWidth-this.left-this.right}get height(){return this.parentHeight-this.top-this.bottom}get rect(){return{left:Math.round(this.left),top:Math.round(this.top),width:Math.round(this.width),height:Math.round(this.height)}}onActive(e){e?this.$emit("activated"):this.$emit("deactivated")}onIsActive(e){this.active=e}onZ(e){(e>=0||"auto"===e)&&(this.zIndex=e)}onX(e,t){if(this.stickDrag||this.bodyDrag||e===this.left)return;const r=t-e;this.bodyDown({pageX:this.left,pageY:this.top}),this.bodyMove({x:r,y:0}),this.$nextTick((()=>{this.bodyUp()}))}onY(e,t){if(this.stickDrag||this.bodyDrag||e===this.top)return;const r=t-e;this.bodyDown({pageX:this.left,pageY:this.top}),this.bodyMove({x:0,y:r}),this.$nextTick((()=>{this.bodyUp()}))}onW(e,t){if(this.stickDrag||this.bodyDrag||e===this.width)return;const r=t-e;this.stickDown("mr",{pageX:this.right,pageY:this.top+this.height/2},!0),this.stickMove({x:r,y:0}),this.$nextTick((()=>{this.stickUp()}))}onH(e,t){if(this.stickDrag||this.bodyDrag||e===this.height)return;const r=t-e;this.stickDown("bm",{pageX:this.left+this.width/2,pageY:this.bottom},!0),this.stickMove({x:0,y:r}),this.$nextTick((()=>{this.stickUp()}))}onParentW(e){this.right=e-this.width-this.left,this.parentWidth=e}onParentH(e){this.bottom=e-this.height-this.top,this.parentHeight=e}};rp([_d({type:String,required:!1,default:""})],ip.prototype,"name",void 0),rp([_d({type:Number,default:8})],ip.prototype,"stickSize",void 0),rp([_d({type:Number,default:1})],ip.prototype,"parentScaleX",void 0),rp([_d({type:Number,default:1})],ip.prototype,"parentScaleY",void 0),rp([_d({type:Boolean,default:!1})],ip.prototype,"isActive",void 0),rp([_d({type:Boolean,default:!1})],ip.prototype,"preventActiveBehavior",void 0),rp([_d({type:Boolean,default:!0})],ip.prototype,"isDraggable",void 0),rp([_d({type:Boolean,default:!0})],ip.prototype,"isResizable",void 0),rp([_d({type:Boolean,default:!1})],ip.prototype,"aspectRatio",void 0),rp([_d({type:Boolean,default:!1})],ip.prototype,"parentLimitation",void 0),rp([_d({type:Boolean,default:!1})],ip.prototype,"snapToGrid",void 0),rp([_d({type:Number,default:50,validator:e=>e>=0})],ip.prototype,"gridX",void 0),rp([_d({type:Number,default:50,validator:e=>e>=0})],ip.prototype,"gridY",void 0),rp([_d({type:Number,default:0,validator:e=>e>=0})],ip.prototype,"parentW",void 0),rp([_d({type:Number,default:0,validator:e=>e>=0})],ip.prototype,"parentH",void 0),rp([_d({type:[String,Number],default:200,validator:e=>"string"==typeof e?"auto"===e:e>=0})],ip.prototype,"w",void 0),rp([_d({type:[String,Number],default:200,validator:e=>"string"==typeof e?"auto"===e:e>=0})],ip.prototype,"h",void 0),rp([_d({type:Number,default:50,validator:e=>e>=0})],ip.prototype,"minw",void 0),rp([_d({type:Number,default:50,validator:e=>e>=0})],ip.prototype,"minh",void 0),rp([_d({type:Number,default:0,validator:e=>"number"==typeof e})],ip.prototype,"x",void 0),rp([_d({type:Number,default:0,validator:e=>"number"==typeof e})],ip.prototype,"y",void 0),rp([_d({type:[String,Number],default:"auto",validator:e=>"string"==typeof e?"auto"===e:e>=0})],ip.prototype,"z",void 0),rp([_d({type:String,default:null})],ip.prototype,"dragHandle",void 0),rp([_d({type:String,default:null})],ip.prototype,"dragCancel",void 0),rp([_d({type:Array,default:()=>["tl","tm","tr","mr","br","bm","bl","ml"]})],ip.prototype,"sticks",void 0),rp([_d({type:String,default:"both",validator:e=>-1!==["x","y","both","none"].indexOf(e)})],ip.prototype,"axis",void 0),rp([_d({type:String,required:!1,default:""})],ip.prototype,"contentClass",void 0),rp([_d({type:Boolean,required:!1,default:!1})],ip.prototype,"isStorage",void 0),rp([kd("active",{immediate:!1,deep:!1})],ip.prototype,"onActive",null),rp([kd("isActive",{immediate:!0,deep:!1})],ip.prototype,"onIsActive",null),rp([kd("z",{immediate:!0,deep:!1})],ip.prototype,"onZ",null),rp([kd("x",{immediate:!1,deep:!1})],ip.prototype,"onX",null),rp([kd("y",{immediate:!1,deep:!1})],ip.prototype,"onY",null),rp([kd("w",{immediate:!1,deep:!1})],ip.prototype,"onW",null),rp([kd("h",{immediate:!1,deep:!1})],ip.prototype,"onH",null),rp([kd("parentW",{immediate:!1,deep:!1})],ip.prototype,"onParentW",null),rp([kd("parentH",{immediate:!1,deep:!1})],ip.prototype,"onParentH",null),ip=rp([xd({name:"DragResizeView"})],ip);const op=ip;var sp=r(973),cp={};cp.styleTagTransform=Hd(),cp.setAttributes=Fd(),cp.insert=Pd().bind(null,"head"),cp.domAPI=Id(),cp.insertStyleElement=Ud(),Nd()(sp.Z,cp),sp.Z&&sp.Z.locals&&sp.Z.locals;const lp=Wd(op,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"vdr",class:(e.active||e.isActive?"active":"inactive")+" "+(e.contentClass?e.contentClass:""),style:e.positionStyle,on:{mousedown:function(t){return e.bodyDown(t)},touchstart:function(t){return e.bodyDown(t)},touchend:function(t){return e.up(t)}}},[r("div",{ref:"container",staticClass:"content-container",style:e.sizeStyle},[e._t("default")],2),e._v(" "),e._l(e.sticks,(function(t){return r("div",{staticClass:"vdr-stick",class:["vdr-stick-"+t,e.isResizable?"":"not-resizable"],style:e.vdrStick(t),on:{mousedown:function(r){return r.stopPropagation(),r.preventDefault(),e.stickDown(t,r)},touchstart:function(r){return r.stopPropagation(),r.preventDefault(),e.stickDown(t,r)}}})}))],2)}),[],!1,null,"3e98848e",null).exports,fp=[Vd,Kd,tp,lp],up=e=>{up.installed||(up.installed=!0,fp.map((t=>{e.component(t.name,t)})))};"undefined"!=typeof window&&window.Vue&&up(window.Vue);const hp={}})();var a=n.Ip,i=n.Ud,o=n.$p,s=n.OO,c=n.Rf,l=n.ZP;export{a as DragResizeView,i as EMacro,o as FileViewer,s as ImageViewer,c as VideoViewer,l as default};
2
+ var e={354:function(e){var t;e.exports=(t=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports=function(e){var t=function(e,t){return e+t&4294967295},n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e,n,r,i,a,s){return n=t(t(n,e),t(i,s)),t(n<<a|n>>>32-a,r)}function i(e,t,n,i,a,s,o){return r(t&n|~t&i,e,t,a,s,o)}function a(e,t,n,i,a,s,o){return r(t&i|n&~i,e,t,a,s,o)}function s(e,t,n,i,a,s,o){return r(t^n^i,e,t,a,s,o)}function o(e,t,n,i,a,s,o){return r(n^(t|~i),e,t,a,s,o)}function l(e,n){var r=e[0],l=e[1],c=e[2],u=e[3];r=i(r,l,c,u,n[0],7,-680876936),u=i(u,r,l,c,n[1],12,-389564586),c=i(c,u,r,l,n[2],17,606105819),l=i(l,c,u,r,n[3],22,-1044525330),r=i(r,l,c,u,n[4],7,-176418897),u=i(u,r,l,c,n[5],12,1200080426),c=i(c,u,r,l,n[6],17,-1473231341),l=i(l,c,u,r,n[7],22,-45705983),r=i(r,l,c,u,n[8],7,1770035416),u=i(u,r,l,c,n[9],12,-1958414417),c=i(c,u,r,l,n[10],17,-42063),l=i(l,c,u,r,n[11],22,-1990404162),r=i(r,l,c,u,n[12],7,1804603682),u=i(u,r,l,c,n[13],12,-40341101),c=i(c,u,r,l,n[14],17,-1502002290),r=a(r,l=i(l,c,u,r,n[15],22,1236535329),c,u,n[1],5,-165796510),u=a(u,r,l,c,n[6],9,-1069501632),c=a(c,u,r,l,n[11],14,643717713),l=a(l,c,u,r,n[0],20,-373897302),r=a(r,l,c,u,n[5],5,-701558691),u=a(u,r,l,c,n[10],9,38016083),c=a(c,u,r,l,n[15],14,-660478335),l=a(l,c,u,r,n[4],20,-405537848),r=a(r,l,c,u,n[9],5,568446438),u=a(u,r,l,c,n[14],9,-1019803690),c=a(c,u,r,l,n[3],14,-187363961),l=a(l,c,u,r,n[8],20,1163531501),r=a(r,l,c,u,n[13],5,-1444681467),u=a(u,r,l,c,n[2],9,-51403784),c=a(c,u,r,l,n[7],14,1735328473),r=s(r,l=a(l,c,u,r,n[12],20,-1926607734),c,u,n[5],4,-378558),u=s(u,r,l,c,n[8],11,-2022574463),c=s(c,u,r,l,n[11],16,1839030562),l=s(l,c,u,r,n[14],23,-35309556),r=s(r,l,c,u,n[1],4,-1530992060),u=s(u,r,l,c,n[4],11,1272893353),c=s(c,u,r,l,n[7],16,-155497632),l=s(l,c,u,r,n[10],23,-1094730640),r=s(r,l,c,u,n[13],4,681279174),u=s(u,r,l,c,n[0],11,-358537222),c=s(c,u,r,l,n[3],16,-722521979),l=s(l,c,u,r,n[6],23,76029189),r=s(r,l,c,u,n[9],4,-640364487),u=s(u,r,l,c,n[12],11,-421815835),c=s(c,u,r,l,n[15],16,530742520),r=o(r,l=s(l,c,u,r,n[2],23,-995338651),c,u,n[0],6,-198630844),u=o(u,r,l,c,n[7],10,1126891415),c=o(c,u,r,l,n[14],15,-1416354905),l=o(l,c,u,r,n[5],21,-57434055),r=o(r,l,c,u,n[12],6,1700485571),u=o(u,r,l,c,n[3],10,-1894986606),c=o(c,u,r,l,n[10],15,-1051523),l=o(l,c,u,r,n[1],21,-2054922799),r=o(r,l,c,u,n[8],6,1873313359),u=o(u,r,l,c,n[15],10,-30611744),c=o(c,u,r,l,n[6],15,-1560198380),l=o(l,c,u,r,n[13],21,1309151649),r=o(r,l,c,u,n[4],6,-145523070),u=o(u,r,l,c,n[11],10,-1120210379),c=o(c,u,r,l,n[2],15,718787259),l=o(l,c,u,r,n[9],21,-343485551),e[0]=t(r,e[0]),e[1]=t(l,e[1]),e[2]=t(c,e[2]),e[3]=t(u,e[3])}function c(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function u(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function h(e){var t,n,r,i,a,s,o=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=o;t+=64)l(u,c(e.substring(t-64,t)));for(n=(e=e.substring(t-64)).length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<n;t+=1)r[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(r[t>>2]|=128<<(t%4<<3),t>55)for(l(u,r),t=0;t<16;t+=1)r[t]=0;return i=(i=8*o).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(i[2],16),s=parseInt(i[1],16)||0,r[14]=a,r[15]=s,l(u,r),u}function f(e){var t,n,r,i,a,s,o=e.length,c=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=o;t+=64)l(c,u(e.subarray(t-64,t)));for(n=(e=t-64<o?e.subarray(t-64):new Uint8Array(0)).length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<n;t+=1)r[t>>2]|=e[t]<<(t%4<<3);if(r[t>>2]|=128<<(t%4<<3),t>55)for(l(c,r),t=0;t<16;t+=1)r[t]=0;return i=(i=8*o).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(i[2],16),s=parseInt(i[1],16)||0,r[14]=a,r[15]=s,l(c,r),c}function d(e){var t,r="";for(t=0;t<4;t+=1)r+=n[e>>8*t+4&15]+n[e>>8*t&15];return r}function p(e){var t;for(t=0;t<e.length;t+=1)e[t]=d(e[t]);return e.join("")}function m(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function g(e,t){var n,r=e.length,i=new ArrayBuffer(r),a=new Uint8Array(i);for(n=0;n<r;n+=1)a[n]=e.charCodeAt(n);return t?a:i}function v(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function y(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),n?r:r.buffer}function b(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function x(){this.reset()}return"5d41402abc4b2a76b9719d911017c592"!==p(h("hello"))&&(t=function(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var i,a,s,o,l=this.byteLength,c=t(n,l),u=l;return r!==e&&(u=t(r,l)),c>u?new ArrayBuffer(0):(i=u-c,a=new ArrayBuffer(i),s=new Uint8Array(a),o=new Uint8Array(this,c,i),s.set(o),a)}}(),x.prototype.append=function(e){return this.appendBinary(m(e)),this},x.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,n=this._buff.length;for(t=64;t<=n;t+=64)l(this._hash,c(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},x.prototype.end=function(e){var t,n,r=this._buff,i=r.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)a[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(a,i),n=p(this._hash),e&&(n=b(n)),this.reset(),n},x.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},x.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},x.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},x.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},x.prototype._finish=function(e,t){var n,r,i,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(l(this._hash,e),a=0;a<16;a+=1)e[a]=0;n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),r=parseInt(n[2],16),i=parseInt(n[1],16)||0,e[14]=r,e[15]=i,l(this._hash,e)},x.hash=function(e,t){return x.hashBinary(m(e),t)},x.hashBinary=function(e,t){var n=p(h(e));return t?b(n):n},x.ArrayBuffer=function(){this.reset()},x.ArrayBuffer.prototype.append=function(e){var t,n=y(this._buff.buffer,e,!0),r=n.length;for(this._length+=e.byteLength,t=64;t<=r;t+=64)l(this._hash,u(n.subarray(t-64,t)));return this._buff=t-64<r?new Uint8Array(n.buffer.slice(t-64)):new Uint8Array(0),this},x.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,i=r.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)a[t>>2]|=r[t]<<(t%4<<3);return this._finish(a,i),n=p(this._hash),e&&(n=b(n)),this.reset(),n},x.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},x.ArrayBuffer.prototype.getState=function(){var e=x.prototype.getState.call(this);return e.buff=v(e.buff),e},x.ArrayBuffer.prototype.setState=function(e){return e.buff=g(e.buff,!0),x.prototype.setState.call(this,e)},x.ArrayBuffer.prototype.destroy=x.prototype.destroy,x.ArrayBuffer.prototype._finish=x.prototype._finish,x.ArrayBuffer.hash=function(e,t){var n=p(f(new Uint8Array(e)));return t?b(n):n},x}()})),class{md5(e,n,r){this.aborted=!1,this.progress=0;let i=0;const a=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,s=2097152,o=Math.ceil(e.size/s),l=new t.ArrayBuffer,c=new FileReader;function u(){const t=i*s,n=t+s>=e.size?e.size:t+s;c.readAsArrayBuffer(a.call(e,t,n))}u(),c.onloadend=e=>{l.append(e.target.result),i++,this.progress=i/o,r&&"function"==typeof r&&r(this.progress),this.aborted?n("aborted"):i<o?u():n(null,l.end())}}abort(){this.aborted=!0}})},973:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(81),i=n.n(r),a=n(645),s=n.n(a)()(i());s.push([e.id,".vdr[data-v-3e98848e] {\n position: absolute;\n box-sizing: border-box;\n}\n.vdr.active[data-v-3e98848e]:before {\n content: '';\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n box-sizing: border-box;\n outline: 1px dashed #d6d6d6;\n}\n.vdr-stick[data-v-3e98848e] {\n box-sizing: border-box;\n position: absolute;\n font-size: 1px;\n background: #ffffff;\n border: 2px solid #6c6c6c;\n box-shadow: 0 0 2px #bbb;\n}\n.inactive .vdr-stick[data-v-3e98848e] {\n display: none;\n}\n.vdr-stick-tl[data-v-3e98848e],\n.vdr-stick-br[data-v-3e98848e] {\n cursor: nwse-resize;\n}\n.vdr-stick-tm[data-v-3e98848e],\n.vdr-stick-bm[data-v-3e98848e] {\n left: 50%;\n cursor: ns-resize;\n}\n.vdr-stick-tr[data-v-3e98848e],\n.vdr-stick-bl[data-v-3e98848e] {\n cursor: nesw-resize;\n}\n.vdr-stick-ml[data-v-3e98848e],\n.vdr-stick-mr[data-v-3e98848e] {\n top: 50%;\n cursor: ew-resize;\n}\n.vdr-stick.not-resizable[data-v-3e98848e] {\n display: none;\n}\n.content-container[data-v-3e98848e] {\n display: block;\n position: relative;\n}\n",""]);const o=s},279:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(81),i=n.n(r),a=n(645),s=n.n(a)()(i());s.push([e.id,".app-container[data-v-7a6f68ae] {\n height: 100%;\n width: 100%;\n margin: 0;\n padding: 0;\n background-color: aqua;\n}\n.click-button[data-v-7a6f68ae] {\n padding: 10px;\n font-size: 16px;\n color: white;\n border-radius: 15px;\n background-color: blue;\n}\n",""]);const o=s},906:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(81),i=n.n(r),a=n(645),s=n.n(a),o=n(145),l=s()(i());l.i(o.Z),l.push([e.id,"\n",""]);const c=l},404:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(81),i=n.n(r),a=n(645),s=n.n(a),o=n(487),l=s()(i());l.i(o.Z),l.push([e.id,'/* @import "./style/css/index.less"; */\n',""]);const c=l},366:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(81),i=n.n(r),a=n(645),s=n.n(a),o=n(638),l=s()(i());l.i(o.Z),l.push([e.id,"\n",""]);const c=l},145:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(81),i=n.n(r),a=n(645),s=n.n(a),o=n(667),l=n.n(o),c=new URL(n(554),n.b),u=s()(i()),h=l()(c);u.push([e.id,'.duo-viewer {\n position: fixed;\n top: 0;\n left: 0;\n z-index: 10000;\n width: 100%;\n height: 100vh;\n}\n.duo-viewer-mask {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.6);\n z-index: 9;\n}\n.duo-viewer-mask__image {\n cursor: grab;\n height: 750px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 8;\n transition-property: transform, height, width;\n transition-duration: 0.3s, 0.3s, 0.3s;\n}\n.duo-viewer-footer {\n position: absolute;\n text-align: center;\n bottom: 0;\n left: 0;\n width: 100%;\n z-index: 10;\n}\n.duo-viewer-footer__title {\n color: #cfcfcf;\n position: absolute;\n bottom: 95px;\n left: 50%;\n transform: translate(-50%, 0%);\n z-index: 10;\n width: 100%;\n}\n.duo-viewer-footer__toolbar {\n position: absolute;\n bottom: 60px;\n left: 50%;\n transform: translate(-50%, 0%);\n z-index: 10;\n}\n.duo-viewer-footer__toolbar li {\n margin: 2px;\n background-color: rgba(0, 0, 0, 0.5);\n border-radius: 50%;\n cursor: pointer;\n float: left;\n height: 28px;\n overflow: hidden;\n -webkit-transition: background-color 0.15s;\n transition: background-color 0.15s;\n width: 28px;\n position: relative;\n}\n.duo-viewer-footer__toolbar li::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n content: "";\n display: inline-block;\n background: url('+h+') no-repeat;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__zoom-in::after {\n background-position: 4px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__zoom-out::after {\n background-position: -16px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__one-to-one::after {\n background-position: -35px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__reset::after {\n background-position: -56px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__prev::after {\n background-position: -77px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__play {\n width: 34px;\n height: 34px;\n margin-top: -2px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__play::after {\n background-position: -93px 6px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__next::after {\n background-position: -116px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__rotate-left::after {\n background-position: -136px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__rotate-right::after {\n background-position: -156px 3px;\n}\n.duo-viewer-footer__navbar {\n width: 100%;\n height: 50px;\n background: rgba(0, 0, 0, 0.9);\n overflow: hidden;\n}\n.duo-viewer-footer__navbar-thumbnail-image {\n height: 100%;\n width: 80px;\n -o-object-fit: fill;\n object-fit: fill;\n transform: translateX(-30px);\n}\n.duo-viewer-footer__navbar-thumbnail-item {\n margin: 0 2px;\n color: transparent;\n cursor: pointer;\n float: left;\n font-size: 0;\n width: 30px;\n opacity: 0.2;\n overflow: hidden;\n -webkit-transition: opacity 0.15s;\n transition: opacity 0.15s;\n}\n.duo-viewer-footer__navbar-thumbnail-item.viewer-current {\n opacity: 0.9;\n}\n.duo-viewer-footer__navbar-thumbnail-wrap {\n position: relative;\n overflow: hidden;\n width: 660px;\n height: inherit;\n margin: 0 auto;\n}\n.duo-viewer-footer__navbar-thumbnail-list {\n padding: 10px 0;\n width: auto;\n box-sizing: border-box;\n position: absolute;\n top: 0;\n left: 50%;\n transition: all 0.3s;\n}\n.duo-viewer-close {\n background-color: rgba(0, 0, 0, 0.9);\n border-radius: 0% 0% 0% 100%;\n cursor: pointer;\n height: 50px;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 0.15s;\n width: 50px;\n z-index: 10;\n line-height: 50px;\n text-align: center;\n}\n.duo-viewer-close__off {\n margin: 18px 12px;\n position: relative;\n width: 2em;\n height: 0.3em;\n background-color: #fff;\n transform: rotate(45deg);\n border-radius: 0.15em;\n}\n.duo-viewer-close__off:after {\n content: "";\n position: absolute;\n width: 2em;\n height: 0.3em;\n top: 0;\n left: 0;\n background-color: #fff;\n transform: rotate(90deg);\n border-radius: 0.15em;\n}\n',""]);const f=u},487:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(81),i=n.n(r),a=n(645),s=n.n(a),o=n(667),l=n.n(o),c=new URL(n(348),n.b),u=s()(i()),h=l()(c);u.push([e.id,'.duo-viewer {\n position: fixed;\n top: 0;\n left: 0;\n z-index: 10000;\n width: 100%;\n height: 100vh;\n}\n.duo-viewer-mask {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.6);\n z-index: 9;\n display: flex;\n justify-content: center;\n align-items: center; \n}\n.duo-viewer-mask__image {\n cursor: grab;\n /* height: 80%; \n width: 80%; */\n position: absolute; \n /* top: 50%;\n left: 50%;\n transform: translate(-50%, -50%); */\n z-index: 8;\n /* transition-property: transform, height, width; */\n transition-duration: 0.3s, 0.3s, 0.3s;\n}\n.duo-viewer-footer {\n position: absolute;\n text-align: center;\n bottom: 0;\n left: 0;\n width: 100%;\n z-index: 10;\n}\n.duo-viewer-footer__title {\n color: #cfcfcf;\n position: absolute;\n bottom: 95px;\n left: 50%;\n transform: translate(-50%, 0%);\n z-index: 10;\n width: 100%;\n}\n.duo-viewer-footer__toolbar {\n position: absolute;\n bottom: 60px;\n left: 50%;\n transform: translate(-50%, 0%);\n z-index: 10;\n}\n.duo-viewer-footer__toolbar li {\n margin: 2px;\n background-color: rgba(0, 0, 0, 0.5);\n border-radius: 50%;\n cursor: pointer;\n float: left;\n height: 28px;\n overflow: hidden;\n -webkit-transition: background-color 0.15s;\n transition: background-color 0.15s;\n width: 28px;\n position: relative;\n}\n.duo-viewer-footer__toolbar li::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n content: "";\n display: inline-block;\n background: url('+h+') no-repeat;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__zoom-in::after {\n background-position: 4px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__zoom-out::after {\n background-position: -16px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__one-to-one::after {\n background-position: -35px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__reset::after {\n background-position: -56px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__prev::after {\n background-position: -77px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__play {\n width: 34px;\n height: 34px;\n margin-top: -2px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__play::after {\n background-position: -93px 6px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__next::after {\n background-position: -116px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__rotate-left::after {\n background-position: -136px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__rotate-right::after {\n background-position: -156px 3px;\n}\n.duo-viewer-footer__navbar {\n width: 100%;\n height: 50px;\n background: rgba(0, 0, 0, 0.9);\n overflow: hidden;\n}\n.duo-viewer-footer__navbar-thumbnail-image {\n height: 100%;\n width: 80px;\n -o-object-fit: fill;\n object-fit: fill;\n transform: translateX(-30px);\n}\n.duo-viewer-footer__navbar-thumbnail-item {\n margin: 0 2px;\n color: transparent;\n cursor: pointer;\n float: left;\n font-size: 0;\n width: 30px;\n opacity: 0.2;\n overflow: hidden;\n -webkit-transition: opacity 0.15s;\n transition: opacity 0.15s;\n}\n.duo-viewer-footer__navbar-thumbnail-item.viewer-current {\n opacity: 0.9;\n}\n.duo-viewer-footer__navbar-thumbnail-wrap {\n position: relative;\n overflow: hidden;\n width: 660px;\n height: inherit;\n margin: 0 auto;\n}\n.duo-viewer-footer__navbar-thumbnail-list {\n padding: 10px 0;\n width: auto;\n box-sizing: border-box;\n position: absolute;\n top: 0;\n left: 50%;\n transition: all 0.3s;\n}\n.duo-viewer-close {\n background-color: rgba(0, 0, 0, 0.9);\n border-radius: 0% 0% 0% 100%;\n cursor: pointer;\n height: 50px;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 0.15s;\n width: 50px;\n z-index: 10;\n line-height: 50px;\n text-align: center;\n}\n.duo-viewer-close__off {\n margin: 18px 12px;\n position: relative;\n width: 2em;\n height: 0.3em;\n background-color: #fff;\n transform: rotate(45deg);\n border-radius: 0.15em;\n}\n.duo-viewer-close__off:after {\n content: "";\n position: absolute;\n width: 2em;\n height: 0.3em;\n top: 0;\n left: 0;\n background-color: #fff;\n transform: rotate(90deg);\n border-radius: 0.15em;\n}\n',""]);const f=u},638:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(81),i=n.n(r),a=n(645),s=n.n(a),o=n(667),l=n.n(o),c=new URL(n(58),n.b),u=s()(i()),h=l()(c);u.push([e.id,'.duo-viewer {\n position: fixed;\n top: 0;\n left: 0;\n z-index: 10000;\n width: 100%;\n height: 100vh;\n}\n.duo-viewer-mask {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.6);\n z-index: 9;\n}\n.duo-viewer-mask__image {\n cursor: grab;\n height: 750px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 8;\n transition-property: transform, height, width;\n transition-duration: 0.3s, 0.3s, 0.3s;\n}\n.duo-viewer-footer {\n position: absolute;\n text-align: center;\n bottom: 0;\n left: 0;\n width: 100%;\n z-index: 10;\n}\n.duo-viewer-footer__title {\n color: #cfcfcf;\n position: absolute;\n bottom: 95px;\n left: 50%;\n transform: translate(-50%, 0%);\n z-index: 10;\n width: 100%;\n}\n.duo-viewer-footer__toolbar {\n position: absolute;\n bottom: 60px;\n left: 50%;\n transform: translate(-50%, 0%);\n z-index: 10;\n}\n.duo-viewer-footer__toolbar li {\n margin: 2px;\n background-color: rgba(0, 0, 0, 0.5);\n border-radius: 50%;\n cursor: pointer;\n float: left;\n height: 28px;\n overflow: hidden;\n -webkit-transition: background-color 0.15s;\n transition: background-color 0.15s;\n width: 28px;\n position: relative;\n}\n.duo-viewer-footer__toolbar li::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n content: "";\n display: inline-block;\n background: url('+h+') no-repeat;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__zoom-in::after {\n background-position: 4px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__zoom-out::after {\n background-position: -16px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__one-to-one::after {\n background-position: -35px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__reset::after {\n background-position: -56px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__prev::after {\n background-position: -77px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__play {\n width: 34px;\n height: 34px;\n margin-top: -2px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__play::after {\n background-position: -93px 6px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__next::after {\n background-position: -116px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__rotate-left::after {\n background-position: -136px 3px;\n}\n.duo-viewer-footer__toolbar li.duo-viewer-footer__rotate-right::after {\n background-position: -156px 3px;\n}\n.duo-viewer-footer__navbar {\n width: 100%;\n height: 50px;\n background: rgba(0, 0, 0, 0.9);\n overflow: hidden;\n}\n.duo-viewer-footer__navbar-thumbnail-image {\n height: 100%;\n width: 80px;\n -o-object-fit: fill;\n object-fit: fill;\n transform: translateX(-30px);\n}\n.duo-viewer-footer__navbar-thumbnail-item {\n margin: 0 2px;\n color: transparent;\n cursor: pointer;\n float: left;\n font-size: 0;\n width: 30px;\n opacity: 0.2;\n overflow: hidden;\n -webkit-transition: opacity 0.15s;\n transition: opacity 0.15s;\n}\n.duo-viewer-footer__navbar-thumbnail-item.viewer-current {\n opacity: 0.9;\n}\n.duo-viewer-footer__navbar-thumbnail-wrap {\n position: relative;\n overflow: hidden;\n width: 660px;\n height: inherit;\n margin: 0 auto;\n}\n.duo-viewer-footer__navbar-thumbnail-list {\n padding: 10px 0;\n width: auto;\n box-sizing: border-box;\n position: absolute;\n top: 0;\n left: 50%;\n transition: all 0.3s;\n}\n.duo-viewer-close {\n background-color: rgba(0, 0, 0, 0.9);\n border-radius: 0% 0% 0% 100%;\n cursor: pointer;\n height: 50px;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 0.15s;\n width: 50px;\n z-index: 10;\n line-height: 50px;\n text-align: center;\n}\n.duo-viewer-close__off {\n margin: 18px 12px;\n position: relative;\n width: 2em;\n height: 0.3em;\n background-color: #fff;\n transform: rotate(45deg);\n border-radius: 0.15em;\n}\n.duo-viewer-close__off:after {\n content: "";\n position: absolute;\n width: 2em;\n height: 0.3em;\n top: 0;\n left: 0;\n background-color: #fff;\n transform: rotate(90deg);\n border-radius: 0.15em;\n}\n',""]);const f=u},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,a){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var o=0;o<this.length;o++){var l=this[o][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&s[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},667:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:e=>{e.exports=function(e){return e[1]}},755:function(e,t){var n,r,i;r="undefined"!=typeof window?window:this,i=function(r,i){var a=[],s=Object.getPrototypeOf,o=a.slice,l=a.flat?function(e){return a.flat.call(e)}:function(e){return a.concat.apply([],e)},c=a.push,u=a.indexOf,h={},f=h.toString,d=h.hasOwnProperty,p=d.toString,m=p.call(Object),g={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=r.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function _(e,t,n){var r,i,a=(n=n||b).createElement("script");if(a.text=e,t)for(r in x)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&a.setAttribute(r,i);n.head.appendChild(a).parentNode.removeChild(a)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?h[f.call(e)]||"object":typeof e}var T="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function E(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}S.fn=S.prototype={jquery:T,constructor:S,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(e){return this.pushStack(S.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(S.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:a.sort,splice:a.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,a,s=arguments[0]||{},o=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[o]||{},o++),"object"==typeof s||v(s)||(s={}),o===l&&(s=this,o--);o<l;o++)if(null!=(e=arguments[o]))for(t in e)r=e[t],"__proto__"!==t&&s!==r&&(c&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=s[t],a=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,s[t]=S.extend(c,a,r)):void 0!==r&&(s[t]=r));return s},S.extend({expando:"jQuery"+(T+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e)||(t=s(e))&&("function"!=typeof(n=d.call(t,"constructor")&&t.constructor)||p.call(n)!==m))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){_(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(E(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?S.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,a=e.length,s=!n;i<a;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var r,i,a=0,s=[];if(E(e))for(r=e.length;a<r;a++)null!=(i=t(e[a],a,n))&&s.push(i);else for(a in e)null!=(i=t(e[a],a,n))&&s.push(i);return l(s)},guid:1,support:g}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=a[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){h["[object "+t+"]"]=t.toLowerCase()}));var M=function(e){var t,n,r,i,a,s,o,l,c,u,h,f,d,p,m,g,v,y,b,x="sizzle"+1*new Date,_=e.document,w=0,T=0,S=le(),E=le(),M=le(),A=le(),C=function(e,t){return e===t&&(h=!0),0},R={}.hasOwnProperty,L=[],k=L.pop,P=L.push,D=L.push,O=L.slice,I=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",F="[\\x20\\t\\r\\n\\f]",B="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\[[\\x20\\t\\r\\n\\f]*("+B+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+F+"*\\]",z=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",H=new RegExp(F+"+","g"),V=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),G=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),W=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),j=new RegExp(F+"|>"),X=new RegExp(z),q=new RegExp("^"+B+"$"),$={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+z),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")},Y=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,J=/^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(){f()},se=xe((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{D.apply(L=O.call(_.childNodes),_.childNodes),L[_.childNodes.length].nodeType}catch(e){D={apply:L.length?function(e,t){P.apply(e,O.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function oe(e,t,r,i){var a,o,c,u,h,p,v,y=t&&t.ownerDocument,_=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==_&&9!==_&&11!==_)return r;if(!i&&(f(t),t=t||d,m)){if(11!==_&&(h=Q.exec(e)))if(a=h[1]){if(9===_){if(!(c=t.getElementById(a)))return r;if(c.id===a)return r.push(c),r}else if(y&&(c=y.getElementById(a))&&b(t,c)&&c.id===a)return r.push(c),r}else{if(h[2])return D.apply(r,t.getElementsByTagName(e)),r;if((a=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return D.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&!A[e+" "]&&(!g||!g.test(e))&&(1!==_||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===_&&(j.test(e)||W.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=x)),o=(p=s(e)).length;o--;)p[o]=(u?"#"+u:":scope")+" "+be(p[o]);v=p.join(",")}try{return D.apply(r,y.querySelectorAll(v)),r}catch(t){A(e,!0)}finally{u===x&&t.removeAttribute("id")}}}return l(e.replace(V,"$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[x]=!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 fe(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 pe(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&&se(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),s=a.length;s--;)n[i=a[s]]&&(n[i]=!(r[i]=n[i]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=oe.support={},a=oe.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},f=oe.setDocument=function(e){var t,i,s=e?e.ownerDocument||e:_;return s!=d&&9===s.nodeType&&s.documentElement?(p=(d=s).documentElement,m=!a(d),_!=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 p.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 p.appendChild(e).id=x,!d.getElementsByName||!d.getElementsByName(x).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;p.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\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~="+x+"-]").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#"+x+"+*").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"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=K.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",z)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=K.test(p.compareDocumentPosition),b=t||K.test(p.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},C=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(_,e)?-1:t==d||t.ownerDocument==_&&b(_,t)?1:u?I(u,e)-I(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,s=[e],o=[t];if(!i||!a)return e==d?-1:t==d?1:i?-1:a?1:u?I(u,e)-I(u,t):0;if(i===a)return fe(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)o.unshift(n);for(;s[r]===o[r];)r++;return r?fe(s[r],o[r]):s[r]==_?-1:o[r]==_?1:0},d):d},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if(f(e),n.matchesSelector&&m&&!A[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){A(t,!0)}return oe(t,d,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!=d&&f(e),b(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!=d&&f(e);var i=r.attrHandle[t.toLowerCase()],a=i&&R.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},oe.escape=function(e){return(e+"").replace(re,ie)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,r=[],i=0,a=0;if(h=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(C),h){for(;t=e[a++];)t===e[a]&&(i=r.push(a));for(;i--;)e.splice(r[i],1)}return u=null,e},i=oe.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=oe.selectors={cacheLength:50,createPseudo:ce,match:$,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]||oe.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]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return $.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=s(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+"("+F+"|$)"))&&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=oe.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(H," ")+" ").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),s="last"!==e.slice(-4),o="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,h,f,d,p,m=a!==s?"nextSibling":"previousSibling",g=t.parentNode,v=o&&t.nodeName.toLowerCase(),y=!l&&!o,b=!1;if(g){if(a){for(;m;){for(f=t;f=f[m];)if(o?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&y){for(b=(d=(c=(u=(h=(f=g)[x]||(f[x]={}))[f.uniqueID]||(h[f.uniqueID]={}))[e]||[])[0]===w&&c[1])&&c[2],f=d&&g.childNodes[d];f=++d&&f&&f[m]||(b=d=0)||p.pop();)if(1===f.nodeType&&++b&&f===t){u[e]=[w,d,b];break}}else if(y&&(b=d=(c=(u=(h=(f=t)[x]||(f[x]={}))[f.uniqueID]||(h[f.uniqueID]={}))[e]||[])[0]===w&&c[1]),!1===b)for(;(f=++d&&f&&f[m]||(b=d=0)||p.pop())&&((o?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++b||(y&&((u=(h=f[x]||(f[x]={}))[f.uniqueID]||(h[f.uniqueID]={}))[e]=[w,b]),f!==t)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return i[x]?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),s=a.length;s--;)e[r=I(e,a[s])]=!(n[r]=a[s])})):function(e){return i(e,0,n)}):i}},pseudos:{not:ce((function(e){var t=[],n=[],r=o(e.replace(V,"$1"));return r[x]?ce((function(e,t,n,i){for(var a,s=r(e,null,i,[]),o=e.length;o--;)(a=s[o])&&(e[o]=!(t[o]=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 oe(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 q.test(e||"")||oe.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===p},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 J.test(e.nodeName)},input:function(e){return Z.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]=pe(t);function ye(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function xe(e,t,n){var r=t.dir,i=t.next,a=i||r,s=n&&"parentNode"===a,o=T++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,i);return!1}:function(t,n,l){var c,u,h,f=[w,o];if(l){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(u=(h=t[x]||(t[x]={}))[t.uniqueID]||(h[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[a])&&c[0]===w&&c[1]===o)return f[2]=c[2];if(u[a]=f,f[2]=e(t,n,l))return!0}return!1}}function _e(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,s=[],o=0,l=e.length,c=null!=t;o<l;o++)(a=e[o])&&(n&&!n(a,r,i)||(s.push(a),c&&t.push(o)));return s}function Te(e,t,n,r,i,a){return r&&!r[x]&&(r=Te(r)),i&&!i[x]&&(i=Te(i,a)),ce((function(a,s,o,l){var c,u,h,f=[],d=[],p=s.length,m=a||function(e,t,n){for(var r=0,i=t.length;r<i;r++)oe(e,t[r],n);return n}(t||"*",o.nodeType?[o]:o,[]),g=!e||!a&&t?m:we(m,f,e,o,l),v=n?i||(a?e:p||r)?[]:s:g;if(n&&n(g,v,o,l),r)for(c=we(v,d),r(c,[],o,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?I(a,h):f[u])>-1&&(a[c]=!(s[c]=h))}}else v=we(v===s?v.splice(p,v.length):v),i?i(null,s,v,l):D.apply(s,v)}))}function Se(e){for(var t,n,i,a=e.length,s=r.relative[e[0].type],o=s||r.relative[" "],l=s?1:0,u=xe((function(e){return e===t}),o,!0),h=xe((function(e){return I(t,e)>-1}),o,!0),f=[function(e,n,r){var i=!s&&(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])f=[xe(_e(f),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[x]){for(i=++l;i<a&&!r.relative[e[i].type];i++);return Te(l>1&&_e(f),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(V,"$1"),n,l<i&&Se(e.slice(l,i)),i<a&&Se(e=e.slice(i)),i<a&&be(e))}f.push(n)}return _e(f)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,s=oe.tokenize=function(e,t){var n,i,a,s,o,l,c,u=E[e+" "];if(u)return t?0:u.slice(0);for(o=e,l=[],c=r.preFilter;o;){for(s in n&&!(i=G.exec(o))||(i&&(o=o.slice(i[0].length)||o),l.push(a=[])),n=!1,(i=W.exec(o))&&(n=i.shift(),a.push({value:n,type:i[0].replace(V," ")}),o=o.slice(n.length)),r.filter)!(i=$[s].exec(o))||c[s]&&!(i=c[s](i))||(n=i.shift(),a.push({value:n,type:s,matches:i}),o=o.slice(n.length));if(!n)break}return t?o.length:o?oe.error(e):E(e,l).slice(0)},o=oe.compile=function(e,t){var n,i=[],a=[],o=M[e+" "];if(!o){for(t||(t=s(e)),n=t.length;n--;)(o=Se(t[n]))[x]?i.push(o):a.push(o);o=M(e,function(e,t){var n=t.length>0,i=e.length>0,a=function(a,s,o,l,u){var h,p,g,v=0,y="0",b=a&&[],x=[],_=c,T=a||i&&r.find.TAG("*",u),S=w+=null==_?1:Math.random()||.1,E=T.length;for(u&&(c=s==d||s||u);y!==E&&null!=(h=T[y]);y++){if(i&&h){for(p=0,s||h.ownerDocument==d||(f(h),o=!m);g=e[p++];)if(g(h,s||d,o)){l.push(h);break}u&&(w=S)}n&&((h=!g&&h)&&v--,a&&b.push(h))}if(v+=y,n&&y!==v){for(p=0;g=t[p++];)g(b,x,s,o);if(a){if(v>0)for(;y--;)b[y]||x[y]||(x[y]=k.call(l));x=we(x)}D.apply(l,x),u&&!a&&x.length>0&&v+t.length>1&&oe.uniqueSort(l)}return u&&(w=S,c=_),b};return n?ce(a):a}(a,i)),o.selector=e}return o},l=oe.select=function(e,t,n,i){var a,l,c,u,h,f="function"==typeof e&&e,d=!i&&s(e=f.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;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(a=$.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&&be(l)))return D.apply(n,i),n;break}}return(f||o(e,d))(i,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=x.split("").sort(C).join("")===x,n.detectDuplicates=!!h,f(),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})),oe}(r);S.find=M,S.expr=M.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=M.uniqueSort,S.text=M.getText,S.isXMLDoc=M.isXML,S.contains=M.contains,S.escapeSelector=M.escape;var A=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r},C=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},R=S.expr.match.needsContext;function L(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var k=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(e,t,n){return v(t)?S.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?S.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?S.grep(e,(function(e){return u.call(t,e)>-1!==n})):S.filter(t,e,n)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,(function(e){return 1===e.nodeType})))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(S(e).filter((function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return r>1?S.uniqueSort(n):n},filter:function(e){return this.pushStack(P(this,e||[],!1))},not:function(e){return this.pushStack(P(this,e||[],!0))},is:function(e){return!!P(this,"string"==typeof e&&R.test(e)?S(e):e||[],!1).length}});var D,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.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]:O.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 S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),k.test(r[1])&&S.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,D=S(b);var I=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function F(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,a=[],s="string"!=typeof e&&S(e);if(!R.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&S.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?S.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?u.call(S(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return A(e,"parentNode")},parentsUntil:function(e,t,n){return A(e,"parentNode",n)},next:function(e){return F(e,"nextSibling")},prev:function(e){return F(e,"previousSibling")},nextAll:function(e){return A(e,"nextSibling")},prevAll:function(e){return A(e,"previousSibling")},nextUntil:function(e,t,n){return A(e,"nextSibling",n)},prevUntil:function(e,t,n){return A(e,"previousSibling",n)},siblings:function(e){return C((e.parentNode||{}).firstChild,e)},children:function(e){return C(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(L(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},(function(e,t){S.fn[e]=function(n,r){var i=S.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=S.filter(r,i)),this.length>1&&(N[e]||S.uniqueSort(i),I.test(e)&&i.reverse()),this.pushStack(i)}}));var B=/[^\x20\t\r\n\f]+/g;function U(e){return e}function z(e){throw e}function H(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return S.each(e.match(B)||[],(function(e,n){t[n]=!0})),t}(e):S.extend({},e);var t,n,r,i,a=[],s=[],o=-1,l=function(){for(i=i||e.once,r=t=!0;s.length;o=-1)for(n=s.shift();++o<a.length;)!1===a[o].apply(n[0],n[1])&&e.stopOnFalse&&(o=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:"")},c={add:function(){return a&&(n&&!t&&(o=a.length-1,s.push(n)),function t(n){S.each(n,(function(n,r){v(r)?e.unique&&c.has(r)||a.push(r):r&&r.length&&"string"!==w(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return S.each(arguments,(function(e,t){for(var n;(n=S.inArray(t,a,n))>-1;)a.splice(n,1),n<=o&&o--})),this},has:function(e){return e?S.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=s=[],n||t||(a=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},S.extend({Deferred:function(e){var t=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return S.Deferred((function(n){S.each(t,(function(t,r){var i=v(e[r[4]])&&e[r[4]];a[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,i){var a=0;function s(e,t,n,i){return function(){var o=this,l=arguments,c=function(){var r,c;if(!(e<a)){if((r=n.apply(o,l))===t.promise())throw new TypeError("Thenable self-resolution");c=r&&("object"==typeof r||"function"==typeof r)&&r.then,v(c)?i?c.call(r,s(a,t,U,i),s(a,t,z,i)):(a++,c.call(r,s(a,t,U,i),s(a,t,z,i),s(a,t,U,t.notifyWith))):(n!==U&&(o=void 0,l=[r]),(i||t.resolveWith)(o,l))}},u=i?c:function(){try{c()}catch(r){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(r,u.stackTrace),e+1>=a&&(n!==z&&(o=void 0,l=[r]),t.rejectWith(o,l))}};e?u():(S.Deferred.getStackHook&&(u.stackTrace=S.Deferred.getStackHook()),r.setTimeout(u))}}return S.Deferred((function(r){t[0][3].add(s(0,r,v(i)?i:U,r.notifyWith)),t[1][3].add(s(0,r,v(e)?e:U)),t[2][3].add(s(0,r,v(n)?n:z))})).promise()},promise:function(e){return null!=e?S.extend(e,i):i}},a={};return S.each(t,(function(e,r){var s=r[2],o=r[5];i[r[1]]=s.add,o&&s.add((function(){n=o}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),s.add(r[3].fire),a[r[0]]=function(){return a[r[0]+"With"](this===a?void 0:this,arguments),this},a[r[0]+"With"]=s.fireWith})),i.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),i=o.call(arguments),a=S.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?o.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&(H(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||v(i[n]&&i[n].then)))return a.then();for(;n--;)H(i[n],s(n),a.reject);return a.promise()}});var V=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&V.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){r.setTimeout((function(){throw e}))};var G=S.Deferred();function W(){b.removeEventListener("DOMContentLoaded",W),r.removeEventListener("load",W),S.ready()}S.fn.ready=function(e){return G.then(e).catch((function(e){S.readyException(e)})),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==e&&--S.readyWait>0||G.resolveWith(b,[S]))}}),S.ready.then=G.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(S.ready):(b.addEventListener("DOMContentLoaded",W),r.addEventListener("load",W));var j=function(e,t,n,r,i,a,s){var o=0,l=e.length,c=null==n;if("object"===w(n))for(o in i=!0,n)j(e,t,o,n[o],!0,a,s);else if(void 0!==r&&(i=!0,v(r)||(s=!0),c&&(s?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(S(e),n)})),t))for(;o<l;o++)t(e[o],n,s?r:r.call(e[o],o,t(e[o],n)));return i?e:c?t.call(e):l?t(e[0],n):a},X=/^-ms-/,q=/-([a-z])/g;function $(e,t){return t.toUpperCase()}function Y(e){return e.replace(X,"ms-").replace(q,$)}var Z=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function J(){this.expando=S.expando+J.uid++}J.uid=1,J.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Z(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[Y(t)]=n;else for(r in t)i[Y(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][Y(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(Y):(t=Y(t))in r?[t]:t.match(B)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||S.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&&!S.isEmptyObject(t)}};var K=new J,Q=new J,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return Q.hasData(e)||K.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return K.access(e,t,n)},_removeData:function(e,t){K.remove(e,t)}}),S.fn.extend({data:function(e,t){var n,r,i,a=this[0],s=a&&a.attributes;if(void 0===e){if(this.length&&(i=Q.get(a),1===a.nodeType&&!K.get(a,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&(r=Y(r.slice(5)),ne(a,r,i[r]));K.set(a,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){Q.set(this,e)})):j(this,(function(t){var n;if(a&&void 0===t)return void 0!==(n=Q.get(a,e))||void 0!==(n=ne(a,e))?n:void 0;this.each((function(){Q.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=K.get(e,t),n&&(!r||Array.isArray(n)?r=K.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),a=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete a.stop,i.call(e,(function(){S.dequeue(e,t)}),a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return K.get(e,n)||K.access(e,n,{empty:S.Callbacks("once memory").add((function(){K.remove(e,[t+"queue",n])}))})}}),S.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?S.queue(this[0],e):void 0===t?this:this.each((function(){var n=S.queue(this,e,t);S._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&S.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){S.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),a=this,s=this.length,o=function(){--r||i.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=K.get(a[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(o));return o(),i.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),ae=["Top","Right","Bottom","Left"],se=b.documentElement,oe=function(e){return S.contains(e.ownerDocument,e)},le={composed:!0};se.getRootNode&&(oe=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&oe(e)&&"none"===S.css(e,"display")};function ue(e,t,n,r){var i,a,s=20,o=r?function(){return r.cur()}:function(){return S.css(e,t,"")},l=o(),c=n&&n[3]||(S.cssNumber[t]?"":"px"),u=e.nodeType&&(S.cssNumber[t]||"px"!==c&&+l)&&ie.exec(S.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)S.style(e,t,u+c),(1-a)*(1-(a=o()/l||.5))<=0&&(s=0),u/=a;u*=2,S.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 he={};function fe(e){var t,n=e.ownerDocument,r=e.nodeName,i=he[r];return i||(t=n.body.appendChild(n.createElement(r)),i=S.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),he[r]=i,i)}function de(e,t){for(var n,r,i=[],a=0,s=e.length;a<s;a++)(r=e[a]).style&&(n=r.style.display,t?("none"===n&&(i[a]=K.get(r,"display")||null,i[a]||(r.style.display="")),""===r.style.display&&ce(r)&&(i[a]=fe(r))):"none"!==n&&(i[a]="none",K.set(r,"display",n)));for(a=0;a<s;a++)null!=i[a]&&(e[a].style.display=i[a]);return e}S.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ce(this)?S(this).show():S(this).hide()}))}});var pe,me,ge=/^(?:checkbox|radio)$/i,ve=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ye=/^$|^module$|\/(?:java|ecma)script/i;pe=b.createDocumentFragment().appendChild(b.createElement("div")),(me=b.createElement("input")).setAttribute("type","radio"),me.setAttribute("checked","checked"),me.setAttribute("name","t"),pe.appendChild(me),g.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="<option></option>",g.option=!!pe.lastChild;var be={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 xe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&L(e,t)?S.merge([e],n):n}function _e(e,t){for(var n=0,r=e.length;n<r;n++)K.set(e[n],"globalEval",!t||K.get(t[n],"globalEval"))}be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,g.option||(be.optgroup=be.option=[1,"<select multiple='multiple'>","</select>"]);var we=/<|&#?\w+;/;function Te(e,t,n,r,i){for(var a,s,o,l,c,u,h=t.createDocumentFragment(),f=[],d=0,p=e.length;d<p;d++)if((a=e[d])||0===a)if("object"===w(a))S.merge(f,a.nodeType?[a]:a);else if(we.test(a)){for(s=s||h.appendChild(t.createElement("div")),o=(ve.exec(a)||["",""])[1].toLowerCase(),l=be[o]||be._default,s.innerHTML=l[1]+S.htmlPrefilter(a)+l[2],u=l[0];u--;)s=s.lastChild;S.merge(f,s.childNodes),(s=h.firstChild).textContent=""}else f.push(t.createTextNode(a));for(h.textContent="",d=0;a=f[d++];)if(r&&S.inArray(a,r)>-1)i&&i.push(a);else if(c=oe(a),s=xe(h.appendChild(a),"script"),c&&_e(s),n)for(u=0;a=s[u++];)ye.test(a.type||"")&&n.push(a);return h}var Se=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function Me(){return!1}function Ae(e,t){return e===function(){try{return b.activeElement}catch(e){}}()==("focus"===t)}function Ce(e,t,n,r,i,a){var s,o;if("object"==typeof t){for(o in"string"!=typeof n&&(r=r||n,n=void 0),t)Ce(e,o,n,r,t[o],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&&(s=i,i=function(e){return S().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=S.guid++)),e.each((function(){S.event.add(this,t,i,r,n)}))}function Re(e,t,n){n?(K.set(e,t,!1),S.event.add(e,t,{namespace:!1,handler:function(e){var r,i,a=K.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(S.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=o.call(arguments),K.set(this,t,a),r=n(this,t),this[t](),a!==(i=K.get(this,t))||r?K.set(this,t,!1):i={},a!==i)return e.stopImmediatePropagation(),e.preventDefault(),i&&i.value}else a.length&&(K.set(this,t,{value:S.event.trigger(S.extend(a[0],S.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===K.get(e,t)&&S.event.add(e,t,Ee)}S.event={global:{},add:function(e,t,n,r,i){var a,s,o,l,c,u,h,f,d,p,m,g=K.get(e);if(Z(e))for(n.handler&&(n=(a=n).handler,i=a.selector),i&&S.find.matchesSelector(se,i),n.guid||(n.guid=S.guid++),(l=g.events)||(l=g.events=Object.create(null)),(s=g.handle)||(s=g.handle=function(t){return void 0!==S&&S.event.triggered!==t.type?S.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(B)||[""]).length;c--;)d=m=(o=Se.exec(t[c])||[])[1],p=(o[2]||"").split(".").sort(),d&&(h=S.event.special[d]||{},d=(i?h.delegateType:h.bindType)||d,h=S.event.special[d]||{},u=S.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:p.join(".")},a),(f=l[d])||((f=l[d]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,r,p,s)||e.addEventListener&&e.addEventListener(d,s)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,u):f.push(u),S.event.global[d]=!0)},remove:function(e,t,n,r,i){var a,s,o,l,c,u,h,f,d,p,m,g=K.hasData(e)&&K.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(B)||[""]).length;c--;)if(d=m=(o=Se.exec(t[c])||[])[1],p=(o[2]||"").split(".").sort(),d){for(h=S.event.special[d]||{},f=l[d=(r?h.delegateType:h.bindType)||d]||[],o=o[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=a=f.length;a--;)u=f[a],!i&&m!==u.origType||n&&n.guid!==u.guid||o&&!o.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(f.splice(a,1),u.selector&&f.delegateCount--,h.remove&&h.remove.call(e,u));s&&!f.length&&(h.teardown&&!1!==h.teardown.call(e,p,g.handle)||S.removeEvent(e,d,g.handle),delete l[d])}else for(d in l)S.event.remove(e,d+t[c],n,r,!0);S.isEmptyObject(l)&&K.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,a,s,o=new Array(arguments.length),l=S.event.fix(e),c=(K.get(this,"events")||Object.create(null))[l.type]||[],u=S.event.special[l.type]||{};for(o[0]=l,t=1;t<arguments.length;t++)o[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=S.event.handlers.call(this,l,c),t=0;(i=s[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=((S.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,o))&&!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,s,o=[],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=[],s={},n=0;n<l;n++)void 0===s[i=(r=t[n]).selector+" "]&&(s[i]=r.needsContext?S(i,this).index(c)>-1:S.find(i,this,null,[c]).length),s[i]&&a.push(r);a.length&&o.push({elem:c,handlers:a})}return c=this,l<t.length&&o.push({elem:c,handlers:t.slice(l)}),o},addProp:function(e,t){Object.defineProperty(S.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(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[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ge.test(t.type)&&t.click&&L(t,"input")&&Re(t,"click",Ee),!1},trigger:function(e){var t=this||e;return ge.test(t.type)&&t.click&&L(t,"input")&&Re(t,"click"),!0},_default:function(e){var t=e.target;return ge.test(t.type)&&t.click&&L(t,"input")&&K.get(t,"click")||L(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ee: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&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Me,isPropagationStopped:Me,isImmediatePropagationStopped:Me,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ee,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ee,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ee,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.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},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},(function(e,t){S.event.special[e]={setup:function(){return Re(this,e,Ae),!1},trigger:function(){return Re(this,e),!0},_default:function(){return!0},delegateType:t}})),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){S.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,a=e.handleObj;return i&&(i===r||S.contains(r,i))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}})),S.fn.extend({on:function(e,t,n,r){return Ce(this,e,t,n,r)},one:function(e,t,n,r){return Ce(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(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(){S.event.remove(this,e,n,t)}))}});var Le=/<script|<style|<link/i,ke=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function De(e,t){return L(e,"table")&&L(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Oe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ie(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ne(e,t){var n,r,i,a,s,o;if(1===t.nodeType){if(K.hasData(e)&&(o=K.get(e).events))for(i in K.remove(t,"handle events"),o)for(n=0,r=o[i].length;n<r;n++)S.event.add(t,i,o[i][n]);Q.hasData(e)&&(a=Q.access(e),s=S.extend({},a),Q.set(t,s))}}function Fe(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ge.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Be(e,t,n,r){t=l(t);var i,a,s,o,c,u,h=0,f=e.length,d=f-1,p=t[0],m=v(p);if(m||f>1&&"string"==typeof p&&!g.checkClone&&ke.test(p))return e.each((function(i){var a=e.eq(i);m&&(t[0]=p.call(this,i,a.html())),Be(a,t,n,r)}));if(f&&(a=(i=Te(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=a),a||r)){for(o=(s=S.map(xe(i,"script"),Oe)).length;h<f;h++)c=i,h!==d&&(c=S.clone(c,!0,!0),o&&S.merge(s,xe(c,"script"))),n.call(e[h],c,h);if(o)for(u=s[s.length-1].ownerDocument,S.map(s,Ie),h=0;h<o;h++)c=s[h],ye.test(c.type||"")&&!K.access(c,"globalEval")&&S.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?S._evalUrl&&!c.noModule&&S._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):_(c.textContent.replace(Pe,""),c,u))}return e}function Ue(e,t,n){for(var r,i=t?S.filter(t,e):e,a=0;null!=(r=i[a]);a++)n||1!==r.nodeType||S.cleanData(xe(r)),r.parentNode&&(n&&oe(r)&&_e(xe(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,a,s,o=e.cloneNode(!0),l=oe(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(s=xe(o),r=0,i=(a=xe(e)).length;r<i;r++)Fe(a[r],s[r]);if(t)if(n)for(a=a||xe(e),s=s||xe(o),r=0,i=a.length;r<i;r++)Ne(a[r],s[r]);else Ne(e,o);return(s=xe(o,"script")).length>0&&_e(s,!l&&xe(e,"script")),o},cleanData:function(e){for(var t,n,r,i=S.event.special,a=0;void 0!==(n=e[a]);a++)if(Z(n)){if(t=n[K.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[K.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Ue(this,e,!0)},remove:function(e){return Ue(this,e)},text:function(e){return j(this,(function(e){return void 0===e?S.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&&(S.cleanData(xe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return S.clone(this,e,t)}))},html:function(e){return j(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&&!Le.test(e)&&!be[(ve.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(xe(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;S.inArray(this,e)<0&&(S.cleanData(xe(this)),n&&n.replaceChild(t,this))}),e)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){S.fn[e]=function(e){for(var n,r=[],i=S(e),a=i.length-1,s=0;s<=a;s++)n=s===a?this:this.clone(!0),S(i[s])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var ze=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),He=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Ve=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},Ge=new RegExp(ae.join("|"),"i");function We(e,t,n){var r,i,a,s,o=e.style;return(n=n||He(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||oe(e)||(s=S.style(e,t)),!g.pixelBoxStyles()&&ze.test(s)&&Ge.test(t)&&(r=o.width,i=o.minWidth,a=o.maxWidth,o.minWidth=o.maxWidth=o.width=s,s=n.width,o.width=r,o.minWidth=i,o.maxWidth=a)),void 0!==s?s+"":s}function je(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){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%",se.appendChild(c).appendChild(u);var e=r.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",s=36===t(e.right),i=36===t(e.width),u.style.position="absolute",a=12===t(u.offsetWidth/3),se.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,i,a,s,o,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,S.extend(g,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),a},reliableTrDimensions:function(){var e,t,n,i;return null==o&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",se.appendChild(e).appendChild(t).appendChild(n),i=r.getComputedStyle(t),o=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,se.removeChild(e)),o}}))}();var Xe=["Webkit","Moz","ms"],qe=b.createElement("div").style,$e={};function Ye(e){return S.cssProps[e]||$e[e]||(e in qe?e:$e[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Xe.length;n--;)if((e=Xe[n]+t)in qe)return e}(e)||e)}var Ze=/^(none|table(?!-c[ea]).+)/,Je=/^--/,Ke={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"};function et(e,t,n){var r=ie.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function tt(e,t,n,r,i,a){var s="width"===t?1:0,o=0,l=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=S.css(e,n+ae[s],!0,i)),r?("content"===n&&(l-=S.css(e,"padding"+ae[s],!0,i)),"margin"!==n&&(l-=S.css(e,"border"+ae[s]+"Width",!0,i))):(l+=S.css(e,"padding"+ae[s],!0,i),"padding"!==n?l+=S.css(e,"border"+ae[s]+"Width",!0,i):o+=S.css(e,"border"+ae[s]+"Width",!0,i));return!r&&a>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-o-.5))||0),l}function nt(e,t,n){var r=He(e),i=(!g.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),a=i,s=We(e,t,r),o="offset"+t[0].toUpperCase()+t.slice(1);if(ze.test(s)){if(!n)return s;s="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&L(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(a=o in e)&&(s=e[o])),(s=parseFloat(s)||0)+tt(e,t,n||(i?"border":"content"),a,r,s)+"px"}function rt(e,t,n,r,i){return new rt.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=We(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,s,o=Y(t),l=Je.test(t),c=e.style;if(l||(t=Ye(o)),s=S.cssHooks[t]||S.cssHooks[o],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:c[t];"string"==(a=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=ue(e,t,i),a="number"),null!=n&&n==n&&("number"!==a||l||(n+=i&&i[3]||(S.cssNumber[o]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,a,s,o=Y(t);return Je.test(t)||(t=Ye(o)),(s=S.cssHooks[t]||S.cssHooks[o])&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=We(e,t,r)),"normal"===i&&t in Qe&&(i=Qe[t]),""===n||n?(a=parseFloat(i),!0===n||isFinite(a)?a||0:i):i}}),S.each(["height","width"],(function(e,t){S.cssHooks[t]={get:function(e,n,r){if(n)return!Ze.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?nt(e,t,r):Ve(e,Ke,(function(){return nt(e,t,r)}))},set:function(e,n,r){var i,a=He(e),s=!g.scrollboxSize()&&"absolute"===a.position,o=(s||r)&&"border-box"===S.css(e,"boxSizing",!1,a),l=r?tt(e,t,r,o,a):0;return o&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-tt(e,t,"border",!1,a)-.5)),l&&(i=ie.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=S.css(e,t)),et(0,n,l)}}})),S.cssHooks.marginLeft=je(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(We(e,"marginLeft"))||e.getBoundingClientRect().left-Ve(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),S.each({margin:"",padding:"",border:"Width"},(function(e,t){S.cssHooks[e+t]={expand:function(n){for(var r=0,i={},a="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ae[r]+t]=a[r]||a[r-2]||a[0];return i}},"margin"!==e&&(S.cssHooks[e+t].set=et)})),S.fn.extend({css:function(e,t){return j(this,(function(e,t,n){var r,i,a={},s=0;if(Array.isArray(t)){for(r=He(e),i=t.length;s<i;s++)a[t[s]]=S.css(e,t[s],!1,r);return a}return void 0!==n?S.style(e,t,n):S.css(e,t)}),e,t,arguments.length>1)}}),S.Tween=rt,rt.prototype={constructor:rt,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(S.cssNumber[n]?"":"px")},cur:function(){var e=rt.propHooks[this.prop];return e&&e.get?e.get(this):rt.propHooks._default.get(this)},run:function(e){var t,n=rt.propHooks[this.prop];return this.options.duration?this.pos=t=S.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):rt.propHooks._default.set(this),this}},rt.prototype.init.prototype=rt.prototype,rt.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=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[Ye(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}},rt.propHooks.scrollTop=rt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=rt.prototype.init,S.fx.step={};var it,at,st=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function lt(){at&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(lt):r.setTimeout(lt,S.fx.interval),S.fx.tick())}function ct(){return r.setTimeout((function(){it=void 0})),it=Date.now()}function ut(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ae[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ht(e,t,n){for(var r,i=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),a=0,s=i.length;a<s;a++)if(r=i[a].call(n,t,e))return r}function ft(e,t,n){var r,i,a=0,s=ft.prefilters.length,o=S.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=it||ct(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),a=0,s=c.tweens.length;a<s;a++)c.tweens[a].run(r);return o.notifyWith(e,[c,r,n]),r<1&&s?n:(s||o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c]),!1)},c=o.promise({elem:e,props:S.extend({},t),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||ct(),duration:n.duration,tweens:[],createTween:function(t,n){var r=S.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?(o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c,t])):o.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,r,i,a,s;for(n in e)if(i=t[r=Y(n)],a=e[n],Array.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),(s=S.cssHooks[r])&&"expand"in s)for(n in a=s.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<s;a++)if(r=ft.prefilters[a].call(c,e,u,c.opts))return v(r.stop)&&(S._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return S.map(u,ht,c),v(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),S.fx.timer(S.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}S.Animation=S.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(B);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ft.tweeners[n]=ft.tweeners[n]||[],ft.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,a,s,o,l,c,u,h="width"in t||"height"in t,f=this,d={},p=e.style,m=e.nodeType&&ce(e),g=K.get(e,"fxshow");for(r in n.queue||(null==(s=S._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,o=s.empty.fire,s.empty.fire=function(){s.unqueued||o()}),s.unqueued++,f.always((function(){f.always((function(){s.unqueued--,S.queue(e,"fx").length||s.empty.fire()}))}))),t)if(i=t[r],st.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]||S.style(e,r)}if((l=!S.isEmptyObject(t))||!S.isEmptyObject(d))for(r in h&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=K.get(e,"display")),"none"===(u=S.css(e,"display"))&&(c?u=c:(de([e],!0),c=e.style.display||c,u=S.css(e,"display"),de([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===S.css(e,"float")&&(l||(f.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,d)l||(g?"hidden"in g&&(m=g.hidden):g=K.access(e,"fxshow",{display:c}),a&&(g.hidden=!m),m&&de([e],!0),f.done((function(){for(r in m||de([e]),K.remove(e,"fxshow"),d)S.style(e,r,d[r])}))),l=ht(m?g[r]:0,r,f),r in g||(g[r]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=S.isEmptyObject(e),a=S.speed(t,n,r),s=function(){var t=ft(this,S.extend({},e),a);(i||K.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===a.queue?this.each(s):this.queue(a.queue,s)},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=S.timers,s=K.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&ot.test(i)&&r(s[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||S.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=K.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],a=S.timers,s=r?r.length:0;for(n.finish=!0,S.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<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),S.each(["toggle","show","hide"],(function(e,t){var n=S.fn[t];S.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ut(t,!0),e,r,i)}})),S.each({slideDown:ut("show"),slideUp:ut("hide"),slideToggle:ut("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){S.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(it=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),it=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){at||(at=!0,lt())},S.fx.stop=function(){at=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(e,t){return e=S.fx&&S.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var i=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(i)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var dt,pt=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return j(this,S.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){S.removeAttr(this,e)}))}}),S.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?S.prop(e,t,n):(1===a&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?dt:void 0)),void 0!==n?null===n?void S.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=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&L(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)}}),dt={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=pt[t]||S.find.attr;pt[t]=function(e,t,r){var i,a,s=t.toLowerCase();return r||(a=pt[s],pt[s]=i,i=null!=n(e,t,r)?s:null,pt[s]=a),i}}));var mt=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function vt(e){return(e.match(B)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function bt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(B)||[]}S.fn.extend({prop:function(e,t){return j(this,S.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[S.propFix[e]||e]}))}}),S.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.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=S.find.attr(e,"tabindex");return t?parseInt(t,10):mt.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(S.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)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){S.propFix[this.toLowerCase()]=this})),S.fn.extend({addClass:function(e){var t,n,r,i,a,s,o,l=0;if(v(e))return this.each((function(t){S(this).addClass(e.call(this,t,yt(this)))}));if((t=bt(e)).length)for(;n=this[l++];)if(i=yt(n),r=1===n.nodeType&&" "+vt(i)+" "){for(s=0;a=t[s++];)r.indexOf(" "+a+" ")<0&&(r+=a+" ");i!==(o=vt(r))&&n.setAttribute("class",o)}return this},removeClass:function(e){var t,n,r,i,a,s,o,l=0;if(v(e))return this.each((function(t){S(this).removeClass(e.call(this,t,yt(this)))}));if(!arguments.length)return this.attr("class","");if((t=bt(e)).length)for(;n=this[l++];)if(i=yt(n),r=1===n.nodeType&&" "+vt(i)+" "){for(s=0;a=t[s++];)for(;r.indexOf(" "+a+" ")>-1;)r=r.replace(" "+a+" "," ");i!==(o=vt(r))&&n.setAttribute("class",o)}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):v(e)?this.each((function(n){S(this).toggleClass(e.call(this,n,yt(this),t),t)})):this.each((function(){var t,i,a,s;if(r)for(i=0,a=S(this),s=bt(e);t=s[i++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||((t=yt(this))&&K.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":K.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+vt(yt(n))+" ").indexOf(t)>-1)return!0;return!1}});var xt=/\r/g;S.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=v(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,S(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=S.map(i,(function(e){return null==e?"":e+""}))),(t=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(xt,""):null==n?"":n:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:vt(S.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,s="select-one"===e.type,o=s?null:[],l=s?a+1:i.length;for(r=a<0?l:s?a:0;r<l;r++)if(((n=i[r]).selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!L(n.parentNode,"optgroup"))){if(t=S(n).val(),s)return t;o.push(t)}return o},set:function(e,t){for(var n,r,i=e.options,a=S.makeArray(t),s=i.length;s--;)((r=i[s]).selected=S.inArray(S.valHooks.option.get(r),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),S.each(["radio","checkbox"],(function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=S.inArray(S(e).val(),t)>-1}},g.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.focusin="onfocusin"in r;var _t=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,n,i){var a,s,o,l,c,u,h,f,p=[n||b],m=d.call(e,"type")?e.type:e,g=d.call(e,"namespace")?e.namespace.split("."):[];if(s=f=o=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!_t.test(m+S.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[S.expando]?e:new S.Event(m,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),h=S.event.special[m]||{},i||!h.trigger||!1!==h.trigger.apply(n,t))){if(!i&&!h.noBubble&&!y(n)){for(l=h.delegateType||m,_t.test(l+m)||(s=s.parentNode);s;s=s.parentNode)p.push(s),o=s;o===(n.ownerDocument||b)&&p.push(o.defaultView||o.parentWindow||r)}for(a=0;(s=p[a++])&&!e.isPropagationStopped();)f=s,e.type=a>1?l:h.bindType||m,(u=(K.get(s,"events")||Object.create(null))[e.type]&&K.get(s,"handle"))&&u.apply(s,t),(u=c&&s[c])&&u.apply&&Z(s)&&(e.result=u.apply(s,t),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(p.pop(),t)||!Z(n)||c&&v(n[m])&&!y(n)&&((o=n[c])&&(n[c]=null),S.event.triggered=m,e.isPropagationStopped()&&f.addEventListener(m,wt),n[m](),e.isPropagationStopped()&&f.removeEventListener(m,wt),S.event.triggered=void 0,o&&(n[c]=o)),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each((function(){S.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}}),g.focusin||S.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){S.event.simulate(t,e.target,S.event.fix(e))};S.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=K.access(r,t);i||r.addEventListener(e,n,!0),K.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=K.access(r,t)-1;i?K.access(r,t,i):(r.removeEventListener(e,n,!0),K.remove(r,t))}}}));var Tt=r.location,St={guid:Date.now()},Et=/\?/;S.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||S.error("Invalid XML: "+(n?S.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Mt=/\[\]$/,At=/\r?\n/g,Ct=/^(?:submit|button|image|reset|file)$/i,Rt=/^(?:input|select|textarea|keygen)/i;function Lt(e,t,n,r){var i;if(Array.isArray(t))S.each(t,(function(t,i){n||Mt.test(e)?r(e,i):Lt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==w(t))r(e,t);else for(i in t)Lt(e+"["+i+"]",t[i],n,r)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,(function(){i(this.name,this.value)}));else for(n in e)Lt(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&Rt.test(this.nodeName)&&!Ct.test(e)&&(this.checked||!ge.test(e))})).map((function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,(function(e){return{name:t.name,value:e.replace(At,"\r\n")}})):{name:t.name,value:n.replace(At,"\r\n")}})).get()}});var kt=/%20/g,Pt=/#.*$/,Dt=/([?&])_=[^&]*/,Ot=/^(.*?):[ \t]*([^\r\n]*)$/gm,It=/^(?:GET|HEAD)$/,Nt=/^\/\//,Ft={},Bt={},Ut="*/".concat("*"),zt=b.createElement("a");function Ht(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,a=t.toLowerCase().match(B)||[];if(v(n))for(;r=a[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Vt(e,t,n,r){var i={},a=e===Bt;function s(o){var l;return i[o]=!0,S.each(e[o]||[],(function(e,o){var c=o(t,n,r);return"string"!=typeof c||a||i[c]?a?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)})),l}return s(t.dataTypes[0])||!i["*"]&&s("*")}function Gt(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}zt.href=Tt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ut,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":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,S.ajaxSettings),t):Gt(S.ajaxSettings,e)},ajaxPrefilter:Ht(Ft),ajaxTransport:Ht(Bt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,a,s,o,l,c,u,h,f,d=S.ajaxSetup({},t),p=d.context||d,m=d.context&&(p.nodeType||p.jquery)?S(p):S.event,g=S.Deferred(),v=S.Callbacks("once memory"),y=d.statusCode||{},x={},_={},w="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Ot.exec(a);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)T.always(e[T.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||w;return n&&n.abort(t),E(0,t),this}};if(g.promise(T),d.url=((e||d.url||Tt.href)+"").replace(Nt,Tt.protocol+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(B)||[""],null==d.crossDomain){l=b.createElement("a");try{l.href=d.url,l.href=l.href,d.crossDomain=zt.protocol+"//"+zt.host!=l.protocol+"//"+l.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=S.param(d.data,d.traditional)),Vt(Ft,d,t,T),c)return T;for(h in(u=S.event&&d.global)&&0==S.active++&&S.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!It.test(d.type),i=d.url.replace(Pt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(kt,"+")):(f=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(Et.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Dt,"$1"),f=(Et.test(i)?"&":"?")+"_="+St.guid+++f),d.url=i+f),d.ifModified&&(S.lastModified[i]&&T.setRequestHeader("If-Modified-Since",S.lastModified[i]),S.etag[i]&&T.setRequestHeader("If-None-Match",S.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||t.contentType)&&T.setRequestHeader("Content-Type",d.contentType),T.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Ut+"; q=0.01":""):d.accepts["*"]),d.headers)T.setRequestHeader(h,d.headers[h]);if(d.beforeSend&&(!1===d.beforeSend.call(p,T,d)||c))return T.abort();if(w="abort",v.add(d.complete),T.done(d.success),T.fail(d.error),n=Vt(Bt,d,t,T)){if(T.readyState=1,u&&m.trigger("ajaxSend",[T,d]),c)return T;d.async&&d.timeout>0&&(o=r.setTimeout((function(){T.abort("timeout")}),d.timeout));try{c=!1,n.send(x,E)}catch(e){if(c)throw e;E(-1,e)}}else E(-1,"No Transport");function E(e,t,s,l){var h,f,b,x,_,w=t;c||(c=!0,o&&r.clearTimeout(o),n=void 0,a=l||"",T.readyState=e>0?4:0,h=e>=200&&e<300||304===e,s&&(x=function(e,t,n){for(var r,i,a,s,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in o)if(o[i]&&o[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}s||(s=i)}a=a||s}if(a)return a!==l[0]&&l.unshift(a),n[a]}(d,T,s)),!h&&S.inArray("script",d.dataTypes)>-1&&S.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),x=function(e,t,n,r){var i,a,s,o,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];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(!(s=c[l+" "+a]||c["* "+a]))for(i in c)if((o=i.split(" "))[1]===a&&(s=c[l+" "+o[0]]||c["* "+o[0]])){!0===s?s=c[i]:!0!==c[i]&&(a=o[0],u.unshift(o[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}(d,x,T,h),h?(d.ifModified&&((_=T.getResponseHeader("Last-Modified"))&&(S.lastModified[i]=_),(_=T.getResponseHeader("etag"))&&(S.etag[i]=_)),204===e||"HEAD"===d.type?w="nocontent":304===e?w="notmodified":(w=x.state,f=x.data,h=!(b=x.error))):(b=w,!e&&w||(w="error",e<0&&(e=0))),T.status=e,T.statusText=(t||w)+"",h?g.resolveWith(p,[f,w,T]):g.rejectWith(p,[T,w,b]),T.statusCode(y),y=void 0,u&&m.trigger(h?"ajaxSuccess":"ajaxError",[T,d,h?f:b]),v.fireWith(p,[T,w]),u&&(m.trigger("ajaxComplete",[T,d]),--S.active||S.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],(function(e,t){S[t]=function(e,n,r,i){return v(n)&&(i=i||r,r=n,n=void 0),S.ajax(S.extend({url:e,type:t,dataType:i,data:n,success:r},S.isPlainObject(e)&&e))}})),S.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=S(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 v(e)?this.each((function(t){S(this).wrapInner(e.call(this,t))})):this.each((function(){var t=S(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){S(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){S(this).replaceWith(this.childNodes)})),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Wt={0:200,1223:204},jt=S.ajaxSettings.xhr();g.cors=!!jt&&"withCredentials"in jt,g.ajax=jt=!!jt,S.ajaxTransport((function(e){var t,n;if(g.cors||jt&&!e.crossDomain)return{send:function(i,a){var s,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)o[s]=e.xhrFields[s];for(s in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)o.setRequestHeader(s,i[s]);t=function(e){return function(){t&&(t=n=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?a(0,"error"):a(o.status,o.statusText):a(Wt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=t(),n=o.onerror=o.ontimeout=t("error"),void 0!==o.onabort?o.onabort=n:o.onreadystatechange=function(){4===o.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),S.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),S.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 S.globalEval(e),e}}}),S.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),S.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=S("<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)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Xt,qt=[],$t=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=qt.pop()||S.expando+"_"+St.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",(function(e,t,n){var i,a,s,o=!1!==e.jsonp&&($t.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&$t.test(e.data)&&"data");if(o||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace($t,"$1"+i):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||S.error(i+" was not called"),s[0]},e.dataTypes[0]="json",a=r[i],r[i]=function(){s=arguments},n.always((function(){void 0===a?S(r).removeProp(i):r[i]=a,e[i]&&(e.jsonpCallback=t.jsonpCallback,qt.push(i)),s&&v(a)&&a(s[0]),s=a=void 0})),"script"})),g.createHTMLDocument=((Xt=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xt.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),a=!n&&[],(i=k.exec(e))?[t.createElement(i[1])]:(i=Te([e],t,a),a&&a.length&&S(a).remove(),S.merge([],i.childNodes)));var r,i,a},S.fn.load=function(e,t,n){var r,i,a,s=this,o=e.indexOf(" ");return o>-1&&(r=vt(e.slice(o)),e=e.slice(0,o)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){a=arguments,s.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)})).always(n&&function(e,t){s.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},S.expr.pseudos.animated=function(e){return S.grep(S.timers,(function(t){return e===t.elem})).length},S.offset={setOffset:function(e,t,n){var r,i,a,s,o,l,c=S.css(e,"position"),u=S(e),h={};"static"===c&&(e.style.position="relative"),o=u.offset(),a=S.css(e,"top"),l=S.css(e,"left"),("absolute"===c||"fixed"===c)&&(a+l).indexOf("auto")>-1?(s=(r=u.position()).top,i=r.left):(s=parseFloat(a)||0,i=parseFloat(l)||0),v(t)&&(t=t.call(e,n,S.extend({},o))),null!=t.top&&(h.top=t.top-o.top+s),null!=t.left&&(h.left=t.left-o.left+i),"using"in t?t.using.call(e,h):u.css(h)}},S.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){S.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"===S.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"===S.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===S.css(e,"position");)e=e.offsetParent;return e||se}))}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;S.fn[e]=function(r){return j(this,(function(e,r,i){var a;if(y(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)}})),S.each(["top","left"],(function(e,t){S.cssHooks[t]=je(g.pixelPosition,(function(e,n){if(n)return n=We(e,t),ze.test(n)?S(e).position()[t]+"px":n}))})),S.each({Height:"height",Width:"width"},(function(e,t){S.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){S.fn[r]=function(i,a){var s=arguments.length&&(n||"boolean"!=typeof i),o=n||(!0===i||!0===a?"margin":"border");return j(this,(function(t,n,i){var a;return y(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?S.css(t,n,o):S.style(t,n,i,o)}),t,s?i:void 0,s)}}))})),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){S.fn[t]=function(e){return this.on(t,e)}})),S.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)}}),S.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){S.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Yt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=o.call(arguments,2),i=function(){return e.apply(t||this,r.concat(o.call(arguments)))},i.guid=e.guid=e.guid||S.guid++,i},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=L,S.isFunction=v,S.isWindow=y,S.camelCase=Y,S.type=w,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(Yt,"")},void 0===(n=function(){return S}.apply(t,[]))||(e.exports=n);var Zt=r.jQuery,Jt=r.$;return S.noConflict=function(e){return r.$===S&&(r.$=Jt),e&&r.jQuery===S&&(r.jQuery=Zt),S},void 0===i&&(r.jQuery=r.$=S),S},"object"==typeof e.exports?e.exports=r.document?i(r,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return i(e)}:i(r)},379:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},s=[],o=0;o<e.length;o++){var l=e[o],c=r.base?l[0]+r.base:l[0],u=a[c]||0,h="".concat(c," ").concat(u);a[c]=u+1;var f=n(h),d={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)t[f].references++,t[f].updater(d);else{var p=i(d,r);r.byIndex=o,t.splice(o,0,{identifier:h,updater:p,references:1})}s.push(h)}return s}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var a=r(e=e||[],i=i||{});return function(e){e=e||[];for(var s=0;s<a.length;s++){var o=n(a[s]);t[o].references--}for(var l=r(e,i),c=0;c<a.length;c++){var u=n(a[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}a=l}}},569:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},216:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},554:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC"},348:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC"},58:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC"}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={id:r,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.b=document.baseURI||self.location.href;var r={};(()=>{n.d(r,{Ip:()=>aE,Ud:()=>Mo,$p:()=>Xd,OO:()=>Kd,OM:()=>JS,Rf:()=>ip,ZP:()=>lE});var e=n(755),t=1200,i=1252,a=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],s={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},o=function(e){-1!=a.indexOf(e)&&(i=s[0]=e)},l=function(e){t=e,o(e)};function c(){l(1200),o(1252)}function u(e){for(var t=[],n=0,r=e.length;n<r;++n)t[n]=e.charCodeAt(n);return t}function h(e){for(var t=[],n=0;n<e.length>>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n+1)+(e.charCodeAt(2*n)<<8));return t.join("")}var f,d=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return 255==t&&254==n?function(e){for(var t=[],n=0;n<e.length>>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n)+(e.charCodeAt(2*n+1)<<8));return t.join("")}(e.slice(2)):254==t&&255==n?h(e.slice(2)):65279==t?e.slice(1):e},p=function(e){return String.fromCharCode(e)},m=function(e){return String.fromCharCode(e)},g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function v(e){for(var t="",n=0,r=0,i=0,a=0,s=0,o=0,l=0,c=0;c<e.length;)a=(n=e.charCodeAt(c++))>>2,s=(3&n)<<4|(r=e.charCodeAt(c++))>>4,o=(15&r)<<2|(i=e.charCodeAt(c++))>>6,l=63&i,isNaN(r)?o=l=64:isNaN(i)&&(l=64),t+=g.charAt(a)+g.charAt(s)+g.charAt(o)+g.charAt(l);return t}function y(e){var t="",n=0,r=0,i=0,a=0,s=0,o=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<e.length;)n=g.indexOf(e.charAt(l++))<<2|(a=g.indexOf(e.charAt(l++)))>>4,t+=String.fromCharCode(n),r=(15&a)<<4|(s=g.indexOf(e.charAt(l++)))>>2,64!==s&&(t+=String.fromCharCode(r)),i=(3&s)<<6|(o=g.indexOf(e.charAt(l++))),64!==o&&(t+=String.fromCharCode(i));return t}var b=function(){return"undefined"!=typeof Buffer&&"undefined"!=typeof process&&void 0!==process.versions&&!!process.versions.node}(),x=function(){if("undefined"!=typeof Buffer){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(t){e=!0}return e?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();function _(e){return b?Buffer.alloc?Buffer.alloc(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function w(e){return b?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var T=function(e){return b?x(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function S(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join("");for(var t=[],n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}function E(e){if("undefined"==typeof ArrayBuffer)throw new Error("Unsupported");if(e instanceof ArrayBuffer)return E(new Uint8Array(e));for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t}var M=b?function(e){return Buffer.concat(e.map((function(e){return Buffer.isBuffer(e)?e:x(e)})))}:function(e){if("undefined"!=typeof Uint8Array){var t=0,n=0;for(t=0;t<e.length;++t)n+=e[t].length;var r=new Uint8Array(n),i=0;for(t=0,n=0;t<e.length;n+=i,++t)if(i=e[t].length,e[t]instanceof Uint8Array)r.set(e[t],n);else{if("string"==typeof e[t])throw"wtf";r.set(new Uint8Array(e[t]),n)}return r}return[].concat.apply([],e.map((function(e){return Array.isArray(e)?e:[].slice.call(e)})))},A=/\u0000/g,C=/[\u0001-\u0006]/g;function R(e){for(var t="",n=e.length-1;n>=0;)t+=e.charAt(n--);return t}function L(e,t){var n=""+e;return n.length>=t?n:Fe("0",t-n.length)+n}function k(e,t){var n=""+e;return n.length>=t?n:Fe(" ",t-n.length)+n}function P(e,t){var n=""+e;return n.length>=t?n:n+Fe(" ",t-n.length)}var D=Math.pow(2,32);function O(e,t){return e>D||e<-D?function(e,t){var n=""+Math.round(e);return n.length>=t?n:Fe("0",t-n.length)+n}(e,t):function(e,t){var n=""+e;return n.length>=t?n:Fe("0",t-n.length)+n}(Math.round(e),t)}function I(e,t){return t=t||0,e.length>=7+t&&103==(32|e.charCodeAt(t))&&101==(32|e.charCodeAt(t+1))&&110==(32|e.charCodeAt(t+2))&&101==(32|e.charCodeAt(t+3))&&114==(32|e.charCodeAt(t+4))&&97==(32|e.charCodeAt(t+5))&&108==(32|e.charCodeAt(t+6))}var N=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],F=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],B={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},U={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},z={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function H(e,t,n){for(var r=e<0?-1:1,i=e*r,a=0,s=1,o=0,l=1,c=0,u=0,h=Math.floor(i);c<t&&(o=(h=Math.floor(i))*s+a,u=h*c+l,!(i-h<5e-8));)i=1/(i-h),a=s,s=o,l=c,c=u;if(u>t&&(c>t?(u=l,o=a):(u=c,o=s)),!n)return[0,r*o,u];var f=Math.floor(r*o/u);return[f,r*o-f*u,u]}function V(e,t,n){if(e>2958465||e<0)return null;var r=0|e,i=Math.floor(86400*(e-r)),a=0,s=[],o={D:r,T:i,u:86400*(e-r)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6&&(o.u=0),t&&t.date1904&&(r+=1462),o.u>.9999&&(o.u=0,86400==++i&&(o.T=i=0,++r,++o.D)),60===r)s=n?[1317,10,29]:[1900,2,29],a=3;else if(0===r)s=n?[1317,8,29]:[1900,1,0],a=6;else{r>60&&--r;var l=new Date(1900,0,1);l.setDate(l.getDate()+r-1),s=[l.getFullYear(),l.getMonth()+1,l.getDate()],a=l.getDay(),r<60&&(a=(a+6)%7),n&&(a=function(e,t){t[0]-=581;var n=e.getDay();return e<60&&(n=(n+6)%7),n}(l,s))}return o.y=s[0],o.m=s[1],o.d=s[2],o.S=i%60,i=Math.floor(i/60),o.M=i%60,i=Math.floor(i/60),o.H=i,o.q=a,o}var G=new Date(1899,11,31,0,0,0),W=G.getTime(),j=new Date(1900,2,1,0,0,0);function X(e,t){var n=e.getTime();return t?n-=1262304e5:e>=j&&(n+=864e5),(n-(W+6e4*(e.getTimezoneOffset()-G.getTimezoneOffset())))/864e5}function q(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function $(e){var t,n=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=n>=-4&&n<=-1?e.toPrecision(10+n):Math.abs(n)<=9?function(e){var t=e<0?12:11,n=q(e.toFixed(12));return n.length<=t||(n=e.toPrecision(10)).length<=t?n:e.toExponential(5)}(e):10===n?e.toFixed(10).substr(0,12):function(e){var t=q(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}(e),q(function(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(t.toUpperCase()))}function Y(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):$(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return me(14,X(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function Z(e,t,n,r){var i,a="",s=0,o=0,l=n.y,c=0;switch(e){case 98:l=n.y+543;case 121:switch(t.length){case 1:case 2:i=l%100,c=2;break;default:i=l%1e4,c=4}break;case 109:switch(t.length){case 1:case 2:i=n.m,c=t.length;break;case 3:return F[n.m-1][1];case 5:return F[n.m-1][0];default:return F[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:i=n.d,c=t.length;break;case 3:return N[n.q][0];default:return N[n.q][1]}break;case 104:switch(t.length){case 1:case 2:i=1+(n.H+11)%12,c=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:i=n.H,c=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:i=n.M,c=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(o=r>=2?3===r?1e3:100:1===r?10:1,(s=Math.round(o*(n.S+n.u)))>=60*o&&(s=0),"s"===t?0===s?"0":""+s/o:(a=L(s,2+r),"ss"===t?a.substr(0,2):"."+a.substr(2,t.length-1))):L(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":i=24*n.D+n.H;break;case"[m]":case"[mm]":i=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":i=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}c=3===t.length?1:2;break;case 101:i=l,c=1}return c>0?L(i,c):""}function J(e){if(e.length<=3)return e;for(var t=e.length%3,n=e.substr(0,t);t!=e.length;t+=3)n+=(n.length>0?",":"")+e.substr(t,3);return n}var K=/%/g;function Q(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+Q(e,-t);var i=e.indexOf(".");-1===i&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),-1===(n=(t/Math.pow(10,a)).toPrecision(r+1+(i+a)%i)).indexOf("e")){var s=Math.floor(Math.log(t)*Math.LOG10E);for(-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(s-n.length+a):n+="E+"+(s-a);"0."===n.substr(0,2);)n=(n=n.charAt(0)+n.substr(2,i)+"."+n.substr(2+i)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(i+a)%i)+"."+r.substr(a)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var ee=/# (\?+)( ?)\/( ?)(\d+)/,te=/^#*0*\.([0#]+)/,ne=/\).*[0#]/,re=/\(###\) ###\\?-####/;function ie(e){for(var t,n="",r=0;r!=e.length;++r)switch(t=e.charCodeAt(r)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function ae(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}function se(e,t){var n=e-Math.floor(e),r=Math.pow(10,t);return t<(""+Math.round(n*r)).length?0:Math.round(n*r)}function oe(e,t,n){if(40===e.charCodeAt(0)&&!t.match(ne)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?oe("n",r,n):"("+oe("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return ue(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace(K,""),i=t.length-r.length;return ue(e,r,n*Math.pow(10,2*i))+Fe("%",i)}(e,t,n);if(-1!==t.indexOf("E"))return Q(t,n);if(36===t.charCodeAt(0))return"$"+oe(e,t.substr(" "==t.charAt(1)?2:1),n);var i,a,s,o,l=Math.abs(n),c=n<0?"-":"";if(t.match(/^00+$/))return c+O(l,t.length);if(t.match(/^[#?]+$/))return"0"===(i=O(n,0))&&(i=""),i.length>t.length?i:ie(t.substr(0,t.length-i.length))+i;if(a=t.match(ee))return function(e,t,n){var r=parseInt(e[4],10),i=Math.round(t*r),a=Math.floor(i/r),s=i-a*r,o=r;return n+(0===a?"":""+a)+" "+(0===s?Fe(" ",e[1].length+1+e[4].length):k(s,e[1].length)+e[2]+"/"+e[3]+L(o,e[4].length))}(a,l,c);if(t.match(/^#+0+$/))return c+O(l,t.length-t.indexOf("0"));if(a=t.match(te))return i=ae(n,a[1].length).replace(/^([^\.]+)$/,"$1."+ie(a[1])).replace(/\.$/,"."+ie(a[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+Fe("0",ie(a[1]).length-t.length)})),-1!==t.indexOf("0.")?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return c+ae(l,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return c+J(O(l,0));if(a=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+oe(e,t,-n):J(""+(Math.floor(n)+function(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(n,a[1].length)))+"."+L(se(n,a[1].length),a[1].length);if(a=t.match(/^#,#*,#0/))return oe(e,t.replace(/^#,#*,/,""),n);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=R(oe(e,t.replace(/[\\-]/g,""),n)),s=0,R(R(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return s<i.length?i.charAt(s++):"0"===e?"0":""})));if(t.match(re))return"("+(i=oe(e,"##########",n)).substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),o=H(l,Math.pow(10,s)-1,!1),i=""+c," "==(u=ue("n",a[1],o[1])).charAt(u.length-1)&&(u=u.substr(0,u.length-1)+"0"),i+=u+a[2]+"/"+a[3],(u=P(o[2],s)).length<a[4].length&&(u=ie(a[4].substr(a[4].length-u.length))+u),i+=u;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),c+((o=H(l,Math.pow(10,s)-1,!0))[0]||(o[1]?"":"0"))+" "+(o[1]?k(o[1],s)+a[2]+"/"+a[3]+P(o[2],s):Fe(" ",2*s+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=O(n,0),t.length<=i.length?i:ie(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0?]+)\.([#0]+)$/)){i=""+n.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var h=t.indexOf(".")-s,f=t.length-i.length-h;return ie(t.substr(0,h)+i+t.substr(t.length-f))}if(a=t.match(/^00,000\.([#0]*0)$/))return s=se(n,a[1].length),n<0?"-"+oe(e,t,-n):J(function(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}(n)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?L(0,3-e.length):"")+e}))+"."+L(s,a[1].length);switch(t){case"###,##0.00":return oe(e,"#,##0.00",n);case"###,###":case"##,###":case"#,###":var d=J(O(l,0));return"0"!==d?c+d:"";case"###,###.00":return oe(e,"###,##0.00",n).replace(/^0\./,".");case"#,###.00":return oe(e,"#,##0.00",n).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function le(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+le(e,-t);var i=e.indexOf(".");-1===i&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),!(n=(t/Math.pow(10,a)).toPrecision(r+1+(i+a)%i)).match(/[Ee]/)){var s=Math.floor(Math.log(t)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(s-n.length+a):n+="E+"+(s-a),n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(i+a)%i)+"."+r.substr(a)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}function ce(e,t,n){if(40===e.charCodeAt(0)&&!t.match(ne)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?ce("n",r,n):"("+ce("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return ue(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace(K,""),i=t.length-r.length;return ue(e,r,n*Math.pow(10,2*i))+Fe("%",i)}(e,t,n);if(-1!==t.indexOf("E"))return le(t,n);if(36===t.charCodeAt(0))return"$"+ce(e,t.substr(" "==t.charAt(1)?2:1),n);var i,a,s,o,l=Math.abs(n),c=n<0?"-":"";if(t.match(/^00+$/))return c+L(l,t.length);if(t.match(/^[#?]+$/))return i=""+n,0===n&&(i=""),i.length>t.length?i:ie(t.substr(0,t.length-i.length))+i;if(a=t.match(ee))return function(e,t,n){return n+(0===t?"":""+t)+Fe(" ",e[1].length+2+e[4].length)}(a,l,c);if(t.match(/^#+0+$/))return c+L(l,t.length-t.indexOf("0"));if(a=t.match(te))return i=(i=(""+n).replace(/^([^\.]+)$/,"$1."+ie(a[1])).replace(/\.$/,"."+ie(a[1]))).replace(/\.(\d*)$/,(function(e,t){return"."+t+Fe("0",ie(a[1]).length-t.length)})),-1!==t.indexOf("0.")?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return c+J(""+l);if(a=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+ce(e,t,-n):J(""+n)+"."+Fe("0",a[1].length);if(a=t.match(/^#,#*,#0/))return ce(e,t.replace(/^#,#*,/,""),n);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=R(ce(e,t.replace(/[\\-]/g,""),n)),s=0,R(R(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return s<i.length?i.charAt(s++):"0"===e?"0":""})));if(t.match(re))return"("+(i=ce(e,"##########",n)).substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),o=H(l,Math.pow(10,s)-1,!1),i=""+c," "==(u=ue("n",a[1],o[1])).charAt(u.length-1)&&(u=u.substr(0,u.length-1)+"0"),i+=u+a[2]+"/"+a[3],(u=P(o[2],s)).length<a[4].length&&(u=ie(a[4].substr(a[4].length-u.length))+u),i+=u;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),c+((o=H(l,Math.pow(10,s)-1,!0))[0]||(o[1]?"":"0"))+" "+(o[1]?k(o[1],s)+a[2]+"/"+a[3]+P(o[2],s):Fe(" ",2*s+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=""+n,t.length<=i.length?i:ie(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0]+)\.([#0]+)$/)){i=""+n.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var h=t.indexOf(".")-s,f=t.length-i.length-h;return ie(t.substr(0,h)+i+t.substr(t.length-f))}if(a=t.match(/^00,000\.([#0]*0)$/))return n<0?"-"+ce(e,t,-n):J(""+n).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?L(0,3-e.length):"")+e}))+"."+L(0,a[1].length);switch(t){case"###,###":case"##,###":case"#,###":var d=J(""+l);return"0"!==d?c+d:"";default:if(t.match(/\.[0#?]*$/))return ce(e,t.slice(0,t.lastIndexOf(".")),n)+ie(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function ue(e,t,n){return(0|n)===n?ce(e,t,n):oe(e,t,n)}var he=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function fe(e){for(var t=0,n="",r="";t<e.length;)switch(n=e.charAt(t)){case"G":I(e,t)&&(t+=6),t++;break;case'"':for(;34!==e.charCodeAt(++t)&&t<e.length;);++t;break;case"\\":case"_":t+=2;break;case"@":++t;break;case"B":case"b":if("1"===e.charAt(t+1)||"2"===e.charAt(t+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===e.substr(t,3).toUpperCase())return!0;if("AM/PM"===e.substr(t,5).toUpperCase())return!0;if("上午/下午"===e.substr(t,5).toUpperCase())return!0;++t;break;case"[":for(r=n;"]"!==e.charAt(t++)&&t<e.length;)r+=e.charAt(t);if(r.match(he))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(n=e.charAt(++t))>-1||"\\"==n&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===n;);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;default:++t}return!1}var de=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function pe(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e<n)return!0;break;case"<>":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0}return!1}function me(e,t,n){null==n&&(n={});var r="";switch(typeof e){case"string":r="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":null==(r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:B)[e])&&(r=n.table&&n.table[U[e]]||B[U[e]]),null==r&&(r=z[e]||"General")}if(I(r,0))return Y(t,n);t instanceof Date&&(t=X(t,n.date1904));var i=function(e,t){var n=function(e){for(var t=[],n=!1,r=0,i=0;r<e.length;++r)switch(e.charCodeAt(r)){case 34:n=!n;break;case 95:case 42:case 92:++r;break;case 59:t[t.length]=e.substr(i,r-i),i=r+1}if(t[t.length]=e.substr(i),!0===n)throw new Error("Format |"+e+"| unterminated string ");return t}(e),r=n.length,i=n[r-1].indexOf("@");if(r<4&&i>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!=typeof t)return[4,4===n.length||i>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=i>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=i>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=i>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"]}var a=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,a];if(null!=n[0].match(/\[[=<>]/)||null!=n[1].match(/\[[=<>]/)){var s=n[0].match(de),o=n[1].match(de);return pe(t,s)?[r,n[0]]:pe(t,o)?[r,n[1]]:[r,n[null!=s&&null!=o?2:1]]}return[r,a]}(r,t);if(I(i[1]))return Y(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return function(e,t,n,r){for(var i,a,s,o=[],l="",c=0,u="",h="t",f="H";c<e.length;)switch(u=e.charAt(c)){case"G":if(!I(e,c))throw new Error("unrecognized character "+u+" in "+e);o[o.length]={t:"G",v:"General"},c+=7;break;case'"':for(l="";34!==(s=e.charCodeAt(++c))&&c<e.length;)l+=String.fromCharCode(s);o[o.length]={t:"t",v:l},++c;break;case"\\":var d=e.charAt(++c),p="("===d||")"===d?d:"t";o[o.length]={t:p,v:d},++c;break;case"_":o[o.length]={t:"t",v:" "},c+=2;break;case"@":o[o.length]={t:"T",v:t},++c;break;case"B":case"b":if("1"===e.charAt(c+1)||"2"===e.charAt(c+1)){if(null==i&&null==(i=V(t,n,"2"===e.charAt(c+1))))return"";o[o.length]={t:"X",v:e.substr(c,2)},h=u,c+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":u=u.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0)return"";if(null==i&&null==(i=V(t,n)))return"";for(l=u;++c<e.length&&e.charAt(c).toLowerCase()===u;)l+=u;"m"===u&&"h"===h.toLowerCase()&&(u="M"),"h"===u&&(u=f),o[o.length]={t:u,v:l},h=u;break;case"A":case"a":case"上":var m={t:u,v:u};if(null==i&&(i=V(t,n)),"A/P"===e.substr(c,3).toUpperCase()?(null!=i&&(m.v=i.H>=12?"P":"A"),m.t="T",f="h",c+=3):"AM/PM"===e.substr(c,5).toUpperCase()?(null!=i&&(m.v=i.H>=12?"PM":"AM"),m.t="T",c+=5,f="h"):"上午/下午"===e.substr(c,5).toUpperCase()?(null!=i&&(m.v=i.H>=12?"下午":"上午"),m.t="T",c+=5,f="h"):(m.t="t",++c),null==i&&"T"===m.t)return"";o[o.length]=m,h=u;break;case"[":for(l=u;"]"!==e.charAt(c++)&&c<e.length;)l+=e.charAt(c);if("]"!==l.slice(-1))throw'unterminated "[" block: |'+l+"|";if(l.match(he)){if(null==i&&null==(i=V(t,n)))return"";o[o.length]={t:"Z",v:l.toLowerCase()},h=l.charAt(1)}else l.indexOf("$")>-1&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",fe(e)||(o[o.length]={t:"t",v:l}));break;case".":if(null!=i){for(l=u;++c<e.length&&"0"===(u=e.charAt(c));)l+=u;o[o.length]={t:"s",v:l};break}case"0":case"#":for(l=u;++c<e.length&&"0#?.,E+-%".indexOf(u=e.charAt(c))>-1;)l+=u;o[o.length]={t:"n",v:l};break;case"?":for(l=u;e.charAt(++c)===u;)l+=u;o[o.length]={t:u,v:l},h=u;break;case"*":++c," "!=e.charAt(c)&&"*"!=e.charAt(c)||++c;break;case"(":case")":o[o.length]={t:1===r?"t":u,v:u},++c;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(l=u;c<e.length&&"0123456789".indexOf(e.charAt(++c))>-1;)l+=e.charAt(c);o[o.length]={t:"D",v:l};break;case" ":o[o.length]={t:u,v:u},++c;break;case"$":o[o.length]={t:"t",v:"$"},++c;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(u))throw new Error("unrecognized character "+u+" in "+e);o[o.length]={t:"t",v:u},++c}var g,v=0,y=0;for(c=o.length-1,h="t";c>=0;--c)switch(o[c].t){case"h":case"H":o[c].t=f,h="h",v<1&&(v=1);break;case"s":(g=o[c].v.match(/\.0+$/))&&(y=Math.max(y,g[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":h=o[c].t;break;case"m":"s"===h&&(o[c].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&o[c].v.match(/[Hh]/)&&(v=1),v<2&&o[c].v.match(/[Mm]/)&&(v=2),v<3&&o[c].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M),i.M>=60&&(i.M=0,++i.H);break;case 2:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M)}var b,x="";for(c=0;c<o.length;++c)switch(o[c].t){case"t":case"T":case" ":case"D":break;case"X":o[c].v="",o[c].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":o[c].v=Z(o[c].t.charCodeAt(0),o[c].v,i,y),o[c].t="t";break;case"n":case"?":for(b=c+1;null!=o[b]&&("?"===(u=o[b].t)||"D"===u||(" "===u||"t"===u)&&null!=o[b+1]&&("?"===o[b+1].t||"t"===o[b+1].t&&"/"===o[b+1].v)||"("===o[c].t&&(" "===u||"n"===u||")"===u)||"t"===u&&("/"===o[b].v||" "===o[b].v&&null!=o[b+1]&&"?"==o[b+1].t));)o[c].v+=o[b].v,o[b]={v:"",t:";"},++b;x+=o[c].v,c=b-1;break;case"G":o[c].t="t",o[c].v=Y(t,n)}var _,w,T="";if(x.length>0){40==x.charCodeAt(0)?(_=t<0&&45===x.charCodeAt(0)?-t:t,w=ue("n",x,_)):(w=ue("n",x,_=t<0&&r>1?-t:t),_<0&&o[0]&&"t"==o[0].t&&(w=w.substr(1),o[0].v="-"+o[0].v)),b=w.length-1;var S=o.length;for(c=0;c<o.length;++c)if(null!=o[c]&&"t"!=o[c].t&&o[c].v.indexOf(".")>-1){S=c;break}var E=o.length;if(S===o.length&&-1===w.indexOf("E")){for(c=o.length-1;c>=0;--c)null!=o[c]&&-1!=="n?".indexOf(o[c].t)&&(b>=o[c].v.length-1?(b-=o[c].v.length,o[c].v=w.substr(b+1,o[c].v.length)):b<0?o[c].v="":(o[c].v=w.substr(0,b+1),b=-1),o[c].t="t",E=c);b>=0&&E<o.length&&(o[E].v=w.substr(0,b+1)+o[E].v)}else if(S!==o.length&&-1===w.indexOf("E")){for(b=w.indexOf(".")-1,c=S;c>=0;--c)if(null!=o[c]&&-1!=="n?".indexOf(o[c].t)){for(a=o[c].v.indexOf(".")>-1&&c===S?o[c].v.indexOf(".")-1:o[c].v.length-1,T=o[c].v.substr(a+1);a>=0;--a)b>=0&&("0"===o[c].v.charAt(a)||"#"===o[c].v.charAt(a))&&(T=w.charAt(b--)+T);o[c].v=T,o[c].t="t",E=c}for(b>=0&&E<o.length&&(o[E].v=w.substr(0,b+1)+o[E].v),b=w.indexOf(".")+1,c=S;c<o.length;++c)if(null!=o[c]&&(-1!=="n?(".indexOf(o[c].t)||c===S)){for(a=o[c].v.indexOf(".")>-1&&c===S?o[c].v.indexOf(".")+1:0,T=o[c].v.substr(0,a);a<o[c].v.length;++a)b<w.length&&(T+=w.charAt(b++));o[c].v=T,o[c].t="t",E=c}}}for(c=0;c<o.length;++c)null!=o[c]&&"n?".indexOf(o[c].t)>-1&&(_=r>1&&t<0&&c>0&&"-"===o[c-1].v?-t:t,o[c].v=ue(o[c].t,o[c].v,_),o[c].t="t");var M="";for(c=0;c!==o.length;++c)null!=o[c]&&(M+=o[c].v);return M}(i[1],t,n,i[0])}function ge(e,t){if("number"!=typeof t){t=+t||-1;for(var n=0;n<392;++n)if(null!=B[n]){if(B[n]==e){t=n;break}}else t<0&&(t=n);t<0&&(t=391)}return B[t]=e,t}function ve(){var e;e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',B=e}var ye={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},be=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,xe=function(){var e={version:"1.2.0"},t=function(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=n)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),n=function(e){var t=0,n=0,r=0,i="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)i[r]=e[r];for(r=0;256!=r;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=i[t]=n>>>8^e[255&n];var a=[];for(r=1;16!=r;++r)a[r-1]="undefined"!=typeof Int32Array?i.subarray(256*r,256*r+256):i.slice(256*r,256*r+256);return a}(t),r=n[0],i=n[1],a=n[2],s=n[3],o=n[4],l=n[5],c=n[6],u=n[7],h=n[8],f=n[9],d=n[10],p=n[11],m=n[12],g=n[13],v=n[14];return e.table=t,e.bstr=function(e,n){for(var r=-1^n,i=0,a=e.length;i<a;)r=r>>>8^t[255&(r^e.charCodeAt(i++))];return~r},e.buf=function(e,n){for(var y=-1^n,b=e.length-15,x=0;x<b;)y=v[e[x++]^255&y]^g[e[x++]^y>>8&255]^m[e[x++]^y>>16&255]^p[e[x++]^y>>>24]^d[e[x++]]^f[e[x++]]^h[e[x++]]^u[e[x++]]^c[e[x++]]^l[e[x++]]^o[e[x++]]^s[e[x++]]^a[e[x++]]^i[e[x++]]^r[e[x++]]^t[e[x++]];for(b+=15;x<b;)y=y>>>8^t[255&(y^e[x++])];return~y},e.str=function(e,n){for(var r=-1^n,i=0,a=e.length,s=0,o=0;i<a;)(s=e.charCodeAt(i++))<128?r=r>>>8^t[255&(r^s)]:s<2048?r=(r=r>>>8^t[255&(r^(192|s>>6&31))])>>>8^t[255&(r^(128|63&s))]:s>=55296&&s<57344?(s=64+(1023&s),o=1023&e.charCodeAt(i++),r=(r=(r=(r=r>>>8^t[255&(r^(240|s>>8&7))])>>>8^t[255&(r^(128|s>>2&63))])>>>8^t[255&(r^(128|o>>6&15|(3&s)<<4))])>>>8^t[255&(r^(128|63&o))]):r=(r=(r=r>>>8^t[255&(r^(224|s>>12&15))])>>>8^t[255&(r^(128|s>>6&63))])>>>8^t[255&(r^(128|63&s))];return~r},e}(),_e=function(){var e,t={};function n(e){if("/"==e.charAt(e.length-1))return-1===e.slice(0,-1).indexOf("/")?e:n(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(0,t+1)}function r(e){if("/"==e.charAt(e.length-1))return r(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(t+1)}function i(e,t){"string"==typeof t&&(t=new Date(t));var n=t.getHours();n=(n=n<<6|t.getMinutes())<<5|t.getSeconds()>>>1,e.write_shift(2,n);var r=t.getFullYear()-1980;r=(r=r<<4|t.getMonth()+1)<<5|t.getDate(),e.write_shift(2,r)}function a(e){on(e,0);for(var t={},n=0;e.l<=e.length-4;){var r=e.read_shift(2),i=e.read_shift(2),a=e.l+i,s={};21589===r&&(1&(n=e.read_shift(1))&&(s.mtime=e.read_shift(4)),i>5&&(2&n&&(s.atime=e.read_shift(4)),4&n&&(s.ctime=e.read_shift(4))),s.mtime&&(s.mt=new Date(1e3*s.mtime))),e.l=a,t[r]=s}return t}function s(){return e||(e={})}function o(e,t){if(80==e[0]&&75==e[1])return de(e,t);if(109==(32|e[0])&&105==(32|e[1]))return function(e,t){if("mime-version:"!=P(e.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var n=t&&t.root||"",r=(b&&Buffer.isBuffer(e)?e.toString("binary"):P(e)).split("\r\n"),i=0,a="";for(i=0;i<r.length;++i)if(a=r[i],/^Content-Location:/i.test(a)&&(a=a.slice(a.indexOf("file")),n||(n=a.slice(0,a.lastIndexOf("/")+1)),a.slice(0,n.length)!=n))for(;n.length>0&&(n=(n=n.slice(0,n.length-1)).slice(0,n.lastIndexOf("/")+1),a.slice(0,n.length)!=n););var s=(r[1]||"").match(/boundary="(.*?)"/);if(!s)throw new Error("MAD cannot find boundary");var o="--"+(s[1]||""),l={FileIndex:[],FullPaths:[]};f(l);var c,u=0;for(i=0;i<r.length;++i){var h=r[i];h!==o&&h!==o+"--"||(u++&&be(l,r.slice(c,i),n),c=i)}return l}(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var n,r,i,a,s,o,d=512,p=[],m=e.slice(0,512);on(m,0);var g=function(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(E,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}(m);switch(n=g[0]){case 3:d=512;break;case 4:d=4096;break;case 0:if(0==g[1])return de(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+n)}512!==d&&on(m=e.slice(0,d),28);var v=e.slice(0,d);!function(e,t){var n;switch(e.l+=2,n=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+n);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+n);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+n)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}(m,n);var y=m.read_shift(4,"i");if(3===n&&0!==y)throw new Error("# Directory Sectors: Expected 0 saw "+y);m.l+=4,a=m.read_shift(4,"i"),m.l+=4,m.chk("00100000","Mini Stream Cutoff Size: "),s=m.read_shift(4,"i"),r=m.read_shift(4,"i"),o=m.read_shift(4,"i"),i=m.read_shift(4,"i");for(var x=-1,_=0;_<109&&!((x=m.read_shift(4,"i"))<0);++_)p[_]=x;var w=function(e,t){for(var n=Math.ceil(e.length/t)-1,r=[],i=1;i<n;++i)r[i-1]=e.slice(i*t,(i+1)*t);return r[n-1]=e.slice(n*t),r}(e,d);c(o,i,w,d,p);var T=function(e,t,n,r){var i=e.length,a=[],s=[],o=[],l=[],c=r-1,u=0,h=0,f=0,d=0;for(u=0;u<i;++u)if(o=[],(f=u+t)>=i&&(f-=i),!s[f]){l=[];var p=[];for(h=f;h>=0;){p[h]=!0,s[h]=!0,o[o.length]=h,l.push(e[h]);var m=n[Math.floor(4*h/r)];if(r<4+(d=4*h&c))throw new Error("FAT boundary crossed: "+h+" 4 "+r);if(!e[m])break;if(p[h=en(e[m],d)])break}a[f]={nodes:o,data:Lt([l])}}return a}(w,a,p,d);T[a].name="!Directory",r>0&&s!==S&&(T[s].name="!MiniFAT"),T[p[0]].name="!FAT",T.fat_addrs=p,T.ssz=d;var M=[],A=[],C=[];!function(e,t,n,r,i,a,s,o){for(var c,f=0,d=r.length?2:0,p=t[e].data,m=0,g=0;m<p.length;m+=128){var v=p.slice(m,m+128);on(v,64),g=v.read_shift(2),c=Pt(v,0,g-d),r.push(c);var y={name:c,type:v.read_shift(1),color:v.read_shift(1),L:v.read_shift(4,"i"),R:v.read_shift(4,"i"),C:v.read_shift(4,"i"),clsid:v.read_shift(16),state:v.read_shift(4,"i"),start:0,size:0};0!==v.read_shift(2)+v.read_shift(2)+v.read_shift(2)+v.read_shift(2)&&(y.ct=h(v,v.l-8)),0!==v.read_shift(2)+v.read_shift(2)+v.read_shift(2)+v.read_shift(2)&&(y.mt=h(v,v.l-8)),y.start=v.read_shift(4,"i"),y.size=v.read_shift(4,"i"),y.size<0&&y.start<0&&(y.size=y.type=0,y.start=S,y.name=""),5===y.type?(f=y.start,i>0&&f!==S&&(t[f].name="!StreamData")):y.size>=4096?(y.storage="fat",void 0===t[y.start]&&(t[y.start]=u(n,y.start,t.fat_addrs,t.ssz)),t[y.start].name=y.name,y.content=t[y.start].data.slice(0,y.size)):(y.storage="minifat",y.size<0?y.size=0:f!==S&&y.start!==S&&t[f]&&(y.content=l(y,t[f].data,(t[o]||{}).data))),y.content&&on(y.content,0),a[c]=y,s.push(y)}}(a,T,w,M,r,{},A,s),function(e,t,n){for(var r=0,i=0,a=0,s=0,o=0,l=n.length,c=[],u=[];r<l;++r)c[r]=u[r]=r,t[r]=n[r];for(;o<u.length;++o)i=e[r=u[o]].L,a=e[r].R,s=e[r].C,c[r]===r&&(-1!==i&&c[i]!==i&&(c[r]=c[i]),-1!==a&&c[a]!==a&&(c[r]=c[a])),-1!==s&&(c[s]=r),-1!==i&&r!=c[r]&&(c[i]=c[r],u.lastIndexOf(i)<o&&u.push(i)),-1!==a&&r!=c[r]&&(c[a]=c[r],u.lastIndexOf(a)<o&&u.push(a));for(r=1;r<l;++r)c[r]===r&&(-1!==a&&c[a]!==a?c[r]=c[a]:-1!==i&&c[i]!==i&&(c[r]=c[i]));for(r=1;r<l;++r)if(0!==e[r].type){if((o=r)!=c[o])do{o=c[o],t[r]=t[o]+"/"+t[r]}while(0!==o&&-1!==c[o]&&o!=c[o]);c[r]=-1}for(t[0]+="/",r=1;r<l;++r)2!==e[r].type&&(t[r]+="/")}(A,C,M),M.shift();var R={FileIndex:A,FullPaths:C};return t&&t.raw&&(R.raw={header:v,sectors:w}),R}function l(e,t,n){for(var r=e.start,i=e.size,a=[],s=r;n&&i>0&&s>=0;)a.push(t.slice(s*g,s*g+g)),i-=g,s=en(n,4*s);return 0===a.length?cn(0):M(a).slice(0,e.size)}function c(e,t,n,r,i){var a=S;if(e===S){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var s=n[e],o=(r>>>2)-1;if(!s)return;for(var l=0;l<o&&(a=en(s,4*l))!==S;++l)i.push(a);c(en(s,r-4),t-1,n,r,i)}}function u(e,t,n,r,i){var a=[],s=[];i||(i=[]);var o=r-1,l=0,c=0;for(l=t;l>=0;){i[l]=!0,a[a.length]=l,s.push(e[l]);var u=n[Math.floor(4*l/r)];if(r<4+(c=4*l&o))throw new Error("FAT boundary crossed: "+l+" 4 "+r);if(!e[u])break;l=en(e[u],c)}return{nodes:a,data:Lt([s])}}function h(e,t){return new Date(1e3*(Qt(e,t+4)/1e7*Math.pow(2,32)+Qt(e,t)/1e7-11644473600))}function f(e,t){var n=t||{},r=n.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=r+"/",e.FileIndex[0]={name:r,type:5}),n.CLSID&&(e.FileIndex[0].clsid=n.CLSID),function(e){var t="Sh33tJ5";if(!_e.find(e,"/"+t)){var n=cn(4);n[0]=55,n[1]=n[3]=50,n[2]=54,e.FileIndex.push({name:t,type:2,content:n,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),d(e)}}(e)}function d(e,t){f(e);for(var i=!1,a=!1,s=e.FullPaths.length-1;s>=0;--s){var o=e.FileIndex[s];switch(o.type){case 0:a?i=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:a=!0,isNaN(o.R*o.L*o.C)&&(i=!0),o.R>-1&&o.L>-1&&o.R==o.L&&(i=!0);break;default:i=!0}}if(i||t){var l=new Date(1987,1,19),c=0,u=Object.create?Object.create(null):{},h=[];for(s=0;s<e.FullPaths.length;++s)u[e.FullPaths[s]]=!0,0!==e.FileIndex[s].type&&h.push([e.FullPaths[s],e.FileIndex[s]]);for(s=0;s<h.length;++s){var d=n(h[s][0]);(a=u[d])||(h.push([d,{name:r(d).replace("/",""),type:1,clsid:L,ct:l,mt:l,content:null}]),u[d]=!0)}for(h.sort((function(e,t){return function(e,t){for(var n=e.split("/"),r=t.split("/"),i=0,a=0,s=Math.min(n.length,r.length);i<s;++i){if(a=n[i].length-r[i].length)return a;if(n[i]!=r[i])return n[i]<r[i]?-1:1}return n.length-r.length}(e[0],t[0])})),e.FullPaths=[],e.FileIndex=[],s=0;s<h.length;++s)e.FullPaths[s]=h[s][0],e.FileIndex[s]=h[s][1];for(s=0;s<h.length;++s){var p=e.FileIndex[s],m=e.FullPaths[s];if(p.name=r(m).replace("/",""),p.L=p.R=p.C=-(p.color=1),p.size=p.content?p.content.length:0,p.start=0,p.clsid=p.clsid||L,0===s)p.C=h.length>1?1:-1,p.size=0,p.type=5;else if("/"==m.slice(-1)){for(c=s+1;c<h.length&&n(e.FullPaths[c])!=m;++c);for(p.C=c>=h.length?-1:c,c=s+1;c<h.length&&n(e.FullPaths[c])!=n(m);++c);p.R=c>=h.length?-1:c,p.type=1}else n(e.FullPaths[s+1]||"")==n(m)&&(p.R=s+1),p.type=2}}}function p(e,t){var n=t||{};if("mad"==n.fileType)return function(e,t){for(var n=t||{},r=n.boundary||"SheetJS",i=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(r="------="+r).slice(2)+'"',"","",""],a=e.FullPaths[0],s=a,o=e.FileIndex[0],l=1;l<e.FullPaths.length;++l)if(s=e.FullPaths[l].slice(a.length),(o=e.FileIndex[l]).size&&o.content&&"Sh33tJ5"!=s){s=s.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,(function(e){return"_x"+e.charCodeAt(0).toString(16)+"_"})).replace(/[\u0080-\uFFFF]/g,(function(e){return"_u"+e.charCodeAt(0).toString(16)+"_"}));for(var c=o.content,u=b&&Buffer.isBuffer(c)?c.toString("binary"):P(c),h=0,f=Math.min(1024,u.length),d=0,p=0;p<=f;++p)(d=u.charCodeAt(p))>=32&&d<128&&++h;var m=h>=4*f/5;i.push(r),i.push("Content-Location: "+(n.root||"file:///C:/SheetJS/")+s),i.push("Content-Transfer-Encoding: "+(m?"quoted-printable":"base64")),i.push("Content-Type: "+ge(o,s)),i.push(""),i.push(m?ye(u):ve(u))}return i.push(r+"--\r\n"),i.join("\r\n")}(e,n);if(d(e),"zip"===n.fileType)return function(e,t){var n,r=t||{},a=[],s=[],o=cn(1),l=r.compression?8:0,c=0,u=0,h=0,f=0,d=e.FullPaths[0],p=d,g=e.FileIndex[0],v=[],y=0;for(c=1;c<e.FullPaths.length;++c)if(p=e.FullPaths[c].slice(d.length),(g=e.FileIndex[c]).size&&g.content&&"Sh33tJ5"!=p){var b=h,x=cn(p.length);for(u=0;u<p.length;++u)x.write_shift(1,127&p.charCodeAt(u));x=x.slice(0,x.l),v[f]=xe.buf(g.content,0);var _=g.content;8==l&&(n=_,_=m?m.deflateRawSync(n):ie(n)),(o=cn(30)).write_shift(4,67324752),o.write_shift(2,20),o.write_shift(2,0),o.write_shift(2,l),g.mt?i(o,g.mt):o.write_shift(4,0),o.write_shift(-4,v[f]),o.write_shift(4,_.length),o.write_shift(4,g.content.length),o.write_shift(2,x.length),o.write_shift(2,0),h+=o.length,a.push(o),h+=x.length,a.push(x),h+=_.length,a.push(_),(o=cn(46)).write_shift(4,33639248),o.write_shift(2,0),o.write_shift(2,20),o.write_shift(2,0),o.write_shift(2,l),o.write_shift(4,0),o.write_shift(-4,v[f]),o.write_shift(4,_.length),o.write_shift(4,g.content.length),o.write_shift(2,x.length),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(4,0),o.write_shift(4,b),y+=o.l,s.push(o),y+=x.length,s.push(x),++f}return(o=cn(22)).write_shift(4,101010256),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,f),o.write_shift(2,f),o.write_shift(4,y),o.write_shift(4,h),o.write_shift(2,0),M([M(a),M(s),o])}(e,n);var r=function(e){for(var t=0,n=0,r=0;r<e.FileIndex.length;++r){var i=e.FileIndex[r];if(i.content){var a=i.content.length;a>0&&(a<4096?t+=a+63>>6:n+=a+511>>9)}}for(var s=e.FullPaths.length+3>>2,o=t+127>>7,l=(t+7>>3)+n+s+o,c=l+127>>7,u=c<=109?0:Math.ceil((c-109)/127);l+c+u+127>>7>c;)u=++c<=109?0:Math.ceil((c-109)/127);var h=[1,u,c,o,s,n,t,0];return e.FileIndex[0].size=t<<6,h[7]=(e.FileIndex[0].start=h[0]+h[1]+h[2]+h[3]+h[4]+h[5])+(h[6]+7>>3),h}(e),a=cn(r[7]<<9),s=0,o=0;for(s=0;s<8;++s)a.write_shift(1,R[s]);for(s=0;s<8;++s)a.write_shift(2,0);for(a.write_shift(2,62),a.write_shift(2,3),a.write_shift(2,65534),a.write_shift(2,9),a.write_shift(2,6),s=0;s<3;++s)a.write_shift(2,0);for(a.write_shift(4,0),a.write_shift(4,r[2]),a.write_shift(4,r[0]+r[1]+r[2]+r[3]-1),a.write_shift(4,0),a.write_shift(4,4096),a.write_shift(4,r[3]?r[0]+r[1]+r[2]-1:S),a.write_shift(4,r[3]),a.write_shift(-4,r[1]?r[0]-1:S),a.write_shift(4,r[1]),s=0;s<109;++s)a.write_shift(-4,s<r[2]?r[1]+s:-1);if(r[1])for(o=0;o<r[1];++o){for(;s<236+127*o;++s)a.write_shift(-4,s<r[2]?r[1]+s:-1);a.write_shift(-4,o===r[1]-1?S:o+1)}var l=function(e){for(o+=e;s<o-1;++s)a.write_shift(-4,s+1);e&&(++s,a.write_shift(-4,S))};for(o=s=0,o+=r[1];s<o;++s)a.write_shift(-4,k.DIFSECT);for(o+=r[2];s<o;++s)a.write_shift(-4,k.FATSECT);l(r[3]),l(r[4]);for(var c=0,u=0,h=e.FileIndex[0];c<e.FileIndex.length;++c)(h=e.FileIndex[c]).content&&((u=h.content.length)<4096||(h.start=o,l(u+511>>9)));for(l(r[6]+7>>3);511&a.l;)a.write_shift(-4,k.ENDOFCHAIN);for(o=s=0,c=0;c<e.FileIndex.length;++c)(h=e.FileIndex[c]).content&&(!(u=h.content.length)||u>=4096||(h.start=o,l(u+63>>6)));for(;511&a.l;)a.write_shift(-4,k.ENDOFCHAIN);for(s=0;s<r[4]<<2;++s){var f=e.FullPaths[s];if(f&&0!==f.length){h=e.FileIndex[s],0===s&&(h.start=h.size?h.start-1:S);var p=0===s&&n.root||h.name;if(u=2*(p.length+1),a.write_shift(64,p,"utf16le"),a.write_shift(2,u),a.write_shift(1,h.type),a.write_shift(1,h.color),a.write_shift(-4,h.L),a.write_shift(-4,h.R),a.write_shift(-4,h.C),h.clsid)a.write_shift(16,h.clsid,"hex");else for(c=0;c<4;++c)a.write_shift(4,0);a.write_shift(4,h.state||0),a.write_shift(4,0),a.write_shift(4,0),a.write_shift(4,0),a.write_shift(4,0),a.write_shift(4,h.start),a.write_shift(4,h.size),a.write_shift(4,0)}else{for(c=0;c<17;++c)a.write_shift(4,0);for(c=0;c<3;++c)a.write_shift(4,-1);for(c=0;c<12;++c)a.write_shift(4,0)}}for(s=1;s<e.FileIndex.length;++s)if((h=e.FileIndex[s]).size>=4096)if(a.l=h.start+1<<9,b&&Buffer.isBuffer(h.content))h.content.copy(a,a.l,0,h.size),a.l+=h.size+511&-512;else{for(c=0;c<h.size;++c)a.write_shift(1,h.content[c]);for(;511&c;++c)a.write_shift(1,0)}for(s=1;s<e.FileIndex.length;++s)if((h=e.FileIndex[s]).size>0&&h.size<4096)if(b&&Buffer.isBuffer(h.content))h.content.copy(a,a.l,0,h.size),a.l+=h.size+63&-64;else{for(c=0;c<h.size;++c)a.write_shift(1,h.content[c]);for(;63&c;++c)a.write_shift(1,0)}if(b)a.l=a.length;else for(;a.l<a.length;)a.write_shift(1,0);return a}t.version="1.2.1";var m,g=64,S=-2,E="d0cf11e0a1b11ae1",R=[208,207,17,224,161,177,26,225],L="00000000000000000000000000000000",k={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:S,FREESECT:-1,HEADER_SIGNATURE:E,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:L,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function P(e){for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}for(var D,O,I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],N=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],F=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],B="undefined"!=typeof Uint8Array,U=B?new Uint8Array(256):[],z=0;z<256;++z)U[z]=(void 0,255&((O=139536&((D=z)<<1|D<<11)|558144&(D<<5|D<<15))>>16|O>>8|O));function H(e,t){var n=U[255&e];return t<=8?n>>>8-t:(n=n<<8|U[e>>8&255],t<=16?n>>>16-t:(n=n<<8|U[e>>16&255])>>>24-t)}function V(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=6?0:e[r+1]<<8))>>>n&3}function G(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=5?0:e[r+1]<<8))>>>n&7}function W(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=3?0:e[r+1]<<8))>>>n&31}function j(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=1?0:e[r+1]<<8))>>>n&127}function X(e,t,n){var r=7&t,i=t>>>3,a=(1<<n)-1,s=e[i]>>>r;return n<8-r?s&a:(s|=e[i+1]<<8-r,n<16-r?s&a:(s|=e[i+2]<<16-r,n<24-r?s&a:(s|=e[i+3]<<24-r)&a))}function q(e,t,n){var r=7&t,i=t>>>3;return r<=5?e[i]|=(7&n)<<r:(e[i]|=n<<r&255,e[i+1]=(7&n)>>8-r),t+3}function $(e,t,n){return n=(1&n)<<(7&t),e[t>>>3]|=n,t+1}function Y(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=n,t+8}function Z(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=255&n,e[r+2]=n>>>8,t+16}function J(e,t){var n=e.length,r=2*n>t?2*n:t+5,i=0;if(n>=t)return e;if(b){var a=w(r);if(e.copy)e.copy(a);else for(;i<e.length;++i)a[i]=e[i];return a}if(B){var s=new Uint8Array(r);if(s.set)s.set(e);else for(;i<n;++i)s[i]=e[i];return s}return e.length=r,e}function K(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=0;return t}function Q(e,t,n){var r=1,i=0,a=0,s=0,o=0,l=e.length,c=B?new Uint16Array(32):K(32);for(a=0;a<32;++a)c[a]=0;for(a=l;a<n;++a)e[a]=0;l=e.length;var u=B?new Uint16Array(l):K(l);for(a=0;a<l;++a)c[i=e[a]]++,r<i&&(r=i),u[a]=0;for(c[0]=0,a=1;a<=r;++a)c[a+16]=o=o+c[a-1]<<1;for(a=0;a<l;++a)0!=(o=e[a])&&(u[a]=c[o+16]++);var h=0;for(a=0;a<l;++a)if(0!=(h=e[a]))for(o=H(u[a],r)>>r-h,s=(1<<r+4-h)-1;s>=0;--s)t[o|s<<h]=15&h|a<<4;return r}var ee=B?new Uint16Array(512):K(512),te=B?new Uint16Array(32):K(32);if(!B){for(var ne=0;ne<512;++ne)ee[ne]=0;for(ne=0;ne<32;++ne)te[ne]=0}!function(){for(var e=[],t=0;t<32;t++)e.push(5);Q(e,te,32);var n=[];for(t=0;t<=143;t++)n.push(8);for(;t<=255;t++)n.push(9);for(;t<=279;t++)n.push(7);for(;t<=287;t++)n.push(8);Q(n,ee,288)}();var re=function(){for(var e=B?new Uint8Array(32768):[],t=0,n=0;t<F.length-1;++t)for(;n<F[t+1];++n)e[n]=t;for(;n<32768;++n)e[n]=29;var r=B?new Uint8Array(259):[];for(t=0,n=0;t<N.length-1;++t)for(;n<N[t+1];++n)r[n]=t;return function(t,n){return t.length<8?function(e,t){for(var n=0;n<e.length;){var r=Math.min(65535,e.length-n),i=n+r==e.length;for(t.write_shift(1,+i),t.write_shift(2,r),t.write_shift(2,65535&~r);r-- >0;)t[t.l++]=e[n++]}return t.l}(t,n):function(t,n){for(var i=0,a=0,s=B?new Uint16Array(32768):[];a<t.length;){var o=Math.min(65535,t.length-a);if(o<10){for(7&(i=q(n,i,+!(a+o!=t.length)))&&(i+=8-(7&i)),n.l=i/8|0,n.write_shift(2,o),n.write_shift(2,65535&~o);o-- >0;)n[n.l++]=t[a++];i=8*n.l}else{i=q(n,i,+!(a+o!=t.length)+2);for(var l=0;o-- >0;){var c=t[a],u=-1,h=0;if((u=s[l=32767&(l<<5^c)])&&((u|=-32768&a)>a&&(u-=32768),u<a))for(;t[u+h]==t[a+h]&&h<250;)++h;if(h>2){(c=r[h])<=22?i=Y(n,i,U[c+1]>>1)-1:(Y(n,i,3),Y(n,i+=5,U[c-23]>>5),i+=3);var f=c<8?0:c-4>>2;f>0&&(Z(n,i,h-N[c]),i+=f),c=e[a-u],i=Y(n,i,U[c]>>3),i-=3;var d=c<4?0:c-2>>1;d>0&&(Z(n,i,a-u-F[c]),i+=d);for(var p=0;p<h;++p)s[l]=32767&a,l=32767&(l<<5^t[a]),++a;o-=h-1}else c<=143?c+=48:i=$(n,i,1),i=Y(n,i,U[c]),s[l]=32767&a,++a}i=Y(n,i,0)-1}}return n.l=(i+7)/8|0,n.l}(t,n)}}();function ie(e){var t=cn(50+Math.floor(1.1*e.length)),n=re(e,t);return t.slice(0,n)}var ae=B?new Uint16Array(32768):K(32768),se=B?new Uint16Array(32768):K(32768),oe=B?new Uint16Array(128):K(128),le=1,ce=1;function ue(e,t){var n=W(e,t)+257,r=W(e,t+=5)+1,i=function(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=4?0:e[r+1]<<8))>>>n&15}(e,t+=5)+4;t+=4;for(var a=0,s=B?new Uint8Array(19):K(19),o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=1,c=B?new Uint8Array(8):K(8),u=B?new Uint8Array(8):K(8),h=s.length,f=0;f<i;++f)s[I[f]]=a=G(e,t),l<a&&(l=a),c[a]++,t+=3;var d=0;for(c[0]=0,f=1;f<=l;++f)u[f]=d=d+c[f-1]<<1;for(f=0;f<h;++f)0!=(d=s[f])&&(o[f]=u[d]++);var p=0;for(f=0;f<h;++f)if(0!=(p=s[f])){d=U[o[f]]>>8-p;for(var m=(1<<7-p)-1;m>=0;--m)oe[d|m<<p]=7&p|f<<3}var g=[];for(l=1;g.length<n+r;)switch(t+=7&(d=oe[j(e,t)]),d>>>=3){case 16:for(a=3+V(e,t),t+=2,d=g[g.length-1];a-- >0;)g.push(d);break;case 17:for(a=3+G(e,t),t+=3;a-- >0;)g.push(0);break;case 18:for(a=11+j(e,t),t+=7;a-- >0;)g.push(0);break;default:g.push(d),l<d&&(l=d)}var v=g.slice(0,n),y=g.slice(n);for(f=n;f<286;++f)v[f]=0;for(f=r;f<30;++f)y[f]=0;return le=Q(v,ae,286),ce=Q(y,se,30),t}function he(e,t){var n=function(e,t){if(3==e[0]&&!(3&e[1]))return[_(t),2];for(var n=0,r=0,i=w(t||1<<18),a=0,s=i.length>>>0,o=0,l=0;0==(1&r);)if(r=G(e,n),n+=3,r>>>1!=0)for(r>>1==1?(o=9,l=5):(n=ue(e,n),o=le,l=ce);;){!t&&s<a+32767&&(s=(i=J(i,a+32767)).length);var c=X(e,n,o),u=r>>>1==1?ee[c]:ae[c];if(n+=15&u,0==((u>>>=4)>>>8&255))i[a++]=u;else{if(256==u)break;var h=(u-=257)<8?0:u-4>>2;h>5&&(h=0);var f=a+N[u];h>0&&(f+=X(e,n,h),n+=h),c=X(e,n,l),n+=15&(u=r>>>1==1?te[c]:se[c]);var d=(u>>>=4)<4?0:u-2>>1,p=F[u];for(d>0&&(p+=X(e,n,d),n+=d),!t&&s<f&&(s=(i=J(i,f+100)).length);a<f;)i[a]=i[a-p],++a}}else{7&n&&(n+=8-(7&n));var m=e[n>>>3]|e[1+(n>>>3)]<<8;if(n+=32,m>0)for(!t&&s<a+m&&(s=(i=J(i,a+m)).length);m-- >0;)i[a++]=e[n>>>3],n+=8}return t?[i,n+7>>>3]:[i.slice(0,a),n+7>>>3]}(e.slice(e.l||0),t);return e.l+=n[1],n[0]}function fe(e,t){if(!e)throw new Error(t);"undefined"!=typeof console&&console.error(t)}function de(e,t){var n=e;on(n,0);var r={FileIndex:[],FullPaths:[]};f(r,{root:t.root});for(var i=n.length-4;(80!=n[i]||75!=n[i+1]||5!=n[i+2]||6!=n[i+3])&&i>=0;)--i;n.l=i+4,n.l+=4;var s=n.read_shift(2);n.l+=6;var o=n.read_shift(4);for(n.l=o,i=0;i<s;++i){n.l+=20;var l=n.read_shift(4),c=n.read_shift(4),u=n.read_shift(2),h=n.read_shift(2),d=n.read_shift(2);n.l+=8;var p=n.read_shift(4),m=a(n.slice(n.l+u,n.l+u+h));n.l+=u+h+d;var g=n.l;n.l=p+4,pe(n,l,c,r,m),n.l=g}return r}function pe(e,t,n,r,i){e.l+=2;var s=e.read_shift(2),o=e.read_shift(2),l=function(e){var t=65535&e.read_shift(2),n=65535&e.read_shift(2),r=new Date,i=31&n,a=15&(n>>>=5);n>>>=4,r.setMilliseconds(0),r.setFullYear(n+1980),r.setMonth(a-1),r.setDate(i);var s=31&t,o=63&(t>>>=5);return t>>>=6,r.setHours(t),r.setMinutes(o),r.setSeconds(s<<1),r}(e);if(8257&s)throw new Error("Unsupported ZIP encryption");e.read_shift(4);for(var c=e.read_shift(4),u=e.read_shift(4),h=e.read_shift(2),f=e.read_shift(2),d="",p=0;p<h;++p)d+=String.fromCharCode(e[e.l++]);if(f){var g=a(e.slice(e.l,e.l+f));(g[21589]||{}).mt&&(l=g[21589].mt),((i||{})[21589]||{}).mt&&(l=i[21589].mt)}e.l+=f;var v=e.slice(e.l,e.l+c);switch(o){case 8:v=function(e,t){if(!m)return he(e,t);var n=new(0,m.InflateRaw),r=n._processChunk(e.slice(e.l),n._finishFlushFlag);return e.l+=n.bytesRead,r}(e,u);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+o)}var y=!1;8&s&&(134695760==e.read_shift(4)&&(e.read_shift(4),y=!0),c=e.read_shift(4),u=e.read_shift(4)),c!=t&&fe(y,"Bad compressed size: "+t+" != "+c),u!=n&&fe(y,"Bad uncompressed size: "+n+" != "+u),we(r,d,v,{unsafe:!0,mt:l})}var me={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function ge(e,t){if(e.ctype)return e.ctype;var n=e.name||"",r=n.match(/\.([^\.]+)$/);return r&&me[r[1]]||t&&(r=(n=t).match(/[\.\\]([^\.\\])+$/))&&me[r[1]]?me[r[1]]:"application/octet-stream"}function ve(e){for(var t=v(e),n=[],r=0;r<t.length;r+=76)n.push(t.slice(r,r+76));return n.join("\r\n")+"\r\n"}function ye(e){var t=e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,(function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return"="+(1==t.length?"0"+t:t)}));"\n"==(t=t.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(t="=0D"+t.slice(1));for(var n=[],r=(t=t.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),i=0;i<r.length;++i){var a=r[i];if(0!=a.length)for(var s=0;s<a.length;){var o=76,l=a.slice(s,s+o);"="==l.charAt(o-1)?o--:"="==l.charAt(o-2)?o-=2:"="==l.charAt(o-3)&&(o-=3),l=a.slice(s,s+o),(s+=o)<a.length&&(l+="="),n.push(l)}else n.push("")}return n.join("\r\n")}function be(e,t,n){for(var r,i="",a="",s="",o=0;o<10;++o){var l=t[o];if(!l||l.match(/^\s*$/))break;var c=l.match(/^(.*?):\s*([^\s].*)$/);if(c)switch(c[1].toLowerCase()){case"content-location":i=c[2].trim();break;case"content-type":s=c[2].trim();break;case"content-transfer-encoding":a=c[2].trim()}}switch(++o,a.toLowerCase()){case"base64":r=T(y(t.slice(o).join("")));break;case"quoted-printable":r=function(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n];n<=e.length&&"="==r.charAt(r.length-1);)r=r.slice(0,r.length-1)+e[++n];t.push(r)}for(var i=0;i<t.length;++i)t[i]=t[i].replace(/[=][0-9A-Fa-f]{2}/g,(function(e){return String.fromCharCode(parseInt(e.slice(1),16))}));return T(t.join("\r\n"))}(t.slice(o));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+a)}var u=we(e,i.slice(n.length),r,{unsafe:!0});s&&(u.ctype=s)}function we(e,t,n,i){var a=i&&i.unsafe;a||f(e);var s=!a&&_e.find(e,t);if(!s){var o=e.FullPaths[0];t.slice(0,o.length)==o?o=t:("/"!=o.slice(-1)&&(o+="/"),o=(o+t).replace("//","/")),s={name:r(t),type:2},e.FileIndex.push(s),e.FullPaths.push(o),a||_e.utils.cfb_gc(e)}return s.content=n,s.size=n?n.length:0,i&&(i.CLSID&&(s.clsid=i.CLSID),i.mt&&(s.mt=i.mt),i.ct&&(s.ct=i.ct)),s}return t.find=function(e,t){var n=e.FullPaths.map((function(e){return e.toUpperCase()})),r=n.map((function(e){var t=e.split("/");return t[t.length-("/"==e.slice(-1)?2:1)]})),i=!1;47===t.charCodeAt(0)?(i=!0,t=n[0].slice(0,-1)+t):i=-1!==t.indexOf("/");var a=t.toUpperCase(),s=!0===i?n.indexOf(a):r.indexOf(a);if(-1!==s)return e.FileIndex[s];var o=!a.match(C);for(a=a.replace(A,""),o&&(a=a.replace(C,"!")),s=0;s<n.length;++s){if((o?n[s].replace(C,"!"):n[s]).replace(A,"")==a)return e.FileIndex[s];if((o?r[s].replace(C,"!"):r[s]).replace(A,"")==a)return e.FileIndex[s]}return null},t.read=function(t,n){var r=n&&n.type;switch(r||b&&Buffer.isBuffer(t)&&(r="buffer"),r||"base64"){case"file":return function(t,n){return s(),o(e.readFileSync(t),n)}(t,n);case"base64":return o(T(y(t)),n);case"binary":return o(T(t),n)}return o(t,n)},t.parse=o,t.write=function(t,n){var r=p(t,n);switch(n&&n.type||"buffer"){case"file":return s(),e.writeFileSync(n.filename,r),r;case"binary":return"string"==typeof r?r:P(r);case"base64":return v("string"==typeof r?r:P(r));case"buffer":if(b)return Buffer.isBuffer(r)?r:x(r);case"array":return"string"==typeof r?T(r):r}return r},t.writeFile=function(t,n,r){s();var i=p(t,r);e.writeFileSync(n,i)},t.utils={cfb_new:function(e){var t={};return f(t,e),t},cfb_add:we,cfb_del:function(e,t){f(e);var n=_e.find(e,t);if(n)for(var r=0;r<e.FileIndex.length;++r)if(e.FileIndex[r]==n)return e.FileIndex.splice(r,1),e.FullPaths.splice(r,1),!0;return!1},cfb_mov:function(e,t,n){f(e);var i=_e.find(e,t);if(i)for(var a=0;a<e.FileIndex.length;++a)if(e.FileIndex[a]==i)return e.FileIndex[a].name=r(n),e.FullPaths[a]=n,!0;return!1},cfb_gc:function(e){d(e,!0)},ReadShift:nn,CheckField:sn,prep_blob:on,bconcat:M,use_zlib:function(e){try{var t=new(0,e.InflateRaw);if(t._processChunk(new Uint8Array([3,0]),t._finishFlushFlag),!t.bytesRead)throw new Error("zlib does not expose bytesRead");m=e}catch(e){console.error("cannot use native zlib: "+(e.message||e))}},_deflateRaw:ie,_inflateRaw:he,consts:k},t}();function we(e){for(var t=Object.keys(e),n=[],r=0;r<t.length;++r)Object.prototype.hasOwnProperty.call(e,t[r])&&n.push(t[r]);return n}function Te(e){for(var t=[],n=we(e),r=0;r!==n.length;++r)t[e[n[r]]]=n[r];return t}var Se=new Date(1899,11,30,0,0,0);function Ee(e,t){var n=e.getTime();return t&&(n-=1263168e5),(n-(Se.getTime()+6e4*(e.getTimezoneOffset()-Se.getTimezoneOffset())))/864e5}var Me=new Date,Ae=Se.getTime()+6e4*(Me.getTimezoneOffset()-Se.getTimezoneOffset()),Ce=Me.getTimezoneOffset();function Re(e){var t=new Date;return t.setTime(24*e*60*60*1e3+Ae),t.getTimezoneOffset()!==Ce&&t.setTime(t.getTime()+6e4*(t.getTimezoneOffset()-Ce)),t}function Le(e){var t=0,n=0,r=!1,i=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!i)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var a=1;a!=i.length;++a)if(i[a]){switch(n=1,a>3&&(r=!0),i[a].slice(i[a].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+i[a].slice(i[a].length-1));case"D":n*=24;case"H":n*=60;case"M":if(!r)throw new Error("Unsupported ISO Duration Field: M");n*=60}t+=n*parseInt(i[a],10)}return t}var ke=new Date("2017-02-19T19:06:09.000Z"),Pe=isNaN(ke.getFullYear())?new Date("2/19/17"):ke,De=2017==Pe.getFullYear();function Oe(e,t){var n=new Date(e);if(De)return t>0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):t<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(e instanceof Date)return e;if(1917==Pe.getFullYear()&&!isNaN(n.getFullYear())){var r=n.getFullYear();return e.indexOf(""+r)>-1||n.setFullYear(n.getFullYear()+100),n}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(a=new Date(a.getTime()-60*a.getTimezoneOffset()*1e3)),a}function Ie(e,t){if(b&&Buffer.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return bt(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return bt(h(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!=typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return bt(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return bt(new TextDecoder("utf-16be").decode(e.slice(2)))}var n={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡",ˆ:"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(e){return n[e]||e}))}catch(e){}for(var r=[],i=0;i!=e.length;++i)r.push(String.fromCharCode(e[i]));return r.join("")}function Ne(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=Ne(e[n]));return t}function Fe(e,t){for(var n="";n.length<t;)n+=e;return n}function Be(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var n=1,r=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,(function(){return n*=100,""}));return isNaN(t=Number(r))?(r=r.replace(/[(](.*)[)]/,(function(e,t){return n=-n,t})),isNaN(t=Number(r))?t:t/n):t/n}var Ue=["january","february","march","april","may","june","july","august","september","october","november","december"];function ze(e){var t=new Date(e),n=new Date(NaN),r=t.getYear(),i=t.getMonth(),a=t.getDate();if(isNaN(a))return n;var s=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==Ue.indexOf(s))return n}else if(s.match(/[a-z]/))return n;return r<0||r>8099?n:(i>0||a>1)&&101!=r?t:e.match(/[^-0-9:,\/\\]/)?n:t}var He=function(){var e=5=="abacaba".split(/(:?b)/i).length;return function(t,n,r){if(e||"string"==typeof n)return t.split(n);for(var i=t.split(n),a=[i[0]],s=1;s<i.length;++s)a.push(r),a.push(i[s]);return a}}();function Ve(e){return e?e.content&&e.type?Ie(e.content,!0):e.data?d(e.data):e.asNodeBuffer&&b?d(e.asNodeBuffer().toString("binary")):e.asBinary?d(e.asBinary()):e._data&&e._data.getContent?d(Ie(Array.prototype.slice.call(e._data.getContent(),0))):null:null}function Ge(e){if(!e)return null;if(e.data)return u(e.data);if(e.asNodeBuffer&&b)return e.asNodeBuffer();if(e._data&&e._data.getContent){var t=e._data.getContent();return"string"==typeof t?u(t):Array.prototype.slice.call(t)}return e.content&&e.type?e.content:null}function We(e,t){for(var n=e.FullPaths||we(e.files),r=t.toLowerCase().replace(/[\/]/g,"\\"),i=r.replace(/\\/g,"/"),a=0;a<n.length;++a){var s=n[a].replace(/^Root Entry[\/]/,"").toLowerCase();if(r==s||i==s)return e.files?e.files[n[a]]:e.FileIndex[a]}return null}function je(e,t){var n=We(e,t);if(null==n)throw new Error("Cannot find file "+t+" in zip");return n}function Xe(e,t,n){if(!n)return(r=je(e,t))&&".bin"===r.name.slice(-4)?Ge(r):Ve(r);var r;if(!t)return null;try{return Xe(e,t)}catch(e){return null}}function qe(e,t,n){if(!n)return Ve(je(e,t));if(!t)return null;try{return qe(e,t)}catch(e){return null}}function $e(e,t,n){if(!n)return Ge(je(e,t));if(!t)return null;try{return $e(e,t)}catch(e){return null}}function Ye(e){for(var t=e.FullPaths||we(e.files),n=[],r=0;r<t.length;++r)"/"!=t[r].slice(-1)&&n.push(t[r].replace(/^Root Entry[\/]/,""));return n.sort()}function Ze(e,t){switch(t.type){case"base64":return _e.read(e,{type:"base64"});case"binary":return _e.read(e,{type:"binary"});case"buffer":case"array":return _e.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+t.type)}function Je(e,t){if("/"==e.charAt(0))return e.slice(1);var n=t.split("/");"/"!=t.slice(-1)&&n.pop();for(var r=e.split("/");0!==r.length;){var i=r.shift();".."===i?n.pop():"."!==i&&n.push(i)}return n.join("/")}var Ke='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n',Qe=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,et=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,tt=Ke.match(et)?et:/<[^>]*>/g,nt=/<\w*:/,rt=/<(\/?)\w+:/;function it(e,t,n){for(var r={},i=0,a=0;i!==e.length&&32!==(a=e.charCodeAt(i))&&10!==a&&13!==a;++i);if(t||(r[0]=e.slice(0,i)),i===e.length)return r;var s=e.match(Qe),o=0,l="",c=0,u="",h="",f=1;if(s)for(c=0;c!=s.length;++c){for(h=s[c],a=0;a!=h.length&&61!==h.charCodeAt(a);++a);for(u=h.slice(0,a).trim();32==h.charCodeAt(a+1);)++a;for(f=34==(i=h.charCodeAt(a+1))||39==i?1:0,l=h.slice(a+1+f,h.length-f),o=0;o!=u.length&&58!==u.charCodeAt(o);++o);if(o===u.length)u.indexOf("_")>0&&(u=u.slice(0,u.indexOf("_"))),r[u]=l,n||(r[u.toLowerCase()]=l);else{var d=(5===o&&"xmlns"===u.slice(0,5)?"xmlns":"")+u.slice(o+1);if(r[d]&&"ext"==u.slice(o-3,o))continue;r[d]=l,n||(r[d.toLowerCase()]=l)}}return r}function at(e){return e.replace(rt,"<$1")}var st={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},ot=Te(st),lt=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,t=/_x([\da-fA-F]{4})_/gi;return function n(r){var i=r+"",a=i.indexOf("<![CDATA[");if(-1==a)return i.replace(e,(function(e,t){return st[e]||String.fromCharCode(parseInt(t,e.indexOf("x")>-1?16:10))||e})).replace(t,(function(e,t){return String.fromCharCode(parseInt(t,16))}));var s=i.indexOf("]]>");return n(i.slice(0,a))+i.slice(a+9,s)+n(i.slice(s+3))}}(),ct=/[&<>'"]/g,ut=/[\u0000-\u001f]/g;function ht(e){return(e+"").replace(ct,(function(e){return ot[e]})).replace(/\n/g,"<br/>").replace(ut,(function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}var ft=function(){var e=/&#(\d+);/g;function t(e,t){return String.fromCharCode(parseInt(t,10))}return function(n){return n.replace(e,t)}}();function dt(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function pt(e){for(var t="",n=0,r=0,i=0,a=0,s=0,o=0;n<e.length;)(r=e.charCodeAt(n++))<128?t+=String.fromCharCode(r):(i=e.charCodeAt(n++),r>191&&r<224?(s=(31&r)<<6,s|=63&i,t+=String.fromCharCode(s)):(a=e.charCodeAt(n++),r<240?t+=String.fromCharCode((15&r)<<12|(63&i)<<6|63&a):(o=((7&r)<<18|(63&i)<<12|(63&a)<<6|63&(s=e.charCodeAt(n++)))-65536,t+=String.fromCharCode(55296+(o>>>10&1023)),t+=String.fromCharCode(56320+(1023&o)))));return t}function mt(e){var t,n,r,i=_(2*e.length),a=1,s=0,o=0;for(n=0;n<e.length;n+=a)a=1,(r=e.charCodeAt(n))<128?t=r:r<224?(t=64*(31&r)+(63&e.charCodeAt(n+1)),a=2):r<240?(t=4096*(15&r)+64*(63&e.charCodeAt(n+1))+(63&e.charCodeAt(n+2)),a=3):(a=4,t=262144*(7&r)+4096*(63&e.charCodeAt(n+1))+64*(63&e.charCodeAt(n+2))+(63&e.charCodeAt(n+3)),o=55296+((t-=65536)>>>10&1023),t=56320+(1023&t)),0!==o&&(i[s++]=255&o,i[s++]=o>>>8,o=0),i[s++]=t%256,i[s++]=t>>>8;return i.slice(0,s).toString("ucs2")}function gt(e){return x(e,"binary").toString("utf8")}var vt="foo bar baz☃🍣",yt=b&&(gt(vt)==pt(vt)&&gt||mt(vt)==pt(vt)&&mt)||pt,bt=b?function(e){return x(e,"utf8").toString("binary")}:function(e){for(var t=[],n=0,r=0,i=0;n<e.length;)switch(r=e.charCodeAt(n++),!0){case r<128:t.push(String.fromCharCode(r));break;case r<2048:t.push(String.fromCharCode(192+(r>>6))),t.push(String.fromCharCode(128+(63&r)));break;case r>=55296&&r<57344:r-=55296,i=e.charCodeAt(n++)-56320+(r<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(63&i)));break;default:t.push(String.fromCharCode(224+(r>>12))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(63&r)))}return t.join("")},xt=function(){var e={};return function(t,n){var r=t+"|"+(n||"");return e[r]?e[r]:e[r]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+t+">",n||"")}}(),_t=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),r=0;r<e.length;++r)n=n.replace(e[r][0],e[r][1]);return n}}(),wt=function(){var e={};return function(t){return void 0!==e[t]?e[t]:e[t]=new RegExp("<(?:vt:)?"+t+">([\\s\\S]*?)</(?:vt:)?"+t+">","g")}}(),Tt=/<\/?(?:vt:)?variant>/g,St=/<(?:vt:)([^>]*)>([\s\S]*)</;function Et(e,t){var n=it(e),r=e.match(wt(n.baseType))||[],i=[];if(r.length!=n.size){if(t.WTF)throw new Error("unexpected vector length "+r.length+" != "+n.size);return i}return r.forEach((function(e){var t=e.replace(Tt,"").match(St);t&&i.push({v:yt(t[2]),t:t[1]})})),i}function Mt(e){if(b&&Buffer.isBuffer(e))return e.toString("utf8");if("string"==typeof e)return e;if("undefined"!=typeof Uint8Array&&e instanceof Uint8Array)return yt(S(E(e)));throw new Error("Bad input format: expected Buffer or string")}var At=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/gm,Ct=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Rt=function(e){for(var t=[],n=0;n<e[0].length;++n)if(e[0][n])for(var r=0,i=e[0][n].length;r<i;r+=10240)t.push.apply(t,e[0][n].slice(r,r+10240));return t},Lt=b?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map((function(e){return Buffer.isBuffer(e)?e:x(e)}))):Rt(e)}:Rt,kt=function(e,t,n){for(var r=[],i=t;i<n;i+=2)r.push(String.fromCharCode(Jt(e,i)));return r.join("").replace(A,"")},Pt=b?function(e,t,n){return Buffer.isBuffer(e)?e.toString("utf16le",t,n).replace(A,""):kt(e,t,n)}:kt,Dt=function(e,t,n){for(var r=[],i=t;i<t+n;++i)r.push(("0"+e[i].toString(16)).slice(-2));return r.join("")},Ot=b?function(e,t,n){return Buffer.isBuffer(e)?e.toString("hex",t,t+n):Dt(e,t,n)}:Dt,It=function(e,t,n){for(var r=[],i=t;i<n;i++)r.push(String.fromCharCode(Zt(e,i)));return r.join("")},Nt=b?function(e,t,n){return Buffer.isBuffer(e)?e.toString("utf8",t,n):It(e,t,n)}:It,Ft=function(e,t){var n=Qt(e,t);return n>0?Nt(e,t+4,t+4+n-1):""},Bt=Ft,Ut=function(e,t){var n=Qt(e,t);return n>0?Nt(e,t+4,t+4+n-1):""},zt=Ut,Ht=function(e,t){var n=2*Qt(e,t);return n>0?Nt(e,t+4,t+4+n-1):""},Vt=Ht,Gt=function(e,t){var n=Qt(e,t);return n>0?Pt(e,t+4,t+4+n):""},Wt=Gt,jt=function(e,t){var n=Qt(e,t);return n>0?Nt(e,t+4,t+4+n):""},Xt=jt,qt=function(e,t){return function(e,t){for(var n=1-2*(e[t+7]>>>7),r=((127&e[t+7])<<4)+(e[t+6]>>>4&15),i=15&e[t+6],a=5;a>=0;--a)i=256*i+e[t+a];return 2047==r?0==i?n*(1/0):NaN:(0==r?r=-1022:(r-=1023,i+=Math.pow(2,52)),n*Math.pow(2,r-52)*i)}(e,t)},$t=qt,Yt=function(e){return Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array};b&&(Bt=function(e,t){if(!Buffer.isBuffer(e))return Ft(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},zt=function(e,t){if(!Buffer.isBuffer(e))return Ut(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},Vt=function(e,t){if(!Buffer.isBuffer(e))return Ht(e,t);var n=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n-1)},Wt=function(e,t){if(!Buffer.isBuffer(e))return Gt(e,t);var n=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n)},Xt=function(e,t){if(!Buffer.isBuffer(e))return jt(e,t);var n=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+n)},$t=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):qt(e,t)},Yt=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array});var Zt=function(e,t){return e[t]},Jt=function(e,t){return 256*e[t+1]+e[t]},Kt=function(e,t){var n=256*e[t+1]+e[t];return n<32768?n:-1*(65535-n+1)},Qt=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},en=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},tn=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function nn(e,t){var n,r,i,a,s,o,l="",c=[];switch(t){case"dbcs":if(o=this.l,b&&Buffer.isBuffer(this))l=this.slice(this.l,this.l+2*e).toString("utf16le");else for(s=0;s<e;++s)l+=String.fromCharCode(Jt(this,o)),o+=2;e*=2;break;case"utf8":l=Nt(this,this.l,this.l+e);break;case"utf16le":e*=2,l=Pt(this,this.l,this.l+e);break;case"wstr":return nn.call(this,e,"dbcs");case"lpstr-ansi":l=Bt(this,this.l),e=4+Qt(this,this.l);break;case"lpstr-cp":l=zt(this,this.l),e=4+Qt(this,this.l);break;case"lpwstr":l=Vt(this,this.l),e=4+2*Qt(this,this.l);break;case"lpp4":e=4+Qt(this,this.l),l=Wt(this,this.l),2&e&&(e+=2);break;case"8lpp4":e=4+Qt(this,this.l),l=Xt(this,this.l),3&e&&(e+=4-(3&e));break;case"cstr":for(e=0,l="";0!==(i=Zt(this,this.l+e++));)c.push(p(i));l=c.join("");break;case"_wstr":for(e=0,l="";0!==(i=Jt(this,this.l+e));)c.push(p(i)),e+=2;e+=2,l=c.join("");break;case"dbcs-cont":for(l="",o=this.l,s=0;s<e;++s){if(this.lens&&-1!==this.lens.indexOf(o))return i=Zt(this,o),this.l=o+1,a=nn.call(this,e-s,i?"dbcs-cont":"sbcs-cont"),c.join("")+a;c.push(p(Jt(this,o))),o+=2}l=c.join(""),e*=2;break;case"cpstr":0;case"sbcs-cont":for(l="",o=this.l,s=0;s!=e;++s){if(this.lens&&-1!==this.lens.indexOf(o))return i=Zt(this,o),this.l=o+1,a=nn.call(this,e-s,i?"dbcs-cont":"sbcs-cont"),c.join("")+a;c.push(p(Zt(this,o))),o+=1}l=c.join("");break;default:switch(e){case 1:return n=Zt(this,this.l),this.l++,n;case 2:return n=("i"===t?Kt:Jt)(this,this.l),this.l+=2,n;case 4:case-4:return"i"===t||0==(128&this[this.l+3])?(n=(e>0?en:tn)(this,this.l),this.l+=4,n):(r=Qt(this,this.l),this.l+=4,r);case 8:case-8:if("f"===t)return r=8==e?$t(this,this.l):$t([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,r;e=8;case 16:l=Ot(this,this.l,e)}}return this.l+=e,l}var rn=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255};function an(e,t,n){var r=0,i=0;if("dbcs"===n){for(i=0;i!=t.length;++i)rn(this,t.charCodeAt(i),this.l+2*i);r=2*t.length}else if("sbcs"===n){for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=255&t.charCodeAt(i);r=t.length}else{if("hex"===n){for(;i<e;++i)this[this.l++]=parseInt(t.slice(2*i,2*i+2),16)||0;return this}if("utf16le"===n){var a=Math.min(this.l+e,this.length);for(i=0;i<Math.min(t.length,e);++i){var s=t.charCodeAt(i);this[this.l++]=255&s,this[this.l++]=s>>8}for(;this.l<a;)this[this.l++]=0;return this}switch(e){case 1:r=1,this[this.l]=255&t;break;case 2:r=2,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t;break;case 3:r=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:r=4,function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24&255}(this,t,this.l);break;case 8:if(r=8,"f"===n){!function(e,t,n){var r=(t<0||1/t==-1/0?1:0)<<7,i=0,a=0,s=r?-t:t;isFinite(s)?0==s?i=a=0:(i=Math.floor(Math.log(s)/Math.LN2),a=s*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a<Math.pow(2,52))?i=-1022:(a-=Math.pow(2,52),i+=1023)):(i=2047,a=isNaN(t)?26985:0);for(var o=0;o<=5;++o,a/=256)e[n+o]=255&a;e[n+6]=(15&i)<<4|15&a,e[n+7]=i>>4|r}(this,t,this.l);break}case 16:break;case-4:r=4,function(e,t,n){e[n]=255&t,e[n+1]=t>>8&255,e[n+2]=t>>16&255,e[n+3]=t>>24&255}(this,t,this.l)}}return this.l+=r,this}function sn(e,t){var n=Ot(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function on(e,t){e.l=t,e.read_shift=nn,e.chk=sn,e.write_shift=an}function ln(e,t){e.l+=t}function cn(e){var t=_(e);return on(t,0),t}function un(e,t,n){if(e){var r,i,a;on(e,e.l||0);for(var s=e.length,o=0,l=0;e.l<s;){128&(o=e.read_shift(1))&&(o=(127&o)+((127&e.read_shift(1))<<7));var c=Xs[o]||Xs[65535];for(a=127&(r=e.read_shift(1)),i=1;i<4&&128&r;++i)a+=(127&(r=e.read_shift(1)))<<7*i;l=e.l+a;var u=c.f&&c.f(e,a,n);if(e.l=l,t(u,c,o))return}}}function hn(){var e=[],t=b?256:2048,n=function(e){var t=cn(e);return on(t,0),t},r=n(t),i=function(){r&&(r.length>r.l&&((r=r.slice(0,r.l)).l=r.length),r.length>0&&e.push(r),r=null)},a=function(e){return r&&e<r.length-r.l?r:(i(),r=n(Math.max(e+1,t)))};return{next:a,push:function(e){i(),null==(r=e).l&&(r.l=r.length),a(t)},end:function(){return i(),M(e)},_bufs:e}}function fn(e,t,n){var r=Ne(e);if(t.s?(r.cRel&&(r.c+=t.s.c),r.rRel&&(r.r+=t.s.r)):(r.cRel&&(r.c+=t.c),r.rRel&&(r.r+=t.r)),!n||n.biff<12){for(;r.c>=256;)r.c-=256;for(;r.r>=65536;)r.r-=65536}return r}function dn(e,t,n){var r=Ne(e);return r.s=fn(r.s,t.s,n),r.e=fn(r.e,t.s,n),r}function pn(e,t){if(e.cRel&&e.c<0)for(e=Ne(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=Ne(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var n=_n(e);return e.cRel||null==e.cRel||(n=n.replace(/^([A-Z])/,"$$$1")),e.rRel||null==e.rRel||(n=n.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")),n}function mn(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?pn(e.s,t.biff)+":"+pn(e.e,t.biff):(e.s.rRel?"":"$")+vn(e.s.r)+":"+(e.e.rRel?"":"$")+vn(e.e.r):(e.s.cRel?"":"$")+bn(e.s.c)+":"+(e.e.cRel?"":"$")+bn(e.e.c)}function gn(e){return parseInt(e.replace(/\$(\d+)$/,"$1"),10)-1}function vn(e){return""+(e+1)}function yn(e){for(var t=e.replace(/^\$([A-Z])/,"$1"),n=0,r=0;r!==t.length;++r)n=26*n+t.charCodeAt(r)-64;return n-1}function bn(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function xn(e){for(var t=0,n=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);i>=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(n=26*n+(i-64))}return{c:n-1,r:t-1}}function _n(e){for(var t=e.c+1,n="";t;t=(t-1)/26|0)n=String.fromCharCode((t-1)%26+65)+n;return n+(e.r+1)}function wn(e){var t=e.indexOf(":");return-1==t?{s:xn(e),e:xn(e)}:{s:xn(e.slice(0,t)),e:xn(e.slice(t+1))}}function Tn(e,t){return void 0===t||"number"==typeof t?Tn(e.s,e.e):("string"!=typeof e&&(e=_n(e)),"string"!=typeof t&&(t=_n(t)),e==t?e:e+":"+t)}function Sn(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,r=0,i=0,a=e.length;for(n=0;r<a&&!((i=e.charCodeAt(r)-64)<1||i>26);++r)n=26*n+i;for(t.s.c=--n,n=0;r<a&&!((i=e.charCodeAt(r)-48)<0||i>9);++r)n=10*n+i;if(t.s.r=--n,r===a||10!=i)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++r,n=0;r!=a&&!((i=e.charCodeAt(r)-64)<1||i>26);++r)n=26*n+i;for(t.e.c=--n,n=0;r!=a&&!((i=e.charCodeAt(r)-48)<0||i>9);++r)n=10*n+i;return t.e.r=--n,t}function En(e,t,n){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),"e"==e.t?Jn[e.v]||e.v:function(e,t){var n="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=me(e.z,n?Ee(t):t)}catch(e){}try{return e.w=me((e.XF||{}).numFmtId||(n?14:0),n?Ee(t):t)}catch(e){return""+t}}(e,null==t?e.v:t))}function Mn(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}function An(e,t){return function(e,t,n){var r=n||{},i=e?Array.isArray(e):r.dense,a=e||(i?[]:{}),s=0,o=0;if(a&&null!=r.origin){if("number"==typeof r.origin)s=r.origin;else{var l="string"==typeof r.origin?xn(r.origin):r.origin;s=l.r,o=l.c}a["!ref"]||(a["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var u=Sn(a["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),-1==s&&(c.e.r=s=u.e.r+1)}for(var h=0;h!=t.length;++h)if(t[h]){if(!Array.isArray(t[h]))throw new Error("aoa_to_sheet expects an array of arrays");for(var f=0;f!=t[h].length;++f)if(void 0!==t[h][f]){var d={v:t[h][f]},p=s+h,m=o+f;if(c.s.r>p&&(c.s.r=p),c.s.c>m&&(c.s.c=m),c.e.r<p&&(c.e.r=p),c.e.c<m&&(c.e.c=m),!t[h][f]||"object"!=typeof t[h][f]||Array.isArray(t[h][f])||t[h][f]instanceof Date)if(Array.isArray(d.v)&&(d.f=t[h][f][1],d.v=d.v[0]),null===d.v)if(d.f)d.t="n";else if(r.nullError)d.t="e",d.v=0;else{if(!r.sheetStubs)continue;d.t="z"}else"number"==typeof d.v?d.t="n":"boolean"==typeof d.v?d.t="b":d.v instanceof Date?(d.z=r.dateNF||B[14],r.cellDates?(d.t="d",d.w=me(d.z,Ee(d.v))):(d.t="n",d.v=Ee(d.v),d.w=me(d.z,d.v))):d.t="s";else d=t[h][f];if(i)a[p]||(a[p]=[]),a[p][m]&&a[p][m].z&&(d.z=a[p][m].z),a[p][m]=d;else{var g=_n({c:m,r:p});a[g]&&a[g].z&&(d.z=a[g].z),a[g]=d}}}return c.s.c<1e7&&(a["!ref"]=Tn(c)),a}(null,e,t)}function Cn(e){var t=e.read_shift(4);return 0===t?"":e.read_shift(t,"dbcs")}function Rn(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function Ln(e,t){var n=e.l,r=e.read_shift(1),i=Cn(e),a=[],s={t:i,h:i};if(0!=(1&r)){for(var o=e.read_shift(4),l=0;l!=o;++l)a.push(Rn(e));s.r=a}else s.r=[{ich:0,ifnt:0}];return e.l=n+t,s}var kn=Ln;function Pn(e){var t=e.read_shift(4),n=e.read_shift(2);return n+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:n}}function Dn(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}var On=Cn;function In(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}var Nn=Cn,Fn=In;function Bn(e){var t=e.slice(e.l,e.l+4),n=1&t[0],r=2&t[0];e.l+=4;var i=0===r?$t([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):en(t,0)>>2;return n?i/100:i}function Un(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var zn=Un;function Hn(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Vn(e,t){var n=e.read_shift(4);switch(n){case 0:return"";case 4294967295:case 4294967294:return{2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"}[e.read_shift(4)]||""}if(n>400)throw new Error("Unsupported Clipboard: "+n.toString(16));return e.l-=4,e.read_shift(0,1==t?"lpstr":"lpwstr")}var Gn=80,Wn=[Gn,81],jn={1:{n:"CodePage",t:2},2:{n:"Category",t:Gn},3:{n:"PresentationFormat",t:Gn},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:Gn},15:{n:"Company",t:Gn},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:Gn},27:{n:"ContentStatus",t:Gn},28:{n:"Language",t:Gn},29:{n:"Version",t:Gn},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Xn={1:{n:"CodePage",t:2},2:{n:"Title",t:Gn},3:{n:"Subject",t:Gn},4:{n:"Author",t:Gn},5:{n:"Keywords",t:Gn},6:{n:"Comments",t:Gn},7:{n:"Template",t:Gn},8:{n:"LastAuthor",t:Gn},9:{n:"RevNumber",t:Gn},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:Gn},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},qn={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},$n=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function Yn(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var Zn=Ne(Yn([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),Jn={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Kn={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Qn={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},er={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function tr(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function nr(e,t){var n={"!id":{}};if(!e)return n;"/"!==t.charAt(0)&&(t="/"+t);var r={};return(e.match(tt)||[]).forEach((function(e){var i=it(e);if("<Relationship"===i[0]){var a={};a.Type=i.Type,a.Target=i.Target,a.Id=i.Id,i.TargetMode&&(a.TargetMode=i.TargetMode);var s="External"===i.TargetMode?i.Target:Je(i.Target,t);n[s]=a,r[i.Id]=a}})),n["!id"]=r,n}var rr=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],ir=function(){for(var e=new Array(rr.length),t=0;t<rr.length;++t){var n=rr[t],r="(?:"+n[0].slice(0,n[0].indexOf(":"))+":)"+n[0].slice(n[0].indexOf(":")+1);e[t]=new RegExp("<"+r+"[^>]*>([\\s\\S]*?)</"+r+">")}return e}();function ar(e){var t={};e=yt(e);for(var n=0;n<rr.length;++n){var r=rr[n],i=e.match(ir[n]);null!=i&&i.length>0&&(t[r[1]]=lt(i[1])),"date"===r[2]&&t[r[1]]&&(t[r[1]]=Oe(t[r[1]]))}return t}var sr=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];function or(e,t,n,r){var i=[];if("string"==typeof e)i=Et(e,r);else for(var a=0;a<e.length;++a)i=i.concat(e[a].map((function(e){return{v:e}})));var s="string"==typeof t?Et(t,r).map((function(e){return e.v})):t,o=0,l=0;if(s.length>0)for(var c=0;c!==i.length;c+=2){switch(l=+i[c+1].v,i[c].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":n.Worksheets=l,n.SheetNames=s.slice(o,o+l);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":n.NamedRanges=l,n.DefinedNames=s.slice(o,o+l);break;case"Charts":case"Diagramme":n.Chartsheets=l,n.ChartNames=s.slice(o,o+l)}o+=l}}var lr,cr=/<[^>]+>[^<]*/g,ur={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function hr(e,t,n){lr||(lr=Te(ur)),e[t=lr[t]||t]=n}function fr(e){var t=e.read_shift(4),n=e.read_shift(4);return new Date(1e3*(n/1e7*Math.pow(2,32)+t/1e7-11644473600)).toISOString().replace(/\.000/,"")}function dr(e,t,n){var r=e.l,i=e.read_shift(0,"lpstr-cp");if(n)for(;e.l-r&3;)++e.l;return i}function pr(e,t,n){var r=e.read_shift(0,"lpwstr");return n&&(e.l+=4-(r.length+1&3)&3),r}function mr(e,t,n){return 31===t?pr(e):dr(e,0,n)}function gr(e,t,n){return mr(e,t,!1===n?0:4)}function vr(e){var t=e.l,n=xr(e,81);return 0==e[e.l]&&0==e[e.l+1]&&e.l-t&2&&(e.l+=2),[n,xr(e,3)]}function yr(e,t){for(var n=e.read_shift(4),r={},i=0;i!=n;++i){var a=e.read_shift(4),s=e.read_shift(4);r[a]=e.read_shift(s,1200===t?"utf16le":"utf8").replace(A,"").replace(C,"!"),1200===t&&s%2&&(e.l+=2)}return 3&e.l&&(e.l=e.l>>3<<2),r}function br(e){var t=e.read_shift(4),n=e.slice(e.l,e.l+t);return e.l+=t,(3&t)>0&&(e.l+=4-(3&t)&3),n}function xr(e,t,n){var r,i=e.read_shift(2),a=n||{};if(e.l+=2,12!==t&&i!==t&&-1===Wn.indexOf(t)&&(4126!=(65534&t)||4126!=(65534&i)))throw new Error("Expected type "+t+" saw "+i);switch(12===t?i:t){case 2:return r=e.read_shift(2,"i"),a.raw||(e.l+=2),r;case 3:return e.read_shift(4,"i");case 11:return 0!==e.read_shift(4);case 19:return e.read_shift(4);case 30:return dr(e,0,4).replace(A,"");case 31:return pr(e);case 64:return fr(e);case 65:return br(e);case 71:return function(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}(e);case 80:return gr(e,i,!a.raw).replace(A,"");case 81:return function(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return mr(e,t,0)}(e,i).replace(A,"");case 4108:return function(e){for(var t=e.read_shift(4),n=[],r=0;r<t/2;++r)n.push(vr(e));return n}(e);case 4126:case 4127:return 4127==i?function(e){for(var t=e.read_shift(4),n=[],r=0;r!=t;++r){var i=e.l;n[r]=e.read_shift(0,"lpwstr").replace(A,""),e.l-i&2&&(e.l+=2)}return n}(e):function(e){for(var t=e.read_shift(4),n=[],r=0;r!=t;++r)n[r]=e.read_shift(0,"lpstr-cp").replace(A,"");return n}(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+i)}}function _r(e,t){var n=e.l,r=e.read_shift(4),i=e.read_shift(4),a=[],s=0,o=0,c=-1,u={};for(s=0;s!=i;++s){var h=e.read_shift(4),f=e.read_shift(4);a[s]=[h,f+n]}a.sort((function(e,t){return e[1]-t[1]}));var d={};for(s=0;s!=i;++s){if(e.l!==a[s][1]){var p=!0;if(s>0&&t)switch(t[a[s-1][0]].t){case 2:e.l+2===a[s][1]&&(e.l+=2,p=!1);break;case 80:case 4108:e.l<=a[s][1]&&(e.l=a[s][1],p=!1)}if((!t||0==s)&&e.l<=a[s][1]&&(p=!1,e.l=a[s][1]),p)throw new Error("Read Error: Expected address "+a[s][1]+" at "+e.l+" :"+s)}if(t){var m=t[a[s][0]];if(d[m.n]=xr(e,m.t,{raw:!0}),"version"===m.p&&(d[m.n]=String(d[m.n]>>16)+"."+("0000"+String(65535&d[m.n])).slice(-4)),"CodePage"==m.n)switch(d[m.n]){case 0:d[m.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:l(o=d[m.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+d[m.n])}}else if(1===a[s][0]){if(o=d.CodePage=xr(e,2),l(o),-1!==c){var g=e.l;e.l=a[c][1],u=yr(e,o),e.l=g}}else if(0===a[s][0]){if(0===o){c=s,e.l=a[s+1][1];continue}u=yr(e,o)}else{var v,y=u[a[s][0]];switch(e[e.l]){case 65:e.l+=4,v=br(e);break;case 30:case 31:e.l+=4,v=gr(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,v=e.read_shift(4,"i");break;case 19:e.l+=4,v=e.read_shift(4);break;case 5:e.l+=4,v=e.read_shift(8,"f");break;case 11:e.l+=4,v=Sr(e,4);break;case 64:e.l+=4,v=Oe(fr(e));break;default:throw new Error("unparsed value: "+e[e.l])}d[y]=v}}return e.l=n+r,d}function wr(e,t,n){var r=e.content;if(!r)return{};on(r,0);var i,a,s,o,l=0;r.chk("feff","Byte Order: "),r.read_shift(2);var c=r.read_shift(4),u=r.read_shift(16);if(u!==_e.utils.consts.HEADER_CLSID&&u!==n)throw new Error("Bad PropertySet CLSID "+u);if(1!==(i=r.read_shift(4))&&2!==i)throw new Error("Unrecognized #Sets: "+i);if(a=r.read_shift(16),o=r.read_shift(4),1===i&&o!==r.l)throw new Error("Length mismatch: "+o+" !== "+r.l);2===i&&(s=r.read_shift(16),l=r.read_shift(4));var h,f=_r(r,t),d={SystemIdentifier:c};for(var p in f)d[p]=f[p];if(d.FMTID=a,1===i)return d;if(l-r.l==2&&(r.l+=2),r.l!==l)throw new Error("Length mismatch 2: "+r.l+" !== "+l);try{h=_r(r,null)}catch(e){}for(p in h)d[p]=h[p];return d.FMTID=[a,s],d}function Tr(e,t){return e.read_shift(t),null}function Sr(e,t){return 1===e.read_shift(t)}function Er(e){return e.read_shift(2,"u")}function Mr(e,t){return function(e,t,n){for(var r=[],i=e.l+t;e.l<i;)r.push(n(e,i-e.l));if(i!==e.l)throw new Error("Slurp error");return r}(e,t,Er)}function Ar(e,n,r){var i=e.read_shift(r&&r.biff>=12?2:1),a="sbcs-cont",s=t;r&&r.biff>=8&&(t=1200),r&&8!=r.biff?12==r.biff&&(a="wstr"):e.read_shift(1)&&(a="dbcs-cont"),r.biff>=2&&r.biff<=5&&(a="cpstr");var o=i?e.read_shift(i,a):"";return t=s,o}function Cr(e){var n=t;t=1200;var r,i=e.read_shift(2),a=e.read_shift(1),s=4&a,o=8&a,l=1+(1&a),c=0,u={};o&&(c=e.read_shift(2)),s&&(r=e.read_shift(4));var h=2==l?"dbcs-cont":"sbcs-cont",f=0===i?"":e.read_shift(i,h);return o&&(e.l+=4*c),s&&(e.l+=r),u.t=f,o||(u.raw="<t>"+u.t+"</t>",u.r=u.t),t=n,u}function Rr(e,t,n){if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,"cpstr");if(n.biff>=12)return e.read_shift(t,"dbcs-cont")}return 0===e.read_shift(1)?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont")}function Lr(e,t,n){var r=e.read_shift(n&&2==n.biff?1:2);return 0===r?(e.l++,""):Rr(e,r,n)}function kr(e,t,n){if(n.biff>5)return Lr(e,0,n);var r=e.read_shift(1);return 0===r?(e.l++,""):e.read_shift(r,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function Pr(e){var t=e.read_shift(4);return t>0?e.read_shift(t,"utf16le").replace(A,""):""}function Dr(e){return[e.read_shift(1),e.read_shift(1),e.read_shift(1),e.read_shift(1)]}function Or(e,t){var n=Dr(e);return n[3]=0,n}function Ir(e){return{r:e.read_shift(2),c:e.read_shift(2),ixfe:e.read_shift(2)}}function Nr(e,t,n){var r=n.biff>8?4:2;return[e.read_shift(r),e.read_shift(r,"i"),e.read_shift(r,"i")]}function Fr(e){return[e.read_shift(2),Bn(e)]}function Br(e){var t=e.read_shift(2),n=e.read_shift(2);return{s:{c:e.read_shift(2),r:t},e:{c:e.read_shift(2),r:n}}}function Ur(e){var t=e.read_shift(2),n=e.read_shift(2);return{s:{c:e.read_shift(1),r:t},e:{c:e.read_shift(1),r:n}}}var zr=Ur;function Hr(e){e.l+=4;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2);return e.l+=12,[n,t,r]}function Vr(e){e.l+=2,e.l+=e.read_shift(2)}var Gr={0:Vr,4:Vr,5:Vr,6:Vr,7:function(e){return e.l+=4,e.cf=e.read_shift(2),{}},8:Vr,9:Vr,10:Vr,11:Vr,12:Vr,13:function(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t},14:Vr,15:Vr,16:Vr,17:Vr,18:Vr,19:Vr,20:Vr,21:Hr};function Wr(e,t){var n={BIFFVer:0,dt:0};switch(n.BIFFVer=e.read_shift(2),(t-=2)>=2&&(n.dt=e.read_shift(2),e.l-=2),n.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+n.BIFFVer)}return e.read_shift(t),n}function jr(e,t,n){var r=0;n&&2==n.biff||(r=e.read_shift(2));var i=e.read_shift(2);return n&&2==n.biff&&(r=1-(i>>15),i&=32767),[{Unsynced:1&r,DyZero:(2&r)>>1,ExAsc:(4&r)>>2,ExDsc:(8&r)>>3},i]}var Xr=kr;function qr(e,t,n){var r=e.l+t,i=8!=n.biff&&n.biff?2:4,a=e.read_shift(i),s=e.read_shift(i),o=e.read_shift(2),l=e.read_shift(2);return e.l=r,{s:{r:a,c:o},e:{r:s,c:l}}}function $r(e,t,n){var r=Ir(e);2!=n.biff&&9!=t||++e.l;var i=function(e){var t=e.read_shift(1);return 1===e.read_shift(1)?t:1===t}(e);return r.val=i,r.t=!0===i||!1===i?"b":"e",r}var Yr=function(e,t,n){return 0===t?"":kr(e,0,n)};function Zr(e,t,n){var r,i=e.read_shift(2),a={fBuiltIn:1&i,fWantAdvise:i>>>1&1,fWantPict:i>>>2&1,fOle:i>>>3&1,fOleLink:i>>>4&1,cf:i>>>5&1023,fIcon:i>>>15&1};return 14849===n.sbcch&&(r=function(e,t,n){e.l+=4,t-=4;var r=e.l+t,i=Ar(e,0,n),a=e.read_shift(2);if(a!==(r-=e.l))throw new Error("Malformed AddinUdf: padding = "+r+" != "+a);return e.l+=a,i}(e,t-2,n)),a.body=r||e.read_shift(t-2),"string"==typeof r&&(a.Name=r),a}var Jr=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function Kr(e,t,n){var r=e.l+t,i=e.read_shift(2),a=e.read_shift(1),s=e.read_shift(1),o=e.read_shift(n&&2==n.biff?1:2),l=0;(!n||n.biff>=5)&&(5!=n.biff&&(e.l+=2),l=e.read_shift(2),5==n.biff&&(e.l+=2),e.l+=4);var c=Rr(e,s,n);32&i&&(c=Jr[c.charCodeAt(0)]);var u=r-e.l;n&&2==n.biff&&--u;var h=r!=e.l&&0!==o&&u>0?function(e,t,n,r){var i,a=e.l+t,s=Da(e,r,n);return a!==e.l&&(i=Pa(e,a-e.l,s,n)),[s,i]}(e,u,n,o):[];return{chKey:a,Name:c,itab:l,rgce:h}}function Qr(e,t,n){if(n.biff<8)return function(e,t,n){3==e[e.l+1]&&e[e.l]++;var r=Ar(e,0,n);return 3==r.charCodeAt(0)?r.slice(1):r}(e,0,n);for(var r=[],i=e.l+t,a=e.read_shift(n.biff>8?4:2);0!=a--;)r.push(Nr(e,n.biff,n));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return r}function ei(e,t,n){var r=zr(e,6);switch(n.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[r,Ua(e,t,n)]}var ti={8:function(e,t){var n=e.l+t;e.l+=10;var r=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var i=e.read_shift(1);return e.l+=i,e.l=n,{fmt:r}}};function ni(e,t,n){if(!n.cellStyles)return ln(e,t);var r=n&&n.biff>=12?4:2,i=e.read_shift(r),a=e.read_shift(r),s=e.read_shift(r),o=e.read_shift(r),l=e.read_shift(2);2==r&&(e.l+=2);var c={s:i,e:a,w:s,ixfe:o,flags:l};return(n.biff>=5||!n.biff)&&(c.level=l>>8&7),c}var ri=Ir,ii=Mr,ai=Lr,si=[2,3,48,49,131,139,140,245],oi=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=Te({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(t,n){var r=n||{};r.dateNF||(r.dateNF="yyyymmdd");var i=An(function(t,n){var r=[],i=_(1);switch(n.type){case"base64":i=T(y(t));break;case"binary":i=T(t);break;case"buffer":case"array":i=t}on(i,0);var a=i.read_shift(1),s=!!(136&a),o=!1,l=!1;switch(a){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:o=!0,s=!0;break;case 140:l=!0;break;default:throw new Error("DBF Unsupported Version: "+a.toString(16))}var c=0,u=521;2==a&&(c=i.read_shift(2)),i.l+=3,2!=a&&(c=i.read_shift(4)),c>1048576&&(c=1e6),2!=a&&(u=i.read_shift(2));var h=i.read_shift(2),d=n.codepage||1252;2!=a&&(i.l+=16,i.read_shift(1),0!==i[i.l]&&(d=e[i[i.l]]),i.l+=1,i.l+=2),l&&(i.l+=36);for(var p=[],m={},g=Math.min(i.length,2==a?521:u-10-(o?264:0)),v=l?32:11;i.l<g&&13!=i[i.l];)switch((m={}).name=f.utils.decode(d,i.slice(i.l,i.l+v)).replace(/[\u0000\r\n].*$/g,""),i.l+=v,m.type=String.fromCharCode(i.read_shift(1)),2==a||l||(m.offset=i.read_shift(4)),m.len=i.read_shift(1),2==a&&(m.offset=i.read_shift(2)),m.dec=i.read_shift(1),m.name.length&&p.push(m),2!=a&&(i.l+=l?13:14),m.type){case"B":o&&8==m.len||!n.WTF||console.log("Skipping "+m.name+":"+m.type);break;case"G":case"P":n.WTF&&console.log("Skipping "+m.name+":"+m.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+m.type)}if(13!==i[i.l]&&(i.l=u-1),13!==i.read_shift(1))throw new Error("DBF Terminator not found "+i.l+" "+i[i.l]);i.l=u;var b=0,x=0;for(r[0]=[],x=0;x!=p.length;++x)r[0][x]=p[x].name;for(;c-- >0;)if(42!==i[i.l])for(++i.l,r[++b]=[],x=0,x=0;x!=p.length;++x){var w=i.slice(i.l,i.l+p[x].len);i.l+=p[x].len,on(w,0);var S=f.utils.decode(d,w);switch(p[x].type){case"C":S.trim().length&&(r[b][x]=S.replace(/\s+$/,""));break;case"D":8===S.length?r[b][x]=new Date(+S.slice(0,4),+S.slice(4,6)-1,+S.slice(6,8)):r[b][x]=S;break;case"F":r[b][x]=parseFloat(S.trim());break;case"+":case"I":r[b][x]=l?2147483648^w.read_shift(-4,"i"):w.read_shift(4,"i");break;case"L":switch(S.trim().toUpperCase()){case"Y":case"T":r[b][x]=!0;break;case"N":case"F":r[b][x]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+S+"|")}break;case"M":if(!s)throw new Error("DBF Unexpected MEMO for type "+a.toString(16));r[b][x]="##MEMO##"+(l?parseInt(S.trim(),10):w.read_shift(4));break;case"N":(S=S.replace(/\u0000/g,"").trim())&&"."!=S&&(r[b][x]=+S||0);break;case"@":r[b][x]=new Date(w.read_shift(-8,"f")-621356832e5);break;case"T":r[b][x]=new Date(864e5*(w.read_shift(4)-2440588)+w.read_shift(4));break;case"Y":r[b][x]=w.read_shift(4,"i")/1e4+w.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":r[b][x]=-w.read_shift(-8,"f");break;case"B":if(o&&8==p[x].len){r[b][x]=w.read_shift(8,"f");break}case"G":case"P":w.l+=p[x].len;break;case"0":if("_NullFlags"===p[x].name)break;default:throw new Error("DBF Unsupported data type "+p[x].type)}}else i.l+=h;if(2!=a&&i.l<i.length&&26!=i[i.l++])throw new Error("DBF EOF Marker missing "+(i.l-1)+" of "+i.length+" "+i[i.l-1].toString(16));return n&&n.sheetRows&&(r=r.slice(0,n.sheetRows)),n.DBF=p,r}(t,r),r);return i["!cols"]=r.DBF.map((function(e){return{wch:e.len,DBF:e}})),delete r.DBF,i}var r={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function(e,t){try{return Mn(n(e,t),t)}catch(e){if(t&&t.WTF)throw e}return{SheetNames:[],Sheets:{}}},to_sheet:n,from_sheet:function(e,n){var a=n||{};if(+a.codepage>=0&&l(+a.codepage),"string"==a.type)throw new Error("Cannot write DBF to JS string");var s=hn(),o=function(e,t){if(null==e||null==e["!ref"])return[];var n={t:"n",v:0},r=0,i=1,a=[],s=0,o="",l={s:{r:0,c:0},e:{r:0,c:0}},c=t||{},u=null!=c.range?c.range:e["!ref"];switch(1===c.header?r=1:"A"===c.header?r=2:Array.isArray(c.header)?r=3:null==c.header&&(r=0),typeof u){case"string":l=Sn(u);break;case"number":(l=Sn(e["!ref"])).s.r=u;break;default:l=u}r>0&&(i=0);var h=vn(l.s.r),f=[],d=[],p=0,m=0,g=Array.isArray(e),v=l.s.r,y=0,b={};g&&!e[v]&&(e[v]=[]);var x=c.skipHidden&&e["!cols"]||[],_=c.skipHidden&&e["!rows"]||[];for(y=l.s.c;y<=l.e.c;++y)if(!(x[y]||{}).hidden)switch(f[y]=bn(y),n=g?e[v][y]:e[f[y]+h],r){case 1:a[y]=y-l.s.c;break;case 2:a[y]=f[y];break;case 3:a[y]=c.header[y-l.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),o=s=En(n,null,c),m=b[s]||0){do{o=s+"_"+m++}while(b[o]);b[s]=m,b[o]=1}else b[s]=1;a[y]=o}for(v=l.s.r+i;v<=l.e.r;++v)if(!(_[v]||{}).hidden){var w=So(e,l,v,f,r,a,g,c);(!1===w.isempty||(1===r?!1!==c.blankrows:c.blankrows))&&(d[p++]=w.row)}return d.length=p,d}(e,{header:1,raw:!0,cellDates:!0}),c=o[0],u=o.slice(1),h=e["!cols"]||[],f=0,d=0,p=0,m=1;for(f=0;f<c.length;++f)if(((h[f]||{}).DBF||{}).name)c[f]=h[f].DBF.name,++p;else if(null!=c[f]){if(++p,"number"==typeof c[f]&&(c[f]=c[f].toString(10)),"string"!=typeof c[f])throw new Error("DBF Invalid column name "+c[f]+" |"+typeof c[f]+"|");if(c.indexOf(c[f])!==f)for(d=0;d<1024;++d)if(-1==c.indexOf(c[f]+"_"+d)){c[f]+="_"+d;break}}var g=Sn(e["!ref"]),v=[],y=[],b=[];for(f=0;f<=g.e.c-g.s.c;++f){var x="",_="",w=0,T=[];for(d=0;d<u.length;++d)null!=u[d][f]&&T.push(u[d][f]);if(0!=T.length&&null!=c[f]){for(d=0;d<T.length;++d){switch(typeof T[d]){case"number":_="B";break;case"string":default:_="C";break;case"boolean":_="L";break;case"object":_=T[d]instanceof Date?"D":"C"}w=Math.max(w,String(T[d]).length),x=x&&x!=_?"C":_}w>250&&(w=250),"C"==(_=((h[f]||{}).DBF||{}).type)&&h[f].DBF.len>w&&(w=h[f].DBF.len),"B"==x&&"N"==_&&(x="N",b[f]=h[f].DBF.dec,w=h[f].DBF.len),y[f]="C"==x||"N"==_?w:r[x]||0,m+=y[f],v[f]=x}else v[f]="?"}var S=s.next(32);for(S.write_shift(4,318902576),S.write_shift(4,u.length),S.write_shift(2,296+32*p),S.write_shift(2,m),f=0;f<4;++f)S.write_shift(4,0);for(S.write_shift(4,0|(+t[i]||3)<<8),f=0,d=0;f<c.length;++f)if(null!=c[f]){var E=s.next(32),M=(c[f].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);E.write_shift(1,M,"sbcs"),E.write_shift(1,"?"==v[f]?"C":v[f],"sbcs"),E.write_shift(4,d),E.write_shift(1,y[f]||r[v[f]]||0),E.write_shift(1,b[f]||0),E.write_shift(1,2),E.write_shift(4,0),E.write_shift(1,0),E.write_shift(4,0),E.write_shift(4,0),d+=y[f]||r[v[f]]||0}var A=s.next(264);for(A.write_shift(4,13),f=0;f<65;++f)A.write_shift(4,0);for(f=0;f<u.length;++f){var C=s.next(m);for(C.write_shift(1,0),d=0;d<c.length;++d)if(null!=c[d])switch(v[d]){case"L":C.write_shift(1,null==u[f][d]?63:u[f][d]?84:70);break;case"B":C.write_shift(8,u[f][d]||0,"f");break;case"N":var R="0";for("number"==typeof u[f][d]&&(R=u[f][d].toFixed(b[d]||0)),p=0;p<y[d]-R.length;++p)C.write_shift(1,32);C.write_shift(1,R,"sbcs");break;case"D":u[f][d]?(C.write_shift(4,("0000"+u[f][d].getFullYear()).slice(-4),"sbcs"),C.write_shift(2,("00"+(u[f][d].getMonth()+1)).slice(-2),"sbcs"),C.write_shift(2,("00"+u[f][d].getDate()).slice(-2),"sbcs")):C.write_shift(8,"00000000","sbcs");break;case"C":var L=String(null!=u[f][d]?u[f][d]:"").slice(0,y[d]);for(C.write_shift(1,L,"sbcs"),p=0;p<y[d]-L.length;++p)C.write_shift(1,32)}}return s.next(1).write_shift(1,26),s.end()}}}(),li=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("N("+we(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(t,n){var r=e[n];return"number"==typeof r?m(r):r},r=function(e,t,n){var r=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==r?e:m(r)};function i(e,i){var a,s=e.split(/[\n\r]+/),o=-1,c=-1,u=0,h=0,f=[],d=[],p=null,m={},g=[],v=[],y=[],b=0;for(+i.codepage>=0&&l(+i.codepage);u!==s.length;++u){b=0;var x,_=s[u].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,r).replace(t,n),w=_.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),T=w[0];if(_.length>0)switch(T){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==w[1].charAt(0)&&d.push(_.slice(3).replace(/;;/g,";"));break;case"C":var S=!1,E=!1,M=!1,A=!1,C=-1,R=-1;for(h=1;h<w.length;++h)switch(w[h].charAt(0)){case"A":case"G":break;case"X":c=parseInt(w[h].slice(1))-1,E=!0;break;case"Y":for(o=parseInt(w[h].slice(1))-1,E||(c=0),a=f.length;a<=o;++a)f[a]=[];break;case"K":'"'===(x=w[h].slice(1)).charAt(0)?x=x.slice(1,x.length-1):"TRUE"===x?x=!0:"FALSE"===x?x=!1:isNaN(Be(x))?isNaN(ze(x).getDate())||(x=Oe(x)):(x=Be(x),null!==p&&fe(p)&&(x=Re(x))),S=!0;break;case"E":A=!0;var L=oa(w[h].slice(1),{r:o,c});f[o][c]=[f[o][c],L];break;case"S":M=!0,f[o][c]=[f[o][c],"S5S"];break;case"R":C=parseInt(w[h].slice(1))-1;break;case"C":R=parseInt(w[h].slice(1))-1;break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+_)}if(S&&(f[o][c]&&2==f[o][c].length?f[o][c][0]=x:f[o][c]=x,p=null),M){if(A)throw new Error("SYLK shared formula cannot have own formula");var k=C>-1&&f[C][R];if(!k||!k[1])throw new Error("SYLK shared formula cannot find base");f[o][c][1]=ua(k[1],{r:o-C,c:c-R})}break;case"F":var P=0;for(h=1;h<w.length;++h)switch(w[h].charAt(0)){case"X":c=parseInt(w[h].slice(1))-1,++P;break;case"Y":for(o=parseInt(w[h].slice(1))-1,a=f.length;a<=o;++a)f[a]=[];break;case"M":b=parseInt(w[h].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":p=d[parseInt(w[h].slice(1))];break;case"W":for(y=w[h].slice(1).split(" "),a=parseInt(y[0],10);a<=parseInt(y[1],10);++a)b=parseInt(y[2],10),v[a-1]=0===b?{hidden:!0}:{wch:b},zi(v[a-1]);break;case"C":v[c=parseInt(w[h].slice(1))-1]||(v[c]={});break;case"R":g[o=parseInt(w[h].slice(1))-1]||(g[o]={}),b>0?(g[o].hpt=b,g[o].hpx=Vi(b)):0===b&&(g[o].hidden=!0);break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+_)}P<1&&(p=null);break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+_)}}return g.length>0&&(m["!rows"]=g),v.length>0&&(m["!cols"]=v),i&&i.sheetRows&&(f=f.slice(0,i.sheetRows)),[f,m]}function a(e,t){var n=function(e,t){switch(t.type){case"base64":return i(y(e),t);case"binary":return i(e,t);case"buffer":return i(b&&Buffer.isBuffer(e)?e.toString("binary"):S(e),t);case"array":return i(Ie(e),t)}throw new Error("Unrecognized type "+t.type)}(e,t),r=n[0],a=n[1],s=An(r,t);return we(a).forEach((function(e){s[e]=a[e]})),s}function s(e,t,n,r){var i="C;Y"+(n+1)+";X"+(r+1)+";K";switch(e.t){case"n":i+=e.v||0,e.f&&!e.F&&(i+=";E"+ca(e.f,{r:n,c:r}));break;case"b":i+=e.v?"TRUE":"FALSE";break;case"e":i+=e.w||e.v;break;case"d":i+='"'+(e.w||e.v)+'"';break;case"s":i+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return i}return e["|"]=254,{to_workbook:function(e,t){return Mn(a(e,t),t)},to_sheet:a,from_sheet:function(e,t){var n,r,i=["ID;PWXL;N;E"],a=[],o=Sn(e["!ref"]),l=Array.isArray(e),c="\r\n";i.push("P;PGeneral"),i.push("F;P0;DG0G8;M255"),e["!cols"]&&(r=i,e["!cols"].forEach((function(e,t){var n="F;W"+(t+1)+" "+(t+1)+" ";e.hidden?n+="0":("number"!=typeof e.width||e.wpx||(e.wpx=Ii(e.width)),"number"!=typeof e.wpx||e.wch||(e.wch=Ni(e.wpx)),"number"==typeof e.wch&&(n+=Math.round(e.wch)))," "!=n.charAt(n.length-1)&&r.push(n)}))),e["!rows"]&&function(e,t){t.forEach((function(t,n){var r="F;";t.hidden?r+="M0;":t.hpt?r+="M"+20*t.hpt+";":t.hpx&&(r+="M"+20*Hi(t.hpx)+";"),r.length>2&&e.push(r+"R"+(n+1))}))}(i,e["!rows"]),i.push("B;Y"+(o.e.r-o.s.r+1)+";X"+(o.e.c-o.s.c+1)+";D"+[o.s.c,o.s.r,o.e.c,o.e.r].join(" "));for(var u=o.s.r;u<=o.e.r;++u)for(var h=o.s.c;h<=o.e.c;++h){var f=_n({r:u,c:h});(n=l?(e[u]||[])[h]:e[f])&&(null!=n.v||n.f&&!n.F)&&a.push(s(n,0,u,h))}return i.join(c)+c+a.join(c)+c+"E"+c}}}(),ci=function(){function e(e,t){for(var n=e.split("\n"),r=-1,i=-1,a=0,s=[];a!==n.length;++a)if("BOT"!==n[a].trim()){if(!(r<0)){for(var o=n[a].trim().split(","),l=o[0],c=o[1],u=n[++a]||"";1&(u.match(/["]/g)||[]).length&&a<n.length-1;)u+="\n"+n[++a];switch(u=u.trim(),+l){case-1:if("BOT"===u){s[++r]=[],i=0;continue}if("EOD"!==u)throw new Error("Unrecognized DIF special command "+u);break;case 0:"TRUE"===u?s[r][i]=!0:"FALSE"===u?s[r][i]=!1:isNaN(Be(c))?isNaN(ze(c).getDate())?s[r][i]=c:s[r][i]=Oe(c):s[r][i]=Be(c),++i;break;case 1:(u=(u=u.slice(1,u.length-1)).replace(/""/g,'"'))&&u.match(/^=".*"$/)&&(u=u.slice(2,-1)),s[r][i++]=""!==u?u:null}if("EOD"===u)break}}else s[++r]=[],i=0;return t&&t.sheetRows&&(s=s.slice(0,t.sheetRows)),s}function t(t,n){return An(function(t,n){switch(n.type){case"base64":return e(y(t),n);case"binary":return e(t,n);case"buffer":return e(b&&Buffer.isBuffer(t)?t.toString("binary"):S(t),n);case"array":return e(Ie(t),n)}throw new Error("Unrecognized type "+n.type)}(t,n),n)}return{to_workbook:function(e,n){return Mn(t(e,n),n)},to_sheet:t,from_sheet:function(){var e=function(e,t,n,r,i){e.push(t),e.push(n+","+r),e.push('"'+i.replace(/"/g,'""')+'"')},t=function(e,t,n,r){e.push(t+","+n),e.push(1==t?'"'+r.replace(/"/g,'""')+'"':r)};return function(n){var r,i=[],a=Sn(n["!ref"]),s=Array.isArray(n);e(i,"TABLE",0,1,"sheetjs"),e(i,"VECTORS",0,a.e.r-a.s.r+1,""),e(i,"TUPLES",0,a.e.c-a.s.c+1,""),e(i,"DATA",0,0,"");for(var o=a.s.r;o<=a.e.r;++o){t(i,-1,0,"BOT");for(var l=a.s.c;l<=a.e.c;++l){var c=_n({r:o,c:l});if(r=s?(n[o]||[])[l]:n[c])switch(r.t){case"n":var u=r.w;u||null==r.v||(u=r.v),null==u?r.f&&!r.F?t(i,1,0,"="+r.f):t(i,1,0,""):t(i,0,u,"V");break;case"b":t(i,0,r.v?1:0,r.v?"TRUE":"FALSE");break;case"s":t(i,1,0,isNaN(r.v)?r.v:'="'+r.v+'"');break;case"d":r.w||(r.w=me(r.z||B[14],Ee(Oe(r.v)))),t(i,0,r.w,"V");break;default:t(i,1,0,"")}else t(i,1,0,"")}}return t(i,-1,0,"EOD"),i.join("\r\n")}}()}}(),ui=function(){function e(e){return e.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function t(e,t){return An(function(e,t){for(var n=e.split("\n"),r=-1,i=-1,a=0,s=[];a!==n.length;++a){var o=n[a].trim().split(":");if("cell"===o[0]){var l=xn(o[1]);if(s.length<=l.r)for(r=s.length;r<=l.r;++r)s[r]||(s[r]=[]);switch(r=l.r,i=l.c,o[2]){case"t":s[r][i]=o[3].replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n");break;case"v":s[r][i]=+o[3];break;case"vtf":var c=o[o.length-1];case"vtc":"nl"===o[3]?s[r][i]=!!+o[4]:s[r][i]=+o[4],"vtf"==o[2]&&(s[r][i]=[s[r][i],c])}}}return t&&t.sheetRows&&(s=s.slice(0,t.sheetRows)),s}(e,t),t)}var n=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),r=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",i=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),a="--SocialCalcSpreadsheetControlSave--";function s(t){if(!t||!t["!ref"])return"";for(var n,r=[],i=[],a="",s=wn(t["!ref"]),o=Array.isArray(t),l=s.s.r;l<=s.e.r;++l)for(var c=s.s.c;c<=s.e.c;++c)if(a=_n({r:l,c}),(n=o?(t[l]||[])[c]:t[a])&&null!=n.v&&"z"!==n.t){switch(i=["cell",a,"t"],n.t){case"s":case"str":i.push(e(n.v));break;case"n":n.f?(i[2]="vtf",i[3]="n",i[4]=n.v,i[5]=e(n.f)):(i[2]="v",i[3]=n.v);break;case"b":i[2]="vt"+(n.f?"f":"c"),i[3]="nl",i[4]=n.v?"1":"0",i[5]=e(n.f||(n.v?"TRUE":"FALSE"));break;case"d":var u=Ee(Oe(n.v));i[2]="vtc",i[3]="nd",i[4]=""+u,i[5]=n.w||me(n.z||B[14],u);break;case"e":continue}r.push(i.join(":"))}return r.push("sheet:c:"+(s.e.c-s.s.c+1)+":r:"+(s.e.r-s.s.r+1)+":tvf:1"),r.push("valueformat:1:text-wiki"),r.join("\n")}return{to_workbook:function(e,n){return Mn(t(e,n),n)},to_sheet:t,from_sheet:function(e){return[n,r,i,r,s(e),a].join("\n")}}}(),hi=function(){function e(e,t,n,r,i){i.raw?t[n][r]=e:""===e||("TRUE"===e?t[n][r]=!0:"FALSE"===e?t[n][r]=!1:isNaN(Be(e))?isNaN(ze(e).getDate())?t[n][r]=e:t[n][r]=Oe(e):t[n][r]=Be(e))}var t={44:",",9:"\t",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function r(e){for(var r={},i=!1,a=0,s=0;a<e.length;++a)34==(s=e.charCodeAt(a))?i=!i:!i&&s in t&&(r[s]=(r[s]||0)+1);for(a in s=[],r)Object.prototype.hasOwnProperty.call(r,a)&&s.push([r[a],a]);if(!s.length)for(a in r=n)Object.prototype.hasOwnProperty.call(r,a)&&s.push([r[a],a]);return s.sort((function(e,t){return e[0]-t[0]||n[e[1]]-n[t[1]]})),t[s.pop()[1]]||44}function i(e,t){var n=t||{},i="",a=n.dense?[]:{},s={s:{c:0,r:0},e:{c:0,r:0}};"sep="==e.slice(0,4)?13==e.charCodeAt(5)&&10==e.charCodeAt(6)?(i=e.charAt(4),e=e.slice(7)):13==e.charCodeAt(5)||10==e.charCodeAt(5)?(i=e.charAt(4),e=e.slice(6)):i=r(e.slice(0,1024)):i=n&&n.FS?n.FS:r(e.slice(0,1024));var o=0,l=0,c=0,u=0,h=0,f=i.charCodeAt(0),d=!1,p=0,m=e.charCodeAt(0);e=e.replace(/\r\n/gm,"\n");var g,v,y=null!=n.dateNF?(v=(v="number"==typeof(g=n.dateNF)?B[g]:g).replace(be,"(\\d+)"),new RegExp("^"+v+"$")):null;function b(){var t=e.slice(u,h),r={};if('"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.slice(1,-1).replace(/""/g,'"')),0===t.length)r.t="z";else if(n.raw)r.t="s",r.v=t;else if(0===t.trim().length)r.t="s",r.v=t;else if(61==t.charCodeAt(0))34==t.charCodeAt(1)&&34==t.charCodeAt(t.length-1)?(r.t="s",r.v=t.slice(2,-1).replace(/""/g,'"')):1!=t.length?(r.t="n",r.f=t.slice(1)):(r.t="s",r.v=t);else if("TRUE"==t)r.t="b",r.v=!0;else if("FALSE"==t)r.t="b",r.v=!1;else if(isNaN(c=Be(t)))if(!isNaN(ze(t).getDate())||y&&t.match(y)){r.z=n.dateNF||B[14];var i=0;y&&t.match(y)&&(t=function(e,t,n){var r=-1,i=-1,a=-1,s=-1,o=-1,l=-1;(t.match(be)||[]).forEach((function(e,t){var c=parseInt(n[t+1],10);switch(e.toLowerCase().charAt(0)){case"y":r=c;break;case"d":a=c;break;case"h":s=c;break;case"s":l=c;break;case"m":s>=0?o=c:i=c}})),l>=0&&-1==o&&i>=0&&(o=i,i=-1);var c=(""+(r>=0?r:(new Date).getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);7==c.length&&(c="0"+c),8==c.length&&(c="20"+c);var u=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return-1==s&&-1==o&&-1==l?c:-1==r&&-1==i&&-1==a?u:c+"T"+u}(0,n.dateNF,t.match(y)||[]),i=1),n.cellDates?(r.t="d",r.v=Oe(t,i)):(r.t="n",r.v=Ee(Oe(t,i))),!1!==n.cellText&&(r.w=me(r.z,r.v instanceof Date?Ee(r.v):r.v)),n.cellNF||delete r.z}else r.t="s",r.v=t;else r.t="n",!1!==n.cellText&&(r.w=t),r.v=c;if("z"==r.t||(n.dense?(a[o]||(a[o]=[]),a[o][l]=r):a[_n({c:l,r:o})]=r),u=h+1,m=e.charCodeAt(u),s.e.c<l&&(s.e.c=l),s.e.r<o&&(s.e.r=o),p==f)++l;else if(l=0,++o,n.sheetRows&&n.sheetRows<=o)return!0}e:for(;h<e.length;++h)switch(p=e.charCodeAt(h)){case 34:34===m&&(d=!d);break;case f:case 10:case 13:if(!d&&b())break e}return h-u>0&&b(),a["!ref"]=Tn(s),a}function a(t,n){var r="",a="string"==n.type?[0,0,0,0]:xo(t,n);switch(n.type){case"base64":r=y(t);break;case"binary":case"string":r=t;break;case"buffer":r=65001==n.codepage?t.toString("utf8"):(n.codepage,b&&Buffer.isBuffer(t)?t.toString("binary"):S(t));break;case"array":r=Ie(t);break;default:throw new Error("Unrecognized type "+n.type)}return 239==a[0]&&187==a[1]&&191==a[2]?r=yt(r.slice(3)):"string"!=n.type&&"buffer"!=n.type&&65001==n.codepage?r=yt(r):n.type,"socialcalc:version:"==r.slice(0,19)?ui.to_sheet("string"==n.type?r:yt(r),n):function(t,n){return n&&n.PRN?n.FS||"sep="==t.slice(0,4)||t.indexOf("\t")>=0||t.indexOf(",")>=0||t.indexOf(";")>=0?i(t,n):An(function(t,n){var r=n||{},i=[];if(!t||0===t.length)return i;for(var a=t.split(/[\r\n]/),s=a.length-1;s>=0&&0===a[s].length;)--s;for(var o=10,l=0,c=0;c<=s;++c)-1==(l=a[c].indexOf(" "))?l=a[c].length:l++,o=Math.max(o,l);for(c=0;c<=s;++c){i[c]=[];var u=0;for(e(a[c].slice(0,o).trim(),i,c,u,r),u=1;u<=(a[c].length-o)/10+1;++u)e(a[c].slice(o+10*(u-1),o+10*u).trim(),i,c,u,r)}return r.sheetRows&&(i=i.slice(0,r.sheetRows)),i}(t,n),n):i(t,n)}(r,n)}return{to_workbook:function(e,t){return Mn(a(e,t),t)},to_sheet:a,from_sheet:function(e){for(var t,n=[],r=Sn(e["!ref"]),i=Array.isArray(e),a=r.s.r;a<=r.e.r;++a){for(var s=[],o=r.s.c;o<=r.e.c;++o){var l=_n({r:a,c:o});if((t=i?(e[a]||[])[o]:e[l])&&null!=t.v){for(var c=(t.w||(En(t),t.w)||"").slice(0,10);c.length<10;)c+=" ";s.push(c+(0===o?" ":""))}else s.push(" ")}n.push(s.join(""))}return n.join("\n")}}}(),fi=function(){function e(e,t,n){if(e){on(e,e.l||0);for(var r=n.Enum||b;e.l<e.length;){var i=e.read_shift(2),a=r[i]||r[65535],s=e.read_shift(2),o=e.l+s,l=a.f&&a.f(e,s,n);if(e.l=o,t(l,a,i))return}}}function t(t,n){if(!t)return t;var r=n||{},i=r.dense?[]:{},a="Sheet1",s="",o=0,l={},c=[],u=[],h={s:{r:0,c:0},e:{r:0,c:0}},f=r.sheetRows||0;if(0==t[2]&&(8==t[3]||9==t[3])&&t.length>=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])r.Enum=b,e(t,(function(e,t,n){switch(n){case 0:r.vers=e,e>=4096&&(r.qpro=!0);break;case 6:h=e;break;case 204:e&&(s=e);break;case 222:s=e;break;case 15:case 51:r.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==n&&112==(112&e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=r.dateNF||B[14],r.cellDates&&(e[1].t="d",e[1].v=Re(e[1].v))),r.qpro&&e[3]>o&&(i["!ref"]=Tn(h),l[a]=i,c.push(a),i=r.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},o=e[3],a=s||"Sheet"+(o+1),s="");var u=r.dense?(i[e[0].r]||[])[e[0].c]:i[_n(e[0])];if(u){u.t=e[1].t,u.v=e[1].v,null!=e[1].z&&(u.z=e[1].z),null!=e[1].f&&(u.f=e[1].f);break}r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[_n(e[0])]=e[1]}}),r);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);r.Enum=x,14==t[2]&&(r.qpro=!0,t.l=0),e(t,(function(e,t,n){switch(n){case 204:a=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>o&&(i["!ref"]=Tn(h),l[a]=i,c.push(a),i=r.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},o=e[3],a="Sheet"+(o+1)),f>0&&e[0].r>=f)break;r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[_n(e[0])]=e[1],h.e.c<e[0].c&&(h.e.c=e[0].c),h.e.r<e[0].r&&(h.e.r=e[0].r);break;case 27:e[14e3]&&(u[e[14e3][0]]=e[14e3][1]);break;case 1537:u[e[0]]=e[1],e[0]==o&&(a=e[1])}}),r)}if(i["!ref"]=Tn(h),l[s||a]=i,c.push(s||a),!u.length)return{SheetNames:c,Sheets:l};for(var d={},p=[],m=0;m<u.length;++m)l[c[m]]?(p.push(u[m]||c[m]),d[u[m]]=l[u[m]]||l[c[m]]):(p.push(u[m]),d[u[m]]={"!ref":"A1"});return{SheetNames:p,Sheets:d}}function n(e,t,n){var r=[{c:0,r:0},{t:"n",v:0},0,0];return n.qpro&&20768!=n.vers?(r[0].c=e.read_shift(1),r[3]=e.read_shift(1),r[0].r=e.read_shift(2),e.l+=2):(r[2]=e.read_shift(1),r[0].c=e.read_shift(2),r[0].r=e.read_shift(2)),r}function r(e,t,r){var i=e.l+t,a=n(e,0,r);if(a[1].t="s",20768==r.vers){e.l++;var s=e.read_shift(1);return a[1].v=e.read_shift(s,"utf8"),a}return r.qpro&&e.l++,a[1].v=e.read_shift(i-e.l,"cstr"),a}function i(e,t,n){var r=cn(7+n.length);r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(1,39);for(var i=0;i<r.length;++i){var a=n.charCodeAt(i);r.write_shift(1,a>=128?95:a)}return r.write_shift(1,0),r}function a(e,t,n){var r=cn(7);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(2,n,"i"),r}function s(e,t,n){var r=cn(13);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(8,n,"f"),r}function o(e,t,n){var r=32768&t;return t=(r?e:0)+((t&=-32769)>=8192?t-16384:t),(r?"":"$")+(n?bn(t):vn(t))}var c={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},u=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function h(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function f(e,t,n,r){var i=cn(6+r.length);i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),i.write_shift(1,39);for(var a=0;a<r.length;++a){var s=r.charCodeAt(a);i.write_shift(1,s>=128?95:s)}return i.write_shift(1,0),i}function d(e,t){var n=h(e),r=e.read_shift(4),i=e.read_shift(4),a=e.read_shift(2);if(65535==a)return 0===r&&3221225472===i?(n[1].t="e",n[1].v=15):0===r&&3489660928===i?(n[1].t="e",n[1].v=42):n[1].v=0,n;var s=32768&a;return a=(32767&a)-16446,n[1].v=(1-2*s)*(i*Math.pow(2,a+32)+r*Math.pow(2,a)),n}function p(e,t,n,r){var i=cn(14);if(i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),0==r)return i.write_shift(4,0),i.write_shift(4,0),i.write_shift(2,65535),i;var a,s=0,o=0,l=0;return r<0&&(s=1,r=-r),o=0|Math.log2(r),0==(2147483648&(l=(r/=Math.pow(2,o-31))>>>0))&&(++o,l=(r/=2)>>>0),r-=l,l|=2147483648,l>>>=0,a=(r*=Math.pow(2,32))>>>0,i.write_shift(4,a),i.write_shift(4,l),o+=16383+(s?32768:0),i.write_shift(2,o),i}function m(e,t){var n=h(e),r=e.read_shift(8,"f");return n[1].v=r,n}function g(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function v(e,t){var n=cn(5+e.length);n.write_shift(2,14e3),n.write_shift(2,t);for(var r=0;r<e.length;++r){var i=e.charCodeAt(r);n[n.l++]=i>127?95:i}return n[n.l++]=0,n}var b={0:{n:"BOF",f:Er},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(e,t,n){var r={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&n.qpro?(r.s.c=e.read_shift(1),e.l++,r.s.r=e.read_shift(2),r.e.c=e.read_shift(1),e.l++,r.e.r=e.read_shift(2),r):(r.s.c=e.read_shift(2),r.s.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),r.e.c=e.read_shift(2),r.e.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),65535==r.s.c&&(r.s.c=r.e.c=r.s.r=r.e.r=0),r)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(e,t,r){var i=n(e,0,r);return i[1].v=e.read_shift(2,"i"),i}},14:{n:"NUMBER",f:function(e,t,r){var i=n(e,0,r);return i[1].v=e.read_shift(8,"f"),i}},15:{n:"LABEL",f:r},16:{n:"FORMULA",f:function(e,t,r){var i=e.l+t,a=n(e,0,r);if(a[1].v=e.read_shift(8,"f"),r.qpro)e.l=i;else{var s=e.read_shift(2);!function(e,t){on(e,0);for(var n=[],r=0,i="",a="",s="",l="";e.l<e.length;){var h=e[e.l++];switch(h){case 0:n.push(e.read_shift(8,"f"));break;case 1:a=o(t[0].c,e.read_shift(2),!0),i=o(t[0].r,e.read_shift(2),!1),n.push(a+i);break;case 2:var f=o(t[0].c,e.read_shift(2),!0),d=o(t[0].r,e.read_shift(2),!1);a=o(t[0].c,e.read_shift(2),!0),i=o(t[0].r,e.read_shift(2),!1),n.push(f+d+":"+a+i);break;case 3:if(e.l<e.length)return void console.error("WK1 premature formula end");break;case 4:n.push("("+n.pop()+")");break;case 5:n.push(e.read_shift(2));break;case 6:for(var p="";h=e[e.l++];)p+=String.fromCharCode(h);n.push('"'+p.replace(/"/g,'""')+'"');break;case 8:n.push("-"+n.pop());break;case 23:n.push("+"+n.pop());break;case 22:n.push("NOT("+n.pop()+")");break;case 20:case 21:l=n.pop(),s=n.pop(),n.push(["AND","OR"][h-20]+"("+s+","+l+")");break;default:if(h<32&&u[h])l=n.pop(),s=n.pop(),n.push(s+u[h]+l);else{if(!c[h])return h<=7?console.error("WK1 invalid opcode "+h.toString(16)):h<=24?console.error("WK1 unsupported op "+h.toString(16)):h<=30?console.error("WK1 invalid opcode "+h.toString(16)):h<=115?console.error("WK1 unsupported function opcode "+h.toString(16)):console.error("WK1 unrecognized opcode "+h.toString(16));if(69==(r=c[h][1])&&(r=e[e.l++]),r>n.length)return void console.error("WK1 bad formula parse 0x"+h.toString(16)+":|"+n.join("|")+"|");var m=n.slice(-r);n.length-=r,n.push(c[h][0]+"("+m.join(",")+")")}}}1==n.length?t[1].f=""+n[0]:console.error("WK1 bad formula parse |"+n.join("|")+"|")}(e.slice(e.l,e.l+s),a),e.l+=s}return a}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:r},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:g},222:{n:"SHEETNAMELP",f:function(e,t){var n=e[e.l++];n>t-1&&(n=t-1);for(var r="";r.length<n;)r+=String.fromCharCode(e[e.l++]);return r}},65535:{n:""}},x={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function(e,t){var n=h(e);return n[1].t="s",n[1].v=e.read_shift(t-4,"cstr"),n}},23:{n:"NUMBER17",f:d},24:{n:"NUMBER18",f:function(e,t){var n=h(e);n[1].v=e.read_shift(2);var r=n[1].v>>1;if(1&n[1].v)switch(7&r){case 0:r=5e3*(r>>3);break;case 1:r=500*(r>>3);break;case 2:r=(r>>3)/20;break;case 3:r=(r>>3)/200;break;case 4:r=(r>>3)/2e3;break;case 5:r=(r>>3)/2e4;break;case 6:r=(r>>3)/16;break;case 7:r=(r>>3)/64}return n[1].v=r,n}},25:{n:"FORMULA19",f:function(e,t){var n=d(e);return e.l+=t-14,n}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(e,t){for(var n={},r=e.l+t;e.l<r;){var i=e.read_shift(2);if(14e3==i){for(n[i]=[0,""],n[i][0]=e.read_shift(2);e[e.l];)n[i][1]+=String.fromCharCode(e[e.l]),e.l++;e.l++}}return n}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function(e,t){var n=h(e),r=e.read_shift(4);return n[1].v=r>>6,n}},38:{n:"??"},39:{n:"NUMBER27",f:m},40:{n:"FORMULA28",f:function(e,t){var n=m(e);return e.l+=t-10,n}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:g},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(e,t,n){if(n.qpro&&!(t<21)){var r=e.read_shift(1);return e.l+=17,e.l+=1,e.l+=2,[r,e.read_shift(t-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(e,t){var n=t||{};if(+n.codepage>=0&&l(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var r,o=hn(),c=Sn(e["!ref"]),u=Array.isArray(e),h=[];$s(o,0,(1030,(r=cn(2)).write_shift(2,1030),r)),$s(o,6,function(e){var t=cn(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}(c));for(var f=Math.min(c.e.r,8191),d=c.s.r;d<=f;++d)for(var p=vn(d),m=c.s.c;m<=c.e.c;++m){d===c.s.r&&(h[m]=bn(m));var g=h[m]+p,v=u?(e[d]||[])[m]:e[g];v&&"z"!=v.t&&("n"==v.t?(0|v.v)==v.v&&v.v>=-32768&&v.v<=32767?$s(o,13,a(d,m,v.v)):$s(o,14,s(d,m,v.v)):$s(o,15,i(d,m,En(v).slice(0,239))))}return $s(o,1),o.end()},book_to_wk3:function(e,t){var n=t||{};if(+n.codepage>=0&&l(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var r=hn();$s(r,0,function(e){var t=cn(26);t.write_shift(2,4096),t.write_shift(2,4),t.write_shift(4,0);for(var n=0,r=0,i=0,a=0;a<e.SheetNames.length;++a){var s=e.SheetNames[a],o=e.Sheets[s];if(o&&o["!ref"]){++i;var l=wn(o["!ref"]);n<l.e.r&&(n=l.e.r),r<l.e.c&&(r=l.e.c)}}return n>8191&&(n=8191),t.write_shift(2,n),t.write_shift(1,i),t.write_shift(1,r),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}(e));for(var i=0,a=0;i<e.SheetNames.length;++i)(e.Sheets[e.SheetNames[i]]||{})["!ref"]&&$s(r,27,v(e.SheetNames[i],a++));var s=0;for(i=0;i<e.SheetNames.length;++i){var o=e.Sheets[e.SheetNames[i]];if(o&&o["!ref"]){for(var c=Sn(o["!ref"]),u=Array.isArray(o),h=[],d=Math.min(c.e.r,8191),m=c.s.r;m<=d;++m)for(var g=vn(m),y=c.s.c;y<=c.e.c;++y){m===c.s.r&&(h[y]=bn(y));var b=h[y]+g,x=u?(o[m]||[])[y]:o[b];x&&"z"!=x.t&&("n"==x.t?$s(r,23,p(m,y,s,x.v)):$s(r,22,f(m,y,s,En(x).slice(0,239))))}++s}}return $s(r,1),r.end()},to_workbook:function(e,n){switch(n.type){case"base64":return t(T(y(e)),n);case"binary":return t(T(e),n);case"buffer":case"array":return t(e,n)}throw"Unsupported type "+n.type}}}(),di=function(){var e=xt("t"),t=xt("rPr");function n(n){var r=n.match(e);if(!r)return{t:"s",v:""};var i={t:"s",v:lt(r[1])},a=n.match(t);return a&&(i.s=function(e){var t={},n=e.match(tt),r=0,i=!1;if(n)for(;r!=n.length;++r){var a=it(n[r]);switch(a[0].replace(/\w*:/g,"")){case"<condense":case"<extend":break;case"<shadow":if(!a.val)break;case"<shadow>":case"<shadow/>":t.shadow=1;break;case"</shadow>":break;case"<charset":if("1"==a.val)break;t.cp=s[parseInt(a.val,10)];break;case"<outline":if(!a.val)break;case"<outline>":case"<outline/>":t.outline=1;break;case"</outline>":break;case"<rFont":t.name=a.val;break;case"<sz":t.sz=a.val;break;case"<strike":if(!a.val)break;case"<strike>":case"<strike/>":t.strike=1;break;case"</strike>":break;case"<u":if(!a.val)break;switch(a.val){case"double":t.uval="double";break;case"singleAccounting":t.uval="single-accounting";break;case"doubleAccounting":t.uval="double-accounting"}case"<u>":case"<u/>":t.u=1;break;case"</u>":break;case"<b":if("0"==a.val)break;case"<b>":case"<b/>":t.b=1;break;case"</b>":break;case"<i":if("0"==a.val)break;case"<i>":case"<i/>":t.i=1;break;case"</i>":break;case"<color":a.rgb&&(t.color=a.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":t.family=a.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":t.valign=a.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":case"<scheme":case"<scheme>":case"<scheme/>":case"</scheme>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(47!==a[0].charCodeAt(1)&&!i)throw new Error("Unrecognized rich format "+a[0])}}return t}(a[1])),i}var r=/<(?:\w+:)?r>/g,i=/<\/(?:\w+:)?r>/;return function(e){return e.replace(r,"").split(i).map(n).filter((function(e){return e.v}))}}(),pi=function(){var e=/(\r\n|\n)/g;function t(t){var n=[[],t.v,[]];return t.v?(t.s&&function(e,t,n){var r=[];e.u&&r.push("text-decoration: underline;"),e.uval&&r.push("text-underline-style:"+e.uval+";"),e.sz&&r.push("font-size:"+e.sz+"pt;"),e.outline&&r.push("text-effect: outline;"),e.shadow&&r.push("text-shadow: auto;"),t.push('<span style="'+r.join("")+'">'),e.b&&(t.push("<b>"),n.push("</b>")),e.i&&(t.push("<i>"),n.push("</i>")),e.strike&&(t.push("<s>"),n.push("</s>"));var i=e.valign||"";"superscript"==i||"super"==i?i="sup":"subscript"==i&&(i="sub"),""!=i&&(t.push("<"+i+">"),n.push("</"+i+">")),n.push("</span>")}(t.s,n[0],n[2]),n[0].join("")+n[1].replace(e,"<br/>")+n[2].join("")):""}return function(e){return e.map(t).join("")}}(),mi=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,gi=/<(?:\w+:)?r>/,vi=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function yi(e,t){var n=!t||t.cellHTML,r={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(r.t=lt(yt(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),r.r=yt(e),n&&(r.h=ht(r.t))):e.match(gi)&&(r.r=yt(e),r.t=lt(yt((e.replace(vi,"").match(mi)||[]).join("").replace(tt,""))),n&&(r.h=pi(di(r.r)))),r):{t:""}}var bi=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,xi=/<(?:\w+:)?(?:si|sstItem)>/g,_i=/<\/(?:\w+:)?(?:si|sstItem)>/;function wi(e){for(var t=[],n=e.split(""),r=0;r<n.length;++r)t[r]=n[r].charCodeAt(0);return t}function Ti(e,t){var n={};return n.Major=e.read_shift(2),n.Minor=e.read_shift(2),t>=4&&(e.l+=t-4),n}function Si(e){for(var t=e.read_shift(4),n=e.l+t-4,r={},i=e.read_shift(4),a=[];i-- >0;)a.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(r.name=e.read_shift(0,"lpp4"),r.comps=a,e.l!=n)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+n);return r}function Ei(e,t){var n=e.l+t,r={};r.Flags=63&e.read_shift(4),e.l+=4,r.AlgID=e.read_shift(4);var i=!1;switch(r.AlgID){case 26126:case 26127:case 26128:i=36==r.Flags;break;case 26625:i=4==r.Flags;break;case 0:i=16==r.Flags||4==r.Flags||36==r.Flags;break;default:throw"Unrecognized encryption algorithm: "+r.AlgID}if(!i)throw new Error("Encryption Flags/AlgID mismatch");return r.AlgIDHash=e.read_shift(4),r.KeySize=e.read_shift(4),r.ProviderType=e.read_shift(4),e.l+=8,r.CSPName=e.read_shift(n-e.l>>1,"utf16le"),e.l=n,r}function Mi(e,t){var n={},r=e.l+t;return e.l+=4,n.Salt=e.slice(e.l,e.l+16),e.l+=16,n.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),n.VerifierHash=e.slice(e.l,r),e.l=r,n}function Ai(e){if(36!=(63&e.read_shift(4)))throw new Error("EncryptionInfo mismatch");var t=e.read_shift(4);return{t:"Std",h:Ei(e,t),v:Mi(e,e.length-e.l)}}function Ci(){throw new Error("File is password-protected: ECMA-376 Extensible")}function Ri(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var n=e.read_shift(e.length-e.l,"utf8"),r={};return n.replace(tt,(function(e){var n=it(e);switch(at(n[0])){case"<?xml":case"<encryption":case"</encryption>":case"</keyEncryptors>":case"</keyEncryptor>":break;case"<keyData":t.forEach((function(e){r[e]=n[e]}));break;case"<dataIntegrity":r.encryptedHmacKey=n.encryptedHmacKey,r.encryptedHmacValue=n.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":r.encs=[];break;case"<keyEncryptor":r.uri=n.uri;break;case"<encryptedKey":r.encs.push(n);break;default:throw n[0]}})),r}var Li=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],n=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],r=function(e,t){return 255&((n=e^t)/2|128*n);var n};return function(i){for(var a,s,o,l=wi(i),c=function(e){for(var r=t[e.length-1],i=104,a=e.length-1;a>=0;--a)for(var s=e[a],o=0;7!=o;++o)64&s&&(r^=n[i]),s*=2,--i;return r}(l),u=l.length,h=_(16),f=0;16!=f;++f)h[f]=0;for(1==(1&u)&&(a=c>>8,h[u]=r(e[0],a),--u,a=255&c,s=l[l.length-1],h[u]=r(s,a));u>0;)a=c>>8,h[--u]=r(l[u],a),a=255&c,h[--u]=r(l[u],a);for(u=15,o=15-l.length;o>0;)a=c>>8,h[u]=r(e[o],a),--o,a=255&c,h[--u]=r(l[u],a),--u,--o;return h}}();var ki=function(){function e(e,n){switch(n.type){case"base64":return t(y(e),n);case"binary":return t(e,n);case"buffer":return t(b&&Buffer.isBuffer(e)?e.toString("binary"):S(e),n);case"array":return t(Ie(e),n)}throw new Error("Unrecognized type "+n.type)}function t(e,t){var n=(t||{}).dense?[]:{},r=e.match(/\\trowd.*?\\row\b/g);if(!r.length)throw new Error("RTF missing table");var i={s:{c:0,r:0},e:{c:0,r:r.length-1}};return r.forEach((function(e,t){Array.isArray(n)&&(n[t]=[]);for(var r,a=/\\\w+\b/g,s=0,o=-1;r=a.exec(e);){if("\\cell"===r[0]){var l=e.slice(s,a.lastIndex-r[0].length);if(" "==l[0]&&(l=l.slice(1)),++o,l.length){var c={v:l,t:"s"};Array.isArray(n)?n[t][o]=c:n[_n({r:t,c:o})]=c}}s=a.lastIndex}o>i.e.c&&(i.e.c=o)})),n["!ref"]=Tn(i),n}return{to_workbook:function(t,n){return Mn(e(t,n),n)},to_sheet:e,from_sheet:function(e){for(var t,n=["{\\rtf1\\ansi"],r=Sn(e["!ref"]),i=Array.isArray(e),a=r.s.r;a<=r.e.r;++a){n.push("\\trowd\\trautofit1");for(var s=r.s.c;s<=r.e.c;++s)n.push("\\cellx"+(s+1));for(n.push("\\pard\\intbl"),s=r.s.c;s<=r.e.c;++s){var o=_n({r:a,c:s});(t=i?(e[a]||[])[s]:e[o])&&(null!=t.v||t.f&&!t.F)&&(n.push(" "+(t.w||(En(t),t.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}}}();function Pi(e){for(var t=0,n=1;3!=t;++t)n=256*n+(e[t]>255?255:e[t]<0?0:e[t]);return n.toString(16).toUpperCase().slice(1)}function Di(e,t){if(0===t)return e;var n,r,i=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(t,n,r),a=Math.min(t,n,r),s=i-a;if(0===s)return[0,0,t];var o,l=0,c=i+a;switch(o=s/(c>1?2-c:c),i){case t:l=((n-r)/s+6)%6;break;case n:l=(r-t)/s+2;break;case r:l=(t-n)/s+4}return[l/6,o,c/2]}((r=(n=e).slice("#"===n[0]?1:0).slice(0,6),[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]));return i[2]=t<0?i[2]*(1+t):1-(1-i[2])*(1-t),Pi(function(e){var t,n=e[0],r=e[1],i=e[2],a=2*r*(i<.5?i:1-i),s=i-a/2,o=[s,s,s],l=6*n;if(0!==r)switch(0|l){case 0:case 6:t=a*l,o[0]+=a,o[1]+=t;break;case 1:t=a*(2-l),o[0]+=t,o[1]+=a;break;case 2:t=a*(l-2),o[1]+=a,o[2]+=t;break;case 3:t=a*(4-l),o[1]+=t,o[2]+=a;break;case 4:t=a*(l-4),o[2]+=a,o[0]+=t;break;case 5:t=a*(6-l),o[2]+=t,o[0]+=a}for(var c=0;3!=c;++c)o[c]=Math.round(255*o[c]);return o}(i))}var Oi=6;function Ii(e){return Math.floor((e+Math.round(128/Oi)/256)*Oi)}function Ni(e){return Math.floor((e-5)/Oi*100+.5)/100}function Fi(e){return Math.round((e*Oi+5)/Oi*256)/256}function Bi(e){return Fi(Ni(Ii(e)))}function Ui(e){var t=Math.abs(e-Bi(e)),n=Oi;if(t>.005)for(Oi=1;Oi<15;++Oi)Math.abs(e-Bi(e))<=t&&(t=Math.abs(e-Bi(e)),n=Oi);Oi=n}function zi(e){e.width?(e.wpx=Ii(e.width),e.wch=Ni(e.wpx),e.MDW=Oi):e.wpx?(e.wch=Ni(e.wpx),e.width=Fi(e.wch),e.MDW=Oi):"number"==typeof e.wch&&(e.width=Fi(e.wch),e.wpx=Ii(e.width),e.MDW=Oi),e.customWidth&&delete e.customWidth}function Hi(e){return 96*e/96}function Vi(e){return 96*e/96}var Gi={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"},Wi=["numFmtId","fillId","fontId","borderId","xfId"],ji=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"],Xi=function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,r=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,i=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(a,o,l){var c,u={};return a?((c=(a=a.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"")).match(e))&&function(e,t,n){t.NumberFmt=[];for(var r=we(B),i=0;i<r.length;++i)t.NumberFmt[r[i]]=B[r[i]];var a=e[0].match(tt);if(a)for(i=0;i<a.length;++i){var s=it(a[i]);switch(at(s[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":case"</numFmt>":break;case"<numFmt":var o=lt(yt(s.formatCode)),l=parseInt(s.numFmtId,10);if(t.NumberFmt[l]=o,l>0){if(l>392){for(l=392;l>60&&null!=t.NumberFmt[l];--l);t.NumberFmt[l]=o}ge(o,l)}break;default:if(n.WTF)throw new Error("unrecognized "+s[0]+" in numFmts")}}}(c,u,l),(c=a.match(r))&&function(e,t,n,r){t.Fonts=[];var i={},a=!1;(e[0].match(tt)||[]).forEach((function(e){var o=it(e);switch(at(o[0])){case"<fonts":case"<fonts>":case"</fonts>":case"<font":case"<font>":case"<name/>":case"</name>":case"<sz/>":case"</sz>":case"<vertAlign/>":case"</vertAlign>":case"<family/>":case"</family>":case"<scheme/>":case"</scheme>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"</font>":case"<font/>":t.Fonts.push(i),i={};break;case"<name":o.val&&(i.name=yt(o.val));break;case"<b":i.bold=o.val?dt(o.val):1;break;case"<b/>":i.bold=1;break;case"<i":i.italic=o.val?dt(o.val):1;break;case"<i/>":i.italic=1;break;case"<u":switch(o.val){case"none":i.underline=0;break;case"single":i.underline=1;break;case"double":i.underline=2;break;case"singleAccounting":i.underline=33;break;case"doubleAccounting":i.underline=34}break;case"<u/>":i.underline=1;break;case"<strike":i.strike=o.val?dt(o.val):1;break;case"<strike/>":i.strike=1;break;case"<outline":i.outline=o.val?dt(o.val):1;break;case"<outline/>":i.outline=1;break;case"<shadow":i.shadow=o.val?dt(o.val):1;break;case"<shadow/>":i.shadow=1;break;case"<condense":i.condense=o.val?dt(o.val):1;break;case"<condense/>":i.condense=1;break;case"<extend":i.extend=o.val?dt(o.val):1;break;case"<extend/>":i.extend=1;break;case"<sz":o.val&&(i.sz=+o.val);break;case"<vertAlign":o.val&&(i.vertAlign=o.val);break;case"<family":o.val&&(i.family=parseInt(o.val,10));break;case"<scheme":o.val&&(i.scheme=o.val);break;case"<charset":if("1"==o.val)break;o.codepage=s[parseInt(o.val,10)];break;case"<color":if(i.color||(i.color={}),o.auto&&(i.color.auto=dt(o.auto)),o.rgb)i.color.rgb=o.rgb.slice(-6);else if(o.indexed){i.color.index=parseInt(o.indexed,10);var l=Zn[i.color.index];81==i.color.index&&(l=Zn[1]),l||(l=Zn[1]),i.color.rgb=l[0].toString(16)+l[1].toString(16)+l[2].toString(16)}else o.theme&&(i.color.theme=parseInt(o.theme,10),o.tint&&(i.color.tint=parseFloat(o.tint)),o.theme&&n.themeElements&&n.themeElements.clrScheme&&(i.color.rgb=Di(n.themeElements.clrScheme[i.color.theme].rgb,i.color.tint||0)));break;case"<AlternateContent":case"<ext":a=!0;break;case"</AlternateContent>":case"</ext>":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+o[0]+" in fonts")}}))}(c,u,o,l),(c=a.match(n))&&function(e,t,n,r){t.Fills=[];var i={},a=!1;(e[0].match(tt)||[]).forEach((function(e){var n=it(e);switch(at(n[0])){case"<fills":case"<fills>":case"</fills>":case"</fill>":case"<gradientFill>":case"<patternFill/>":case"</patternFill>":case"<bgColor/>":case"</bgColor>":case"<fgColor/>":case"</fgColor>":case"<stop":case"<stop/>":case"</stop>":case"<color":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<fill>":case"<fill":case"<fill/>":i={},t.Fills.push(i);break;case"<gradientFill":case"</gradientFill>":t.Fills.push(i),i={};break;case"<patternFill":case"<patternFill>":n.patternType&&(i.patternType=n.patternType);break;case"<bgColor":i.bgColor||(i.bgColor={}),n.indexed&&(i.bgColor.indexed=parseInt(n.indexed,10)),n.theme&&(i.bgColor.theme=parseInt(n.theme,10)),n.tint&&(i.bgColor.tint=parseFloat(n.tint)),n.rgb&&(i.bgColor.rgb=n.rgb.slice(-6));break;case"<fgColor":i.fgColor||(i.fgColor={}),n.theme&&(i.fgColor.theme=parseInt(n.theme,10)),n.tint&&(i.fgColor.tint=parseFloat(n.tint)),null!=n.rgb&&(i.fgColor.rgb=n.rgb.slice(-6));break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+n[0]+" in fills")}}))}(c,u,0,l),(c=a.match(i))&&function(e,t,n,r){t.Borders=[];var i={},a=!1;(e[0].match(tt)||[]).forEach((function(e){var n=it(e);switch(at(n[0])){case"<borders":case"<borders>":case"</borders>":case"</border>":case"<left/>":case"<left":case"<left>":case"</left>":case"<right/>":case"<right":case"<right>":case"</right>":case"<top/>":case"<top":case"<top>":case"</top>":case"<bottom/>":case"<bottom":case"<bottom>":case"</bottom>":case"<diagonal":case"<diagonal>":case"<diagonal/>":case"</diagonal>":case"<horizontal":case"<horizontal>":case"<horizontal/>":case"</horizontal>":case"<vertical":case"<vertical>":case"<vertical/>":case"</vertical>":case"<start":case"<start>":case"<start/>":case"</start>":case"<end":case"<end>":case"<end/>":case"</end>":case"<color":case"<color>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<border":case"<border>":case"<border/>":i={},n.diagonalUp&&(i.diagonalUp=dt(n.diagonalUp)),n.diagonalDown&&(i.diagonalDown=dt(n.diagonalDown)),t.Borders.push(i);break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+n[0]+" in borders")}}))}(c,u,0,l),(c=a.match(t))&&function(e,t,n){var r;t.CellXf=[];var i=!1;(e[0].match(tt)||[]).forEach((function(e){var a=it(e),s=0;switch(at(a[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":case"</xf>":case"</alignment>":case"<protection":case"</protection>":case"<protection/>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<xf":case"<xf/>":for(delete(r=a)[0],s=0;s<Wi.length;++s)r[Wi[s]]&&(r[Wi[s]]=parseInt(r[Wi[s]],10));for(s=0;s<ji.length;++s)r[ji[s]]&&(r[ji[s]]=dt(r[ji[s]]));if(t.NumberFmt&&r.numFmtId>392)for(s=392;s>60;--s)if(t.NumberFmt[r.numFmtId]==t.NumberFmt[s]){r.numFmtId=s;break}t.CellXf.push(r);break;case"<alignment":case"<alignment/>":var o={};a.vertical&&(o.vertical=a.vertical),a.horizontal&&(o.horizontal=a.horizontal),null!=a.textRotation&&(o.textRotation=a.textRotation),a.indent&&(o.indent=a.indent),a.wrapText&&(o.wrapText=dt(a.wrapText)),r.alignment=o;break;case"<AlternateContent":case"<ext":i=!0;break;case"</AlternateContent>":case"</ext>":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+a[0]+" in cellXfs")}}))}(c,u,l),u):u}}(),qi=ln,$i=ln,Yi=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function Zi(e,t,n){t.themeElements.clrScheme=[];var r={};(e[0].match(tt)||[]).forEach((function(e){var i=it(e);switch(i[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":r.rgb=i.val;break;case"<a:sysClr":r.rgb=i.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":"/"===i[0].charAt(1)?(t.themeElements.clrScheme[Yi.indexOf(i[0])]=r,r={}):r.name=i[0].slice(3,i[0].length-1);break;default:if(n&&n.WTF)throw new Error("Unrecognized "+i[0]+" in clrScheme")}}))}function Ji(){}function Ki(){}var Qi=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,ea=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,ta=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/,na=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function ra(e,t){var n;e&&0!==e.length||(e=function(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var n=[Ke];return n[n.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',n[n.length]="<a:themeElements>",n[n.length]='<a:clrScheme name="Office">',n[n.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',n[n.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',n[n.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',n[n.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',n[n.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',n[n.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',n[n.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',n[n.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',n[n.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',n[n.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',n[n.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',n[n.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',n[n.length]="</a:clrScheme>",n[n.length]='<a:fontScheme name="Office">',n[n.length]="<a:majorFont>",n[n.length]='<a:latin typeface="Cambria"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Times New Roman"/>',n[n.length]='<a:font script="Hebr" typeface="Times New Roman"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="MoolBoran"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Times New Roman"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:majorFont>",n[n.length]="<a:minorFont>",n[n.length]='<a:latin typeface="Calibri"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Arial"/>',n[n.length]='<a:font script="Hebr" typeface="Arial"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="DaunPenh"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Arial"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:minorFont>",n[n.length]="</a:fontScheme>",n[n.length]='<a:fmtScheme name="Office">',n[n.length]="<a:fillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="1"/>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="0"/>',n[n.length]="</a:gradFill>",n[n.length]="</a:fillStyleLst>",n[n.length]="<a:lnStyleLst>",n[n.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]="</a:lnStyleLst>",n[n.length]="<a:effectStyleLst>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',n[n.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',n[n.length]="</a:effectStyle>",n[n.length]="</a:effectStyleLst>",n[n.length]="<a:bgFillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]="</a:bgFillStyleLst>",n[n.length]="</a:fmtScheme>",n[n.length]="</a:themeElements>",n[n.length]="<a:objectDefaults>",n[n.length]="<a:spDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',n[n.length]="</a:spDef>",n[n.length]="<a:lnDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',n[n.length]="</a:lnDef>",n[n.length]="</a:objectDefaults>",n[n.length]="<a:extraClrSchemeLst/>",n[n.length]="</a:theme>",n.join("")}());var r={};if(!(n=e.match(na)))throw new Error("themeElements not found in theme");return function(e,t,n){var r;t.themeElements={},[["clrScheme",Qi,Zi],["fontScheme",ea,Ji],["fmtScheme",ta,Ki]].forEach((function(i){if(!(r=e.match(i[1])))throw new Error(i[0]+" not found in themeElements");i[2](r,t,n)}))}(n[0],r,t),r.raw=e,r}function ia(e){var t=e.read_shift(2),n=e.read_shift(2)-4,r=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:r[1]=function(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:case 4:e.l+=4;break;case 1:t.xclrValue=function(e,t){return ln(e,4)}(e);break;case 2:t.xclrValue=Dr(e);break;case 3:t.xclrValue=function(e){return e.read_shift(4)}(e)}return e.l+=8,t}(e);break;case 6:r[1]=function(e,t){return ln(e,t)}(e,n);break;case 14:case 15:r[1]=e.read_shift(1===n?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+n)}return r}function aa(e,t,n,r){var i,a=Array.isArray(e);t.forEach((function(t){var s=xn(t.ref);if(a?(e[s.r]||(e[s.r]=[]),i=e[s.r][s.c]):i=e[t.ref],!i){i={t:"z"},a?e[s.r][s.c]=i:e[t.ref]=i;var o=Sn(e["!ref"]||"BDWGO1000001:A1");o.s.r>s.r&&(o.s.r=s.r),o.e.r<s.r&&(o.e.r=s.r),o.s.c>s.c&&(o.s.c=s.c),o.e.c<s.c&&(o.e.c=s.c);var l=Tn(o);l!==e["!ref"]&&(e["!ref"]=l)}i.c||(i.c=[]);var c={a:t.author,t:t.t,r:t.r,T:n};t.h&&(c.h=t.h);for(var u=i.c.length-1;u>=0;--u){if(!n&&i.c[u].T)return;n&&!i.c[u].T&&i.c.splice(u,1)}if(n&&r)for(u=0;u<r.length;++u)if(c.a==r[u].id){c.a=r[u].name||c.a;break}i.c.push(c)}))}var sa=Cn,oa=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function n(e,n,r,i){var a=!1,s=!1;0==r.length?s=!0:"["==r.charAt(0)&&(s=!0,r=r.slice(1,-1)),0==i.length?a=!0:"["==i.charAt(0)&&(a=!0,i=i.slice(1,-1));var o=r.length>0?0|parseInt(r,10):0,l=i.length>0?0|parseInt(i,10):0;return a?l+=t.c:--l,s?o+=t.r:--o,n+(a?"":"$")+bn(l)+(s?"":"$")+vn(o)}return function(r,i){return t=i,r.replace(e,n)}}(),la=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,ca=function(){return function(e,t){return e.replace(la,(function(e,n,r,i,a,s){var o=yn(i)-(r?0:t.c),l=gn(s)-(a?0:t.r);return n+"R"+(0==l?"":a?l+1:"["+l+"]")+"C"+(0==o?"":r?o+1:"["+o+"]")}))}}();function ua(e,t){return e.replace(la,(function(e,n,r,i,a,s){return n+("$"==r?r+i:bn(yn(i)+t.c))+("$"==a?a+s:vn(gn(s)+t.r))}))}function ha(e,t,n){var r=wn(t).s,i=xn(n);return ua(e,{r:i.r-r.r,c:i.c-r.c})}function fa(e){return e.replace(/_xlfn\./g,"")}function da(e){e.l+=1}function pa(e,t){var n=e.read_shift(1==t?1:2);return[16383&n,n>>14&1,n>>15&1]}function ma(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return ga(e);12==n.biff&&(r=4)}var i=e.read_shift(r),a=e.read_shift(r),s=pa(e,2),o=pa(e,2);return{s:{r:i,c:s[0],cRel:s[1],rRel:s[2]},e:{r:a,c:o[0],cRel:o[1],rRel:o[2]}}}function ga(e){var t=pa(e,2),n=pa(e,2),r=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:i,cRel:n[1],rRel:n[2]}}}function va(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return function(e){var t=pa(e,2),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}(e);var r=e.read_shift(n&&12==n.biff?4:2),i=pa(e,2);return{r,c:i[0],cRel:i[1],rRel:i[2]}}function ya(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function ba(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function xa(e){return[e.read_shift(1),e.read_shift(1)]}function _a(e,t){var n=[e.read_shift(1)];if(12==t)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2}switch(n[0]){case 4:n[1]=Sr(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=Jn[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=Hn(e);break;case 2:n[1]=kr(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function wa(e,t,n){for(var r=e.read_shift(12==n.biff?4:2),i=[],a=0;a!=r;++a)i.push((12==n.biff?zn:Br)(e,8));return i}function Ta(e,t,n){var r=0,i=0;12==n.biff?(r=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),r=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,0==--i&&(i=256));for(var a=0,s=[];a!=r&&(s[a]=[]);++a)for(var o=0;o!=i;++o)s[a][o]=_a(e,n.biff);return s}function Sa(e,t,n){return e.l+=2,[ya(e)]}function Ea(e){return e.l+=6,[]}function Ma(e){return e.l+=2,[Er(e),1&e.read_shift(2)]}var Aa=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],Ca={1:{n:"PtgExp",f:function(e,t,n){return e.l++,n&&12==n.biff?[e.read_shift(4,"i"),0]:[e.read_shift(2),e.read_shift(n&&2==n.biff?1:2)]}},2:{n:"PtgTbl",f:ln},3:{n:"PtgAdd",f:da},4:{n:"PtgSub",f:da},5:{n:"PtgMul",f:da},6:{n:"PtgDiv",f:da},7:{n:"PtgPower",f:da},8:{n:"PtgConcat",f:da},9:{n:"PtgLt",f:da},10:{n:"PtgLe",f:da},11:{n:"PtgEq",f:da},12:{n:"PtgGe",f:da},13:{n:"PtgGt",f:da},14:{n:"PtgNe",f:da},15:{n:"PtgIsect",f:da},16:{n:"PtgUnion",f:da},17:{n:"PtgRange",f:da},18:{n:"PtgUplus",f:da},19:{n:"PtgUminus",f:da},20:{n:"PtgPercent",f:da},21:{n:"PtgParen",f:da},22:{n:"PtgMissArg",f:da},23:{n:"PtgStr",f:function(e,t,n){return e.l++,Ar(e,0,n)}},26:{n:"PtgSheet",f:function(e,t,n){return e.l+=5,e.l+=2,e.l+=2==n.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(e,t,n){return e.l+=2==n.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(e){return e.l++,Jn[e.read_shift(1)]}},29:{n:"PtgBool",f:function(e){return e.l++,0!==e.read_shift(1)}},30:{n:"PtgInt",f:function(e){return e.l++,e.read_shift(2)}},31:{n:"PtgNum",f:function(e){return e.l++,Hn(e)}},32:{n:"PtgArray",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=2==n.biff?6:12==n.biff?14:7,[r]}},33:{n:"PtgFunc",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(n&&n.biff<=3?1:2);return[Ya[i],$a[i],r]}},34:{n:"PtgFuncVar",f:function(e,t,n){var r=e[e.l++],i=e.read_shift(1),a=n&&n.biff<=3?[88==r?-1:0,e.read_shift(1)]:function(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}(e);return[i,(0===a[0]?$a:qa)[a[1]]]}},35:{n:"PtgName",f:function(e,t,n){var r=e.read_shift(1)>>>5&3,i=!n||n.biff>=8?4:2,a=e.read_shift(i);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12}return[r,0,a]}},36:{n:"PtgRef",f:function(e,t,n){var r=(96&e[e.l])>>5;return e.l+=1,[r,va(e,0,n)]}},37:{n:"PtgArea",f:function(e,t,n){return[(96&e[e.l++])>>5,ma(e,n.biff>=2&&n.biff,n)]}},38:{n:"PtgMemArea",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=n&&2==n.biff?3:4,[r,e.read_shift(n&&2==n.biff?1:2)]}},39:{n:"PtgMemErr",f:ln},40:{n:"PtgMemNoMem",f:ln},41:{n:"PtgMemFunc",f:function(e,t,n){return[e.read_shift(1)>>>5&3,e.read_shift(n&&2==n.biff?1:2)]}},42:{n:"PtgRefErr",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,12==n.biff&&(e.l+=2),[r]}},43:{n:"PtgAreaErr",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}},44:{n:"PtgRefN",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=function(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return function(e){var t=e.read_shift(2),n=e.read_shift(1),r=(32768&t)>>15,i=(16384&t)>>14;return t&=16383,1==r&&t>=8192&&(t-=16384),1==i&&n>=128&&(n-=256),{r:t,c:n,cRel:i,rRel:r}}(e);var i=e.read_shift(r>=12?4:2),a=e.read_shift(2),s=(16384&a)>>14,o=(32768&a)>>15;if(a&=16383,1==o)for(;i>524287;)i-=1048576;if(1==s)for(;a>8191;)a-=16384;return{r:i,c:a,cRel:s,rRel:o}}(e,0,n);return[r,i]}},45:{n:"PtgAreaN",f:function(e,t,n){var r=(96&e[e.l++])>>5,i=function(e,t,n){if(n.biff<8)return ga(e);var r=e.read_shift(12==n.biff?4:2),i=e.read_shift(12==n.biff?4:2),a=pa(e,2),s=pa(e,2);return{s:{r,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}(e,0,n);return[r,i]}},46:{n:"PtgMemAreaN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},57:{n:"PtgNameX",f:function(e,t,n){return 5==n.biff?function(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,"i");e.l+=8;var r=e.read_shift(2);return e.l+=12,[t,n,r]}(e):[e.read_shift(1)>>>5&3,e.read_shift(2),e.read_shift(4)]}},58:{n:"PtgRef3d",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(2);return n&&5==n.biff&&(e.l+=12),[r,i,va(e,0,n)]}},59:{n:"PtgArea3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2,"i");if(n&&5===n.biff)e.l+=12;return[r,i,ma(e,0,n)]}},60:{n:"PtgRefErr3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),a=4;if(n)switch(n.biff){case 5:a=15;break;case 12:a=6}return e.l+=a,[r,i]}},61:{n:"PtgAreaErr3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),a=8;if(n)switch(n.biff){case 5:e.l+=12,a=6;break;case 12:a=12}return e.l+=a,[r,i]}},255:{}},Ra={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},La={1:{n:"PtgElfLel",f:Ma},2:{n:"PtgElfRw",f:Sa},3:{n:"PtgElfCol",f:Sa},6:{n:"PtgElfRwV",f:Sa},7:{n:"PtgElfColV",f:Sa},10:{n:"PtgElfRadical",f:Sa},11:{n:"PtgElfRadicalS",f:Ea},13:{n:"PtgElfColS",f:Ea},15:{n:"PtgElfColSV",f:Ea},16:{n:"PtgElfRadicalLel",f:Ma},25:{n:"PtgList",f:function(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i=e.read_shift(2),a=e.read_shift(2);return{ixti:t,coltype:3&n,rt:Aa[n>>2&31],idx:r,c:i,C:a}}},29:{n:"PtgSxName",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},ka={0:{n:"PtgAttrNoop",f:function(e){return e.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=n&&2==n.biff?3:4,[r]}},2:{n:"PtgAttrIf",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(e,t,n){e.l+=2;for(var r=e.read_shift(n&&2==n.biff?1:2),i=[],a=0;a<=r;++a)i.push(e.read_shift(n&&2==n.biff?1:2));return i}},8:{n:"PtgAttrGoto",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(e,t,n){e.l+=n&&2==n.biff?3:4}},32:{n:"PtgAttrBaxcel",f:ba},33:{n:"PtgAttrBaxcel",f:ba},64:{n:"PtgAttrSpace",f:function(e){return e.read_shift(2),xa(e)}},65:{n:"PtgAttrSpaceSemi",f:function(e){return e.read_shift(2),xa(e)}},128:{n:"PtgAttrIfError",f:function(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}},255:{}};function Pa(e,t,n,r){if(r.biff<8)return ln(e,t);for(var i=e.l+t,a=[],s=0;s!==n.length;++s)switch(n[s][0]){case"PtgArray":n[s][1]=Ta(e,0,r),a.push(n[s][1]);break;case"PtgMemArea":n[s][2]=wa(e,n[s][1],r),a.push(n[s][2]);break;case"PtgExp":r&&12==r.biff&&(n[s][1][1]=e.read_shift(4),a.push(n[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[s][0]}return 0!=(t=i-e.l)&&a.push(ln(e,t)),a}function Da(e,t,n){for(var r,i,a=e.l+t,s=[];a!=e.l;)t=a-e.l,i=e[e.l],r=Ca[i]||Ca[Ra[i]],24!==i&&25!==i||(r=(24===i?La:ka)[e[e.l+1]]),r&&r.f?s.push([r.n,r.f(e,t,n)]):ln(e,t);return s}function Oa(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n],i=[],a=0;a<r.length;++a){var s=r[a];s?2===s[0]?i.push('"'+s[1].replace(/"/g,'""')+'"'):i.push(s[1]):i.push("")}t.push(i.join(","))}return t.join(";")}var Ia={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Na(e,t,n){if(!e)return"SH33TJSERR0";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var r=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!r)return"SH33TJSERR1";var i="";if(n.biff>8)switch(e[r[0]][0]){case 357:return i=-1==r[1]?"#REF":e.SheetNames[r[1]],r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 358:return null!=n.SID?e.SheetNames[n.SID]:"SH33TJSSAME"+e[r[0]][0];default:return"SH33TJSSRC"+e[r[0]][0]}switch(e[r[0]][0][0]){case 1025:return i=-1==r[1]?"#REF":e.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 14849:return e[r[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[r[0]][0][3]?(i=-1==r[1]?"#REF":e[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?i:i+":"+e[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function Fa(e,t,n){var r=Na(e,t,n);return"#REF"==r?r:function(e,t){if(!(e||t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}(r,n)}function Ba(e,t,n,r,i){var a,s,o,l,c=i&&i.biff||8,u={s:{c:0,r:0},e:{c:0,r:0}},h=[],f=0,d=0,p="";if(!e[0]||!e[0][0])return"";for(var m=-1,g="",v=0,y=e[0].length;v<y;++v){var b=e[0][v];switch(b[0]){case"PtgUminus":h.push("-"+h.pop());break;case"PtgUplus":h.push("+"+h.pop());break;case"PtgPercent":h.push(h.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(a=h.pop(),s=h.pop(),m>=0){switch(e[0][m][1][0]){case 0:g=Fe(" ",e[0][m][1][1]);break;case 1:g=Fe("\r",e[0][m][1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}s+=g,m=-1}h.push(s+Ia[b[0]]+a);break;case"PtgIsect":a=h.pop(),s=h.pop(),h.push(s+" "+a);break;case"PtgUnion":a=h.pop(),s=h.pop(),h.push(s+","+a);break;case"PtgRange":a=h.pop(),s=h.pop(),h.push(s+":"+a);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":o=fn(b[1][1],u,i),h.push(pn(o,c));break;case"PtgRefN":o=n?fn(b[1][1],n,i):b[1][1],h.push(pn(o,c));break;case"PtgRef3d":f=b[1][1],o=fn(b[1][2],u,i),p=Fa(r,f,i),h.push(p+"!"+pn(o,c));break;case"PtgFunc":case"PtgFuncVar":var x=b[1][0],_=b[1][1];x||(x=0);var w=0==(x&=127)?[]:h.slice(-x);h.length-=x,"User"===_&&(_=w.shift()),h.push(_+"("+w.join(",")+")");break;case"PtgBool":h.push(b[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":h.push(b[1]);break;case"PtgNum":h.push(String(b[1]));break;case"PtgStr":h.push('"'+b[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":l=dn(b[1][1],n?{s:n}:u,i),h.push(mn(l,i));break;case"PtgArea":l=dn(b[1][1],u,i),h.push(mn(l,i));break;case"PtgArea3d":f=b[1][1],l=b[1][2],p=Fa(r,f,i),h.push(p+"!"+mn(l,i));break;case"PtgAttrSum":h.push("SUM("+h.pop()+")");break;case"PtgName":d=b[1][2];var T=(r.names||[])[d-1]||(r[0]||[])[d],S=T?T.Name:"SH33TJSNAME"+String(d);S&&"_xlfn."==S.slice(0,6)&&!i.xlfn&&(S=S.slice(6)),h.push(S);break;case"PtgNameX":var E,M=b[1][1];if(d=b[1][2],!(i.biff<=5)){var A="";if(14849==((r[M]||[])[0]||[])[0]||(1025==((r[M]||[])[0]||[])[0]?r[M][d]&&r[M][d].itab>0&&(A=r.SheetNames[r[M][d].itab-1]+"!"):A=r.SheetNames[d-1]+"!"),r[M]&&r[M][d])A+=r[M][d].Name;else if(r[0]&&r[0][d])A+=r[0][d].Name;else{var C=(Na(r,M,i)||"").split(";;");C[d-1]?A=C[d-1]:A+="SH33TJSERRX"}h.push(A);break}M<0&&(M=-M),r[M]&&(E=r[M][d]),E||(E={Name:"SH33TJSERRY"}),h.push(E.Name);break;case"PtgParen":var R="(",L=")";if(m>=0){switch(g="",e[0][m][1][0]){case 2:R=Fe(" ",e[0][m][1][1])+R;break;case 3:R=Fe("\r",e[0][m][1][1])+R;break;case 4:L=Fe(" ",e[0][m][1][1])+L;break;case 5:L=Fe("\r",e[0][m][1][1])+L;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}h.push(R+h.pop()+L);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":h.push("#REF!");break;case"PtgExp":o={c:b[1][1],r:b[1][0]};var k={c:n.c,r:n.r};if(r.sharedf[_n(o)]){var P=r.sharedf[_n(o)];h.push(Ba(P,0,k,r,i))}else{var D=!1;for(a=0;a!=r.arrayf.length;++a)if(s=r.arrayf[a],!(o.c<s[0].s.c||o.c>s[0].e.c||o.r<s[0].s.r||o.r>s[0].e.r)){h.push(Ba(s[1],0,k,r,i)),D=!0;break}D||h.push(b[1])}break;case"PtgArray":h.push("{"+Oa(b[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=v;break;case"PtgMissArg":h.push("");break;case"PtgList":h.push("Table"+b[1].idx+"[#"+b[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(b))}if(3!=i.biff&&m>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(e[0][v][0])){var O=!0;switch((b=e[0][m])[1][0]){case 4:O=!1;case 0:g=Fe(" ",b[1][1]);break;case 5:O=!1;case 1:g=Fe("\r",b[1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[1][0])}h.push((O?g:"")+h.pop()+(O?"":g)),m=-1}}if(h.length>1&&i.WTF)throw new Error("bad formula stack");return h[0]}function Ua(e,t,n){var r,i=e.l+t,a=2==n.biff?1:2,s=e.read_shift(a);if(65535==s)return[[],ln(e,t-2)];var o=Da(e,s,n);return t!==s+a&&(r=Pa(e,t-s-a,o,n)),e.l=i,[o,r]}function za(e,t,n){var r,i=e.l+t,a=e.read_shift(2),s=Da(e,a,n);return 65535==a?[[],ln(e,t-2)]:(t!==a+2&&(r=Pa(e,i-a-2,s,n)),[s,r])}function Ha(e,t,n){var r=e.l+t,i=Ir(e);2==n.biff&&++e.l;var a=function(e){var t;if(65535!==Jt(e,e.l+6))return[Hn(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=1===e[e.l+2],e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}(e),s=e.read_shift(1);2!=n.biff&&(e.read_shift(1),n.biff>=5&&e.read_shift(4));var o=function(e,t,n){var r,i=e.l+t,a=2==n.biff?1:2,s=e.read_shift(a);if(65535==s)return[[],ln(e,t-2)];var o=Da(e,s,n);return t!==s+a&&(r=Pa(e,t-s-a,o,n)),e.l=i,[o,r]}(e,r-e.l,n);return{cell:i,val:a[0],formula:o,shared:s>>3&1,tt:a[1]}}function Va(e,t,n){var r=e.read_shift(4),i=Da(e,r,n),a=e.read_shift(4);return[i,a>0?Pa(e,a,i,n):null]}var Ga=Va,Wa=Va,ja=Va,Xa=Va,qa={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},$a={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Ya={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Za(e){return"of:"==e.slice(0,3)&&(e=e.slice(3)),61==e.charCodeAt(0)&&61==(e=e.slice(1)).charCodeAt(0)&&(e=e.slice(1)),(e=(e=(e=e.replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,(function(e,t){return t.replace(/\./g,"")}))).replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function Ja(e){var t=e.split(":");return[t[0].split(".")[0],t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}var Ka={},Qa={};function es(e,t){if(e){var n=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(n=[1,1,1,1,.5,.5]),null==e.left&&(e.left=n[0]),null==e.right&&(e.right=n[1]),null==e.top&&(e.top=n[2]),null==e.bottom&&(e.bottom=n[3]),null==e.header&&(e.header=n[4]),null==e.footer&&(e.footer=n[5])}}function ts(e,t,n,r,i,a){try{r.cellNF&&(e.z=B[t])}catch(e){if(r.WTF)throw e}if("z"!==e.t||r.cellStyles){if("d"===e.t&&"string"==typeof e.v&&(e.v=Oe(e.v)),(!r||!1!==r.cellText)&&"z"!==e.t)try{if(null==B[t]&&ge(ye[t]||"General",t),"e"===e.t)e.w=e.w||Jn[e.v];else if(0===t)if("n"===e.t)(0|e.v)===e.v?e.w=e.v.toString(10):e.w=$(e.v);else if("d"===e.t){var s=Ee(e.v);e.w=(0|s)===s?s.toString(10):$(s)}else{if(void 0===e.v)return"";e.w=Y(e.v,Qa)}else"d"===e.t?e.w=me(t,Ee(e.v),Qa):e.w=me(t,e.v,Qa)}catch(e){if(r.WTF)throw e}if(r.cellStyles&&null!=n)try{e.s=a.Fills[n],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=Di(i.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),r.WTF&&(e.s.fgColor.raw_rgb=i.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=Di(i.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),r.WTF&&(e.s.bgColor.raw_rgb=i.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(e){if(r.WTF&&a.Fills)throw e}}}var ns=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,rs=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,is=/<(?:\w:)?hyperlink [^>]*>/gm,as=/"(\w*:\w*)"/,ss=/<(?:\w:)?col\b[^>]*[\/]?>/g,os=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,ls=/<(?:\w:)?pageMargins[^>]*\/>/g,cs=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,us=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,hs=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function fs(e,t,n,r){var i=it(e);n.Sheets[r]||(n.Sheets[r]={}),i.codeName&&(n.Sheets[r].CodeName=lt(yt(i.codeName)))}var ds=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/,ps=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,n=/r=["']([^"']*)["']/,r=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,a=xt("v"),s=xt("f");return function(o,l,c,u,h,f){for(var d,p,m,g,v,y=0,b="",x=[],_=[],w=0,T=0,S=0,E="",M=0,A=0,C=0,R=0,L=Array.isArray(f.CellXf),k=[],P=[],D=Array.isArray(l),O=[],I={},N=!1,F=!!c.sheetStubs,U=o.split(t),z=0,H=U.length;z!=H;++z){var V=(b=U[z].trim()).length;if(0!==V){var G=0;e:for(y=0;y<V;++y)switch(b[y]){case">":if("/"!=b[y-1]){++y;break e}if(c&&c.cellStyles){if(M=null!=(p=it(b.slice(G,y),!0)).r?parseInt(p.r,10):M+1,A=-1,c.sheetRows&&c.sheetRows<M)continue;I={},N=!1,p.ht&&(N=!0,I.hpt=parseFloat(p.ht),I.hpx=Vi(I.hpt)),"1"==p.hidden&&(N=!0,I.hidden=!0),null!=p.outlineLevel&&(N=!0,I.level=+p.outlineLevel),N&&(O[M-1]=I)}break;case"<":G=y}if(G>=y)break;if(M=null!=(p=it(b.slice(G,y),!0)).r?parseInt(p.r,10):M+1,A=-1,!(c.sheetRows&&c.sheetRows<M)){u.s.r>M-1&&(u.s.r=M-1),u.e.r<M-1&&(u.e.r=M-1),c&&c.cellStyles&&(I={},N=!1,p.ht&&(N=!0,I.hpt=parseFloat(p.ht),I.hpx=Vi(I.hpt)),"1"==p.hidden&&(N=!0,I.hidden=!0),null!=p.outlineLevel&&(N=!0,I.level=+p.outlineLevel),N&&(O[M-1]=I)),x=b.slice(y).split(e);for(var W=0;W!=x.length&&"<"==x[W].trim().charAt(0);++W);for(x=x.slice(W),y=0;y!=x.length;++y)if(0!==(b=x[y].trim()).length){if(_=b.match(n),w=y,T=0,S=0,b="<c "+("<"==b.slice(0,1)?">":"")+b,null!=_&&2===_.length){for(w=0,E=_[1],T=0;T!=E.length&&!((S=E.charCodeAt(T)-64)<1||S>26);++T)w=26*w+S;A=--w}else++A;for(T=0;T!=b.length&&62!==b.charCodeAt(T);++T);if(++T,(p=it(b.slice(0,T),!0)).r||(p.r=_n({r:M-1,c:A})),d={t:""},null!=(_=(E=b.slice(T)).match(a))&&""!==_[1]&&(d.v=lt(_[1])),c.cellFormula){if(null!=(_=E.match(s))&&""!==_[1]){if(d.f=lt(yt(_[1])).replace(/\r\n/g,"\n"),c.xlfn||(d.f=fa(d.f)),_[0].indexOf('t="array"')>-1)d.F=(E.match(i)||[])[1],d.F.indexOf(":")>-1&&k.push([Sn(d.F),d.F]);else if(_[0].indexOf('t="shared"')>-1){g=it(_[0]);var j=lt(yt(_[1]));c.xlfn||(j=fa(j)),P[parseInt(g.si,10)]=[g,j,p.r]}}else(_=E.match(/<f[^>]*\/>/))&&P[(g=it(_[0])).si]&&(d.f=ha(P[g.si][1],P[g.si][2],p.r));var X=xn(p.r);for(T=0;T<k.length;++T)X.r>=k[T][0].s.r&&X.r<=k[T][0].e.r&&X.c>=k[T][0].s.c&&X.c<=k[T][0].e.c&&(d.F=k[T][1])}if(null==p.t&&void 0===d.v)if(d.f||d.F)d.v=0,d.t="n";else{if(!F)continue;d.t="z"}else d.t=p.t||"n";switch(u.s.c>A&&(u.s.c=A),u.e.c<A&&(u.e.c=A),d.t){case"n":if(""==d.v||null==d.v){if(!F)continue;d.t="z"}else d.v=parseFloat(d.v);break;case"s":if(void 0===d.v){if(!F)continue;d.t="z"}else m=Ka[parseInt(d.v,10)],d.v=m.t,d.r=m.r,c.cellHTML&&(d.h=m.h);break;case"str":d.t="s",d.v=null!=d.v?yt(d.v):"",c.cellHTML&&(d.h=ht(d.v));break;case"inlineStr":_=E.match(r),d.t="s",null!=_&&(m=yi(_[1]))?(d.v=m.t,c.cellHTML&&(d.h=m.h)):d.v="";break;case"b":d.v=dt(d.v);break;case"d":c.cellDates?d.v=Oe(d.v,1):(d.v=Ee(Oe(d.v,1)),d.t="n");break;case"e":c&&!1===c.cellText||(d.w=d.v),d.v=Kn[d.v]}if(C=R=0,v=null,L&&void 0!==p.s&&null!=(v=f.CellXf[p.s])&&(null!=v.numFmtId&&(C=v.numFmtId),c.cellStyles&&null!=v.fillId&&(R=v.fillId)),ts(d,C,R,c,h,f),c.cellDates&&L&&"n"==d.t&&fe(B[C])&&(d.t="d",d.v=Re(d.v)),p.cm&&c.xlmeta){var q=(c.xlmeta.Cell||[])[+p.cm-1];q&&"XLDAPR"==q.type&&(d.D=!0)}if(D){var $=xn(p.r);l[$.r]||(l[$.r]=[]),l[$.r][$.c]=d}else l[p.r]=d}}}}O.length>0&&(l["!rows"]=O)}}(),ms=zn;function gs(e){return[Dn(e),Hn(e),"n"]}var vs=zn,ys=["left","right","top","bottom","header","footer"];var bs=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],xs=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],_s=[],ws=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function Ts(e,t){for(var n=0;n!=e.length;++n)for(var r=e[n],i=0;i!=t.length;++i){var a=t[i];if(null==r[a[0]])r[a[0]]=a[1];else switch(a[2]){case"bool":"string"==typeof r[a[0]]&&(r[a[0]]=dt(r[a[0]]));break;case"int":"string"==typeof r[a[0]]&&(r[a[0]]=parseInt(r[a[0]],10))}}}function Ss(e,t){for(var n=0;n!=t.length;++n){var r=t[n];if(null==e[r[0]])e[r[0]]=r[1];else switch(r[2]){case"bool":"string"==typeof e[r[0]]&&(e[r[0]]=dt(e[r[0]]));break;case"int":"string"==typeof e[r[0]]&&(e[r[0]]=parseInt(e[r[0]],10))}}}function Es(e){Ss(e.WBProps,bs),Ss(e.CalcPr,ws),Ts(e.WBView,xs),Ts(e.Sheets,_s),Qa.date1904=dt(e.WBProps.date1904)}var Ms="][*?/\\".split("");var As=/<\w+:workbook/;function Cs(e,t){var n={};return e.read_shift(4),n.ArchID=e.read_shift(4),e.l+=t-8,n}function Rs(e,t,n,r,i,a,s,o){return".bin"===t.slice(-4)?function(e,t,n,r,i,a,s){if(!e)return e;var o=t||{};r||(r={"!id":{}});var l,c,u,h,f,d,p,m,g,v,y=o.dense?[]:{},b={s:{r:2e6,c:2e6},e:{r:0,c:0}},x=[],_=!1,w=!1,T=[];o.biff=12,o["!row"]=0;var S=0,E=!1,M=[],A={},C=o.supbooks||i.supbooks||[[]];if(C.sharedf=A,C.arrayf=M,C.SheetNames=i.SheetNames||i.Sheets.map((function(e){return e.name})),!o.supbooks&&(o.supbooks=C,i.Names))for(var R=0;R<i.Names.length;++R)C[0][R+1]=i.Names[R];var L,k,P=[],D=[],O=!1;if(Xs[16]={n:"BrtShortReal",f:gs},un(e,(function(e,t,R){if(!w)switch(R){case 148:l=e;break;case 0:c=e,o.sheetRows&&o.sheetRows<=c.r&&(w=!0),g=vn(f=c.r),o["!row"]=c.r,(e.hidden||e.hpt||null!=e.level)&&(e.hpt&&(e.hpx=Vi(e.hpt)),D[e.r]=e);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(u={t:e[2]},e[2]){case"n":u.v=e[1];break;case"s":m=Ka[e[1]],u.v=m.t,u.r=m.r;break;case"b":u.v=!!e[1];break;case"e":u.v=e[1],!1!==o.cellText&&(u.w=Jn[u.v]);break;case"str":u.t="s",u.v=e[1];break;case"is":u.t="s",u.v=e[1].t}if((h=s.CellXf[e[0].iStyleRef])&&ts(u,h.numFmtId,null,o,a,s),d=-1==e[0].c?d+1:e[0].c,o.dense?(y[f]||(y[f]=[]),y[f][d]=u):y[bn(d)+g]=u,o.cellFormula){for(E=!1,S=0;S<M.length;++S){var I=M[S];c.r>=I[0].s.r&&c.r<=I[0].e.r&&d>=I[0].s.c&&d<=I[0].e.c&&(u.F=Tn(I[0]),E=!0)}!E&&e.length>3&&(u.f=e[3])}if(b.s.r>c.r&&(b.s.r=c.r),b.s.c>d&&(b.s.c=d),b.e.r<c.r&&(b.e.r=c.r),b.e.c<d&&(b.e.c=d),o.cellDates&&h&&"n"==u.t&&fe(B[h.numFmtId])){var N=V(u.v);N&&(u.t="d",u.v=new Date(N.y,N.m-1,N.d,N.H,N.M,N.S,N.u))}L&&("XLDAPR"==L.type&&(u.D=!0),L=void 0),k&&(k=void 0);break;case 1:case 12:if(!o.sheetStubs||_)break;u={t:"z",v:void 0},d=-1==e[0].c?d+1:e[0].c,o.dense?(y[f]||(y[f]=[]),y[f][d]=u):y[bn(d)+g]=u,b.s.r>c.r&&(b.s.r=c.r),b.s.c>d&&(b.s.c=d),b.e.r<c.r&&(b.e.r=c.r),b.e.c<d&&(b.e.c=d),L&&("XLDAPR"==L.type&&(u.D=!0),L=void 0),k&&(k=void 0);break;case 176:T.push(e);break;case 49:L=((o.xlmeta||{}).Cell||[])[e-1];break;case 494:var F=r["!id"][e.relId];for(F?(e.Target=F.Target,e.loc&&(e.Target+="#"+e.loc),e.Rel=F):""==e.relId&&(e.Target="#"+e.loc),f=e.rfx.s.r;f<=e.rfx.e.r;++f)for(d=e.rfx.s.c;d<=e.rfx.e.c;++d)o.dense?(y[f]||(y[f]=[]),y[f][d]||(y[f][d]={t:"z",v:void 0}),y[f][d].l=e):(p=_n({c:d,r:f}),y[p]||(y[p]={t:"z",v:void 0}),y[p].l=e);break;case 426:if(!o.cellFormula)break;M.push(e),(v=o.dense?y[f][d]:y[bn(d)+g]).f=Ba(e[1],0,{r:c.r,c:d},C,o),v.F=Tn(e[0]);break;case 427:if(!o.cellFormula)break;A[_n(e[0].s)]=e[1],(v=o.dense?y[f][d]:y[bn(d)+g]).f=Ba(e[1],0,{r:c.r,c:d},C,o);break;case 60:if(!o.cellStyles)break;for(;e.e>=e.s;)P[e.e--]={width:e.w/256,hidden:!!(1&e.flags),level:e.level},O||(O=!0,Ui(e.w/256)),zi(P[e.e+1]);break;case 161:y["!autofilter"]={ref:Tn(e)};break;case 476:y["!margins"]=e;break;case 147:i.Sheets[n]||(i.Sheets[n]={}),e.name&&(i.Sheets[n].CodeName=e.name),(e.above||e.left)&&(y["!outline"]={above:e.above,left:e.left});break;case 137:i.Views||(i.Views=[{}]),i.Views[0]||(i.Views[0]={}),e.RTL&&(i.Views[0].RTL=!0);break;case 485:case 64:case 1053:case 151:case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:_=!0;break;case 36:_=!1;break;case 37:x.push(R),_=!0;break;case 38:x.pop(),_=!1;break;default:if(t.T);else if(!_||o.WTF)throw new Error("Unexpected record 0x"+R.toString(16))}}),o),delete o.supbooks,delete o["!row"],!y["!ref"]&&(b.s.r<2e6||l&&(l.e.r>0||l.e.c>0||l.s.r>0||l.s.c>0))&&(y["!ref"]=Tn(l||b)),o.sheetRows&&y["!ref"]){var I=Sn(y["!ref"]);o.sheetRows<=+I.e.r&&(I.e.r=o.sheetRows-1,I.e.r>b.e.r&&(I.e.r=b.e.r),I.e.r<I.s.r&&(I.s.r=I.e.r),I.e.c>b.e.c&&(I.e.c=b.e.c),I.e.c<I.s.c&&(I.s.c=I.e.c),y["!fullref"]=y["!ref"],y["!ref"]=Tn(I))}return T.length>0&&(y["!merges"]=T),P.length>0&&(y["!cols"]=P),D.length>0&&(y["!rows"]=D),y}(e,r,n,i,a,s,o):function(e,t,n,r,i,a,s){if(!e)return e;r||(r={"!id":{}});var o=t.dense?[]:{},l={s:{r:2e6,c:2e6},e:{r:0,c:0}},c="",u="",h=e.match(rs);h?(c=e.slice(0,h.index),u=e.slice(h.index+h[0].length)):c=u=e;var f=c.match(cs);f?fs(f[0],0,i,n):(f=c.match(us))&&function(e,t,n,r,i){fs(e.slice(0,e.indexOf(">")),0,r,i)}(f[0],f[1],0,i,n);var d=(c.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var p=c.slice(d,d+50).match(as);p&&function(e,t){var n=Sn(t);n.s.r<=n.e.r&&n.s.c<=n.e.c&&n.s.r>=0&&n.s.c>=0&&(e["!ref"]=Tn(n))}(o,p[1])}var m=c.match(hs);m&&m[1]&&function(e,t){t.Views||(t.Views=[{}]),(e.match(ds)||[]).forEach((function(e,n){var r=it(e);t.Views[n]||(t.Views[n]={}),+r.zoomScale&&(t.Views[n].zoom=+r.zoomScale),dt(r.rightToLeft)&&(t.Views[n].RTL=!0)}))}(m[1],i);var g=[];if(t.cellStyles){var v=c.match(ss);v&&function(e,t){for(var n=!1,r=0;r!=t.length;++r){var i=it(t[r],!0);i.hidden&&(i.hidden=dt(i.hidden));var a=parseInt(i.min,10)-1,s=parseInt(i.max,10)-1;for(i.outlineLevel&&(i.level=+i.outlineLevel||0),delete i.min,delete i.max,i.width=+i.width,!n&&i.width&&(n=!0,Ui(i.width)),zi(i);a<=s;)e[a++]=Ne(i)}}(g,v)}h&&ps(h[1],o,t,l,a,s);var y=u.match(os);y&&(o["!autofilter"]=function(e){return{ref:(e.match(/ref="([^"]*)"/)||[])[1]}}(y[0]));var b=[],x=u.match(ns);if(x)for(d=0;d!=x.length;++d)b[d]=Sn(x[d].slice(x[d].indexOf('"')+1));var _=u.match(is);_&&function(e,t,n){for(var r=Array.isArray(e),i=0;i!=t.length;++i){var a=it(yt(t[i]),!0);if(!a.ref)return;var s=((n||{})["!id"]||[])[a.id];s?(a.Target=s.Target,a.location&&(a.Target+="#"+lt(a.location))):(a.Target="#"+lt(a.location),s={Target:a.Target,TargetMode:"Internal"}),a.Rel=s,a.tooltip&&(a.Tooltip=a.tooltip,delete a.tooltip);for(var o=Sn(a.ref),l=o.s.r;l<=o.e.r;++l)for(var c=o.s.c;c<=o.e.c;++c){var u=_n({c,r:l});r?(e[l]||(e[l]=[]),e[l][c]||(e[l][c]={t:"z",v:void 0}),e[l][c].l=a):(e[u]||(e[u]={t:"z",v:void 0}),e[u].l=a)}}}(o,_,r);var w,T,S=u.match(ls);if(S&&(o["!margins"]=(w=it(S[0]),T={},["left","right","top","bottom","header","footer"].forEach((function(e){w[e]&&(T[e]=parseFloat(w[e]))})),T)),!o["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r&&(o["!ref"]=Tn(l)),t.sheetRows>0&&o["!ref"]){var E=Sn(o["!ref"]);t.sheetRows<=+E.e.r&&(E.e.r=t.sheetRows-1,E.e.r>l.e.r&&(E.e.r=l.e.r),E.e.r<E.s.r&&(E.s.r=E.e.r),E.e.c>l.e.c&&(E.e.c=l.e.c),E.e.c<E.s.c&&(E.s.c=E.e.c),o["!fullref"]=o["!ref"],o["!ref"]=Tn(E))}return g.length>0&&(o["!cols"]=g),b.length>0&&(o["!merges"]=b),o}(e,r,n,i,a,s,o)}var Ls,ks=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,Ps=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function Ds(e,t){var n=e.split(/\s+/),r=[];if(t||(r[0]=n[0]),1===n.length)return r;var i,a,s,o=e.match(ks);if(o)for(s=0;s!=o.length;++s)-1===(a=(i=o[s].match(Ps))[1].indexOf(":"))?r[i[1]]=i[2].slice(1,i[2].length-1):r["xmlns:"===i[1].slice(0,6)?"xmlns"+i[1].slice(6):i[1].slice(a+1)]=i[2].slice(1,i[2].length-1);return r}function Os(e){var t={};if(1===e.split(/\s+/).length)return t;var n,r,i,a=e.match(ks);if(a)for(i=0;i!=a.length;++i)-1===(r=(n=a[i].match(Ps))[1].indexOf(":"))?t[n[1]]=n[2].slice(1,n[2].length-1):t["xmlns:"===n[1].slice(0,6)?"xmlns"+n[1].slice(6):n[1].slice(r+1)]=n[2].slice(1,n[2].length-1);return t}function Is(e,t,n,r){var i=r;switch((n[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":i=dt(r);break;case"i2":case"int":i=parseInt(r,10);break;case"r4":case"float":i=parseFloat(r);break;case"date":case"dateTime.tz":i=Oe(r);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+n[0])}e[lt(t)]=i}function Ns(e,t,n){if(n.cellStyles&&t.Interior){var r=t.Interior;r.Pattern&&(r.patternType=Gi[r.Pattern]||r.Pattern)}e[t.ID]=t}function Fs(e,t,n,r,i,a,s,o,l,c){var u="General",h=r.StyleID,f={};c=c||{};var d=[],p=0;for(void 0===h&&o&&(h=o.StyleID),void 0===h&&s&&(h=s.StyleID);void 0!==a[h]&&(a[h].nf&&(u=a[h].nf),a[h].Interior&&d.push(a[h].Interior),a[h].Parent);)h=a[h].Parent;switch(n.Type){case"Boolean":r.t="b",r.v=dt(e);break;case"String":r.t="s",r.r=ft(lt(e)),r.v=e.indexOf("<")>-1?lt(t||e).replace(/<.*?>/g,""):r.r;break;case"DateTime":"Z"!=e.slice(-1)&&(e+="Z"),r.v=(Oe(e)-new Date(Date.UTC(1899,11,30)))/864e5,r.v!=r.v?r.v=lt(e):r.v<60&&(r.v=r.v-1),u&&"General"!=u||(u="yyyy-mm-dd");case"Number":void 0===r.v&&(r.v=+e),r.t||(r.t="n");break;case"Error":r.t="e",r.v=Kn[e],!1!==c.cellText&&(r.w=e);break;default:""==e&&""==t?r.t="z":(r.t="s",r.v=ft(t||e))}if(function(e,t,n){if("z"!==e.t){if(!n||!1!==n.cellText)try{"e"===e.t?e.w=e.w||Jn[e.v]:"General"===t?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=$(e.v):e.w=Y(e.v):e.w=(r=t||"General",i=e.v,"General"===(a=Ls[r]||lt(r))?Y(i):me(a,i))}catch(e){if(n.WTF)throw e}var r,i,a;try{var s=Ls[t]||t||"General";if(n.cellNF&&(e.z=s),n.cellDates&&"n"==e.t&&fe(s)){var o=V(e.v);o&&(e.t="d",e.v=new Date(o.y,o.m-1,o.d,o.H,o.M,o.S,o.u))}}catch(e){if(n.WTF)throw e}}}(r,u,c),!1!==c.cellFormula)if(r.Formula){var m=lt(r.Formula);61==m.charCodeAt(0)&&(m=m.slice(1)),r.f=oa(m,i),delete r.Formula,"RC"==r.ArrayRange?r.F=oa("RC:RC",i):r.ArrayRange&&(r.F=oa(r.ArrayRange,i),l.push([Sn(r.F),r.F]))}else for(p=0;p<l.length;++p)i.r>=l[p][0].s.r&&i.r<=l[p][0].e.r&&i.c>=l[p][0].s.c&&i.c<=l[p][0].e.c&&(r.F=l[p][1]);c.cellStyles&&(d.forEach((function(e){!f.patternType&&e.patternType&&(f.patternType=e.patternType)})),r.s=f),void 0!==r.StyleID&&(r.ixfe=r.StyleID)}function Bs(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.v=e.w=e.ixfe=void 0}function Us(e,t){var n=t||{};ve();var r=d(Mt(e));"binary"!=n.type&&"array"!=n.type&&"base64"!=n.type||(r=yt(r));var i,a=r.slice(0,1024).toLowerCase(),s=!1;if((1023&(a=a.replace(/".*?"/g,"")).indexOf(">"))>Math.min(1023&a.indexOf(","),1023&a.indexOf(";"))){var o=Ne(n);return o.type="string",hi.to_workbook(r,o)}if(-1==a.indexOf("<?xml")&&["html","table","head","meta","script","style","div"].forEach((function(e){a.indexOf("<"+e)>=0&&(s=!0)})),s)return function(e,t){var n=e.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!n||0==n.length)throw new Error("Invalid HTML: could not find <table>");if(1==n.length)return Mn(Ys(n[0],t),t);var r={SheetNames:[],Sheets:{}};return n.forEach((function(e,n){Eo(r,Ys(e,t),"Sheet"+(n+1))})),r}(r,n);Ls={"General Number":"General","General Date":B[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":B[15],"Short Date":B[14],"Long Time":B[19],"Medium Time":B[18],"Short Time":B[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:B[2],Standard:B[4],Percent:B[10],Scientific:B[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var l,c,u=[],h={},f=[],p=n.dense?[]:{},m="",g={},v={},y=Ds('<Data ss:Type="String">'),b=0,x=0,_=0,w={s:{r:2e6,c:2e6},e:{r:0,c:0}},T={},S={},E="",M=0,A=[],C={},R={},L=0,k=[],P=[],D={},O=[],I=!1,N=[],F=[],U={},z=0,H=0,V={Sheets:[],WBProps:{date1904:!1}},G={};At.lastIndex=0,r=r.replace(/<!--([\s\S]*?)-->/gm,"");for(var W="";i=At.exec(r);)switch(i[3]=(W=i[3]).toLowerCase()){case"data":if("data"==W){if("/"===i[1]){if((l=u.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&u.push([i[3],!0]);break}if(u[u.length-1][1])break;"/"===i[1]?Fs(r.slice(b,i.index),E,y,"comment"==u[u.length-1][0]?D:g,{c:x,r:_},T,O[x],v,N,n):(E="",y=Ds(i[0]),b=i.index+i[0].length);break;case"cell":if("/"===i[1])if(P.length>0&&(g.c=P),(!n.sheetRows||n.sheetRows>_)&&void 0!==g.v&&(n.dense?(p[_]||(p[_]=[]),p[_][x]=g):p[bn(x)+vn(_)]=g),g.HRef&&(g.l={Target:lt(g.HRef)},g.HRefScreenTip&&(g.l.Tooltip=g.HRefScreenTip),delete g.HRef,delete g.HRefScreenTip),(g.MergeAcross||g.MergeDown)&&(z=x+(0|parseInt(g.MergeAcross,10)),H=_+(0|parseInt(g.MergeDown,10)),A.push({s:{c:x,r:_},e:{c:z,r:H}})),n.sheetStubs)if(g.MergeAcross||g.MergeDown){for(var j=x;j<=z;++j)for(var X=_;X<=H;++X)(j>x||X>_)&&(n.dense?(p[X]||(p[X]=[]),p[X][j]={t:"z"}):p[bn(j)+vn(X)]={t:"z"});x=z+1}else++x;else g.MergeAcross?x=z+1:++x;else(g=Os(i[0])).Index&&(x=+g.Index-1),x<w.s.c&&(w.s.c=x),x>w.e.c&&(w.e.c=x),"/>"===i[0].slice(-2)&&++x,P=[];break;case"row":"/"===i[1]||"/>"===i[0].slice(-2)?(_<w.s.r&&(w.s.r=_),_>w.e.r&&(w.e.r=_),"/>"===i[0].slice(-2)&&(v=Ds(i[0])).Index&&(_=+v.Index-1),x=0,++_):((v=Ds(i[0])).Index&&(_=+v.Index-1),U={},("0"==v.AutoFitHeight||v.Height)&&(U.hpx=parseInt(v.Height,10),U.hpt=Hi(U.hpx),F[_]=U),"1"==v.Hidden&&(U.hidden=!0,F[_]=U));break;case"worksheet":if("/"===i[1]){if((l=u.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"));f.push(m),w.s.r<=w.e.r&&w.s.c<=w.e.c&&(p["!ref"]=Tn(w),n.sheetRows&&n.sheetRows<=w.e.r&&(p["!fullref"]=p["!ref"],w.e.r=n.sheetRows-1,p["!ref"]=Tn(w))),A.length&&(p["!merges"]=A),O.length>0&&(p["!cols"]=O),F.length>0&&(p["!rows"]=F),h[m]=p}else w={s:{r:2e6,c:2e6},e:{r:0,c:0}},_=x=0,u.push([i[3],!1]),l=Ds(i[0]),m=lt(l.Name),p=n.dense?[]:{},A=[],N=[],F=[],G={name:m,Hidden:0},V.Sheets.push(G);break;case"table":if("/"===i[1]){if((l=u.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else{if("/>"==i[0].slice(-2))break;u.push([i[3],!1]),O=[],I=!1}break;case"style":"/"===i[1]?Ns(T,S,n):S=Ds(i[0]);break;case"numberformat":S.nf=lt(Ds(i[0]).Format||"General"),Ls[S.nf]&&(S.nf=Ls[S.nf]);for(var q=0;392!=q&&B[q]!=S.nf;++q);if(392==q)for(q=57;392!=q;++q)if(null==B[q]){ge(S.nf,q);break}break;case"column":if("table"!==u[u.length-1][0])break;if((c=Ds(i[0])).Hidden&&(c.hidden=!0,delete c.Hidden),c.Width&&(c.wpx=parseInt(c.Width,10)),!I&&c.wpx>10){I=!0,Oi=6;for(var $=0;$<O.length;++$)O[$]&&zi(O[$])}I&&zi(c),O[c.Index-1||O.length]=c;for(var Y=0;Y<+c.Span;++Y)O[O.length]=Ne(c);break;case"namedrange":if("/"===i[1])break;V.Names||(V.Names=[]);var Z=it(i[0]),J={Name:Z.Name,Ref:oa(Z.RefersTo.slice(1),{r:0,c:0})};V.Sheets.length>0&&(J.Sheet=V.Sheets.length-1),V.Names.push(J);break;case"namedcell":case"b":case"i":case"u":case"s":case"em":case"h2":case"h3":case"sub":case"sup":case"span":case"alignment":case"borders":case"border":case"protection":case"paragraphs":case"name":case"pixelsperinch":case"null":break;case"font":if("/>"===i[0].slice(-2))break;"/"===i[1]?E+=r.slice(M,i.index):M=i.index+i[0].length;break;case"interior":if(!n.cellStyles)break;S.Interior=Ds(i[0]);break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if("/>"===i[0].slice(-2))break;"/"===i[1]?hr(C,W,r.slice(L,i.index)):L=i.index+i[0].length;break;case"styles":case"workbook":if("/"===i[1]){if((l=u.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else u.push([i[3],!1]);break;case"comment":if("/"===i[1]){if((l=u.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"));Bs(D),P.push(D)}else u.push([i[3],!1]),D={a:(l=Ds(i[0])).Author};break;case"autofilter":if("/"===i[1]){if((l=u.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else if("/"!==i[0].charAt(i[0].length-2)){var K=Ds(i[0]);p["!autofilter"]={ref:oa(K.Range).replace(/\$/g,"")},u.push([i[3],!0])}break;case"datavalidation":if("/"===i[1]){if((l=u.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&u.push([i[3],!0]);break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===i[1]){if((l=u.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&u.push([i[3],!0]);break;default:if(0==u.length&&"document"==i[3])return Qs(r,n);if(0==u.length&&"uof"==i[3])return Qs(r,n);var Q=!0;switch(u[u.length-1][0]){case"officedocumentsettings":switch(i[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:Q=!1}break;case"componentoptions":switch(i[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:Q=!1}break;case"excelworkbook":switch(i[3]){case"date1904":V.WBProps.date1904=!0;break;case"windowheight":case"windowwidth":case"windowtopx":case"windowtopy":case"tabratio":case"protectstructure":case"protectwindow":case"protectwindows":case"activesheet":case"displayinknotes":case"firstvisiblesheet":case"supbook":case"sheetname":case"sheetindex":case"sheetindexfirst":case"sheetindexlast":case"dll":case"acceptlabelsinformulas":case"donotsavelinkvalues":case"iteration":case"maxiterations":case"maxchange":case"path":case"xct":case"count":case"selectedsheets":case"calculation":case"uncalced":case"startupprompt":case"crn":case"externname":case"formula":case"colfirst":case"collast":case"wantadvise":case"boolean":case"error":case"text":case"ole":case"noautorecover":case"publishobjects":case"donotcalculatebeforesave":case"number":case"refmoder1c1":case"embedsavesmarttags":break;default:Q=!1}break;case"workbookoptions":switch(i[3]){case"owcversion":case"height":case"width":break;default:Q=!1}break;case"worksheetoptions":switch(i[3]){case"visible":if("/>"===i[0].slice(-2));else if("/"===i[1])switch(r.slice(L,i.index)){case"SheetHidden":G.Hidden=1;break;case"SheetVeryHidden":G.Hidden=2}else L=i.index+i[0].length;break;case"header":p["!margins"]||es(p["!margins"]={},"xlml"),isNaN(+it(i[0]).Margin)||(p["!margins"].header=+it(i[0]).Margin);break;case"footer":p["!margins"]||es(p["!margins"]={},"xlml"),isNaN(+it(i[0]).Margin)||(p["!margins"].footer=+it(i[0]).Margin);break;case"pagemargins":var ee=it(i[0]);p["!margins"]||es(p["!margins"]={},"xlml"),isNaN(+ee.Top)||(p["!margins"].top=+ee.Top),isNaN(+ee.Left)||(p["!margins"].left=+ee.Left),isNaN(+ee.Right)||(p["!margins"].right=+ee.Right),isNaN(+ee.Bottom)||(p["!margins"].bottom=+ee.Bottom);break;case"displayrighttoleft":V.Views||(V.Views=[]),V.Views[0]||(V.Views[0]={}),V.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":case"splithorizontal":case"splitvertical":case"donotdisplaygridlines":case"activerow":case"activecol":case"toprowbottompane":case"leftcolumnrightpane":case"unsynced":case"print":case"printerrors":case"panes":case"scale":case"pane":case"number":case"layout":case"pagesetup":case"selected":case"protectobjects":case"enableselection":case"protectscenarios":case"validprinterinfo":case"horizontalresolution":case"verticalresolution":case"numberofcopies":case"activepane":case"toprowvisible":case"leftcolumnvisible":case"fittopage":case"rangeselection":case"papersizeindex":case"pagelayoutzoom":case"pagebreakzoom":case"filteron":case"fitwidth":case"fitheight":case"commentslayout":case"zoom":case"lefttoright":case"gridlines":case"allowsort":case"allowfilter":case"allowinsertrows":case"allowdeleterows":case"allowinsertcols":case"allowdeletecols":case"allowinserthyperlinks":case"allowformatcells":case"allowsizecols":case"allowsizerows":case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;case"nosummaryrowsbelowdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].above=!0;break;case"nosummarycolumnsrightdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].left=!0;break;default:Q=!1}break;case"pivottable":case"pivotcache":switch(i[3]){case"immediateitemsondrop":case"showpagemultipleitemlabel":case"compactrowindent":case"location":case"pivotfield":case"orientation":case"layoutform":case"layoutsubtotallocation":case"layoutcompactrow":case"position":case"pivotitem":case"datatype":case"datafield":case"sourcename":case"parentfield":case"ptlineitems":case"ptlineitem":case"countofsameitems":case"item":case"itemtype":case"ptsource":case"cacheindex":case"consolidationreference":case"filename":case"reference":case"nocolumngrand":case"norowgrand":case"blanklineafteritems":case"hidden":case"subtotal":case"basefield":case"mapchilditems":case"function":case"refreshonfileopen":case"printsettitles":case"mergelabels":case"defaultversion":case"refreshname":case"refreshdate":case"refreshdatecopy":case"versionlastrefresh":case"versionlastupdate":case"versionupdateablemin":case"versionrefreshablemin":case"calculation":break;default:Q=!1}break;case"pagebreaks":switch(i[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:Q=!1}break;case"autofilter":switch(i[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:Q=!1}break;case"querytable":switch(i[3]){case"id":case"autoformatfont":case"autoformatpattern":case"querysource":case"querytype":case"enableredirections":case"refreshedinxl9":case"urlstring":case"htmltables":case"connection":case"commandtext":case"refreshinfo":case"notitles":case"nextid":case"columninfo":case"overwritecells":case"donotpromptforfile":case"textwizardsettings":case"source":case"number":case"decimal":case"thousandseparator":case"trailingminusnumbers":case"formatsettings":case"fieldtype":case"delimiters":case"tab":case"comma":case"autoformatname":case"versionlastedit":case"versionlastrefresh":break;default:Q=!1}break;case"datavalidation":switch(i[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":case"cellrangelist":break;default:Q=!1}break;case"sorting":case"conditionalformatting":switch(i[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"cellrangelist":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":break;default:Q=!1}break;case"mapinfo":case"schema":case"data":switch(i[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:Q=!1}break;case"smarttags":break;default:Q=!1}if(Q)break;if(i[3].match(/!\[CDATA/))break;if(!u[u.length-1][1])throw"Unrecognized tag: "+i[3]+"|"+u.join("|");if("customdocumentproperties"===u[u.length-1][0]){if("/>"===i[0].slice(-2))break;"/"===i[1]?Is(R,W,k,r.slice(L,i.index)):(k=i,L=i.index+i[0].length);break}if(n.WTF)throw"Unrecognized tag: "+i[3]+"|"+u.join("|")}var te={};return n.bookSheets||n.bookProps||(te.Sheets=h),te.SheetNames=f,te.Workbook=V,te.SSF=Ne(B),te.Props=C,te.Custprops=R,te}function zs(e,t){switch(mo(t=t||{}),t.type||"base64"){case"base64":return Us(y(e),t);case"binary":case"buffer":case"file":return Us(e,t);case"array":return Us(S(e),t)}}var Hs=[60,1084,2066,2165,2175];function Vs(e,t,n,r,i){var a=r,s=[],o=n.slice(n.l,n.l+a);if(i&&i.enc&&i.enc.insitu&&o.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:case 133:break;default:i.enc.insitu(o)}s.push(o),n.l+=a;for(var l=Jt(n,n.l),c=qs[l],u=0;null!=c&&Hs.indexOf(l)>-1;)a=Jt(n,n.l+2),u=n.l+4,2066==l?u+=4:2165!=l&&2175!=l||(u+=12),o=n.slice(u,n.l+4+a),s.push(o),n.l+=4+a,c=qs[l=Jt(n,n.l)];var h=M(s);on(h,0);var f=0;h.lens=[];for(var d=0;d<s.length;++d)h.lens.push(f),f+=s[d].length;if(h.length<r)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+h.length+" < "+r;return t.f(h,h.length,i)}function Gs(e,t,n){if("z"!==e.t&&e.XF){var r=0;try{r=e.z||e.XF.numFmtId||0,t.cellNF&&(e.z=B[r])}catch(e){if(t.WTF)throw e}if(!t||!1!==t.cellText)try{"e"===e.t?e.w=e.w||Jn[e.v]:0===r||"General"==r?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=$(e.v):e.w=Y(e.v):e.w=me(r,e.v,{date1904:!!n,dateNF:t&&t.dateNF})}catch(e){if(t.WTF)throw e}if(t.cellDates&&r&&"n"==e.t&&fe(B[r]||String(r))){var i=V(e.v);i&&(e.t="d",e.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}}function Ws(e,t,n){return{v:e,ixfe:t,t:n}}function js(e,t){var n,r,i,a;if(t||(t={}),mo(t),c(),t.codepage&&o(t.codepage),e.FullPaths){if(_e.find(e,"/encryption"))throw new Error("File is password-protected");n=_e.find(e,"!CompObj"),r=_e.find(e,"/Workbook")||_e.find(e,"/Book")}else{switch(t.type){case"base64":e=T(y(e));break;case"binary":e=T(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e))}on(e,0),r={content:e}}if(n&&function(e){var t={},n=e.content;if(n.l=28,t.AnsiUserType=n.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=function(e){return Vn(e,1)}(n),n.length-n.l<=4)return t;var r=n.read_shift(4);0==r||r>40||(n.l-=4,t.Reserved1=n.read_shift(0,"lpstr-ansi"),n.length-n.l<=4||1907505652!==(r=n.read_shift(4))||(t.UnicodeClipboardFormat=function(e){return Vn(e,2)}(n),0==(r=n.read_shift(4))||r>40||(n.l-=4,t.Reserved2=n.read_shift(0,"lpwstr"))))}(n),t.bookProps&&!t.bookSheets)i={};else{var s=b?"buffer":"array";if(r&&r.content)i=function(e,t){var n,r,i,a,s,o,c,u,h={opts:{}},f={},d=t.dense?[]:{},p={},m={},g=null,v=[],y="",b={},x="",_={},w=[],T=[],S=[],E={Sheets:[],WBProps:{date1904:!1},Views:[{}]},M={},A=function(e){return e<8?Zn[e]:e<64&&S[e-8]||Zn[e]},C=function(e,t,r){if(!(U>1||r.sheetRows&&e.r>=r.sheetRows)){if(r.cellStyles&&t.XF&&t.XF.data&&function(e,t,n){var r,i=t.XF.data;i&&i.patternType&&n&&n.cellStyles&&(t.s={},t.s.patternType=i.patternType,(r=Pi(A(i.icvFore)))&&(t.s.fgColor={rgb:r}),(r=Pi(A(i.icvBack)))&&(t.s.bgColor={rgb:r}))}(0,t,r),delete t.ixfe,delete t.XF,n=e,x=_n(e),m&&m.s&&m.e||(m={s:{r:0,c:0},e:{r:0,c:0}}),e.r<m.s.r&&(m.s.r=e.r),e.c<m.s.c&&(m.s.c=e.c),e.r+1>m.e.r&&(m.e.r=e.r+1),e.c+1>m.e.c&&(m.e.c=e.c+1),r.cellFormula&&t.f)for(var i=0;i<w.length;++i)if(!(w[i][0].s.c>e.c||w[i][0].s.r>e.r||w[i][0].e.c<e.c||w[i][0].e.r<e.r)){t.F=Tn(w[i][0]),w[i][0].s.c==e.c&&w[i][0].s.r==e.r||delete t.f,t.f&&(t.f=""+Ba(w[i][1],0,e,I,R));break}r.dense?(d[e.r]||(d[e.r]=[]),d[e.r][e.c]=t):d[x]=t}},R={enc:!1,sbcch:0,snames:[],sharedf:_,arrayf:w,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!t&&!!t.cellStyles,WTF:!!t&&!!t.wtf};t.password&&(R.password=t.password);var L=[],k=[],P=[],D=[],O=!1,I=[];I.SheetNames=R.snames,I.sharedf=R.sharedf,I.arrayf=R.arrayf,I.names=[],I.XTI=[];var N,F=0,U=0,z=0,H=[],V=[];R.codepage=1200,l(1200);for(var G=!1;e.l<e.length-1;){var W=e.l,j=e.read_shift(2);if(0===j&&10===F)break;var X=e.l===e.length?0:e.read_shift(2),q=qs[j];if(q&&q.f){if(t.bookSheets&&133===F&&133!==j)break;if(F=j,2===q.r||12==q.r){var $=e.read_shift(2);if(X-=2,!R.enc&&$!==j&&((255&$)<<8|$>>8)!==j)throw new Error("rt mismatch: "+$+"!="+j);12==q.r&&(e.l+=10,X-=10)}var Y={};if(Y=10===j?q.f(e,X,R):Vs(j,q,e,X,R),0==U&&-1===[9,521,1033,2057].indexOf(F))continue;switch(j){case 34:h.opts.Date1904=E.WBProps.date1904=Y;break;case 134:h.opts.WriteProtect=!0;break;case 47:if(R.enc||(e.l=0),R.enc=Y,!t.password)throw new Error("File is password-protected");if(null==Y.valid)throw new Error("Encryption scheme unsupported");if(!Y.valid)throw new Error("Password is incorrect");break;case 92:R.lastuser=Y;break;case 66:var Z=Number(Y);switch(Z){case 21010:Z=1200;break;case 32768:Z=1e4;break;case 32769:Z=1252}l(R.codepage=Z),G=!0;break;case 317:R.rrtabid=Y;break;case 25:R.winlocked=Y;break;case 439:h.opts.RefreshAll=Y;break;case 12:h.opts.CalcCount=Y;break;case 16:h.opts.CalcDelta=Y;break;case 17:h.opts.CalcIter=Y;break;case 13:h.opts.CalcMode=Y;break;case 14:h.opts.CalcPrecision=Y;break;case 95:h.opts.CalcSaveRecalc=Y;break;case 15:R.CalcRefMode=Y;break;case 2211:h.opts.FullCalc=Y;break;case 129:Y.fDialog&&(d["!type"]="dialog"),Y.fBelow||((d["!outline"]||(d["!outline"]={})).above=!0),Y.fRight||((d["!outline"]||(d["!outline"]={})).left=!0);break;case 224:T.push(Y);break;case 430:I.push([Y]),I[I.length-1].XTI=[];break;case 35:case 547:I[I.length-1].push(Y);break;case 24:case 536:N={Name:Y.Name,Ref:Ba(Y.rgce,0,null,I,R)},Y.itab>0&&(N.Sheet=Y.itab-1),I.names.push(N),I[0]||(I[0]=[],I[0].XTI=[]),I[I.length-1].push(Y),"_xlnm._FilterDatabase"==Y.Name&&Y.itab>0&&Y.rgce&&Y.rgce[0]&&Y.rgce[0][0]&&"PtgArea3d"==Y.rgce[0][0][0]&&(V[Y.itab-1]={ref:Tn(Y.rgce[0][0][1][2])});break;case 22:R.ExternCount=Y;break;case 23:0==I.length&&(I[0]=[],I[0].XTI=[]),I[I.length-1].XTI=I[I.length-1].XTI.concat(Y),I.XTI=I.XTI.concat(Y);break;case 2196:if(R.biff<8)break;null!=N&&(N.Comment=Y[1]);break;case 18:d["!protect"]=Y;break;case 19:0!==Y&&R.WTF&&console.error("Password verifier: "+Y);break;case 133:p[Y.pos]=Y,R.snames.push(Y.name);break;case 10:if(--U)break;if(m.e){if(m.e.r>0&&m.e.c>0){if(m.e.r--,m.e.c--,d["!ref"]=Tn(m),t.sheetRows&&t.sheetRows<=m.e.r){var J=m.e.r;m.e.r=t.sheetRows-1,d["!fullref"]=d["!ref"],d["!ref"]=Tn(m),m.e.r=J}m.e.r++,m.e.c++}L.length>0&&(d["!merges"]=L),k.length>0&&(d["!objects"]=k),P.length>0&&(d["!cols"]=P),D.length>0&&(d["!rows"]=D),E.Sheets.push(M)}""===y?b=d:f[y]=d,d=t.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(8===R.biff&&(R.biff={9:2,521:3,1033:4}[j]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[Y.BIFFVer]||8),R.biffguess=0==Y.BIFFVer,0==Y.BIFFVer&&4096==Y.dt&&(R.biff=5,G=!0,l(R.codepage=28591)),8==R.biff&&0==Y.BIFFVer&&16==Y.dt&&(R.biff=2),U++)break;if(d=t.dense?[]:{},R.biff<8&&!G&&(G=!0,l(R.codepage=t.codepage||1252)),R.biff<5||0==Y.BIFFVer&&4096==Y.dt){""===y&&(y="Sheet1"),m={s:{r:0,c:0},e:{r:0,c:0}};var K={pos:e.l-X,name:y};p[K.pos]=K,R.snames.push(y)}else y=(p[W]||{name:""}).name;32==Y.dt&&(d["!type"]="chart"),64==Y.dt&&(d["!type"]="macro"),L=[],k=[],R.arrayf=w=[],P=[],D=[],O=!1,M={Hidden:(p[W]||{hs:0}).hs,name:y};break;case 515:case 3:case 2:"chart"==d["!type"]&&(t.dense?(d[Y.r]||[])[Y.c]:d[_n({c:Y.c,r:Y.r})])&&++Y.c,o={ixfe:Y.ixfe,XF:T[Y.ixfe]||{},v:Y.val,t:"n"},z>0&&(o.z=H[o.ixfe>>8&63]),Gs(o,t,h.opts.Date1904),C({c:Y.c,r:Y.r},o,t);break;case 5:case 517:o={ixfe:Y.ixfe,XF:T[Y.ixfe],v:Y.val,t:Y.t},z>0&&(o.z=H[o.ixfe>>8&63]),Gs(o,t,h.opts.Date1904),C({c:Y.c,r:Y.r},o,t);break;case 638:o={ixfe:Y.ixfe,XF:T[Y.ixfe],v:Y.rknum,t:"n"},z>0&&(o.z=H[o.ixfe>>8&63]),Gs(o,t,h.opts.Date1904),C({c:Y.c,r:Y.r},o,t);break;case 189:for(var Q=Y.c;Q<=Y.C;++Q){var ee=Y.rkrec[Q-Y.c][0];o={ixfe:ee,XF:T[ee],v:Y.rkrec[Q-Y.c][1],t:"n"},z>0&&(o.z=H[o.ixfe>>8&63]),Gs(o,t,h.opts.Date1904),C({c:Q,r:Y.r},o,t)}break;case 6:case 518:case 1030:if("String"==Y.val){g=Y;break}if((o=Ws(Y.val,Y.cell.ixfe,Y.tt)).XF=T[o.ixfe],t.cellFormula){var te=Y.formula;if(te&&te[0]&&te[0][0]&&"PtgExp"==te[0][0][0]){var ne=te[0][0][1][0],re=te[0][0][1][1],ie=_n({r:ne,c:re});_[ie]?o.f=""+Ba(Y.formula,0,Y.cell,I,R):o.F=((t.dense?(d[ne]||[])[re]:d[ie])||{}).F}else o.f=""+Ba(Y.formula,0,Y.cell,I,R)}z>0&&(o.z=H[o.ixfe>>8&63]),Gs(o,t,h.opts.Date1904),C(Y.cell,o,t),g=Y;break;case 7:case 519:if(!g)throw new Error("String record expects Formula");g.val=Y,(o=Ws(Y,g.cell.ixfe,"s")).XF=T[o.ixfe],t.cellFormula&&(o.f=""+Ba(g.formula,0,g.cell,I,R)),z>0&&(o.z=H[o.ixfe>>8&63]),Gs(o,t,h.opts.Date1904),C(g.cell,o,t),g=null;break;case 33:case 545:w.push(Y);var ae=_n(Y[0].s);if(r=t.dense?(d[Y[0].s.r]||[])[Y[0].s.c]:d[ae],t.cellFormula&&r){if(!g)break;if(!ae||!r)break;r.f=""+Ba(Y[1],0,Y[0],I,R),r.F=Tn(Y[0])}break;case 1212:if(!t.cellFormula)break;if(x){if(!g)break;_[_n(g.cell)]=Y[0],((r=t.dense?(d[g.cell.r]||[])[g.cell.c]:d[_n(g.cell)])||{}).f=""+Ba(Y[0],0,n,I,R)}break;case 253:o=Ws(v[Y.isst].t,Y.ixfe,"s"),v[Y.isst].h&&(o.h=v[Y.isst].h),o.XF=T[o.ixfe],z>0&&(o.z=H[o.ixfe>>8&63]),Gs(o,t,h.opts.Date1904),C({c:Y.c,r:Y.r},o,t);break;case 513:t.sheetStubs&&(o={ixfe:Y.ixfe,XF:T[Y.ixfe],t:"z"},z>0&&(o.z=H[o.ixfe>>8&63]),Gs(o,t,h.opts.Date1904),C({c:Y.c,r:Y.r},o,t));break;case 190:if(t.sheetStubs)for(var se=Y.c;se<=Y.C;++se){var oe=Y.ixfe[se-Y.c];o={ixfe:oe,XF:T[oe],t:"z"},z>0&&(o.z=H[o.ixfe>>8&63]),Gs(o,t,h.opts.Date1904),C({c:se,r:Y.r},o,t)}break;case 214:case 516:case 4:(o=Ws(Y.val,Y.ixfe,"s")).XF=T[o.ixfe],z>0&&(o.z=H[o.ixfe>>8&63]),Gs(o,t,h.opts.Date1904),C({c:Y.c,r:Y.r},o,t);break;case 0:case 512:1===U&&(m=Y);break;case 252:v=Y;break;case 1054:if(4==R.biff){H[z++]=Y[1];for(var le=0;le<z+163&&B[le]!=Y[1];++le);le>=163&&ge(Y[1],z+163)}else ge(Y[1],Y[0]);break;case 30:H[z++]=Y;for(var ce=0;ce<z+163&&B[ce]!=Y;++ce);ce>=163&&ge(Y,z+163);break;case 229:L=L.concat(Y);break;case 93:k[Y.cmo[0]]=R.lastobj=Y;break;case 438:R.lastobj.TxO=Y;break;case 127:R.lastobj.ImData=Y;break;case 440:for(s=Y[0].s.r;s<=Y[0].e.r;++s)for(a=Y[0].s.c;a<=Y[0].e.c;++a)(r=t.dense?(d[s]||[])[a]:d[_n({c:a,r:s})])&&(r.l=Y[1]);break;case 2048:for(s=Y[0].s.r;s<=Y[0].e.r;++s)for(a=Y[0].s.c;a<=Y[0].e.c;++a)(r=t.dense?(d[s]||[])[a]:d[_n({c:a,r:s})])&&r.l&&(r.l.Tooltip=Y[1]);break;case 28:if(R.biff<=5&&R.biff>=2)break;r=t.dense?(d[Y[0].r]||[])[Y[0].c]:d[_n(Y[0])];var ue=k[Y[2]];r||(t.dense?(d[Y[0].r]||(d[Y[0].r]=[]),r=d[Y[0].r][Y[0].c]={t:"z"}):r=d[_n(Y[0])]={t:"z"},m.e.r=Math.max(m.e.r,Y[0].r),m.s.r=Math.min(m.s.r,Y[0].r),m.e.c=Math.max(m.e.c,Y[0].c),m.s.c=Math.min(m.s.c,Y[0].c)),r.c||(r.c=[]),i={a:Y[1],t:ue.TxO.t},r.c.push(i);break;case 2173:T[Y.ixfe],Y.ext.forEach((function(e){e[0]}));break;case 125:if(!R.cellStyles)break;for(;Y.e>=Y.s;)P[Y.e--]={width:Y.w/256,level:Y.level||0,hidden:!!(1&Y.flags)},O||(O=!0,Ui(Y.w/256)),zi(P[Y.e+1]);break;case 520:var he={};null!=Y.level&&(D[Y.r]=he,he.level=Y.level),Y.hidden&&(D[Y.r]=he,he.hidden=!0),Y.hpt&&(D[Y.r]=he,he.hpt=Y.hpt,he.hpx=Vi(Y.hpt));break;case 38:case 39:case 40:case 41:d["!margins"]||es(d["!margins"]={}),d["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[j]]=Y;break;case 161:d["!margins"]||es(d["!margins"]={}),d["!margins"].header=Y.header,d["!margins"].footer=Y.footer;break;case 574:Y.RTL&&(E.Views[0].RTL=!0);break;case 146:S=Y;break;case 2198:u=Y;break;case 140:c=Y;break;case 442:y?M.CodeName=Y||M.name:E.WBProps.CodeName=Y||"ThisWorkbook"}}else q||console.error("Missing Info for XLS Record 0x"+j.toString(16)),e.l+=X}return h.SheetNames=we(p).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return p[e].name})),t.bookSheets||(h.Sheets=f),!h.SheetNames.length&&b["!ref"]?(h.SheetNames.push("Sheet1"),h.Sheets&&(h.Sheets.Sheet1=b)):h.Preamble=b,h.Sheets&&V.forEach((function(e,t){h.Sheets[h.SheetNames[t]]["!autofilter"]=e})),h.Strings=v,h.SSF=Ne(B),R.enc&&(h.Encryption=R.enc),u&&(h.Themes=u),h.Metadata={},void 0!==c&&(h.Metadata.Country=c),I.names.length>0&&(E.Names=I.names),h.Workbook=E,h}(r.content,t);else if((a=_e.find(e,"PerfectOffice_MAIN"))&&a.content)i=fi.to_workbook(a.content,(t.type=s,t));else{if(!(a=_e.find(e,"NativeContent_MAIN"))||!a.content)throw(a=_e.find(e,"MN0"))&&a.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");i=fi.to_workbook(a.content,(t.type=s,t))}t.bookVBA&&e.FullPaths&&_e.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(i.vbaraw=function(e){var t=_e.utils.cfb_new({root:"R"});return e.FullPaths.forEach((function(n,r){if("/"!==n.slice(-1)&&n.match(/_VBA_PROJECT_CUR/)){var i=n.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");_e.utils.cfb_add(t,i,e.FileIndex[r].content)}})),_e.write(t)}(e))}var u={};return e.FullPaths&&function(e,t,n){var r=_e.find(e,"/!DocumentSummaryInformation");if(r&&r.size>0)try{var i=wr(r,jn,"02d5cdd59c2e1b10939708002b2cf9ae");for(var a in i)t[a]=i[a]}catch(e){if(n.WTF)throw e}var s=_e.find(e,"/!SummaryInformation");if(s&&s.size>0)try{var o=wr(s,Xn,"e0859ff2f94f6810ab9108002b27b3d9");for(var l in o)null==t[l]&&(t[l]=o[l])}catch(e){if(n.WTF)throw e}t.HeadingPairs&&t.TitlesOfParts&&(or(t.HeadingPairs,t.TitlesOfParts,t,n),delete t.HeadingPairs,delete t.TitlesOfParts)}(e,u,t),i.Props=i.Custprops=u,t.bookFiles&&(i.cfb=e),i}var Xs={0:{f:function(e,t){var n={},r=e.l+t;n.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var a=e.read_shift(1);return e.l=r,7&a&&(n.level=7&a),16&a&&(n.hidden=!0),32&a&&(n.hpt=i/20),n}},1:{f:function(e){return[Pn(e)]}},2:{f:function(e){return[Pn(e),Bn(e),"n"]}},3:{f:function(e){return[Pn(e),e.read_shift(1),"e"]}},4:{f:function(e){return[Pn(e),e.read_shift(1),"b"]}},5:{f:function(e){return[Pn(e),Hn(e),"n"]}},6:{f:function(e){return[Pn(e),Cn(e),"str"]}},7:{f:function(e){return[Pn(e),e.read_shift(4),"s"]}},8:{f:function(e,t,n){var r=e.l+t,i=Pn(e);i.r=n["!row"];var a=[i,Cn(e),"str"];if(n.cellFormula){e.l+=2;var s=Wa(e,r-e.l,n);a[3]=Ba(s,0,i,n.supbooks,n)}else e.l=r;return a}},9:{f:function(e,t,n){var r=e.l+t,i=Pn(e);i.r=n["!row"];var a=[i,Hn(e),"n"];if(n.cellFormula){e.l+=2;var s=Wa(e,r-e.l,n);a[3]=Ba(s,0,i,n.supbooks,n)}else e.l=r;return a}},10:{f:function(e,t,n){var r=e.l+t,i=Pn(e);i.r=n["!row"];var a=[i,e.read_shift(1),"b"];if(n.cellFormula){e.l+=2;var s=Wa(e,r-e.l,n);a[3]=Ba(s,0,i,n.supbooks,n)}else e.l=r;return a}},11:{f:function(e,t,n){var r=e.l+t,i=Pn(e);i.r=n["!row"];var a=[i,e.read_shift(1),"e"];if(n.cellFormula){e.l+=2;var s=Wa(e,r-e.l,n);a[3]=Ba(s,0,i,n.supbooks,n)}else e.l=r;return a}},12:{f:function(e){return[Dn(e)]}},13:{f:function(e){return[Dn(e),Bn(e),"n"]}},14:{f:function(e){return[Dn(e),e.read_shift(1),"e"]}},15:{f:function(e){return[Dn(e),e.read_shift(1),"b"]}},16:{f:gs},17:{f:function(e){return[Dn(e),Cn(e),"str"]}},18:{f:function(e){return[Dn(e),e.read_shift(4),"s"]}},19:{f:Ln},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(e,t,n){var r=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),a=Nn(e),s=ja(e,0,n),o=In(e);e.l=r;var l={Name:a,Ptg:s};return i<268435455&&(l.Sheet=i),o&&(l.Comment=o),l}},40:{},42:{},43:{f:function(e,t,n){var r={};r.sz=e.read_shift(2)/20;var i=function(e){var t=e.read_shift(1);return e.l++,{fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t}}(e);switch(i.fItalic&&(r.italic=1),i.fCondense&&(r.condense=1),i.fExtend&&(r.extend=1),i.fShadow&&(r.shadow=1),i.fOutline&&(r.outline=1),i.fStrikeout&&(r.strike=1),700===e.read_shift(2)&&(r.bold=1),e.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript"}var a=e.read_shift(1);0!=a&&(r.underline=a);var s=e.read_shift(1);s>0&&(r.family=s);var o=e.read_shift(1);switch(o>0&&(r.charset=o),e.l++,r.color=function(e){var t={},n=e.read_shift(1)>>>1,r=e.read_shift(1),i=e.read_shift(2,"i"),a=e.read_shift(1),s=e.read_shift(1),o=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=r;var l=Zn[r];l&&(t.rgb=Pi(l));break;case 2:t.rgb=Pi([a,s,o]);break;case 3:t.theme=r}return 0!=i&&(t.tint=i>0?i/32767:i/32768),t}(e),e.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor"}return r.name=Cn(e),r}},44:{f:function(e,t){return[e.read_shift(2),Cn(e)]}},45:{f:qi},46:{f:$i},47:{f:function(e,t){var n=e.l+t,r=e.read_shift(2),i=e.read_shift(2);return e.l=n,{ixfe:r,numFmtId:i}}},48:{},49:{f:function(e){return e.read_shift(4,"i")}},50:{},51:{f:function(e){for(var t=[],n=e.read_shift(4);n-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:ni},62:{f:function(e){return[Pn(e),Ln(e),"is"]}},63:{f:function(e){var t={};t.i=e.read_shift(4);var n={};n.r=e.read_shift(4),n.c=e.read_shift(4),t.r=_n(n);var r=e.read_shift(1);return 2&r&&(t.l="1"),8&r&&(t.a="1"),t}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:ln,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(e,t){var n={},r=e[e.l];return++e.l,n.above=!(64&r),n.left=!(128&r),e.l+=18,n.name=On(e,t-19),n}},148:{f:ms,p:16},151:{f:function(){}},152:{},153:{f:function(e,t){var n={},r=e.read_shift(4);n.defaultThemeVersion=e.read_shift(4);var i=t>8?Cn(e):"";return i.length>0&&(n.CodeName=i),n.autoCompressPictures=!!(65536&r),n.backupFile=!!(64&r),n.checkCompatibility=!!(4096&r),n.date1904=!!(1&r),n.filterPrivacy=!!(8&r),n.hidePivotFieldList=!!(1024&r),n.promptedSolutions=!!(16&r),n.publishItems=!!(2048&r),n.refreshAllConnections=!!(262144&r),n.saveExternalLinkValues=!!(128&r),n.showBorderUnselectedTables=!!(4&r),n.showInkAnnotation=!!(32&r),n.showObjects=["all","placeholders","none"][r>>13&3],n.showPivotChartFilter=!!(32768&r),n.updateLinks=["userSet","never","always"][r>>8&3],n}},154:{},155:{},156:{f:function(e,t){var n={};return n.Hidden=e.read_shift(4),n.iTabID=e.read_shift(4),n.strRelID=Fn(e,t-8),n.name=Cn(e),n}},157:{},158:{},159:{T:1,f:function(e){return[e.read_shift(4),e.read_shift(4)]}},160:{T:-1},161:{T:1,f:zn},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:vs},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Cn(e)}}},336:{T:-1},337:{f:function(e){return e.l+=4,0!=e.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Fn},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Qr},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(e,t,n){var r=e.l+t,i=Un(e),a=e.read_shift(1),s=[i];if(s[2]=a,n.cellFormula){var o=Ga(e,r-e.l,n);s[1]=o}else e.l=r;return s}},427:{f:function(e,t,n){var r=e.l+t,i=[zn(e,16)];if(n.cellFormula){var a=Xa(e,r-e.l,n);i[1]=a,e.l=r}else e.l=r;return i}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(e){var t={};return ys.forEach((function(n){t[n]=Hn(e)})),t}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(e,t){var n=e.l+t,r=zn(e,16),i=In(e),a=Cn(e),s=Cn(e),o=Cn(e);e.l=n;var l={rfx:r,relId:i,loc:a,display:o};return s&&(l.Tooltip=s),l}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Fn},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:sa},633:{T:1},634:{T:-1},635:{T:1,f:function(e){var t={};t.iauthor=e.read_shift(4);var n=zn(e,16);return t.rfx=n.s,t.ref=_n(n.s),e.l+=16,t}},636:{T:-1},637:{f:kn},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(e,t){return e.l+=10,{name:Cn(e)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},qs={6:{f:Ha},10:{f:Tr},12:{f:Er},13:{f:Er},14:{f:Sr},15:{f:Sr},16:{f:Hn},17:{f:Sr},18:{f:Sr},19:{f:Er},20:{f:Yr},21:{f:Yr},23:{f:Qr},24:{f:Kr},25:{f:Sr},26:{},27:{},28:{f:function(e,t,n){return function(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),i=e.read_shift(2),a=e.read_shift(2),s=e.read_shift(2),o=kr(e,0,n);return n.biff<8&&e.read_shift(1),[{r,c:i},o,s,a]}}(e,0,n)}},29:{},34:{f:Sr},35:{f:Zr},38:{f:Hn},39:{f:Hn},40:{f:Hn},41:{f:Hn},42:{f:Sr},43:{f:Sr},47:{f:function(e,t,n){var r={Type:n.biff>=8?e.read_shift(2):0};return r.Type?function(e,t,n){var r=n||{};r.Info=e.read_shift(2),e.l-=2,1===r.Info?r.Data=function(e){var t={},n=t.EncryptionVersionInfo=Ti(e,4);if(1!=n.Major||1!=n.Minor)throw"unrecognized version code "+n.Major+" : "+n.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}(e):r.Data=function(e,t){var n={},r=n.EncryptionVersionInfo=Ti(e,4);if(t-=4,2!=r.Minor)throw new Error("unrecognized minor version code: "+r.Minor);if(r.Major>4||r.Major<2)throw new Error("unrecognized major version code: "+r.Major);n.Flags=e.read_shift(4),t-=4;var i=e.read_shift(4);return t-=4,n.EncryptionHeader=Ei(e,i),t-=i,n.EncryptionVerifier=Mi(e,t),n}(e,t)}(e,t-2,r):function(e,t,n,r){var i,a,s,o={key:Er(e),verificationBytes:Er(e)};n.password&&(o.verifier=function(e){var t,n,r=0,i=wi(e),a=i.length+1;for((t=_(a))[0]=i.length,n=1;n!=a;++n)t[n]=i[n-1];for(n=a-1;n>=0;--n)r=((0==(16384&r)?0:1)|r<<1&32767)^t[n];return 52811^r}(n.password)),r.valid=o.verificationBytes===o.verifier,r.valid&&(r.insitu=(i=n.password,a=0,s=Li(i),function(e){var t=function(e,t,n,r,i){var a,s;for(i||(i=t),r||(r=Li("")),a=0;a!=t.length;++a)s=t[a],s=255&((s^=r[n])>>5|s<<3),i[a]=s,++n;return[i,n,r]}(0,e,a,s);return a=t[1],t[0]}))}(e,n.biff,n,r),r}},49:{f:function(e,t,n){var r={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(n&&n.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10}return r.name=Ar(e,0,n),r}},51:{f:Er},60:{},61:{f:function(e){return{Pos:[e.read_shift(2),e.read_shift(2)],Dim:[e.read_shift(2),e.read_shift(2)],Flags:e.read_shift(2),CurTab:e.read_shift(2),FirstTab:e.read_shift(2),Selected:e.read_shift(2),TabRatio:e.read_shift(2)}}},64:{f:Sr},65:{f:function(){}},66:{f:Er},77:{},80:{},81:{},82:{},85:{f:Er},89:{},90:{},91:{},92:{f:function(e,t,n){if(n.enc)return e.l+=t,"";var r=e.l,i=kr(e,0,n);return e.read_shift(t+r-e.l),i}},93:{f:function(e,t,n){if(n&&n.biff<8)return function(e,t,n){e.l+=4;var r=e.read_shift(2),i=e.read_shift(2),a=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var s=[];return s.push((ti[r]||ln)(e,t,n)),{cmo:[i,r,a],ft:s}}(e,t,n);var r=Hr(e),i=function(e,t){for(var n=e.l+t,r=[];e.l<n;){var i=e.read_shift(2);e.l-=2;try{r.push(Gr[i](e,n-e.l))}catch(t){return e.l=n,r}}return e.l!=n&&(e.l=n),r}(e,t-22,r[1]);return{cmo:r,ft:i}}},94:{},95:{f:Sr},96:{},97:{},99:{f:Sr},125:{f:ni},128:{f:function(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(0!==t[0]&&t[0]--,0!==t[1]&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}},129:{f:function(e,t,n){var r=n&&8==n.biff||2==t?e.read_shift(2):(e.l+=t,0);return{fDialog:16&r,fBelow:64&r,fRight:128&r}}},130:{f:Er},131:{f:Sr},132:{f:Sr},133:{f:function(e,t,n){var r=e.read_shift(4),i=3&e.read_shift(1),a=e.read_shift(1);switch(a){case 0:a="Worksheet";break;case 1:a="Macrosheet";break;case 2:a="Chartsheet";break;case 6:a="VBAModule"}var s=Ar(e,0,n);return 0===s.length&&(s="Sheet1"),{pos:r,hs:i,dt:a,name:s}}},134:{},140:{f:function(e){var t,n=[0,0];return t=e.read_shift(2),n[0]=qn[t]||t,t=e.read_shift(2),n[1]=qn[t]||t,n}},141:{f:Er},144:{},146:{f:function(e){for(var t=e.read_shift(2),n=[];t-- >0;)n.push(Or(e));return n}},151:{},152:{},153:{},154:{},155:{},156:{f:Er},157:{},158:{},160:{f:ii},161:{f:function(e,t){var n={};return t<32||(e.l+=16,n.header=Hn(e),n.footer=Hn(e),e.l+=2),n}},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:function(e,t){for(var n=e.l+t-2,r=e.read_shift(2),i=e.read_shift(2),a=[];e.l<n;)a.push(Fr(e));if(e.l!==n)throw new Error("MulRK read error");var s=e.read_shift(2);if(a.length!=s-i+1)throw new Error("MulRK length mismatch");return{r,c:i,C:s,rkrec:a}}},190:{f:function(e,t){for(var n=e.l+t-2,r=e.read_shift(2),i=e.read_shift(2),a=[];e.l<n;)a.push(e.read_shift(2));if(e.l!==n)throw new Error("MulBlank read error");var s=e.read_shift(2);if(a.length!=s-i+1)throw new Error("MulBlank length mismatch");return{r,c:i,C:s,ixfe:a}}},193:{f:Tr},197:{},198:{},199:{},200:{},201:{},202:{f:Sr},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:Er},220:{},221:{f:Sr},222:{},224:{f:function(e,t,n){var r={};return r.ifnt=e.read_shift(2),r.numFmtId=e.read_shift(2),r.flags=e.read_shift(2),r.fStyle=r.flags>>2&1,r.data=function(e,t,n,r){var i={},a=e.read_shift(4),s=e.read_shift(4),o=e.read_shift(4),l=e.read_shift(2);return i.patternType=$n[o>>26],r.cellStyles?(i.alc=7&a,i.fWrap=a>>3&1,i.alcV=a>>4&7,i.fJustLast=a>>7&1,i.trot=a>>8&255,i.cIndent=a>>16&15,i.fShrinkToFit=a>>20&1,i.iReadOrder=a>>22&2,i.fAtrNum=a>>26&1,i.fAtrFnt=a>>27&1,i.fAtrAlc=a>>28&1,i.fAtrBdr=a>>29&1,i.fAtrPat=a>>30&1,i.fAtrProt=a>>31&1,i.dgLeft=15&s,i.dgRight=s>>4&15,i.dgTop=s>>8&15,i.dgBottom=s>>12&15,i.icvLeft=s>>16&127,i.icvRight=s>>23&127,i.grbitDiag=s>>30&3,i.icvTop=127&o,i.icvBottom=o>>7&127,i.icvDiag=o>>14&127,i.dgDiag=o>>21&15,i.icvFore=127&l,i.icvBack=l>>7&127,i.fsxButton=l>>14&1,i):i}(e,0,r.fStyle,n),r}},225:{f:function(e,t){return 0===t||e.read_shift(2),1200}},226:{f:Tr},227:{},229:{f:function(e,t){for(var n=[],r=e.read_shift(2);r--;)n.push(Br(e));return n}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(e,t){for(var n=e.l+t,r=e.read_shift(4),i=e.read_shift(4),a=[],s=0;s!=i&&e.l<n;++s)a.push(Cr(e));return a.Count=r,a.Unique=i,a}},253:{f:function(e){var t=Ir(e);return t.isst=e.read_shift(4),t}},255:{f:function(e,t){var n={};return n.dsst=e.read_shift(2),e.l+=t-2,n}},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:Mr},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:Sr},353:{f:Tr},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:function(e,t,n){var r=e.l+t,i=e.read_shift(2),a=e.read_shift(2);if(n.sbcch=a,1025==a||14849==a)return[a,i];if(a<1||a>255)throw new Error("Unexpected SupBook type: "+a);for(var s=Rr(e,a),o=[];r>e.l;)o.push(Lr(e));return[a,i,s,o]}},431:{f:Sr},432:{},433:{},434:{},437:{},438:{f:function(e,t,n){var r=e.l,i="";try{e.l+=4;var a=(n.lastobj||{cmo:[0,0]}).cmo[1];-1==[0,5,7,11,12,14].indexOf(a)?e.l+=6:function(e){var t=e.read_shift(1);e.l++;var n=e.read_shift(2);e.l+=2}(e);var s=e.read_shift(2);e.read_shift(2),Er(e);var o=e.read_shift(2);e.l+=o;for(var l=1;l<e.lens.length-1;++l){if(e.l-r!=e.lens[l])throw new Error("TxO: bad continue record");var c=e[e.l];if((i+=Rr(e,e.lens[l+1]-e.lens[l]-1)).length>=(c?s:2*s))break}if(i.length!==s&&i.length!==2*s)throw new Error("cchText: "+s+" != "+i.length);return e.l=r+t,{t:i}}catch(n){return e.l=r+t,{t:i}}}},439:{f:Sr},440:{f:function(e,t){var n=Br(e);e.l+=16;var r=function(e,t){var n=e.l+t,r=e.read_shift(4);if(2!==r)throw new Error("Unrecognized streamVersion: "+r);var i=e.read_shift(2);e.l+=2;var a,s,o,l,c,u,h="";16&i&&(a=Pr(e,e.l)),128&i&&(s=Pr(e,e.l)),257==(257&i)&&(o=Pr(e,e.l)),1==(257&i)&&(l=function(e,t){var n=e.read_shift(16);switch(n){case"e0c9ea79f9bace118c8200aa004ba90b":return function(e){var t=e.read_shift(4),n=e.l,r=!1;t>24&&(e.l+=t-24,"795881f43b1d7f48af2c825dc4852763"===e.read_shift(16)&&(r=!0),e.l=n);var i=e.read_shift((r?t-24:t)>>1,"utf16le").replace(A,"");return r&&(e.l+=24),i}(e);case"0303000000000000c000000000000046":return function(e){for(var t=e.read_shift(2),n="";t-- >0;)n+="../";var r=e.read_shift(0,"lpstr-ansi");if(e.l+=2,57005!=e.read_shift(2))throw new Error("Bad FileMoniker");if(0===e.read_shift(4))return n+r.replace(/\\/g,"/");var i=e.read_shift(4);if(3!=e.read_shift(2))throw new Error("Bad FileMoniker");return n+e.read_shift(i>>1,"utf16le").replace(A,"")}(e);default:throw new Error("Unsupported Moniker "+n)}}(e,e.l)),8&i&&(h=Pr(e,e.l)),32&i&&(c=e.read_shift(16)),64&i&&(u=fr(e)),e.l=n;var f=s||o||l||"";f&&h&&(f+="#"+h),f||(f="#"+h),2&i&&"/"==f.charAt(0)&&"/"!=f.charAt(1)&&(f="file://"+f);var d={Target:f};return c&&(d.guid=c),u&&(d.time=u),a&&(d.Tooltip=a),d}(e,t-24);return[n,r]}},441:{},442:{f:Lr},443:{},444:{f:Er},445:{},446:{},448:{f:Tr},449:{f:function(e){return e.read_shift(2),e.read_shift(4)},r:2},450:{f:Tr},512:{f:qr},513:{f:ri},515:{f:function(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5);var r=Ir(e),i=Hn(e);return r.val=i,r}},516:{f:function(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5),e.l;var r=Ir(e);2==n.biff&&e.l++;var i=Lr(e,e.l,n);return r.val=i,r}},517:{f:$r},519:{f:ai},520:{f:function(e){var t={};t.r=e.read_shift(2),t.c=e.read_shift(2),t.cnt=e.read_shift(2)-t.c;var n=e.read_shift(2);e.l+=4;var r=e.read_shift(1);return e.l+=3,7&r&&(t.level=7&r),32&r&&(t.hidden=!0),64&r&&(t.hpt=n/20),t}},523:{},545:{f:ei},549:{f:jr},566:{},574:{f:function(e,t,n){return n&&n.biff>=2&&n.biff<5?{}:{RTL:64&e.read_shift(2)}}},638:{f:function(e){var t=e.read_shift(2),n=e.read_shift(2),r=Fr(e);return{r:t,c:n,ixfe:r[0],rknum:r[1]}}},659:{},1048:{},1054:{f:function(e,t,n){return[e.read_shift(2),kr(e,0,n)]}},1084:{},1212:{f:function(e,t,n){var r=Ur(e);e.l++;var i=e.read_shift(1);return[za(e,t-=8,n),i,r]}},2048:{f:function(e,t){e.read_shift(2);var n=Br(e),r=e.read_shift((t-10)/2,"dbcs-cont");return[n,r=r.replace(A,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Wr},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Tr},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t},r:12},2173:{f:function(e,t){e.l,e.l+=2;var n=e.read_shift(2);e.l+=2;for(var r=e.read_shift(2),i=[];r-- >0;)i.push(ia(e,e.l));return{ixfe:n,ext:i}},r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:Sr,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:function(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),i=e.read_shift(2);return[Rr(e,r,n),Rr(e,i,n)]}e.l+=t},r:12},2197:{},2198:{f:function(e,t,n){var r=e.l+t;if(124226!==e.read_shift(4))if(n.cellStyles){var i,a=e.slice(e.l);e.l=r;try{i=Ze(a,{type:"array"})}catch(e){return}var s=qe(i,"theme/theme/theme1.xml",!0);if(s)return ra(s,n)}else e.l=r},r:12},2199:{},2200:{},2201:{},2202:{f:function(e){return[0!==e.read_shift(4),0!==e.read_shift(4),e.read_shift(4)]},r:12},2203:{f:Tr},2204:{},2205:{},2206:{},2207:{},2211:{f:function(e){var t=function(e){var t=e.read_shift(2),n=e.read_shift(2);return e.l+=8,{type:t,flags:n}}(e);if(2211!=t.type)throw new Error("Invalid Future Record "+t.type);return 0!==e.read_shift(4)}},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:Er},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:function(e,t,n){var r={area:!1};if(5!=n.biff)return e.l+=t,r;var i=e.read_shift(1);return e.l+=3,16&i&&(r.area=!0),r}},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:function(e){for(var t=e.read_shift(2),n=[];t-- >0;)n.push(Or(e));return n}},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:qr},1:{},2:{f:function(e){var t=Ir(e);++e.l;var n=e.read_shift(2);return t.t="n",t.val=n,t}},3:{f:function(e){var t=Ir(e);++e.l;var n=Hn(e);return t.t="n",t.val=n,t}},4:{f:function(e,t,n){n.biffguess&&5==n.biff&&(n.biff=2);var r=Ir(e);++e.l;var i=kr(e,0,n);return r.t="str",r.val=i,r}},5:{f:$r},7:{f:function(e){var t=e.read_shift(1);return 0===t?(e.l++,""):e.read_shift(t,"sbcs-cont")}},8:{},9:{f:Wr},11:{},22:{f:Er},30:{f:Xr},31:{},32:{},33:{f:ei},36:{},37:{f:jr},50:{f:function(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}},62:{},52:{},67:{},68:{f:Er},69:{},86:{},126:{},127:{f:function(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i={fmt:t,env:n,len:r,data:e.slice(e.l,e.l+r)};return e.l+=r,i}},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:function(e,t,n){var r=e.l+t,i=Ir(e),a=e.read_shift(2),s=Rr(e,a,n);return e.l=r,i.t="str",i.val=s,i}},223:{},234:{},354:{},421:{},518:{f:Ha},521:{f:Wr},536:{f:Kr},547:{f:Zr},561:{},579:{},1030:{f:Ha},1033:{f:Wr},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function $s(e,t,n,r){var i=t;if(!isNaN(i)){var a=r||(n||[]).length||0,s=e.next(4);s.write_shift(2,i),s.write_shift(2,a),a>0&&Yt(n)&&e.push(n)}}function Ys(e,t){var n=t||{},r=n.dense?[]:{},i=(e=e.replace(/<!--.*?-->/g,"")).match(/<table/i);if(!i)throw new Error("Invalid HTML: could not find <table>");var a=e.match(/<\/table/i),s=i.index,o=a&&a.index||e.length,l=He(e.slice(s,o),/(:?<tr[^>]*>)/i,"<tr>"),c=-1,u=0,h=0,f=0,d={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(s=0;s<l.length;++s){var m=l[s].trim(),g=m.slice(0,3).toLowerCase();if("<tr"!=g){if("<td"==g||"<th"==g){var v=m.split(/<\/t[dh]>/i);for(o=0;o<v.length;++o){var y=v[o].trim();if(y.match(/<t[dh]/i)){for(var b=y,x=0;"<"==b.charAt(0)&&(x=b.indexOf(">"))>-1;)b=b.slice(x+1);for(var _=0;_<p.length;++_){var w=p[_];w.s.c==u&&w.s.r<c&&c<=w.e.r&&(u=w.e.c+1,_=-1)}var T=it(y.slice(0,y.indexOf(">")));f=T.colspan?+T.colspan:1,((h=+T.rowspan)>1||f>1)&&p.push({s:{r:c,c:u},e:{r:c+(h||1)-1,c:u+f-1}});var S=T.t||T["data-t"]||"";if(b.length)if(b=_t(b),d.s.r>c&&(d.s.r=c),d.e.r<c&&(d.e.r=c),d.s.c>u&&(d.s.c=u),d.e.c<u&&(d.e.c=u),b.length){var E={t:"s",v:b};n.raw||!b.trim().length||"s"==S||("TRUE"===b?E={t:"b",v:!0}:"FALSE"===b?E={t:"b",v:!1}:isNaN(Be(b))?isNaN(ze(b).getDate())||(E={t:"d",v:Oe(b)},n.cellDates||(E={t:"n",v:Ee(E.v)}),E.z=n.dateNF||B[14]):E={t:"n",v:Be(b)}),n.dense?(r[c]||(r[c]=[]),r[c][u]=E):r[_n({r:c,c:u})]=E,u+=f}else u+=f;else u+=f}}}}else{if(++c,n.sheetRows&&n.sheetRows<=c){--c;break}u=0}}return r["!ref"]=Tn(d),p.length&&(r["!merges"]=p),r}var Zs={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function Js(e,t){var n,r,i,a,s,o,l,c=t||{},u=Mt(e),h=[],f={name:""},d="",p=0,m={},g=[],v=c.dense?[]:{},y={value:""},b="",x=0,_=[],w=-1,T=-1,S={s:{r:1e6,c:1e7},e:{r:0,c:0}},E=0,M={},A=[],C={},R=[],L=1,k=1,P=[],D={Names:[]},O={},I=["",""],N=[],F={},B="",U=0,z=!1,H=!1,V=0;for(At.lastIndex=0,u=u.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");s=At.exec(u);)switch(s[3]=s[3].replace(/_.*$/,"")){case"table":case"工作表":"/"===s[1]?(S.e.c>=S.s.c&&S.e.r>=S.s.r?v["!ref"]=Tn(S):v["!ref"]="A1:A1",c.sheetRows>0&&c.sheetRows<=S.e.r&&(v["!fullref"]=v["!ref"],S.e.r=c.sheetRows-1,v["!ref"]=Tn(S)),A.length&&(v["!merges"]=A),R.length&&(v["!rows"]=R),i.name=i["名称"]||i.name,"undefined"!=typeof JSON&&JSON.stringify(i),g.push(i.name),m[i.name]=v,H=!1):"/"!==s[0].charAt(s[0].length-2)&&(i=it(s[0],!1),w=T=-1,S.s.r=S.s.c=1e7,S.e.r=S.e.c=0,v=c.dense?[]:{},A=[],R=[],H=!0);break;case"table-row-group":"/"===s[1]?--E:++E;break;case"table-row":case"行":if("/"===s[1]){w+=L,L=1;break}if((a=it(s[0],!1))["行号"]?w=a["行号"]-1:-1==w&&(w=0),(L=+a["number-rows-repeated"]||1)<10)for(V=0;V<L;++V)E>0&&(R[w+V]={level:E});T=-1;break;case"covered-table-cell":"/"!==s[1]&&++T,c.sheetStubs&&(c.dense?(v[w]||(v[w]=[]),v[w][T]={t:"z"}):v[_n({r:w,c:T})]={t:"z"}),b="",_=[];break;case"table-cell":case"数据":if("/"===s[0].charAt(s[0].length-2))++T,y=it(s[0],!1),k=parseInt(y["number-columns-repeated"]||"1",10),o={t:"z",v:null},y.formula&&0!=c.cellFormula&&(o.f=Za(lt(y.formula))),"string"==(y["数据类型"]||y["value-type"])&&(o.t="s",o.v=lt(y["string-value"]||""),c.dense?(v[w]||(v[w]=[]),v[w][T]=o):v[_n({r:w,c:T})]=o),T+=k-1;else if("/"!==s[1]){b="",x=0,_=[],k=1;var G=L?w+L-1:w;if(++T>S.e.c&&(S.e.c=T),T<S.s.c&&(S.s.c=T),w<S.s.r&&(S.s.r=w),G>S.e.r&&(S.e.r=G),N=[],F={},o={t:(y=it(s[0],!1))["数据类型"]||y["value-type"],v:null},c.cellFormula)if(y.formula&&(y.formula=lt(y.formula)),y["number-matrix-columns-spanned"]&&y["number-matrix-rows-spanned"]&&(C={s:{r:w,c:T},e:{r:w+(parseInt(y["number-matrix-rows-spanned"],10)||0)-1,c:T+(parseInt(y["number-matrix-columns-spanned"],10)||0)-1}},o.F=Tn(C),P.push([C,o.F])),y.formula)o.f=Za(y.formula);else for(V=0;V<P.length;++V)w>=P[V][0].s.r&&w<=P[V][0].e.r&&T>=P[V][0].s.c&&T<=P[V][0].e.c&&(o.F=P[V][1]);switch((y["number-columns-spanned"]||y["number-rows-spanned"])&&(C={s:{r:w,c:T},e:{r:w+(parseInt(y["number-rows-spanned"],10)||0)-1,c:T+(parseInt(y["number-columns-spanned"],10)||0)-1}},A.push(C)),y["number-columns-repeated"]&&(k=parseInt(y["number-columns-repeated"],10)),o.t){case"boolean":o.t="b",o.v=dt(y["boolean-value"]);break;case"float":case"percentage":case"currency":o.t="n",o.v=parseFloat(y.value);break;case"date":o.t="d",o.v=Oe(y["date-value"]),c.cellDates||(o.t="n",o.v=Ee(o.v)),o.z="m/d/yy";break;case"time":o.t="n",o.v=Le(y["time-value"])/86400,c.cellDates&&(o.t="d",o.v=Re(o.v)),o.z="HH:MM:SS";break;case"number":o.t="n",o.v=parseFloat(y["数据数值"]);break;default:if("string"!==o.t&&"text"!==o.t&&o.t)throw new Error("Unsupported value type "+o.t);o.t="s",null!=y["string-value"]&&(b=lt(y["string-value"]),_=[])}}else{if(z=!1,"s"===o.t&&(o.v=b||"",_.length&&(o.R=_),z=0==x),O.Target&&(o.l=O),N.length>0&&(o.c=N,N=[]),b&&!1!==c.cellText&&(o.w=b),z&&(o.t="z",delete o.v),(!z||c.sheetStubs)&&!(c.sheetRows&&c.sheetRows<=w))for(var W=0;W<L;++W){if(k=parseInt(y["number-columns-repeated"]||"1",10),c.dense)for(v[w+W]||(v[w+W]=[]),v[w+W][T]=0==W?o:Ne(o);--k>0;)v[w+W][T+k]=Ne(o);else for(v[_n({r:w+W,c:T})]=o;--k>0;)v[_n({r:w+W,c:T+k})]=Ne(o);S.e.c<=T&&(S.e.c=T)}T+=(k=parseInt(y["number-columns-repeated"]||"1",10))-1,k=0,o={},b="",_=[]}O={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if("/"===s[1]){if((n=h.pop())[0]!==s[3])throw"Bad state: "+n}else"/"!==s[0].charAt(s[0].length-2)&&h.push([s[3],!0]);break;case"annotation":if("/"===s[1]){if((n=h.pop())[0]!==s[3])throw"Bad state: "+n;F.t=b,_.length&&(F.R=_),F.a=B,N.push(F)}else"/"!==s[0].charAt(s[0].length-2)&&h.push([s[3],!1]);B="",U=0,b="",x=0,_=[];break;case"creator":"/"===s[1]?B=u.slice(U,s.index):U=s.index+s[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if("/"===s[1]){if((n=h.pop())[0]!==s[3])throw"Bad state: "+n}else"/"!==s[0].charAt(s[0].length-2)&&h.push([s[3],!1]);b="",x=0,_=[];break;case"scientific-number":case"currency-symbol":case"currency-style":case"script":case"libraries":case"automatic-styles":case"default-style":case"page-layout":case"style":case"map":case"font-face":case"paragraph-properties":case"table-properties":case"table-column-properties":case"table-row-properties":case"table-cell-properties":case"fraction":case"boolean-style":case"boolean":case"text-style":case"text-content":case"text-properties":case"embedded-text":case"body":case"电子表格":case"forms":case"table-column":case"table-header-rows":case"table-rows":case"table-column-group":case"table-header-columns":case"table-columns":case"null-date":case"graphic-properties":case"calculation-settings":case"named-expressions":case"label-range":case"label-ranges":case"named-expression":case"sort":case"sort-by":case"sort-groups":case"tab":case"line-break":case"span":case"s":case"date":case"object":case"title":case"标题":case"desc":case"binary-data":case"table-source":case"scenario":case"iteration":case"content-validations":case"content-validation":case"help-message":case"error-message":case"database-ranges":case"filter":case"filter-and":case"filter-or":case"filter-condition":case"list-level-style-bullet":case"list-level-style-number":case"list-level-properties":case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":case"event-listener":case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":case"config-item":case"page-number":case"page-count":case"time":case"cell-range-source":case"detective":case"operation":case"highlighted-range":case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":case"rect":case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if("/"===s[1]){if(M[f.name]=d,(n=h.pop())[0]!==s[3])throw"Bad state: "+n}else"/"!==s[0].charAt(s[0].length-2)&&(d="",f=it(s[0],!1),h.push([s[3],!0]));break;case"number":case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(h[h.length-1][0]){case"time-style":case"date-style":r=it(s[0],!1),d+=Zs[s[3]]["long"===r.style?1:0]}break;case"text":if("/>"===s[0].slice(-2))break;if("/"===s[1])switch(h[h.length-1][0]){case"number-style":case"date-style":case"time-style":d+=u.slice(p,s.index)}else p=s.index+s[0].length;break;case"named-range":I=Ja((r=it(s[0],!1))["cell-range-address"]);var j={Name:r.name,Ref:I[0]+"!"+I[1]};H&&(j.Sheet=g.length),D.Names.push(j);break;case"p":case"文本串":if(["master-styles"].indexOf(h[h.length-1][0])>-1)break;if("/"!==s[1]||y&&y["string-value"])it(s[0],!1),x=s.index+s[0].length;else{var X=(l=void 0,l=u.slice(x,s.index).replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,(function(e,t){return Array(parseInt(t,10)+1).join(" ")})).replace(/<text:tab[^>]*\/>/g,"\t").replace(/<text:line-break\/>/g,"\n"),[lt(l.replace(/<[^>]*>/g,""))]);b=(b.length>0?b+"\n":"")+X[0]}break;case"database-range":if("/"===s[1])break;try{m[(I=Ja(it(s[0])["target-range-address"]))[0]]["!autofilter"]={ref:I[1]}}catch(e){}break;case"a":if("/"!==s[1]){if(!(O=it(s[0],!1)).href)break;O.Target=lt(O.href),delete O.href,"#"==O.Target.charAt(0)&&O.Target.indexOf(".")>-1?(I=Ja(O.Target.slice(1)),O.Target="#"+I[0]+"!"+I[1]):O.Target.match(/^\.\.[\\\/]/)&&(O.Target=O.Target.slice(3))}break;default:switch(s[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(c.WTF)throw new Error(s)}}var q={Sheets:m,SheetNames:g,Workbook:D};return c.bookSheets&&delete q.Sheets,q}function Ks(e,t){t=t||{},We(e,"META-INF/manifest.xml")&&function(e,t){for(var n,r,i=Mt(e);n=At.exec(i);)switch(n[3]){case"manifest":break;case"file-entry":if("/"==(r=it(n[0],!1)).path&&"application/vnd.oasis.opendocument.spreadsheet"!==r.type)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw n}}(Xe(e,"META-INF/manifest.xml"),t);var n=qe(e,"content.xml");if(!n)throw new Error("Missing content.xml in ODS / UOF file");var r=Js(yt(n),t);return We(e,"meta.xml")&&(r.Props=ar(Xe(e,"meta.xml"))),r}function Qs(e,t){return Js(e,t)}function eo(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function to(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):yt(S(e))}function no(e){var t=e.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(t),r=0;return e.forEach((function(e){n.set(e,r),r+=e.length})),n}function ro(e){return 16843009*((e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135)>>>24}function io(e,t){var n=t?t[0]:0,r=127&e[n];e:if(e[n++]>=128){if(r|=(127&e[n])<<7,e[n++]<128)break e;if(r|=(127&e[n])<<14,e[n++]<128)break e;if(r|=(127&e[n])<<21,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,28),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,35),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,42),++n,e[n++]<128)break e}return t&&(t[0]=n),r}function ao(e){var t=0,n=127&e[t];e:if(e[t++]>=128){if(n|=(127&e[t])<<7,e[t++]<128)break e;if(n|=(127&e[t])<<14,e[t++]<128)break e;if(n|=(127&e[t])<<21,e[t++]<128)break e;n|=(127&e[t])<<28}return n}function so(e){for(var t=[],n=[0];n[0]<e.length;){var r,i=n[0],a=io(e,n),s=7&a,o=0;if(0==(a=Math.floor(a/8)))break;switch(s){case 0:for(var l=n[0];e[n[0]++]>=128;);r=e.slice(l,n[0]);break;case 5:o=4,r=e.slice(n[0],n[0]+o),n[0]+=o;break;case 1:o=8,r=e.slice(n[0],n[0]+o),n[0]+=o;break;case 2:o=io(e,n),r=e.slice(n[0],n[0]+o),n[0]+=o;break;default:throw new Error("PB Type ".concat(s," for Field ").concat(a," at offset ").concat(i))}var c={data:r,type:s};null==t[a]?t[a]=[c]:t[a].push(c)}return t}function oo(e,t){return(null==e?void 0:e.map((function(e){return t(e.data)})))||[]}function lo(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var n=[0],r=io(t,n),i=[];n[0]<t.length;){var a=3&t[n[0]];if(0!=a){var s=0,o=0;if(1==a?(o=4+(t[n[0]]>>2&7),s=(224&t[n[0]++])<<3,s|=t[n[0]++]):(o=1+(t[n[0]++]>>2),2==a?(s=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(s=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),i=[no(i)],0==s)throw new Error("Invalid offset 0");if(s>i[0].length)throw new Error("Invalid offset beyond length");if(o>=s)for(i.push(i[0].slice(-s)),o-=s;o>=i[i.length-1].length;)i.push(i[i.length-1]),o-=i[i.length-1].length;i.push(i[0].slice(-s,-s+o))}else{var l=t[n[0]++]>>2;if(l<60)++l;else{var c=l-59;l=t[n[0]],c>1&&(l|=t[n[0]+1]<<8),c>2&&(l|=t[n[0]+2]<<16),c>3&&(l|=t[n[0]+3]<<24),l>>>=0,l++,n[0]+=c}i.push(t.slice(n[0],n[0]+l)),n[0]+=l}}var u=no(i);if(u.length!=r)throw new Error("Unexpected length: ".concat(u.length," != ").concat(r));return u}function co(e,t,n){switch(e[0]){case 0:case 1:case 2:case 3:return function(e,t,n,r){var i,a=eo(e),s=a.getUint32(4,!0),o=(r>1?12:8)+4*ro(s&(r>1?3470:398)),l=-1,c=-1,u=NaN,h=new Date(2001,0,1);switch(512&s&&(l=a.getUint32(o,!0),o+=4),o+=4*ro(s&(r>1?12288:4096)),16&s&&(c=a.getUint32(o,!0),o+=4),32&s&&(u=a.getFloat64(o,!0),o+=8),64&s&&(h.setTime(h.getTime()+1e3*a.getFloat64(o,!0)),o+=8),e[2]){case 0:break;case 2:i={t:"n",v:u};break;case 3:i={t:"s",v:t[c]};break;case 5:i={t:"d",v:h};break;case 6:i={t:"b",v:u>0};break;case 7:i={t:"n",v:u/86400};break;case 8:i={t:"e",v:0};break;case 9:if(l>-1)i={t:"s",v:n[l]};else if(c>-1)i={t:"s",v:t[c]};else{if(isNaN(u))throw new Error("Unsupported cell type ".concat(e.slice(0,4)));i={t:"n",v:u}}break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return i}(e,t,n,e[0]);case 5:return function(e,t,n){var r,i=eo(e),a=i.getUint32(8,!0),s=12,o=-1,l=-1,c=NaN,u=NaN,h=new Date(2001,0,1);switch(1&a&&(c=function(e,t){for(var n=(127&e[t+15])<<7|e[t+14]>>1,r=1&e[t+14],i=t+13;i>=t;--i)r=256*r+e[i];return(128&e[t+15]?-r:r)*Math.pow(10,n-6176)}(e,s),s+=16),2&a&&(u=i.getFloat64(s,!0),s+=8),4&a&&(h.setTime(h.getTime()+1e3*i.getFloat64(s,!0)),s+=8),8&a&&(l=i.getUint32(s,!0),s+=4),16&a&&(o=i.getUint32(s,!0),s+=4),e[1]){case 0:break;case 2:case 10:r={t:"n",v:c};break;case 3:r={t:"s",v:t[l]};break;case 5:r={t:"d",v:h};break;case 6:r={t:"b",v:u>0};break;case 7:r={t:"n",v:u/86400};break;case 8:r={t:"e",v:0};break;case 9:if(!(o>-1))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&a," : ").concat(e.slice(0,4)));r={t:"s",v:n[o]};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&a," : ").concat(e.slice(0,4)))}return r}(e,t,n);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function uo(e){return io(so(e)[1][0].data)}function ho(e,t){var n=so(t.data),r=ao(n[1][0].data),i=n[3],a=[];return(i||[]).forEach((function(t){var n=so(t.data),i=ao(n[1][0].data)>>>0;switch(r){case 1:a[i]=to(n[3][0].data);break;case 8:var s=so(e[uo(n[9][0].data)][0].data),o=e[uo(s[1][0].data)][0],l=ao(o.meta[1][0].data);if(2001!=l)throw new Error("2000 unexpected reference to ".concat(l));var c=so(o.data);a[i]=c[3].map((function(e){return to(e.data)})).join("")}})),a}function fo(e,t){var n={"!ref":"A1"},r=e[uo(so(t.data)[2][0].data)],i=ao(r[0].meta[1][0].data);if(6001!=i)throw new Error("6000 unexpected reference to ".concat(i));return function(e,t,n){var r,i=so(t.data),a={s:{r:0,c:0},e:{r:0,c:0}};if(a.e.r=(ao(i[6][0].data)>>>0)-1,a.e.r<0)throw new Error("Invalid row varint ".concat(i[6][0].data));if(a.e.c=(ao(i[7][0].data)>>>0)-1,a.e.c<0)throw new Error("Invalid col varint ".concat(i[7][0].data));n["!ref"]=Tn(a);var s=so(i[4][0].data),o=ho(e,e[uo(s[4][0].data)][0]),l=(null==(r=s[17])?void 0:r[0])?ho(e,e[uo(s[17][0].data)][0]):[],c=so(s[3][0].data),u=0;c[1].forEach((function(t){var r=so(t.data),i=e[uo(r[2][0].data)][0],a=ao(i.meta[1][0].data);if(6002!=a)throw new Error("6001 unexpected reference to ".concat(a));var s=function(e,t){var n,r=so(t.data),i=(null==(n=null==r?void 0:r[7])?void 0:n[0])?ao(r[7][0].data)>>>0>0?1:0:-1,a=oo(r[5],(function(e){return function(e,t){var n,r,i,a,s,o,l,c,u,h,f,d,p,m,g,v,y=so(e),b=ao(y[1][0].data)>>>0,x=ao(y[2][0].data)>>>0,_=(null==(r=null==(n=y[8])?void 0:n[0])?void 0:r.data)&&ao(y[8][0].data)>0||!1;if((null==(a=null==(i=y[7])?void 0:i[0])?void 0:a.data)&&0!=t)g=null==(o=null==(s=y[7])?void 0:s[0])?void 0:o.data,v=null==(c=null==(l=y[6])?void 0:l[0])?void 0:c.data;else{if(!(null==(h=null==(u=y[4])?void 0:u[0])?void 0:h.data)||1==t)throw"NUMBERS Tile missing ".concat(t," cell storage");g=null==(d=null==(f=y[4])?void 0:f[0])?void 0:d.data,v=null==(m=null==(p=y[3])?void 0:p[0])?void 0:m.data}for(var w=_?4:1,T=eo(g),S=[],E=0;E<g.length/2;++E){var M=T.getUint16(2*E,!0);M<65535&&S.push([E,M])}if(S.length!=x)throw"Expected ".concat(x," cells, found ").concat(S.length);var A=[];for(E=0;E<S.length-1;++E)A[S[E][0]]=v.subarray(S[E][1]*w,S[E+1][1]*w);return S.length>=1&&(A[S[S.length-1][0]]=v.subarray(S[S.length-1][1]*w)),{R:b,cells:A}}(e,i)}));return{nrows:ao(r[4][0].data)>>>0,data:a.reduce((function(e,t){return e[t.R]||(e[t.R]=[]),t.cells.forEach((function(n,r){if(e[t.R][r])throw new Error("Duplicate cell r=".concat(t.R," c=").concat(r));e[t.R][r]=n})),e}),[])}}(0,i);s.data.forEach((function(e,t){e.forEach((function(e,r){var i=_n({r:u+t,c:r}),a=co(e,o,l);a&&(n[i]=a)}))})),u+=s.nrows}))}(e,r[0],n),n}function po(e){var t,n,r,i,a={},s=[];if(e.FullPaths.forEach((function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")})),e.FileIndex.forEach((function(e){if(e.name.match(/\.iwa$/)){var t,n;try{t=function(e){for(var t=[],n=0;n<e.length;){var r=e[n++],i=e[n]|e[n+1]<<8|e[n+2]<<16;n+=3,t.push(lo(r,e.slice(n,n+i))),n+=i}if(n!==e.length)throw new Error("data is not a valid framed stream!");return no(t)}(e.content)}catch(t){return console.log("?? "+e.content.length+" "+(t.message||t))}try{n=function(e){for(var t,n=[],r=[0];r[0]<e.length;){var i=io(e,r),a=so(e.slice(r[0],r[0]+i));r[0]+=i;var s={id:ao(a[1][0].data),messages:[]};a[2].forEach((function(t){var n=so(t.data),i=ao(n[3][0].data);s.messages.push({meta:n,data:e.slice(r[0],r[0]+i)}),r[0]+=i})),(null==(t=a[3])?void 0:t[0])&&(s.merge=ao(a[3][0].data)>>>0>0),n.push(s)}return n}(t)}catch(e){return console.log("## "+(e.message||e))}n.forEach((function(e){a[e.id]=e.messages,s.push(e.id)}))}})),!s.length)throw new Error("File has no messages");var o=(null==(i=null==(r=null==(n=null==(t=null==a?void 0:a[1])?void 0:t[0])?void 0:n.meta)?void 0:r[1])?void 0:i[0].data)&&1==ao(a[1][0].meta[1][0].data)&&a[1][0];if(o||s.forEach((function(e){a[e].forEach((function(e){if(1==ao(e.meta[1][0].data)>>>0){if(o)throw new Error("Document has multiple roots");o=e}}))})),!o)throw new Error("Cannot find Document root");return function(e,t){var n={SheetNames:[],Sheets:{}};if(oo(so(t.data)[1],uo).forEach((function(t){e[t].forEach((function(t){if(2==ao(t.meta[1][0].data)){var r=function(e,t){var n,r=so(t.data),i={name:(null==(n=r[1])?void 0:n[0])?to(r[1][0].data):"",sheets:[]};return oo(r[2],uo).forEach((function(t){e[t].forEach((function(t){6e3==ao(t.meta[1][0].data)&&i.sheets.push(fo(e,t))}))})),i}(e,t);r.sheets.forEach((function(e,t){Eo(n,e,0==t?r.name:r.name+"_"+t,!0)}))}}))})),0==n.SheetNames.length)throw new Error("Empty NUMBERS file");return n}(a,o)}function mo(e){var t;(t=[["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]],function(e){for(var n=0;n!=t.length;++n){var r=t[n];void 0===e[r[0]]&&(e[r[0]]=r[1]),"n"===r[2]&&(e[r[0]]=Number(e[r[0]]))}})(e)}function go(e,t,n,r,i,a,s,o,l,c,u,h){try{a[r]=nr(qe(e,n,!0),t);var f,d=Xe(e,t);switch(o){case"sheet":f=Rs(d,t,i,l,a[r],c,u,h);break;case"chart":if(!(f=function(e,t,n,r,i,a,s,o){return".bin"===t.slice(-4)?function(e,t,n,r,i){if(!e)return e;r||(r={"!id":{}});var a={"!type":"chart","!drawel":null,"!rel":""},s=[],o=!1;return un(e,(function(e,r,l){switch(l){case 550:a["!rel"]=e;break;case 651:i.Sheets[n]||(i.Sheets[n]={}),e.name&&(i.Sheets[n].CodeName=e.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:s.push(l);break;case 38:s.pop();break;default:if(r.T>0)s.push(l);else if(r.T<0)s.pop();else if(!o||t.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}}),t),r["!id"][a["!rel"]]&&(a["!drawel"]=r["!id"][a["!rel"]]),a}(e,r,n,i,a):function(e,t,n,r,i){if(!e)return e;r||(r={"!id":{}});var a,s={"!type":"chart","!drawel":null,"!rel":""},o=e.match(cs);return o&&fs(o[0],0,i,n),(a=e.match(/drawing r:id="(.*?)"/))&&(s["!rel"]=a[1]),r["!id"][s["!rel"]]&&(s["!drawel"]=r["!id"][s["!rel"]]),s}(e,0,n,i,a)}(d,t,i,l,a[r],c))||!f["!drawel"])break;var p=Je(f["!drawel"].Target,t),m=tr(p),g=function(e,t){if(!e)return"??";var n=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][n].Target}(qe(e,p,!0),nr(qe(e,m,!0),p)),v=Je(g,p),y=tr(v);f=function(e,t,n,r,i,a){var s=a||{"!type":"chart"};if(!e)return a;var o=0,l=0,c="A",u={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach((function(e){var t=function(e){var t,n=[],r=e.match(/^<c:numCache>/);(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach((function(e){var t=e.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);t&&(n[+t[1]]=r?+t[2]:t[2])}));var i=lt((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/<c:f>(.*?)<\/c:f>/gm)||[]).forEach((function(e){t=e.replace(/<.*?>/g,"")})),[n,i,t]}(e);u.s.r=u.s.c=0,u.e.c=o,c=bn(o),t[0].forEach((function(e,n){s[c+vn(n)]={t:"n",v:e,z:t[1]},l=n})),u.e.r<l&&(u.e.r=l),++o})),o>0&&(s["!ref"]=Tn(u)),s}(qe(e,v,!0),0,0,nr(qe(e,y,!0),v),0,f);break;case"macro":x=t,a[r],x.slice(-4),f={"!type":"macro"};break;case"dialog":f=function(e,t,n,r,i,a,s,o){return t.slice(-4),{"!type":"dialog"}}(0,t,0,0,a[r]);break;default:throw new Error("Unrecognized sheet type "+o)}s[r]=f;var b=[];a&&a[r]&&we(a[r]).forEach((function(n){var i="";if(a[r][n].Type==er.CMNT){i=Je(a[r][n].Target,t);var s=function(e,t,n){return".bin"===t.slice(-4)?function(e,t){var n=[],r=[],i={},a=!1;return un(e,(function(e,s,o){switch(o){case 632:r.push(e);break;case 635:i=e;break;case 637:i.t=e.t,i.h=e.h,i.r=e.r;break;case 636:if(i.author=r[i.iauthor],delete i.iauthor,t.sheetRows&&i.rfx&&t.sheetRows<=i.rfx.r)break;i.t||(i.t=""),delete i.rfx,n.push(i);break;case 3072:case 37:case 38:break;case 35:a=!0;break;case 36:a=!1;break;default:if(s.T);else if(!a||t.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}})),n}(e,n):function(e,t){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var n=[],r=[],i=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);i&&i[1]&&i[1].split(/<\/\w*:?author>/).forEach((function(e){if(""!==e&&""!==e.trim()){var t=e.match(/<(?:\w+:)?author[^>]*>(.*)/);t&&n.push(t[1])}}));var a=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return a&&a[1]&&a[1].split(/<\/\w*:?comment>/).forEach((function(e){if(""!==e&&""!==e.trim()){var i=e.match(/<(?:\w+:)?comment[^>]*>/);if(i){var a=it(i[0]),s={author:a.authorId&&n[a.authorId]||"sheetjsghost",ref:a.ref,guid:a.guid},o=xn(a.ref);if(!(t.sheetRows&&t.sheetRows<=o.r)){var l=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),c=!!l&&!!l[1]&&yi(l[1])||{r:"",t:"",h:""};s.r=c.r,"<t></t>"==c.r&&(c.t=c.h=""),s.t=(c.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),t.cellHTML&&(s.h=c.h),r.push(s)}}}})),r}(e,n)}(Xe(e,i,!0),i,l);if(!s||!s.length)return;aa(f,s,!1)}a[r][n].Type==er.TCMNT&&(i=Je(a[r][n].Target,t),b=b.concat(function(e,t){var n=[],r=!1,i={},a=0;return e.replace(tt,(function(s,o){var l=it(s);switch(at(l[0])){case"<?xml":case"<ThreadedComments":case"</ThreadedComments>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<threadedComment":i={author:l.personId,guid:l.id,ref:l.ref,T:1};break;case"</threadedComment>":null!=i.t&&n.push(i);break;case"<text>":case"<text":a=o+s.length;break;case"</text>":i.t=e.slice(a,o).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"<mentions":case"<mentions>":case"<ext":r=!0;break;case"</mentions>":case"</ext>":r=!1;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+l[0]+" in threaded comments")}return s})),n}(Xe(e,i,!0),l)))})),b&&b.length&&aa(f,b,!0,l.people||[])}catch(e){if(l.WTF)throw e}var x}function vo(e){return"/"==e.charAt(0)?e.slice(1):e}function yo(e,t){if(ve(),mo(t=t||{}),We(e,"META-INF/manifest.xml"))return Ks(e,t);if(We(e,"objectdata.xml"))return Ks(e,t);if(We(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array support");if(e.FileIndex)return po(e);var n=_e.utils.cfb_new();return Ye(e).forEach((function(t){!function(e,t,n){if(e.FullPaths){var r;if("string"==typeof n)return r=b?x(n):function(e){for(var t=[],n=0,r=e.length+250,i=_(e.length+255),a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s<128)i[n++]=s;else if(s<2048)i[n++]=192|s>>6&31,i[n++]=128|63&s;else if(s>=55296&&s<57344){s=64+(1023&s);var o=1023&e.charCodeAt(++a);i[n++]=240|s>>8&7,i[n++]=128|s>>2&63,i[n++]=128|o>>6&15|(3&s)<<4,i[n++]=128|63&o}else i[n++]=224|s>>12&15,i[n++]=128|s>>6&63,i[n++]=128|63&s;n>r&&(t.push(i.slice(0,n)),n=0,i=_(65535),r=65530)}return t.push(i.slice(0,n)),M(t)}(n),_e.utils.cfb_add(e,t,r);_e.utils.cfb_add(e,t,n)}else e.file(t,n)}(n,t,$e(e,t))})),po(n)}if(!We(e,"[Content_Types].xml")){if(We(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(We(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var r,i,a=Ye(e),s=function(e){var t={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};if(!e||!e.match)return t;var n={};if((e.match(tt)||[]).forEach((function(e){var r=it(e);switch(r[0].replace(nt,"<")){case"<?xml":break;case"<Types":t.xmlns=r["xmlns"+(r[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":n[r.Extension]=r.ContentType;break;case"<Override":void 0!==t[Qn[r.ContentType]]&&t[Qn[r.ContentType]].push(r.PartName)}})),"http://schemas.openxmlformats.org/package/2006/content-types"!==t.xmlns)throw new Error("Unknown Namespace: "+t.xmlns);return t.calcchain=t.calcchains.length>0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=n,delete t.calcchains,t}(qe(e,"[Content_Types].xml")),o=!1;if(0===s.workbooks.length&&Xe(e,i="xl/workbook.xml",!0)&&s.workbooks.push(i),0===s.workbooks.length){if(!Xe(e,i="xl/workbook.bin",!0))throw new Error("Could not find workbook");s.workbooks.push(i),o=!0}"bin"==s.workbooks[0].slice(-3)&&(o=!0);var l={},c={};if(!t.bookSheets&&!t.bookProps){if(Ka=[],s.sst)try{Ka=function(e,t,n){return".bin"===t.slice(-4)?function(e,t){var n=[],r=!1;return un(e,(function(e,i,a){switch(a){case 159:n.Count=e[0],n.Unique=e[1];break;case 19:n.push(e);break;case 160:return!0;case 35:r=!0;break;case 36:r=!1;break;default:if(i.T,!r||t.WTF)throw new Error("Unexpected record 0x"+a.toString(16))}})),n}(e,n):function(e,t){var n=[],r="";if(!e)return n;var i=e.match(bi);if(i){r=i[2].replace(xi,"").split(_i);for(var a=0;a!=r.length;++a){var s=yi(r[a].trim(),t);null!=s&&(n[n.length]=s)}i=it(i[1]),n.Count=i.count,n.Unique=i.uniqueCount}return n}(e,n)}(Xe(e,vo(s.sst)),s.sst,t)}catch(e){if(t.WTF)throw e}t.cellStyles&&s.themes.length&&(l=function(e,t,n){return ra(e,n)}(qe(e,s.themes[0].replace(/^\//,""),!0)||"",s.themes[0],t)),s.style&&(c=function(e,t,n,r){return".bin"===t.slice(-4)?function(e,t,n){var r={NumberFmt:[]};for(var i in B)r.NumberFmt[i]=B[i];r.CellXf=[],r.Fonts=[];var a=[],s=!1;return un(e,(function(e,i,o){switch(o){case 44:r.NumberFmt[e[0]]=e[1],ge(e[1],e[0]);break;case 43:r.Fonts.push(e),null!=e.color.theme&&t&&t.themeElements&&t.themeElements.clrScheme&&(e.color.rgb=Di(t.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0));break;case 1025:case 45:case 46:case 48:case 507:case 572:case 475:case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 47:617==a[a.length-1]&&r.CellXf.push(e);break;case 35:s=!0;break;case 36:s=!1;break;case 37:a.push(o),s=!0;break;case 38:a.pop(),s=!1;break;default:if(i.T>0)a.push(o);else if(i.T<0)a.pop();else if(!s||n.WTF&&37!=a[a.length-1])throw new Error("Unexpected record 0x"+o.toString(16))}})),r}(e,n,r):Xi(e,n,r)}(Xe(e,vo(s.style)),s.style,l,t))}s.links.map((function(n){try{return nr(qe(e,tr(vo(n))),n),function(e,t,n,r){if(".bin"===n.slice(-4))return function(e,t,n,r){if(!e)return e;var i=r||{},a=!1;un(e,(function(e,t,n){switch(n){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:a=!0;break;case 36:a=!1;break;default:if(t.T);else if(!a||i.WTF)throw new Error("Unexpected record 0x"+n.toString(16))}}),i)}(e,0,0,r)}(Xe(e,vo(n)),0,n,t)}catch(e){}}));var u=function(e,t,n){return".bin"===t.slice(-4)?function(e,t){var n={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},r=[],i=!1;t||(t={}),t.biff=12;var a=[],s=[[]];return s.SheetNames=[],s.XTI=[],Xs[16]={n:"BrtFRTArchID$",f:Cs},un(e,(function(e,o,l){switch(l){case 156:s.SheetNames.push(e.name),n.Sheets.push(e);break;case 153:n.WBProps=e;break;case 39:null!=e.Sheet&&(t.SID=e.Sheet),e.Ref=Ba(e.Ptg,0,null,s,t),delete t.SID,delete e.Ptg,a.push(e);break;case 1036:case 361:case 2071:case 158:case 143:case 664:case 353:case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:case 16:break;case 357:case 358:case 355:case 667:s[0].length?s.push([l,e]):s[0]=[l,e],s[s.length-1].XTI=[];break;case 362:0===s.length&&(s[0]=[],s[0].XTI=[]),s[s.length-1].XTI=s[s.length-1].XTI.concat(e),s.XTI=s.XTI.concat(e);break;case 35:case 37:r.push(l),i=!0;break;case 36:case 38:r.pop(),i=!1;break;default:if(o.T);else if(!i||t.WTF&&37!=r[r.length-1]&&35!=r[r.length-1])throw new Error("Unexpected record 0x"+l.toString(16))}}),t),Es(n),n.Names=a,n.supbooks=s,n}(e,n):function(e,t){if(!e)throw new Error("Could not find file");var n={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},r=!1,i="xmlns",a={},s=0;if(e.replace(tt,(function(o,l){var c=it(o);switch(at(c[0])){case"<?xml":case"</workbook>":case"<fileVersion/>":case"</fileVersion>":case"<fileSharing":case"<fileSharing/>":case"</workbookPr>":case"<workbookProtection":case"<workbookProtection/>":case"<bookViews":case"<bookViews>":case"</bookViews>":case"</workbookView>":case"<sheets":case"<sheets>":case"</sheets>":case"</sheet>":case"<functionGroups":case"<functionGroups/>":case"<functionGroup":case"<externalReferences":case"</externalReferences>":case"<externalReferences>":case"<externalReference":case"<definedNames/>":case"<definedName/>":case"</calcPr>":case"<oleSize":case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":case"<customWorkbookView":case"</customWorkbookView>":case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":case"<pivotCache":case"<smartTagPr":case"<smartTagPr/>":case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":case"<smartTagType":case"<webPublishing":case"<webPublishing/>":case"<fileRecoveryPr":case"<fileRecoveryPr/>":case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":case"<webPublishObject":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":case"<ArchID":case"<revisionPtr":break;case"<workbook":o.match(As)&&(i="xmlns"+o.match(/<(\w+):/)[1]),n.xmlns=c[i];break;case"<fileVersion":delete c[0],n.AppVersion=c;break;case"<workbookPr":case"<workbookPr/>":bs.forEach((function(e){if(null!=c[e[0]])switch(e[2]){case"bool":n.WBProps[e[0]]=dt(c[e[0]]);break;case"int":n.WBProps[e[0]]=parseInt(c[e[0]],10);break;default:n.WBProps[e[0]]=c[e[0]]}})),c.codeName&&(n.WBProps.CodeName=yt(c.codeName));break;case"<workbookView":case"<workbookView/>":delete c[0],n.WBView.push(c);break;case"<sheet":switch(c.state){case"hidden":c.Hidden=1;break;case"veryHidden":c.Hidden=2;break;default:c.Hidden=0}delete c.state,c.name=lt(yt(c.name)),delete c[0],n.Sheets.push(c);break;case"<definedNames>":case"<definedNames":case"<ext":case"<AlternateContent":case"<AlternateContent>":r=!0;break;case"</definedNames>":case"</ext>":case"</AlternateContent>":r=!1;break;case"<definedName":(a={}).Name=yt(c.name),c.comment&&(a.Comment=c.comment),c.localSheetId&&(a.Sheet=+c.localSheetId),dt(c.hidden||"0")&&(a.Hidden=!0),s=l+o.length;break;case"</definedName>":a.Ref=lt(yt(e.slice(s,l))),n.Names.push(a);break;case"<calcPr":case"<calcPr/>":delete c[0],n.CalcPr=c;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+c[0]+" in workbook")}return o})),-1===Ct.indexOf(n.xmlns))throw new Error("Unknown Namespace: "+n.xmlns);return Es(n),n}(e,n)}(Xe(e,vo(s.workbooks[0])),s.workbooks[0],t),h={},f="";s.coreprops.length&&((f=Xe(e,vo(s.coreprops[0]),!0))&&(h=ar(f)),0!==s.extprops.length&&(f=Xe(e,vo(s.extprops[0]),!0))&&function(e,t,n){var r={};t||(t={}),e=yt(e),sr.forEach((function(n){var i=(e.match(xt(n[0]))||[])[1];switch(n[2]){case"string":i&&(t[n[1]]=lt(i));break;case"bool":t[n[1]]="true"===i;break;case"raw":var a=e.match(new RegExp("<"+n[0]+"[^>]*>([\\s\\S]*?)</"+n[0]+">"));a&&a.length>0&&(r[n[1]]=a[1])}})),r.HeadingPairs&&r.TitlesOfParts&&or(r.HeadingPairs,r.TitlesOfParts,t,n)}(f,h,t));var d={};t.bookSheets&&!t.bookProps||0!==s.custprops.length&&(f=qe(e,vo(s.custprops[0]),!0))&&(d=function(e,t){var n={},r="",i=e.match(cr);if(i)for(var a=0;a!=i.length;++a){var s=i[a],o=it(s);switch(o[0]){case"<?xml":case"<Properties":break;case"<property":r=lt(o.name);break;case"</property>":r=null;break;default:if(0===s.indexOf("<vt:")){var l=s.split(">"),c=l[0].slice(4),u=l[1];switch(c){case"lpstr":case"bstr":case"lpwstr":case"cy":case"error":n[r]=lt(u);break;case"bool":n[r]=dt(u);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":n[r]=parseInt(u,10);break;case"r4":case"r8":case"decimal":n[r]=parseFloat(u);break;case"filetime":case"date":n[r]=Oe(u);break;default:if("/"==c.slice(-1))break;t.WTF&&"undefined"!=typeof console&&console.warn("Unexpected",s,c,l)}}else if("</"===s.slice(0,2));else if(t.WTF)throw new Error(s)}}return n}(f,t));var p={};if((t.bookSheets||t.bookProps)&&(u.Sheets?r=u.Sheets.map((function(e){return e.name})):h.Worksheets&&h.SheetNames.length>0&&(r=h.SheetNames),t.bookProps&&(p.Props=h,p.Custprops=d),t.bookSheets&&void 0!==r&&(p.SheetNames=r),t.bookSheets?p.SheetNames:t.bookProps))return p;r={};var m,g={};t.bookDeps&&s.calcchain&&(m=Xe(e,vo(s.calcchain)),g=".bin"===s.calcchain.slice(-4)?function(e,t,n){var r=[];return un(e,(function(e,t,n){if(63===n)r.push(e);else if(!t.T)throw new Error("Unexpected record 0x"+n.toString(16))})),r}(m):function(e){var t=[];if(!e)return t;var n=1;return(e.match(tt)||[]).forEach((function(e){var r=it(e);switch(r[0]){case"<?xml":case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete r[0],r.i?n=r.i:r.i=n,t.push(r)}})),t}(m));var v,y,w=0,T={},S=u.Sheets;h.Worksheets=S.length,h.SheetNames=[];for(var E=0;E!=S.length;++E)h.SheetNames[E]=S[E].name;var A=o?"bin":"xml",C=s.workbooks[0].lastIndexOf("/"),R=(s.workbooks[0].slice(0,C+1)+"_rels/"+s.workbooks[0].slice(C+1)+".rels").replace(/^\//,"");We(e,R)||(R="xl/_rels/workbook."+A+".rels");var L=nr(qe(e,R,!0),R.replace(/_rels.*/,"s5s"));(s.metadata||[]).length>=1&&(t.xlmeta=function(e,t,n){return".bin"===t.slice(-4)?function(e,t,n){var r={Types:[],Cell:[],Value:[]},i=n||{},a=[],s=!1,o=2;return un(e,(function(e,t,n){switch(n){case 335:r.Types.push({name:e.name});break;case 51:e.forEach((function(e){1==o?r.Cell.push({type:r.Types[e[0]-1].name,index:e[1]}):0==o&&r.Value.push({type:r.Types[e[0]-1].name,index:e[1]})}));break;case 337:o=e?1:0;break;case 338:o=2;break;case 35:a.push(n),s=!0;break;case 36:a.pop(),s=!1;break;default:if(t.T);else if(!s||i.WTF&&35!=a[a.length-1])throw new Error("Unexpected record 0x"+n.toString(16))}})),r}(e,0,n):function(e,t,n){var r={Types:[],Cell:[],Value:[]};if(!e)return r;var i,a=!1,s=2;return e.replace(tt,(function(e){var t=it(e);switch(at(t[0])){case"<?xml":case"<metadata":case"</metadata>":case"<metadataTypes":case"</metadataTypes>":case"</metadataType>":case"</futureMetadata>":case"<bk>":case"</bk>":case"</rc>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<metadataType":r.Types.push({name:t.name});break;case"<futureMetadata":for(var o=0;o<r.Types.length;++o)r.Types[o].name==t.name&&(i=r.Types[o]);break;case"<rc":1==s?r.Cell.push({type:r.Types[t.t-1].name,index:+t.v}):0==s&&r.Value.push({type:r.Types[t.t-1].name,index:+t.v});break;case"<cellMetadata":s=1;break;case"</cellMetadata>":case"</valueMetadata>":s=2;break;case"<valueMetadata":s=0;break;case"<ext":a=!0;break;case"</ext>":a=!1;break;case"<rvb":if(!i)break;i.offsets||(i.offsets=[]),i.offsets.push(+t.i);break;default:if(!a&&n.WTF)throw new Error("unrecognized "+t[0]+" in metadata")}return e})),r}(e,0,n)}(Xe(e,vo(s.metadata[0])),s.metadata[0],t)),(s.people||[]).length>=1&&(t.people=function(e,t){var n=[],r=!1;return e.replace(tt,(function(e){var i=it(e);switch(at(i[0])){case"<?xml":case"<personList":case"</personList>":case"</person>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<person":n.push({name:i.displayname,id:i.id});break;case"<ext":r=!0;break;case"</ext>":r=!1;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+i[0]+" in threaded comments")}return e})),n}(Xe(e,vo(s.people[0])),t)),L&&(L=function(e,t){if(!e)return 0;try{e=t.map((function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,(n=e["!id"][t.id].Type,er.WS.indexOf(n)>-1?"sheet":er.CS&&n==er.CS?"chart":er.DS&&n==er.DS?"dialog":er.MS&&n==er.MS?"macro":n&&n.length?n:"sheet")];var n}))}catch(e){return null}return e&&0!==e.length?e:null}(L,u.Sheets));var k=Xe(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(w=0;w!=h.Worksheets;++w){var P="sheet";if(L&&L[w]?(v="xl/"+L[w][1].replace(/[\/]?xl\//,""),We(e,v)||(v=L[w][1]),We(e,v)||(v=R.replace(/_rels\/.*$/,"")+L[w][1]),P=L[w][2]):v=(v="xl/worksheets/sheet"+(w+1-k)+"."+A).replace(/sheet0\./,"sheet."),y=v.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(w!=t.sheets)continue e;break;case"string":if(h.SheetNames[w].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var D=!1,O=0;O!=t.sheets.length;++O)"number"==typeof t.sheets[O]&&t.sheets[O]==w&&(D=1),"string"==typeof t.sheets[O]&&t.sheets[O].toLowerCase()==h.SheetNames[w].toLowerCase()&&(D=1);if(!D)continue e}}go(e,v,y,h.SheetNames[w],w,T,r,P,t,u,l,c)}return p={Directory:s,Workbook:u,Props:h,Custprops:d,Deps:g,Sheets:r,SheetNames:h.SheetNames,Strings:Ka,Styles:c,Themes:l,SSF:Ne(B)},t&&t.bookFiles&&(e.files?(p.keys=a,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach((function(t,n){t=t.replace(/^Root Entry[\/]/,""),p.keys.push(t),p.files[t]=e.FileIndex[n]})))),t&&t.bookVBA&&(s.vba.length>0?p.vbaraw=Xe(e,vo(s.vba[0]),!0):s.defaults&&"application/vnd.ms-office.vbaProject"===s.defaults.bin&&(p.vbaraw=Xe(e,"xl/vbaProject.bin",!0))),p}function bo(e,t){var n,r,i=t||{},a="Workbook",s=_e.find(e,a);try{if(a="/!DataSpaces/Version",!(s=_e.find(e,a))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(n=s.content,(r={}).id=n.read_shift(0,"lpp4"),r.R=Ti(n,4),r.U=Ti(n,4),r.W=Ti(n,4),a="/!DataSpaces/DataSpaceMap",!(s=_e.find(e,a))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+a);var o=function(e){var t=[];e.l+=4;for(var n=e.read_shift(4);n-- >0;)t.push(Si(e));return t}(s.content);if(1!==o.length||1!==o[0].comps.length||0!==o[0].comps[0].t||"StrongEncryptionDataSpace"!==o[0].name||"EncryptedPackage"!==o[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(s=_e.find(e,a))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+a);var l=function(e){var t=[];e.l+=4;for(var n=e.read_shift(4);n-- >0;)t.push(e.read_shift(0,"lpp4"));return t}(s.content);if(1!=l.length||"StrongEncryptionTransform"!=l[0])throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(s=_e.find(e,a))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+a);!function(e){var t=function(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=Ti(e,4),t.U=Ti(e,4),t.W=Ti(e,4),t}(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record")}(s.content)}catch(e){}if(a="/EncryptionInfo",!(s=_e.find(e,a))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+a);var c=function(e){var t=Ti(e);switch(t.Minor){case 2:return[t.Minor,Ai(e)];case 3:return[t.Minor,Ci()];case 4:return[t.Minor,Ri(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}(s.content);if(a="/EncryptedPackage",!(s=_e.find(e,a))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(4==c[0]&&"undefined"!=typeof decrypt_agile)return decrypt_agile(c[1],s.content,i.password||"",i);if(2==c[0]&&"undefined"!=typeof decrypt_std76)return decrypt_std76(c[1],s.content,i.password||"",i);throw new Error("File is password-protected")}function xo(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=y(e.slice(0,12));break;case"binary":n=e;break;default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function _o(e,t){var n=0;e:for(;n<e.length;)switch(e.charCodeAt(n)){case 10:case 13:case 32:++n;break;case 60:return zs(e.slice(n),t);default:break e}return hi.to_workbook(e,t)}function wo(e,t,n,r){return r?(n.type="string",hi.to_workbook(e,n)):hi.to_workbook(t,n)}function To(t,n){c();var r=n||{};if("undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer)return To(new Uint8Array(t),((r=Ne(r)).type="array",r));"undefined"!=typeof Uint8Array&&t instanceof Uint8Array&&!r.type&&(r.type="undefined"!=typeof Deno?"buffer":"array");var i,a=t,s=!1;if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),Qa={},r.dateNF&&(Qa.dateNF=r.dateNF),r.type||(r.type=b&&Buffer.isBuffer(t)?"buffer":"base64"),"file"==r.type&&(r.type=b?"buffer":"binary",a=function(t){if("undefined"!=typeof Deno)return Deno.readFileSync(t);if(void 0!==e&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var n=File(t);n.open("r"),n.encoding="binary";var r=n.read();return n.close(),r}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error("Cannot access file "+t)}(t),"undefined"==typeof Uint8Array||b||(r.type="array")),"string"==r.type&&(s=!0,r.type="binary",r.codepage=65001,a=function(e){return e.match(/[^\x00-\x7F]/)?bt(e):e}(t)),"array"==r.type&&"undefined"!=typeof Uint8Array&&t instanceof Uint8Array&&"undefined"!=typeof ArrayBuffer){var o=new ArrayBuffer(3),l=new Uint8Array(o);if(l.foo="bar",!l.foo)return(r=Ne(r)).type="array",To(E(a),r)}switch((i=xo(a,r))[0]){case 208:if(207===i[1]&&17===i[2]&&224===i[3]&&161===i[4]&&177===i[5]&&26===i[6]&&225===i[7])return function(e,t){return _e.find(e,"EncryptedPackage")?bo(e,t):js(e,t)}(_e.read(a,r),r);break;case 9:if(i[1]<=8)return js(a,r);break;case 60:return zs(a,r);case 73:if(73===i[1]&&42===i[2]&&0===i[3])throw new Error("TIFF Image File is not a spreadsheet");if(68===i[1])return function(e,t){var n=t||{},r=!!n.WTF;n.WTF=!0;try{var i=li.to_workbook(e,n);return n.WTF=r,i}catch(i){if(n.WTF=r,!i.message.match(/SYLK bad record ID/)&&r)throw i;return hi.to_workbook(e,t)}}(a,r);break;case 84:if(65===i[1]&&66===i[2]&&76===i[3])return ci.to_workbook(a,r);break;case 80:return 75===i[1]&&i[2]<9&&i[3]<9?function(e,t){var n=e,r=t||{};return r.type||(r.type=b&&Buffer.isBuffer(e)?"buffer":"base64"),yo(Ze(n,r),r)}(a,r):wo(t,a,r,s);case 239:return 60===i[3]?zs(a,r):wo(t,a,r,s);case 255:if(254===i[1])return function(e,t){var n=e;return"base64"==t.type&&(n=y(n)),n=f.utils.decode(1200,n.slice(2),"str"),t.type="binary",_o(n,t)}(a,r);if(0===i[1]&&2===i[2]&&0===i[3])return fi.to_workbook(a,r);break;case 0:if(0===i[1]){if(i[2]>=2&&0===i[3])return fi.to_workbook(a,r);if(0===i[2]&&(8===i[3]||9===i[3]))return fi.to_workbook(a,r)}break;case 3:case 131:case 139:case 140:return oi.to_workbook(a,r);case 123:if(92===i[1]&&114===i[2]&&116===i[3])return ki.to_workbook(a,r);break;case 10:case 13:case 32:return function(e,t){var n="",r=xo(e,t);switch(t.type){case"base64":n=y(e);break;case"binary":n=e;break;case"buffer":n=e.toString("binary");break;case"array":n=Ie(e);break;default:throw new Error("Unrecognized type "+t.type)}return 239==r[0]&&187==r[1]&&191==r[2]&&(n=yt(n)),t.type="binary",_o(n,t)}(a,r);case 137:if(80===i[1]&&78===i[2]&&71===i[3])throw new Error("PNG Image File is not a spreadsheet")}return si.indexOf(i[0])>-1&&i[2]<=12&&i[3]<=31?oi.to_workbook(a,r):wo(t,a,r,s)}function So(e,t,n,r,i,a,s,o){var l=vn(n),c=o.defval,u=o.raw||!Object.prototype.hasOwnProperty.call(o,"raw"),h=!0,f=1===i?[]:{};if(1!==i)if(Object.defineProperty)try{Object.defineProperty(f,"__rowNum__",{value:n,enumerable:!1})}catch(e){f.__rowNum__=n}else f.__rowNum__=n;if(!s||e[n])for(var d=t.s.c;d<=t.e.c;++d){var p=s?e[n][d]:e[r[d]+l];if(void 0!==p&&void 0!==p.t){var m=p.v;switch(p.t){case"z":if(null==m)break;continue;case"e":m=0==m?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(null!=a[d]){if(null==m)if("e"==p.t&&null===m)f[a[d]]=null;else if(void 0!==c)f[a[d]]=c;else{if(!u||null!==m)continue;f[a[d]]=null}else f[a[d]]=u&&("n"!==p.t||"n"===p.t&&!1!==o.rawNumbers)?m:En(p,m,o);null!=m&&(h=!1)}}else{if(void 0===c)continue;null!=a[d]&&(f[a[d]]=c)}}return{row:f,isempty:h}}function Eo(e,t,n,r){var i=1;if(!n)for(;i<=65535&&-1!=e.SheetNames.indexOf(n="Sheet"+i);++i,n=void 0);if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&e.SheetNames.indexOf(n)>=0){var a=n.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var s=a&&a[1]||n;for(++i;i<=65535&&-1!=e.SheetNames.indexOf(n=s+i);++i);}if(function(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;Ms.forEach((function(r){if(-1!=e.indexOf(r)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}}))}(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}var Mo,Ao=n(354),Co=n.n(Ao),Ro=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((r=r.apply(e,t||[])).next())}))};!function(e){e.version="1.1";class t{static getFileMD5(e){return new Promise(((t,n)=>{const r=new FileReader;r.readAsBinaryString(e),r.onload=r=>{(new(Co())).md5(e,((e,r)=>{null!==e?n(e):t(r)}),(e=>{console.log("getFileMD5 progress number:",e)}))}}))}static getBase64(e){return new Promise(((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=e=>n(e)}))}static getFileChunks(e,t=1048576){let{size:n}=e,r=Math.ceil(n/t),i=new Array;if(n>t)for(let n=0;n<r;n++){let r=n*t,a=(n+1)*t,s=e.slice(r,a);i.push(s)}else i.push(e);return{fileChunks:i,sliceSize:t,chunksLength:i.length}}static uploadFiles(e,n,r=(e=>{}),i=(e=>{}),a=1048576){return Ro(this,void 0,void 0,(function*(){if(""==e[0].fileName||""==e[0].fileSize||0==e[0].fileSize)throw new Error("文件异常");for(let i=0;i<e.length;i++){const s=e[i],o=yield t.getFileMD5(s);let{fileChunks:l,sliceSize:c,chunksLength:u}=t.getFileChunks(s,a);for(let e in l){let r=l[Number(e)];const a=yield t.getBase64(r);let h={chunkIndex:Number(e),chunksLength:u,sliceSize:c,chunkSize:r.size,fileSize:s.size,fileName:s.name,data:a.split(";base64,")[1],lastModifiedDate:s.lastModifiedDate,md5:o,index:i,dataType:"base64"};yield n(h)}r(s)}i(e)}))}static selectFile(e={multiple:!0,accept:"*/*"}){return new Promise(((t,n)=>{const r=document.createElement("input");r.type="file",r.accept=e.accept,r.multiple=e.multiple,r.addEventListener("change",(e=>{try{null===r.files?n(null):t(r.files)}catch(e){n(e)}})),r.click()}))}static readLocalExcel(e,t={multiple:!0,accept:"*/*"}){this.selectFile(t).then((t=>{if(null!==t)for(let n=0;n<t.length;n++){const r=t[n];let i=new FileReader;i.readAsArrayBuffer(r),i.onloadend=function(t){return Ro(this,void 0,void 0,(function*(){let n=To(t.target.result,{type:"binary"});e(r,n)}))}}})).catch((e=>{throw e}))}}function n(e,t){let r,i;e>t?(r=e,i=t):(r=t,i=e);let a=r%i;return 0===a?i:n(i,a)}e.File=t,e.fullScreen=(e=null)=>{null===e&&(e=document.documentElement),e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen?e.msRequestFullscreen():e.oRequestFullscreen?e.oRequestFullscreen():e.webkitRequestFullScreen&&e.webkitRequestFullScreen()},e.getVideoScale=e=>Ro(this,void 0,void 0,(function*(){const t=document.createElement("video");t.setAttribute("width","10"),t.setAttribute("height","10"),t.setAttribute("style","position: absolute;opacity: 0;z-index: -5;top: 0;"),t.setAttribute("src",e),document.body.appendChild(t);const r=new Promise((function(e,r){t.addEventListener("canplay",(function(t){const r=n(t.target.videoWidth,t.target.videoHeight);e([t.target.videoWidth/r,t.target.videoHeight/r])}))})),i=yield r;return document.body.removeChild(t),i})),e.getVideoBase64=(t,n=-1,r=2e3)=>Ro(this,void 0,void 0,(function*(){const i=yield e.getVideoScale(t),a=i[0]+"",s=i[1]+"";return yield new Promise((function(e){let i="",o=document.createElement("video");o.setAttribute("crossOrigin","anonymous"),o.setAttribute("src",t),o.setAttribute("width",a),o.setAttribute("height",s),o.setAttribute("autoplay","autoplay"),document.body.appendChild(o),o.addEventListener("loadeddata",(function(){o.pause(),-1===n&&(n=Math.random()*o.duration),o.currentTime=n,setTimeout((()=>{let t=document.createElement("canvas");t.width=o.width,t.height=o.height,t.getContext("2d").drawImage(o,0,0,o.width,o.height),i=t.toDataURL("image/jpeg"),document.body.removeChild(o),e(i)}),r)}))}))}))}(Mo||(Mo={}));var Lo=Object.freeze({});function ko(e){return null==e}function Po(e){return null!=e}function Do(e){return!0===e}function Oo(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function Io(e){return null!==e&&"object"==typeof e}var No=Object.prototype.toString;function Fo(e){return"[object Object]"===No.call(e)}function Bo(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function Uo(e){return Po(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function zo(e){return null==e?"":Array.isArray(e)||Fo(e)&&e.toString===No?JSON.stringify(e,null,2):String(e)}function Ho(e){var t=parseFloat(e);return isNaN(t)?e:t}function Vo(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}Vo("slot,component",!0);var Go=Vo("key,ref,slot,slot-scope,is");function Wo(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var jo=Object.prototype.hasOwnProperty;function Xo(e,t){return jo.call(e,t)}function qo(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var $o=/-(\w)/g,Yo=qo((function(e){return e.replace($o,(function(e,t){return t?t.toUpperCase():""}))})),Zo=qo((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),Jo=/\B([A-Z])/g,Ko=qo((function(e){return e.replace(Jo,"-$1").toLowerCase()})),Qo=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function el(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function tl(e,t){for(var n in t)e[n]=t[n];return e}function nl(e){for(var t={},n=0;n<e.length;n++)e[n]&&tl(t,e[n]);return t}function rl(e,t,n){}var il=function(e,t,n){return!1},al=function(e){return e};function sl(e,t){if(e===t)return!0;var n=Io(e),r=Io(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),a=Array.isArray(t);if(i&&a)return e.length===t.length&&e.every((function(e,n){return sl(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||a)return!1;var s=Object.keys(e),o=Object.keys(t);return s.length===o.length&&s.every((function(n){return sl(e[n],t[n])}))}catch(e){return!1}}function ol(e,t){for(var n=0;n<e.length;n++)if(sl(e[n],t))return n;return-1}function ll(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var cl="data-server-rendered",ul=["component","directive","filter"],hl=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],fl={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:il,isReservedAttr:il,isUnknownElement:il,getTagNamespace:rl,parsePlatformTagName:al,mustUseProp:il,async:!0,_lifecycleHooks:hl};function dl(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var pl,ml=new RegExp("[^"+/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/.source+".$_\\d]"),gl="__proto__"in{},vl="undefined"!=typeof window,yl="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,bl=yl&&WXEnvironment.platform.toLowerCase(),xl=vl&&window.navigator.userAgent.toLowerCase(),_l=xl&&/msie|trident/.test(xl),wl=xl&&xl.indexOf("msie 9.0")>0,Tl=xl&&xl.indexOf("edge/")>0,Sl=(xl&&xl.indexOf("android"),xl&&/iphone|ipad|ipod|ios/.test(xl)||"ios"===bl),El=(xl&&/chrome\/\d+/.test(xl),xl&&/phantomjs/.test(xl),xl&&xl.match(/firefox\/(\d+)/)),Ml={}.watch,Al=!1;if(vl)try{var Cl={};Object.defineProperty(Cl,"passive",{get:function(){Al=!0}}),window.addEventListener("test-passive",null,Cl)}catch(e){}var Rl=function(){return void 0===pl&&(pl=!vl&&!yl&&void 0!==n.g&&n.g.process&&"server"===n.g.process.env.VUE_ENV),pl},Ll=vl&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function kl(e){return"function"==typeof e&&/native code/.test(e.toString())}var Pl,Dl="undefined"!=typeof Symbol&&kl(Symbol)&&"undefined"!=typeof Reflect&&kl(Reflect.ownKeys);Pl="undefined"!=typeof Set&&kl(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var Ol=rl,Il=0,Nl=function(){this.id=Il++,this.subs=[]};Nl.prototype.addSub=function(e){this.subs.push(e)},Nl.prototype.removeSub=function(e){Wo(this.subs,e)},Nl.prototype.depend=function(){Nl.target&&Nl.target.addDep(this)},Nl.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},Nl.target=null;var Fl=[];function Bl(e){Fl.push(e),Nl.target=e}function Ul(){Fl.pop(),Nl.target=Fl[Fl.length-1]}var zl=function(e,t,n,r,i,a,s,o){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=o,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},Hl={child:{configurable:!0}};Hl.child.get=function(){return this.componentInstance},Object.defineProperties(zl.prototype,Hl);var Vl=function(e){void 0===e&&(e="");var t=new zl;return t.text=e,t.isComment=!0,t};function Gl(e){return new zl(void 0,void 0,void 0,String(e))}function Wl(e){var t=new zl(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var jl=Array.prototype,Xl=Object.create(jl);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=jl[e];dl(Xl,e,(function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,a=t.apply(this,n),s=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&s.observeArray(i),s.dep.notify(),a}))}));var ql=Object.getOwnPropertyNames(Xl),$l=!0;function Yl(e){$l=e}var Zl=function(e){this.value=e,this.dep=new Nl,this.vmCount=0,dl(e,"__ob__",this),Array.isArray(e)?(gl?function(e,t){e.__proto__=t}(e,Xl):function(e,t,n){for(var r=0,i=n.length;r<i;r++){var a=n[r];dl(e,a,t[a])}}(e,Xl,ql),this.observeArray(e)):this.walk(e)};function Jl(e,t){var n;if(Io(e)&&!(e instanceof zl))return Xo(e,"__ob__")&&e.__ob__ instanceof Zl?n=e.__ob__:$l&&!Rl()&&(Array.isArray(e)||Fo(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Zl(e)),t&&n&&n.vmCount++,n}function Kl(e,t,n,r,i){var a=new Nl,s=Object.getOwnPropertyDescriptor(e,t);if(!s||!1!==s.configurable){var o=s&&s.get,l=s&&s.set;o&&!l||2!==arguments.length||(n=e[t]);var c=!i&&Jl(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=o?o.call(e):n;return Nl.target&&(a.depend(),c&&(c.dep.depend(),Array.isArray(t)&&tc(t))),t},set:function(t){var r=o?o.call(e):n;t===r||t!=t&&r!=r||o&&!l||(l?l.call(e,t):n=t,c=!i&&Jl(t),a.notify())}})}}function Ql(e,t,n){if(Array.isArray(e)&&Bo(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Kl(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function ec(e,t){if(Array.isArray(e)&&Bo(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||Xo(e,t)&&(delete e[t],n&&n.dep.notify())}}function tc(e){for(var t=void 0,n=0,r=e.length;n<r;n++)(t=e[n])&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&tc(t)}Zl.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Kl(e,t[n])},Zl.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Jl(e[t])};var nc=fl.optionMergeStrategies;function rc(e,t){if(!t)return e;for(var n,r,i,a=Dl?Reflect.ownKeys(t):Object.keys(t),s=0;s<a.length;s++)"__ob__"!==(n=a[s])&&(r=e[n],i=t[n],Xo(e,n)?r!==i&&Fo(r)&&Fo(i)&&rc(r,i):Ql(e,n,i));return e}function ic(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,i="function"==typeof e?e.call(n,n):e;return r?rc(r,i):i}:t?e?function(){return rc("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function ac(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function sc(e,t,n,r){var i=Object.create(e||null);return t?tl(i,t):i}nc.data=function(e,t,n){return n?ic(e,t,n):t&&"function"!=typeof t?e:ic(e,t)},hl.forEach((function(e){nc[e]=ac})),ul.forEach((function(e){nc[e+"s"]=sc})),nc.watch=function(e,t,n,r){if(e===Ml&&(e=void 0),t===Ml&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var a in tl(i,e),t){var s=i[a],o=t[a];s&&!Array.isArray(s)&&(s=[s]),i[a]=s?s.concat(o):Array.isArray(o)?o:[o]}return i},nc.props=nc.methods=nc.inject=nc.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return tl(i,e),t&&tl(i,t),i},nc.provide=ic;var oc=function(e,t){return void 0===t?e:t};function lc(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){var n=e.props;if(n){var r,i,a={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(a[Yo(i)]={type:null});else if(Fo(n))for(var s in n)i=n[s],a[Yo(s)]=Fo(i)?i:{type:i};e.props=a}}(t),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(Fo(n))for(var a in n){var s=n[a];r[a]=Fo(s)?tl({from:a},s):{from:s}}}}(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=lc(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=lc(e,t.mixins[r],n);var a,s={};for(a in e)o(a);for(a in t)Xo(e,a)||o(a);function o(r){var i=nc[r]||oc;s[r]=i(e[r],t[r],n,r)}return s}function cc(e,t,n,r){if("string"==typeof n){var i=e[t];if(Xo(i,n))return i[n];var a=Yo(n);if(Xo(i,a))return i[a];var s=Zo(a);return Xo(i,s)?i[s]:i[n]||i[a]||i[s]}}function uc(e,t,n,r){var i=t[e],a=!Xo(n,e),s=n[e],o=pc(Boolean,i.type);if(o>-1)if(a&&!Xo(i,"default"))s=!1;else if(""===s||s===Ko(e)){var l=pc(String,i.type);(l<0||o<l)&&(s=!0)}if(void 0===s){s=function(e,t,n){if(Xo(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"==typeof r&&"Function"!==fc(t.type)?r.call(e):r}}(r,i,e);var c=$l;Yl(!0),Jl(s),Yl(c)}return s}var hc=/^\s*function (\w+)/;function fc(e){var t=e&&e.toString().match(hc);return t?t[1]:""}function dc(e,t){return fc(e)===fc(t)}function pc(e,t){if(!Array.isArray(t))return dc(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(dc(t[n],e))return n;return-1}function mc(e,t,n){Bl();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var a=0;a<i.length;a++)try{if(!1===i[a].call(r,e,t,n))return}catch(e){vc(e,r,"errorCaptured hook")}}vc(e,t,n)}finally{Ul()}}function gc(e,t,n,r,i){var a;try{(a=n?e.apply(t,n):e.call(t))&&!a._isVue&&Uo(a)&&!a._handled&&(a.catch((function(e){return mc(e,r,i+" (Promise/async)")})),a._handled=!0)}catch(e){mc(e,r,i)}return a}function vc(e,t,n){if(fl.errorHandler)try{return fl.errorHandler.call(null,e,t,n)}catch(t){t!==e&&yc(t)}yc(e)}function yc(e,t,n){if(!vl&&!yl||"undefined"==typeof console)throw e;console.error(e)}var bc,xc=!1,_c=[],wc=!1;function Tc(){wc=!1;var e=_c.slice(0);_c.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&kl(Promise)){var Sc=Promise.resolve();bc=function(){Sc.then(Tc),Sl&&setTimeout(rl)},xc=!0}else if(_l||"undefined"==typeof MutationObserver||!kl(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())bc="undefined"!=typeof setImmediate&&kl(setImmediate)?function(){setImmediate(Tc)}:function(){setTimeout(Tc,0)};else{var Ec=1,Mc=new MutationObserver(Tc),Ac=document.createTextNode(String(Ec));Mc.observe(Ac,{characterData:!0}),bc=function(){Ec=(Ec+1)%2,Ac.data=String(Ec)},xc=!0}function Cc(e,t){var n;if(_c.push((function(){if(e)try{e.call(t)}catch(e){mc(e,t,"nextTick")}else n&&n(t)})),wc||(wc=!0,bc()),!e&&"undefined"!=typeof Promise)return new Promise((function(e){n=e}))}var Rc=new Pl;function Lc(e){kc(e,Rc),Rc.clear()}function kc(e,t){var n,r,i=Array.isArray(e);if(!(!i&&!Io(e)||Object.isFrozen(e)||e instanceof zl)){if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a))return;t.add(a)}if(i)for(n=e.length;n--;)kc(e[n],t);else for(n=(r=Object.keys(e)).length;n--;)kc(e[r[n]],t)}}var Pc=qo((function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}}));function Dc(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return gc(r,null,arguments,t,"v-on handler");for(var i=r.slice(),a=0;a<i.length;a++)gc(i[a],null,e,t,"v-on handler")}return n.fns=e,n}function Oc(e,t,n,r,i,a){var s,o,l,c;for(s in e)o=e[s],l=t[s],c=Pc(s),ko(o)||(ko(l)?(ko(o.fns)&&(o=e[s]=Dc(o,a)),Do(c.once)&&(o=e[s]=i(c.name,o,c.capture)),n(c.name,o,c.capture,c.passive,c.params)):o!==l&&(l.fns=o,e[s]=l));for(s in t)ko(e[s])&&r((c=Pc(s)).name,t[s],c.capture)}function Ic(e,t,n){var r;e instanceof zl&&(e=e.data.hook||(e.data.hook={}));var i=e[t];function a(){n.apply(this,arguments),Wo(r.fns,a)}ko(i)?r=Dc([a]):Po(i.fns)&&Do(i.merged)?(r=i).fns.push(a):r=Dc([i,a]),r.merged=!0,e[t]=r}function Nc(e,t,n,r,i){if(Po(t)){if(Xo(t,n))return e[n]=t[n],i||delete t[n],!0;if(Xo(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function Fc(e){return Oo(e)?[Gl(e)]:Array.isArray(e)?Uc(e):void 0}function Bc(e){return Po(e)&&Po(e.text)&&!1===e.isComment}function Uc(e,t){var n,r,i,a,s=[];for(n=0;n<e.length;n++)ko(r=e[n])||"boolean"==typeof r||(a=s[i=s.length-1],Array.isArray(r)?r.length>0&&(Bc((r=Uc(r,(t||"")+"_"+n))[0])&&Bc(a)&&(s[i]=Gl(a.text+r[0].text),r.shift()),s.push.apply(s,r)):Oo(r)?Bc(a)?s[i]=Gl(a.text+r):""!==r&&s.push(Gl(r)):Bc(r)&&Bc(a)?s[i]=Gl(a.text+r.text):(Do(e._isVList)&&Po(r.tag)&&ko(r.key)&&Po(t)&&(r.key="__vlist"+t+"_"+n+"__"),s.push(r)));return s}function zc(e,t){if(e){for(var n=Object.create(null),r=Dl?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var a=r[i];if("__ob__"!==a){for(var s=e[a].from,o=t;o;){if(o._provided&&Xo(o._provided,s)){n[a]=o._provided[s];break}o=o.$parent}if(!o&&"default"in e[a]){var l=e[a].default;n[a]="function"==typeof l?l.call(t):l}}}return n}}function Hc(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var a=e[r],s=a.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,a.context!==t&&a.fnContext!==t||!s||null==s.slot)(n.default||(n.default=[])).push(a);else{var o=s.slot,l=n[o]||(n[o]=[]);"template"===a.tag?l.push.apply(l,a.children||[]):l.push(a)}}for(var c in n)n[c].every(Vc)&&delete n[c];return n}function Vc(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Gc(e){return e.isComment&&e.asyncFactory}function Wc(e,t,n){var r,i=Object.keys(t).length>0,a=e?!!e.$stable:!i,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==Lo&&s===n.$key&&!i&&!n.$hasNormal)return n;for(var o in r={},e)e[o]&&"$"!==o[0]&&(r[o]=jc(t,o,e[o]))}else r={};for(var l in t)l in r||(r[l]=Xc(t,l));return e&&Object.isExtensible(e)&&(e._normalized=r),dl(r,"$stable",a),dl(r,"$key",s),dl(r,"$hasNormal",i),r}function jc(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({}),t=(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:Fc(e))&&e[0];return e&&(!t||1===e.length&&t.isComment&&!Gc(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function Xc(e,t){return function(){return e[t]}}function qc(e,t){var n,r,i,a,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(Io(e))if(Dl&&e[Symbol.iterator]){n=[];for(var o=e[Symbol.iterator](),l=o.next();!l.done;)n.push(t(l.value,n.length)),l=o.next()}else for(a=Object.keys(e),n=new Array(a.length),r=0,i=a.length;r<i;r++)s=a[r],n[r]=t(e[s],s,r);return Po(n)||(n=[]),n._isVList=!0,n}function $c(e,t,n,r){var i,a=this.$scopedSlots[e];a?(n=n||{},r&&(n=tl(tl({},r),n)),i=a(n)||("function"==typeof t?t():t)):i=this.$slots[e]||("function"==typeof t?t():t);var s=n&&n.slot;return s?this.$createElement("template",{slot:s},i):i}function Yc(e){return cc(this.$options,"filters",e)||al}function Zc(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Jc(e,t,n,r,i){var a=fl.keyCodes[t]||n;return i&&r&&!fl.keyCodes[t]?Zc(i,r):a?Zc(a,e):r?Ko(r)!==t:void 0===e}function Kc(e,t,n,r,i){if(n&&Io(n)){var a;Array.isArray(n)&&(n=nl(n));var s=function(s){if("class"===s||"style"===s||Go(s))a=e;else{var o=e.attrs&&e.attrs.type;a=r||fl.mustUseProp(t,o,s)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=Yo(s),c=Ko(s);l in a||c in a||(a[s]=n[s],i&&((e.on||(e.on={}))["update:"+s]=function(e){n[s]=e}))};for(var o in n)s(o)}return e}function Qc(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||tu(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r}function eu(e,t,n){return tu(e,"__once__"+t+(n?"_"+n:""),!0),e}function tu(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&nu(e[r],t+"_"+r,n);else nu(e,t,n)}function nu(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function ru(e,t){if(t&&Fo(t)){var n=e.on=e.on?tl({},e.on):{};for(var r in t){var i=n[r],a=t[r];n[r]=i?[].concat(i,a):a}}return e}function iu(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var a=e[i];Array.isArray(a)?iu(a,t,n):a&&(a.proxy&&(a.fn.proxy=!0),t[a.key]=a.fn)}return r&&(t.$key=r),t}function au(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function su(e,t){return"string"==typeof e?t+e:e}function ou(e){e._o=eu,e._n=Ho,e._s=zo,e._l=qc,e._t=$c,e._q=sl,e._i=ol,e._m=Qc,e._f=Yc,e._k=Jc,e._b=Kc,e._v=Gl,e._e=Vl,e._u=iu,e._g=ru,e._d=au,e._p=su}function lu(e,t,n,r,i){var a,s=this,o=i.options;Xo(r,"_uid")?(a=Object.create(r))._original=r:(a=r,r=r._original);var l=Do(o._compiled),c=!l;this.data=e,this.props=t,this.children=n,this.parent=r,this.listeners=e.on||Lo,this.injections=zc(o.inject,r),this.slots=function(){return s.$slots||Wc(e.scopedSlots,s.$slots=Hc(n,r)),s.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Wc(e.scopedSlots,this.slots())}}),l&&(this.$options=o,this.$slots=this.slots(),this.$scopedSlots=Wc(e.scopedSlots,this.$slots)),o._scopeId?this._c=function(e,t,n,i){var s=mu(a,e,t,n,i,c);return s&&!Array.isArray(s)&&(s.fnScopeId=o._scopeId,s.fnContext=r),s}:this._c=function(e,t,n,r){return mu(a,e,t,n,r,c)}}function cu(e,t,n,r,i){var a=Wl(e);return a.fnContext=n,a.fnOptions=r,t.slot&&((a.data||(a.data={})).slot=t.slot),a}function uu(e,t){for(var n in t)e[Yo(n)]=t[n]}ou(lu.prototype);var hu={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;hu.prepatch(n,n)}else{var r=e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return Po(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}(e,Eu);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,r,i){var a=r.data.scopedSlots,s=e.$scopedSlots,o=!!(a&&!a.$stable||s!==Lo&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key||!a&&e.$scopedSlots.$key),l=!!(i||e.$options._renderChildren||o);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=i,e.$attrs=r.data.attrs||Lo,e.$listeners=n||Lo,t&&e.$options.props){Yl(!1);for(var c=e._props,u=e.$options._propKeys||[],h=0;h<u.length;h++){var f=u[h],d=e.$options.props;c[f]=uc(f,d,t,e)}Yl(!0),e.$options.propsData=t}n=n||Lo;var p=e.$options._parentListeners;e.$options._parentListeners=n,Su(e,n,p),l&&(e.$slots=Hc(i,r.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,Lu(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,Pu.push(t)):Cu(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Ru(t,!0):t.$destroy())}},fu=Object.keys(hu);function du(e,t,n,r,i){if(!ko(e)){var a=n.$options._base;if(Io(e)&&(e=a.extend(e)),"function"==typeof e){var s;if(ko(e.cid)&&(e=function(e,t){if(Do(e.error)&&Po(e.errorComp))return e.errorComp;if(Po(e.resolved))return e.resolved;var n=yu;if(n&&Po(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),Do(e.loading)&&Po(e.loadingComp))return e.loadingComp;if(n&&!Po(e.owners)){var r=e.owners=[n],i=!0,a=null,s=null;n.$on("hook:destroyed",(function(){return Wo(r,n)}));var o=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==a&&(clearTimeout(a),a=null),null!==s&&(clearTimeout(s),s=null))},l=ll((function(n){e.resolved=bu(n,t),i?r.length=0:o(!0)})),c=ll((function(t){Po(e.errorComp)&&(e.error=!0,o(!0))})),u=e(l,c);return Io(u)&&(Uo(u)?ko(e.resolved)&&u.then(l,c):Uo(u.component)&&(u.component.then(l,c),Po(u.error)&&(e.errorComp=bu(u.error,t)),Po(u.loading)&&(e.loadingComp=bu(u.loading,t),0===u.delay?e.loading=!0:a=setTimeout((function(){a=null,ko(e.resolved)&&ko(e.error)&&(e.loading=!0,o(!1))}),u.delay||200)),Po(u.timeout)&&(s=setTimeout((function(){s=null,ko(e.resolved)&&c(null)}),u.timeout)))),i=!1,e.loading?e.loadingComp:e.resolved}}(s=e,a),void 0===e))return function(e,t,n,r,i){var a=Vl();return a.asyncFactory=e,a.asyncMeta={data:t,context:n,children:r,tag:i},a}(s,t,n,r,i);t=t||{},Ju(e),Po(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var i=t.on||(t.on={}),a=i[r],s=t.model.callback;Po(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(i[r]=[s].concat(a)):i[r]=s}(e.options,t);var o=function(e,t,n){var r=t.options.props;if(!ko(r)){var i={},a=e.attrs,s=e.props;if(Po(a)||Po(s))for(var o in r){var l=Ko(o);Nc(i,s,o,l,!0)||Nc(i,a,o,l,!1)}return i}}(t,e);if(Do(e.options.functional))return function(e,t,n,r,i){var a=e.options,s={},o=a.props;if(Po(o))for(var l in o)s[l]=uc(l,o,t||Lo);else Po(n.attrs)&&uu(s,n.attrs),Po(n.props)&&uu(s,n.props);var c=new lu(n,s,i,r,e),u=a.render.call(null,c._c,c);if(u instanceof zl)return cu(u,n,c.parent,a);if(Array.isArray(u)){for(var h=Fc(u)||[],f=new Array(h.length),d=0;d<h.length;d++)f[d]=cu(h[d],n,c.parent,a);return f}}(e,o,t,n,r);var l=t.on;if(t.on=t.nativeOn,Do(e.options.abstract)){var c=t.slot;t={},c&&(t.slot=c)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<fu.length;n++){var r=fu[n],i=t[r],a=hu[r];i===a||i&&i._merged||(t[r]=i?pu(a,i):a)}}(t);var u=e.options.name||i;return new zl("vue-component-"+e.cid+(u?"-"+u:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:o,listeners:l,tag:i,children:r},s)}}}function pu(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function mu(e,t,n,r,i,a){return(Array.isArray(n)||Oo(n))&&(i=r,r=n,n=void 0),Do(a)&&(i=2),function(e,t,n,r,i){if(Po(n)&&Po(n.__ob__))return Vl();if(Po(n)&&Po(n.is)&&(t=n.is),!t)return Vl();var a,s,o;(Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0),2===i?r=Fc(r):1===i&&(r=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(r)),"string"==typeof t)?(s=e.$vnode&&e.$vnode.ns||fl.getTagNamespace(t),a=fl.isReservedTag(t)?new zl(fl.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!Po(o=cc(e.$options,"components",t))?new zl(t,n,r,void 0,void 0,e):du(o,n,e,r,t)):a=du(t,n,e,r);return Array.isArray(a)?a:Po(a)?(Po(s)&&gu(a,s),Po(n)&&function(e){Io(e.style)&&Lc(e.style),Io(e.class)&&Lc(e.class)}(n),a):Vl()}(e,t,n,r,i)}function gu(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),Po(e.children))for(var r=0,i=e.children.length;r<i;r++){var a=e.children[r];Po(a.tag)&&(ko(a.ns)||Do(n)&&"svg"!==a.tag)&&gu(a,t,n)}}var vu,yu=null;function bu(e,t){return(e.__esModule||Dl&&"Module"===e[Symbol.toStringTag])&&(e=e.default),Io(e)?t.extend(e):e}function xu(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(Po(n)&&(Po(n.componentOptions)||Gc(n)))return n}}function _u(e,t){vu.$on(e,t)}function wu(e,t){vu.$off(e,t)}function Tu(e,t){var n=vu;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function Su(e,t,n){vu=e,Oc(t,n||{},_u,wu,Tu,e),vu=void 0}var Eu=null;function Mu(e){var t=Eu;return Eu=e,function(){Eu=t}}function Au(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Cu(e,t){if(t){if(e._directInactive=!1,Au(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Cu(e.$children[n]);Lu(e,"activated")}}function Ru(e,t){if(!(t&&(e._directInactive=!0,Au(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Ru(e.$children[n]);Lu(e,"deactivated")}}function Lu(e,t){Bl();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,a=n.length;i<a;i++)gc(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),Ul()}var ku=[],Pu=[],Du={},Ou=!1,Iu=!1,Nu=0,Fu=0,Bu=Date.now;if(vl&&!_l){var Uu=window.performance;Uu&&"function"==typeof Uu.now&&Bu()>document.createEvent("Event").timeStamp&&(Bu=function(){return Uu.now()})}function zu(){var e,t;for(Fu=Bu(),Iu=!0,ku.sort((function(e,t){return e.id-t.id})),Nu=0;Nu<ku.length;Nu++)(e=ku[Nu]).before&&e.before(),t=e.id,Du[t]=null,e.run();var n=Pu.slice(),r=ku.slice();Nu=ku.length=Pu.length=0,Du={},Ou=Iu=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Cu(e[t],!0)}(n),function(e){for(var t=e.length;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Lu(r,"updated")}}(r),Ll&&fl.devtools&&Ll.emit("flush")}var Hu=0,Vu=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Hu,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new Pl,this.newDepIds=new Pl,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!ml.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=rl)),this.value=this.lazy?void 0:this.get()};Vu.prototype.get=function(){var e;Bl(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;mc(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Lc(e),Ul(),this.cleanupDeps()}return e},Vu.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},Vu.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},Vu.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==Du[t]){if(Du[t]=!0,Iu){for(var n=ku.length-1;n>Nu&&ku[n].id>e.id;)n--;ku.splice(n+1,0,e)}else ku.push(e);Ou||(Ou=!0,Cc(zu))}}(this)},Vu.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||Io(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'+this.expression+'"';gc(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},Vu.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Vu.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},Vu.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||Wo(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Gu={enumerable:!0,configurable:!0,get:rl,set:rl};function Wu(e,t,n){Gu.get=function(){return this[t][n]},Gu.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Gu)}var ju={lazy:!0};function Xu(e,t,n){var r=!Rl();"function"==typeof n?(Gu.get=r?qu(t):$u(n),Gu.set=rl):(Gu.get=n.get?r&&!1!==n.cache?qu(t):$u(n.get):rl,Gu.set=n.set||rl),Object.defineProperty(e,t,Gu)}function qu(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),Nl.target&&t.depend(),t.value}}function $u(e){return function(){return e.call(this,this)}}function Yu(e,t,n,r){return Fo(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var Zu=0;function Ju(e){var t=e.options;if(e.super){var n=Ju(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&tl(e.extendOptions,r),(t=e.options=lc(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function Ku(e){this._init(e)}function Qu(e){return e&&(e.Ctor.options.name||e.tag)}function eh(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,!("[object RegExp]"!==No.call(n))&&e.test(t));var n}function th(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var a in n){var s=n[a];if(s){var o=s.name;o&&!t(o)&&nh(n,a,r,i)}}}function nh(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,Wo(n,t)}Ku.prototype._init=function(e){var t=this;t._uid=Zu++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=lc(Ju(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Su(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,r=n&&n.context;e.$slots=Hc(t._renderChildren,r),e.$scopedSlots=Lo,e._c=function(t,n,r,i){return mu(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return mu(e,t,n,r,i,!0)};var i=n&&n.data;Kl(e,"$attrs",i&&i.attrs||Lo,null,!0),Kl(e,"$listeners",t._parentListeners||Lo,null,!0)}(t),Lu(t,"beforeCreate"),function(e){var t=zc(e.$options.inject,e);t&&(Yl(!1),Object.keys(t).forEach((function(n){Kl(e,n,t[n])})),Yl(!0))}(t),function(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&Yl(!1);var a=function(a){i.push(a);var s=uc(a,t,n,e);Kl(r,a,s),a in e||Wu(e,"_props",a)};for(var s in t)a(s);Yl(!0)}(e,t.props),t.methods&&function(e,t){for(var n in e.$options.props,t)e[n]="function"!=typeof t[n]?rl:Qo(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;Fo(t=e._data="function"==typeof t?function(e,t){Bl();try{return e.call(t,t)}catch(e){return mc(e,t,"data()"),{}}finally{Ul()}}(t,e):t||{})||(t={});for(var n,r=Object.keys(t),i=e.$options.props,a=(e.$options.methods,r.length);a--;){var s=r[a];i&&Xo(i,s)||(n=void 0,36===(n=(s+"").charCodeAt(0))||95===n)||Wu(e,"_data",s)}Jl(t,!0)}(e):Jl(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=Rl();for(var i in t){var a=t[i],s="function"==typeof a?a:a.get;r||(n[i]=new Vu(e,s||rl,rl,ju)),i in e||Xu(e,i,a)}}(e,t.computed),t.watch&&t.watch!==Ml&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)Yu(e,n,r[i]);else Yu(e,n,r)}}(e,t.watch)}(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Lu(t,"created"),t.$options.el&&t.$mount(t.$options.el)},function(e){Object.defineProperty(e.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(e.prototype,"$props",{get:function(){return this._props}}),e.prototype.$set=Ql,e.prototype.$delete=ec,e.prototype.$watch=function(e,t,n){var r=this;if(Fo(t))return Yu(r,e,t,n);(n=n||{}).user=!0;var i=new Vu(r,e,t,n);if(n.immediate){var a='callback for immediate watcher "'+i.expression+'"';Bl(),gc(t,r,[i.value],r,a),Ul()}return function(){i.teardown()}}}(Ku),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,a=e.length;i<a;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var a,s=n._events[e];if(!s)return n;if(!t)return n._events[e]=null,n;for(var o=s.length;o--;)if((a=s[o])===t||a.fn===t){s.splice(o,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?el(n):n;for(var r=el(arguments,1),i='event handler for "'+e+'"',a=0,s=n.length;a<s;a++)gc(n[a],t,r,t,i)}return t}}(Ku),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,a=Mu(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),a(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Lu(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||Wo(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Lu(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(Ku),function(e){ou(e.prototype),e.prototype.$nextTick=function(e){return Cc(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=Wc(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{yu=t,e=r.call(t._renderProxy,t.$createElement)}catch(n){mc(n,t,"render"),e=t._vnode}finally{yu=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof zl||(e=Vl()),e.parent=i,e}}(Ku);var rh=[String,RegExp,Array],ih={name:"keep-alive",abstract:!0,props:{include:rh,exclude:rh,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,r=e.vnodeToCache,i=e.keyToCache;if(r){var a=r.tag,s=r.componentInstance,o=r.componentOptions;t[i]={name:Qu(o),tag:a,componentInstance:s},n.push(i),this.max&&n.length>parseInt(this.max)&&nh(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)nh(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){th(e,(function(e){return eh(t,e)}))})),this.$watch("exclude",(function(t){th(e,(function(e){return!eh(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=xu(e),n=t&&t.componentOptions;if(n){var r=Qu(n),i=this.include,a=this.exclude;if(i&&(!r||!eh(i,r))||a&&r&&eh(a,r))return t;var s=this.cache,o=this.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;s[l]?(t.componentInstance=s[l].componentInstance,Wo(o,l),o.push(l)):(this.vnodeToCache=t,this.keyToCache=l),t.data.keepAlive=!0}return t||e&&e[0]}},ah={KeepAlive:ih};!function(e){var t={get:function(){return fl}};Object.defineProperty(e,"config",t),e.util={warn:Ol,extend:tl,mergeOptions:lc,defineReactive:Kl},e.set=Ql,e.delete=ec,e.nextTick=Cc,e.observable=function(e){return Jl(e),e},e.options=Object.create(null),ul.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,tl(e.options.components,ah),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=el(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=lc(this.options,e),this}}(e),function(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var a=e.name||n.options.name,s=function(e){this._init(e)};return(s.prototype=Object.create(n.prototype)).constructor=s,s.cid=t++,s.options=lc(n.options,e),s.super=n,s.options.props&&function(e){var t=e.options.props;for(var n in t)Wu(e.prototype,"_props",n)}(s),s.options.computed&&function(e){var t=e.options.computed;for(var n in t)Xu(e.prototype,n,t[n])}(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,ul.forEach((function(e){s[e]=n[e]})),a&&(s.options.components[a]=s),s.superOptions=n.options,s.extendOptions=e,s.sealedOptions=tl({},s.options),i[r]=s,s}}(e),function(e){ul.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&Fo(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(Ku),Object.defineProperty(Ku.prototype,"$isServer",{get:Rl}),Object.defineProperty(Ku.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ku,"FunctionalRenderContext",{value:lu}),Ku.version="2.6.14";var sh=Vo("style,class"),oh=Vo("input,textarea,option,select,progress"),lh=Vo("contenteditable,draggable,spellcheck"),ch=Vo("events,caret,typing,plaintext-only"),uh=Vo("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),hh="http://www.w3.org/1999/xlink",fh=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},dh=function(e){return fh(e)?e.slice(6,e.length):""},ph=function(e){return null==e||!1===e};function mh(e,t){return{staticClass:gh(e.staticClass,t.staticClass),class:Po(e.class)?[e.class,t.class]:t.class}}function gh(e,t){return e?t?e+" "+t:e:t||""}function vh(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)Po(t=vh(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):Io(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var yh={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},bh=Vo("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),xh=Vo("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),_h=function(e){return bh(e)||xh(e)},wh=Object.create(null),Th=Vo("text,number,password,search,email,tel,url"),Sh=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS(yh[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Eh={create:function(e,t){Mh(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Mh(e,!0),Mh(t))},destroy:function(e){Mh(e,!0)}};function Mh(e,t){var n=e.data.ref;if(Po(n)){var r=e.context,i=e.componentInstance||e.elm,a=r.$refs;t?Array.isArray(a[n])?Wo(a[n],i):a[n]===i&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(i)<0&&a[n].push(i):a[n]=[i]:a[n]=i}}var Ah=new zl("",{},[]),Ch=["create","activate","update","remove","destroy"];function Rh(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&Po(e.data)===Po(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=Po(n=e.data)&&Po(n=n.attrs)&&n.type,i=Po(n=t.data)&&Po(n=n.attrs)&&n.type;return r===i||Th(r)&&Th(i)}(e,t)||Do(e.isAsyncPlaceholder)&&ko(t.asyncFactory.error))}function Lh(e,t,n){var r,i,a={};for(r=t;r<=n;++r)Po(i=e[r].key)&&(a[i]=r);return a}var kh={create:Ph,update:Ph,destroy:function(e){Ph(e,Ah)}};function Ph(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,i,a=e===Ah,s=t===Ah,o=Oh(e.data.directives,e.context),l=Oh(t.data.directives,t.context),c=[],u=[];for(n in l)r=o[n],i=l[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Nh(i,"update",t,e),i.def&&i.def.componentUpdated&&u.push(i)):(Nh(i,"bind",t,e),i.def&&i.def.inserted&&c.push(i));if(c.length){var h=function(){for(var n=0;n<c.length;n++)Nh(c[n],"inserted",t,e)};a?Ic(t,"insert",h):h()}if(u.length&&Ic(t,"postpatch",(function(){for(var n=0;n<u.length;n++)Nh(u[n],"componentUpdated",t,e)})),!a)for(n in o)l[n]||Nh(o[n],"unbind",e,e,s)}(e,t)}var Dh=Object.create(null);function Oh(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=Dh),i[Ih(r)]=r,r.def=cc(t.$options,"directives",r.name);return i}function Ih(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Nh(e,t,n,r,i){var a=e.def&&e.def[t];if(a)try{a(n.elm,e,n,r,i)}catch(r){mc(r,n.context,"directive "+e.name+" "+t+" hook")}}var Fh=[Eh,kh];function Bh(e,t){var n=t.componentOptions;if(!(Po(n)&&!1===n.Ctor.options.inheritAttrs||ko(e.data.attrs)&&ko(t.data.attrs))){var r,i,a=t.elm,s=e.data.attrs||{},o=t.data.attrs||{};for(r in Po(o.__ob__)&&(o=t.data.attrs=tl({},o)),o)i=o[r],s[r]!==i&&Uh(a,r,i,t.data.pre);for(r in(_l||Tl)&&o.value!==s.value&&Uh(a,"value",o.value),s)ko(o[r])&&(fh(r)?a.removeAttributeNS(hh,dh(r)):lh(r)||a.removeAttribute(r))}}function Uh(e,t,n,r){r||e.tagName.indexOf("-")>-1?zh(e,t,n):uh(t)?ph(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):lh(t)?e.setAttribute(t,function(e,t){return ph(t)||"false"===t?"false":"contenteditable"===e&&ch(t)?t:"true"}(t,n)):fh(t)?ph(n)?e.removeAttributeNS(hh,dh(t)):e.setAttributeNS(hh,t,n):zh(e,t,n)}function zh(e,t,n){if(ph(n))e.removeAttribute(t);else{if(_l&&!wl&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Hh={create:Bh,update:Bh};function Vh(e,t){var n=t.elm,r=t.data,i=e.data;if(!(ko(r.staticClass)&&ko(r.class)&&(ko(i)||ko(i.staticClass)&&ko(i.class)))){var a=function(e){for(var t=e.data,n=e,r=e;Po(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=mh(r.data,t));for(;Po(n=n.parent);)n&&n.data&&(t=mh(t,n.data));return i=t.staticClass,a=t.class,Po(i)||Po(a)?gh(i,vh(a)):"";var i,a}(t),s=n._transitionClasses;Po(s)&&(a=gh(a,vh(s))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var Gh,Wh={create:Vh,update:Vh};function jh(e,t,n){var r=Gh;return function i(){var a=t.apply(null,arguments);null!==a&&$h(e,i,n,r)}}var Xh=xc&&!(El&&Number(El[1])<=53);function qh(e,t,n,r){if(Xh){var i=Fu,a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return a.apply(this,arguments)}}Gh.addEventListener(e,t,Al?{capture:n,passive:r}:n)}function $h(e,t,n,r){(r||Gh).removeEventListener(e,t._wrapper||t,n)}function Yh(e,t){if(!ko(e.data.on)||!ko(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Gh=t.elm,function(e){if(Po(e.__r)){var t=_l?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}Po(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),Oc(n,r,qh,$h,jh,t.context),Gh=void 0}}var Zh,Jh={create:Yh,update:Yh};function Kh(e,t){if(!ko(e.data.domProps)||!ko(t.data.domProps)){var n,r,i=t.elm,a=e.data.domProps||{},s=t.data.domProps||{};for(n in Po(s.__ob__)&&(s=t.data.domProps=tl({},s)),a)n in s||(i[n]="");for(n in s){if(r=s[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===a[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var o=ko(r)?"":String(r);Qh(i,o)&&(i.value=o)}else if("innerHTML"===n&&xh(i.tagName)&&ko(i.innerHTML)){(Zh=Zh||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var l=Zh.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;l.firstChild;)i.appendChild(l.firstChild)}else if(r!==a[n])try{i[n]=r}catch(e){}}}}function Qh(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(Po(r)){if(r.number)return Ho(n)!==Ho(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var ef={create:Kh,update:Kh},tf=qo((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function nf(e){var t=rf(e.style);return e.staticStyle?tl(e.staticStyle,t):t}function rf(e){return Array.isArray(e)?nl(e):"string"==typeof e?tf(e):e}var af,sf=/^--/,of=/\s*!important$/,lf=function(e,t,n){if(sf.test(t))e.style.setProperty(t,n);else if(of.test(n))e.style.setProperty(Ko(t),n.replace(of,""),"important");else{var r=uf(t);if(Array.isArray(n))for(var i=0,a=n.length;i<a;i++)e.style[r]=n[i];else e.style[r]=n}},cf=["Webkit","Moz","ms"],uf=qo((function(e){if(af=af||document.createElement("div").style,"filter"!==(e=Yo(e))&&e in af)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<cf.length;n++){var r=cf[n]+t;if(r in af)return r}}));function hf(e,t){var n=t.data,r=e.data;if(!(ko(n.staticStyle)&&ko(n.style)&&ko(r.staticStyle)&&ko(r.style))){var i,a,s=t.elm,o=r.staticStyle,l=r.normalizedStyle||r.style||{},c=o||l,u=rf(t.data.style)||{};t.data.normalizedStyle=Po(u.__ob__)?tl({},u):u;var h=function(e,t){for(var n,r={},i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=nf(i.data))&&tl(r,n);(n=nf(e.data))&&tl(r,n);for(var a=e;a=a.parent;)a.data&&(n=nf(a.data))&&tl(r,n);return r}(t);for(a in c)ko(h[a])&&lf(s,a,"");for(a in h)(i=h[a])!==c[a]&&lf(s,a,null==i?"":i)}}var ff={create:hf,update:hf},df=/\s+/;function pf(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(df).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function mf(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(df).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function gf(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&tl(t,vf(e.name||"v")),tl(t,e),t}return"string"==typeof e?vf(e):void 0}}var vf=qo((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),yf=vl&&!wl,bf="transition",xf="animation",_f="transition",wf="transitionend",Tf="animation",Sf="animationend";yf&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(_f="WebkitTransition",wf="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Tf="WebkitAnimation",Sf="webkitAnimationEnd"));var Ef=vl?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Mf(e){Ef((function(){Ef(e)}))}function Af(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),pf(e,t))}function Cf(e,t){e._transitionClasses&&Wo(e._transitionClasses,t),mf(e,t)}function Rf(e,t,n){var r=kf(e,t),i=r.type,a=r.timeout,s=r.propCount;if(!i)return n();var o=i===bf?wf:Sf,l=0,c=function(){e.removeEventListener(o,u),n()},u=function(t){t.target===e&&++l>=s&&c()};setTimeout((function(){l<s&&c()}),a+1),e.addEventListener(o,u)}var Lf=/\b(transform|all)(,|$)/;function kf(e,t){var n,r=window.getComputedStyle(e),i=(r[_f+"Delay"]||"").split(", "),a=(r[_f+"Duration"]||"").split(", "),s=Pf(i,a),o=(r[Tf+"Delay"]||"").split(", "),l=(r[Tf+"Duration"]||"").split(", "),c=Pf(o,l),u=0,h=0;return t===bf?s>0&&(n=bf,u=s,h=a.length):t===xf?c>0&&(n=xf,u=c,h=l.length):h=(n=(u=Math.max(s,c))>0?s>c?bf:xf:null)?n===bf?a.length:l.length:0,{type:n,timeout:u,propCount:h,hasTransform:n===bf&&Lf.test(r[_f+"Property"])}}function Pf(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Df(t)+Df(e[n])})))}function Df(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Of(e,t){var n=e.elm;Po(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=gf(e.data.transition);if(!ko(r)&&!Po(n._enterCb)&&1===n.nodeType){for(var i=r.css,a=r.type,s=r.enterClass,o=r.enterToClass,l=r.enterActiveClass,c=r.appearClass,u=r.appearToClass,h=r.appearActiveClass,f=r.beforeEnter,d=r.enter,p=r.afterEnter,m=r.enterCancelled,g=r.beforeAppear,v=r.appear,y=r.afterAppear,b=r.appearCancelled,x=r.duration,_=Eu,w=Eu.$vnode;w&&w.parent;)_=w.context,w=w.parent;var T=!_._isMounted||!e.isRootInsert;if(!T||v||""===v){var S=T&&c?c:s,E=T&&h?h:l,M=T&&u?u:o,A=T&&g||f,C=T&&"function"==typeof v?v:d,R=T&&y||p,L=T&&b||m,k=Ho(Io(x)?x.enter:x),P=!1!==i&&!wl,D=Ff(C),O=n._enterCb=ll((function(){P&&(Cf(n,M),Cf(n,E)),O.cancelled?(P&&Cf(n,S),L&&L(n)):R&&R(n),n._enterCb=null}));e.data.show||Ic(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),C&&C(n,O)})),A&&A(n),P&&(Af(n,S),Af(n,E),Mf((function(){Cf(n,S),O.cancelled||(Af(n,M),D||(Nf(k)?setTimeout(O,k):Rf(n,a,O)))}))),e.data.show&&(t&&t(),C&&C(n,O)),P||D||O()}}}function If(e,t){var n=e.elm;Po(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=gf(e.data.transition);if(ko(r)||1!==n.nodeType)return t();if(!Po(n._leaveCb)){var i=r.css,a=r.type,s=r.leaveClass,o=r.leaveToClass,l=r.leaveActiveClass,c=r.beforeLeave,u=r.leave,h=r.afterLeave,f=r.leaveCancelled,d=r.delayLeave,p=r.duration,m=!1!==i&&!wl,g=Ff(u),v=Ho(Io(p)?p.leave:p),y=n._leaveCb=ll((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),m&&(Cf(n,o),Cf(n,l)),y.cancelled?(m&&Cf(n,s),f&&f(n)):(t(),h&&h(n)),n._leaveCb=null}));d?d(b):b()}function b(){y.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),c&&c(n),m&&(Af(n,s),Af(n,l),Mf((function(){Cf(n,s),y.cancelled||(Af(n,o),g||(Nf(v)?setTimeout(y,v):Rf(n,a,y)))}))),u&&u(n,y),m||g||y())}}function Nf(e){return"number"==typeof e&&!isNaN(e)}function Ff(e){if(ko(e))return!1;var t=e.fns;return Po(t)?Ff(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Bf(e,t){!0!==t.data.show&&Of(t)}var Uf=function(e){var t,n,r={},i=e.modules,a=e.nodeOps;for(t=0;t<Ch.length;++t)for(r[Ch[t]]=[],n=0;n<i.length;++n)Po(i[n][Ch[t]])&&r[Ch[t]].push(i[n][Ch[t]]);function s(e){var t=a.parentNode(e);Po(t)&&a.removeChild(t,e)}function o(e,t,n,i,s,o,h){if(Po(e.elm)&&Po(o)&&(e=o[h]=Wl(e)),e.isRootInsert=!s,!function(e,t,n,i){var a=e.data;if(Po(a)){var s=Po(e.componentInstance)&&a.keepAlive;if(Po(a=a.hook)&&Po(a=a.init)&&a(e,!1),Po(e.componentInstance))return l(e,t),c(n,e.elm,i),Do(s)&&function(e,t,n,i){for(var a,s=e;s.componentInstance;)if(Po(a=(s=s.componentInstance._vnode).data)&&Po(a=a.transition)){for(a=0;a<r.activate.length;++a)r.activate[a](Ah,s);t.push(s);break}c(n,e.elm,i)}(e,t,n,i),!0}}(e,t,n,i)){var p=e.data,m=e.children,g=e.tag;Po(g)?(e.elm=e.ns?a.createElementNS(e.ns,g):a.createElement(g,e),d(e),u(e,m,t),Po(p)&&f(e,t),c(n,e.elm,i)):Do(e.isComment)?(e.elm=a.createComment(e.text),c(n,e.elm,i)):(e.elm=a.createTextNode(e.text),c(n,e.elm,i))}}function l(e,t){Po(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,h(e)?(f(e,t),d(e)):(Mh(e),t.push(e))}function c(e,t,n){Po(e)&&(Po(n)?a.parentNode(n)===e&&a.insertBefore(e,t,n):a.appendChild(e,t))}function u(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)o(t[r],n,e.elm,null,!0,t,r);else Oo(e.text)&&a.appendChild(e.elm,a.createTextNode(String(e.text)))}function h(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return Po(e.tag)}function f(e,n){for(var i=0;i<r.create.length;++i)r.create[i](Ah,e);Po(t=e.data.hook)&&(Po(t.create)&&t.create(Ah,e),Po(t.insert)&&n.push(e))}function d(e){var t;if(Po(t=e.fnScopeId))a.setStyleScope(e.elm,t);else for(var n=e;n;)Po(t=n.context)&&Po(t=t.$options._scopeId)&&a.setStyleScope(e.elm,t),n=n.parent;Po(t=Eu)&&t!==e.context&&t!==e.fnContext&&Po(t=t.$options._scopeId)&&a.setStyleScope(e.elm,t)}function p(e,t,n,r,i,a){for(;r<=i;++r)o(n[r],a,e,t,!1,n,r)}function m(e){var t,n,i=e.data;if(Po(i))for(Po(t=i.hook)&&Po(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(Po(t=e.children))for(n=0;n<e.children.length;++n)m(e.children[n])}function g(e,t,n){for(;t<=n;++t){var r=e[t];Po(r)&&(Po(r.tag)?(v(r),m(r)):s(r.elm))}}function v(e,t){if(Po(t)||Po(e.data)){var n,i=r.remove.length+1;for(Po(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&s(e)}return n.listeners=t,n}(e.elm,i),Po(n=e.componentInstance)&&Po(n=n._vnode)&&Po(n.data)&&v(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);Po(n=e.data.hook)&&Po(n=n.remove)?n(e,t):t()}else s(e.elm)}function y(e,t,n,r){for(var i=n;i<r;i++){var a=t[i];if(Po(a)&&Rh(e,a))return i}}function b(e,t,n,i,s,l){if(e!==t){Po(t.elm)&&Po(i)&&(t=i[s]=Wl(t));var c=t.elm=e.elm;if(Do(e.isAsyncPlaceholder))Po(t.asyncFactory.resolved)?w(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(Do(t.isStatic)&&Do(e.isStatic)&&t.key===e.key&&(Do(t.isCloned)||Do(t.isOnce)))t.componentInstance=e.componentInstance;else{var u,f=t.data;Po(f)&&Po(u=f.hook)&&Po(u=u.prepatch)&&u(e,t);var d=e.children,m=t.children;if(Po(f)&&h(t)){for(u=0;u<r.update.length;++u)r.update[u](e,t);Po(u=f.hook)&&Po(u=u.update)&&u(e,t)}ko(t.text)?Po(d)&&Po(m)?d!==m&&function(e,t,n,r,i){for(var s,l,c,u=0,h=0,f=t.length-1,d=t[0],m=t[f],v=n.length-1,x=n[0],_=n[v],w=!i;u<=f&&h<=v;)ko(d)?d=t[++u]:ko(m)?m=t[--f]:Rh(d,x)?(b(d,x,r,n,h),d=t[++u],x=n[++h]):Rh(m,_)?(b(m,_,r,n,v),m=t[--f],_=n[--v]):Rh(d,_)?(b(d,_,r,n,v),w&&a.insertBefore(e,d.elm,a.nextSibling(m.elm)),d=t[++u],_=n[--v]):Rh(m,x)?(b(m,x,r,n,h),w&&a.insertBefore(e,m.elm,d.elm),m=t[--f],x=n[++h]):(ko(s)&&(s=Lh(t,u,f)),ko(l=Po(x.key)?s[x.key]:y(x,t,u,f))?o(x,r,e,d.elm,!1,n,h):Rh(c=t[l],x)?(b(c,x,r,n,h),t[l]=void 0,w&&a.insertBefore(e,c.elm,d.elm)):o(x,r,e,d.elm,!1,n,h),x=n[++h]);u>f?p(e,ko(n[v+1])?null:n[v+1].elm,n,h,v,r):h>v&&g(t,u,f)}(c,d,m,n,l):Po(m)?(Po(e.text)&&a.setTextContent(c,""),p(c,null,m,0,m.length-1,n)):Po(d)?g(d,0,d.length-1):Po(e.text)&&a.setTextContent(c,""):e.text!==t.text&&a.setTextContent(c,t.text),Po(f)&&Po(u=f.hook)&&Po(u=u.postpatch)&&u(e,t)}}}function x(e,t,n){if(Do(n)&&Po(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var _=Vo("attrs,class,staticClass,staticStyle,key");function w(e,t,n,r){var i,a=t.tag,s=t.data,o=t.children;if(r=r||s&&s.pre,t.elm=e,Do(t.isComment)&&Po(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(Po(s)&&(Po(i=s.hook)&&Po(i=i.init)&&i(t,!0),Po(i=t.componentInstance)))return l(t,n),!0;if(Po(a)){if(Po(o))if(e.hasChildNodes())if(Po(i=s)&&Po(i=i.domProps)&&Po(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var c=!0,h=e.firstChild,d=0;d<o.length;d++){if(!h||!w(h,o[d],n,r)){c=!1;break}h=h.nextSibling}if(!c||h)return!1}else u(t,o,n);if(Po(s)){var p=!1;for(var m in s)if(!_(m)){p=!0,f(t,n);break}!p&&s.class&&Lc(s.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,i){if(!ko(t)){var s,l=!1,c=[];if(ko(e))l=!0,o(t,c);else{var u=Po(e.nodeType);if(!u&&Rh(e,t))b(e,t,c,null,null,i);else{if(u){if(1===e.nodeType&&e.hasAttribute(cl)&&(e.removeAttribute(cl),n=!0),Do(n)&&w(e,t,c))return x(t,c,!0),e;s=e,e=new zl(a.tagName(s).toLowerCase(),{},[],void 0,s)}var f=e.elm,d=a.parentNode(f);if(o(t,c,f._leaveCb?null:d,a.nextSibling(f)),Po(t.parent))for(var p=t.parent,v=h(t);p;){for(var y=0;y<r.destroy.length;++y)r.destroy[y](p);if(p.elm=t.elm,v){for(var _=0;_<r.create.length;++_)r.create[_](Ah,p);var T=p.data.hook.insert;if(T.merged)for(var S=1;S<T.fns.length;S++)T.fns[S]()}else Mh(p);p=p.parent}Po(d)?g([e],0,0):Po(e.tag)&&m(e)}}return x(t,c,l),t.elm}Po(e)&&m(e)}}({nodeOps:Sh,modules:[Hh,Wh,Jh,ef,ff,vl?{create:Bf,activate:Bf,remove:function(e,t){!0!==e.data.show?If(e,t):t()}}:{}].concat(Fh)});wl&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&qf(e,"input")}));var zf={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?Ic(n,"postpatch",(function(){zf.componentUpdated(e,t,n)})):Hf(e,t,n.context),e._vOptions=[].map.call(e.options,Wf)):("textarea"===n.tag||Th(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",jf),e.addEventListener("compositionend",Xf),e.addEventListener("change",Xf),wl&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Hf(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Wf);i.some((function(e,t){return!sl(e,r[t])}))&&(e.multiple?t.value.some((function(e){return Gf(e,i)})):t.value!==t.oldValue&&Gf(t.value,i))&&qf(e,"change")}}};function Hf(e,t,n){Vf(e,t),(_l||Tl)&&setTimeout((function(){Vf(e,t)}),0)}function Vf(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var a,s,o=0,l=e.options.length;o<l;o++)if(s=e.options[o],i)a=ol(r,Wf(s))>-1,s.selected!==a&&(s.selected=a);else if(sl(Wf(s),r))return void(e.selectedIndex!==o&&(e.selectedIndex=o));i||(e.selectedIndex=-1)}}function Gf(e,t){return t.every((function(t){return!sl(t,e)}))}function Wf(e){return"_value"in e?e._value:e.value}function jf(e){e.target.composing=!0}function Xf(e){e.target.composing&&(e.target.composing=!1,qf(e.target,"input"))}function qf(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function $f(e){return!e.componentInstance||e.data&&e.data.transition?e:$f(e.componentInstance._vnode)}var Yf={bind:function(e,t,n){var r=t.value,i=(n=$f(n)).data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Of(n,(function(){e.style.display=a}))):e.style.display=r?a:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=$f(n)).data&&n.data.transition?(n.data.show=!0,r?Of(n,(function(){e.style.display=e.__vOriginalDisplay})):If(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},Zf={model:zf,show:Yf},Jf={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Kf(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Kf(xu(t.children)):e}function Qf(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var a in i)t[Yo(a)]=i[a];return t}function ed(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var td=function(e){return e.tag||Gc(e)},nd=function(e){return"show"===e.name},rd={name:"transition",props:Jf,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(td)).length){var r=this.mode,i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var a=Kf(i);if(!a)return i;if(this._leaving)return ed(e,i);var s="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?s+"comment":s+a.tag:Oo(a.key)?0===String(a.key).indexOf(s)?a.key:s+a.key:a.key;var o=(a.data||(a.data={})).transition=Qf(this),l=this._vnode,c=Kf(l);if(a.data.directives&&a.data.directives.some(nd)&&(a.data.show=!0),c&&c.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,c)&&!Gc(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var u=c.data.transition=tl({},o);if("out-in"===r)return this._leaving=!0,Ic(u,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),ed(e,i);if("in-out"===r){if(Gc(a))return l;var h,f=function(){h()};Ic(o,"afterEnter",f),Ic(o,"enterCancelled",f),Ic(u,"delayLeave",(function(e){h=e}))}}return i}}},id=tl({tag:String,moveClass:String},Jf);delete id.mode;var ad={props:id,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Mu(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],a=this.children=[],s=Qf(this),o=0;o<i.length;o++){var l=i[o];l.tag&&null!=l.key&&0!==String(l.key).indexOf("__vlist")&&(a.push(l),n[l.key]=l,(l.data||(l.data={})).transition=s)}if(r){for(var c=[],u=[],h=0;h<r.length;h++){var f=r[h];f.data.transition=s,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?c.push(f):u.push(f)}this.kept=e(t,null,c),this.removed=u}return e(t,null,a)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(sd),e.forEach(od),e.forEach(ld),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;Af(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(wf,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(wf,e),n._moveCb=null,Cf(n,t))})}})))},methods:{hasMove:function(e,t){if(!yf)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){mf(n,e)})),pf(n,t),n.style.display="none",this.$el.appendChild(n);var r=kf(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function sd(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function od(e){e.data.newPos=e.elm.getBoundingClientRect()}function ld(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+r+"px,"+i+"px)",a.transitionDuration="0s"}}var cd={Transition:rd,TransitionGroup:ad};Ku.config.mustUseProp=function(e,t,n){return"value"===n&&oh(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Ku.config.isReservedTag=_h,Ku.config.isReservedAttr=sh,Ku.config.getTagNamespace=function(e){return xh(e)?"svg":"math"===e?"math":void 0},Ku.config.isUnknownElement=function(e){if(!vl)return!0;if(_h(e))return!1;if(e=e.toLowerCase(),null!=wh[e])return wh[e];var t=document.createElement(e);return e.indexOf("-")>-1?wh[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:wh[e]=/HTMLUnknownElement/.test(t.toString())},tl(Ku.options.directives,Zf),tl(Ku.options.components,cd),Ku.prototype.__patch__=vl?Uf:rl,Ku.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=Vl),Lu(e,"beforeMount"),r=function(){e._update(e._render(),n)},new Vu(e,r,rl,{before:function(){e._isMounted&&!e._isDestroyed&&Lu(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Lu(e,"mounted")),e}(this,e=e&&vl?function(e){return"string"==typeof e?document.querySelector(e)||document.createElement("div"):e}(e):void 0,t)},vl&&setTimeout((function(){fl.devtools&&Ll&&Ll.emit("init",Ku)}),0);const ud=Ku;function hd(e){return hd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hd(e)}function fd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dd(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function pd(e,t){md(e,t),Object.getOwnPropertyNames(t.prototype).forEach((function(n){md(e.prototype,t.prototype,n)})),Object.getOwnPropertyNames(t).forEach((function(n){md(e,t,n)}))}function md(e,t,n){(n?Reflect.getOwnMetadataKeys(t,n):Reflect.getOwnMetadataKeys(t)).forEach((function(r){var i=n?Reflect.getOwnMetadata(r,t,n):Reflect.getOwnMetadata(r,t);n?Reflect.defineMetadata(r,i,e,n):Reflect.defineMetadata(r,i,e)}))}var gd={__proto__:[]}instanceof Array;function vd(e){return function(t,n,r){var i="function"==typeof t?t:t.constructor;i.__decorators__||(i.__decorators__=[]),"number"!=typeof r&&(r=void 0),i.__decorators__.push((function(t){return e(t,n,r)}))}}function yd(e,t){var n=t.prototype._init;t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||n.push(r);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t},configurable:!0})}))};var r=new t;t.prototype._init=n;var i={};return Object.keys(r).forEach((function(e){void 0!==r[e]&&(i[e]=r[e])})),i}var bd=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function xd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.name=t.name||e._componentTag||e.name;var n=e.prototype;Object.getOwnPropertyNames(n).forEach((function(e){if("constructor"!==e)if(bd.indexOf(e)>-1)t[e]=n[e];else{var r=Object.getOwnPropertyDescriptor(n,e);void 0!==r.value?"function"==typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(t.mixins||(t.mixins=[])).push({data:function(){return fd({},e,r.value)}}):(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}})),(t.mixins||(t.mixins=[])).push({data:function(){return yd(this,e)}});var r=e.__decorators__;r&&(r.forEach((function(e){return e(t)})),delete e.__decorators__);var i=Object.getPrototypeOf(e.prototype),a=i instanceof ud?i.constructor:ud,s=a.extend(t);return wd(s,e,a),dd()&&pd(s,e),s}var _d={prototype:!0,arguments:!0,callee:!0,caller:!0};function wd(e,t,n){Object.getOwnPropertyNames(t).forEach((function(r){if(!_d[r]){var i=Object.getOwnPropertyDescriptor(e,r);if(!i||i.configurable){var a,s,o=Object.getOwnPropertyDescriptor(t,r);if(!gd){if("cid"===r)return;var l=Object.getOwnPropertyDescriptor(n,r);if(s=hd(a=o.value),null!=a&&("object"===s||"function"===s)&&l&&l.value===o.value)return}Object.defineProperty(e,r,o)}}}))}function Td(e){return"function"==typeof e?xd(e):function(t){return xd(t,e)}}Td.registerHooks=function(e){var t;bd.push.apply(bd,function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(t=e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}())};const Sd=Td;var Ed="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function Md(e){return void 0===e&&(e={}),function(t,n){!function(e,t,n){if(Ed&&!Array.isArray(e)&&"function"!=typeof e&&!e.hasOwnProperty("type")&&void 0===e.type){var r=Reflect.getMetadata("design:type",t,n);r!==Object&&(e.type=r)}}(e,t,n),vd((function(t,n){(t.props||(t.props={}))[n]=e}))(t,n)}}function Ad(e,t){void 0===t&&(t={});var n=t.deep,r=void 0!==n&&n,i=t.immediate,a=void 0!==i&&i;return vd((function(t,n){"object"!=typeof t.watch&&(t.watch=Object.create(null));var i=t.watch;"object"!=typeof i[e]||Array.isArray(i[e])?void 0===i[e]&&(i[e]=[]):i[e]=[i[e]],i[e].push({handler:n,deep:r,immediate:a})}))}var Cd=function(e,t,n,r){var i,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};let Rd=class extends ud{constructor(){super(...arguments),Object.defineProperty(this,"msg",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentTime",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"data_0",{enumerable:!0,configurable:!0,writable:!0,value:{page_index:0,page_size:3,data:[{a:"面料类",b:"16500",c:"12063",d:"45.5%"},{a:"面料类",b:"26500",c:"12063",d:"45.5%"},{a:"面料类",b:"36500",c:"12063",d:"45.5%"},{a:"面料类",b:"46500",c:"12063",d:"45.5%"},{a:"面料类",b:"56500",c:"12063",d:"45.5%"}]}})}get reversedMessage(){return this.currentTime}test2(e){alert("你好"),console.log("event",e)}test1(){}created(){}mounted(){this.$nextTick((()=>{}))}updated(){}destroyed(){}};Object.defineProperty(Rd,"entryName",{enumerable:!0,configurable:!0,writable:!0,value:"FileViewer"}),Cd([Md(Number)],Rd.prototype,"msg",void 0),Cd([Md()],Rd.prototype,"name",void 0),Rd=Cd([Sd({components:{}}),Sd({name:"FileViewer"})],Rd);const Ld=Rd;var kd=n(379),Pd=n.n(kd),Dd=n(795),Od=n.n(Dd),Id=n(569),Nd=n.n(Id),Fd=n(565),Bd=n.n(Fd),Ud=n(216),zd=n.n(Ud),Hd=n(589),Vd=n.n(Hd),Gd=n(279),Wd={};function jd(e,t,n,r,i,a,s,o){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),s?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):i&&(l=o?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}Wd.styleTagTransform=Vd(),Wd.setAttributes=Bd(),Wd.insert=Nd().bind(null,"head"),Wd.domAPI=Od(),Wd.insertStyleElement=zd(),Pd()(Gd.Z,Wd),Gd.Z&&Gd.Z.locals&&Gd.Z.locals;const Xd=jd(Ld,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[e._m(0),e._v(" "),n("button",{staticClass:"click-button",on:{click:function(t){return e.test2(t)}}},[e._v("点击事件")])])}),[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{"background-color":"#42b983",color:"red"}},[e._v("\n zxcxzcxzcz\n "),n("span",[e._v("测试")])])}],!1,null,"7a6f68ae",null).exports,qd={name:"ImageViewer",data:()=>({viewerSrc:"",image:null,listDataCache:[],index:0,_shrink:.4,_enlarge:.6}),props:{list:{type:Array,default:[]},show:{type:Boolean,default:!1},currentIndex:{type:Number,default:0},name:{type:[String,Array],default:null},shrink:{type:Number,default:.6},enlarge:{type:Number,default:.6},alt:{type:String,default:"加载失败..."}},computed:{listLength(){return this.list.length},realSrc(){return this.list[this.index]},realName(){return null==this.name?this.list[this.index]:"string"==typeof this.name?this.name:Array.isArray(this.name)?this.name[this.index]:"未命名"},currentData(){return this.listDataCache[this.index]}},watch:{show(e){e?(this.$emit("open"),this.index=this.currentIndex,this.init(),setTimeout((()=>{this.switchAction("prev")}),100)):this.$emit("close")}},mounted(){this._shrink=1-this.shrink,this._enlarge=1+this.enlarge},methods:{init(){this.initMouseWheel(),this.keydown(),this.initListDataCache()},initListDataCache(e=0){const t=[],n=this;this.list.forEach(((e,r)=>{const i=new Image;t.push(new Promise((t=>{i.onload=function(e){n.listDataCache[r]={transform:{scaleX:"1",skewY:"0",translateX:"-50%",translateY:"-50%",rotate:"0deg"},left:"50%",top:"50%",width:`${i.width}px`,height:`${i.height}px`},t(""),i.onload=null},i.onerror=function(e){t(""),i.onerror=null},i.src=e})))})),Promise.all(t).then((t=>{this.image=this.$refs.duoViewerImage,this.initDrag(),this.$emit("loadComplete");const{width:n,height:r}=this.listDataCache[e];this.setStyleByName(this.image,"width",n),this.setStyleByName(this.image,"height",r)})),Promise.race(t).then((t=>{setTimeout((()=>{this.switchAction("prev")}),100),this.image=this.$refs.duoViewerImage,this.initDrag(),this.$emit("loadComplete");const{width:n,height:r}=this.listDataCache[e];this.setStyleByName(this.image,"width",n),this.setStyleByName(this.image,"height",r)}))},resetPosition(){let e=this.image,t=this.getCurrentTransform(e);this.setStyleByName(e,"top","50%"),this.setStyleByName(e,"left","50%"),t.translateX="-50%",t.translateY="-50%",this.setTransform(e,t)},resetRotate(){let e=this.image,t=this.getCurrentTransform(e);t.rotate="0deg",this.setTransform(e,t)},resetZoom(e=!0){const t=this.image,n=new Image;n.src=this.list[this.index];const r=this;n.onload=()=>{let{width:i,height:a}=n;if(e){let e=1;e=i>a?i/document.body.clientWidth:a/document.body.clientHeight,i=i/e*.8,a=a/e*.8}r.setStyleByName(t,"width",`${i}px`),r.setStyleByName(t,"height",`${a}px`),this.listDataCache[this.index]&&(this.listDataCache[this.index].width=`${i}px`,this.listDataCache[this.index].height=`${a}px`)}},resetAll(){this.resetZoom(),this.resetRotate(),this.resetPosition(),this.initListDataCache(this.index)},rotate(e){let t=this.image,n=this.getCurrentTransform(t),r=Math.round(Math.atan2(+n.skewY,+n.scaleX)*(180/Math.PI))+("left"===e?-90:90);n.rotate=`${r}deg`,n.translateX=`${n.translateX}px`,n.translateY=`${n.translateY}px`,this.currentData.transform=n,this.setTransform(t,n)},getStyleByName:(e,t)=>window.getComputedStyle(e,null)[t],setStyleByName(e,t,n){e&&(e.style[t]=n)},getCurrentTransform(e){let t;const n=this.getStyleByName(e,"transform");if("none"!==n)return t=n.split("(")[1].split(")")[0].split(","),{scaleX:t[0].trim(),skewY:t[1].trim(),translateX:t[4].trim(),translateY:t[5].trim()}},switchAction(e){let t=this.index;switch(e){case"prev":this.index+=this.index<=0?0:-1;break;case"next":let t=this.listLength-1;this.index+=this.index>=t?t-this.index:1;break;default:this.index=+e}this.judgeThumbnailListMove(t,this.index),setTimeout((()=>{try{const e=this.currentData;this.setStyleByName(this.image,"width",e.width),this.setStyleByName(this.image,"height",e.height),this.setStyleByName(this.image,"left",e.left),this.setStyleByName(this.image,"top",e.top),this.setTransform(this.image,e.transform)}catch(e){console.log("switchAction",e,this.currentData)}this.resetZoom(),this.resetPosition()}),100)},judgeThumbnailListMove(e,t){if(e==t)return;let n=0,r=0,i=34*(t-e),a=(this.listLength,this.$refs.duoViewerImageThumbnailList);a&&(r=this.getCurrentTransform(a),r&&(n=Math.abs(+r.translateX)),this.setTransform(a,{scaleX:"1",skewY:"0",translateX:`-${n+i}px`,translateY:"0%",rotate:"0deg"}))},setTransform(e,t){let n="";n+=`translateX(${t.translateX}) `,n+=`translateY(${t.translateY}) `,t.rotate&&(n+=`rotate(${t.rotate}) `),this.setStyleByName(e,"transform",n)},zoom(e){let t=this.image,n=+this.getStyleByName(t,"width").split("px")[0],r=+this.getStyleByName(t,"height").split("px")[0];r<=20&&"out"===e||("out"===e?(this.setStyleByName(t,"width",n*this._shrink+"px"),this.setStyleByName(t,"height",r*this._shrink+"px")):(this.setStyleByName(t,"width",n*this._enlarge+"px"),this.setStyleByName(t,"height",r*this._enlarge+"px")),this.currentData&&(this.currentData.width=this.getStyleByName(this.image,"width"),this.currentData.height=this.getStyleByName(this.image,"height")))},requestFullScreen(){let e=this.$refs.duoViewer,t=e.requestFullScreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;if(t)t.call(e);else if(void 0!==window.ActiveXObject){let e=new ActiveXObject("WScript.Shell");null!==e&&e.SendKeys("{F11}")}},keydown(){window.addEventListener("keydown",(e=>{(e=event||window.event||arguments.callee.caller.arguments[0])&&40==e.keyCode&&this.zoom("out"),e&&37==e.keyCode&&this.switchAction("prev"),e&&39==e.keyCode&&this.switchAction("next"),e&&38==e.keyCode&&this.zoom("in"),e&&27==e.keyCode&&this.handleClose()}))},initDrag(){let e,t,n,r,i,a,s,o,l=this.image;if(!l)return void console.error("初始化图片拖拽失败");const c=()=>(s=document.body.scrollLeft||document.documentElement.scrollLeft,o=document.body.scrollTop||document.documentElement.scrollTop,{scrollLeft:s,scrollTop:o}),u=e=>(i=e.pageX||e.clientX+c().scrollLeft,a=e.pageY||e.clientY+c().scrollTop,{pageX:i,pageY:a});l.onmousedown=i=>(i=i||window.event,e=u(i).pageX-l.offsetLeft,t=u(i).pageY-l.offsetTop,document.onmousemove=i=>{i=i||window.event,n=u(i).pageX-e,r=u(i).pageY-t,l.style.left=`${n}px`,l.style.top=`${r}px`},!1),document.onmouseup=()=>{document.onmousemove=null,this.listDataCache[this.index].left=`${n}px`,this.listDataCache[this.index].top=`${r}px`}},initMouseWheel(){const e=e=>{(e=e||window.event).wheelDelta?(e.wheelDelta>0&&this.zoom("out"),e.wheelDelta<0&&this.zoom("in")):e.detail&&(e.detail>0&&this.zoom("out"),e.detail<0&&this.zoom("in"))};document.addEventListener&&document.addEventListener("DOMMouseScroll",e,!1),window.onmousewheel=document.onmousewheel=e},clickAgent(e){switch(e.target.getAttribute("data-viewer-action")){case"zoom-in":this.zoom("in");break;case"zoom-out":this.zoom("out");break;case"one-to-one":this.resetZoom(!1);break;case"prev":this.switchAction("prev");break;case"play":this.requestFullScreen();break;case"next":this.switchAction("next");break;case"reset":this.resetAll();break;case"select":this.switchAction(e.target.getAttribute("data-viewer-action-index"));break;case"rotate-left":this.rotate("left");break;case"rotate-right":this.rotate("right")}},handleClose(){this.$emit("update:show",!1)}}},$d=qd;var Yd=n(906),Zd={};Zd.styleTagTransform=Vd(),Zd.setAttributes=Bd(),Zd.insert=Nd().bind(null,"head"),Zd.domAPI=Od(),Zd.insertStyleElement=zd(),Pd()(Yd.Z,Zd),Yd.Z&&Yd.Z.locals&&Yd.Z.locals;var Jd=jd($d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("div",{ref:"duoViewer",staticClass:"duo-viewer",on:{click:e.clickAgent}},[n("div",{staticClass:"duo-viewer-mask"},[n("img",{ref:"duoViewerImage",staticClass:"duo-viewer-mask__image",attrs:{src:e.realSrc,alt:e.alt}})]),e._v(" "),n("div",{staticClass:"duo-viewer-footer"},[n("div",{staticClass:"duo-viewer-footer__title"},[e._v(e._s(e.realName))]),e._v(" "),e._m(0),e._v(" "),n("div",{staticClass:"duo-viewer-footer__navbar"},[n("div",{staticClass:"duo-viewer-footer__navbar-thumbnail-wrap"},[n("div",{ref:"duoViewerImageThumbnailList",staticClass:"duo-viewer-footer__navbar-thumbnail-list",style:{width:34*e.listLength+"px"}},e._l(e.list,(function(t,r){return n("div",{key:t+r,class:r===e.index?"duo-viewer-footer__navbar-thumbnail-item viewer-current":"duo-viewer-footer__navbar-thumbnail-item"},[n("img",{staticClass:"duo-viewer-footer__navbar-thumbnail-image",attrs:{"data-viewer-action":"select","data-viewer-action-index":r,src:t,alt:e.alt}})])})),0)])])]),e._v(" "),n("div",{staticClass:"duo-viewer-close",on:{click:e.handleClose}},[n("div",{staticClass:"duo-viewer-close__off"})])]):e._e()}),[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"duo-viewer-footer__toolbar"},[n("ul",[n("li",{staticClass:"duo-viewer-footer__zoom-in",attrs:{"data-viewer-action":"zoom-in"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__zoom-out",attrs:{"data-viewer-action":"zoom-out"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__one-to-one",attrs:{"data-viewer-action":"one-to-one"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__prev",attrs:{"data-viewer-action":"prev"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__play",attrs:{"data-viewer-action":"play"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__next",attrs:{"data-viewer-action":"next"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__reset",attrs:{"data-viewer-action":"reset"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__rotate-left",attrs:{"data-viewer-action":"rotate-left"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__rotate-right",attrs:{"data-viewer-action":"rotate-right"}})])])}],!1,null,"78278b24",null);const Kd=Jd.exports,Qd={name:"ImageViewer",data:()=>({viewerSrc:"",image:null,listDataCache:[],index:0,imgUrl:"",isCreatePoster:!1}),props:{list:{type:Array,default:[]},show:{type:Boolean,default:!1},currentIndex:{type:Number,default:0},name:{type:[String,Array],default:null},width:{type:String,default:null},height:{type:String,default:null},imgList:{type:[String,Array],default:null},showThumbnail:{type:Boolean,default:!1}},computed:{listLength(){return this.list.length},realSrc(){return null===this.width&&null===this.height&&Mo.getVideoScale(this.list[this.index]).then((e=>{this.width=e[0],this.height=e[1]})),this.list[this.index]},realName(){return null==this.name?this.list[this.index]:"string"==typeof this.name?this.name:Array.isArray(this.name)?this.name[this.index]:"未命名"},currentData(){return this.listDataCache[this.index]}},watch:{show(e){if(e){null===this.imgList&&this.showThumbnail&&(this.imgList=new Array,this.isCreatePoster=!0);for(let e=0;e<this.list.length;e++)this.createVideoImg(this.list[e],e);this.$emit("open"),this.index=this.currentIndex,this.init()}else this.$emit("close")}},mounted(){},methods:{getVideoImg(e,t){return null!==this.imgList&&"string"==typeof this.imgList?this.imgList:null!==this.imgList&&Array.isArray(this.imgList)?this.imgList[t]:""},async createVideoImg(e,t){if(!this.isCreatePoster)return;const n=await Mo.getVideoBase64(e);this.imgList.push(n)},init(){this.keydown()},resetRotate(){let e=this.image,t=this.getCurrentTransform(e);t.rotate="0deg",this.setTransform(e,t)},resetZoom(){let e=this.image;const t=new Image;t.src=this.list[this.index];const{width:n,height:r}=t;this.setStyleByName(e,"width",`${n}px`),this.setStyleByName(e,"height",`${r}px`),this.listDataCache[this.index].width=`${n}px`,this.listDataCache[this.index].height=`${r}px`},resetAll(){this.resetZoom(),this.resetRotate(),this.resetPosition(),this.initListDataCache(this.index)},rotate(e){let t=this.image,n=this.getCurrentTransform(t),r=Math.round(Math.atan2(+n.skewY,+n.scaleX)*(180/Math.PI))+("left"===e?-90:90);n.rotate=`${r}deg`,n.translateX=`${n.translateX}px`,n.translateY=`${n.translateY}px`,this.currentData.transform=n,this.setTransform(t,n)},getStyleByName:(e,t)=>window.getComputedStyle(e,null)[t],setStyleByName(e,t,n){e&&(e.style[t]=n)},getCurrentTransform(e){let t,n=this.getStyleByName(e,"transform");if("none"!==n)return t=n.split("(")[1].split(")")[0].split(","),{scaleX:t[0].trim(),skewY:t[1].trim(),translateX:t[4].trim(),translateY:t[5].trim()}},switchAction(e){let t=this.index;switch(e){case"prev":this.index+=this.index<=0?0:-1;break;case"next":let t=this.listLength-1;this.index+=this.index>=t?t-this.index:1;break;default:this.index=+e}this.judgeThumbnailListMove(t,this.index)},judgeThumbnailListMove(e,t){if(e==t)return;let n=0,r=0,i=34*(t-e),a=(this.listLength,this.$refs.duoViewerImageThumbnailList);a&&(r=this.getCurrentTransform(a),r&&(n=Math.abs(+r.translateX)),this.setTransform(a,{scaleX:"1",skewY:"0",translateX:`-${n+i}px`,translateY:"0%",rotate:"0deg"}))},setTransform(e,t){let n="";n+=`translateX(${t.translateX}) `,n+=`translateY(${t.translateY}) `,t.rotate&&(n+=`rotate(${t.rotate}) `),this.setStyleByName(e,"transform",n)},requestFullScreen(){let e=this.$refs.duoViewer,t=e.requestFullScreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;if(t)t.call(e);else if(void 0!==window.ActiveXObject){let e=new ActiveXObject("WScript.Shell");null!==e&&e.SendKeys("{F11}")}},keydown(){window.addEventListener("keydown",(e=>{(e=event||window.event||arguments.callee.caller.arguments[0])&&40==e.keyCode&&this.zoom("out"),e&&37==e.keyCode&&this.switchAction("prev"),e&&39==e.keyCode&&this.switchAction("next"),e&&38==e.keyCode&&this.zoom("in"),e&&27==e.keyCode&&this.handleClose()}))},initMouseWheel(){const e=e=>{(e=e||window.event).wheelDelta?(e.wheelDelta>0&&this.zoom("out"),e.wheelDelta<0&&this.zoom("in")):e.detail&&(e.detail>0&&this.zoom("out"),e.detail<0&&this.zoom("in"))};document.addEventListener&&document.addEventListener("DOMMouseScroll",e,!1),window.onmousewheel=document.onmousewheel=e},clickAgent(e){switch(e.target.getAttribute("data-viewer-action")){case"zoom-in":this.zoom("in");break;case"zoom-out":this.zoom("out");break;case"one-to-one":this.resetZoom();break;case"prev":this.switchAction("prev");break;case"play":this.requestFullScreen();break;case"next":this.switchAction("next");break;case"reset":this.resetAll();break;case"select":this.switchAction(e.target.getAttribute("data-viewer-action-index"));break;case"rotate-left":this.rotate("left");break;case"rotate-right":this.rotate("right")}},handleClose(){this.imgList=null,this.isCreatePoster=!1,this.$emit("update:show",!1)}}},ep=Qd;var tp=n(366),np={};np.styleTagTransform=Vd(),np.setAttributes=Bd(),np.insert=Nd().bind(null,"head"),np.domAPI=Od(),np.insertStyleElement=zd(),Pd()(tp.Z,np),tp.Z&&tp.Z.locals&&tp.Z.locals;var rp=jd(ep,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("div",{ref:"duoViewer",staticClass:"duo-viewer",on:{click:e.clickAgent}},[n("div",{staticClass:"duo-viewer-mask"},[n("video",{staticClass:"duo-viewer-mask__image",attrs:{width:e.width,height:e.height,src:e.realSrc,type:"video/mp4",controls:"controls",autoplay:"autoplay",loop:"loop"}},[e._v("\n 您的浏览器不支持 HTML5 video 标签。\n ")])]),e._v(" "),e.showThumbnail?n("div",{staticClass:"duo-viewer-footer"},[n("div",{staticClass:"duo-viewer-footer__title"},[e._v(e._s(e.realName))]),e._v(" "),e._m(0),e._v(" "),n("div",{staticClass:"duo-viewer-footer__navbar"},[n("div",{staticClass:"duo-viewer-footer__navbar-thumbnail-wrap"},[n("div",{ref:"duoViewerImageThumbnailList",staticClass:"duo-viewer-footer__navbar-thumbnail-list",style:{width:34*e.listLength+"px"}},e._l(e.list,(function(t,r){return n("div",{key:t+r,class:r===e.index?"duo-viewer-footer__navbar-thumbnail-item viewer-current":"duo-viewer-footer__navbar-thumbnail-item"},[n("img",{staticClass:"duo-viewer-footer__navbar-thumbnail-image",attrs:{"data-viewer-action":"select","data-viewer-action-index":r,src:e.getVideoImg(t,r),alt:e.alt}})])})),0)])])]):e._e(),e._v(" "),n("div",{staticClass:"duo-viewer-close",on:{click:e.handleClose}},[n("div",{staticClass:"duo-viewer-close__off"})])]):e._e()}),[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"duo-viewer-footer__toolbar"},[n("ul",[n("li",{staticClass:"duo-viewer-footer__zoom-in",attrs:{"data-viewer-action":"zoom-in"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__zoom-out",attrs:{"data-viewer-action":"zoom-out"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__one-to-one",attrs:{"data-viewer-action":"one-to-one"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__prev",attrs:{"data-viewer-action":"prev"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__play",attrs:{"data-viewer-action":"play"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__next",attrs:{"data-viewer-action":"next"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__reset",attrs:{"data-viewer-action":"reset"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__rotate-left",attrs:{"data-viewer-action":"rotate-left"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__rotate-right",attrs:{"data-viewer-action":"rotate-right"}})])])}],!1,null,"1d5bdf50",null);const ip=rp.exports,ap=100,sp=301,op=302,lp=306,cp=1e3,up=1001,hp=1002,fp=1003,dp=1006,pp=1008,mp=1009,gp=1012,vp=1014,yp=1015,bp=1016,xp=1020,_p=1023,wp=1026,Tp=1027,Sp=33776,Ep=33777,Mp=33778,Ap=33779,Cp=2300,Rp=2301,Lp=2302,kp=2400,Pp=2401,Dp=2402,Op=3e3,Ip=3001,Np="srgb",Fp="srgb-linear",Bp=7680,Up=35044,zp=35048,Hp="300 es",Vp=1035;class Gp{addEventListener(e,t){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)}hasEventListener(e,t){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[e]&&-1!==n[e].indexOf(t)}removeEventListener(e,t){if(void 0===this._listeners)return;const n=this._listeners[e];if(void 0!==n){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}dispatchEvent(e){if(void 0===this._listeners)return;const t=this._listeners[e.type];if(void 0!==t){e.target=this;const n=t.slice(0);for(let t=0,r=n.length;t<r;t++)n[t].call(this,e);e.target=null}}}const Wp=[];for(let e=0;e<256;e++)Wp[e]=(e<16?"0":"")+e.toString(16);let jp=1234567;const Xp=Math.PI/180,qp=180/Math.PI;function $p(){const e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return(Wp[255&e]+Wp[e>>8&255]+Wp[e>>16&255]+Wp[e>>24&255]+"-"+Wp[255&t]+Wp[t>>8&255]+"-"+Wp[t>>16&15|64]+Wp[t>>24&255]+"-"+Wp[63&n|128]+Wp[n>>8&255]+"-"+Wp[n>>16&255]+Wp[n>>24&255]+Wp[255&r]+Wp[r>>8&255]+Wp[r>>16&255]+Wp[r>>24&255]).toLowerCase()}function Yp(e,t,n){return Math.max(t,Math.min(n,e))}function Zp(e,t){return(e%t+t)%t}function Jp(e,t,n){return(1-n)*e+n*t}function Kp(e){return 0==(e&e-1)&&0!==e}function Qp(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))}var em=Object.freeze({__proto__:null,DEG2RAD:Xp,RAD2DEG:qp,generateUUID:$p,clamp:Yp,euclideanModulo:Zp,mapLinear:function(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)},inverseLerp:function(e,t,n){return e!==t?(n-e)/(t-e):0},lerp:Jp,damp:function(e,t,n,r){return Jp(e,t,1-Math.exp(-n*r))},pingpong:function(e,t=1){return t-Math.abs(Zp(e,2*t)-t)},smoothstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*(3-2*e)},smootherstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*e*(e*(6*e-15)+10)},randInt:function(e,t){return e+Math.floor(Math.random()*(t-e+1))},randFloat:function(e,t){return e+Math.random()*(t-e)},randFloatSpread:function(e){return e*(.5-Math.random())},seededRandom:function(e){void 0!==e&&(jp=e);let t=jp+=1831565813;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),((t^t>>>14)>>>0)/4294967296},degToRad:function(e){return e*Xp},radToDeg:function(e){return e*qp},isPowerOfTwo:Kp,ceilPowerOfTwo:function(e){return Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))},floorPowerOfTwo:Qp,setQuaternionFromProperEuler:function(e,t,n,r,i){const a=Math.cos,s=Math.sin,o=a(n/2),l=s(n/2),c=a((t+r)/2),u=s((t+r)/2),h=a((t-r)/2),f=s((t-r)/2),d=a((r-t)/2),p=s((r-t)/2);switch(i){case"XYX":e.set(o*u,l*h,l*f,o*c);break;case"YZY":e.set(l*f,o*u,l*h,o*c);break;case"ZXZ":e.set(l*h,l*f,o*u,o*c);break;case"XZX":e.set(o*u,l*p,l*d,o*c);break;case"YXY":e.set(l*d,o*u,l*p,o*c);break;case"ZYZ":e.set(l*p,l*d,o*u,o*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}},normalize:function(e,t){switch(t.constructor){case Float32Array:return e;case Uint16Array:return Math.round(65535*e);case Uint8Array:return Math.round(255*e);case Int16Array:return Math.round(32767*e);case Int8Array:return Math.round(127*e);default:throw new Error("Invalid component type.")}},denormalize:function(e,t){switch(t.constructor){case Float32Array:return e;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw new Error("Invalid component type.")}}});class tm{constructor(e=0,t=0){this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e,t){return void 0!==t?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this)}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e,t){return void 0!==t?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this)}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t,n){return void 0!==n&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}tm.prototype.isVector2=!0;class nm{constructor(){this.elements=[1,0,0,0,1,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}set(e,t,n,r,i,a,s,o,l){const c=this.elements;return c[0]=e,c[1]=r,c[2]=s,c[3]=t,c[4]=i,c[5]=o,c[6]=n,c[7]=a,c[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,i=this.elements,a=n[0],s=n[3],o=n[6],l=n[1],c=n[4],u=n[7],h=n[2],f=n[5],d=n[8],p=r[0],m=r[3],g=r[6],v=r[1],y=r[4],b=r[7],x=r[2],_=r[5],w=r[8];return i[0]=a*p+s*v+o*x,i[3]=a*m+s*y+o*_,i[6]=a*g+s*b+o*w,i[1]=l*p+c*v+u*x,i[4]=l*m+c*y+u*_,i[7]=l*g+c*b+u*w,i[2]=h*p+f*v+d*x,i[5]=h*m+f*y+d*_,i[8]=h*g+f*b+d*w,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],s=e[5],o=e[6],l=e[7],c=e[8];return t*a*c-t*s*l-n*i*c+n*s*o+r*i*l-r*a*o}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],s=e[5],o=e[6],l=e[7],c=e[8],u=c*a-s*l,h=s*o-c*i,f=l*i-a*o,d=t*u+n*h+r*f;if(0===d)return this.set(0,0,0,0,0,0,0,0,0);const p=1/d;return e[0]=u*p,e[1]=(r*l-c*n)*p,e[2]=(s*n-r*a)*p,e[3]=h*p,e[4]=(c*t-r*o)*p,e[5]=(r*i-s*t)*p,e[6]=f*p,e[7]=(n*o-l*t)*p,e[8]=(a*t-n*i)*p,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,s){const o=Math.cos(i),l=Math.sin(i);return this.set(n*o,n*l,-n*(o*a+l*s)+a+e,-r*l,r*o,-r*(-l*a+o*s)+s+t,0,0,1),this}scale(e,t){const n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=t,n[4]*=t,n[7]*=t,this}rotate(e){const t=Math.cos(e),n=Math.sin(e),r=this.elements,i=r[0],a=r[3],s=r[6],o=r[1],l=r[4],c=r[7];return r[0]=t*i+n*o,r[3]=t*a+n*l,r[6]=t*s+n*c,r[1]=-n*i+t*o,r[4]=-n*a+t*l,r[7]=-n*s+t*c,this}translate(e,t){const n=this.elements;return n[0]+=e*n[2],n[3]+=e*n[5],n[6]+=e*n[8],n[1]+=t*n[2],n[4]+=t*n[5],n[7]+=t*n[8],this}equals(e){const t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return(new this.constructor).fromArray(this.elements)}}function rm(e){for(let t=e.length-1;t>=0;--t)if(e[t]>65535)return!0;return!1}function im(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}function am(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function sm(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}nm.prototype.isMatrix3=!0,Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array;const om={[Np]:{[Fp]:am},[Fp]:{[Np]:sm}},lm={legacyMode:!0,get workingColorSpace(){return Fp},set workingColorSpace(e){console.warn("THREE.ColorManagement: .workingColorSpace is readonly.")},convert:function(e,t,n){if(this.legacyMode||t===n||!t||!n)return e;if(om[t]&&void 0!==om[t][n]){const r=om[t][n];return e.r=r(e.r),e.g=r(e.g),e.b=r(e.b),e}throw new Error("Unsupported color space conversion.")},fromWorkingColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},toWorkingColorSpace:function(e,t){return this.convert(e,t,this.workingColorSpace)}},cm={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},um={r:0,g:0,b:0},hm={h:0,s:0,l:0},fm={h:0,s:0,l:0};function dm(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e}function pm(e,t){return t.r=e.r,t.g=e.g,t.b=e.b,t}class mm{constructor(e,t,n){return void 0===t&&void 0===n?this.set(e):this.setRGB(e,t,n)}set(e){return e&&e.isColor?this.copy(e):"number"==typeof e?this.setHex(e):"string"==typeof e&&this.setStyle(e),this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t="srgb"){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,lm.toWorkingColorSpace(this,t),this}setRGB(e,t,n,r="srgb-linear"){return this.r=e,this.g=t,this.b=n,lm.toWorkingColorSpace(this,r),this}setHSL(e,t,n,r="srgb-linear"){if(e=Zp(e,1),t=Yp(t,0,1),n=Yp(n,0,1),0===t)this.r=this.g=this.b=n;else{const r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=dm(i,r,e+1/3),this.g=dm(i,r,e),this.b=dm(i,r,e-1/3)}return lm.toWorkingColorSpace(this,r),this}setStyle(e,t="srgb"){function n(t){void 0!==t&&parseFloat(t)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let r;if(r=/^((?:rgb|hsl)a?)\(([^\)]*)\)/.exec(e)){let e;const i=r[1],a=r[2];switch(i){case"rgb":case"rgba":if(e=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return this.r=Math.min(255,parseInt(e[1],10))/255,this.g=Math.min(255,parseInt(e[2],10))/255,this.b=Math.min(255,parseInt(e[3],10))/255,lm.toWorkingColorSpace(this,t),n(e[4]),this;if(e=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return this.r=Math.min(100,parseInt(e[1],10))/100,this.g=Math.min(100,parseInt(e[2],10))/100,this.b=Math.min(100,parseInt(e[3],10))/100,lm.toWorkingColorSpace(this,t),n(e[4]),this;break;case"hsl":case"hsla":if(e=/^\s*(\d*\.?\d+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a)){const r=parseFloat(e[1])/360,i=parseInt(e[2],10)/100,a=parseInt(e[3],10)/100;return n(e[4]),this.setHSL(r,i,a,t)}}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){const e=r[1],n=e.length;if(3===n)return this.r=parseInt(e.charAt(0)+e.charAt(0),16)/255,this.g=parseInt(e.charAt(1)+e.charAt(1),16)/255,this.b=parseInt(e.charAt(2)+e.charAt(2),16)/255,lm.toWorkingColorSpace(this,t),this;if(6===n)return this.r=parseInt(e.charAt(0)+e.charAt(1),16)/255,this.g=parseInt(e.charAt(2)+e.charAt(3),16)/255,this.b=parseInt(e.charAt(4)+e.charAt(5),16)/255,lm.toWorkingColorSpace(this,t),this}return e&&e.length>0?this.setColorName(e,t):this}setColorName(e,t="srgb"){const n=cm[e.toLowerCase()];return void 0!==n?this.setHex(n,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=am(e.r),this.g=am(e.g),this.b=am(e.b),this}copyLinearToSRGB(e){return this.r=sm(e.r),this.g=sm(e.g),this.b=sm(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e="srgb"){return lm.fromWorkingColorSpace(pm(this,um),e),Yp(255*um.r,0,255)<<16^Yp(255*um.g,0,255)<<8^Yp(255*um.b,0,255)<<0}getHexString(e="srgb"){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t="srgb-linear"){lm.fromWorkingColorSpace(pm(this,um),t);const n=um.r,r=um.g,i=um.b,a=Math.max(n,r,i),s=Math.min(n,r,i);let o,l;const c=(s+a)/2;if(s===a)o=0,l=0;else{const e=a-s;switch(l=c<=.5?e/(a+s):e/(2-a-s),a){case n:o=(r-i)/e+(r<i?6:0);break;case r:o=(i-n)/e+2;break;case i:o=(n-r)/e+4}o/=6}return e.h=o,e.s=l,e.l=c,e}getRGB(e,t="srgb-linear"){return lm.fromWorkingColorSpace(pm(this,um),t),e.r=um.r,e.g=um.g,e.b=um.b,e}getStyle(e="srgb"){return lm.fromWorkingColorSpace(pm(this,um),e),e!==Np?`color(${e} ${um.r} ${um.g} ${um.b})`:`rgb(${255*um.r|0},${255*um.g|0},${255*um.b|0})`}offsetHSL(e,t,n){return this.getHSL(hm),hm.h+=e,hm.s+=t,hm.l+=n,this.setHSL(hm.h,hm.s,hm.l),this}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}lerpColors(e,t,n){return this.r=e.r+(t.r-e.r)*n,this.g=e.g+(t.g-e.g)*n,this.b=e.b+(t.b-e.b)*n,this}lerpHSL(e,t){this.getHSL(hm),e.getHSL(fm);const n=Jp(hm.h,fm.h,t),r=Jp(hm.s,fm.s,t),i=Jp(hm.l,fm.l,t);return this.setHSL(n,r,i),this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,t=0){return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}toArray(e=[],t=0){return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),!0===e.normalized&&(this.r/=255,this.g/=255,this.b/=255),this}toJSON(){return this.getHex()}}let gm;mm.NAMES=cm,mm.prototype.isColor=!0,mm.prototype.r=1,mm.prototype.g=1,mm.prototype.b=1;class vm{static getDataURL(e){if(/^data:/i.test(e.src))return e.src;if("undefined"==typeof HTMLCanvasElement)return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{void 0===gm&&(gm=im("canvas")),gm.width=e.width,gm.height=e.height;const n=gm.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=gm}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){const t=im("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e<i.length;e++)i[e]=255*am(i[e]/255);return n.putImageData(r,0,0),t}if(e.data){const t=e.data.slice(0);for(let e=0;e<t.length;e++)t instanceof Uint8Array||t instanceof Uint8ClampedArray?t[e]=Math.floor(255*am(t[e]/255)):t[e]=am(t[e]);return{data:t,width:e.width,height:e.height}}return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),e}}class ym{constructor(e=null){this.uuid=$p(),this.data=e,this.version=0}set needsUpdate(e){!0===e&&this.version++}toJSON(e){const t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.images[this.uuid])return e.images[this.uuid];const n={uuid:this.uuid,url:""},r=this.data;if(null!==r){let e;if(Array.isArray(r)){e=[];for(let t=0,n=r.length;t<n;t++)r[t].isDataTexture?e.push(bm(r[t].image)):e.push(bm(r[t]))}else e=bm(r);n.url=e}return t||(e.images[this.uuid]=n),n}}function bm(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap?vm.getDataURL(e):e.data?{data:Array.prototype.slice.call(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}ym.prototype.isSource=!0;let xm=0;class _m extends Gp{constructor(e=_m.DEFAULT_IMAGE,t=_m.DEFAULT_MAPPING,n=1001,r=1001,i=1006,a=1008,s=1023,o=1009,l=1,c=3e3){super(),Object.defineProperty(this,"id",{value:xm++}),this.uuid=$p(),this.name="",this.source=new ym(e),this.mipmaps=[],this.mapping=t,this.wrapS=n,this.wrapT=r,this.magFilter=i,this.minFilter=a,this.anisotropy=l,this.format=s,this.internalFormat=null,this.type=o,this.offset=new tm(0,0),this.repeat=new tm(1,1),this.center=new tm(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new nm,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=c,this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.needsPMREMUpdate=!1}get image(){return this.source.data}set image(e){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return(new this.constructor).copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.encoding=e.encoding,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}toJSON(e){const t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.textures[this.uuid])return e.textures[this.uuid];const n={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,type:this.type,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return"{}"!==JSON.stringify(this.userData)&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(300!==this.mapping)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case cp:e.x=e.x-Math.floor(e.x);break;case up:e.x=e.x<0?0:1;break;case hp:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case cp:e.y=e.y-Math.floor(e.y);break;case up:e.y=e.y<0?0:1;break;case hp:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){!0===e&&(this.version++,this.source.needsUpdate=!0)}}_m.DEFAULT_IMAGE=null,_m.DEFAULT_MAPPING=300,_m.prototype.isTexture=!0;class wm{constructor(e=0,t=0,n=0,r=1){this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}add(e,t){return void 0!==t?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this)}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e,t){return void 0!==t?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this)}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i;const a=.01,s=.1,o=e.elements,l=o[0],c=o[4],u=o[8],h=o[1],f=o[5],d=o[9],p=o[2],m=o[6],g=o[10];if(Math.abs(c-h)<a&&Math.abs(u-p)<a&&Math.abs(d-m)<a){if(Math.abs(c+h)<s&&Math.abs(u+p)<s&&Math.abs(d+m)<s&&Math.abs(l+f+g-3)<s)return this.set(1,0,0,0),this;t=Math.PI;const e=(l+1)/2,o=(f+1)/2,v=(g+1)/2,y=(c+h)/4,b=(u+p)/4,x=(d+m)/4;return e>o&&e>v?e<a?(n=0,r=.707106781,i=.707106781):(n=Math.sqrt(e),r=y/n,i=b/n):o>v?o<a?(n=.707106781,r=0,i=.707106781):(r=Math.sqrt(o),n=y/r,i=x/r):v<a?(n=.707106781,r=.707106781,i=0):(i=Math.sqrt(v),n=b/i,r=x/i),this.set(n,r,i,t),this}let v=Math.sqrt((m-d)*(m-d)+(u-p)*(u-p)+(h-c)*(h-c));return Math.abs(v)<.001&&(v=1),this.x=(m-d)/v,this.y=(u-p)/v,this.z=(h-c)/v,this.w=Math.acos((l+f+g-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?Math.ceil(this.w):Math.floor(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t,n){return void 0!==n&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}wm.prototype.isVector4=!0;class Tm extends Gp{constructor(e,t,n={}){super(),this.width=e,this.height=t,this.depth=1,this.scissor=new wm(0,0,e,t),this.scissorTest=!1,this.viewport=new wm(0,0,e,t);const r={width:e,height:t,depth:1};this.texture=new _m(r,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=void 0!==n.generateMipmaps&&n.generateMipmaps,this.texture.internalFormat=void 0!==n.internalFormat?n.internalFormat:null,this.texture.minFilter=void 0!==n.minFilter?n.minFilter:dp,this.depthBuffer=void 0===n.depthBuffer||n.depthBuffer,this.stencilBuffer=void 0!==n.stencilBuffer&&n.stencilBuffer,this.depthTexture=void 0!==n.depthTexture?n.depthTexture:null,this.samples=void 0!==n.samples?n.samples:0}setSize(e,t,n=1){this.width===e&&this.height===t&&this.depth===n||(this.width=e,this.height=t,this.depth=n,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=n,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return(new this.constructor).copy(this)}copy(e){return this.width=e.width,this.height=e.height,this.depth=e.depth,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0,this.texture.image=Object.assign({},e.texture.image),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,null!==e.depthTexture&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}Tm.prototype.isWebGLRenderTarget=!0;class Sm extends _m{constructor(e=null,t=1,n=1,r=1){super(null),this.image={data:e,width:t,height:n,depth:r},this.magFilter=fp,this.minFilter=fp,this.wrapR=up,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}Sm.prototype.isDataArrayTexture=!0,class extends Tm{constructor(e,t,n){super(e,t),this.depth=n,this.texture=new Sm(null,e,t,n),this.texture.isRenderTargetTexture=!0}}.prototype.isWebGLArrayRenderTarget=!0;class Em extends _m{constructor(e=null,t=1,n=1,r=1){super(null),this.image={data:e,width:t,height:n,depth:r},this.magFilter=fp,this.minFilter=fp,this.wrapR=up,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}Em.prototype.isData3DTexture=!0,class extends Tm{constructor(e,t,n){super(e,t),this.depth=n,this.texture=new Em(null,e,t,n),this.texture.isRenderTargetTexture=!0}}.prototype.isWebGL3DRenderTarget=!0,class extends Tm{constructor(e,t,n,r={}){super(e,t,r);const i=this.texture;this.texture=[];for(let e=0;e<n;e++)this.texture[e]=i.clone(),this.texture[e].isRenderTargetTexture=!0}setSize(e,t,n=1){if(this.width!==e||this.height!==t||this.depth!==n){this.width=e,this.height=t,this.depth=n;for(let r=0,i=this.texture.length;r<i;r++)this.texture[r].image.width=e,this.texture[r].image.height=t,this.texture[r].image.depth=n;this.dispose()}return this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t),this}copy(e){this.dispose(),this.width=e.width,this.height=e.height,this.depth=e.depth,this.viewport.set(0,0,this.width,this.height),this.scissor.set(0,0,this.width,this.height),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,this.depthTexture=e.depthTexture,this.texture.length=0;for(let t=0,n=e.texture.length;t<n;t++)this.texture[t]=e.texture[t].clone();return this}}.prototype.isWebGLMultipleRenderTargets=!0;class Mm{constructor(e=0,t=0,n=0,r=1){this._x=e,this._y=t,this._z=n,this._w=r}static slerp(e,t,n,r){return console.warn("THREE.Quaternion: Static .slerp() has been deprecated. Use qm.slerpQuaternions( qa, qb, t ) instead."),n.slerpQuaternions(e,t,r)}static slerpFlat(e,t,n,r,i,a,s){let o=n[r+0],l=n[r+1],c=n[r+2],u=n[r+3];const h=i[a+0],f=i[a+1],d=i[a+2],p=i[a+3];if(0===s)return e[t+0]=o,e[t+1]=l,e[t+2]=c,void(e[t+3]=u);if(1===s)return e[t+0]=h,e[t+1]=f,e[t+2]=d,void(e[t+3]=p);if(u!==p||o!==h||l!==f||c!==d){let e=1-s;const t=o*h+l*f+c*d+u*p,n=t>=0?1:-1,r=1-t*t;if(r>Number.EPSILON){const i=Math.sqrt(r),a=Math.atan2(i,t*n);e=Math.sin(e*a)/i,s=Math.sin(s*a)/i}const i=s*n;if(o=o*e+h*i,l=l*e+f*i,c=c*e+d*i,u=u*e+p*i,e===1-s){const e=1/Math.sqrt(o*o+l*l+c*c+u*u);o*=e,l*=e,c*=e,u*=e}}e[t]=o,e[t+1]=l,e[t+2]=c,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){const s=n[r],o=n[r+1],l=n[r+2],c=n[r+3],u=i[a],h=i[a+1],f=i[a+2],d=i[a+3];return e[t]=s*d+c*u+o*f-l*h,e[t+1]=o*d+c*h+l*u-s*f,e[t+2]=l*d+c*f+s*h-o*u,e[t+3]=c*d-s*u-o*h-l*f,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t){if(!e||!e.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");const n=e._x,r=e._y,i=e._z,a=e._order,s=Math.cos,o=Math.sin,l=s(n/2),c=s(r/2),u=s(i/2),h=o(n/2),f=o(r/2),d=o(i/2);switch(a){case"XYZ":this._x=h*c*u+l*f*d,this._y=l*f*u-h*c*d,this._z=l*c*d+h*f*u,this._w=l*c*u-h*f*d;break;case"YXZ":this._x=h*c*u+l*f*d,this._y=l*f*u-h*c*d,this._z=l*c*d-h*f*u,this._w=l*c*u+h*f*d;break;case"ZXY":this._x=h*c*u-l*f*d,this._y=l*f*u+h*c*d,this._z=l*c*d+h*f*u,this._w=l*c*u-h*f*d;break;case"ZYX":this._x=h*c*u-l*f*d,this._y=l*f*u+h*c*d,this._z=l*c*d-h*f*u,this._w=l*c*u+h*f*d;break;case"YZX":this._x=h*c*u+l*f*d,this._y=l*f*u+h*c*d,this._z=l*c*d-h*f*u,this._w=l*c*u-h*f*d;break;case"XZY":this._x=h*c*u-l*f*d,this._y=l*f*u-h*c*d,this._z=l*c*d+h*f*u,this._w=l*c*u+h*f*d;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+a)}return!1!==t&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],s=t[5],o=t[9],l=t[2],c=t[6],u=t[10],h=n+s+u;if(h>0){const e=.5/Math.sqrt(h+1);this._w=.25/e,this._x=(c-o)*e,this._y=(i-l)*e,this._z=(a-r)*e}else if(n>s&&n>u){const e=2*Math.sqrt(1+n-s-u);this._w=(c-o)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+l)/e}else if(s>u){const e=2*Math.sqrt(1+s-n-u);this._w=(i-l)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(o+c)/e}else{const e=2*Math.sqrt(1+u-n-s);this._w=(a-r)/e,this._x=(i+l)/e,this._y=(o+c)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<Number.EPSILON?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Yp(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(0===n)return this;const r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e,t){return void 0!==t?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(e,t)):this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const n=e._x,r=e._y,i=e._z,a=e._w,s=t._x,o=t._y,l=t._z,c=t._w;return this._x=n*c+a*s+r*l-i*o,this._y=r*c+a*o+i*s-n*l,this._z=i*c+a*l+n*o-r*s,this._w=a*c-n*s-r*o-i*l,this._onChangeCallback(),this}slerp(e,t){if(0===t)return this;if(1===t)return this.copy(e);const n=this._x,r=this._y,i=this._z,a=this._w;let s=a*e._w+n*e._x+r*e._y+i*e._z;if(s<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,s=-s):this.copy(e),s>=1)return this._w=a,this._x=n,this._y=r,this._z=i,this;const o=1-s*s;if(o<=Number.EPSILON){const e=1-t;return this._w=e*a+t*this._w,this._x=e*n+t*this._x,this._y=e*r+t*this._y,this._z=e*i+t*this._z,this.normalize(),this._onChangeCallback(),this}const l=Math.sqrt(o),c=Math.atan2(l,s),u=Math.sin((1-t)*c)/l,h=Math.sin(t*c)/l;return this._w=a*u+this._w*h,this._x=n*u+this._x*h,this._y=r*u+this._y*h,this._z=i*u+this._z*h,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const e=Math.random(),t=Math.sqrt(1-e),n=Math.sqrt(e),r=2*Math.PI*Math.random(),i=2*Math.PI*Math.random();return this.set(t*Math.cos(r),n*Math.sin(i),n*Math.cos(i),t*Math.sin(r))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}}Mm.prototype.isQuaternion=!0;class Am{constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.z=n}set(e,t,n){return void 0===n&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e,t){return void 0!==t?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this)}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e,t){return void 0!==t?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this)}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e,t){return void 0!==t?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(e,t)):(this.x*=e.x,this.y*=e.y,this.z*=e.z,this)}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return e&&e.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(Rm.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(Rm.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){const t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,s=e.z,o=e.w,l=o*t+a*r-s*n,c=o*n+s*t-i*r,u=o*r+i*n-a*t,h=-i*t-a*n-s*r;return this.x=l*o+h*-i+c*-s-u*-a,this.y=c*o+h*-a+u*-i-l*-s,this.z=u*o+h*-s+l*-a-c*-i,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e,t){return void 0!==t?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(e,t)):this.crossVectors(this,e)}crossVectors(e,t){const n=e.x,r=e.y,i=e.z,a=t.x,s=t.y,o=t.z;return this.x=r*o-i*s,this.y=i*a-n*o,this.z=n*s-r*a,this}projectOnVector(e){const t=e.lengthSq();if(0===t)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return Cm.copy(this).projectOnVector(e),this.sub(Cm)}reflect(e){return this.sub(Cm.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(Yp(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){const r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,4*t)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,3*t)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t,n){return void 0!==n&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=2*(Math.random()-.5),t=Math.random()*Math.PI*2,n=Math.sqrt(1-e**2);return this.x=n*Math.cos(t),this.y=n*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}Am.prototype.isVector3=!0;const Cm=new Am,Rm=new Mm;class Lm{constructor(e=new Am(1/0,1/0,1/0),t=new Am(-1/0,-1/0,-1/0)){this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){let t=1/0,n=1/0,r=1/0,i=-1/0,a=-1/0,s=-1/0;for(let o=0,l=e.length;o<l;o+=3){const l=e[o],c=e[o+1],u=e[o+2];l<t&&(t=l),c<n&&(n=c),u<r&&(r=u),l>i&&(i=l),c>a&&(a=c),u>s&&(s=u)}return this.min.set(t,n,r),this.max.set(i,a,s),this}setFromBufferAttribute(e){let t=1/0,n=1/0,r=1/0,i=-1/0,a=-1/0,s=-1/0;for(let o=0,l=e.count;o<l;o++){const l=e.getX(o),c=e.getY(o),u=e.getZ(o);l<t&&(t=l),c<n&&(n=c),u<r&&(r=u),l>i&&(i=l),c>a&&(a=c),u>s&&(s=u)}return this.min.set(t,n,r),this.max.set(i,a,s),this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){const n=Pm.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}setFromObject(e,t=!1){return this.makeEmpty(),this.expandByObject(e,t)}clone(){return(new this.constructor).copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,t=!1){e.updateWorldMatrix(!1,!1);const n=e.geometry;if(void 0!==n)if(t&&null!=n.attributes&&void 0!==n.attributes.position){const t=n.attributes.position;for(let n=0,r=t.count;n<r;n++)Pm.fromBufferAttribute(t,n).applyMatrix4(e.matrixWorld),this.expandByPoint(Pm)}else null===n.boundingBox&&n.computeBoundingBox(),Dm.copy(n.boundingBox),Dm.applyMatrix4(e.matrixWorld),this.union(Dm);const r=e.children;for(let e=0,n=r.length;e<n;e++)this.expandByObject(r[e],t);return this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y||e.z<this.min.z||e.z>this.max.z)}containsBox(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&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(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||e.max.z<this.min.z||e.min.z>this.max.z)}intersectsSphere(e){return this.clampPoint(e.center,Pm),Pm.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(zm),Hm.subVectors(this.max,zm),Om.subVectors(e.a,zm),Im.subVectors(e.b,zm),Nm.subVectors(e.c,zm),Fm.subVectors(Im,Om),Bm.subVectors(Nm,Im),Um.subVectors(Om,Nm);let t=[0,-Fm.z,Fm.y,0,-Bm.z,Bm.y,0,-Um.z,Um.y,Fm.z,0,-Fm.x,Bm.z,0,-Bm.x,Um.z,0,-Um.x,-Fm.y,Fm.x,0,-Bm.y,Bm.x,0,-Um.y,Um.x,0];return!!Wm(t,Om,Im,Nm,Hm)&&(t=[1,0,0,0,1,0,0,0,1],!!Wm(t,Om,Im,Nm,Hm)&&(Vm.crossVectors(Fm,Bm),t=[Vm.x,Vm.y,Vm.z],Wm(t,Om,Im,Nm,Hm)))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return Pm.copy(e).clamp(this.min,this.max).sub(e).length()}getBoundingSphere(e){return this.getCenter(e.center),e.radius=.5*this.getSize(Pm).length(),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(km[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),km[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),km[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),km[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),km[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),km[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),km[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),km[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(km)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}Lm.prototype.isBox3=!0;const km=[new Am,new Am,new Am,new Am,new Am,new Am,new Am,new Am],Pm=new Am,Dm=new Lm,Om=new Am,Im=new Am,Nm=new Am,Fm=new Am,Bm=new Am,Um=new Am,zm=new Am,Hm=new Am,Vm=new Am,Gm=new Am;function Wm(e,t,n,r,i){for(let a=0,s=e.length-3;a<=s;a+=3){Gm.fromArray(e,a);const s=i.x*Math.abs(Gm.x)+i.y*Math.abs(Gm.y)+i.z*Math.abs(Gm.z),o=t.dot(Gm),l=n.dot(Gm),c=r.dot(Gm);if(Math.max(-Math.max(o,l,c),Math.min(o,l,c))>s)return!1}return!0}const jm=new Lm,Xm=new Am,qm=new Am,$m=new Am;class Ym{constructor(e=new Am,t=-1){this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;void 0!==t?n.copy(t):jm.setFromPoints(e).getCenter(n);let r=0;for(let t=0,i=e.length;t<i;t++)r=Math.max(r,n.distanceToSquared(e[t]));return this.radius=Math.sqrt(r),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){const t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){const n=this.center.distanceToSquared(e);return t.copy(e),n>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){$m.subVectors(e,this.center);const t=$m.lengthSq();if(t>this.radius*this.radius){const e=Math.sqrt(t),n=.5*(e-this.radius);this.center.add($m.multiplyScalar(n/e)),this.radius+=n}return this}union(e){return!0===this.center.equals(e.center)?qm.set(0,0,1).multiplyScalar(e.radius):qm.subVectors(e.center,this.center).normalize().multiplyScalar(e.radius),this.expandByPoint(Xm.copy(e.center).add(qm)),this.expandByPoint(Xm.copy(e.center).sub(qm)),this}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const Zm=new Am,Jm=new Am,Km=new Am,Qm=new Am,eg=new Am,tg=new Am,ng=new Am;class rg{constructor(e=new Am,t=new Am(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.direction).multiplyScalar(e).add(this.origin)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Zm)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.direction).multiplyScalar(n).add(this.origin)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=Zm.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Zm.copy(this.direction).multiplyScalar(t).add(this.origin),Zm.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){Jm.copy(e).add(t).multiplyScalar(.5),Km.copy(t).sub(e).normalize(),Qm.copy(this.origin).sub(Jm);const i=.5*e.distanceTo(t),a=-this.direction.dot(Km),s=Qm.dot(this.direction),o=-Qm.dot(Km),l=Qm.lengthSq(),c=Math.abs(1-a*a);let u,h,f,d;if(c>0)if(u=a*o-s,h=a*s-o,d=i*c,u>=0)if(h>=-d)if(h<=d){const e=1/c;u*=e,h*=e,f=u*(u+a*h+2*s)+h*(a*u+h+2*o)+l}else h=i,u=Math.max(0,-(a*h+s)),f=-u*u+h*(h+2*o)+l;else h=-i,u=Math.max(0,-(a*h+s)),f=-u*u+h*(h+2*o)+l;else h<=-d?(u=Math.max(0,-(-a*i+s)),h=u>0?-i:Math.min(Math.max(-i,-o),i),f=-u*u+h*(h+2*o)+l):h<=d?(u=0,h=Math.min(Math.max(-i,-o),i),f=h*(h+2*o)+l):(u=Math.max(0,-(a*i+s)),h=u>0?i:Math.min(Math.max(-i,-o),i),f=-u*u+h*(h+2*o)+l);else h=a>0?-i:i,u=Math.max(0,-(a*h+s)),f=-u*u+h*(h+2*o)+l;return n&&n.copy(this.direction).multiplyScalar(u).add(this.origin),r&&r.copy(Km).multiplyScalar(h).add(Jm),f}intersectSphere(e,t){Zm.subVectors(e.center,this.origin);const n=Zm.dot(this.direction),r=Zm.dot(Zm)-n*n,i=e.radius*e.radius;if(r>i)return null;const a=Math.sqrt(i-r),s=n-a,o=n+a;return s<0&&o<0?null:s<0?this.at(o,t):this.at(s,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return 0===t||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,i,a,s,o;const l=1/this.direction.x,c=1/this.direction.y,u=1/this.direction.z,h=this.origin;return l>=0?(n=(e.min.x-h.x)*l,r=(e.max.x-h.x)*l):(n=(e.max.x-h.x)*l,r=(e.min.x-h.x)*l),c>=0?(i=(e.min.y-h.y)*c,a=(e.max.y-h.y)*c):(i=(e.max.y-h.y)*c,a=(e.min.y-h.y)*c),n>a||i>r?null:((i>n||n!=n)&&(n=i),(a<r||r!=r)&&(r=a),u>=0?(s=(e.min.z-h.z)*u,o=(e.max.z-h.z)*u):(s=(e.max.z-h.z)*u,o=(e.min.z-h.z)*u),n>o||s>r?null:((s>n||n!=n)&&(n=s),(o<r||r!=r)&&(r=o),r<0?null:this.at(n>=0?n:r,t)))}intersectsBox(e){return null!==this.intersectBox(e,Zm)}intersectTriangle(e,t,n,r,i){eg.subVectors(t,e),tg.subVectors(n,e),ng.crossVectors(eg,tg);let a,s=this.direction.dot(ng);if(s>0){if(r)return null;a=1}else{if(!(s<0))return null;a=-1,s=-s}Qm.subVectors(this.origin,e);const o=a*this.direction.dot(tg.crossVectors(Qm,tg));if(o<0)return null;const l=a*this.direction.dot(eg.cross(Qm));if(l<0)return null;if(o+l>s)return null;const c=-a*Qm.dot(ng);return c<0?null:this.at(c/s,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class ig{constructor(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}set(e,t,n,r,i,a,s,o,l,c,u,h,f,d,p,m){const g=this.elements;return g[0]=e,g[4]=t,g[8]=n,g[12]=r,g[1]=i,g[5]=a,g[9]=s,g[13]=o,g[2]=l,g[6]=c,g[10]=u,g[14]=h,g[3]=f,g[7]=d,g[11]=p,g[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new ig).fromArray(this.elements)}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,n=e.elements,r=1/ag.setFromMatrixColumn(e,0).length(),i=1/ag.setFromMatrixColumn(e,1).length(),a=1/ag.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){e&&e.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");const t=this.elements,n=e.x,r=e.y,i=e.z,a=Math.cos(n),s=Math.sin(n),o=Math.cos(r),l=Math.sin(r),c=Math.cos(i),u=Math.sin(i);if("XYZ"===e.order){const e=a*c,n=a*u,r=s*c,i=s*u;t[0]=o*c,t[4]=-o*u,t[8]=l,t[1]=n+r*l,t[5]=e-i*l,t[9]=-s*o,t[2]=i-e*l,t[6]=r+n*l,t[10]=a*o}else if("YXZ"===e.order){const e=o*c,n=o*u,r=l*c,i=l*u;t[0]=e+i*s,t[4]=r*s-n,t[8]=a*l,t[1]=a*u,t[5]=a*c,t[9]=-s,t[2]=n*s-r,t[6]=i+e*s,t[10]=a*o}else if("ZXY"===e.order){const e=o*c,n=o*u,r=l*c,i=l*u;t[0]=e-i*s,t[4]=-a*u,t[8]=r+n*s,t[1]=n+r*s,t[5]=a*c,t[9]=i-e*s,t[2]=-a*l,t[6]=s,t[10]=a*o}else if("ZYX"===e.order){const e=a*c,n=a*u,r=s*c,i=s*u;t[0]=o*c,t[4]=r*l-n,t[8]=e*l+i,t[1]=o*u,t[5]=i*l+e,t[9]=n*l-r,t[2]=-l,t[6]=s*o,t[10]=a*o}else if("YZX"===e.order){const e=a*o,n=a*l,r=s*o,i=s*l;t[0]=o*c,t[4]=i-e*u,t[8]=r*u+n,t[1]=u,t[5]=a*c,t[9]=-s*c,t[2]=-l*c,t[6]=n*u+r,t[10]=e-i*u}else if("XZY"===e.order){const e=a*o,n=a*l,r=s*o,i=s*l;t[0]=o*c,t[4]=-u,t[8]=l*c,t[1]=e*u+i,t[5]=a*c,t[9]=n*u-r,t[2]=r*u-n,t[6]=s*c,t[10]=i*u+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(og,e,lg)}lookAt(e,t,n){const r=this.elements;return hg.subVectors(e,t),0===hg.lengthSq()&&(hg.z=1),hg.normalize(),cg.crossVectors(n,hg),0===cg.lengthSq()&&(1===Math.abs(n.z)?hg.x+=1e-4:hg.z+=1e-4,hg.normalize(),cg.crossVectors(n,hg)),cg.normalize(),ug.crossVectors(hg,cg),r[0]=cg.x,r[4]=ug.x,r[8]=hg.x,r[1]=cg.y,r[5]=ug.y,r[9]=hg.y,r[2]=cg.z,r[6]=ug.z,r[10]=hg.z,this}multiply(e,t){return void 0!==t?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(e,t)):this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,i=this.elements,a=n[0],s=n[4],o=n[8],l=n[12],c=n[1],u=n[5],h=n[9],f=n[13],d=n[2],p=n[6],m=n[10],g=n[14],v=n[3],y=n[7],b=n[11],x=n[15],_=r[0],w=r[4],T=r[8],S=r[12],E=r[1],M=r[5],A=r[9],C=r[13],R=r[2],L=r[6],k=r[10],P=r[14],D=r[3],O=r[7],I=r[11],N=r[15];return i[0]=a*_+s*E+o*R+l*D,i[4]=a*w+s*M+o*L+l*O,i[8]=a*T+s*A+o*k+l*I,i[12]=a*S+s*C+o*P+l*N,i[1]=c*_+u*E+h*R+f*D,i[5]=c*w+u*M+h*L+f*O,i[9]=c*T+u*A+h*k+f*I,i[13]=c*S+u*C+h*P+f*N,i[2]=d*_+p*E+m*R+g*D,i[6]=d*w+p*M+m*L+g*O,i[10]=d*T+p*A+m*k+g*I,i[14]=d*S+p*C+m*P+g*N,i[3]=v*_+y*E+b*R+x*D,i[7]=v*w+y*M+b*L+x*O,i[11]=v*T+y*A+b*k+x*I,i[15]=v*S+y*C+b*P+x*N,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],a=e[1],s=e[5],o=e[9],l=e[13],c=e[2],u=e[6],h=e[10],f=e[14];return e[3]*(+i*o*u-r*l*u-i*s*h+n*l*h+r*s*f-n*o*f)+e[7]*(+t*o*f-t*l*h+i*a*h-r*a*f+r*l*c-i*o*c)+e[11]*(+t*l*u-t*s*f-i*a*u+n*a*f+i*s*c-n*l*c)+e[15]*(-r*s*c-t*o*u+t*s*h+r*a*u-n*a*h+n*o*c)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],s=e[5],o=e[6],l=e[7],c=e[8],u=e[9],h=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15],v=u*m*l-p*h*l+p*o*f-s*m*f-u*o*g+s*h*g,y=d*h*l-c*m*l-d*o*f+a*m*f+c*o*g-a*h*g,b=c*p*l-d*u*l+d*s*f-a*p*f-c*s*g+a*u*g,x=d*u*o-c*p*o-d*s*h+a*p*h+c*s*m-a*u*m,_=t*v+n*y+r*b+i*x;if(0===_)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const w=1/_;return e[0]=v*w,e[1]=(p*h*i-u*m*i-p*r*f+n*m*f+u*r*g-n*h*g)*w,e[2]=(s*m*i-p*o*i+p*r*l-n*m*l-s*r*g+n*o*g)*w,e[3]=(u*o*i-s*h*i-u*r*l+n*h*l+s*r*f-n*o*f)*w,e[4]=y*w,e[5]=(c*m*i-d*h*i+d*r*f-t*m*f-c*r*g+t*h*g)*w,e[6]=(d*o*i-a*m*i-d*r*l+t*m*l+a*r*g-t*o*g)*w,e[7]=(a*h*i-c*o*i+c*r*l-t*h*l-a*r*f+t*o*f)*w,e[8]=b*w,e[9]=(d*u*i-c*p*i-d*n*f+t*p*f+c*n*g-t*u*g)*w,e[10]=(a*p*i-d*s*i+d*n*l-t*p*l-a*n*g+t*s*g)*w,e[11]=(c*s*i-a*u*i-c*n*l+t*u*l+a*n*f-t*s*f)*w,e[12]=x*w,e[13]=(c*p*r-d*u*r+d*n*h-t*p*h-c*n*m+t*u*m)*w,e[14]=(d*s*r-a*p*r-d*n*o+t*p*o+a*n*m-t*s*m)*w,e[15]=(a*u*r-c*s*r+c*n*o-t*u*o-a*n*h+t*s*h)*w,this}scale(e){const t=this.elements,n=e.x,r=e.y,i=e.z;return t[0]*=n,t[4]*=r,t[8]*=i,t[1]*=n,t[5]*=r,t[9]*=i,t[2]*=n,t[6]*=r,t[10]*=i,t[3]*=n,t[7]*=r,t[11]*=i,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}makeTranslation(e,t,n){return this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const n=Math.cos(t),r=Math.sin(t),i=1-n,a=e.x,s=e.y,o=e.z,l=i*a,c=i*s;return this.set(l*a+n,l*s-r*o,l*o+r*s,0,l*s+r*o,c*s+n,c*o-r*a,0,l*o-r*s,c*o+r*a,i*o*o+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,r,i,a){return this.set(1,n,i,0,e,1,a,0,t,r,1,0,0,0,0,1),this}compose(e,t,n){const r=this.elements,i=t._x,a=t._y,s=t._z,o=t._w,l=i+i,c=a+a,u=s+s,h=i*l,f=i*c,d=i*u,p=a*c,m=a*u,g=s*u,v=o*l,y=o*c,b=o*u,x=n.x,_=n.y,w=n.z;return r[0]=(1-(p+g))*x,r[1]=(f+b)*x,r[2]=(d-y)*x,r[3]=0,r[4]=(f-b)*_,r[5]=(1-(h+g))*_,r[6]=(m+v)*_,r[7]=0,r[8]=(d+y)*w,r[9]=(m-v)*w,r[10]=(1-(h+p))*w,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,n){const r=this.elements;let i=ag.set(r[0],r[1],r[2]).length();const a=ag.set(r[4],r[5],r[6]).length(),s=ag.set(r[8],r[9],r[10]).length();this.determinant()<0&&(i=-i),e.x=r[12],e.y=r[13],e.z=r[14],sg.copy(this);const o=1/i,l=1/a,c=1/s;return sg.elements[0]*=o,sg.elements[1]*=o,sg.elements[2]*=o,sg.elements[4]*=l,sg.elements[5]*=l,sg.elements[6]*=l,sg.elements[8]*=c,sg.elements[9]*=c,sg.elements[10]*=c,t.setFromRotationMatrix(sg),n.x=i,n.y=a,n.z=s,this}makePerspective(e,t,n,r,i,a){void 0===a&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");const s=this.elements,o=2*i/(t-e),l=2*i/(n-r),c=(t+e)/(t-e),u=(n+r)/(n-r),h=-(a+i)/(a-i),f=-2*a*i/(a-i);return s[0]=o,s[4]=0,s[8]=c,s[12]=0,s[1]=0,s[5]=l,s[9]=u,s[13]=0,s[2]=0,s[6]=0,s[10]=h,s[14]=f,s[3]=0,s[7]=0,s[11]=-1,s[15]=0,this}makeOrthographic(e,t,n,r,i,a){const s=this.elements,o=1/(t-e),l=1/(n-r),c=1/(a-i),u=(t+e)*o,h=(n+r)*l,f=(a+i)*c;return s[0]=2*o,s[4]=0,s[8]=0,s[12]=-u,s[1]=0,s[5]=2*l,s[9]=0,s[13]=-h,s[2]=0,s[6]=0,s[10]=-2*c,s[14]=-f,s[3]=0,s[7]=0,s[11]=0,s[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let e=0;e<16;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}ig.prototype.isMatrix4=!0;const ag=new Am,sg=new ig,og=new Am(0,0,0),lg=new Am(1,1,1),cg=new Am,ug=new Am,hg=new Am,fg=new ig,dg=new Mm;class pg{constructor(e=0,t=0,n=0,r=pg.DefaultOrder){this._x=e,this._y=t,this._z=n,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,r=this._order){return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){const r=e.elements,i=r[0],a=r[4],s=r[8],o=r[1],l=r[5],c=r[9],u=r[2],h=r[6],f=r[10];switch(t){case"XYZ":this._y=Math.asin(Yp(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-c,f),this._z=Math.atan2(-a,i)):(this._x=Math.atan2(h,l),this._z=0);break;case"YXZ":this._x=Math.asin(-Yp(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(s,f),this._z=Math.atan2(o,l)):(this._y=Math.atan2(-u,i),this._z=0);break;case"ZXY":this._x=Math.asin(Yp(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-u,f),this._z=Math.atan2(-a,l)):(this._y=0,this._z=Math.atan2(o,i));break;case"ZYX":this._y=Math.asin(-Yp(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(h,f),this._z=Math.atan2(o,i)):(this._x=0,this._z=Math.atan2(-a,l));break;case"YZX":this._z=Math.asin(Yp(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-u,i)):(this._x=0,this._y=Math.atan2(s,f));break;case"XZY":this._z=Math.asin(-Yp(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(h,l),this._y=Math.atan2(s,i)):(this._x=Math.atan2(-c,f),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,!0===n&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return fg.makeRotationFromQuaternion(e),this.setFromRotationMatrix(fg,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return dg.setFromEuler(this),this.setFromQuaternion(dg,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}}pg.prototype.isEuler=!0,pg.DefaultOrder="XYZ",pg.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"];class mg{constructor(){this.mask=1}set(e){this.mask=(1<<e|0)>>>0}enable(e){this.mask|=1<<e|0}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e|0}disable(e){this.mask&=~(1<<e|0)}disableAll(){this.mask=0}test(e){return 0!=(this.mask&e.mask)}isEnabled(e){return 0!=(this.mask&(1<<e|0))}}let gg=0;const vg=new Am,yg=new Mm,bg=new ig,xg=new Am,_g=new Am,wg=new Am,Tg=new Mm,Sg=new Am(1,0,0),Eg=new Am(0,1,0),Mg=new Am(0,0,1),Ag={type:"added"},Cg={type:"removed"};class Rg extends Gp{constructor(){super(),Object.defineProperty(this,"id",{value:gg++}),this.uuid=$p(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=Rg.DefaultUp.clone();const e=new Am,t=new pg,n=new Mm,r=new Am(1,1,1);t._onChange((function(){n.setFromEuler(t,!1)})),n._onChange((function(){t.setFromQuaternion(n,void 0,!1)})),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:t},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:r},modelViewMatrix:{value:new ig},normalMatrix:{value:new nm}}),this.matrix=new ig,this.matrixWorld=new ig,this.matrixAutoUpdate=Rg.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new mg,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,t){this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,t){return yg.setFromAxisAngle(e,t),this.quaternion.multiply(yg),this}rotateOnWorldAxis(e,t){return yg.setFromAxisAngle(e,t),this.quaternion.premultiply(yg),this}rotateX(e){return this.rotateOnAxis(Sg,e)}rotateY(e){return this.rotateOnAxis(Eg,e)}rotateZ(e){return this.rotateOnAxis(Mg,e)}translateOnAxis(e,t){return vg.copy(e).applyQuaternion(this.quaternion),this.position.add(vg.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis(Sg,e)}translateY(e){return this.translateOnAxis(Eg,e)}translateZ(e){return this.translateOnAxis(Mg,e)}localToWorld(e){return e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return e.applyMatrix4(bg.copy(this.matrixWorld).invert())}lookAt(e,t,n){e.isVector3?xg.copy(e):xg.set(e,t,n);const r=this.parent;this.updateWorldMatrix(!0,!1),_g.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?bg.lookAt(_g,xg,this.up):bg.lookAt(xg,_g,this.up),this.quaternion.setFromRotationMatrix(bg),r&&(bg.extractRotation(r.matrixWorld),yg.setFromRotationMatrix(bg),this.quaternion.premultiply(yg.invert()))}add(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return e===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",e),this):(e&&e.isObject3D?(null!==e.parent&&e.parent.remove(e),e.parent=this,this.children.push(e),e.dispatchEvent(Ag)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this)}remove(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}const t=this.children.indexOf(e);return-1!==t&&(e.parent=null,this.children.splice(t,1),e.dispatchEvent(Cg)),this}removeFromParent(){const e=this.parent;return null!==e&&e.remove(this),this}clear(){for(let e=0;e<this.children.length;e++){const t=this.children[e];t.parent=null,t.dispatchEvent(Cg)}return this.children.length=0,this}attach(e){return this.updateWorldMatrix(!0,!1),bg.copy(this.matrixWorld).invert(),null!==e.parent&&(e.parent.updateWorldMatrix(!0,!1),bg.multiply(e.parent.matrixWorld)),e.applyMatrix4(bg),this.add(e),e.updateWorldMatrix(!1,!0),this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let n=0,r=this.children.length;n<r;n++){const r=this.children[n].getObjectByProperty(e,t);if(void 0!==r)return r}}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(_g,e,wg),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(_g,Tg,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);const t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].traverse(e)}traverseVisible(e){if(!1===this.visible)return;e(this);const t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].traverseVisible(e)}traverseAncestors(e){const t=this.parent;null!==t&&(e(t),t.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,e=!0);const t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].updateMatrixWorld(e)}updateWorldMatrix(e,t){const n=this.parent;if(!0===e&&null!==n&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),!0===t){const e=this.children;for(let t=0,n=e.length;t<n;t++)e[t].updateWorldMatrix(!1,!0)}}toJSON(e){const t=void 0===e||"string"==typeof e,n={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},n.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});const r={};function i(t,n){return void 0===t[n.uuid]&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(r.uuid=this.uuid,r.type=this.type,""!==this.name&&(r.name=this.name),!0===this.castShadow&&(r.castShadow=!0),!0===this.receiveShadow&&(r.receiveShadow=!0),!1===this.visible&&(r.visible=!1),!1===this.frustumCulled&&(r.frustumCulled=!1),0!==this.renderOrder&&(r.renderOrder=this.renderOrder),"{}"!==JSON.stringify(this.userData)&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),!1===this.matrixAutoUpdate&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(r.instanceColor=this.instanceColor.toJSON())),this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);const t=this.geometry.parameters;if(void 0!==t&&void 0!==t.shapes){const n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t<r;t++){const r=n[t];i(e.shapes,r)}else i(e.shapes,n)}}if(this.isSkinnedMesh&&(r.bindMode=this.bindMode,r.bindMatrix=this.bindMatrix.toArray(),void 0!==this.skeleton&&(i(e.skeletons,this.skeleton),r.skeleton=this.skeleton.uuid)),void 0!==this.material)if(Array.isArray(this.material)){const t=[];for(let n=0,r=this.material.length;n<r;n++)t.push(i(e.materials,this.material[n]));r.material=t}else r.material=i(e.materials,this.material);if(this.children.length>0){r.children=[];for(let t=0;t<this.children.length;t++)r.children.push(this.children[t].toJSON(e).object)}if(this.animations.length>0){r.animations=[];for(let t=0;t<this.animations.length;t++){const n=this.animations[t];r.animations.push(i(e.animations,n))}}if(t){const t=a(e.geometries),r=a(e.materials),i=a(e.textures),s=a(e.images),o=a(e.shapes),l=a(e.skeletons),c=a(e.animations),u=a(e.nodes);t.length>0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),s.length>0&&(n.images=s),o.length>0&&(n.shapes=o),l.length>0&&(n.skeletons=l),c.length>0&&(n.animations=c),u.length>0&&(n.nodes=u)}return n.object=r,n;function a(e){const t=[];for(const n in e){const r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return(new this.constructor).copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(let t=0;t<e.children.length;t++){const n=e.children[t];this.add(n.clone())}return this}}Rg.DefaultUp=new Am(0,1,0),Rg.DefaultMatrixAutoUpdate=!0,Rg.prototype.isObject3D=!0;const Lg=new Am,kg=new Am,Pg=new Am,Dg=new Am,Og=new Am,Ig=new Am,Ng=new Am,Fg=new Am,Bg=new Am,Ug=new Am;class zg{constructor(e=new Am,t=new Am,n=new Am){this.a=e,this.b=t,this.c=n}static getNormal(e,t,n,r){r.subVectors(n,t),Lg.subVectors(e,t),r.cross(Lg);const i=r.lengthSq();return i>0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){Lg.subVectors(r,t),kg.subVectors(n,t),Pg.subVectors(e,t);const a=Lg.dot(Lg),s=Lg.dot(kg),o=Lg.dot(Pg),l=kg.dot(kg),c=kg.dot(Pg),u=a*l-s*s;if(0===u)return i.set(-2,-1,-1);const h=1/u,f=(l*o-s*c)*h,d=(a*c-s*o)*h;return i.set(1-f-d,d,f)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,Dg),Dg.x>=0&&Dg.y>=0&&Dg.x+Dg.y<=1}static getUV(e,t,n,r,i,a,s,o){return this.getBarycoord(e,t,n,r,Dg),o.set(0,0),o.addScaledVector(i,Dg.x),o.addScaledVector(a,Dg.y),o.addScaledVector(s,Dg.z),o}static isFrontFacing(e,t,n,r){return Lg.subVectors(n,t),kg.subVectors(e,t),Lg.cross(kg).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return(new this.constructor).copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Lg.subVectors(this.c,this.b),kg.subVectors(this.a,this.b),.5*Lg.cross(kg).length()}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return zg.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return zg.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,n,r,i){return zg.getUV(e,this.a,this.b,this.c,t,n,r,i)}containsPoint(e){return zg.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return zg.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,r=this.b,i=this.c;let a,s;Og.subVectors(r,n),Ig.subVectors(i,n),Fg.subVectors(e,n);const o=Og.dot(Fg),l=Ig.dot(Fg);if(o<=0&&l<=0)return t.copy(n);Bg.subVectors(e,r);const c=Og.dot(Bg),u=Ig.dot(Bg);if(c>=0&&u<=c)return t.copy(r);const h=o*u-c*l;if(h<=0&&o>=0&&c<=0)return a=o/(o-c),t.copy(n).addScaledVector(Og,a);Ug.subVectors(e,i);const f=Og.dot(Ug),d=Ig.dot(Ug);if(d>=0&&f<=d)return t.copy(i);const p=f*l-o*d;if(p<=0&&l>=0&&d<=0)return s=l/(l-d),t.copy(n).addScaledVector(Ig,s);const m=c*d-f*u;if(m<=0&&u-c>=0&&f-d>=0)return Ng.subVectors(i,r),s=(u-c)/(u-c+(f-d)),t.copy(r).addScaledVector(Ng,s);const g=1/(m+p+h);return a=p*g,s=h*g,t.copy(n).addScaledVector(Og,a).addScaledVector(Ig,s)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}let Hg=0;class Vg extends Gp{constructor(){super(),Object.defineProperty(this,"id",{value:Hg++}),this.uuid=$p(),this.name="",this.type="Material",this.fog=!0,this.blending=1,this.side=0,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=ap,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=Bp,this.stencilZFail=Bp,this.stencilZPass=Bp,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(void 0!==e)for(const t in e){const n=e[t];if(void 0===n){console.warn("THREE.Material: '"+t+"' parameter is undefined.");continue}if("shading"===t){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=1===n;continue}const r=this[t];void 0!==r?r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n:console.warn("THREE."+this.type+": '"+t+"' is not a property of this material.")}}toJSON(e){const t=void 0===e||"string"==typeof e;t&&(e={textures:{},images:{}});const n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function r(e){const t=[];for(const n in e){const r=e[n];delete r.metadata,t.push(r)}return t}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(n.blending=this.blending),0!==this.side&&(n.side=this.side),this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.stencilWrite=this.stencilWrite,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,void 0!==this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaToCoverage&&(n.alphaToCoverage=this.alphaToCoverage),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=this.flatShading),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),"{}"!==JSON.stringify(this.userData)&&(n.userData=this.userData),t){const t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}clone(){return(new this.constructor).copy(this)}copy(e){this.name=e.name,this.fog=e.fog,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let n=null;if(null!==t){const e=t.length;n=new Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){!0===e&&this.version++}}Vg.prototype.isMaterial=!0,Vg.fromType=function(){return null};class Gg extends Vg{constructor(e){super(),this.type="MeshBasicMaterial",this.color=new mm(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this}}Gg.prototype.isMeshBasicMaterial=!0;const Wg=new Am,jg=new tm;class Xg{constructor(e,t,n){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=e,this.itemSize=t,this.count=void 0!==e?e.length/t:0,this.normalized=!0===n,this.usage=Up,this.updateRange={offset:0,count:-1},this.version=0}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}setUsage(e){return this.usage=e,this}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;r<i;r++)this.array[e+r]=t.array[n+r];return this}copyArray(e){return this.array.set(e),this}copyColorsArray(e){const t=this.array;let n=0;for(let r=0,i=e.length;r<i;r++){let i=e[r];void 0===i&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",r),i=new mm),t[n++]=i.r,t[n++]=i.g,t[n++]=i.b}return this}copyVector2sArray(e){const t=this.array;let n=0;for(let r=0,i=e.length;r<i;r++){let i=e[r];void 0===i&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",r),i=new tm),t[n++]=i.x,t[n++]=i.y}return this}copyVector3sArray(e){const t=this.array;let n=0;for(let r=0,i=e.length;r<i;r++){let i=e[r];void 0===i&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",r),i=new Am),t[n++]=i.x,t[n++]=i.y,t[n++]=i.z}return this}copyVector4sArray(e){const t=this.array;let n=0;for(let r=0,i=e.length;r<i;r++){let i=e[r];void 0===i&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",r),i=new wm),t[n++]=i.x,t[n++]=i.y,t[n++]=i.z,t[n++]=i.w}return this}applyMatrix3(e){if(2===this.itemSize)for(let t=0,n=this.count;t<n;t++)jg.fromBufferAttribute(this,t),jg.applyMatrix3(e),this.setXY(t,jg.x,jg.y);else if(3===this.itemSize)for(let t=0,n=this.count;t<n;t++)Wg.fromBufferAttribute(this,t),Wg.applyMatrix3(e),this.setXYZ(t,Wg.x,Wg.y,Wg.z);return this}applyMatrix4(e){for(let t=0,n=this.count;t<n;t++)Wg.fromBufferAttribute(this,t),Wg.applyMatrix4(e),this.setXYZ(t,Wg.x,Wg.y,Wg.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)Wg.fromBufferAttribute(this,t),Wg.applyNormalMatrix(e),this.setXYZ(t,Wg.x,Wg.y,Wg.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)Wg.fromBufferAttribute(this,t),Wg.transformDirection(e),this.setXYZ(t,Wg.x,Wg.y,Wg.z);return this}set(e,t=0){return this.array.set(e,t),this}getX(e){return this.array[e*this.itemSize]}setX(e,t){return this.array[e*this.itemSize]=t,this}getY(e){return this.array[e*this.itemSize+1]}setY(e,t){return this.array[e*this.itemSize+1]=t,this}getZ(e){return this.array[e*this.itemSize+2]}setZ(e,t){return this.array[e*this.itemSize+2]=t,this}getW(e){return this.array[e*this.itemSize+3]}setW(e,t){return this.array[e*this.itemSize+3]=t,this}setXY(e,t,n){return e*=this.itemSize,this.array[e+0]=t,this.array[e+1]=n,this}setXYZ(e,t,n,r){return e*=this.itemSize,this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this}setXYZW(e,t,n,r,i){return e*=this.itemSize,this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this.array[e+3]=i,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.prototype.slice.call(this.array),normalized:this.normalized};return""!==this.name&&(e.name=this.name),this.usage!==Up&&(e.usage=this.usage),0===this.updateRange.offset&&-1===this.updateRange.count||(e.updateRange=this.updateRange),e}}Xg.prototype.isBufferAttribute=!0;class qg extends Xg{constructor(e,t,n){super(new Uint16Array(e),t,n)}}class $g extends Xg{constructor(e,t,n){super(new Uint32Array(e),t,n)}}(class extends Xg{constructor(e,t,n){super(new Uint16Array(e),t,n)}}).prototype.isFloat16BufferAttribute=!0;class Yg extends Xg{constructor(e,t,n){super(new Float32Array(e),t,n)}}let Zg=0;const Jg=new ig,Kg=new Rg,Qg=new Am,ev=new Lm,tv=new Lm,nv=new Am;class rv extends Gp{constructor(){super(),Object.defineProperty(this,"id",{value:Zg++}),this.uuid=$p(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(rm(e)?$g:qg)(e,1):this.index=e,this}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return void 0!==this.attributes[e]}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){const t=this.attributes.position;void 0!==t&&(t.applyMatrix4(e),t.needsUpdate=!0);const n=this.attributes.normal;if(void 0!==n){const t=(new nm).getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}const r=this.attributes.tangent;return void 0!==r&&(r.transformDirection(e),r.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}applyQuaternion(e){return Jg.makeRotationFromQuaternion(e),this.applyMatrix4(Jg),this}rotateX(e){return Jg.makeRotationX(e),this.applyMatrix4(Jg),this}rotateY(e){return Jg.makeRotationY(e),this.applyMatrix4(Jg),this}rotateZ(e){return Jg.makeRotationZ(e),this.applyMatrix4(Jg),this}translate(e,t,n){return Jg.makeTranslation(e,t,n),this.applyMatrix4(Jg),this}scale(e,t,n){return Jg.makeScale(e,t,n),this.applyMatrix4(Jg),this}lookAt(e){return Kg.lookAt(e),Kg.updateMatrix(),this.applyMatrix4(Kg.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Qg).negate(),this.translate(Qg.x,Qg.y,Qg.z),this}setFromPoints(e){const t=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];t.push(r.x,r.y,r.z||0)}return this.setAttribute("position",new Yg(t,3)),this}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new Lm);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingBox.set(new Am(-1/0,-1/0,-1/0),new Am(1/0,1/0,1/0));if(void 0!==e){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){const n=t[e];ev.setFromBufferAttribute(n),this.morphTargetsRelative?(nv.addVectors(this.boundingBox.min,ev.min),this.boundingBox.expandByPoint(nv),nv.addVectors(this.boundingBox.max,ev.max),this.boundingBox.expandByPoint(nv)):(this.boundingBox.expandByPoint(ev.min),this.boundingBox.expandByPoint(ev.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new Ym);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingSphere.set(new Am,1/0);if(e){const n=this.boundingSphere.center;if(ev.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){const n=t[e];tv.setFromBufferAttribute(n),this.morphTargetsRelative?(nv.addVectors(ev.min,tv.min),ev.expandByPoint(nv),nv.addVectors(ev.max,tv.max),ev.expandByPoint(nv)):(ev.expandByPoint(tv.min),ev.expandByPoint(tv.max))}ev.getCenter(n);let r=0;for(let t=0,i=e.count;t<i;t++)nv.fromBufferAttribute(e,t),r=Math.max(r,n.distanceToSquared(nv));if(t)for(let i=0,a=t.length;i<a;i++){const a=t[i],s=this.morphTargetsRelative;for(let t=0,i=a.count;t<i;t++)nv.fromBufferAttribute(a,t),s&&(Qg.fromBufferAttribute(e,t),nv.add(Qg)),r=Math.max(r,n.distanceToSquared(nv))}this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){const e=this.index,t=this.attributes;if(null===e||void 0===t.position||void 0===t.normal||void 0===t.uv)return void console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");const n=e.array,r=t.position.array,i=t.normal.array,a=t.uv.array,s=r.length/3;!1===this.hasAttribute("tangent")&&this.setAttribute("tangent",new Xg(new Float32Array(4*s),4));const o=this.getAttribute("tangent").array,l=[],c=[];for(let e=0;e<s;e++)l[e]=new Am,c[e]=new Am;const u=new Am,h=new Am,f=new Am,d=new tm,p=new tm,m=new tm,g=new Am,v=new Am;function y(e,t,n){u.fromArray(r,3*e),h.fromArray(r,3*t),f.fromArray(r,3*n),d.fromArray(a,2*e),p.fromArray(a,2*t),m.fromArray(a,2*n),h.sub(u),f.sub(u),p.sub(d),m.sub(d);const i=1/(p.x*m.y-m.x*p.y);isFinite(i)&&(g.copy(h).multiplyScalar(m.y).addScaledVector(f,-p.y).multiplyScalar(i),v.copy(f).multiplyScalar(p.x).addScaledVector(h,-m.x).multiplyScalar(i),l[e].add(g),l[t].add(g),l[n].add(g),c[e].add(v),c[t].add(v),c[n].add(v))}let b=this.groups;0===b.length&&(b=[{start:0,count:n.length}]);for(let e=0,t=b.length;e<t;++e){const t=b[e],r=t.start;for(let e=r,i=r+t.count;e<i;e+=3)y(n[e+0],n[e+1],n[e+2])}const x=new Am,_=new Am,w=new Am,T=new Am;function S(e){w.fromArray(i,3*e),T.copy(w);const t=l[e];x.copy(t),x.sub(w.multiplyScalar(w.dot(t))).normalize(),_.crossVectors(T,t);const n=_.dot(c[e])<0?-1:1;o[4*e]=x.x,o[4*e+1]=x.y,o[4*e+2]=x.z,o[4*e+3]=n}for(let e=0,t=b.length;e<t;++e){const t=b[e],r=t.start;for(let e=r,i=r+t.count;e<i;e+=3)S(n[e+0]),S(n[e+1]),S(n[e+2])}}computeVertexNormals(){const e=this.index,t=this.getAttribute("position");if(void 0!==t){let n=this.getAttribute("normal");if(void 0===n)n=new Xg(new Float32Array(3*t.count),3),this.setAttribute("normal",n);else for(let e=0,t=n.count;e<t;e++)n.setXYZ(e,0,0,0);const r=new Am,i=new Am,a=new Am,s=new Am,o=new Am,l=new Am,c=new Am,u=new Am;if(e)for(let h=0,f=e.count;h<f;h+=3){const f=e.getX(h+0),d=e.getX(h+1),p=e.getX(h+2);r.fromBufferAttribute(t,f),i.fromBufferAttribute(t,d),a.fromBufferAttribute(t,p),c.subVectors(a,i),u.subVectors(r,i),c.cross(u),s.fromBufferAttribute(n,f),o.fromBufferAttribute(n,d),l.fromBufferAttribute(n,p),s.add(c),o.add(c),l.add(c),n.setXYZ(f,s.x,s.y,s.z),n.setXYZ(d,o.x,o.y,o.z),n.setXYZ(p,l.x,l.y,l.z)}else for(let e=0,s=t.count;e<s;e+=3)r.fromBufferAttribute(t,e+0),i.fromBufferAttribute(t,e+1),a.fromBufferAttribute(t,e+2),c.subVectors(a,i),u.subVectors(r,i),c.cross(u),n.setXYZ(e+0,c.x,c.y,c.z),n.setXYZ(e+1,c.x,c.y,c.z),n.setXYZ(e+2,c.x,c.y,c.z);this.normalizeNormals(),n.needsUpdate=!0}}merge(e,t){if(!e||!e.isBufferGeometry)return void console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",e);void 0===t&&(t=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));const n=this.attributes;for(const r in n){if(void 0===e.attributes[r])continue;const i=n[r].array,a=e.attributes[r],s=a.array,o=a.itemSize*t,l=Math.min(s.length,i.length-o);for(let e=0,t=o;e<l;e++,t++)i[t]=s[e]}return this}normalizeNormals(){const e=this.attributes.normal;for(let t=0,n=e.count;t<n;t++)nv.fromBufferAttribute(e,t),nv.normalize(),e.setXYZ(t,nv.x,nv.y,nv.z)}toNonIndexed(){function e(e,t){const n=e.array,r=e.itemSize,i=e.normalized,a=new n.constructor(t.length*r);let s=0,o=0;for(let i=0,l=t.length;i<l;i++){s=e.isInterleavedBufferAttribute?t[i]*e.data.stride+e.offset:t[i]*r;for(let e=0;e<r;e++)a[o++]=n[s++]}return new Xg(a,r,i)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const t=new rv,n=this.index.array,r=this.attributes;for(const i in r){const a=e(r[i],n);t.setAttribute(i,a)}const i=this.morphAttributes;for(const r in i){const a=[],s=i[r];for(let t=0,r=s.length;t<r;t++){const r=e(s[t],n);a.push(r)}t.morphAttributes[r]=a}t.morphTargetsRelative=this.morphTargetsRelative;const a=this.groups;for(let e=0,n=a.length;e<n;e++){const n=a[e];t.addGroup(n.start,n.count,n.materialIndex)}return t}toJSON(){const e={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,""!==this.name&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),void 0!==this.parameters){const t=this.parameters;for(const n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.data={attributes:{}};const t=this.index;null!==t&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const t in n){const r=n[t];e.data.attributes[t]=r.toJSON(e.data)}const r={};let i=!1;for(const t in this.morphAttributes){const n=this.morphAttributes[t],a=[];for(let t=0,r=n.length;t<r;t++){const r=n[t];a.push(r.toJSON(e.data))}a.length>0&&(r[t]=a,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);const a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));const s=this.boundingSphere;return null!==s&&(e.data.boundingSphere={center:s.center.toArray(),radius:s.radius}),e}clone(){return(new this.constructor).copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const n=e.index;null!==n&&this.setIndex(n.clone(t));const r=e.attributes;for(const e in r){const n=r[e];this.setAttribute(e,n.clone(t))}const i=e.morphAttributes;for(const e in i){const n=[],r=i[e];for(let e=0,i=r.length;e<i;e++)n.push(r[e].clone(t));this.morphAttributes[e]=n}this.morphTargetsRelative=e.morphTargetsRelative;const a=e.groups;for(let e=0,t=a.length;e<t;e++){const t=a[e];this.addGroup(t.start,t.count,t.materialIndex)}const s=e.boundingBox;null!==s&&(this.boundingBox=s.clone());const o=e.boundingSphere;return null!==o&&(this.boundingSphere=o.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,void 0!==e.parameters&&(this.parameters=Object.assign({},e.parameters)),this}dispose(){this.dispatchEvent({type:"dispose"})}}rv.prototype.isBufferGeometry=!0;const iv=new ig,av=new rg,sv=new Ym,ov=new Am,lv=new Am,cv=new Am,uv=new Am,hv=new Am,fv=new Am,dv=new Am,pv=new Am,mv=new Am,gv=new tm,vv=new tm,yv=new tm,bv=new Am,xv=new Am;class _v extends Rg{constructor(e=new rv,t=new Gg){super(),this.type="Mesh",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e){return super.copy(e),void 0!==e.morphTargetInfluences&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),void 0!==e.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=e.material,this.geometry=e.geometry,this}updateMorphTargets(){const e=this.geometry;if(e.isBufferGeometry){const t=e.morphAttributes,n=Object.keys(t);if(n.length>0){const e=t[n[0]];if(void 0!==e){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,n=e.length;t<n;t++){const n=e[t].name||String(t);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=t}}}}else{const t=e.morphTargets;void 0!==t&&t.length>0&&console.error("THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}}raycast(e,t){const n=this.geometry,r=this.material,i=this.matrixWorld;if(void 0===r)return;if(null===n.boundingSphere&&n.computeBoundingSphere(),sv.copy(n.boundingSphere),sv.applyMatrix4(i),!1===e.ray.intersectsSphere(sv))return;if(iv.copy(i).invert(),av.copy(e.ray).applyMatrix4(iv),null!==n.boundingBox&&!1===av.intersectsBox(n.boundingBox))return;let a;if(n.isBufferGeometry){const i=n.index,s=n.attributes.position,o=n.morphAttributes.position,l=n.morphTargetsRelative,c=n.attributes.uv,u=n.attributes.uv2,h=n.groups,f=n.drawRange;if(null!==i)if(Array.isArray(r))for(let n=0,d=h.length;n<d;n++){const d=h[n],p=r[d.materialIndex];for(let n=Math.max(d.start,f.start),r=Math.min(i.count,Math.min(d.start+d.count,f.start+f.count));n<r;n+=3){const r=i.getX(n),h=i.getX(n+1),f=i.getX(n+2);a=wv(this,p,e,av,s,o,l,c,u,r,h,f),a&&(a.faceIndex=Math.floor(n/3),a.face.materialIndex=d.materialIndex,t.push(a))}}else for(let n=Math.max(0,f.start),h=Math.min(i.count,f.start+f.count);n<h;n+=3){const h=i.getX(n),f=i.getX(n+1),d=i.getX(n+2);a=wv(this,r,e,av,s,o,l,c,u,h,f,d),a&&(a.faceIndex=Math.floor(n/3),t.push(a))}else if(void 0!==s)if(Array.isArray(r))for(let n=0,i=h.length;n<i;n++){const i=h[n],d=r[i.materialIndex];for(let n=Math.max(i.start,f.start),r=Math.min(s.count,Math.min(i.start+i.count,f.start+f.count));n<r;n+=3)a=wv(this,d,e,av,s,o,l,c,u,n,n+1,n+2),a&&(a.faceIndex=Math.floor(n/3),a.face.materialIndex=i.materialIndex,t.push(a))}else for(let n=Math.max(0,f.start),i=Math.min(s.count,f.start+f.count);n<i;n+=3)a=wv(this,r,e,av,s,o,l,c,u,n,n+1,n+2),a&&(a.faceIndex=Math.floor(n/3),t.push(a))}else n.isGeometry&&console.error("THREE.Mesh.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}}function wv(e,t,n,r,i,a,s,o,l,c,u,h){ov.fromBufferAttribute(i,c),lv.fromBufferAttribute(i,u),cv.fromBufferAttribute(i,h);const f=e.morphTargetInfluences;if(a&&f){dv.set(0,0,0),pv.set(0,0,0),mv.set(0,0,0);for(let e=0,t=a.length;e<t;e++){const t=f[e],n=a[e];0!==t&&(uv.fromBufferAttribute(n,c),hv.fromBufferAttribute(n,u),fv.fromBufferAttribute(n,h),s?(dv.addScaledVector(uv,t),pv.addScaledVector(hv,t),mv.addScaledVector(fv,t)):(dv.addScaledVector(uv.sub(ov),t),pv.addScaledVector(hv.sub(lv),t),mv.addScaledVector(fv.sub(cv),t)))}ov.add(dv),lv.add(pv),cv.add(mv)}e.isSkinnedMesh&&(e.boneTransform(c,ov),e.boneTransform(u,lv),e.boneTransform(h,cv));const d=function(e,t,n,r,i,a,s,o){let l;if(l=1===t.side?r.intersectTriangle(s,a,i,!0,o):r.intersectTriangle(i,a,s,2!==t.side,o),null===l)return null;xv.copy(o),xv.applyMatrix4(e.matrixWorld);const c=n.ray.origin.distanceTo(xv);return c<n.near||c>n.far?null:{distance:c,point:xv.clone(),object:e}}(e,t,n,r,ov,lv,cv,bv);if(d){o&&(gv.fromBufferAttribute(o,c),vv.fromBufferAttribute(o,u),yv.fromBufferAttribute(o,h),d.uv=zg.getUV(bv,ov,lv,cv,gv,vv,yv,new tm)),l&&(gv.fromBufferAttribute(l,c),vv.fromBufferAttribute(l,u),yv.fromBufferAttribute(l,h),d.uv2=zg.getUV(bv,ov,lv,cv,gv,vv,yv,new tm));const e={a:c,b:u,c:h,normal:new Am,materialIndex:0};zg.getNormal(ov,lv,cv,e.normal),d.face=e}return d}_v.prototype.isMesh=!0;class Tv extends rv{constructor(e=1,t=1,n=1,r=1,i=1,a=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:a};const s=this;r=Math.floor(r),i=Math.floor(i),a=Math.floor(a);const o=[],l=[],c=[],u=[];let h=0,f=0;function d(e,t,n,r,i,a,d,p,m,g,v){const y=a/m,b=d/g,x=a/2,_=d/2,w=p/2,T=m+1,S=g+1;let E=0,M=0;const A=new Am;for(let a=0;a<S;a++){const s=a*b-_;for(let o=0;o<T;o++){const h=o*y-x;A[e]=h*r,A[t]=s*i,A[n]=w,l.push(A.x,A.y,A.z),A[e]=0,A[t]=0,A[n]=p>0?1:-1,c.push(A.x,A.y,A.z),u.push(o/m),u.push(1-a/g),E+=1}}for(let e=0;e<g;e++)for(let t=0;t<m;t++){const n=h+t+T*e,r=h+t+T*(e+1),i=h+(t+1)+T*(e+1),a=h+(t+1)+T*e;o.push(n,r,a),o.push(r,i,a),M+=6}s.addGroup(f,M,v),f+=M,h+=E}d("z","y","x",-1,-1,n,t,e,a,i,0),d("z","y","x",1,-1,n,t,-e,a,i,1),d("x","z","y",1,1,e,n,t,r,a,2),d("x","z","y",1,-1,e,n,-t,r,a,3),d("x","y","z",1,-1,e,t,n,r,i,4),d("x","y","z",-1,-1,e,t,-n,r,i,5),this.setIndex(o),this.setAttribute("position",new Yg(l,3)),this.setAttribute("normal",new Yg(c,3)),this.setAttribute("uv",new Yg(u,2))}static fromJSON(e){return new Tv(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function Sv(e){const t={};for(const n in e){t[n]={};for(const r in e[n]){const i=e[n][r];i&&(i.isColor||i.isMatrix3||i.isMatrix4||i.isVector2||i.isVector3||i.isVector4||i.isTexture||i.isQuaternion)?t[n][r]=i.clone():Array.isArray(i)?t[n][r]=i.slice():t[n][r]=i}}return t}function Ev(e){const t={};for(let n=0;n<e.length;n++){const r=Sv(e[n]);for(const e in r)t[e]=r[e]}return t}const Mv={clone:Sv,merge:Ev};class Av extends Vg{constructor(e){super(),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",this.fragmentShader="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}",this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,void 0!==e&&(void 0!==e.attributes&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(e))}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=Sv(e.uniforms),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(const n in this.uniforms){const r=this.uniforms[n].value;r&&r.isTexture?t.uniforms[n]={type:"t",value:r.toJSON(e).uuid}:r&&r.isColor?t.uniforms[n]={type:"c",value:r.getHex()}:r&&r.isVector2?t.uniforms[n]={type:"v2",value:r.toArray()}:r&&r.isVector3?t.uniforms[n]={type:"v3",value:r.toArray()}:r&&r.isVector4?t.uniforms[n]={type:"v4",value:r.toArray()}:r&&r.isMatrix3?t.uniforms[n]={type:"m3",value:r.toArray()}:r&&r.isMatrix4?t.uniforms[n]={type:"m4",value:r.toArray()}:t.uniforms[n]={value:r}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader;const n={};for(const e in this.extensions)!0===this.extensions[e]&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}Av.prototype.isShaderMaterial=!0;class Cv extends Rg{constructor(){super(),this.type="Camera",this.matrixWorldInverse=new ig,this.projectionMatrix=new ig,this.projectionMatrixInverse=new ig}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(-t[8],-t[9],-t[10]).normalize()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}Cv.prototype.isCamera=!0;class Rv extends Cv{constructor(e=50,t=1,n=.1,r=2e3){super(),this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=null===e.view?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=2*qp*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(.5*Xp*this.fov);return.5*this.getFilmHeight()/e}getEffectiveFOV(){return 2*qp*Math.atan(Math.tan(.5*Xp*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,t,n,r,i,a){this.aspect=e/t,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(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(.5*Xp*this.fov)/this.zoom,n=2*t,r=this.aspect*n,i=-.5*r;const a=this.view;if(null!==this.view&&this.view.enabled){const e=a.fullWidth,s=a.fullHeight;i+=a.offsetX*r/e,t-=a.offsetY*n/s,r*=a.width/e,n*=a.height/s}const s=this.filmOffset;0!==s&&(i+=e*s/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,t,t-n,e,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}Rv.prototype.isPerspectiveCamera=!0;const Lv=90;class kv extends Rg{constructor(e,t,n){if(super(),this.type="CubeCamera",!0!==n.isWebGLCubeRenderTarget)return void console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.");this.renderTarget=n;const r=new Rv(Lv,1,e,t);r.layers=this.layers,r.up.set(0,-1,0),r.lookAt(new Am(1,0,0)),this.add(r);const i=new Rv(Lv,1,e,t);i.layers=this.layers,i.up.set(0,-1,0),i.lookAt(new Am(-1,0,0)),this.add(i);const a=new Rv(Lv,1,e,t);a.layers=this.layers,a.up.set(0,0,1),a.lookAt(new Am(0,1,0)),this.add(a);const s=new Rv(Lv,1,e,t);s.layers=this.layers,s.up.set(0,0,-1),s.lookAt(new Am(0,-1,0)),this.add(s);const o=new Rv(Lv,1,e,t);o.layers=this.layers,o.up.set(0,-1,0),o.lookAt(new Am(0,0,1)),this.add(o);const l=new Rv(Lv,1,e,t);l.layers=this.layers,l.up.set(0,-1,0),l.lookAt(new Am(0,0,-1)),this.add(l)}update(e,t){null===this.parent&&this.updateMatrixWorld();const n=this.renderTarget,[r,i,a,s,o,l]=this.children,c=e.getRenderTarget(),u=e.outputEncoding,h=e.toneMapping,f=e.xr.enabled;e.outputEncoding=Op,e.toneMapping=0,e.xr.enabled=!1;const d=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0),e.render(t,r),e.setRenderTarget(n,1),e.render(t,i),e.setRenderTarget(n,2),e.render(t,a),e.setRenderTarget(n,3),e.render(t,s),e.setRenderTarget(n,4),e.render(t,o),n.texture.generateMipmaps=d,e.setRenderTarget(n,5),e.render(t,l),e.setRenderTarget(c),e.outputEncoding=u,e.toneMapping=h,e.xr.enabled=f,n.texture.needsPMREMUpdate=!0}}class Pv extends _m{constructor(e,t,n,r,i,a,s,o,l,c){super(e=void 0!==e?e:[],t=void 0!==t?t:sp,n,r,i,a,s,o,l,c),this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}Pv.prototype.isCubeTexture=!0;class Dv extends Tm{constructor(e,t={}){super(e,e,t);const n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new Pv(r,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.encoding),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==t.generateMipmaps&&t.generateMipmaps,this.texture.minFilter=void 0!==t.minFilter?t.minFilter:dp}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.encoding=t.encoding,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={tEquirect:{value:null}},r="\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include <begin_vertex>\n\t\t\t\t\t#include <project_vertex>\n\n\t\t\t\t}\n\t\t\t",i="\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include <common>\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t",a=new Tv(5,5,5),s=new Av({name:"CubemapFromEquirect",uniforms:Sv(n),vertexShader:r,fragmentShader:i,side:1,blending:0});s.uniforms.tEquirect.value=t;const o=new _v(a,s),l=t.minFilter;return t.minFilter===pp&&(t.minFilter=dp),new kv(1,10,this).update(e,o),t.minFilter=l,o.geometry.dispose(),o.material.dispose(),this}clear(e,t,n,r){const i=e.getRenderTarget();for(let i=0;i<6;i++)e.setRenderTarget(this,i),e.clear(t,n,r);e.setRenderTarget(i)}}Dv.prototype.isWebGLCubeRenderTarget=!0;const Ov=new Am,Iv=new Am,Nv=new nm;class Fv{constructor(e=new Am(1,0,0),t=0){this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){const r=Ov.subVectors(n,t).cross(Iv.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(this.normal).multiplyScalar(-this.distanceToPoint(e)).add(e)}intersectLine(e,t){const n=e.delta(Ov),r=this.normal.dot(n);if(0===r)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;const i=-(e.start.dot(this.normal)+this.constant)/r;return i<0||i>1?null:t.copy(n).multiplyScalar(i).add(e.start)}intersectsLine(e){const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||Nv.getNormalMatrix(e),r=this.coplanarPoint(Ov).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return(new this.constructor).copy(this)}}Fv.prototype.isPlane=!0;const Bv=new Ym,Uv=new Am;class zv{constructor(e=new Fv,t=new Fv,n=new Fv,r=new Fv,i=new Fv,a=new Fv){this.planes=[e,t,n,r,i,a]}set(e,t,n,r,i,a){const s=this.planes;return s[0].copy(e),s[1].copy(t),s[2].copy(n),s[3].copy(r),s[4].copy(i),s[5].copy(a),this}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e){const t=this.planes,n=e.elements,r=n[0],i=n[1],a=n[2],s=n[3],o=n[4],l=n[5],c=n[6],u=n[7],h=n[8],f=n[9],d=n[10],p=n[11],m=n[12],g=n[13],v=n[14],y=n[15];return t[0].setComponents(s-r,u-o,p-h,y-m).normalize(),t[1].setComponents(s+r,u+o,p+h,y+m).normalize(),t[2].setComponents(s+i,u+l,p+f,y+g).normalize(),t[3].setComponents(s-i,u-l,p-f,y-g).normalize(),t[4].setComponents(s-a,u-c,p-d,y-v).normalize(),t[5].setComponents(s+a,u+c,p+d,y+v).normalize(),this}intersectsObject(e){const t=e.geometry;return null===t.boundingSphere&&t.computeBoundingSphere(),Bv.copy(t.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(Bv)}intersectsSprite(e){return Bv.center.set(0,0,0),Bv.radius=.7071067811865476,Bv.applyMatrix4(e.matrixWorld),this.intersectsSphere(Bv)}intersectsSphere(e){const t=this.planes,n=e.center,r=-e.radius;for(let e=0;e<6;e++)if(t[e].distanceToPoint(n)<r)return!1;return!0}intersectsBox(e){const t=this.planes;for(let n=0;n<6;n++){const r=t[n];if(Uv.x=r.normal.x>0?e.max.x:e.min.x,Uv.y=r.normal.y>0?e.max.y:e.min.y,Uv.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(Uv)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function Hv(){let e=null,t=!1,n=null,r=null;function i(t,a){n(t,a),r=e.requestAnimationFrame(i)}return{start:function(){!0!==t&&null!==n&&(r=e.requestAnimationFrame(i),t=!0)},stop:function(){e.cancelAnimationFrame(r),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function Vv(e,t){const n=t.isWebGL2,r=new WeakMap;return{get:function(e){return e.isInterleavedBufferAttribute&&(e=e.data),r.get(e)},remove:function(t){t.isInterleavedBufferAttribute&&(t=t.data);const n=r.get(t);n&&(e.deleteBuffer(n.buffer),r.delete(t))},update:function(t,i){if(t.isGLBufferAttribute){const e=r.get(t);return void((!e||e.version<t.version)&&r.set(t,{buffer:t.buffer,type:t.type,bytesPerElement:t.elementSize,version:t.version}))}t.isInterleavedBufferAttribute&&(t=t.data);const a=r.get(t);void 0===a?r.set(t,function(t,r){const i=t.array,a=t.usage,s=e.createBuffer();let o;if(e.bindBuffer(r,s),e.bufferData(r,i,a),t.onUploadCallback(),i instanceof Float32Array)o=5126;else if(i instanceof Uint16Array)if(t.isFloat16BufferAttribute){if(!n)throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");o=5131}else o=5123;else if(i instanceof Int16Array)o=5122;else if(i instanceof Uint32Array)o=5125;else if(i instanceof Int32Array)o=5124;else if(i instanceof Int8Array)o=5120;else if(i instanceof Uint8Array)o=5121;else{if(!(i instanceof Uint8ClampedArray))throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+i);o=5121}return{buffer:s,type:o,bytesPerElement:i.BYTES_PER_ELEMENT,version:t.version}}(t,i)):a.version<t.version&&(function(t,r,i){const a=r.array,s=r.updateRange;e.bindBuffer(i,t),-1===s.count?e.bufferSubData(i,0,a):(n?e.bufferSubData(i,s.offset*a.BYTES_PER_ELEMENT,a,s.offset,s.count):e.bufferSubData(i,s.offset*a.BYTES_PER_ELEMENT,a.subarray(s.offset,s.offset+s.count)),s.count=-1)}(a.buffer,t,i),a.version=t.version)}}}class Gv extends rv{constructor(e=1,t=1,n=1,r=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:t,widthSegments:n,heightSegments:r};const i=e/2,a=t/2,s=Math.floor(n),o=Math.floor(r),l=s+1,c=o+1,u=e/s,h=t/o,f=[],d=[],p=[],m=[];for(let e=0;e<c;e++){const t=e*h-a;for(let n=0;n<l;n++){const r=n*u-i;d.push(r,-t,0),p.push(0,0,1),m.push(n/s),m.push(1-e/o)}}for(let e=0;e<o;e++)for(let t=0;t<s;t++){const n=t+l*e,r=t+l*(e+1),i=t+1+l*(e+1),a=t+1+l*e;f.push(n,r,a),f.push(r,i,a)}this.setIndex(f),this.setAttribute("position",new Yg(d,3)),this.setAttribute("normal",new Yg(p,3)),this.setAttribute("uv",new Yg(m,2))}static fromJSON(e){return new Gv(e.width,e.height,e.widthSegments,e.heightSegments)}}const Wv={alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\n#endif",alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",alphatest_fragment:"#ifdef USE_ALPHATEST\n\tif ( diffuseColor.a < alphaTest ) discard;\n#endif",alphatest_pars_fragment:"#ifdef USE_ALPHATEST\n\tuniform float alphaTest;\n#endif",aomap_fragment:"#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_ENVMAP ) && defined( STANDARD )\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );\n\t#endif\n#endif",aomap_pars_fragment:"#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",begin_vertex:"vec3 transformed = vec3( position );",beginnormal_vertex:"vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif",bsdfs:"vec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 f0, const in float f90, const in float roughness ) {\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\nfloat G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, 1.0, dotVH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif",bumpmap_pars_fragment:"#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vUv );\n\t\tvec2 dSTdy = dFdy( vUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {\n\t\tvec3 vSigmaX = vec3( dFdx( surf_pos.x ), dFdx( surf_pos.y ), dFdx( surf_pos.z ) );\n\t\tvec3 vSigmaY = vec3( dFdy( surf_pos.x ), dFdy( surf_pos.y ), dFdy( surf_pos.z ) );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 ) * faceDirection;\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif",clipping_planes_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#pragma unroll_loop_end\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\tif ( clipped ) discard;\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal;\n#endif\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat linearToRelativeLuminance( const in vec3 color ) {\n\tvec3 weights = vec3( 0.2126, 0.7152, 0.0722 );\n\treturn dot( weights, color.rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\tvec2 uv = getUV( direction, face ) * ( faceSize - 1.0 ) + 0.5;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define r0 1.0\n\t#define v0 0.339\n\t#define m0 - 2.0\n\t#define r1 0.8\n\t#define v1 0.276\n\t#define m1 - 1.0\n\t#define r4 0.4\n\t#define v4 0.046\n\t#define m4 2.0\n\t#define r5 0.305\n\t#define v5 0.016\n\t#define m5 3.0\n\t#define r6 0.21\n\t#define v6 0.0038\n\t#define m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= r1 ) {\n\t\t\tmip = ( r0 - roughness ) * ( m1 - m0 ) / ( r0 - r1 ) + m0;\n\t\t} else if ( roughness >= r4 ) {\n\t\t\tmip = ( r1 - roughness ) * ( m4 - m1 ) / ( r1 - r4 ) + m1;\n\t\t} else if ( roughness >= r5 ) {\n\t\t\tmip = ( r4 - roughness ) * ( m5 - m4 ) / ( r4 - r5 ) + m4;\n\t\t} else if ( roughness >= r6 ) {\n\t\t\tmip = ( r5 - roughness ) * ( m6 - m5 ) / ( r5 - r6 ) + m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_INSTANCING\n\tmat3 m = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );\n\ttransformedNormal = m * transformedNormal;\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",encodings_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",encodings_pars_fragment:"vec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 envColor = textureCubeUV( envMap, reflectVec, 0.0 );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) ||defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#if defined( USE_ENVMAP )\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\treturn ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\n\t#endif\n}",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel = texture2D( lightMap, vUv2 );\n\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\treflectedLight.indirectDiffuse += lightMapIrradiance;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_vertex:"vec3 diffuse = vec3( 1.0 );\nGeometricContext geometry;\ngeometry.position = mvPosition.xyz;\ngeometry.normal = normalize( transformedNormal );\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( -mvPosition.xyz );\nGeometricContext backGeometry;\nbackGeometry.position = geometry.position;\nbackGeometry.normal = -geometry.normal;\nbackGeometry.viewDir = geometry.viewDir;\nvLightFront = vec3( 0.0 );\nvIndirectFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\n\tvLightBack = vec3( 0.0 );\n\tvIndirectBack = vec3( 0.0 );\n#endif\nIncidentLight directLight;\nfloat dotNL;\nvec3 directLightColor_Diffuse;\nvIndirectFront += getAmbientLightIrradiance( ambientLightColor );\nvIndirectFront += getLightProbeIrradiance( lightProbe, geometry.normal );\n#ifdef DOUBLE_SIDED\n\tvIndirectBack += getAmbientLightIrradiance( ambientLightColor );\n\tvIndirectBack += getLightProbeIrradiance( lightProbe, backGeometry.normal );\n#endif\n#if NUM_POINT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tgetPointLightInfo( pointLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( - dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tgetSpotLightInfo( spotLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( - dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_DIR_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tgetDirectionalLightInfo( directionalLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( - dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\tvIndirectFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvIndirectBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry.normal );\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\nuniform vec3 lightProbe[ 9 ];\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#else\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon\n#define Material_LightProbeLOD( material )\t(0)",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong\n#define Material_LightProbeLOD( material )\t(0)",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\t#ifdef SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULARINTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vUv ).a;\n\t\t#endif\n\t\t#ifdef USE_SPECULARCOLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vUv ).rgb;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( ior - 1.0 ) / ( ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEENCOLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEENROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vUv ).a;\n\t#endif\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n};\nvec3 clearcoatSpecular = vec3( 0.0 );\nvec3 sheenSpecular = vec3( 0.0 );\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\tvec3 FssEss = specularColor * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = specularColor + ( 1.0 - specularColor ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecular += ccIrradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.clearcoatNormal, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * BRDF_Sheen( directLight.direction, geometry.viewDir, geometry.normal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularF90, material.roughness );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecular += clearcoatRadiance * EnvironmentBRDF( geometry.clearcoatNormal, geometry.viewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * material.sheenColor * IBLSheenBRDF( geometry.normal, geometry.viewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\tcomputeMultiscattering( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - ( singleScattering + multiScattering ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n#ifdef USE_CLEARCOAT\n\tgeometry.clearcoatNormal = clearcoatNormal;\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\tirradiance += getLightProbeIrradiance( lightProbe, geometry.normal );\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vUv2 );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometry.normal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getIBLRadiance( geometry.viewDir, geometry.normal, material.roughness );\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tuniform mat3 uvTransform;\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform ivec2 morphTargetsTextureSize;\n\t\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );\n\tvec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\t#ifdef USE_TANGENT\n\t\tvec3 tangent = normalize( vTangent );\n\t\tvec3 bitangent = normalize( vBitangent );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\ttangent = tangent * faceDirection;\n\t\t\tbitangent = bitangent * faceDirection;\n\t\t#endif\n\t\t#if defined( TANGENTSPACE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tmat3 vTBN = mat3( tangent, bitangent, normal );\n\t\t#endif\n\t#endif\n#endif\nvec3 geometryNormal = normal;",normal_fragment_maps:"#ifdef OBJECTSPACE_NORMALMAP\n\tnormal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( TANGENTSPACE_NORMALMAP )\n\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\t#ifdef USE_TANGENT\n\t\tnormal = normalize( vTBN * mapN );\n\t#else\n\t\tnormal = perturbNormal2Arb( - vViewPosition, normal, mapN, faceDirection );\n\t#endif\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef OBJECTSPACE_NORMALMAP\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( TANGENTSPACE_NORMALMAP ) || defined ( USE_CLEARCOAT_NORMALMAP ) )\n\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm, vec3 mapN, float faceDirection ) {\n\t\tvec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) );\n\t\tvec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) );\n\t\tvec2 st0 = dFdx( vUv.st );\n\t\tvec2 st1 = dFdy( vUv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : faceDirection * inversesqrt( det );\n\t\treturn normalize( T * ( mapN.x * scale ) + B * ( mapN.y * scale ) + N * mapN.z );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = geometryNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\t#ifdef USE_TANGENT\n\t\tclearcoatNormal = normalize( vTBN * clearcoatMapN );\n\t#else\n\t\tclearcoatNormal = perturbNormal2Arb( - vViewPosition, clearcoatNormal, clearcoatMapN, faceDirection );\n\t#endif\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif",output_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= transmissionAlpha + 0.1;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\n\treturn linearClipZ * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * invClipZ - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\n\t\tbool inFrustum = all( inFrustumVec );\n\t\tbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\n\t\tbool frustumTest = all( frustumTestVec );\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), \n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif",shadowmap_pars_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SPOT_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0\n\t\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\tvec4 shadowWorldPosition;\n\t#endif\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\t#ifdef BONE_TEXTURE\n\t\tuniform highp sampler2D boneTexture;\n\t\tuniform int boneTextureSize;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\t\ty = dy * ( y + 0.5 );\n\t\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\t\treturn bone;\n\t\t}\n\t#else\n\t\tuniform mat4 boneMatrices[ MAX_BONES ];\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tmat4 bone = boneMatrices[ int(i) ];\n\t\t\treturn bone;\n\t\t}\n\t#endif\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tfloat transmissionAlpha = 1.0;\n\tfloat transmissionFactor = transmission;\n\tfloat thicknessFactor = thickness;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\ttransmissionFactor *= texture2D( transmissionMap, vUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tthicknessFactor *= texture2D( thicknessMap, vUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmission = getIBLVolumeRefraction(\n\t\tn, v, roughnessFactor, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, ior, thicknessFactor,\n\t\tattenuationColor, attenuationDistance );\n\ttotalDiffuse = mix( totalDiffuse, transmission.rgb, transmissionFactor );\n\ttransmissionAlpha = mix( transmissionAlpha, transmission.a, transmissionFactor );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat framebufferLod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\t#ifdef texture2DLodEXT\n\t\t\treturn texture2DLodEXT( transmissionSamplerMap, fragCoord.xy, framebufferLod );\n\t\t#else\n\t\t\treturn texture2D( transmissionSamplerMap, fragCoord.xy, framebufferLod );\n\t\t#endif\n\t}\n\tvec3 applyVolumeAttenuation( const in vec3 radiance, const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( attenuationDistance == 0.0 ) {\n\t\t\treturn radiance;\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance * radiance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\trefractionCoords += 1.0;\n\t\trefractionCoords /= 2.0;\n\t\tvec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\tvec3 attenuatedColor = applyVolumeAttenuation( transmittedLight.rgb, length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor * diffuseColor, transmittedLight.a );\n\t}\n#endif",uv_pars_fragment:"#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) )\n\tvarying vec2 vUv;\n#endif",uv_pars_vertex:"#ifdef USE_UV\n\t#ifdef UVS_VERTEX_ONLY\n\t\tvec2 vUv;\n\t#else\n\t\tvarying vec2 vUv;\n\t#endif\n\tuniform mat3 uvTransform;\n#endif",uv_vertex:"#ifdef USE_UV\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n#endif",uv2_pars_fragment:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvarying vec2 vUv2;\n#endif",uv2_pars_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tattribute vec2 uv2;\n\tvarying vec2 vUv2;\n\tuniform mat3 uv2Transform;\n#endif",uv2_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION )\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nvarying vec2 vUv;\nvoid main() {\n\tgl_FragColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tgl_FragColor = vec4( mix( pow( gl_FragColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), gl_FragColor.rgb * 0.0773993808, vec3( lessThanEqual( gl_FragColor.rgb, vec3( 0.04045 ) ) ) ), gl_FragColor.w );\n\t#endif\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",cube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"#include <envmap_common_pars_fragment>\nuniform float opacity;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\tvec3 vReflect = vWorldDirection;\n\t#include <envmap_fragment>\n\tgl_FragColor = envColor;\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",depth_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <logdepthbuf_fragment>\n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",meshbasic_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinbase_vertex>\n\t\t#include <skinnormal_vertex>\n\t\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vUv2 );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <lights_lambert_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshlambert_frag:"uniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <fog_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <emissivemap_fragment>\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.indirectDiffuse += ( gl_FrontFacing ) ? vIndirectFront : vIndirectBack;\n\t#else\n\t\treflectedLight.indirectDiffuse += vIndirectFront;\n\t#endif\n\t#include <lightmap_fragment>\n\treflectedLight.indirectDiffuse *= BRDF_Lambert( diffuseColor.rgb );\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\n\t#else\n\t\treflectedLight.directDiffuse = vLightFront;\n\t#endif\n\treflectedLight.directDiffuse *= BRDF_Lambert( diffuseColor.rgb ) * getShadowMask();\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n\tvViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <fog_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULARINTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n\t#ifdef USE_SPECULARCOLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEENCOLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEENROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <bsdfs>\n#include <cube_uv_reflection_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_physical_pars_fragment>\n#include <transmission_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <clearcoat_normal_fragment_begin>\n\t#include <clearcoat_normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include <transmission_fragment>\n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecular;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + clearcoatSpecular * material.clearcoat;\n\t#endif\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_toon_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",points_vert:"uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",shadow_vert:"#include <common>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}"},jv={common:{diffuse:{value:new mm(16777215)},opacity:{value:1},map:{value:null},uvTransform:{value:new nm},uv2Transform:{value:new nm},alphaMap:{value:null},alphaTest:{value:0}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new tm(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new mm(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new mm(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new nm}},sprite:{diffuse:{value:new mm(16777215)},opacity:{value:1},center:{value:new tm(.5,.5)},rotation:{value:0},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new nm}}},Xv={basic:{uniforms:Ev([jv.common,jv.specularmap,jv.envmap,jv.aomap,jv.lightmap,jv.fog]),vertexShader:Wv.meshbasic_vert,fragmentShader:Wv.meshbasic_frag},lambert:{uniforms:Ev([jv.common,jv.specularmap,jv.envmap,jv.aomap,jv.lightmap,jv.emissivemap,jv.fog,jv.lights,{emissive:{value:new mm(0)}}]),vertexShader:Wv.meshlambert_vert,fragmentShader:Wv.meshlambert_frag},phong:{uniforms:Ev([jv.common,jv.specularmap,jv.envmap,jv.aomap,jv.lightmap,jv.emissivemap,jv.bumpmap,jv.normalmap,jv.displacementmap,jv.fog,jv.lights,{emissive:{value:new mm(0)},specular:{value:new mm(1118481)},shininess:{value:30}}]),vertexShader:Wv.meshphong_vert,fragmentShader:Wv.meshphong_frag},standard:{uniforms:Ev([jv.common,jv.envmap,jv.aomap,jv.lightmap,jv.emissivemap,jv.bumpmap,jv.normalmap,jv.displacementmap,jv.roughnessmap,jv.metalnessmap,jv.fog,jv.lights,{emissive:{value:new mm(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Wv.meshphysical_vert,fragmentShader:Wv.meshphysical_frag},toon:{uniforms:Ev([jv.common,jv.aomap,jv.lightmap,jv.emissivemap,jv.bumpmap,jv.normalmap,jv.displacementmap,jv.gradientmap,jv.fog,jv.lights,{emissive:{value:new mm(0)}}]),vertexShader:Wv.meshtoon_vert,fragmentShader:Wv.meshtoon_frag},matcap:{uniforms:Ev([jv.common,jv.bumpmap,jv.normalmap,jv.displacementmap,jv.fog,{matcap:{value:null}}]),vertexShader:Wv.meshmatcap_vert,fragmentShader:Wv.meshmatcap_frag},points:{uniforms:Ev([jv.points,jv.fog]),vertexShader:Wv.points_vert,fragmentShader:Wv.points_frag},dashed:{uniforms:Ev([jv.common,jv.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Wv.linedashed_vert,fragmentShader:Wv.linedashed_frag},depth:{uniforms:Ev([jv.common,jv.displacementmap]),vertexShader:Wv.depth_vert,fragmentShader:Wv.depth_frag},normal:{uniforms:Ev([jv.common,jv.bumpmap,jv.normalmap,jv.displacementmap,{opacity:{value:1}}]),vertexShader:Wv.meshnormal_vert,fragmentShader:Wv.meshnormal_frag},sprite:{uniforms:Ev([jv.sprite,jv.fog]),vertexShader:Wv.sprite_vert,fragmentShader:Wv.sprite_frag},background:{uniforms:{uvTransform:{value:new nm},t2D:{value:null}},vertexShader:Wv.background_vert,fragmentShader:Wv.background_frag},cube:{uniforms:Ev([jv.envmap,{opacity:{value:1}}]),vertexShader:Wv.cube_vert,fragmentShader:Wv.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Wv.equirect_vert,fragmentShader:Wv.equirect_frag},distanceRGBA:{uniforms:Ev([jv.common,jv.displacementmap,{referencePosition:{value:new Am},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Wv.distanceRGBA_vert,fragmentShader:Wv.distanceRGBA_frag},shadow:{uniforms:Ev([jv.lights,jv.fog,{color:{value:new mm(0)},opacity:{value:1}}]),vertexShader:Wv.shadow_vert,fragmentShader:Wv.shadow_frag}};function qv(e,t,n,r,i,a){const s=new mm(0);let o,l,c=!0===i?0:1,u=null,h=0,f=null;function d(e,t){n.buffers.color.setClear(e.r,e.g,e.b,t,a)}return{getClearColor:function(){return s},setClearColor:function(e,t=1){s.set(e),c=t,d(s,c)},getClearAlpha:function(){return c},setClearAlpha:function(e){c=e,d(s,c)},render:function(n,i){let a=!1,p=!0===i.isScene?i.background:null;p&&p.isTexture&&(p=t.get(p));const m=e.xr,g=m.getSession&&m.getSession();g&&"additive"===g.environmentBlendMode&&(p=null),null===p?d(s,c):p&&p.isColor&&(d(p,1),a=!0),(e.autoClear||a)&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),p&&(p.isCubeTexture||p.mapping===lp)?(void 0===l&&(l=new _v(new Tv(1,1,1),new Av({name:"BackgroundCubeMaterial",uniforms:Sv(Xv.cube.uniforms),vertexShader:Xv.cube.vertexShader,fragmentShader:Xv.cube.fragmentShader,side:1,depthTest:!1,depthWrite:!1,fog:!1})),l.geometry.deleteAttribute("normal"),l.geometry.deleteAttribute("uv"),l.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(l.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(l)),l.material.uniforms.envMap.value=p,l.material.uniforms.flipEnvMap.value=p.isCubeTexture&&!1===p.isRenderTargetTexture?-1:1,u===p&&h===p.version&&f===e.toneMapping||(l.material.needsUpdate=!0,u=p,h=p.version,f=e.toneMapping),n.unshift(l,l.geometry,l.material,0,0,null)):p&&p.isTexture&&(void 0===o&&(o=new _v(new Gv(2,2),new Av({name:"BackgroundMaterial",uniforms:Sv(Xv.background.uniforms),vertexShader:Xv.background.vertexShader,fragmentShader:Xv.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1})),o.geometry.deleteAttribute("normal"),Object.defineProperty(o.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(o)),o.material.uniforms.t2D.value=p,!0===p.matrixAutoUpdate&&p.updateMatrix(),o.material.uniforms.uvTransform.value.copy(p.matrix),u===p&&h===p.version&&f===e.toneMapping||(o.material.needsUpdate=!0,u=p,h=p.version,f=e.toneMapping),n.unshift(o,o.geometry,o.material,0,0,null))}}}function $v(e,t,n,r){const i=e.getParameter(34921),a=r.isWebGL2?null:t.get("OES_vertex_array_object"),s=r.isWebGL2||null!==a,o={},l=d(null);let c=l,u=!1;function h(t){return r.isWebGL2?e.bindVertexArray(t):a.bindVertexArrayOES(t)}function f(t){return r.isWebGL2?e.deleteVertexArray(t):a.deleteVertexArrayOES(t)}function d(e){const t=[],n=[],r=[];for(let e=0;e<i;e++)t[e]=0,n[e]=0,r[e]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:t,enabledAttributes:n,attributeDivisors:r,object:e,attributes:{},index:null}}function p(){const e=c.newAttributes;for(let t=0,n=e.length;t<n;t++)e[t]=0}function m(e){g(e,0)}function g(n,i){const a=c.newAttributes,s=c.enabledAttributes,o=c.attributeDivisors;a[n]=1,0===s[n]&&(e.enableVertexAttribArray(n),s[n]=1),o[n]!==i&&((r.isWebGL2?e:t.get("ANGLE_instanced_arrays"))[r.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](n,i),o[n]=i)}function v(){const t=c.newAttributes,n=c.enabledAttributes;for(let r=0,i=n.length;r<i;r++)n[r]!==t[r]&&(e.disableVertexAttribArray(r),n[r]=0)}function y(t,n,i,a,s,o){!0!==r.isWebGL2||5124!==i&&5125!==i?e.vertexAttribPointer(t,n,i,a,s,o):e.vertexAttribIPointer(t,n,i,s,o)}function b(){x(),u=!0,c!==l&&(c=l,h(c.object))}function x(){l.geometry=null,l.program=null,l.wireframe=!1}return{setup:function(i,l,f,b,x){let _=!1;if(s){const t=function(t,n,i){const s=!0===i.wireframe;let l=o[t.id];void 0===l&&(l={},o[t.id]=l);let c=l[n.id];void 0===c&&(c={},l[n.id]=c);let u=c[s];return void 0===u&&(u=d(r.isWebGL2?e.createVertexArray():a.createVertexArrayOES()),c[s]=u),u}(b,f,l);c!==t&&(c=t,h(c.object)),_=function(e,t){const n=c.attributes,r=e.attributes;let i=0;for(const e in r){const t=n[e],a=r[e];if(void 0===t)return!0;if(t.attribute!==a)return!0;if(t.data!==a.data)return!0;i++}return c.attributesNum!==i||c.index!==t}(b,x),_&&function(e,t){const n={},r=e.attributes;let i=0;for(const e in r){const t=r[e],a={};a.attribute=t,t.data&&(a.data=t.data),n[e]=a,i++}c.attributes=n,c.attributesNum=i,c.index=t}(b,x)}else{const e=!0===l.wireframe;c.geometry===b.id&&c.program===f.id&&c.wireframe===e||(c.geometry=b.id,c.program=f.id,c.wireframe=e,_=!0)}!0===i.isInstancedMesh&&(_=!0),null!==x&&n.update(x,34963),(_||u)&&(u=!1,function(i,a,s,o){if(!1===r.isWebGL2&&(i.isInstancedMesh||o.isInstancedBufferGeometry)&&null===t.get("ANGLE_instanced_arrays"))return;p();const l=o.attributes,c=s.getAttributes(),u=a.defaultAttributeValues;for(const t in c){const r=c[t];if(r.location>=0){let a=l[t];if(void 0===a&&("instanceMatrix"===t&&i.instanceMatrix&&(a=i.instanceMatrix),"instanceColor"===t&&i.instanceColor&&(a=i.instanceColor)),void 0!==a){const t=a.normalized,s=a.itemSize,l=n.get(a);if(void 0===l)continue;const c=l.buffer,u=l.type,h=l.bytesPerElement;if(a.isInterleavedBufferAttribute){const n=a.data,l=n.stride,f=a.offset;if(n.isInstancedInterleavedBuffer){for(let e=0;e<r.locationSize;e++)g(r.location+e,n.meshPerAttribute);!0!==i.isInstancedMesh&&void 0===o._maxInstanceCount&&(o._maxInstanceCount=n.meshPerAttribute*n.count)}else for(let e=0;e<r.locationSize;e++)m(r.location+e);e.bindBuffer(34962,c);for(let e=0;e<r.locationSize;e++)y(r.location+e,s/r.locationSize,u,t,l*h,(f+s/r.locationSize*e)*h)}else{if(a.isInstancedBufferAttribute){for(let e=0;e<r.locationSize;e++)g(r.location+e,a.meshPerAttribute);!0!==i.isInstancedMesh&&void 0===o._maxInstanceCount&&(o._maxInstanceCount=a.meshPerAttribute*a.count)}else for(let e=0;e<r.locationSize;e++)m(r.location+e);e.bindBuffer(34962,c);for(let e=0;e<r.locationSize;e++)y(r.location+e,s/r.locationSize,u,t,s*h,s/r.locationSize*e*h)}}else if(void 0!==u){const n=u[t];if(void 0!==n)switch(n.length){case 2:e.vertexAttrib2fv(r.location,n);break;case 3:e.vertexAttrib3fv(r.location,n);break;case 4:e.vertexAttrib4fv(r.location,n);break;default:e.vertexAttrib1fv(r.location,n)}}}}v()}(i,l,f,b),null!==x&&e.bindBuffer(34963,n.get(x).buffer))},reset:b,resetDefaultState:x,dispose:function(){b();for(const e in o){const t=o[e];for(const e in t){const n=t[e];for(const e in n)f(n[e].object),delete n[e];delete t[e]}delete o[e]}},releaseStatesOfGeometry:function(e){if(void 0===o[e.id])return;const t=o[e.id];for(const e in t){const n=t[e];for(const e in n)f(n[e].object),delete n[e];delete t[e]}delete o[e.id]},releaseStatesOfProgram:function(e){for(const t in o){const n=o[t];if(void 0===n[e.id])continue;const r=n[e.id];for(const e in r)f(r[e].object),delete r[e];delete n[e.id]}},initAttributes:p,enableAttribute:m,disableUnusedAttributes:v}}function Yv(e,t,n,r){const i=r.isWebGL2;let a;this.setMode=function(e){a=e},this.render=function(t,r){e.drawArrays(a,t,r),n.update(r,a,1)},this.renderInstances=function(r,s,o){if(0===o)return;let l,c;if(i)l=e,c="drawArraysInstanced";else if(l=t.get("ANGLE_instanced_arrays"),c="drawArraysInstancedANGLE",null===l)return void console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");l[c](a,r,s,o),n.update(s,a,o)}}function Zv(e,t,n){let r;function i(t){if("highp"===t){if(e.getShaderPrecisionFormat(35633,36338).precision>0&&e.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(35633,36337).precision>0&&e.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}const a="undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||"undefined"!=typeof WebGL2ComputeRenderingContext&&e instanceof WebGL2ComputeRenderingContext;let s=void 0!==n.precision?n.precision:"highp";const o=i(s);o!==s&&(console.warn("THREE.WebGLRenderer:",s,"not supported, using",o,"instead."),s=o);const l=a||t.has("WEBGL_draw_buffers"),c=!0===n.logarithmicDepthBuffer,u=e.getParameter(34930),h=e.getParameter(35660),f=e.getParameter(3379),d=e.getParameter(34076),p=e.getParameter(34921),m=e.getParameter(36347),g=e.getParameter(36348),v=e.getParameter(36349),y=h>0,b=a||t.has("OES_texture_float");return{isWebGL2:a,drawBuffers:l,getMaxAnisotropy:function(){if(void 0!==r)return r;if(!0===t.has("EXT_texture_filter_anisotropic")){const n=t.get("EXT_texture_filter_anisotropic");r=e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else r=0;return r},getMaxPrecision:i,precision:s,logarithmicDepthBuffer:c,maxTextures:u,maxVertexTextures:h,maxTextureSize:f,maxCubemapSize:d,maxAttributes:p,maxVertexUniforms:m,maxVaryings:g,maxFragmentUniforms:v,vertexTextures:y,floatFragmentTextures:b,floatVertexTextures:y&&b,maxSamples:a?e.getParameter(36183):0}}function Jv(e){const t=this;let n=null,r=0,i=!1,a=!1;const s=new Fv,o=new nm,l={value:null,needsUpdate:!1};function c(){l.value!==n&&(l.value=n,l.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function u(e,n,r,i){const a=null!==e?e.length:0;let c=null;if(0!==a){if(c=l.value,!0!==i||null===c){const t=r+4*a,i=n.matrixWorldInverse;o.getNormalMatrix(i),(null===c||c.length<t)&&(c=new Float32Array(t));for(let t=0,n=r;t!==a;++t,n+=4)s.copy(e[t]).applyMatrix4(i,o),s.normal.toArray(c,n),c[n+3]=s.constant}l.value=c,l.needsUpdate=!0}return t.numPlanes=a,t.numIntersection=0,c}this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t,a){const s=0!==e.length||t||0!==r||i;return i=t,n=u(e,a,0),r=e.length,s},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1,c()},this.setState=function(t,s,o){const h=t.clippingPlanes,f=t.clipIntersection,d=t.clipShadows,p=e.get(t);if(!i||null===h||0===h.length||a&&!d)a?u(null):c();else{const e=a?0:r,t=4*e;let i=p.clippingState||null;l.value=i,i=u(h,s,t,o);for(let e=0;e!==t;++e)i[e]=n[e];p.clippingState=i,this.numIntersection=f?this.numPlanes:0,this.numPlanes+=e}}}function Kv(e){let t=new WeakMap;function n(e,t){return 303===t?e.mapping=sp:304===t&&(e.mapping=op),e}function r(e){const n=e.target;n.removeEventListener("dispose",r);const i=t.get(n);void 0!==i&&(t.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture&&!1===i.isRenderTargetTexture){const a=i.mapping;if(303===a||304===a){if(t.has(i))return n(t.get(i).texture,i.mapping);{const a=i.image;if(a&&a.height>0){const s=new Dv(a.height/2);return s.fromEquirectangularTexture(e,i),t.set(i,s),i.addEventListener("dispose",r),n(s.texture,i.mapping)}return null}}}return i},dispose:function(){t=new WeakMap}}}Xv.physical={uniforms:Ev([Xv.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new tm(1,1)},clearcoatNormalMap:{value:null},sheen:{value:0},sheenColor:{value:new mm(0)},sheenColorMap:{value:null},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},transmission:{value:0},transmissionMap:{value:null},transmissionSamplerSize:{value:new tm},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},attenuationDistance:{value:0},attenuationColor:{value:new mm(0)},specularIntensity:{value:1},specularIntensityMap:{value:null},specularColor:{value:new mm(1,1,1)},specularColorMap:{value:null}}]),vertexShader:Wv.meshphysical_vert,fragmentShader:Wv.meshphysical_frag};class Qv extends Cv{constructor(e=-1,t=1,n=1,r=-1,i=.1,a=2e3){super(),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=r,this.near=i,this.far=a,this.updateProjectionMatrix()}copy(e,t){return super.copy(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(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(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const 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;let i=n-e,a=n+e,s=r+t,o=r-t;if(null!==this.view&&this.view.enabled){const e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=e*this.view.offsetX,a=i+e*this.view.width,s-=t*this.view.offsetY,o=s-t*this.view.height}this.projectionMatrix.makeOrthographic(i,a,s,o,this.near,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(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}}Qv.prototype.isOrthographicCamera=!0;const ey=[.125,.215,.35,.446,.526,.582],ty=new Qv,ny=new mm;let ry=null;const iy=(1+Math.sqrt(5))/2,ay=1/iy,sy=[new Am(1,1,1),new Am(-1,1,1),new Am(1,1,-1),new Am(-1,1,-1),new Am(0,iy,ay),new Am(0,iy,-ay),new Am(ay,0,iy),new Am(-ay,0,iy),new Am(iy,ay,0),new Am(-iy,ay,0)];class oy{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,n=.1,r=100){ry=this._renderer.getRenderTarget(),this._setSize(256);const i=this._allocateTargets();return i.depthBuffer=!0,this._sceneToCubeUV(e,n,r,i),t>0&&this._blur(i,0,0,t),this._applyPMREM(i),this._cleanup(i),i}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=hy(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=uy(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(ry),e.scissorTest=!1,cy(e,0,0,e.width,e.height)}_fromTexture(e,t){e.mapping===sp||e.mapping===op?this._setSize(0===e.image.length?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),ry=this._renderer.getRenderTarget();const n=t||this._allocateTargets();return this._textureToCubeUV(e,n),this._applyPMREM(n),this._cleanup(n),n}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),t=4*this._cubeSize-32,n={magFilter:dp,minFilter:dp,generateMipmaps:!1,type:bp,format:_p,encoding:Op,depthBuffer:!1},r=ly(e,t,n);if(null===this._pingPongRenderTarget||this._pingPongRenderTarget.width!==e){null!==this._pingPongRenderTarget&&this._dispose(),this._pingPongRenderTarget=ly(e,t,n);const{_lodMax:r}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=function(e){const t=[],n=[],r=[];let i=e;const a=e-4+1+ey.length;for(let s=0;s<a;s++){const a=Math.pow(2,i);n.push(a);let o=1/a;s>e-4?o=ey[s-e+4-1]:0===s&&(o=0),r.push(o);const l=1/(a-1),c=-l/2,u=1+l/2,h=[c,c,u,c,u,u,c,c,u,u,c,u],f=6,d=6,p=3,m=2,g=1,v=new Float32Array(p*d*f),y=new Float32Array(m*d*f),b=new Float32Array(g*d*f);for(let e=0;e<f;e++){const t=e%3*2/3-1,n=e>2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];v.set(r,p*d*e),y.set(h,m*d*e);const i=[e,e,e,e,e,e];b.set(i,g*d*e)}const x=new rv;x.setAttribute("position",new Xg(v,p)),x.setAttribute("uv",new Xg(y,m)),x.setAttribute("faceIndex",new Xg(b,g)),t.push(x),i>4&&i--}return{lodPlanes:t,sizeLods:n,sigmas:r}}(r)),this._blurMaterial=function(e,t,n){const r=new Float32Array(20),i=new Am(0,1,0);return new Av({name:"SphericalGaussianBlur",defines:{n:20,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include <cube_uv_reflection_fragment>\n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\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\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}(r,e,t)}return r}_compileMaterial(e){const t=new _v(this._lodPlanes[0],e);this._renderer.compile(t,ty)}_sceneToCubeUV(e,t,n,r){const i=new Rv(90,1,t,n),a=[1,-1,1,1,1,1],s=[1,1,1,-1,-1,-1],o=this._renderer,l=o.autoClear,c=o.toneMapping;o.getClearColor(ny),o.toneMapping=0,o.autoClear=!1;const u=new Gg({name:"PMREM.Background",side:1,depthWrite:!1,depthTest:!1}),h=new _v(new Tv,u);let f=!1;const d=e.background;d?d.isColor&&(u.color.copy(d),e.background=null,f=!0):(u.color.copy(ny),f=!0);for(let t=0;t<6;t++){const n=t%3;0===n?(i.up.set(0,a[t],0),i.lookAt(s[t],0,0)):1===n?(i.up.set(0,0,a[t]),i.lookAt(0,s[t],0)):(i.up.set(0,a[t],0),i.lookAt(0,0,s[t]));const l=this._cubeSize;cy(r,n*l,t>2?l:0,l,l),o.setRenderTarget(r),f&&o.render(h,i),o.render(e,i)}h.geometry.dispose(),h.material.dispose(),o.toneMapping=c,o.autoClear=l,e.background=d}_textureToCubeUV(e,t){const n=this._renderer,r=e.mapping===sp||e.mapping===op;r?(null===this._cubemapMaterial&&(this._cubemapMaterial=hy()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===e.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=uy());const i=r?this._cubemapMaterial:this._equirectMaterial,a=new _v(this._lodPlanes[0],i);i.uniforms.envMap.value=e;const s=this._cubeSize;cy(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(a,ty)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;for(let t=1;t<this._lodPlanes.length;t++){const n=Math.sqrt(this._sigmas[t]*this._sigmas[t]-this._sigmas[t-1]*this._sigmas[t-1]),r=sy[(t-1)%sy.length];this._blur(e,t-1,t,n,r)}t.autoClear=n}_blur(e,t,n,r,i){const a=this._pingPongRenderTarget;this._halfBlur(e,a,t,n,r,"latitudinal",i),this._halfBlur(a,e,n,n,r,"longitudinal",i)}_halfBlur(e,t,n,r,i,a,s){const o=this._renderer,l=this._blurMaterial;"latitudinal"!==a&&"longitudinal"!==a&&console.error("blur direction must be either latitudinal or longitudinal!");const c=new _v(this._lodPlanes[r],l),u=l.uniforms,h=this._sizeLods[n]-1,f=isFinite(i)?Math.PI/(2*h):2*Math.PI/39,d=i/f,p=isFinite(i)?1+Math.floor(3*d):20;p>20&&console.warn(`sigmaRadians, ${i}, is too large and will clip, as it requested ${p} samples when the maximum is set to 20`);const m=[];let g=0;for(let e=0;e<20;++e){const t=e/d,n=Math.exp(-t*t/2);m.push(n),0===e?g+=n:e<p&&(g+=2*n)}for(let e=0;e<m.length;e++)m[e]=m[e]/g;u.envMap.value=e.texture,u.samples.value=p,u.weights.value=m,u.latitudinal.value="latitudinal"===a,s&&(u.poleAxis.value=s);const{_lodMax:v}=this;u.dTheta.value=f,u.mipInt.value=v-n;const y=this._sizeLods[r];cy(t,3*y*(r>v-4?r-v+4:0),4*(this._cubeSize-y),3*y,2*y),o.setRenderTarget(t),o.render(c,ty)}}function ly(e,t,n){const r=new Tm(e,t,n);return r.texture.mapping=lp,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function cy(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function uy(){return new Av({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function hy(){return new Av({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function fy(e){let t=new WeakMap,n=null;function r(e){const n=e.target;n.removeEventListener("dispose",r);const i=t.get(n);void 0!==i&&(t.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture){const a=i.mapping,s=303===a||304===a,o=a===sp||a===op;if(s||o){if(i.isRenderTargetTexture&&!0===i.needsPMREMUpdate){i.needsPMREMUpdate=!1;let r=t.get(i);return null===n&&(n=new oy(e)),r=s?n.fromEquirectangular(i,r):n.fromCubemap(i,r),t.set(i,r),r.texture}if(t.has(i))return t.get(i).texture;{const a=i.image;if(s&&a&&a.height>0||o&&a&&function(e){let t=0;for(let n=0;n<6;n++)void 0!==e[n]&&t++;return 6===t}(a)){null===n&&(n=new oy(e));const a=s?n.fromEquirectangular(i):n.fromCubemap(i);return t.set(i,a),i.addEventListener("dispose",r),a.texture}return null}}}return i},dispose:function(){t=new WeakMap,null!==n&&(n.dispose(),n=null)}}}function dy(e){const t={};function n(n){if(void 0!==t[n])return t[n];let r;switch(n){case"WEBGL_depth_texture":r=e.getExtension("WEBGL_depth_texture")||e.getExtension("MOZ_WEBGL_depth_texture")||e.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":r=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":r=e.getExtension("WEBGL_compressed_texture_s3tc")||e.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":r=e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:r=e.getExtension(n)}return t[n]=r,r}return{has:function(e){return null!==n(e)},init:function(e){e.isWebGL2?n("EXT_color_buffer_float"):(n("WEBGL_depth_texture"),n("OES_texture_float"),n("OES_texture_half_float"),n("OES_texture_half_float_linear"),n("OES_standard_derivatives"),n("OES_element_index_uint"),n("OES_vertex_array_object"),n("ANGLE_instanced_arrays")),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture")},get:function(e){const t=n(e);return null===t&&console.warn("THREE.WebGLRenderer: "+e+" extension not supported."),t}}}function py(e,t,n,r){const i={},a=new WeakMap;function s(e){const o=e.target;null!==o.index&&t.remove(o.index);for(const e in o.attributes)t.remove(o.attributes[e]);o.removeEventListener("dispose",s),delete i[o.id];const l=a.get(o);l&&(t.remove(l),a.delete(o)),r.releaseStatesOfGeometry(o),!0===o.isInstancedBufferGeometry&&delete o._maxInstanceCount,n.memory.geometries--}function o(e){const n=[],r=e.index,i=e.attributes.position;let s=0;if(null!==r){const e=r.array;s=r.version;for(let t=0,r=e.length;t<r;t+=3){const r=e[t+0],i=e[t+1],a=e[t+2];n.push(r,i,i,a,a,r)}}else{const e=i.array;s=i.version;for(let t=0,r=e.length/3-1;t<r;t+=3){const e=t+0,r=t+1,i=t+2;n.push(e,r,r,i,i,e)}}const o=new(rm(n)?$g:qg)(n,1);o.version=s;const l=a.get(e);l&&t.remove(l),a.set(e,o)}return{get:function(e,t){return!0===i[t.id]||(t.addEventListener("dispose",s),i[t.id]=!0,n.memory.geometries++),t},update:function(e){const n=e.attributes;for(const e in n)t.update(n[e],34962);const r=e.morphAttributes;for(const e in r){const n=r[e];for(let e=0,r=n.length;e<r;e++)t.update(n[e],34962)}},getWireframeAttribute:function(e){const t=a.get(e);if(t){const n=e.index;null!==n&&t.version<n.version&&o(e)}else o(e);return a.get(e)}}}function my(e,t,n,r){const i=r.isWebGL2;let a,s,o;this.setMode=function(e){a=e},this.setIndex=function(e){s=e.type,o=e.bytesPerElement},this.render=function(t,r){e.drawElements(a,r,s,t*o),n.update(r,a,1)},this.renderInstances=function(r,l,c){if(0===c)return;let u,h;if(i)u=e,h="drawElementsInstanced";else if(u=t.get("ANGLE_instanced_arrays"),h="drawElementsInstancedANGLE",null===u)return void console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");u[h](a,l,s,r*o,c),n.update(l,a,c)}}function gy(e){const t={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:t,programs:null,autoReset:!0,reset:function(){t.frame++,t.calls=0,t.triangles=0,t.points=0,t.lines=0},update:function(e,n,r){switch(t.calls++,n){case 4:t.triangles+=r*(e/3);break;case 1:t.lines+=r*(e/2);break;case 3:t.lines+=r*(e-1);break;case 2:t.lines+=r*e;break;case 0:t.points+=r*e;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",n)}}}}function vy(e,t){return e[0]-t[0]}function yy(e,t){return Math.abs(t[1])-Math.abs(e[1])}function by(e,t){let n=1;const r=t.isInterleavedBufferAttribute?t.data.array:t.array;r instanceof Int8Array?n=127:r instanceof Int16Array?n=32767:r instanceof Int32Array?n=2147483647:console.error("THREE.WebGLMorphtargets: Unsupported morph attribute data type: ",r),e.divideScalar(n)}function xy(e,t,n){const r={},i=new Float32Array(8),a=new WeakMap,s=new wm,o=[];for(let e=0;e<8;e++)o[e]=[e,0];return{update:function(l,c,u,h){const f=l.morphTargetInfluences;if(!0===t.isWebGL2){const r=c.morphAttributes.position||c.morphAttributes.normal||c.morphAttributes.color,i=void 0!==r?r.length:0;let o=a.get(c);if(void 0===o||o.count!==i){void 0!==o&&o.texture.dispose();const e=void 0!==c.morphAttributes.position,n=void 0!==c.morphAttributes.normal,r=void 0!==c.morphAttributes.color,l=c.morphAttributes.position||[],u=c.morphAttributes.normal||[],h=c.morphAttributes.color||[];let f=0;!0===e&&(f=1),!0===n&&(f=2),!0===r&&(f=3);let d=c.attributes.position.count*f,p=1;d>t.maxTextureSize&&(p=Math.ceil(d/t.maxTextureSize),d=t.maxTextureSize);const m=new Float32Array(d*p*4*i),g=new Sm(m,d,p,i);g.type=yp,g.needsUpdate=!0;const v=4*f;for(let t=0;t<i;t++){const i=l[t],a=u[t],o=h[t],c=d*p*4*t;for(let t=0;t<i.count;t++){const l=t*v;!0===e&&(s.fromBufferAttribute(i,t),!0===i.normalized&&by(s,i),m[c+l+0]=s.x,m[c+l+1]=s.y,m[c+l+2]=s.z,m[c+l+3]=0),!0===n&&(s.fromBufferAttribute(a,t),!0===a.normalized&&by(s,a),m[c+l+4]=s.x,m[c+l+5]=s.y,m[c+l+6]=s.z,m[c+l+7]=0),!0===r&&(s.fromBufferAttribute(o,t),!0===o.normalized&&by(s,o),m[c+l+8]=s.x,m[c+l+9]=s.y,m[c+l+10]=s.z,m[c+l+11]=4===o.itemSize?s.w:1)}}o={count:i,texture:g,size:new tm(d,p)},a.set(c,o),c.addEventListener("dispose",(function e(){g.dispose(),a.delete(c),c.removeEventListener("dispose",e)}))}let l=0;for(let e=0;e<f.length;e++)l+=f[e];const u=c.morphTargetsRelative?1:1-l;h.getUniforms().setValue(e,"morphTargetBaseInfluence",u),h.getUniforms().setValue(e,"morphTargetInfluences",f),h.getUniforms().setValue(e,"morphTargetsTexture",o.texture,n),h.getUniforms().setValue(e,"morphTargetsTextureSize",o.size)}else{const t=void 0===f?0:f.length;let n=r[c.id];if(void 0===n||n.length!==t){n=[];for(let e=0;e<t;e++)n[e]=[e,0];r[c.id]=n}for(let e=0;e<t;e++){const t=n[e];t[0]=e,t[1]=f[e]}n.sort(yy);for(let e=0;e<8;e++)e<t&&n[e][1]?(o[e][0]=n[e][0],o[e][1]=n[e][1]):(o[e][0]=Number.MAX_SAFE_INTEGER,o[e][1]=0);o.sort(vy);const a=c.morphAttributes.position,s=c.morphAttributes.normal;let l=0;for(let e=0;e<8;e++){const t=o[e],n=t[0],r=t[1];n!==Number.MAX_SAFE_INTEGER&&r?(a&&c.getAttribute("morphTarget"+e)!==a[n]&&c.setAttribute("morphTarget"+e,a[n]),s&&c.getAttribute("morphNormal"+e)!==s[n]&&c.setAttribute("morphNormal"+e,s[n]),i[e]=r,l+=r):(a&&!0===c.hasAttribute("morphTarget"+e)&&c.deleteAttribute("morphTarget"+e),s&&!0===c.hasAttribute("morphNormal"+e)&&c.deleteAttribute("morphNormal"+e),i[e]=0)}const u=c.morphTargetsRelative?1:1-l;h.getUniforms().setValue(e,"morphTargetBaseInfluence",u),h.getUniforms().setValue(e,"morphTargetInfluences",i)}}}}function _y(e,t,n,r){let i=new WeakMap;function a(e){const t=e.target;t.removeEventListener("dispose",a),n.remove(t.instanceMatrix),null!==t.instanceColor&&n.remove(t.instanceColor)}return{update:function(e){const s=r.render.frame,o=e.geometry,l=t.get(e,o);return i.get(l)!==s&&(t.update(l),i.set(l,s)),e.isInstancedMesh&&(!1===e.hasEventListener("dispose",a)&&e.addEventListener("dispose",a),n.update(e.instanceMatrix,34962),null!==e.instanceColor&&n.update(e.instanceColor,34962)),l},dispose:function(){i=new WeakMap}}}const wy=new _m,Ty=new Sm,Sy=new Em,Ey=new Pv,My=[],Ay=[],Cy=new Float32Array(16),Ry=new Float32Array(9),Ly=new Float32Array(4);function ky(e,t,n){const r=e[0];if(r<=0||r>0)return e;const i=t*n;let a=My[i];if(void 0===a&&(a=new Float32Array(i),My[i]=a),0!==t){r.toArray(a,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(a,i)}return a}function Py(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Dy(e,t){for(let n=0,r=t.length;n<r;n++)e[n]=t[n]}function Oy(e,t){let n=Ay[t];void 0===n&&(n=new Int32Array(t),Ay[t]=n);for(let r=0;r!==t;++r)n[r]=e.allocateTextureUnit();return n}function Iy(e,t){const n=this.cache;n[0]!==t&&(e.uniform1f(this.addr,t),n[0]=t)}function Ny(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2f(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(Py(n,t))return;e.uniform2fv(this.addr,t),Dy(n,t)}}function Fy(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3f(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else if(void 0!==t.r)n[0]===t.r&&n[1]===t.g&&n[2]===t.b||(e.uniform3f(this.addr,t.r,t.g,t.b),n[0]=t.r,n[1]=t.g,n[2]=t.b);else{if(Py(n,t))return;e.uniform3fv(this.addr,t),Dy(n,t)}}function By(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4f(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(Py(n,t))return;e.uniform4fv(this.addr,t),Dy(n,t)}}function Uy(e,t){const n=this.cache,r=t.elements;if(void 0===r){if(Py(n,t))return;e.uniformMatrix2fv(this.addr,!1,t),Dy(n,t)}else{if(Py(n,r))return;Ly.set(r),e.uniformMatrix2fv(this.addr,!1,Ly),Dy(n,r)}}function zy(e,t){const n=this.cache,r=t.elements;if(void 0===r){if(Py(n,t))return;e.uniformMatrix3fv(this.addr,!1,t),Dy(n,t)}else{if(Py(n,r))return;Ry.set(r),e.uniformMatrix3fv(this.addr,!1,Ry),Dy(n,r)}}function Hy(e,t){const n=this.cache,r=t.elements;if(void 0===r){if(Py(n,t))return;e.uniformMatrix4fv(this.addr,!1,t),Dy(n,t)}else{if(Py(n,r))return;Cy.set(r),e.uniformMatrix4fv(this.addr,!1,Cy),Dy(n,r)}}function Vy(e,t){const n=this.cache;n[0]!==t&&(e.uniform1i(this.addr,t),n[0]=t)}function Gy(e,t){const n=this.cache;Py(n,t)||(e.uniform2iv(this.addr,t),Dy(n,t))}function Wy(e,t){const n=this.cache;Py(n,t)||(e.uniform3iv(this.addr,t),Dy(n,t))}function jy(e,t){const n=this.cache;Py(n,t)||(e.uniform4iv(this.addr,t),Dy(n,t))}function Xy(e,t){const n=this.cache;n[0]!==t&&(e.uniform1ui(this.addr,t),n[0]=t)}function qy(e,t){const n=this.cache;Py(n,t)||(e.uniform2uiv(this.addr,t),Dy(n,t))}function $y(e,t){const n=this.cache;Py(n,t)||(e.uniform3uiv(this.addr,t),Dy(n,t))}function Yy(e,t){const n=this.cache;Py(n,t)||(e.uniform4uiv(this.addr,t),Dy(n,t))}function Zy(e,t,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTexture2D(t||wy,i)}function Jy(e,t,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTexture3D(t||Sy,i)}function Ky(e,t,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTextureCube(t||Ey,i)}function Qy(e,t,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTexture2DArray(t||Ty,i)}function eb(e,t){e.uniform1fv(this.addr,t)}function tb(e,t){const n=ky(t,this.size,2);e.uniform2fv(this.addr,n)}function nb(e,t){const n=ky(t,this.size,3);e.uniform3fv(this.addr,n)}function rb(e,t){const n=ky(t,this.size,4);e.uniform4fv(this.addr,n)}function ib(e,t){const n=ky(t,this.size,4);e.uniformMatrix2fv(this.addr,!1,n)}function ab(e,t){const n=ky(t,this.size,9);e.uniformMatrix3fv(this.addr,!1,n)}function sb(e,t){const n=ky(t,this.size,16);e.uniformMatrix4fv(this.addr,!1,n)}function ob(e,t){e.uniform1iv(this.addr,t)}function lb(e,t){e.uniform2iv(this.addr,t)}function cb(e,t){e.uniform3iv(this.addr,t)}function ub(e,t){e.uniform4iv(this.addr,t)}function hb(e,t){e.uniform1uiv(this.addr,t)}function fb(e,t){e.uniform2uiv(this.addr,t)}function db(e,t){e.uniform3uiv(this.addr,t)}function pb(e,t){e.uniform4uiv(this.addr,t)}function mb(e,t,n){const r=t.length,i=Oy(n,r);e.uniform1iv(this.addr,i);for(let e=0;e!==r;++e)n.setTexture2D(t[e]||wy,i[e])}function gb(e,t,n){const r=t.length,i=Oy(n,r);e.uniform1iv(this.addr,i);for(let e=0;e!==r;++e)n.setTexture3D(t[e]||Sy,i[e])}function vb(e,t,n){const r=t.length,i=Oy(n,r);e.uniform1iv(this.addr,i);for(let e=0;e!==r;++e)n.setTextureCube(t[e]||Ey,i[e])}function yb(e,t,n){const r=t.length,i=Oy(n,r);e.uniform1iv(this.addr,i);for(let e=0;e!==r;++e)n.setTexture2DArray(t[e]||Ty,i[e])}function bb(e,t,n){this.id=e,this.addr=n,this.cache=[],this.setValue=function(e){switch(e){case 5126:return Iy;case 35664:return Ny;case 35665:return Fy;case 35666:return By;case 35674:return Uy;case 35675:return zy;case 35676:return Hy;case 5124:case 35670:return Vy;case 35667:case 35671:return Gy;case 35668:case 35672:return Wy;case 35669:case 35673:return jy;case 5125:return Xy;case 36294:return qy;case 36295:return $y;case 36296:return Yy;case 35678:case 36198:case 36298:case 36306:case 35682:return Zy;case 35679:case 36299:case 36307:return Jy;case 35680:case 36300:case 36308:case 36293:return Ky;case 36289:case 36303:case 36311:case 36292:return Qy}}(t.type)}function xb(e,t,n){this.id=e,this.addr=n,this.cache=[],this.size=t.size,this.setValue=function(e){switch(e){case 5126:return eb;case 35664:return tb;case 35665:return nb;case 35666:return rb;case 35674:return ib;case 35675:return ab;case 35676:return sb;case 5124:case 35670:return ob;case 35667:case 35671:return lb;case 35668:case 35672:return cb;case 35669:case 35673:return ub;case 5125:return hb;case 36294:return fb;case 36295:return db;case 36296:return pb;case 35678:case 36198:case 36298:case 36306:case 35682:return mb;case 35679:case 36299:case 36307:return gb;case 35680:case 36300:case 36308:case 36293:return vb;case 36289:case 36303:case 36311:case 36292:return yb}}(t.type)}function _b(e){this.id=e,this.seq=[],this.map={}}xb.prototype.updateCache=function(e){const t=this.cache;e instanceof Float32Array&&t.length!==e.length&&(this.cache=new Float32Array(e.length)),Dy(t,e)},_b.prototype.setValue=function(e,t,n){const r=this.seq;for(let i=0,a=r.length;i!==a;++i){const a=r[i];a.setValue(e,t[a.id],n)}};const wb=/(\w+)(\])?(\[|\.)?/g;function Tb(e,t){e.seq.push(t),e.map[t.id]=t}function Sb(e,t,n){const r=e.name,i=r.length;for(wb.lastIndex=0;;){const a=wb.exec(r),s=wb.lastIndex;let o=a[1];const l="]"===a[2],c=a[3];if(l&&(o|=0),void 0===c||"["===c&&s+2===i){Tb(n,void 0===c?new bb(o,e,t):new xb(o,e,t));break}{let e=n.map[o];void 0===e&&(e=new _b(o),Tb(n,e)),n=e}}}function Eb(e,t){this.seq=[],this.map={};const n=e.getProgramParameter(t,35718);for(let r=0;r<n;++r){const n=e.getActiveUniform(t,r);Sb(n,e.getUniformLocation(t,n.name),this)}}function Mb(e,t,n){const r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}Eb.prototype.setValue=function(e,t,n,r){const i=this.map[t];void 0!==i&&i.setValue(e,n,r)},Eb.prototype.setOptional=function(e,t,n){const r=t[n];void 0!==r&&this.setValue(e,n,r)},Eb.upload=function(e,t,n,r){for(let i=0,a=t.length;i!==a;++i){const a=t[i],s=n[a.id];!1!==s.needsUpdate&&a.setValue(e,s.value,r)}},Eb.seqWithValue=function(e,t){const n=[];for(let r=0,i=e.length;r!==i;++r){const i=e[r];i.id in t&&n.push(i)}return n};let Ab=0;function Cb(e,t,n){const r=e.getShaderParameter(t,35713),i=e.getShaderInfoLog(t).trim();if(r&&""===i)return"";const a=parseInt(/ERROR: 0:(\d+)/.exec(i)[1]);return n.toUpperCase()+"\n\n"+i+"\n\n"+function(e,t){const n=e.split("\n"),r=[],i=Math.max(t-6,0),a=Math.min(t+6,n.length);for(let e=i;e<a;e++)r.push(e+1+": "+n[e]);return r.join("\n")}(e.getShaderSource(t),a)}function Rb(e,t){const n=function(e){switch(e){case Op:return["Linear","( value )"];case Ip:return["sRGB","( value )"];default:return console.warn("THREE.WebGLProgram: Unsupported encoding:",e),["Linear","( value )"]}}(t);return"vec4 "+e+"( vec4 value ) { return LinearTo"+n[0]+n[1]+"; }"}function Lb(e,t){let n;switch(t){case 1:n="Linear";break;case 2:n="Reinhard";break;case 3:n="OptimizedCineon";break;case 4:n="ACESFilmic";break;case 5:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",t),n="Linear"}return"vec3 "+e+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function kb(e){return""!==e}function Pb(e,t){return e.replace(/NUM_DIR_LIGHTS/g,t.numDirLights).replace(/NUM_SPOT_LIGHTS/g,t.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,t.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,t.numPointLights).replace(/NUM_HEMI_LIGHTS/g,t.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,t.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS/g,t.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,t.numPointLightShadows)}function Db(e,t){return e.replace(/NUM_CLIPPING_PLANES/g,t.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,t.numClippingPlanes-t.numClipIntersection)}const Ob=/^[ \t]*#include +<([\w\d./]+)>/gm;function Ib(e){return e.replace(Ob,Nb)}function Nb(e,t){const n=Wv[t];if(void 0===n)throw new Error("Can not resolve #include <"+t+">");return Ib(n)}const Fb=/#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g,Bb=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Ub(e){return e.replace(Bb,Hb).replace(Fb,zb)}function zb(e,t,n,r){return console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead."),Hb(0,t,n,r)}function Hb(e,t,n,r){let i="";for(let e=parseInt(t);e<parseInt(n);e++)i+=r.replace(/\[\s*i\s*\]/g,"[ "+e+" ]").replace(/UNROLLED_LOOP_INDEX/g,e);return i}function Vb(e){let t="precision "+e.precision+" float;\nprecision "+e.precision+" int;";return"highp"===e.precision?t+="\n#define HIGH_PRECISION":"mediump"===e.precision?t+="\n#define MEDIUM_PRECISION":"lowp"===e.precision&&(t+="\n#define LOW_PRECISION"),t}function Gb(e,t,n,r){const i=e.getContext(),a=n.defines;let s=n.vertexShader,o=n.fragmentShader;const l=function(e){let t="SHADOWMAP_TYPE_BASIC";return 1===e.shadowMapType?t="SHADOWMAP_TYPE_PCF":2===e.shadowMapType?t="SHADOWMAP_TYPE_PCF_SOFT":3===e.shadowMapType&&(t="SHADOWMAP_TYPE_VSM"),t}(n),c=function(e){let t="ENVMAP_TYPE_CUBE";if(e.envMap)switch(e.envMapMode){case sp:case op:t="ENVMAP_TYPE_CUBE";break;case lp:t="ENVMAP_TYPE_CUBE_UV"}return t}(n),u=function(e){let t="ENVMAP_MODE_REFLECTION";return e.envMap&&e.envMapMode===op&&(t="ENVMAP_MODE_REFRACTION"),t}(n),h=function(e){let t="ENVMAP_BLENDING_NONE";if(e.envMap)switch(e.combine){case 0:t="ENVMAP_BLENDING_MULTIPLY";break;case 1:t="ENVMAP_BLENDING_MIX";break;case 2:t="ENVMAP_BLENDING_ADD"}return t}(n),f=function(e){const t=e.envMapCubeUVHeight;if(null===t)return null;const n=Math.log2(t/32+1)+3,r=1/t;return{texelWidth:1/(3*Math.max(Math.pow(2,n),112)),texelHeight:r,maxMip:n}}(n),d=n.isWebGL2?"":function(e){return[e.extensionDerivatives||e.envMapCubeUVHeight||e.bumpMap||e.tangentSpaceNormalMap||e.clearcoatNormalMap||e.flatShading||"physical"===e.shaderID?"#extension GL_OES_standard_derivatives : enable":"",(e.extensionFragDepth||e.logarithmicDepthBuffer)&&e.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",e.extensionDrawBuffers&&e.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(e.extensionShaderTextureLOD||e.envMap||e.transmission)&&e.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(kb).join("\n")}(n),p=function(e){const t=[];for(const n in e){const r=e[n];!1!==r&&t.push("#define "+n+" "+r)}return t.join("\n")}(a),m=i.createProgram();let g,v,y=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?(g=[p].filter(kb).join("\n"),g.length>0&&(g+="\n"),v=[d,p].filter(kb).join("\n"),v.length>0&&(v+="\n")):(g=[Vb(n),"#define SHADER_NAME "+n.shaderName,p,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define MAX_BONES "+n.maxBones,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.displacementMap&&n.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.useVertexTexture?"#define BONE_TEXTURE":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors&&n.isWebGL2?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(kb).join("\n"),v=[d,Vb(n),"#define SHADER_NAME "+n.shaderName,p,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+c:"",n.envMap?"#define "+u:"",n.envMap?"#define "+h:"",f?"#define CUBEUV_TEXEL_WIDTH "+f.texelWidth:"",f?"#define CUBEUV_TEXEL_HEIGHT "+f.texelHeight:"",f?"#define CUBEUV_MAX_MIP "+f.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",0!==n.toneMapping?"#define TONE_MAPPING":"",0!==n.toneMapping?Wv.tonemapping_pars_fragment:"",0!==n.toneMapping?Lb("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",Wv.encodings_pars_fragment,Rb("linearToOutputTexel",n.outputEncoding),n.depthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(kb).join("\n")),s=Ib(s),s=Pb(s,n),s=Db(s,n),o=Ib(o),o=Pb(o,n),o=Db(o,n),s=Ub(s),o=Ub(o),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(y="#version 300 es\n",g=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+g,v=["#define varying in",n.glslVersion===Hp?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===Hp?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+v);const b=y+v+o,x=Mb(i,35633,y+g+s),_=Mb(i,35632,b);if(i.attachShader(m,x),i.attachShader(m,_),void 0!==n.index0AttributeName?i.bindAttribLocation(m,0,n.index0AttributeName):!0===n.morphTargets&&i.bindAttribLocation(m,0,"position"),i.linkProgram(m),e.debug.checkShaderErrors){const e=i.getProgramInfoLog(m).trim(),t=i.getShaderInfoLog(x).trim(),n=i.getShaderInfoLog(_).trim();let r=!0,a=!0;if(!1===i.getProgramParameter(m,35714)){r=!1;const t=Cb(i,x,"vertex"),n=Cb(i,_,"fragment");console.error("THREE.WebGLProgram: Shader Error "+i.getError()+" - VALIDATE_STATUS "+i.getProgramParameter(m,35715)+"\n\nProgram Info Log: "+e+"\n"+t+"\n"+n)}else""!==e?console.warn("THREE.WebGLProgram: Program Info Log:",e):""!==t&&""!==n||(a=!1);a&&(this.diagnostics={runnable:r,programLog:e,vertexShader:{log:t,prefix:g},fragmentShader:{log:n,prefix:v}})}let w,T;return i.deleteShader(x),i.deleteShader(_),this.getUniforms=function(){return void 0===w&&(w=new Eb(i,m)),w},this.getAttributes=function(){return void 0===T&&(T=function(e,t){const n={},r=e.getProgramParameter(t,35721);for(let i=0;i<r;i++){const r=e.getActiveAttrib(t,i),a=r.name;let s=1;35674===r.type&&(s=2),35675===r.type&&(s=3),35676===r.type&&(s=4),n[a]={type:r.type,location:e.getAttribLocation(t,a),locationSize:s}}return n}(i,m)),T},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(m),this.program=void 0},this.name=n.shaderName,this.id=Ab++,this.cacheKey=t,this.usedTimes=1,this.program=m,this.vertexShader=x,this.fragmentShader=_,this}let Wb=0;class jb{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,n=e.fragmentShader,r=this._getShaderStage(t),i=this._getShaderStage(n),a=this._getShaderCacheForMaterial(e);return!1===a.has(r)&&(a.add(r),r.usedTimes++),!1===a.has(i)&&(a.add(i),i.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const e of t)e.usedTimes--,0===e.usedTimes&&this.shaderCache.delete(e.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;return!1===t.has(e)&&t.set(e,new Set),t.get(e)}_getShaderStage(e){const t=this.shaderCache;if(!1===t.has(e)){const n=new Xb(e);t.set(e,n)}return t.get(e)}}class Xb{constructor(e){this.id=Wb++,this.code=e,this.usedTimes=0}}function qb(e,t,n,r,i,a,s){const o=new mg,l=new jb,c=[],u=i.isWebGL2,h=i.logarithmicDepthBuffer,f=i.floatVertexTextures,d=i.maxVertexUniforms,p=i.vertexTextures;let m=i.precision;const g={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};return{getParameters:function(a,o,c,v,y){const b=v.fog,x=y.geometry,_=a.isMeshStandardMaterial?v.environment:null,w=(a.isMeshStandardMaterial?n:t).get(a.envMap||_),T=w&&w.mapping===lp?w.image.height:null,S=g[a.type],E=y.isSkinnedMesh?function(e){const t=e.skeleton.bones;if(f)return 1024;{const e=d,n=Math.floor((e-20)/4),r=Math.min(n,t.length);return r<t.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+t.length+" bones. This GPU supports "+r+"."),0):r}}(y):0;null!==a.precision&&(m=i.getMaxPrecision(a.precision),m!==a.precision&&console.warn("THREE.WebGLProgram.getParameters:",a.precision,"not supported, using",m,"instead."));const M=x.morphAttributes.position||x.morphAttributes.normal||x.morphAttributes.color,A=void 0!==M?M.length:0;let C,R,L,k,P=0;if(void 0!==x.morphAttributes.position&&(P=1),void 0!==x.morphAttributes.normal&&(P=2),void 0!==x.morphAttributes.color&&(P=3),S){const e=Xv[S];C=e.vertexShader,R=e.fragmentShader}else C=a.vertexShader,R=a.fragmentShader,l.update(a),L=l.getVertexShaderID(a),k=l.getFragmentShaderID(a);const D=e.getRenderTarget(),O=a.alphaTest>0,I=a.clearcoat>0;return{isWebGL2:u,shaderID:S,shaderName:a.type,vertexShader:C,fragmentShader:R,defines:a.defines,customVertexShaderID:L,customFragmentShaderID:k,isRawShaderMaterial:!0===a.isRawShaderMaterial,glslVersion:a.glslVersion,precision:m,instancing:!0===y.isInstancedMesh,instancingColor:!0===y.isInstancedMesh&&null!==y.instanceColor,supportsVertexTextures:p,outputEncoding:null===D?e.outputEncoding:!0===D.isXRRenderTarget?D.texture.encoding:Op,map:!!a.map,matcap:!!a.matcap,envMap:!!w,envMapMode:w&&w.mapping,envMapCubeUVHeight:T,lightMap:!!a.lightMap,aoMap:!!a.aoMap,emissiveMap:!!a.emissiveMap,bumpMap:!!a.bumpMap,normalMap:!!a.normalMap,objectSpaceNormalMap:1===a.normalMapType,tangentSpaceNormalMap:0===a.normalMapType,decodeVideoTexture:!!a.map&&!0===a.map.isVideoTexture&&a.map.encoding===Ip,clearcoat:I,clearcoatMap:I&&!!a.clearcoatMap,clearcoatRoughnessMap:I&&!!a.clearcoatRoughnessMap,clearcoatNormalMap:I&&!!a.clearcoatNormalMap,displacementMap:!!a.displacementMap,roughnessMap:!!a.roughnessMap,metalnessMap:!!a.metalnessMap,specularMap:!!a.specularMap,specularIntensityMap:!!a.specularIntensityMap,specularColorMap:!!a.specularColorMap,opaque:!1===a.transparent&&1===a.blending,alphaMap:!!a.alphaMap,alphaTest:O,gradientMap:!!a.gradientMap,sheen:a.sheen>0,sheenColorMap:!!a.sheenColorMap,sheenRoughnessMap:!!a.sheenRoughnessMap,transmission:a.transmission>0,transmissionMap:!!a.transmissionMap,thicknessMap:!!a.thicknessMap,combine:a.combine,vertexTangents:!!a.normalMap&&!!x.attributes.tangent,vertexColors:a.vertexColors,vertexAlphas:!0===a.vertexColors&&!!x.attributes.color&&4===x.attributes.color.itemSize,vertexUvs:!!(a.map||a.bumpMap||a.normalMap||a.specularMap||a.alphaMap||a.emissiveMap||a.roughnessMap||a.metalnessMap||a.clearcoatMap||a.clearcoatRoughnessMap||a.clearcoatNormalMap||a.displacementMap||a.transmissionMap||a.thicknessMap||a.specularIntensityMap||a.specularColorMap||a.sheenColorMap||a.sheenRoughnessMap),uvsVertexOnly:!(a.map||a.bumpMap||a.normalMap||a.specularMap||a.alphaMap||a.emissiveMap||a.roughnessMap||a.metalnessMap||a.clearcoatNormalMap||a.transmission>0||a.transmissionMap||a.thicknessMap||a.specularIntensityMap||a.specularColorMap||a.sheen>0||a.sheenColorMap||a.sheenRoughnessMap||!a.displacementMap),fog:!!b,useFog:a.fog,fogExp2:b&&b.isFogExp2,flatShading:!!a.flatShading,sizeAttenuation:a.sizeAttenuation,logarithmicDepthBuffer:h,skinning:!0===y.isSkinnedMesh&&E>0,maxBones:E,useVertexTexture:f,morphTargets:void 0!==x.morphAttributes.position,morphNormals:void 0!==x.morphAttributes.normal,morphColors:void 0!==x.morphAttributes.color,morphTargetsCount:A,morphTextureStride:P,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numClippingPlanes:s.numPlanes,numClipIntersection:s.numIntersection,dithering:a.dithering,shadowMapEnabled:e.shadowMap.enabled&&c.length>0,shadowMapType:e.shadowMap.type,toneMapping:a.toneMapped?e.toneMapping:0,physicallyCorrectLights:e.physicallyCorrectLights,premultipliedAlpha:a.premultipliedAlpha,doubleSided:2===a.side,flipSided:1===a.side,depthPacking:void 0!==a.depthPacking&&a.depthPacking,index0AttributeName:a.index0AttributeName,extensionDerivatives:a.extensions&&a.extensions.derivatives,extensionFragDepth:a.extensions&&a.extensions.fragDepth,extensionDrawBuffers:a.extensions&&a.extensions.drawBuffers,extensionShaderTextureLOD:a.extensions&&a.extensions.shaderTextureLOD,rendererExtensionFragDepth:u||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:u||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:u||r.has("EXT_shader_texture_lod"),customProgramCacheKey:a.customProgramCacheKey()}},getProgramCacheKey:function(t){const n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),void 0!==t.defines)for(const e in t.defines)n.push(e),n.push(t.defines[e]);return!1===t.isRawShaderMaterial&&(function(e,t){e.push(t.precision),e.push(t.outputEncoding),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.combine),e.push(t.vertexUvs),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.maxBones),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection)}(n,t),function(e,t){o.disableAll(),t.isWebGL2&&o.enable(0),t.supportsVertexTextures&&o.enable(1),t.instancing&&o.enable(2),t.instancingColor&&o.enable(3),t.map&&o.enable(4),t.matcap&&o.enable(5),t.envMap&&o.enable(6),t.lightMap&&o.enable(7),t.aoMap&&o.enable(8),t.emissiveMap&&o.enable(9),t.bumpMap&&o.enable(10),t.normalMap&&o.enable(11),t.objectSpaceNormalMap&&o.enable(12),t.tangentSpaceNormalMap&&o.enable(13),t.clearcoat&&o.enable(14),t.clearcoatMap&&o.enable(15),t.clearcoatRoughnessMap&&o.enable(16),t.clearcoatNormalMap&&o.enable(17),t.displacementMap&&o.enable(18),t.specularMap&&o.enable(19),t.roughnessMap&&o.enable(20),t.metalnessMap&&o.enable(21),t.gradientMap&&o.enable(22),t.alphaMap&&o.enable(23),t.alphaTest&&o.enable(24),t.vertexColors&&o.enable(25),t.vertexAlphas&&o.enable(26),t.vertexUvs&&o.enable(27),t.vertexTangents&&o.enable(28),t.uvsVertexOnly&&o.enable(29),t.fog&&o.enable(30),e.push(o.mask),o.disableAll(),t.useFog&&o.enable(0),t.flatShading&&o.enable(1),t.logarithmicDepthBuffer&&o.enable(2),t.skinning&&o.enable(3),t.useVertexTexture&&o.enable(4),t.morphTargets&&o.enable(5),t.morphNormals&&o.enable(6),t.morphColors&&o.enable(7),t.premultipliedAlpha&&o.enable(8),t.shadowMapEnabled&&o.enable(9),t.physicallyCorrectLights&&o.enable(10),t.doubleSided&&o.enable(11),t.flipSided&&o.enable(12),t.depthPacking&&o.enable(13),t.dithering&&o.enable(14),t.specularIntensityMap&&o.enable(15),t.specularColorMap&&o.enable(16),t.transmission&&o.enable(17),t.transmissionMap&&o.enable(18),t.thicknessMap&&o.enable(19),t.sheen&&o.enable(20),t.sheenColorMap&&o.enable(21),t.sheenRoughnessMap&&o.enable(22),t.decodeVideoTexture&&o.enable(23),t.opaque&&o.enable(24),e.push(o.mask)}(n,t),n.push(e.outputEncoding)),n.push(t.customProgramCacheKey),n.join()},getUniforms:function(e){const t=g[e.type];let n;if(t){const e=Xv[t];n=Mv.clone(e.uniforms)}else n=e.uniforms;return n},acquireProgram:function(t,n){let r;for(let e=0,t=c.length;e<t;e++){const t=c[e];if(t.cacheKey===n){r=t,++r.usedTimes;break}}return void 0===r&&(r=new Gb(e,n,t,a),c.push(r)),r},releaseProgram:function(e){if(0==--e.usedTimes){const t=c.indexOf(e);c[t]=c[c.length-1],c.pop(),e.destroy()}},releaseShaderCache:function(e){l.remove(e)},programs:c,dispose:function(){l.dispose()}}}function $b(){let e=new WeakMap;return{get:function(t){let n=e.get(t);return void 0===n&&(n={},e.set(t,n)),n},remove:function(t){e.delete(t)},update:function(t,n,r){e.get(t)[n]=r},dispose:function(){e=new WeakMap}}}function Yb(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.material.id!==t.material.id?e.material.id-t.material.id:e.z!==t.z?e.z-t.z:e.id-t.id}function Zb(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.z!==t.z?t.z-e.z:e.id-t.id}function Jb(){const e=[];let t=0;const n=[],r=[],i=[];function a(n,r,i,a,s,o){let l=e[t];return void 0===l?(l={id:n.id,object:n,geometry:r,material:i,groupOrder:a,renderOrder:n.renderOrder,z:s,group:o},e[t]=l):(l.id=n.id,l.object=n,l.geometry=r,l.material=i,l.groupOrder=a,l.renderOrder=n.renderOrder,l.z=s,l.group=o),t++,l}return{opaque:n,transmissive:r,transparent:i,init:function(){t=0,n.length=0,r.length=0,i.length=0},push:function(e,t,s,o,l,c){const u=a(e,t,s,o,l,c);s.transmission>0?r.push(u):!0===s.transparent?i.push(u):n.push(u)},unshift:function(e,t,s,o,l,c){const u=a(e,t,s,o,l,c);s.transmission>0?r.unshift(u):!0===s.transparent?i.unshift(u):n.unshift(u)},finish:function(){for(let n=t,r=e.length;n<r;n++){const t=e[n];if(null===t.id)break;t.id=null,t.object=null,t.geometry=null,t.material=null,t.group=null}},sort:function(e,t){n.length>1&&n.sort(e||Yb),r.length>1&&r.sort(t||Zb),i.length>1&&i.sort(t||Zb)}}}function Kb(){let e=new WeakMap;return{get:function(t,n){let r;return!1===e.has(t)?(r=new Jb,e.set(t,[r])):n>=e.get(t).length?(r=new Jb,e.get(t).push(r)):r=e.get(t)[n],r},dispose:function(){e=new WeakMap}}}function Qb(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":n={direction:new Am,color:new mm};break;case"SpotLight":n={position:new Am,direction:new Am,color:new mm,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new Am,color:new mm,distance:0,decay:0};break;case"HemisphereLight":n={direction:new Am,skyColor:new mm,groundColor:new mm};break;case"RectAreaLight":n={color:new mm,position:new Am,halfWidth:new Am,halfHeight:new Am}}return e[t.id]=n,n}}}let ex=0;function tx(e,t){return(t.castShadow?1:0)-(e.castShadow?1:0)}function nx(e,t){const n=new Qb,r=function(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new tm};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new tm,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}}(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadow:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]};for(let e=0;e<9;e++)i.probe.push(new Am);const a=new Am,s=new ig,o=new ig;return{setup:function(a,s){let o=0,l=0,c=0;for(let e=0;e<9;e++)i.probe[e].set(0,0,0);let u=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0;a.sort(tx);const y=!0!==s?Math.PI:1;for(let e=0,t=a.length;e<t;e++){const t=a[e],s=t.color,b=t.intensity,x=t.distance,_=t.shadow&&t.shadow.map?t.shadow.map.texture:null;if(t.isAmbientLight)o+=s.r*b*y,l+=s.g*b*y,c+=s.b*b*y;else if(t.isLightProbe)for(let e=0;e<9;e++)i.probe[e].addScaledVector(t.sh.coefficients[e],b);else if(t.isDirectionalLight){const e=n.get(t);if(e.color.copy(t.color).multiplyScalar(t.intensity*y),t.castShadow){const e=t.shadow,n=r.get(t);n.shadowBias=e.bias,n.shadowNormalBias=e.normalBias,n.shadowRadius=e.radius,n.shadowMapSize=e.mapSize,i.directionalShadow[u]=n,i.directionalShadowMap[u]=_,i.directionalShadowMatrix[u]=t.shadow.matrix,m++}i.directional[u]=e,u++}else if(t.isSpotLight){const e=n.get(t);if(e.position.setFromMatrixPosition(t.matrixWorld),e.color.copy(s).multiplyScalar(b*y),e.distance=x,e.coneCos=Math.cos(t.angle),e.penumbraCos=Math.cos(t.angle*(1-t.penumbra)),e.decay=t.decay,t.castShadow){const e=t.shadow,n=r.get(t);n.shadowBias=e.bias,n.shadowNormalBias=e.normalBias,n.shadowRadius=e.radius,n.shadowMapSize=e.mapSize,i.spotShadow[f]=n,i.spotShadowMap[f]=_,i.spotShadowMatrix[f]=t.shadow.matrix,v++}i.spot[f]=e,f++}else if(t.isRectAreaLight){const e=n.get(t);e.color.copy(s).multiplyScalar(b),e.halfWidth.set(.5*t.width,0,0),e.halfHeight.set(0,.5*t.height,0),i.rectArea[d]=e,d++}else if(t.isPointLight){const e=n.get(t);if(e.color.copy(t.color).multiplyScalar(t.intensity*y),e.distance=t.distance,e.decay=t.decay,t.castShadow){const e=t.shadow,n=r.get(t);n.shadowBias=e.bias,n.shadowNormalBias=e.normalBias,n.shadowRadius=e.radius,n.shadowMapSize=e.mapSize,n.shadowCameraNear=e.camera.near,n.shadowCameraFar=e.camera.far,i.pointShadow[h]=n,i.pointShadowMap[h]=_,i.pointShadowMatrix[h]=t.shadow.matrix,g++}i.point[h]=e,h++}else if(t.isHemisphereLight){const e=n.get(t);e.skyColor.copy(t.color).multiplyScalar(b*y),e.groundColor.copy(t.groundColor).multiplyScalar(b*y),i.hemi[p]=e,p++}}d>0&&(t.isWebGL2||!0===e.has("OES_texture_float_linear")?(i.rectAreaLTC1=jv.LTC_FLOAT_1,i.rectAreaLTC2=jv.LTC_FLOAT_2):!0===e.has("OES_texture_half_float_linear")?(i.rectAreaLTC1=jv.LTC_HALF_1,i.rectAreaLTC2=jv.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=o,i.ambient[1]=l,i.ambient[2]=c;const b=i.hash;b.directionalLength===u&&b.pointLength===h&&b.spotLength===f&&b.rectAreaLength===d&&b.hemiLength===p&&b.numDirectionalShadows===m&&b.numPointShadows===g&&b.numSpotShadows===v||(i.directional.length=u,i.spot.length=f,i.rectArea.length=d,i.point.length=h,i.hemi.length=p,i.directionalShadow.length=m,i.directionalShadowMap.length=m,i.pointShadow.length=g,i.pointShadowMap.length=g,i.spotShadow.length=v,i.spotShadowMap.length=v,i.directionalShadowMatrix.length=m,i.pointShadowMatrix.length=g,i.spotShadowMatrix.length=v,b.directionalLength=u,b.pointLength=h,b.spotLength=f,b.rectAreaLength=d,b.hemiLength=p,b.numDirectionalShadows=m,b.numPointShadows=g,b.numSpotShadows=v,i.version=ex++)},setupView:function(e,t){let n=0,r=0,l=0,c=0,u=0;const h=t.matrixWorldInverse;for(let t=0,f=e.length;t<f;t++){const f=e[t];if(f.isDirectionalLight){const e=i.directional[n];e.direction.setFromMatrixPosition(f.matrixWorld),a.setFromMatrixPosition(f.target.matrixWorld),e.direction.sub(a),e.direction.transformDirection(h),n++}else if(f.isSpotLight){const e=i.spot[l];e.position.setFromMatrixPosition(f.matrixWorld),e.position.applyMatrix4(h),e.direction.setFromMatrixPosition(f.matrixWorld),a.setFromMatrixPosition(f.target.matrixWorld),e.direction.sub(a),e.direction.transformDirection(h),l++}else if(f.isRectAreaLight){const e=i.rectArea[c];e.position.setFromMatrixPosition(f.matrixWorld),e.position.applyMatrix4(h),o.identity(),s.copy(f.matrixWorld),s.premultiply(h),o.extractRotation(s),e.halfWidth.set(.5*f.width,0,0),e.halfHeight.set(0,.5*f.height,0),e.halfWidth.applyMatrix4(o),e.halfHeight.applyMatrix4(o),c++}else if(f.isPointLight){const e=i.point[r];e.position.setFromMatrixPosition(f.matrixWorld),e.position.applyMatrix4(h),r++}else if(f.isHemisphereLight){const e=i.hemi[u];e.direction.setFromMatrixPosition(f.matrixWorld),e.direction.transformDirection(h),e.direction.normalize(),u++}}},state:i}}function rx(e,t){const n=new nx(e,t),r=[],i=[];return{init:function(){r.length=0,i.length=0},state:{lightsArray:r,shadowsArray:i,lights:n},setupLights:function(e){n.setup(r,e)},setupLightsView:function(e){n.setupView(r,e)},pushLight:function(e){r.push(e)},pushShadow:function(e){i.push(e)}}}function ix(e,t){let n=new WeakMap;return{get:function(r,i=0){let a;return!1===n.has(r)?(a=new rx(e,t),n.set(r,[a])):i>=n.get(r).length?(a=new rx(e,t),n.get(r).push(a)):a=n.get(r)[i],a},dispose:function(){n=new WeakMap}}}class ax extends Vg{constructor(e){super(),this.type="MeshDepthMaterial",this.depthPacking=3200,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}ax.prototype.isMeshDepthMaterial=!0;class sx extends Vg{constructor(e){super(),this.type="MeshDistanceMaterial",this.referencePosition=new Am,this.nearDistance=1,this.farDistance=1e3,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.fog=!1,this.setValues(e)}copy(e){return super.copy(e),this.referencePosition.copy(e.referencePosition),this.nearDistance=e.nearDistance,this.farDistance=e.farDistance,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}function ox(e,t,n){let r=new zv;const i=new tm,a=new tm,s=new wm,o=new ax({depthPacking:3201}),l=new sx,c={},u=n.maxTextureSize,h={0:1,1:0,2:2},f=new Av({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new tm},radius:{value:4}},vertexShader:"void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}),d=f.clone();d.defines.HORIZONTAL_PASS=1;const p=new rv;p.setAttribute("position",new Xg(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const m=new _v(p,f),g=this;function v(n,r){const i=t.update(m);f.defines.VSM_SAMPLES!==n.blurSamples&&(f.defines.VSM_SAMPLES=n.blurSamples,d.defines.VSM_SAMPLES=n.blurSamples,f.needsUpdate=!0,d.needsUpdate=!0),f.uniforms.shadow_pass.value=n.map.texture,f.uniforms.resolution.value=n.mapSize,f.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(r,null,i,f,m,null),d.uniforms.shadow_pass.value=n.mapPass.texture,d.uniforms.resolution.value=n.mapSize,d.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(r,null,i,d,m,null)}function y(t,n,r,i,a,s){let u=null;const f=!0===r.isPointLight?t.customDistanceMaterial:t.customDepthMaterial;if(u=void 0!==f?f:!0===r.isPointLight?l:o,e.localClippingEnabled&&!0===n.clipShadows&&0!==n.clippingPlanes.length||n.displacementMap&&0!==n.displacementScale||n.alphaMap&&n.alphaTest>0){const e=u.uuid,t=n.uuid;let r=c[e];void 0===r&&(r={},c[e]=r);let i=r[t];void 0===i&&(i=u.clone(),r[t]=i),u=i}return u.visible=n.visible,u.wireframe=n.wireframe,u.side=3===s?null!==n.shadowSide?n.shadowSide:n.side:null!==n.shadowSide?n.shadowSide:h[n.side],u.alphaMap=n.alphaMap,u.alphaTest=n.alphaTest,u.clipShadows=n.clipShadows,u.clippingPlanes=n.clippingPlanes,u.clipIntersection=n.clipIntersection,u.displacementMap=n.displacementMap,u.displacementScale=n.displacementScale,u.displacementBias=n.displacementBias,u.wireframeLinewidth=n.wireframeLinewidth,u.linewidth=n.linewidth,!0===r.isPointLight&&!0===u.isMeshDistanceMaterial&&(u.referencePosition.setFromMatrixPosition(r.matrixWorld),u.nearDistance=i,u.farDistance=a),u}function b(n,i,a,s,o){if(!1===n.visible)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&3===o)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);const r=t.update(n),i=n.material;if(Array.isArray(i)){const t=r.groups;for(let l=0,c=t.length;l<c;l++){const c=t[l],u=i[c.materialIndex];if(u&&u.visible){const t=y(n,u,s,a.near,a.far,o);e.renderBufferDirect(a,null,r,t,n,c)}}}else if(i.visible){const t=y(n,i,s,a.near,a.far,o);e.renderBufferDirect(a,null,r,t,n,null)}}const l=n.children;for(let e=0,t=l.length;e<t;e++)b(l[e],i,a,s,o)}this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1,this.render=function(t,n,o){if(!1===g.enabled)return;if(!1===g.autoUpdate&&!1===g.needsUpdate)return;if(0===t.length)return;const l=e.getRenderTarget(),c=e.getActiveCubeFace(),h=e.getActiveMipmapLevel(),f=e.state;f.setBlending(0),f.buffers.color.setClear(1,1,1,1),f.buffers.depth.setTest(!0),f.setScissorTest(!1);for(let l=0,c=t.length;l<c;l++){const c=t[l],h=c.shadow;if(void 0===h){console.warn("THREE.WebGLShadowMap:",c,"has no shadow.");continue}if(!1===h.autoUpdate&&!1===h.needsUpdate)continue;i.copy(h.mapSize);const d=h.getFrameExtents();if(i.multiply(d),a.copy(h.mapSize),(i.x>u||i.y>u)&&(i.x>u&&(a.x=Math.floor(u/d.x),i.x=a.x*d.x,h.mapSize.x=a.x),i.y>u&&(a.y=Math.floor(u/d.y),i.y=a.y*d.y,h.mapSize.y=a.y)),null!==h.map||h.isPointLightShadow||3!==this.type||(h.map=new Tm(i.x,i.y),h.map.texture.name=c.name+".shadowMap",h.mapPass=new Tm(i.x,i.y),h.camera.updateProjectionMatrix()),null===h.map){const e={minFilter:fp,magFilter:fp,format:_p};h.map=new Tm(i.x,i.y,e),h.map.texture.name=c.name+".shadowMap",h.camera.updateProjectionMatrix()}e.setRenderTarget(h.map),e.clear();const p=h.getViewportCount();for(let e=0;e<p;e++){const t=h.getViewport(e);s.set(a.x*t.x,a.y*t.y,a.x*t.z,a.y*t.w),f.viewport(s),h.updateMatrices(c,e),r=h.getFrustum(),b(n,o,h.camera,c,this.type)}h.isPointLightShadow||3!==this.type||v(h,o),h.needsUpdate=!1}g.needsUpdate=!1,e.setRenderTarget(l,c,h)}}function lx(e,t,n){const r=n.isWebGL2,i=new function(){let t=!1;const n=new wm;let r=null;const i=new wm(0,0,0,0);return{setMask:function(n){r===n||t||(e.colorMask(n,n,n,n),r=n)},setLocked:function(e){t=e},setClear:function(t,r,a,s,o){!0===o&&(t*=s,r*=s,a*=s),n.set(t,r,a,s),!1===i.equals(n)&&(e.clearColor(t,r,a,s),i.copy(n))},reset:function(){t=!1,r=null,i.set(-1,0,0,0)}}},a=new function(){let t=!1,n=null,r=null,i=null;return{setTest:function(e){e?B(2929):U(2929)},setMask:function(r){n===r||t||(e.depthMask(r),n=r)},setFunc:function(t){if(r!==t){if(t)switch(t){case 0:e.depthFunc(512);break;case 1:e.depthFunc(519);break;case 2:e.depthFunc(513);break;case 3:default:e.depthFunc(515);break;case 4:e.depthFunc(514);break;case 5:e.depthFunc(518);break;case 6:e.depthFunc(516);break;case 7:e.depthFunc(517)}else e.depthFunc(515);r=t}},setLocked:function(e){t=e},setClear:function(t){i!==t&&(e.clearDepth(t),i=t)},reset:function(){t=!1,n=null,r=null,i=null}}},s=new function(){let t=!1,n=null,r=null,i=null,a=null,s=null,o=null,l=null,c=null;return{setTest:function(e){t||(e?B(2960):U(2960))},setMask:function(r){n===r||t||(e.stencilMask(r),n=r)},setFunc:function(t,n,s){r===t&&i===n&&a===s||(e.stencilFunc(t,n,s),r=t,i=n,a=s)},setOp:function(t,n,r){s===t&&o===n&&l===r||(e.stencilOp(t,n,r),s=t,o=n,l=r)},setLocked:function(e){t=e},setClear:function(t){c!==t&&(e.clearStencil(t),c=t)},reset:function(){t=!1,n=null,r=null,i=null,a=null,s=null,o=null,l=null,c=null}}};let o={},l={},c=new WeakMap,u=[],h=null,f=!1,d=null,p=null,m=null,g=null,v=null,y=null,b=null,x=!1,_=null,w=null,T=null,S=null,E=null;const M=e.getParameter(35661);let A=!1,C=0;const R=e.getParameter(7938);-1!==R.indexOf("WebGL")?(C=parseFloat(/^WebGL (\d)/.exec(R)[1]),A=C>=1):-1!==R.indexOf("OpenGL ES")&&(C=parseFloat(/^OpenGL ES (\d)/.exec(R)[1]),A=C>=2);let L=null,k={};const P=e.getParameter(3088),D=e.getParameter(2978),O=(new wm).fromArray(P),I=(new wm).fromArray(D);function N(t,n,r){const i=new Uint8Array(4),a=e.createTexture();e.bindTexture(t,a),e.texParameteri(t,10241,9728),e.texParameteri(t,10240,9728);for(let t=0;t<r;t++)e.texImage2D(n+t,0,6408,1,1,0,6408,5121,i);return a}const F={};function B(t){!0!==o[t]&&(e.enable(t),o[t]=!0)}function U(t){!1!==o[t]&&(e.disable(t),o[t]=!1)}F[3553]=N(3553,3553,1),F[34067]=N(34067,34069,6),i.setClear(0,0,0,1),a.setClear(1),s.setClear(0),B(2929),a.setFunc(3),G(!1),W(1),B(2884),V(0);const z={[ap]:32774,101:32778,102:32779};if(r)z[103]=32775,z[104]=32776;else{const e=t.get("EXT_blend_minmax");null!==e&&(z[103]=e.MIN_EXT,z[104]=e.MAX_EXT)}const H={200:0,201:1,202:768,204:770,210:776,208:774,206:772,203:769,205:771,209:775,207:773};function V(t,n,r,i,a,s,o,l){if(0!==t){if(!1===f&&(B(3042),f=!0),5===t)a=a||n,s=s||r,o=o||i,n===p&&a===v||(e.blendEquationSeparate(z[n],z[a]),p=n,v=a),r===m&&i===g&&s===y&&o===b||(e.blendFuncSeparate(H[r],H[i],H[s],H[o]),m=r,g=i,y=s,b=o),d=t,x=null;else if(t!==d||l!==x){if(p===ap&&v===ap||(e.blendEquation(32774),p=ap,v=ap),l)switch(t){case 1:e.blendFuncSeparate(1,771,1,771);break;case 2:e.blendFunc(1,1);break;case 3:e.blendFuncSeparate(0,769,0,1);break;case 4:e.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",t)}else switch(t){case 1:e.blendFuncSeparate(770,771,1,771);break;case 2:e.blendFunc(770,1);break;case 3:e.blendFuncSeparate(0,769,0,1);break;case 4:e.blendFunc(0,768);break;default:console.error("THREE.WebGLState: Invalid blending: ",t)}m=null,g=null,y=null,b=null,d=t,x=l}}else!0===f&&(U(3042),f=!1)}function G(t){_!==t&&(t?e.frontFace(2304):e.frontFace(2305),_=t)}function W(t){0!==t?(B(2884),t!==w&&(1===t?e.cullFace(1029):2===t?e.cullFace(1028):e.cullFace(1032))):U(2884),w=t}function j(t,n,r){t?(B(32823),S===n&&E===r||(e.polygonOffset(n,r),S=n,E=r)):U(32823)}function X(t){void 0===t&&(t=33984+M-1),L!==t&&(e.activeTexture(t),L=t)}return{buffers:{color:i,depth:a,stencil:s},enable:B,disable:U,bindFramebuffer:function(t,n){return l[t]!==n&&(e.bindFramebuffer(t,n),l[t]=n,r&&(36009===t&&(l[36160]=n),36160===t&&(l[36009]=n)),!0)},drawBuffers:function(r,i){let a=u,s=!1;if(r)if(a=c.get(i),void 0===a&&(a=[],c.set(i,a)),r.isWebGLMultipleRenderTargets){const e=r.texture;if(a.length!==e.length||36064!==a[0]){for(let t=0,n=e.length;t<n;t++)a[t]=36064+t;a.length=e.length,s=!0}}else 36064!==a[0]&&(a[0]=36064,s=!0);else 1029!==a[0]&&(a[0]=1029,s=!0);s&&(n.isWebGL2?e.drawBuffers(a):t.get("WEBGL_draw_buffers").drawBuffersWEBGL(a))},useProgram:function(t){return h!==t&&(e.useProgram(t),h=t,!0)},setBlending:V,setMaterial:function(e,t){2===e.side?U(2884):B(2884);let n=1===e.side;t&&(n=!n),G(n),1===e.blending&&!1===e.transparent?V(0):V(e.blending,e.blendEquation,e.blendSrc,e.blendDst,e.blendEquationAlpha,e.blendSrcAlpha,e.blendDstAlpha,e.premultipliedAlpha),a.setFunc(e.depthFunc),a.setTest(e.depthTest),a.setMask(e.depthWrite),i.setMask(e.colorWrite);const r=e.stencilWrite;s.setTest(r),r&&(s.setMask(e.stencilWriteMask),s.setFunc(e.stencilFunc,e.stencilRef,e.stencilFuncMask),s.setOp(e.stencilFail,e.stencilZFail,e.stencilZPass)),j(e.polygonOffset,e.polygonOffsetFactor,e.polygonOffsetUnits),!0===e.alphaToCoverage?B(32926):U(32926)},setFlipSided:G,setCullFace:W,setLineWidth:function(t){t!==T&&(A&&e.lineWidth(t),T=t)},setPolygonOffset:j,setScissorTest:function(e){e?B(3089):U(3089)},activeTexture:X,bindTexture:function(t,n){null===L&&X();let r=k[L];void 0===r&&(r={type:void 0,texture:void 0},k[L]=r),r.type===t&&r.texture===n||(e.bindTexture(t,n||F[t]),r.type=t,r.texture=n)},unbindTexture:function(){const t=k[L];void 0!==t&&void 0!==t.type&&(e.bindTexture(t.type,null),t.type=void 0,t.texture=void 0)},compressedTexImage2D:function(){try{e.compressedTexImage2D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texImage2D:function(){try{e.texImage2D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texImage3D:function(){try{e.texImage3D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texStorage2D:function(){try{e.texStorage2D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texStorage3D:function(){try{e.texStorage3D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texSubImage2D:function(){try{e.texSubImage2D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texSubImage3D:function(){try{e.texSubImage3D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},compressedTexSubImage2D:function(){try{e.compressedTexSubImage2D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},scissor:function(t){!1===O.equals(t)&&(e.scissor(t.x,t.y,t.z,t.w),O.copy(t))},viewport:function(t){!1===I.equals(t)&&(e.viewport(t.x,t.y,t.z,t.w),I.copy(t))},reset:function(){e.disable(3042),e.disable(2884),e.disable(2929),e.disable(32823),e.disable(3089),e.disable(2960),e.disable(32926),e.blendEquation(32774),e.blendFunc(1,0),e.blendFuncSeparate(1,0,1,0),e.colorMask(!0,!0,!0,!0),e.clearColor(0,0,0,0),e.depthMask(!0),e.depthFunc(513),e.clearDepth(1),e.stencilMask(4294967295),e.stencilFunc(519,0,4294967295),e.stencilOp(7680,7680,7680),e.clearStencil(0),e.cullFace(1029),e.frontFace(2305),e.polygonOffset(0,0),e.activeTexture(33984),e.bindFramebuffer(36160,null),!0===r&&(e.bindFramebuffer(36009,null),e.bindFramebuffer(36008,null)),e.useProgram(null),e.lineWidth(1),e.scissor(0,0,e.canvas.width,e.canvas.height),e.viewport(0,0,e.canvas.width,e.canvas.height),o={},L=null,k={},l={},c=new WeakMap,u=[],h=null,f=!1,d=null,p=null,m=null,g=null,v=null,y=null,b=null,x=!1,_=null,w=null,T=null,S=null,E=null,O.set(0,0,e.canvas.width,e.canvas.height),I.set(0,0,e.canvas.width,e.canvas.height),i.reset(),a.reset(),s.reset()}}}function cx(e,t,n,r,i,a,s){const o=i.isWebGL2,l=i.maxTextures,c=i.maxCubemapSize,u=i.maxTextureSize,h=i.maxSamples,f=t.has("WEBGL_multisampled_render_to_texture")?t.get("WEBGL_multisampled_render_to_texture"):null,d=/OculusBrowser/g.test(navigator.userAgent),p=new WeakMap;let m;const g=new WeakMap;let v=!1;try{v="undefined"!=typeof OffscreenCanvas&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch(e){}function y(e,t){return v?new OffscreenCanvas(e,t):im("canvas")}function b(e,t,n,r){let i=1;if((e.width>r||e.height>r)&&(i=r/Math.max(e.width,e.height)),i<1||!0===t){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){const r=t?Qp:Math.floor,a=r(i*e.width),s=r(i*e.height);void 0===m&&(m=y(a,s));const o=n?y(a,s):m;return o.width=a,o.height=s,o.getContext("2d").drawImage(e,0,0,a,s),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+e.width+"x"+e.height+") to ("+a+"x"+s+")."),o}return"data"in e&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+e.width+"x"+e.height+")."),e}return e}function x(e){return Kp(e.width)&&Kp(e.height)}function _(e,t){return e.generateMipmaps&&t&&e.minFilter!==fp&&e.minFilter!==dp}function w(t){e.generateMipmap(t)}function T(n,r,i,a,s=!1){if(!1===o)return r;if(null!==n){if(void 0!==e[n])return e[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}let l=r;return 6403===r&&(5126===i&&(l=33326),5131===i&&(l=33325),5121===i&&(l=33321)),33319===r&&(5126===i&&(l=33328),5131===i&&(l=33327),5121===i&&(l=33323)),6408===r&&(5126===i&&(l=34836),5131===i&&(l=34842),5121===i&&(l=a===Ip&&!1===s?35907:32856),32819===i&&(l=32854),32820===i&&(l=32855)),33325!==l&&33326!==l&&33327!==l&&33328!==l&&34842!==l&&34836!==l||t.get("EXT_color_buffer_float"),l}function S(e,t,n){return!0===_(e,n)||e.isFramebufferTexture&&e.minFilter!==fp&&e.minFilter!==dp?Math.log2(Math.max(t.width,t.height))+1:void 0!==e.mipmaps&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function E(e){return e===fp||1004===e||1005===e?9728:9729}function M(e){const t=e.target;t.removeEventListener("dispose",M),function(e){const t=r.get(e);if(void 0===t.__webglInit)return;const n=e.source,i=g.get(n);if(i){const r=i[t.__cacheKey];r.usedTimes--,0===r.usedTimes&&C(e),0===Object.keys(i).length&&g.delete(n)}r.remove(e)}(t),t.isVideoTexture&&p.delete(t)}function A(t){const n=t.target;n.removeEventListener("dispose",A),function(t){const n=t.texture,i=r.get(t),a=r.get(n);if(void 0!==a.__webglTexture&&(e.deleteTexture(a.__webglTexture),s.memory.textures--),t.depthTexture&&t.depthTexture.dispose(),t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++)e.deleteFramebuffer(i.__webglFramebuffer[t]),i.__webglDepthbuffer&&e.deleteRenderbuffer(i.__webglDepthbuffer[t]);else e.deleteFramebuffer(i.__webglFramebuffer),i.__webglDepthbuffer&&e.deleteRenderbuffer(i.__webglDepthbuffer),i.__webglMultisampledFramebuffer&&e.deleteFramebuffer(i.__webglMultisampledFramebuffer),i.__webglColorRenderbuffer&&e.deleteRenderbuffer(i.__webglColorRenderbuffer),i.__webglDepthRenderbuffer&&e.deleteRenderbuffer(i.__webglDepthRenderbuffer);if(t.isWebGLMultipleRenderTargets)for(let t=0,i=n.length;t<i;t++){const i=r.get(n[t]);i.__webglTexture&&(e.deleteTexture(i.__webglTexture),s.memory.textures--),r.remove(n[t])}r.remove(n),r.remove(t)}(n)}function C(t){const n=r.get(t);e.deleteTexture(n.__webglTexture);const i=t.source;delete g.get(i)[n.__cacheKey],s.memory.textures--}let R=0;function L(e,t){const i=r.get(e);if(e.isVideoTexture&&function(e){const t=s.render.frame;p.get(e)!==t&&(p.set(e,t),e.update())}(e),!1===e.isRenderTargetTexture&&e.version>0&&i.__version!==e.version){const n=e.image;if(null===n)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else{if(!1!==n.complete)return void I(i,e,t);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.activeTexture(33984+t),n.bindTexture(3553,i.__webglTexture)}const k={[cp]:10497,[up]:33071,[hp]:33648},P={[fp]:9728,1004:9984,1005:9986,[dp]:9729,1007:9985,[pp]:9987};function D(n,a,s){if(s?(e.texParameteri(n,10242,k[a.wrapS]),e.texParameteri(n,10243,k[a.wrapT]),32879!==n&&35866!==n||e.texParameteri(n,32882,k[a.wrapR]),e.texParameteri(n,10240,P[a.magFilter]),e.texParameteri(n,10241,P[a.minFilter])):(e.texParameteri(n,10242,33071),e.texParameteri(n,10243,33071),32879!==n&&35866!==n||e.texParameteri(n,32882,33071),a.wrapS===up&&a.wrapT===up||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),e.texParameteri(n,10240,E(a.magFilter)),e.texParameteri(n,10241,E(a.minFilter)),a.minFilter!==fp&&a.minFilter!==dp&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!0===t.has("EXT_texture_filter_anisotropic")){const s=t.get("EXT_texture_filter_anisotropic");if(a.type===yp&&!1===t.has("OES_texture_float_linear"))return;if(!1===o&&a.type===bp&&!1===t.has("OES_texture_half_float_linear"))return;(a.anisotropy>1||r.get(a).__currentAnisotropy)&&(e.texParameterf(n,s.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy)}}function O(t,n){let r=!1;void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",M));const i=n.source;let a=g.get(i);void 0===a&&(a={},g.set(i,a));const o=function(e){const t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.encoding),t.join()}(n);if(o!==t.__cacheKey){void 0===a[o]&&(a[o]={texture:e.createTexture(),usedTimes:0},s.memory.textures++,r=!0),a[o].usedTimes++;const i=a[t.__cacheKey];void 0!==i&&(a[t.__cacheKey].usedTimes--,0===i.usedTimes&&C(n)),t.__cacheKey=o,t.__webglTexture=a[o].texture}return r}function I(t,r,i){let s=3553;r.isDataArrayTexture&&(s=35866),r.isData3DTexture&&(s=32879);const l=O(t,r),c=r.source;if(n.activeTexture(33984+i),n.bindTexture(s,t.__webglTexture),c.version!==c.__currentVersion||!0===l){e.pixelStorei(37440,r.flipY),e.pixelStorei(37441,r.premultiplyAlpha),e.pixelStorei(3317,r.unpackAlignment),e.pixelStorei(37443,0);const i=function(e){return!o&&(e.wrapS!==up||e.wrapT!==up||e.minFilter!==fp&&e.minFilter!==dp)}(r)&&!1===x(r.image);let l=b(r.image,i,!1,u);l=H(r,l);const h=x(l)||o,f=a.convert(r.format,r.encoding);let d,p=a.convert(r.type),m=T(r.internalFormat,f,p,r.encoding,r.isVideoTexture);D(s,r,h);const g=r.mipmaps,v=o&&!0!==r.isVideoTexture,y=void 0===t.__version,E=S(r,l,h);if(r.isDepthTexture)m=6402,o?m=r.type===yp?36012:r.type===vp?33190:r.type===xp?35056:33189:r.type===yp&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),r.format===wp&&6402===m&&r.type!==gp&&r.type!==vp&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),r.type=gp,p=a.convert(r.type)),r.format===Tp&&6402===m&&(m=34041,r.type!==xp&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),r.type=xp,p=a.convert(r.type))),v&&y?n.texStorage2D(3553,1,m,l.width,l.height):n.texImage2D(3553,0,m,l.width,l.height,0,f,p,null);else if(r.isDataTexture)if(g.length>0&&h){v&&y&&n.texStorage2D(3553,E,m,g[0].width,g[0].height);for(let e=0,t=g.length;e<t;e++)d=g[e],v?n.texSubImage2D(3553,e,0,0,d.width,d.height,f,p,d.data):n.texImage2D(3553,e,m,d.width,d.height,0,f,p,d.data);r.generateMipmaps=!1}else v?(y&&n.texStorage2D(3553,E,m,l.width,l.height),n.texSubImage2D(3553,0,0,0,l.width,l.height,f,p,l.data)):n.texImage2D(3553,0,m,l.width,l.height,0,f,p,l.data);else if(r.isCompressedTexture){v&&y&&n.texStorage2D(3553,E,m,g[0].width,g[0].height);for(let e=0,t=g.length;e<t;e++)d=g[e],r.format!==_p?null!==f?v?n.compressedTexSubImage2D(3553,e,0,0,d.width,d.height,f,d.data):n.compressedTexImage2D(3553,e,m,d.width,d.height,0,d.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):v?n.texSubImage2D(3553,e,0,0,d.width,d.height,f,p,d.data):n.texImage2D(3553,e,m,d.width,d.height,0,f,p,d.data)}else if(r.isDataArrayTexture)v?(y&&n.texStorage3D(35866,E,m,l.width,l.height,l.depth),n.texSubImage3D(35866,0,0,0,0,l.width,l.height,l.depth,f,p,l.data)):n.texImage3D(35866,0,m,l.width,l.height,l.depth,0,f,p,l.data);else if(r.isData3DTexture)v?(y&&n.texStorage3D(32879,E,m,l.width,l.height,l.depth),n.texSubImage3D(32879,0,0,0,0,l.width,l.height,l.depth,f,p,l.data)):n.texImage3D(32879,0,m,l.width,l.height,l.depth,0,f,p,l.data);else if(r.isFramebufferTexture)v&&y?n.texStorage2D(3553,E,m,l.width,l.height):n.texImage2D(3553,0,m,l.width,l.height,0,f,p,null);else if(g.length>0&&h){v&&y&&n.texStorage2D(3553,E,m,g[0].width,g[0].height);for(let e=0,t=g.length;e<t;e++)d=g[e],v?n.texSubImage2D(3553,e,0,0,f,p,d):n.texImage2D(3553,e,m,f,p,d);r.generateMipmaps=!1}else v?(y&&n.texStorage2D(3553,E,m,l.width,l.height),n.texSubImage2D(3553,0,0,0,f,p,l)):n.texImage2D(3553,0,m,f,p,l);_(r,h)&&w(s),c.__currentVersion=c.version,r.onUpdate&&r.onUpdate(r)}t.__version=r.version}function N(t,i,s,o,l){const c=a.convert(s.format,s.encoding),u=a.convert(s.type),h=T(s.internalFormat,c,u,s.encoding);r.get(i).__hasExternalTextures||(32879===l||35866===l?n.texImage3D(l,0,h,i.width,i.height,i.depth,0,c,u,null):n.texImage2D(l,0,h,i.width,i.height,0,c,u,null)),n.bindFramebuffer(36160,t),z(i)?f.framebufferTexture2DMultisampleEXT(36160,o,l,r.get(s).__webglTexture,0,U(i)):e.framebufferTexture2D(36160,o,l,r.get(s).__webglTexture,0),n.bindFramebuffer(36160,null)}function F(t,n,r){if(e.bindRenderbuffer(36161,t),n.depthBuffer&&!n.stencilBuffer){let i=33189;if(r||z(n)){const t=n.depthTexture;t&&t.isDepthTexture&&(t.type===yp?i=36012:t.type===vp&&(i=33190));const r=U(n);z(n)?f.renderbufferStorageMultisampleEXT(36161,r,i,n.width,n.height):e.renderbufferStorageMultisample(36161,r,i,n.width,n.height)}else e.renderbufferStorage(36161,i,n.width,n.height);e.framebufferRenderbuffer(36160,36096,36161,t)}else if(n.depthBuffer&&n.stencilBuffer){const i=U(n);r&&!1===z(n)?e.renderbufferStorageMultisample(36161,i,35056,n.width,n.height):z(n)?f.renderbufferStorageMultisampleEXT(36161,i,35056,n.width,n.height):e.renderbufferStorage(36161,34041,n.width,n.height),e.framebufferRenderbuffer(36160,33306,36161,t)}else{const t=!0===n.isWebGLMultipleRenderTargets?n.texture[0]:n.texture,i=a.convert(t.format,t.encoding),s=a.convert(t.type),o=T(t.internalFormat,i,s,t.encoding),l=U(n);r&&!1===z(n)?e.renderbufferStorageMultisample(36161,l,o,n.width,n.height):z(n)?f.renderbufferStorageMultisampleEXT(36161,l,o,n.width,n.height):e.renderbufferStorage(36161,o,n.width,n.height)}e.bindRenderbuffer(36161,null)}function B(t){const i=r.get(t),a=!0===t.isWebGLCubeRenderTarget;if(t.depthTexture&&!i.__autoAllocateDepthBuffer){if(a)throw new Error("target.depthTexture not supported in Cube render targets");!function(t,i){if(i&&i.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(36160,t),!i.depthTexture||!i.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");r.get(i.depthTexture).__webglTexture&&i.depthTexture.image.width===i.width&&i.depthTexture.image.height===i.height||(i.depthTexture.image.width=i.width,i.depthTexture.image.height=i.height,i.depthTexture.needsUpdate=!0),L(i.depthTexture,0);const a=r.get(i.depthTexture).__webglTexture,s=U(i);if(i.depthTexture.format===wp)z(i)?f.framebufferTexture2DMultisampleEXT(36160,36096,3553,a,0,s):e.framebufferTexture2D(36160,36096,3553,a,0);else{if(i.depthTexture.format!==Tp)throw new Error("Unknown depthTexture format");z(i)?f.framebufferTexture2DMultisampleEXT(36160,33306,3553,a,0,s):e.framebufferTexture2D(36160,33306,3553,a,0)}}(i.__webglFramebuffer,t)}else if(a){i.__webglDepthbuffer=[];for(let r=0;r<6;r++)n.bindFramebuffer(36160,i.__webglFramebuffer[r]),i.__webglDepthbuffer[r]=e.createRenderbuffer(),F(i.__webglDepthbuffer[r],t,!1)}else n.bindFramebuffer(36160,i.__webglFramebuffer),i.__webglDepthbuffer=e.createRenderbuffer(),F(i.__webglDepthbuffer,t,!1);n.bindFramebuffer(36160,null)}function U(e){return Math.min(h,e.samples)}function z(e){const n=r.get(e);return o&&e.samples>0&&!0===t.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function H(e,n){const r=e.encoding,i=e.format,a=e.type;return!0===e.isCompressedTexture||!0===e.isVideoTexture||e.format===Vp||r!==Op&&(r===Ip?!1===o?!0===t.has("EXT_sRGB")&&i===_p?(e.format=Vp,e.minFilter=dp,e.generateMipmaps=!1):n=vm.sRGBToLinear(n):i===_p&&a===mp||console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture encoding:",r)),n}this.allocateTextureUnit=function(){const e=R;return e>=l&&console.warn("THREE.WebGLTextures: Trying to use "+e+" texture units while this GPU supports only "+l),R+=1,e},this.resetTextureUnits=function(){R=0},this.setTexture2D=L,this.setTexture2DArray=function(e,t){const i=r.get(e);e.version>0&&i.__version!==e.version?I(i,e,t):(n.activeTexture(33984+t),n.bindTexture(35866,i.__webglTexture))},this.setTexture3D=function(e,t){const i=r.get(e);e.version>0&&i.__version!==e.version?I(i,e,t):(n.activeTexture(33984+t),n.bindTexture(32879,i.__webglTexture))},this.setTextureCube=function(t,i){const s=r.get(t);t.version>0&&s.__version!==t.version?function(t,r,i){if(6!==r.image.length)return;const s=O(t,r),l=r.source;if(n.activeTexture(33984+i),n.bindTexture(34067,t.__webglTexture),l.version!==l.__currentVersion||!0===s){e.pixelStorei(37440,r.flipY),e.pixelStorei(37441,r.premultiplyAlpha),e.pixelStorei(3317,r.unpackAlignment),e.pixelStorei(37443,0);const i=r.isCompressedTexture||r.image[0].isCompressedTexture,s=r.image[0]&&r.image[0].isDataTexture,u=[];for(let e=0;e<6;e++)u[e]=i||s?s?r.image[e].image:r.image[e]:b(r.image[e],!1,!0,c),u[e]=H(r,u[e]);const h=u[0],f=x(h)||o,d=a.convert(r.format,r.encoding),p=a.convert(r.type),m=T(r.internalFormat,d,p,r.encoding),g=o&&!0!==r.isVideoTexture,v=void 0===t.__version;let y,E=S(r,h,f);if(D(34067,r,f),i){g&&v&&n.texStorage2D(34067,E,m,h.width,h.height);for(let e=0;e<6;e++){y=u[e].mipmaps;for(let t=0;t<y.length;t++){const i=y[t];r.format!==_p?null!==d?g?n.compressedTexSubImage2D(34069+e,t,0,0,i.width,i.height,d,i.data):n.compressedTexImage2D(34069+e,t,m,i.width,i.height,0,i.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):g?n.texSubImage2D(34069+e,t,0,0,i.width,i.height,d,p,i.data):n.texImage2D(34069+e,t,m,i.width,i.height,0,d,p,i.data)}}}else{y=r.mipmaps,g&&v&&(y.length>0&&E++,n.texStorage2D(34067,E,m,u[0].width,u[0].height));for(let e=0;e<6;e++)if(s){g?n.texSubImage2D(34069+e,0,0,0,u[e].width,u[e].height,d,p,u[e].data):n.texImage2D(34069+e,0,m,u[e].width,u[e].height,0,d,p,u[e].data);for(let t=0;t<y.length;t++){const r=y[t].image[e].image;g?n.texSubImage2D(34069+e,t+1,0,0,r.width,r.height,d,p,r.data):n.texImage2D(34069+e,t+1,m,r.width,r.height,0,d,p,r.data)}}else{g?n.texSubImage2D(34069+e,0,0,0,d,p,u[e]):n.texImage2D(34069+e,0,m,d,p,u[e]);for(let t=0;t<y.length;t++){const r=y[t];g?n.texSubImage2D(34069+e,t+1,0,0,d,p,r.image[e]):n.texImage2D(34069+e,t+1,m,d,p,r.image[e])}}}_(r,f)&&w(34067),l.__currentVersion=l.version,r.onUpdate&&r.onUpdate(r)}t.__version=r.version}(s,t,i):(n.activeTexture(33984+i),n.bindTexture(34067,s.__webglTexture))},this.rebindTextures=function(e,t,n){const i=r.get(e);void 0!==t&&N(i.__webglFramebuffer,e,e.texture,36064,3553),void 0!==n&&B(e)},this.setupRenderTarget=function(t){const l=t.texture,c=r.get(t),u=r.get(l);t.addEventListener("dispose",A),!0!==t.isWebGLMultipleRenderTargets&&(void 0===u.__webglTexture&&(u.__webglTexture=e.createTexture()),u.__version=l.version,s.memory.textures++);const h=!0===t.isWebGLCubeRenderTarget,f=!0===t.isWebGLMultipleRenderTargets,d=x(t)||o;if(h){c.__webglFramebuffer=[];for(let t=0;t<6;t++)c.__webglFramebuffer[t]=e.createFramebuffer()}else if(c.__webglFramebuffer=e.createFramebuffer(),f)if(i.drawBuffers){const n=t.texture;for(let t=0,i=n.length;t<i;t++){const i=r.get(n[t]);void 0===i.__webglTexture&&(i.__webglTexture=e.createTexture(),s.memory.textures++)}}else console.warn("THREE.WebGLRenderer: WebGLMultipleRenderTargets can only be used with WebGL2 or WEBGL_draw_buffers extension.");else if(o&&t.samples>0&&!1===z(t)){c.__webglMultisampledFramebuffer=e.createFramebuffer(),c.__webglColorRenderbuffer=e.createRenderbuffer(),e.bindRenderbuffer(36161,c.__webglColorRenderbuffer);const r=a.convert(l.format,l.encoding),i=a.convert(l.type),s=T(l.internalFormat,r,i,l.encoding),o=U(t);e.renderbufferStorageMultisample(36161,o,s,t.width,t.height),n.bindFramebuffer(36160,c.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(36160,36064,36161,c.__webglColorRenderbuffer),e.bindRenderbuffer(36161,null),t.depthBuffer&&(c.__webglDepthRenderbuffer=e.createRenderbuffer(),F(c.__webglDepthRenderbuffer,t,!0)),n.bindFramebuffer(36160,null)}if(h){n.bindTexture(34067,u.__webglTexture),D(34067,l,d);for(let e=0;e<6;e++)N(c.__webglFramebuffer[e],t,l,36064,34069+e);_(l,d)&&w(34067),n.unbindTexture()}else if(f){const e=t.texture;for(let i=0,a=e.length;i<a;i++){const a=e[i],s=r.get(a);n.bindTexture(3553,s.__webglTexture),D(3553,a,d),N(c.__webglFramebuffer,t,a,36064+i,3553),_(a,d)&&w(3553)}n.unbindTexture()}else{let e=3553;(t.isWebGL3DRenderTarget||t.isWebGLArrayRenderTarget)&&(o?e=t.isWebGL3DRenderTarget?32879:35866:console.error("THREE.WebGLTextures: THREE.Data3DTexture and THREE.DataArrayTexture only supported with WebGL2.")),n.bindTexture(e,u.__webglTexture),D(e,l,d),N(c.__webglFramebuffer,t,l,36064,e),_(l,d)&&w(e),n.unbindTexture()}t.depthBuffer&&B(t)},this.updateRenderTargetMipmap=function(e){const t=x(e)||o,i=!0===e.isWebGLMultipleRenderTargets?e.texture:[e.texture];for(let a=0,s=i.length;a<s;a++){const s=i[a];if(_(s,t)){const t=e.isWebGLCubeRenderTarget?34067:3553,i=r.get(s).__webglTexture;n.bindTexture(t,i),w(t),n.unbindTexture()}}},this.updateMultisampleRenderTarget=function(t){if(o&&t.samples>0&&!1===z(t)){const i=t.width,a=t.height;let s=16384;const o=[36064],l=t.stencilBuffer?33306:36096;t.depthBuffer&&o.push(l);const c=r.get(t),u=void 0!==c.__ignoreDepthValues&&c.__ignoreDepthValues;!1===u&&(t.depthBuffer&&(s|=256),t.stencilBuffer&&(s|=1024)),n.bindFramebuffer(36008,c.__webglMultisampledFramebuffer),n.bindFramebuffer(36009,c.__webglFramebuffer),!0===u&&(e.invalidateFramebuffer(36008,[l]),e.invalidateFramebuffer(36009,[l])),e.blitFramebuffer(0,0,i,a,0,0,i,a,s,9728),d&&e.invalidateFramebuffer(36008,o),n.bindFramebuffer(36008,null),n.bindFramebuffer(36009,c.__webglMultisampledFramebuffer)}},this.setupDepthRenderbuffer=B,this.setupFrameBufferTexture=N,this.useMultisampledRTT=z}function ux(e,t,n){const r=n.isWebGL2;return{convert:function(e,n=null){let i;if(e===mp)return 5121;if(1017===e)return 32819;if(1018===e)return 32820;if(1010===e)return 5120;if(1011===e)return 5122;if(e===gp)return 5123;if(1013===e)return 5124;if(e===vp)return 5125;if(e===yp)return 5126;if(e===bp)return r?5131:(i=t.get("OES_texture_half_float"),null!==i?i.HALF_FLOAT_OES:null);if(1021===e)return 6406;if(e===_p)return 6408;if(1024===e)return 6409;if(1025===e)return 6410;if(e===wp)return 6402;if(e===Tp)return 34041;if(1028===e)return 6403;if(1022===e)return console.warn("THREE.WebGLRenderer: THREE.RGBFormat has been removed. Use THREE.RGBAFormat instead. https://github.com/mrdoob/three.js/pull/23228"),6408;if(e===Vp)return i=t.get("EXT_sRGB"),null!==i?i.SRGB_ALPHA_EXT:null;if(1029===e)return 36244;if(1030===e)return 33319;if(1031===e)return 33320;if(1033===e)return 36249;if(e===Sp||e===Ep||e===Mp||e===Ap)if(n===Ip){if(i=t.get("WEBGL_compressed_texture_s3tc_srgb"),null===i)return null;if(e===Sp)return i.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(e===Ep)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(e===Mp)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(e===Ap)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else{if(i=t.get("WEBGL_compressed_texture_s3tc"),null===i)return null;if(e===Sp)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(e===Ep)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(e===Mp)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(e===Ap)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(35840===e||35841===e||35842===e||35843===e){if(i=t.get("WEBGL_compressed_texture_pvrtc"),null===i)return null;if(35840===e)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(35841===e)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(35842===e)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(35843===e)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(36196===e)return i=t.get("WEBGL_compressed_texture_etc1"),null!==i?i.COMPRESSED_RGB_ETC1_WEBGL:null;if(37492===e||37496===e){if(i=t.get("WEBGL_compressed_texture_etc"),null===i)return null;if(37492===e)return n===Ip?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2;if(37496===e)return n===Ip?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC}if(37808===e||37809===e||37810===e||37811===e||37812===e||37813===e||37814===e||37815===e||37816===e||37817===e||37818===e||37819===e||37820===e||37821===e){if(i=t.get("WEBGL_compressed_texture_astc"),null===i)return null;if(37808===e)return n===Ip?i.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:i.COMPRESSED_RGBA_ASTC_4x4_KHR;if(37809===e)return n===Ip?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:i.COMPRESSED_RGBA_ASTC_5x4_KHR;if(37810===e)return n===Ip?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:i.COMPRESSED_RGBA_ASTC_5x5_KHR;if(37811===e)return n===Ip?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:i.COMPRESSED_RGBA_ASTC_6x5_KHR;if(37812===e)return n===Ip?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:i.COMPRESSED_RGBA_ASTC_6x6_KHR;if(37813===e)return n===Ip?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:i.COMPRESSED_RGBA_ASTC_8x5_KHR;if(37814===e)return n===Ip?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:i.COMPRESSED_RGBA_ASTC_8x6_KHR;if(37815===e)return n===Ip?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:i.COMPRESSED_RGBA_ASTC_8x8_KHR;if(37816===e)return n===Ip?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:i.COMPRESSED_RGBA_ASTC_10x5_KHR;if(37817===e)return n===Ip?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:i.COMPRESSED_RGBA_ASTC_10x6_KHR;if(37818===e)return n===Ip?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:i.COMPRESSED_RGBA_ASTC_10x8_KHR;if(37819===e)return n===Ip?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:i.COMPRESSED_RGBA_ASTC_10x10_KHR;if(37820===e)return n===Ip?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:i.COMPRESSED_RGBA_ASTC_12x10_KHR;if(37821===e)return n===Ip?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:i.COMPRESSED_RGBA_ASTC_12x12_KHR}if(36492===e){if(i=t.get("EXT_texture_compression_bptc"),null===i)return null;if(36492===e)return n===Ip?i.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:i.COMPRESSED_RGBA_BPTC_UNORM_EXT}return e===xp?r?34042:(i=t.get("WEBGL_depth_texture"),null!==i?i.UNSIGNED_INT_24_8_WEBGL:null):void 0}}}sx.prototype.isMeshDistanceMaterial=!0;class hx extends Rv{constructor(e=[]){super(),this.cameras=e}}hx.prototype.isArrayCamera=!0;class fx extends Rg{constructor(){super(),this.type="Group"}}fx.prototype.isGroup=!0;const dx={type:"move"};class px{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return null===this._hand&&(this._hand=new fx,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return null===this._targetRay&&(this._targetRay=new fx,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new Am,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new Am),this._targetRay}getGripSpace(){return null===this._grip&&(this._grip=new fx,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new Am,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new Am),this._grip}dispatchEvent(e){return null!==this._targetRay&&this._targetRay.dispatchEvent(e),null!==this._grip&&this._grip.dispatchEvent(e),null!==this._hand&&this._hand.dispatchEvent(e),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this}update(e,t,n){let r=null,i=null,a=null;const s=this._targetRay,o=this._grip,l=this._hand;if(e&&"visible-blurred"!==t.session.visibilityState)if(null!==s&&(r=t.getPose(e.targetRaySpace,n),null!==r&&(s.matrix.fromArray(r.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),r.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(r.linearVelocity)):s.hasLinearVelocity=!1,r.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(r.angularVelocity)):s.hasAngularVelocity=!1,this.dispatchEvent(dx))),l&&e.hand){a=!0;for(const r of e.hand.values()){const e=t.getJointPose(r,n);if(void 0===l.joints[r.jointName]){const e=new fx;e.matrixAutoUpdate=!1,e.visible=!1,l.joints[r.jointName]=e,l.add(e)}const i=l.joints[r.jointName];null!==e&&(i.matrix.fromArray(e.transform.matrix),i.matrix.decompose(i.position,i.rotation,i.scale),i.jointRadius=e.radius),i.visible=null!==e}const r=l.joints["index-finger-tip"],i=l.joints["thumb-tip"],s=r.position.distanceTo(i.position),o=.02,c=.005;l.inputState.pinching&&s>o+c?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!l.inputState.pinching&&s<=o-c&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==o&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),null!==i&&(o.matrix.fromArray(i.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),i.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(i.linearVelocity)):o.hasLinearVelocity=!1,i.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(i.angularVelocity)):o.hasAngularVelocity=!1));return null!==s&&(s.visible=null!==r),null!==o&&(o.visible=null!==i),null!==l&&(l.visible=null!==a),this}}class mx extends _m{constructor(e,t,n,r,i,a,s,o,l,c){if((c=void 0!==c?c:wp)!==wp&&c!==Tp)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&c===wp&&(n=gp),void 0===n&&c===Tp&&(n=xp),super(null,r,i,a,s,o,c,n,l),this.image={width:e,height:t},this.magFilter=void 0!==s?s:fp,this.minFilter=void 0!==o?o:fp,this.flipY=!1,this.generateMipmaps=!1}}mx.prototype.isDepthTexture=!0;class gx extends Gp{constructor(e,t){super();const n=this;let r=null,i=1,a=null,s="local-floor",o=null,l=null,c=null,u=null,h=null;const f=t.getContextAttributes();let d=null,p=null;const m=[],g=new Map,v=new Rv;v.layers.enable(1),v.viewport=new wm;const y=new Rv;y.layers.enable(2),y.viewport=new wm;const b=[v,y],x=new hx;x.layers.enable(1),x.layers.enable(2);let _=null,w=null;function T(e){const t=g.get(e.inputSource);t&&t.dispatchEvent({type:e.type,data:e.inputSource})}function S(){g.forEach((function(e,t){e.disconnect(t)})),g.clear(),_=null,w=null,e.setRenderTarget(d),u=null,c=null,l=null,r=null,p=null,L.stop(),n.isPresenting=!1,n.dispatchEvent({type:"sessionend"})}function E(e){const t=r.inputSources;for(let e=0;e<m.length;e++)g.set(t[e],m[e]);for(let t=0;t<e.removed.length;t++){const n=e.removed[t],r=g.get(n);r&&(r.dispatchEvent({type:"disconnected",data:n}),g.delete(n))}for(let t=0;t<e.added.length;t++){const n=e.added[t],r=g.get(n);r&&r.dispatchEvent({type:"connected",data:n})}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=m[e];return void 0===t&&(t=new px,m[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=m[e];return void 0===t&&(t=new px,m[e]=t),t.getGripSpace()},this.getHand=function(e){let t=m[e];return void 0===t&&(t=new px,m[e]=t),t.getHandSpace()},this.setFramebufferScaleFactor=function(e){i=e,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(e){s=e,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return a},this.getBaseLayer=function(){return null!==c?c:u},this.getBinding=function(){return l},this.getFrame=function(){return h},this.getSession=function(){return r},this.setSession=async function(o){if(r=o,null!==r){if(d=e.getRenderTarget(),r.addEventListener("select",T),r.addEventListener("selectstart",T),r.addEventListener("selectend",T),r.addEventListener("squeeze",T),r.addEventListener("squeezestart",T),r.addEventListener("squeezeend",T),r.addEventListener("end",S),r.addEventListener("inputsourceschange",E),!0!==f.xrCompatible&&await t.makeXRCompatible(),void 0===r.renderState.layers||!1===e.capabilities.isWebGL2){const n={antialias:void 0!==r.renderState.layers||f.antialias,alpha:f.alpha,depth:f.depth,stencil:f.stencil,framebufferScaleFactor:i};u=new XRWebGLLayer(r,t,n),r.updateRenderState({baseLayer:u}),p=new Tm(u.framebufferWidth,u.framebufferHeight,{format:_p,type:mp,encoding:e.outputEncoding})}else{let n=null,a=null,s=null;f.depth&&(s=f.stencil?35056:33190,n=f.stencil?Tp:wp,a=f.stencil?xp:gp);const o={colorFormat:e.outputEncoding===Ip?35907:32856,depthFormat:s,scaleFactor:i};l=new XRWebGLBinding(r,t),c=l.createProjectionLayer(o),r.updateRenderState({layers:[c]}),p=new Tm(c.textureWidth,c.textureHeight,{format:_p,type:mp,depthTexture:new mx(c.textureWidth,c.textureHeight,a,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:f.stencil,encoding:e.outputEncoding,samples:f.antialias?4:0}),e.properties.get(p).__ignoreDepthValues=c.ignoreDepthValues}p.isXRRenderTarget=!0,this.setFoveation(1),a=await r.requestReferenceSpace(s),L.setContext(r),L.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}};const M=new Am,A=new Am;function C(e,t){null===t?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(null===r)return;x.near=y.near=v.near=e.near,x.far=y.far=v.far=e.far,_===x.near&&w===x.far||(r.updateRenderState({depthNear:x.near,depthFar:x.far}),_=x.near,w=x.far);const t=e.parent,n=x.cameras;C(x,t);for(let e=0;e<n.length;e++)C(n[e],t);x.matrixWorld.decompose(x.position,x.quaternion,x.scale),e.position.copy(x.position),e.quaternion.copy(x.quaternion),e.scale.copy(x.scale),e.matrix.copy(x.matrix),e.matrixWorld.copy(x.matrixWorld);const i=e.children;for(let e=0,t=i.length;e<t;e++)i[e].updateMatrixWorld(!0);2===n.length?function(e,t,n){M.setFromMatrixPosition(t.matrixWorld),A.setFromMatrixPosition(n.matrixWorld);const r=M.distanceTo(A),i=t.projectionMatrix.elements,a=n.projectionMatrix.elements,s=i[14]/(i[10]-1),o=i[14]/(i[10]+1),l=(i[9]+1)/i[5],c=(i[9]-1)/i[5],u=(i[8]-1)/i[0],h=(a[8]+1)/a[0],f=s*u,d=s*h,p=r/(-u+h),m=p*-u;t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(m),e.translateZ(p),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert();const g=s+p,v=o+p,y=f-m,b=d+(r-m),x=l*o/v*g,_=c*o/v*g;e.projectionMatrix.makePerspective(y,b,x,_,g,v)}(x,v,y):x.projectionMatrix.copy(v.projectionMatrix)},this.getCamera=function(){return x},this.getFoveation=function(){return null!==c?c.fixedFoveation:null!==u?u.fixedFoveation:void 0},this.setFoveation=function(e){null!==c&&(c.fixedFoveation=e),null!==u&&void 0!==u.fixedFoveation&&(u.fixedFoveation=e)};let R=null;const L=new Hv;L.setAnimationLoop((function(t,n){if(o=n.getViewerPose(a),h=n,null!==o){const t=o.views;null!==u&&(e.setRenderTargetFramebuffer(p,u.framebuffer),e.setRenderTarget(p));let n=!1;t.length!==x.cameras.length&&(x.cameras.length=0,n=!0);for(let r=0;r<t.length;r++){const i=t[r];let a=null;if(null!==u)a=u.getViewport(i);else{const t=l.getViewSubImage(c,i);a=t.viewport,0===r&&(e.setRenderTargetTextures(p,t.colorTexture,c.ignoreDepthValues?void 0:t.depthStencilTexture),e.setRenderTarget(p))}const s=b[r];s.matrix.fromArray(i.transform.matrix),s.projectionMatrix.fromArray(i.projectionMatrix),s.viewport.set(a.x,a.y,a.width,a.height),0===r&&x.matrix.copy(s.matrix),!0===n&&x.cameras.push(s)}}const i=r.inputSources;for(let e=0;e<m.length;e++){const t=m[e],r=i[e];t.update(r,n,a)}R&&R(t,n),h=null})),this.setAnimationLoop=function(e){R=e},this.dispose=function(){}}}function vx(e,t){function n(n,r){n.opacity.value=r.opacity,r.color&&n.diffuse.value.copy(r.color),r.emissive&&n.emissive.value.copy(r.emissive).multiplyScalar(r.emissiveIntensity),r.map&&(n.map.value=r.map),r.alphaMap&&(n.alphaMap.value=r.alphaMap),r.bumpMap&&(n.bumpMap.value=r.bumpMap,n.bumpScale.value=r.bumpScale,1===r.side&&(n.bumpScale.value*=-1)),r.displacementMap&&(n.displacementMap.value=r.displacementMap,n.displacementScale.value=r.displacementScale,n.displacementBias.value=r.displacementBias),r.emissiveMap&&(n.emissiveMap.value=r.emissiveMap),r.normalMap&&(n.normalMap.value=r.normalMap,n.normalScale.value.copy(r.normalScale),1===r.side&&n.normalScale.value.negate()),r.specularMap&&(n.specularMap.value=r.specularMap),r.alphaTest>0&&(n.alphaTest.value=r.alphaTest);const i=t.get(r).envMap;if(i&&(n.envMap.value=i,n.flipEnvMap.value=i.isCubeTexture&&!1===i.isRenderTargetTexture?-1:1,n.reflectivity.value=r.reflectivity,n.ior.value=r.ior,n.refractionRatio.value=r.refractionRatio),r.lightMap){n.lightMap.value=r.lightMap;const t=!0!==e.physicallyCorrectLights?Math.PI:1;n.lightMapIntensity.value=r.lightMapIntensity*t}let a,s;r.aoMap&&(n.aoMap.value=r.aoMap,n.aoMapIntensity.value=r.aoMapIntensity),r.map?a=r.map:r.specularMap?a=r.specularMap:r.displacementMap?a=r.displacementMap:r.normalMap?a=r.normalMap:r.bumpMap?a=r.bumpMap:r.roughnessMap?a=r.roughnessMap:r.metalnessMap?a=r.metalnessMap:r.alphaMap?a=r.alphaMap:r.emissiveMap?a=r.emissiveMap:r.clearcoatMap?a=r.clearcoatMap:r.clearcoatNormalMap?a=r.clearcoatNormalMap:r.clearcoatRoughnessMap?a=r.clearcoatRoughnessMap:r.specularIntensityMap?a=r.specularIntensityMap:r.specularColorMap?a=r.specularColorMap:r.transmissionMap?a=r.transmissionMap:r.thicknessMap?a=r.thicknessMap:r.sheenColorMap?a=r.sheenColorMap:r.sheenRoughnessMap&&(a=r.sheenRoughnessMap),void 0!==a&&(a.isWebGLRenderTarget&&(a=a.texture),!0===a.matrixAutoUpdate&&a.updateMatrix(),n.uvTransform.value.copy(a.matrix)),r.aoMap?s=r.aoMap:r.lightMap&&(s=r.lightMap),void 0!==s&&(s.isWebGLRenderTarget&&(s=s.texture),!0===s.matrixAutoUpdate&&s.updateMatrix(),n.uv2Transform.value.copy(s.matrix))}return{refreshFogUniforms:function(e,t){e.fogColor.value.copy(t.color),t.isFog?(e.fogNear.value=t.near,e.fogFar.value=t.far):t.isFogExp2&&(e.fogDensity.value=t.density)},refreshMaterialUniforms:function(e,r,i,a,s){r.isMeshBasicMaterial||r.isMeshLambertMaterial?n(e,r):r.isMeshToonMaterial?(n(e,r),function(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}(e,r)):r.isMeshPhongMaterial?(n(e,r),function(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}(e,r)):r.isMeshStandardMaterial?(n(e,r),function(e,n){e.roughness.value=n.roughness,e.metalness.value=n.metalness,n.roughnessMap&&(e.roughnessMap.value=n.roughnessMap),n.metalnessMap&&(e.metalnessMap.value=n.metalnessMap),t.get(n).envMap&&(e.envMapIntensity.value=n.envMapIntensity)}(e,r),r.isMeshPhysicalMaterial&&function(e,t,n){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap)),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap),t.clearcoatNormalMap&&(e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),e.clearcoatNormalMap.value=t.clearcoatNormalMap,1===t.side&&e.clearcoatNormalScale.value.negate())),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=n.texture,e.transmissionSamplerSize.value.set(n.width,n.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap)}(e,r,s)):r.isMeshMatcapMaterial?(n(e,r),function(e,t){t.matcap&&(e.matcap.value=t.matcap)}(e,r)):r.isMeshDepthMaterial?n(e,r):r.isMeshDistanceMaterial?(n(e,r),function(e,t){e.referencePosition.value.copy(t.referencePosition),e.nearDistance.value=t.nearDistance,e.farDistance.value=t.farDistance}(e,r)):r.isMeshNormalMaterial?n(e,r):r.isLineBasicMaterial?(function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity}(e,r),r.isLineDashedMaterial&&function(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}(e,r)):r.isPointsMaterial?function(e,t,n,r){let i;e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*n,e.scale.value=.5*r,t.map&&(e.map.value=t.map),t.alphaMap&&(e.alphaMap.value=t.alphaMap),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest),t.map?i=t.map:t.alphaMap&&(i=t.alphaMap),void 0!==i&&(!0===i.matrixAutoUpdate&&i.updateMatrix(),e.uvTransform.value.copy(i.matrix))}(e,r,i,a):r.isSpriteMaterial?function(e,t){let n;e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map),t.alphaMap&&(e.alphaMap.value=t.alphaMap),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest),t.map?n=t.map:t.alphaMap&&(n=t.alphaMap),void 0!==n&&(!0===n.matrixAutoUpdate&&n.updateMatrix(),e.uvTransform.value.copy(n.matrix))}(e,r):r.isShadowMaterial?(e.color.value.copy(r.color),e.opacity.value=r.opacity):r.isShaderMaterial&&(r.uniformsNeedUpdate=!1)}}}function yx(e={}){const t=void 0!==e.canvas?e.canvas:function(){const e=im("canvas");return e.style.display="block",e}(),n=void 0!==e.context?e.context:null,r=void 0===e.depth||e.depth,i=void 0===e.stencil||e.stencil,a=void 0!==e.antialias&&e.antialias,s=void 0===e.premultipliedAlpha||e.premultipliedAlpha,o=void 0!==e.preserveDrawingBuffer&&e.preserveDrawingBuffer,l=void 0!==e.powerPreference?e.powerPreference:"default",c=void 0!==e.failIfMajorPerformanceCaveat&&e.failIfMajorPerformanceCaveat;let u;u=void 0!==e.context?n.getContextAttributes().alpha:void 0!==e.alpha&&e.alpha;let h=null,f=null;const d=[],p=[];this.domElement=t,this.debug={checkShaderErrors:!0},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.outputEncoding=Op,this.physicallyCorrectLights=!1,this.toneMapping=0,this.toneMappingExposure=1;const m=this;let g=!1,v=0,y=0,b=null,x=-1,_=null;const w=new wm,T=new wm;let S=null,E=t.width,M=t.height,A=1,C=null,R=null;const L=new wm(0,0,E,M),k=new wm(0,0,E,M);let P=!1;const D=new zv;let O=!1,I=!1,N=null;const F=new ig,B=new tm,U=new Am,z={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function H(){return null===b?A:1}let V,G,W,j,X,q,$,Y,Z,J,K,Q,ee,te,ne,re,ie,ae,se,oe,le,ce,ue,he=n;function fe(e,n){for(let r=0;r<e.length;r++){const i=e[r],a=t.getContext(i,n);if(null!==a)return a}return null}try{const e={alpha:!0,depth:r,stencil:i,antialias:a,premultipliedAlpha:s,preserveDrawingBuffer:o,powerPreference:l,failIfMajorPerformanceCaveat:c};if("setAttribute"in t&&t.setAttribute("data-engine","three.js r139"),t.addEventListener("webglcontextlost",me,!1),t.addEventListener("webglcontextrestored",ge,!1),null===he){const t=["webgl2","webgl","experimental-webgl"];if(!0===m.isWebGL1Renderer&&t.shift(),he=fe(t,e),null===he)throw fe(t)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}void 0===he.getShaderPrecisionFormat&&(he.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(e){throw console.error("THREE.WebGLRenderer: "+e.message),e}function de(){V=new dy(he),G=new Zv(he,V,e),V.init(G),ce=new ux(he,V,G),W=new lx(he,V,G),j=new gy(he),X=new $b,q=new cx(he,V,W,X,G,ce,j),$=new Kv(m),Y=new fy(m),Z=new Vv(he,G),ue=new $v(he,V,Z,G),J=new py(he,Z,j,ue),K=new _y(he,J,Z,j),se=new xy(he,G,q),re=new Jv(X),Q=new qb(m,$,Y,V,G,ue,re),ee=new vx(m,X),te=new Kb,ne=new ix(V,G),ae=new qv(m,$,W,K,u,s),ie=new ox(m,K,G),oe=new Yv(he,V,j,G),le=new my(he,V,j,G),j.programs=Q.programs,m.capabilities=G,m.extensions=V,m.properties=X,m.renderLists=te,m.shadowMap=ie,m.state=W,m.info=j}de();const pe=new gx(m,he);function me(e){e.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),g=!0}function ge(){console.log("THREE.WebGLRenderer: Context Restored."),g=!1;const e=j.autoReset,t=ie.enabled,n=ie.autoUpdate,r=ie.needsUpdate,i=ie.type;de(),j.autoReset=e,ie.enabled=t,ie.autoUpdate=n,ie.needsUpdate=r,ie.type=i}function ve(e){const t=e.target;t.removeEventListener("dispose",ve),function(e){(function(e){const t=X.get(e).programs;void 0!==t&&(t.forEach((function(e){Q.releaseProgram(e)})),e.isShaderMaterial&&Q.releaseShaderCache(e))})(e),X.remove(e)}(t)}this.xr=pe,this.getContext=function(){return he},this.getContextAttributes=function(){return he.getContextAttributes()},this.forceContextLoss=function(){const e=V.get("WEBGL_lose_context");e&&e.loseContext()},this.forceContextRestore=function(){const e=V.get("WEBGL_lose_context");e&&e.restoreContext()},this.getPixelRatio=function(){return A},this.setPixelRatio=function(e){void 0!==e&&(A=e,this.setSize(E,M,!1))},this.getSize=function(e){return e.set(E,M)},this.setSize=function(e,n,r){pe.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(E=e,M=n,t.width=Math.floor(e*A),t.height=Math.floor(n*A),!1!==r&&(t.style.width=e+"px",t.style.height=n+"px"),this.setViewport(0,0,e,n))},this.getDrawingBufferSize=function(e){return e.set(E*A,M*A).floor()},this.setDrawingBufferSize=function(e,n,r){E=e,M=n,A=r,t.width=Math.floor(e*r),t.height=Math.floor(n*r),this.setViewport(0,0,e,n)},this.getCurrentViewport=function(e){return e.copy(w)},this.getViewport=function(e){return e.copy(L)},this.setViewport=function(e,t,n,r){e.isVector4?L.set(e.x,e.y,e.z,e.w):L.set(e,t,n,r),W.viewport(w.copy(L).multiplyScalar(A).floor())},this.getScissor=function(e){return e.copy(k)},this.setScissor=function(e,t,n,r){e.isVector4?k.set(e.x,e.y,e.z,e.w):k.set(e,t,n,r),W.scissor(T.copy(k).multiplyScalar(A).floor())},this.getScissorTest=function(){return P},this.setScissorTest=function(e){W.setScissorTest(P=e)},this.setOpaqueSort=function(e){C=e},this.setTransparentSort=function(e){R=e},this.getClearColor=function(e){return e.copy(ae.getClearColor())},this.setClearColor=function(){ae.setClearColor.apply(ae,arguments)},this.getClearAlpha=function(){return ae.getClearAlpha()},this.setClearAlpha=function(){ae.setClearAlpha.apply(ae,arguments)},this.clear=function(e=!0,t=!0,n=!0){let r=0;e&&(r|=16384),t&&(r|=256),n&&(r|=1024),he.clear(r)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",me,!1),t.removeEventListener("webglcontextrestored",ge,!1),te.dispose(),ne.dispose(),X.dispose(),$.dispose(),Y.dispose(),K.dispose(),ue.dispose(),Q.dispose(),pe.dispose(),pe.removeEventListener("sessionstart",be),pe.removeEventListener("sessionend",xe),N&&(N.dispose(),N=null),_e.stop()},this.renderBufferDirect=function(e,t,n,r,i,a){null===t&&(t=z);const s=i.isMesh&&i.matrixWorld.determinant()<0,o=function(e,t,n,r,i){!0!==t.isScene&&(t=z),q.resetTextureUnits();const a=t.fog,s=r.isMeshStandardMaterial?t.environment:null,o=null===b?m.outputEncoding:!0===b.isXRRenderTarget?b.texture.encoding:Op,l=(r.isMeshStandardMaterial?Y:$).get(r.envMap||s),c=!0===r.vertexColors&&!!n.attributes.color&&4===n.attributes.color.itemSize,u=!!r.normalMap&&!!n.attributes.tangent,h=!!n.morphAttributes.position,d=!!n.morphAttributes.normal,p=!!n.morphAttributes.color,g=r.toneMapped?m.toneMapping:0,v=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,y=void 0!==v?v.length:0,w=X.get(r),T=f.state.lights;if(!0===O&&(!0===I||e!==_)){const t=e===_&&r.id===x;re.setState(r,e,t)}let S=!1;r.version===w.__version?w.needsLights&&w.lightsStateVersion!==T.state.version||w.outputEncoding!==o||i.isInstancedMesh&&!1===w.instancing?S=!0:i.isInstancedMesh||!0!==w.instancing?i.isSkinnedMesh&&!1===w.skinning?S=!0:i.isSkinnedMesh||!0!==w.skinning?w.envMap!==l||r.fog&&w.fog!==a?S=!0:void 0===w.numClippingPlanes||w.numClippingPlanes===re.numPlanes&&w.numIntersection===re.numIntersection?(w.vertexAlphas!==c||w.vertexTangents!==u||w.morphTargets!==h||w.morphNormals!==d||w.morphColors!==p||w.toneMapping!==g||!0===G.isWebGL2&&w.morphTargetsCount!==y)&&(S=!0):S=!0:S=!0:S=!0:(S=!0,w.__version=r.version);let E=w.currentProgram;!0===S&&(E=Me(r,t,i));let C=!1,R=!1,L=!1;const k=E.getUniforms(),P=w.uniforms;if(W.useProgram(E.program)&&(C=!0,R=!0,L=!0),r.id!==x&&(x=r.id,R=!0),C||_!==e){if(k.setValue(he,"projectionMatrix",e.projectionMatrix),G.logarithmicDepthBuffer&&k.setValue(he,"logDepthBufFC",2/(Math.log(e.far+1)/Math.LN2)),_!==e&&(_=e,R=!0,L=!0),r.isShaderMaterial||r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshStandardMaterial||r.envMap){const t=k.map.cameraPosition;void 0!==t&&t.setValue(he,U.setFromMatrixPosition(e.matrixWorld))}(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&k.setValue(he,"isOrthographic",!0===e.isOrthographicCamera),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial||r.isShadowMaterial||i.isSkinnedMesh)&&k.setValue(he,"viewMatrix",e.matrixWorldInverse)}if(i.isSkinnedMesh){k.setOptional(he,i,"bindMatrix"),k.setOptional(he,i,"bindMatrixInverse");const e=i.skeleton;e&&(G.floatVertexTextures?(null===e.boneTexture&&e.computeBoneTexture(),k.setValue(he,"boneTexture",e.boneTexture,q),k.setValue(he,"boneTextureSize",e.boneTextureSize)):k.setOptional(he,e,"boneMatrices"))}const D=n.morphAttributes;var F,B;return(void 0!==D.position||void 0!==D.normal||void 0!==D.color&&!0===G.isWebGL2)&&se.update(i,n,r,E),(R||w.receiveShadow!==i.receiveShadow)&&(w.receiveShadow=i.receiveShadow,k.setValue(he,"receiveShadow",i.receiveShadow)),R&&(k.setValue(he,"toneMappingExposure",m.toneMappingExposure),w.needsLights&&(B=L,(F=P).ambientLightColor.needsUpdate=B,F.lightProbe.needsUpdate=B,F.directionalLights.needsUpdate=B,F.directionalLightShadows.needsUpdate=B,F.pointLights.needsUpdate=B,F.pointLightShadows.needsUpdate=B,F.spotLights.needsUpdate=B,F.spotLightShadows.needsUpdate=B,F.rectAreaLights.needsUpdate=B,F.hemisphereLights.needsUpdate=B),a&&r.fog&&ee.refreshFogUniforms(P,a),ee.refreshMaterialUniforms(P,r,A,M,N),Eb.upload(he,w.uniformsList,P,q)),r.isShaderMaterial&&!0===r.uniformsNeedUpdate&&(Eb.upload(he,w.uniformsList,P,q),r.uniformsNeedUpdate=!1),r.isSpriteMaterial&&k.setValue(he,"center",i.center),k.setValue(he,"modelViewMatrix",i.modelViewMatrix),k.setValue(he,"normalMatrix",i.normalMatrix),k.setValue(he,"modelMatrix",i.matrixWorld),E}(e,t,n,r,i);W.setMaterial(r,s);let l=n.index;const c=n.attributes.position;if(null===l){if(void 0===c||0===c.count)return}else if(0===l.count)return;let u,h=1;!0===r.wireframe&&(l=J.getWireframeAttribute(n),h=2),ue.setup(i,r,o,n,l);let d=oe;null!==l&&(u=Z.get(l),d=le,d.setIndex(u));const p=null!==l?l.count:c.count,g=n.drawRange.start*h,v=n.drawRange.count*h,y=null!==a?a.start*h:0,w=null!==a?a.count*h:1/0,T=Math.max(g,y),S=Math.min(p,g+v,y+w)-1,E=Math.max(0,S-T+1);if(0!==E){if(i.isMesh)!0===r.wireframe?(W.setLineWidth(r.wireframeLinewidth*H()),d.setMode(1)):d.setMode(4);else if(i.isLine){let e=r.linewidth;void 0===e&&(e=1),W.setLineWidth(e*H()),i.isLineSegments?d.setMode(1):i.isLineLoop?d.setMode(2):d.setMode(3)}else i.isPoints?d.setMode(0):i.isSprite&&d.setMode(4);if(i.isInstancedMesh)d.renderInstances(T,E,i.count);else if(n.isInstancedBufferGeometry){const e=Math.min(n.instanceCount,n._maxInstanceCount);d.renderInstances(T,E,e)}else d.render(T,E)}},this.compile=function(e,t){f=ne.get(e),f.init(),p.push(f),e.traverseVisible((function(e){e.isLight&&e.layers.test(t.layers)&&(f.pushLight(e),e.castShadow&&f.pushShadow(e))})),f.setupLights(m.physicallyCorrectLights),e.traverse((function(t){const n=t.material;if(n)if(Array.isArray(n))for(let r=0;r<n.length;r++)Me(n[r],e,t);else Me(n,e,t)})),p.pop(),f=null};let ye=null;function be(){_e.stop()}function xe(){_e.start()}const _e=new Hv;function we(e,t,n,r){if(!1===e.visible)return;if(e.layers.test(t.layers))if(e.isGroup)n=e.renderOrder;else if(e.isLOD)!0===e.autoUpdate&&e.update(t);else if(e.isLight)f.pushLight(e),e.castShadow&&f.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||D.intersectsSprite(e)){r&&U.setFromMatrixPosition(e.matrixWorld).applyMatrix4(F);const t=K.update(e),i=e.material;i.visible&&h.push(e,t,i,n,U.z,null)}}else if((e.isMesh||e.isLine||e.isPoints)&&(e.isSkinnedMesh&&e.skeleton.frame!==j.render.frame&&(e.skeleton.update(),e.skeleton.frame=j.render.frame),!e.frustumCulled||D.intersectsObject(e))){r&&U.setFromMatrixPosition(e.matrixWorld).applyMatrix4(F);const t=K.update(e),i=e.material;if(Array.isArray(i)){const r=t.groups;for(let a=0,s=r.length;a<s;a++){const s=r[a],o=i[s.materialIndex];o&&o.visible&&h.push(e,t,o,n,U.z,s)}}else i.visible&&h.push(e,t,i,n,U.z,null)}const i=e.children;for(let e=0,a=i.length;e<a;e++)we(i[e],t,n,r)}function Te(e,t,n,r){const i=e.opaque,s=e.transmissive,o=e.transparent;f.setupLightsView(n),s.length>0&&function(e,t,n){const r=G.isWebGL2;null===N&&(N=new Tm(1,1,{generateMipmaps:!0,type:null!==ce.convert(bp)?bp:mp,minFilter:pp,samples:r&&!0===a?4:0})),m.getDrawingBufferSize(B),r?N.setSize(B.x,B.y):N.setSize(Qp(B.x),Qp(B.y));const i=m.getRenderTarget();m.setRenderTarget(N),m.clear();const s=m.toneMapping;m.toneMapping=0,Se(e,t,n),m.toneMapping=s,q.updateMultisampleRenderTarget(N),q.updateRenderTargetMipmap(N),m.setRenderTarget(i)}(i,t,n),r&&W.viewport(w.copy(r)),i.length>0&&Se(i,t,n),s.length>0&&Se(s,t,n),o.length>0&&Se(o,t,n),W.buffers.depth.setTest(!0),W.buffers.depth.setMask(!0),W.buffers.color.setMask(!0),W.setPolygonOffset(!1)}function Se(e,t,n){const r=!0===t.isScene?t.overrideMaterial:null;for(let i=0,a=e.length;i<a;i++){const a=e[i],s=a.object,o=a.geometry,l=null===r?a.material:r,c=a.group;s.layers.test(n.layers)&&Ee(s,t,n,o,l,c)}}function Ee(e,t,n,r,i,a){e.onBeforeRender(m,t,n,r,i,a),e.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,e.matrixWorld),e.normalMatrix.getNormalMatrix(e.modelViewMatrix),i.onBeforeRender(m,t,n,r,e,a),!0===i.transparent&&2===i.side?(i.side=1,i.needsUpdate=!0,m.renderBufferDirect(n,t,r,i,e,a),i.side=0,i.needsUpdate=!0,m.renderBufferDirect(n,t,r,i,e,a),i.side=2):m.renderBufferDirect(n,t,r,i,e,a),e.onAfterRender(m,t,n,r,i,a)}function Me(e,t,n){!0!==t.isScene&&(t=z);const r=X.get(e),i=f.state.lights,a=f.state.shadowsArray,s=i.state.version,o=Q.getParameters(e,i.state,a,t,n),l=Q.getProgramCacheKey(o);let c=r.programs;r.environment=e.isMeshStandardMaterial?t.environment:null,r.fog=t.fog,r.envMap=(e.isMeshStandardMaterial?Y:$).get(e.envMap||r.environment),void 0===c&&(e.addEventListener("dispose",ve),c=new Map,r.programs=c);let u=c.get(l);if(void 0!==u){if(r.currentProgram===u&&r.lightsStateVersion===s)return Ae(e,o),u}else o.uniforms=Q.getUniforms(e),e.onBuild(n,o,m),e.onBeforeCompile(o,m),u=Q.acquireProgram(o,l),c.set(l,u),r.uniforms=o.uniforms;const h=r.uniforms;(e.isShaderMaterial||e.isRawShaderMaterial)&&!0!==e.clipping||(h.clippingPlanes=re.uniform),Ae(e,o),r.needsLights=function(e){return e.isMeshLambertMaterial||e.isMeshToonMaterial||e.isMeshPhongMaterial||e.isMeshStandardMaterial||e.isShadowMaterial||e.isShaderMaterial&&!0===e.lights}(e),r.lightsStateVersion=s,r.needsLights&&(h.ambientLightColor.value=i.state.ambient,h.lightProbe.value=i.state.probe,h.directionalLights.value=i.state.directional,h.directionalLightShadows.value=i.state.directionalShadow,h.spotLights.value=i.state.spot,h.spotLightShadows.value=i.state.spotShadow,h.rectAreaLights.value=i.state.rectArea,h.ltc_1.value=i.state.rectAreaLTC1,h.ltc_2.value=i.state.rectAreaLTC2,h.pointLights.value=i.state.point,h.pointLightShadows.value=i.state.pointShadow,h.hemisphereLights.value=i.state.hemi,h.directionalShadowMap.value=i.state.directionalShadowMap,h.directionalShadowMatrix.value=i.state.directionalShadowMatrix,h.spotShadowMap.value=i.state.spotShadowMap,h.spotShadowMatrix.value=i.state.spotShadowMatrix,h.pointShadowMap.value=i.state.pointShadowMap,h.pointShadowMatrix.value=i.state.pointShadowMatrix);const d=u.getUniforms(),p=Eb.seqWithValue(d.seq,h);return r.currentProgram=u,r.uniformsList=p,u}function Ae(e,t){const n=X.get(e);n.outputEncoding=t.outputEncoding,n.instancing=t.instancing,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}_e.setAnimationLoop((function(e){ye&&ye(e)})),"undefined"!=typeof self&&_e.setContext(self),this.setAnimationLoop=function(e){ye=e,pe.setAnimationLoop(e),null===e?_e.stop():_e.start()},pe.addEventListener("sessionstart",be),pe.addEventListener("sessionend",xe),this.render=function(e,t){if(void 0!==t&&!0!==t.isCamera)return void console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");if(!0===g)return;!0===e.autoUpdate&&e.updateMatrixWorld(),null===t.parent&&t.updateMatrixWorld(),!0===pe.enabled&&!0===pe.isPresenting&&(!0===pe.cameraAutoUpdate&&pe.updateCamera(t),t=pe.getCamera()),!0===e.isScene&&e.onBeforeRender(m,e,t,b),f=ne.get(e,p.length),f.init(),p.push(f),F.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),D.setFromProjectionMatrix(F),I=this.localClippingEnabled,O=re.init(this.clippingPlanes,I,t),h=te.get(e,d.length),h.init(),d.push(h),we(e,t,0,m.sortObjects),h.finish(),!0===m.sortObjects&&h.sort(C,R),!0===O&&re.beginShadows();const n=f.state.shadowsArray;if(ie.render(n,e,t),!0===O&&re.endShadows(),!0===this.info.autoReset&&this.info.reset(),ae.render(h,e),f.setupLights(m.physicallyCorrectLights),t.isArrayCamera){const n=t.cameras;for(let t=0,r=n.length;t<r;t++){const r=n[t];Te(h,e,r,r.viewport)}}else Te(h,e,t);null!==b&&(q.updateMultisampleRenderTarget(b),q.updateRenderTargetMipmap(b)),!0===e.isScene&&e.onAfterRender(m,e,t),ue.resetDefaultState(),x=-1,_=null,p.pop(),f=p.length>0?p[p.length-1]:null,d.pop(),h=d.length>0?d[d.length-1]:null},this.getActiveCubeFace=function(){return v},this.getActiveMipmapLevel=function(){return y},this.getRenderTarget=function(){return b},this.setRenderTargetTextures=function(e,t,n){X.get(e.texture).__webglTexture=t,X.get(e.depthTexture).__webglTexture=n;const r=X.get(e);r.__hasExternalTextures=!0,r.__hasExternalTextures&&(r.__autoAllocateDepthBuffer=void 0===n,r.__autoAllocateDepthBuffer||!0===V.has("WEBGL_multisampled_render_to_texture")&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),r.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function(e,t){const n=X.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=void 0===t},this.setRenderTarget=function(e,t=0,n=0){b=e,v=t,y=n;let r=!0;if(e){const t=X.get(e);void 0!==t.__useDefaultFramebuffer?(W.bindFramebuffer(36160,null),r=!1):void 0===t.__webglFramebuffer?q.setupRenderTarget(e):t.__hasExternalTextures&&q.rebindTextures(e,X.get(e.texture).__webglTexture,X.get(e.depthTexture).__webglTexture)}let i=null,a=!1,s=!1;if(e){const n=e.texture;(n.isData3DTexture||n.isDataArrayTexture)&&(s=!0);const r=X.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(i=r[t],a=!0):i=G.isWebGL2&&e.samples>0&&!1===q.useMultisampledRTT(e)?X.get(e).__webglMultisampledFramebuffer:r,w.copy(e.viewport),T.copy(e.scissor),S=e.scissorTest}else w.copy(L).multiplyScalar(A).floor(),T.copy(k).multiplyScalar(A).floor(),S=P;if(W.bindFramebuffer(36160,i)&&G.drawBuffers&&r&&W.drawBuffers(e,i),W.viewport(w),W.scissor(T),W.setScissorTest(S),a){const r=X.get(e.texture);he.framebufferTexture2D(36160,36064,34069+t,r.__webglTexture,n)}else if(s){const r=X.get(e.texture),i=t||0;he.framebufferTextureLayer(36160,36064,r.__webglTexture,n||0,i)}x=-1},this.readRenderTargetPixels=function(e,t,n,r,i,a,s){if(!e||!e.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let o=X.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==s&&(o=o[s]),o){W.bindFramebuffer(36160,o);try{const s=e.texture,o=s.format,l=s.type;if(o!==_p&&ce.convert(o)!==he.getParameter(35739))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");const c=l===bp&&(V.has("EXT_color_buffer_half_float")||G.isWebGL2&&V.has("EXT_color_buffer_float"));if(!(l===mp||ce.convert(l)===he.getParameter(35738)||l===yp&&(G.isWebGL2||V.has("OES_texture_float")||V.has("WEBGL_color_buffer_float"))||c))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&he.readPixels(t,n,r,i,ce.convert(o),ce.convert(l),a)}finally{const e=null!==b?X.get(b).__webglFramebuffer:null;W.bindFramebuffer(36160,e)}}},this.copyFramebufferToTexture=function(e,t,n=0){if(!0!==t.isFramebufferTexture)return void console.error("THREE.WebGLRenderer: copyFramebufferToTexture() can only be used with FramebufferTexture.");const r=Math.pow(2,-n),i=Math.floor(t.image.width*r),a=Math.floor(t.image.height*r);q.setTexture2D(t,0),he.copyTexSubImage2D(3553,n,0,0,e.x,e.y,i,a),W.unbindTexture()},this.copyTextureToTexture=function(e,t,n,r=0){const i=t.image.width,a=t.image.height,s=ce.convert(n.format),o=ce.convert(n.type);q.setTexture2D(n,0),he.pixelStorei(37440,n.flipY),he.pixelStorei(37441,n.premultiplyAlpha),he.pixelStorei(3317,n.unpackAlignment),t.isDataTexture?he.texSubImage2D(3553,r,e.x,e.y,i,a,s,o,t.image.data):t.isCompressedTexture?he.compressedTexSubImage2D(3553,r,e.x,e.y,t.mipmaps[0].width,t.mipmaps[0].height,s,t.mipmaps[0].data):he.texSubImage2D(3553,r,e.x,e.y,s,o,t.image),0===r&&n.generateMipmaps&&he.generateMipmap(3553),W.unbindTexture()},this.copyTextureToTexture3D=function(e,t,n,r,i=0){if(m.isWebGL1Renderer)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");const a=e.max.x-e.min.x+1,s=e.max.y-e.min.y+1,o=e.max.z-e.min.z+1,l=ce.convert(r.format),c=ce.convert(r.type);let u;if(r.isData3DTexture)q.setTexture3D(r,0),u=32879;else{if(!r.isDataArrayTexture)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");q.setTexture2DArray(r,0),u=35866}he.pixelStorei(37440,r.flipY),he.pixelStorei(37441,r.premultiplyAlpha),he.pixelStorei(3317,r.unpackAlignment);const h=he.getParameter(3314),f=he.getParameter(32878),d=he.getParameter(3316),p=he.getParameter(3315),g=he.getParameter(32877),v=n.isCompressedTexture?n.mipmaps[0]:n.image;he.pixelStorei(3314,v.width),he.pixelStorei(32878,v.height),he.pixelStorei(3316,e.min.x),he.pixelStorei(3315,e.min.y),he.pixelStorei(32877,e.min.z),n.isDataTexture||n.isData3DTexture?he.texSubImage3D(u,i,t.x,t.y,t.z,a,s,o,l,c,v.data):n.isCompressedTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),he.compressedTexSubImage3D(u,i,t.x,t.y,t.z,a,s,o,l,v.data)):he.texSubImage3D(u,i,t.x,t.y,t.z,a,s,o,l,c,v),he.pixelStorei(3314,h),he.pixelStorei(32878,f),he.pixelStorei(3316,d),he.pixelStorei(3315,p),he.pixelStorei(32877,g),0===i&&r.generateMipmaps&&he.generateMipmap(u),W.unbindTexture()},this.initTexture=function(e){q.setTexture2D(e,0),W.unbindTexture()},this.resetState=function(){v=0,y=0,b=null,W.reset(),ue.reset()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}yx.prototype.isWebGLRenderer=!0,class extends yx{}.prototype.isWebGL1Renderer=!0;class bx{constructor(e,t=25e-5){this.name="",this.color=new mm(e),this.density=t}clone(){return new bx(this.color,this.density)}toJSON(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}bx.prototype.isFogExp2=!0;class xx{constructor(e,t=1,n=1e3){this.name="",this.color=new mm(e),this.near=t,this.far=n}clone(){return new xx(this.color,this.near,this.far)}toJSON(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}}xx.prototype.isFog=!0;class _x extends Rg{constructor(){super(),this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),null!==e.background&&(this.background=e.background.clone()),null!==e.environment&&(this.environment=e.environment.clone()),null!==e.fog&&(this.fog=e.fog.clone()),null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.autoUpdate=e.autoUpdate,this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return null!==this.fog&&(t.object.fog=this.fog.toJSON()),t}}_x.prototype.isScene=!0;class wx{constructor(e,t){this.array=e,this.stride=t,this.count=void 0!==e?e.length/t:0,this.usage=Up,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=$p()}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}setUsage(e){return this.usage=e,this}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,n){e*=this.stride,n*=t.stride;for(let r=0,i=this.stride;r<i;r++)this.array[e+r]=t.array[n+r];return this}set(e,t=0){return this.array.set(e,t),this}clone(e){void 0===e.arrayBuffers&&(e.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=$p()),void 0===e.arrayBuffers[this.array.buffer._uuid]&&(e.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const t=new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]),n=new this.constructor(t,this.stride);return n.setUsage(this.usage),n}onUpload(e){return this.onUploadCallback=e,this}toJSON(e){return void 0===e.arrayBuffers&&(e.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=$p()),void 0===e.arrayBuffers[this.array.buffer._uuid]&&(e.arrayBuffers[this.array.buffer._uuid]=Array.prototype.slice.call(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}wx.prototype.isInterleavedBuffer=!0;const Tx=new Am;class Sx{constructor(e,t,n,r=!1){this.name="",this.data=e,this.itemSize=t,this.offset=n,this.normalized=!0===r}get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(e){this.data.needsUpdate=e}applyMatrix4(e){for(let t=0,n=this.data.count;t<n;t++)Tx.fromBufferAttribute(this,t),Tx.applyMatrix4(e),this.setXYZ(t,Tx.x,Tx.y,Tx.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)Tx.fromBufferAttribute(this,t),Tx.applyNormalMatrix(e),this.setXYZ(t,Tx.x,Tx.y,Tx.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)Tx.fromBufferAttribute(this,t),Tx.transformDirection(e),this.setXYZ(t,Tx.x,Tx.y,Tx.z);return this}setX(e,t){return this.data.array[e*this.data.stride+this.offset]=t,this}setY(e,t){return this.data.array[e*this.data.stride+this.offset+1]=t,this}setZ(e,t){return this.data.array[e*this.data.stride+this.offset+2]=t,this}setW(e,t){return this.data.array[e*this.data.stride+this.offset+3]=t,this}getX(e){return this.data.array[e*this.data.stride+this.offset]}getY(e){return this.data.array[e*this.data.stride+this.offset+1]}getZ(e){return this.data.array[e*this.data.stride+this.offset+2]}getW(e){return this.data.array[e*this.data.stride+this.offset+3]}setXY(e,t,n){return e=e*this.data.stride+this.offset,this.data.array[e+0]=t,this.data.array[e+1]=n,this}setXYZ(e,t,n,r){return e=e*this.data.stride+this.offset,this.data.array[e+0]=t,this.data.array[e+1]=n,this.data.array[e+2]=r,this}setXYZW(e,t,n,r,i){return e=e*this.data.stride+this.offset,this.data.array[e+0]=t,this.data.array[e+1]=n,this.data.array[e+2]=r,this.data.array[e+3]=i,this}clone(e){if(void 0===e){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interlaved buffer attribute will deinterleave buffer data.");const e=[];for(let t=0;t<this.count;t++){const n=t*this.data.stride+this.offset;for(let t=0;t<this.itemSize;t++)e.push(this.data.array[n+t])}return new Xg(new this.array.constructor(e),this.itemSize,this.normalized)}return void 0===e.interleavedBuffers&&(e.interleavedBuffers={}),void 0===e.interleavedBuffers[this.data.uuid]&&(e.interleavedBuffers[this.data.uuid]=this.data.clone(e)),new Sx(e.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}toJSON(e){if(void 0===e){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interlaved buffer attribute will deinterleave buffer data.");const e=[];for(let t=0;t<this.count;t++){const n=t*this.data.stride+this.offset;for(let t=0;t<this.itemSize;t++)e.push(this.data.array[n+t])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:e,normalized:this.normalized}}return void 0===e.interleavedBuffers&&(e.interleavedBuffers={}),void 0===e.interleavedBuffers[this.data.uuid]&&(e.interleavedBuffers[this.data.uuid]=this.data.toJSON(e)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}}Sx.prototype.isInterleavedBufferAttribute=!0;class Ex extends Vg{constructor(e){super(),this.type="SpriteMaterial",this.color=new mm(16777215),this.map=null,this.alphaMap=null,this.rotation=0,this.sizeAttenuation=!0,this.transparent=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.rotation=e.rotation,this.sizeAttenuation=e.sizeAttenuation,this}}let Mx;Ex.prototype.isSpriteMaterial=!0;const Ax=new Am,Cx=new Am,Rx=new Am,Lx=new tm,kx=new tm,Px=new ig,Dx=new Am,Ox=new Am,Ix=new Am,Nx=new tm,Fx=new tm,Bx=new tm;function Ux(e,t,n,r,i,a){Lx.subVectors(e,n).addScalar(.5).multiply(r),void 0!==i?(kx.x=a*Lx.x-i*Lx.y,kx.y=i*Lx.x+a*Lx.y):kx.copy(Lx),e.copy(t),e.x+=kx.x,e.y+=kx.y,e.applyMatrix4(Px)}(class extends Rg{constructor(e){if(super(),this.type="Sprite",void 0===Mx){Mx=new rv;const e=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]),t=new wx(e,5);Mx.setIndex([0,1,2,0,2,3]),Mx.setAttribute("position",new Sx(t,3,0,!1)),Mx.setAttribute("uv",new Sx(t,2,3,!1))}this.geometry=Mx,this.material=void 0!==e?e:new Ex,this.center=new tm(.5,.5)}raycast(e,t){null===e.camera&&console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'),Cx.setFromMatrixScale(this.matrixWorld),Px.copy(e.camera.matrixWorld),this.modelViewMatrix.multiplyMatrices(e.camera.matrixWorldInverse,this.matrixWorld),Rx.setFromMatrixPosition(this.modelViewMatrix),e.camera.isPerspectiveCamera&&!1===this.material.sizeAttenuation&&Cx.multiplyScalar(-Rx.z);const n=this.material.rotation;let r,i;0!==n&&(i=Math.cos(n),r=Math.sin(n));const a=this.center;Ux(Dx.set(-.5,-.5,0),Rx,a,Cx,r,i),Ux(Ox.set(.5,-.5,0),Rx,a,Cx,r,i),Ux(Ix.set(.5,.5,0),Rx,a,Cx,r,i),Nx.set(0,0),Fx.set(1,0),Bx.set(1,1);let s=e.ray.intersectTriangle(Dx,Ox,Ix,!1,Ax);if(null===s&&(Ux(Ox.set(-.5,.5,0),Rx,a,Cx,r,i),Fx.set(0,1),s=e.ray.intersectTriangle(Dx,Ix,Ox,!1,Ax),null===s))return;const o=e.ray.origin.distanceTo(Ax);o<e.near||o>e.far||t.push({distance:o,point:Ax.clone(),uv:zg.getUV(Ax,Dx,Ox,Ix,Nx,Fx,Bx,new tm),face:null,object:this})}copy(e){return super.copy(e),void 0!==e.center&&this.center.copy(e.center),this.material=e.material,this}}).prototype.isSprite=!0;const zx=new Am,Hx=new wm,Vx=new wm,Gx=new Am,Wx=new ig;class jx extends _v{constructor(e,t){super(e,t),this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new ig,this.bindMatrixInverse=new ig}copy(e){return super.copy(e),this.bindMode=e.bindMode,this.bindMatrix.copy(e.bindMatrix),this.bindMatrixInverse.copy(e.bindMatrixInverse),this.skeleton=e.skeleton,this}bind(e,t){this.skeleton=e,void 0===t&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),t=this.matrixWorld),this.bindMatrix.copy(t),this.bindMatrixInverse.copy(t).invert()}pose(){this.skeleton.pose()}normalizeSkinWeights(){const e=new wm,t=this.geometry.attributes.skinWeight;for(let n=0,r=t.count;n<r;n++){e.fromBufferAttribute(t,n);const r=1/e.manhattanLength();r!==1/0?e.multiplyScalar(r):e.set(1,0,0,0),t.setXYZW(n,e.x,e.y,e.z,e.w)}}updateMatrixWorld(e){super.updateMatrixWorld(e),"attached"===this.bindMode?this.bindMatrixInverse.copy(this.matrixWorld).invert():"detached"===this.bindMode?this.bindMatrixInverse.copy(this.bindMatrix).invert():console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)}boneTransform(e,t){const n=this.skeleton,r=this.geometry;Hx.fromBufferAttribute(r.attributes.skinIndex,e),Vx.fromBufferAttribute(r.attributes.skinWeight,e),zx.copy(t).applyMatrix4(this.bindMatrix),t.set(0,0,0);for(let e=0;e<4;e++){const r=Vx.getComponent(e);if(0!==r){const i=Hx.getComponent(e);Wx.multiplyMatrices(n.bones[i].matrixWorld,n.boneInverses[i]),t.addScaledVector(Gx.copy(zx).applyMatrix4(Wx),r)}}return t.applyMatrix4(this.bindMatrixInverse)}}jx.prototype.isSkinnedMesh=!0;(class extends Rg{constructor(){super(),this.type="Bone"}}).prototype.isBone=!0;(class extends _m{constructor(e=null,t=1,n=1,r,i,a,s,o,l=1003,c=1003,u,h){super(null,a,s,o,l,c,r,i,u,h),this.image={data:e,width:t,height:n},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}).prototype.isDataTexture=!0;class Xx extends Xg{constructor(e,t,n,r=1){"number"==typeof n&&(r=n,n=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),super(e,t,n),this.meshPerAttribute=r}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}toJSON(){const e=super.toJSON();return e.meshPerAttribute=this.meshPerAttribute,e.isInstancedBufferAttribute=!0,e}}Xx.prototype.isInstancedBufferAttribute=!0;const qx=new ig,$x=new ig,Yx=[],Zx=new _v;(class extends _v{constructor(e,t,n){super(e,t),this.instanceMatrix=new Xx(new Float32Array(16*n),16),this.instanceColor=null,this.count=n,this.frustumCulled=!1}copy(e){return super.copy(e),this.instanceMatrix.copy(e.instanceMatrix),null!==e.instanceColor&&(this.instanceColor=e.instanceColor.clone()),this.count=e.count,this}getColorAt(e,t){t.fromArray(this.instanceColor.array,3*e)}getMatrixAt(e,t){t.fromArray(this.instanceMatrix.array,16*e)}raycast(e,t){const n=this.matrixWorld,r=this.count;if(Zx.geometry=this.geometry,Zx.material=this.material,void 0!==Zx.material)for(let i=0;i<r;i++){this.getMatrixAt(i,qx),$x.multiplyMatrices(n,qx),Zx.matrixWorld=$x,Zx.raycast(e,Yx);for(let e=0,n=Yx.length;e<n;e++){const n=Yx[e];n.instanceId=i,n.object=this,t.push(n)}Yx.length=0}}setColorAt(e,t){null===this.instanceColor&&(this.instanceColor=new Xx(new Float32Array(3*this.instanceMatrix.count),3)),t.toArray(this.instanceColor.array,3*e)}setMatrixAt(e,t){t.toArray(this.instanceMatrix.array,16*e)}updateMorphTargets(){}dispose(){this.dispatchEvent({type:"dispose"})}}).prototype.isInstancedMesh=!0;class Jx extends Vg{constructor(e){super(),this.type="LineBasicMaterial",this.color=new mm(16777215),this.linewidth=1,this.linecap="round",this.linejoin="round",this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this}}Jx.prototype.isLineBasicMaterial=!0;const Kx=new Am,Qx=new Am,e_=new ig,t_=new rg,n_=new Ym;class r_ extends Rg{constructor(e=new rv,t=new Jx){super(),this.type="Line",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e){return super.copy(e),this.material=e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;if(e.isBufferGeometry)if(null===e.index){const t=e.attributes.position,n=[0];for(let e=1,r=t.count;e<r;e++)Kx.fromBufferAttribute(t,e-1),Qx.fromBufferAttribute(t,e),n[e]=n[e-1],n[e]+=Kx.distanceTo(Qx);e.setAttribute("lineDistance",new Yg(n,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else e.isGeometry&&console.error("THREE.Line.computeLineDistances() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");return this}raycast(e,t){const n=this.geometry,r=this.matrixWorld,i=e.params.Line.threshold,a=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),n_.copy(n.boundingSphere),n_.applyMatrix4(r),n_.radius+=i,!1===e.ray.intersectsSphere(n_))return;e_.copy(r).invert(),t_.copy(e.ray).applyMatrix4(e_);const s=i/((this.scale.x+this.scale.y+this.scale.z)/3),o=s*s,l=new Am,c=new Am,u=new Am,h=new Am,f=this.isLineSegments?2:1;if(n.isBufferGeometry){const r=n.index,i=n.attributes.position;if(null!==r)for(let n=Math.max(0,a.start),s=Math.min(r.count,a.start+a.count)-1;n<s;n+=f){const a=r.getX(n),s=r.getX(n+1);if(l.fromBufferAttribute(i,a),c.fromBufferAttribute(i,s),t_.distanceSqToSegment(l,c,h,u)>o)continue;h.applyMatrix4(this.matrixWorld);const f=e.ray.origin.distanceTo(h);f<e.near||f>e.far||t.push({distance:f,point:u.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}else for(let n=Math.max(0,a.start),r=Math.min(i.count,a.start+a.count)-1;n<r;n+=f){if(l.fromBufferAttribute(i,n),c.fromBufferAttribute(i,n+1),t_.distanceSqToSegment(l,c,h,u)>o)continue;h.applyMatrix4(this.matrixWorld);const r=e.ray.origin.distanceTo(h);r<e.near||r>e.far||t.push({distance:r,point:u.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}else n.isGeometry&&console.error("THREE.Line.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}updateMorphTargets(){const e=this.geometry;if(e.isBufferGeometry){const t=e.morphAttributes,n=Object.keys(t);if(n.length>0){const e=t[n[0]];if(void 0!==e){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,n=e.length;t<n;t++){const n=e[t].name||String(t);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=t}}}}else{const t=e.morphTargets;void 0!==t&&t.length>0&&console.error("THREE.Line.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}r_.prototype.isLine=!0;const i_=new Am,a_=new Am;class s_ extends r_{constructor(e,t){super(e,t),this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(e.isBufferGeometry)if(null===e.index){const t=e.attributes.position,n=[];for(let e=0,r=t.count;e<r;e+=2)i_.fromBufferAttribute(t,e),a_.fromBufferAttribute(t,e+1),n[e]=0===e?0:n[e-1],n[e+1]=n[e]+i_.distanceTo(a_);e.setAttribute("lineDistance",new Yg(n,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else e.isGeometry&&console.error("THREE.LineSegments.computeLineDistances() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");return this}}s_.prototype.isLineSegments=!0;(class extends r_{constructor(e,t){super(e,t),this.type="LineLoop"}}).prototype.isLineLoop=!0;class o_ extends Vg{constructor(e){super(),this.type="PointsMaterial",this.color=new mm(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.size=e.size,this.sizeAttenuation=e.sizeAttenuation,this}}o_.prototype.isPointsMaterial=!0;const l_=new ig,c_=new rg,u_=new Ym,h_=new Am;class f_ extends Rg{constructor(e=new rv,t=new o_){super(),this.type="Points",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e){return super.copy(e),this.material=e.material,this.geometry=e.geometry,this}raycast(e,t){const n=this.geometry,r=this.matrixWorld,i=e.params.Points.threshold,a=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),u_.copy(n.boundingSphere),u_.applyMatrix4(r),u_.radius+=i,!1===e.ray.intersectsSphere(u_))return;l_.copy(r).invert(),c_.copy(e.ray).applyMatrix4(l_);const s=i/((this.scale.x+this.scale.y+this.scale.z)/3),o=s*s;if(n.isBufferGeometry){const i=n.index,s=n.attributes.position;if(null!==i)for(let n=Math.max(0,a.start),l=Math.min(i.count,a.start+a.count);n<l;n++){const a=i.getX(n);h_.fromBufferAttribute(s,a),d_(h_,a,o,r,e,t,this)}else for(let n=Math.max(0,a.start),i=Math.min(s.count,a.start+a.count);n<i;n++)h_.fromBufferAttribute(s,n),d_(h_,n,o,r,e,t,this)}else console.error("THREE.Points.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}updateMorphTargets(){const e=this.geometry;if(e.isBufferGeometry){const t=e.morphAttributes,n=Object.keys(t);if(n.length>0){const e=t[n[0]];if(void 0!==e){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,n=e.length;t<n;t++){const n=e[t].name||String(t);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=t}}}}else{const t=e.morphTargets;void 0!==t&&t.length>0&&console.error("THREE.Points.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}function d_(e,t,n,r,i,a,s){const o=c_.distanceSqToPoint(e);if(o<n){const n=new Am;c_.closestPointToPoint(e,n),n.applyMatrix4(r);const l=i.ray.origin.distanceTo(n);if(l<i.near||l>i.far)return;a.push({distance:l,distanceToRay:Math.sqrt(o),point:n,index:t,face:null,object:s})}}f_.prototype.isPoints=!0,class extends _m{constructor(e,t,n,r,i,a,s,o,l){super(e,t,n,r,i,a,s,o,l),this.minFilter=void 0!==a?a:dp,this.magFilter=void 0!==i?i:dp,this.generateMipmaps=!1;const c=this;"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback((function t(){c.needsUpdate=!0,e.requestVideoFrameCallback(t)}))}clone(){return new this.constructor(this.image).copy(this)}update(){const e=this.image;!1=="requestVideoFrameCallback"in e&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}.prototype.isVideoTexture=!0,class extends _m{constructor(e,t,n){super({width:e,height:t}),this.format=n,this.magFilter=fp,this.minFilter=fp,this.generateMipmaps=!1,this.needsUpdate=!0}}.prototype.isFramebufferTexture=!0;(class extends _m{constructor(e,t,n,r,i,a,s,o,l,c,u,h){super(null,a,s,o,l,c,r,i,u,h),this.image={width:t,height:n},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}}).prototype.isCompressedTexture=!0,class extends _m{constructor(e,t,n,r,i,a,s,o,l){super(e,t,n,r,i,a,s,o,l),this.needsUpdate=!0}}.prototype.isCanvasTexture=!0;class p_{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(e,t){const n=this.getUtoTmapping(e);return this.getPoint(n,t)}getPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}getSpacedPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const t=[];let n,r=this.getPoint(0),i=0;t.push(0);for(let a=1;a<=e;a++)n=this.getPoint(a/e),i+=n.distanceTo(r),t.push(i),r=n;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t){const n=this.getLengths();let r=0;const i=n.length;let a;a=t||e*n[i-1];let s,o=0,l=i-1;for(;o<=l;)if(r=Math.floor(o+(l-o)/2),s=n[r]-a,s<0)o=r+1;else{if(!(s>0)){l=r;break}l=r-1}if(r=l,n[r]===a)return r/(i-1);const c=n[r];return(r+(a-c)/(n[r+1]-c))/(i-1)}getTangent(e,t){const n=1e-4;let r=e-n,i=e+n;r<0&&(r=0),i>1&&(i=1);const a=this.getPoint(r),s=this.getPoint(i),o=t||(a.isVector2?new tm:new Am);return o.copy(s).sub(a).normalize(),o}getTangentAt(e,t){const n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t){const n=new Am,r=[],i=[],a=[],s=new Am,o=new ig;for(let t=0;t<=e;t++){const n=t/e;r[t]=this.getTangentAt(n,new Am)}i[0]=new Am,a[0]=new Am;let l=Number.MAX_VALUE;const c=Math.abs(r[0].x),u=Math.abs(r[0].y),h=Math.abs(r[0].z);c<=l&&(l=c,n.set(1,0,0)),u<=l&&(l=u,n.set(0,1,0)),h<=l&&n.set(0,0,1),s.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],s),a[0].crossVectors(r[0],i[0]);for(let t=1;t<=e;t++){if(i[t]=i[t-1].clone(),a[t]=a[t-1].clone(),s.crossVectors(r[t-1],r[t]),s.length()>Number.EPSILON){s.normalize();const e=Math.acos(Yp(r[t-1].dot(r[t]),-1,1));i[t].applyMatrix4(o.makeRotationAxis(s,e))}a[t].crossVectors(r[t],i[t])}if(!0===t){let t=Math.acos(Yp(i[0].dot(i[e]),-1,1));t/=e,r[0].dot(s.crossVectors(i[0],i[e]))>0&&(t=-t);for(let n=1;n<=e;n++)i[n].applyMatrix4(o.makeRotationAxis(r[n],t*n)),a[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:a}}clone(){return(new this.constructor).copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class m_ extends p_{constructor(e=0,t=0,n=1,r=1,i=0,a=2*Math.PI,s=!1,o=0){super(),this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=a,this.aClockwise=s,this.aRotation=o}getPoint(e,t){const n=t||new tm,r=2*Math.PI;let i=this.aEndAngle-this.aStartAngle;const a=Math.abs(i)<Number.EPSILON;for(;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);const s=this.aStartAngle+e*i;let o=this.aX+this.xRadius*Math.cos(s),l=this.aY+this.yRadius*Math.sin(s);if(0!==this.aRotation){const e=Math.cos(this.aRotation),t=Math.sin(this.aRotation),n=o-this.aX,r=l-this.aY;o=n*e-r*t+this.aX,l=n*t+r*e+this.aY}return n.set(o,l)}copy(e){return super.copy(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}toJSON(){const e=super.toJSON();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}fromJSON(e){return super.fromJSON(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}}m_.prototype.isEllipseCurve=!0;class g_ extends m_{constructor(e,t,n,r,i,a){super(e,t,n,n,r,i,a),this.type="ArcCurve"}}function v_(){let e=0,t=0,n=0,r=0;function i(i,a,s,o){e=i,t=s,n=-3*i+3*a-2*s-o,r=2*i-2*a+s+o}return{initCatmullRom:function(e,t,n,r,a){i(t,n,a*(n-e),a*(r-t))},initNonuniformCatmullRom:function(e,t,n,r,a,s,o){let l=(t-e)/a-(n-e)/(a+s)+(n-t)/s,c=(n-t)/s-(r-t)/(s+o)+(r-n)/o;l*=s,c*=s,i(t,n,l,c)},calc:function(i){const a=i*i;return e+t*i+n*a+r*(a*i)}}}g_.prototype.isArcCurve=!0;const y_=new Am,b_=new v_,x_=new v_,__=new v_;class w_ extends p_{constructor(e=[],t=!1,n="centripetal",r=.5){super(),this.type="CatmullRomCurve3",this.points=e,this.closed=t,this.curveType=n,this.tension=r}getPoint(e,t=new Am){const n=t,r=this.points,i=r.length,a=(i-(this.closed?0:1))*e;let s,o,l=Math.floor(a),c=a-l;this.closed?l+=l>0?0:(Math.floor(Math.abs(l)/i)+1)*i:0===c&&l===i-1&&(l=i-2,c=1),this.closed||l>0?s=r[(l-1)%i]:(y_.subVectors(r[0],r[1]).add(r[0]),s=y_);const u=r[l%i],h=r[(l+1)%i];if(this.closed||l+2<i?o=r[(l+2)%i]:(y_.subVectors(r[i-1],r[i-2]).add(r[i-1]),o=y_),"centripetal"===this.curveType||"chordal"===this.curveType){const e="chordal"===this.curveType?.5:.25;let t=Math.pow(s.distanceToSquared(u),e),n=Math.pow(u.distanceToSquared(h),e),r=Math.pow(h.distanceToSquared(o),e);n<1e-4&&(n=1),t<1e-4&&(t=n),r<1e-4&&(r=n),b_.initNonuniformCatmullRom(s.x,u.x,h.x,o.x,t,n,r),x_.initNonuniformCatmullRom(s.y,u.y,h.y,o.y,t,n,r),__.initNonuniformCatmullRom(s.z,u.z,h.z,o.z,t,n,r)}else"catmullrom"===this.curveType&&(b_.initCatmullRom(s.x,u.x,h.x,o.x,this.tension),x_.initCatmullRom(s.y,u.y,h.y,o.y,this.tension),__.initCatmullRom(s.z,u.z,h.z,o.z,this.tension));return n.set(b_.calc(c),x_.calc(c),__.calc(c)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push(n.clone())}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}toJSON(){const e=super.toJSON();e.points=[];for(let t=0,n=this.points.length;t<n;t++){const n=this.points[t];e.points.push(n.toArray())}return e.closed=this.closed,e.curveType=this.curveType,e.tension=this.tension,e}fromJSON(e){super.fromJSON(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push((new Am).fromArray(n))}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}}function T_(e,t,n,r,i){const a=.5*(r-t),s=.5*(i-n),o=e*e;return(2*n-2*r+a+s)*(e*o)+(-3*n+3*r-2*a-s)*o+a*e+n}function S_(e,t,n,r){return function(e,t){const n=1-e;return n*n*t}(e,t)+function(e,t){return 2*(1-e)*e*t}(e,n)+function(e,t){return e*e*t}(e,r)}function E_(e,t,n,r,i){return function(e,t){const n=1-e;return n*n*n*t}(e,t)+function(e,t){const n=1-e;return 3*n*n*e*t}(e,n)+function(e,t){return 3*(1-e)*e*e*t}(e,r)+function(e,t){return e*e*e*t}(e,i)}w_.prototype.isCatmullRomCurve3=!0;class M_ extends p_{constructor(e=new tm,t=new tm,n=new tm,r=new tm){super(),this.type="CubicBezierCurve",this.v0=e,this.v1=t,this.v2=n,this.v3=r}getPoint(e,t=new tm){const n=t,r=this.v0,i=this.v1,a=this.v2,s=this.v3;return n.set(E_(e,r.x,i.x,a.x,s.x),E_(e,r.y,i.y,a.y,s.y)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}M_.prototype.isCubicBezierCurve=!0;class A_ extends p_{constructor(e=new Am,t=new Am,n=new Am,r=new Am){super(),this.type="CubicBezierCurve3",this.v0=e,this.v1=t,this.v2=n,this.v3=r}getPoint(e,t=new Am){const n=t,r=this.v0,i=this.v1,a=this.v2,s=this.v3;return n.set(E_(e,r.x,i.x,a.x,s.x),E_(e,r.y,i.y,a.y,s.y),E_(e,r.z,i.z,a.z,s.z)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}A_.prototype.isCubicBezierCurve3=!0;class C_ extends p_{constructor(e=new tm,t=new tm){super(),this.type="LineCurve",this.v1=e,this.v2=t}getPoint(e,t=new tm){const n=t;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}getPointAt(e,t){return this.getPoint(e,t)}getTangent(e,t){const n=t||new tm;return n.copy(this.v2).sub(this.v1).normalize(),n}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}C_.prototype.isLineCurve=!0;class R_ extends p_{constructor(e=new tm,t=new tm,n=new tm){super(),this.type="QuadraticBezierCurve",this.v0=e,this.v1=t,this.v2=n}getPoint(e,t=new tm){const n=t,r=this.v0,i=this.v1,a=this.v2;return n.set(S_(e,r.x,i.x,a.x),S_(e,r.y,i.y,a.y)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}R_.prototype.isQuadraticBezierCurve=!0;class L_ extends p_{constructor(e=new Am,t=new Am,n=new Am){super(),this.type="QuadraticBezierCurve3",this.v0=e,this.v1=t,this.v2=n}getPoint(e,t=new Am){const n=t,r=this.v0,i=this.v1,a=this.v2;return n.set(S_(e,r.x,i.x,a.x),S_(e,r.y,i.y,a.y),S_(e,r.z,i.z,a.z)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}L_.prototype.isQuadraticBezierCurve3=!0;class k_ extends p_{constructor(e=[]){super(),this.type="SplineCurve",this.points=e}getPoint(e,t=new tm){const n=t,r=this.points,i=(r.length-1)*e,a=Math.floor(i),s=i-a,o=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(T_(s,o.x,l.x,c.x,u.x),T_(s,o.y,l.y,c.y,u.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push(n.clone())}return this}toJSON(){const e=super.toJSON();e.points=[];for(let t=0,n=this.points.length;t<n;t++){const n=this.points[t];e.points.push(n.toArray())}return e}fromJSON(e){super.fromJSON(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push((new tm).fromArray(n))}return this}}k_.prototype.isSplineCurve=!0;var P_=Object.freeze({__proto__:null,ArcCurve:g_,CatmullRomCurve3:w_,CubicBezierCurve:M_,CubicBezierCurve3:A_,EllipseCurve:m_,LineCurve:C_,LineCurve3:class extends p_{constructor(e=new Am,t=new Am){super(),this.type="LineCurve3",this.isLineCurve3=!0,this.v1=e,this.v2=t}getPoint(e,t=new Am){const n=t;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}getPointAt(e,t){return this.getPoint(e,t)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}},QuadraticBezierCurve:R_,QuadraticBezierCurve3:L_,SplineCurve:k_});class D_ extends p_{constructor(){super(),this.type="CurvePath",this.curves=[],this.autoClose=!1}add(e){this.curves.push(e)}closePath(){const e=this.curves[0].getPoint(0),t=this.curves[this.curves.length-1].getPoint(1);e.equals(t)||this.curves.push(new C_(t,e))}getPoint(e,t){const n=e*this.getLength(),r=this.getCurveLengths();let i=0;for(;i<r.length;){if(r[i]>=n){const e=r[i]-n,a=this.curves[i],s=a.getLength(),o=0===s?0:1-e/s;return a.getPointAt(o,t)}i++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let t=0;for(let n=0,r=this.curves.length;n<r;n++)t+=this.curves[n].getLength(),e.push(t);return this.cacheLengths=e,e}getSpacedPoints(e=40){const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return this.autoClose&&t.push(t[0]),t}getPoints(e=12){const t=[];let n;for(let r=0,i=this.curves;r<i.length;r++){const a=i[r],s=a.isEllipseCurve?2*e:a.isLineCurve||a.isLineCurve3?1:a.isSplineCurve?e*a.points.length:e,o=a.getPoints(s);for(let e=0;e<o.length;e++){const r=o[e];n&&n.equals(r)||(t.push(r),n=r)}}return this.autoClose&&t.length>1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,n=e.curves.length;t<n;t++){const n=e.curves[t];this.curves.push(n.clone())}return this.autoClose=e.autoClose,this}toJSON(){const e=super.toJSON();e.autoClose=this.autoClose,e.curves=[];for(let t=0,n=this.curves.length;t<n;t++){const n=this.curves[t];e.curves.push(n.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.autoClose=e.autoClose,this.curves=[];for(let t=0,n=e.curves.length;t<n;t++){const n=e.curves[t];this.curves.push((new P_[n.type]).fromJSON(n))}return this}}class O_ extends D_{constructor(e){super(),this.type="Path",this.currentPoint=new tm,e&&this.setFromPoints(e)}setFromPoints(e){this.moveTo(e[0].x,e[0].y);for(let t=1,n=e.length;t<n;t++)this.lineTo(e[t].x,e[t].y);return this}moveTo(e,t){return this.currentPoint.set(e,t),this}lineTo(e,t){const n=new C_(this.currentPoint.clone(),new tm(e,t));return this.curves.push(n),this.currentPoint.set(e,t),this}quadraticCurveTo(e,t,n,r){const i=new R_(this.currentPoint.clone(),new tm(e,t),new tm(n,r));return this.curves.push(i),this.currentPoint.set(n,r),this}bezierCurveTo(e,t,n,r,i,a){const s=new M_(this.currentPoint.clone(),new tm(e,t),new tm(n,r),new tm(i,a));return this.curves.push(s),this.currentPoint.set(i,a),this}splineThru(e){const t=[this.currentPoint.clone()].concat(e),n=new k_(t);return this.curves.push(n),this.currentPoint.copy(e[e.length-1]),this}arc(e,t,n,r,i,a){const s=this.currentPoint.x,o=this.currentPoint.y;return this.absarc(e+s,t+o,n,r,i,a),this}absarc(e,t,n,r,i,a){return this.absellipse(e,t,n,n,r,i,a),this}ellipse(e,t,n,r,i,a,s,o){const l=this.currentPoint.x,c=this.currentPoint.y;return this.absellipse(e+l,t+c,n,r,i,a,s,o),this}absellipse(e,t,n,r,i,a,s,o){const l=new m_(e,t,n,r,i,a,s,o);if(this.curves.length>0){const e=l.getPoint(0);e.equals(this.currentPoint)||this.lineTo(e.x,e.y)}this.curves.push(l);const c=l.getPoint(1);return this.currentPoint.copy(c),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}new Am,new Am,new Am,new zg;class I_ extends O_{constructor(e){super(e),this.uuid=$p(),this.type="Shape",this.holes=[]}getPointsHoles(e){const t=[];for(let n=0,r=this.holes.length;n<r;n++)t[n]=this.holes[n].getPoints(e);return t}extractPoints(e){return{shape:this.getPoints(e),holes:this.getPointsHoles(e)}}copy(e){super.copy(e),this.holes=[];for(let t=0,n=e.holes.length;t<n;t++){const n=e.holes[t];this.holes.push(n.clone())}return this}toJSON(){const e=super.toJSON();e.uuid=this.uuid,e.holes=[];for(let t=0,n=this.holes.length;t<n;t++){const n=this.holes[t];e.holes.push(n.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.uuid=e.uuid,this.holes=[];for(let t=0,n=e.holes.length;t<n;t++){const n=e.holes[t];this.holes.push((new O_).fromJSON(n))}return this}}function N_(e,t,n,r,i){let a,s;if(i===function(e,t,n,r){let i=0;for(let a=t,s=n-r;a<n;a+=r)i+=(e[s]-e[a])*(e[a+1]+e[s+1]),s=a;return i}(e,t,n,r)>0)for(a=t;a<n;a+=r)s=rw(a,e[a],e[a+1],s);else for(a=n-r;a>=t;a-=r)s=rw(a,e[a],e[a+1],s);return s&&J_(s,s.next)&&(iw(s),s=s.next),s}function F_(e,t){if(!e)return e;t||(t=e);let n,r=e;do{if(n=!1,r.steiner||!J_(r,r.next)&&0!==Z_(r.prev,r,r.next))r=r.next;else{if(iw(r),r=t=r.prev,r===r.next)break;n=!0}}while(n||r!==t);return t}function B_(e,t,n,r,i,a,s){if(!e)return;!s&&a&&function(e,t,n,r){let i=e;do{null===i.z&&(i.z=X_(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){let t,n,r,i,a,s,o,l,c=1;do{for(n=e,e=null,a=null,s=0;n;){for(s++,r=n,o=0,t=0;t<c&&(o++,r=r.nextZ,r);t++);for(l=c;o>0||l>0&&r;)0!==o&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,o--):(i=r,r=r.nextZ,l--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;n=r}a.nextZ=null,c*=2}while(s>1)}(i)}(e,r,i,a);let o,l,c=e;for(;e.prev!==e.next;)if(o=e.prev,l=e.next,a?z_(e,r,i,a):U_(e))t.push(o.i/n),t.push(e.i/n),t.push(l.i/n),iw(e),e=l.next,c=l.next;else if((e=l)===c){s?1===s?B_(e=H_(F_(e),t,n),t,n,r,i,a,2):2===s&&V_(e,t,n,r,i,a):B_(F_(e),t,n,r,i,a,1);break}}function U_(e){const t=e.prev,n=e,r=e.next;if(Z_(t,n,r)>=0)return!1;let i=e.next.next;for(;i!==e.prev;){if($_(t.x,t.y,n.x,n.y,r.x,r.y,i.x,i.y)&&Z_(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function z_(e,t,n,r){const i=e.prev,a=e,s=e.next;if(Z_(i,a,s)>=0)return!1;const o=i.x<a.x?i.x<s.x?i.x:s.x:a.x<s.x?a.x:s.x,l=i.y<a.y?i.y<s.y?i.y:s.y:a.y<s.y?a.y:s.y,c=i.x>a.x?i.x>s.x?i.x:s.x:a.x>s.x?a.x:s.x,u=i.y>a.y?i.y>s.y?i.y:s.y:a.y>s.y?a.y:s.y,h=X_(o,l,t,n,r),f=X_(c,u,t,n,r);let d=e.prevZ,p=e.nextZ;for(;d&&d.z>=h&&p&&p.z<=f;){if(d!==e.prev&&d!==e.next&&$_(i.x,i.y,a.x,a.y,s.x,s.y,d.x,d.y)&&Z_(d.prev,d,d.next)>=0)return!1;if(d=d.prevZ,p!==e.prev&&p!==e.next&&$_(i.x,i.y,a.x,a.y,s.x,s.y,p.x,p.y)&&Z_(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(;d&&d.z>=h;){if(d!==e.prev&&d!==e.next&&$_(i.x,i.y,a.x,a.y,s.x,s.y,d.x,d.y)&&Z_(d.prev,d,d.next)>=0)return!1;d=d.prevZ}for(;p&&p.z<=f;){if(p!==e.prev&&p!==e.next&&$_(i.x,i.y,a.x,a.y,s.x,s.y,p.x,p.y)&&Z_(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function H_(e,t,n){let r=e;do{const i=r.prev,a=r.next.next;!J_(i,a)&&K_(i,r,r.next,a)&&tw(i,a)&&tw(a,i)&&(t.push(i.i/n),t.push(r.i/n),t.push(a.i/n),iw(r),iw(r.next),r=e=a),r=r.next}while(r!==e);return F_(r)}function V_(e,t,n,r,i,a){let s=e;do{let e=s.next.next;for(;e!==s.prev;){if(s.i!==e.i&&Y_(s,e)){let o=nw(s,e);return s=F_(s,s.next),o=F_(o,o.next),B_(s,t,n,r,i,a),void B_(o,t,n,r,i,a)}e=e.next}s=s.next}while(s!==e)}function G_(e,t){return e.x-t.x}function W_(e,t){if(t=function(e,t){let n=t;const r=e.x,i=e.y;let a,s=-1/0;do{if(i<=n.y&&i>=n.next.y&&n.next.y!==n.y){const e=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(e<=r&&e>s){if(s=e,e===r){if(i===n.y)return n;if(i===n.next.y)return n.next}a=n.x<n.next.x?n:n.next}}n=n.next}while(n!==t);if(!a)return null;if(r===s)return a;const o=a,l=a.x,c=a.y;let u,h=1/0;n=a;do{r>=n.x&&n.x>=l&&r!==n.x&&$_(i<c?r:s,i,l,c,i<c?s:r,i,n.x,n.y)&&(u=Math.abs(i-n.y)/(r-n.x),tw(n,e)&&(u<h||u===h&&(n.x>a.x||n.x===a.x&&j_(a,n)))&&(a=n,h=u)),n=n.next}while(n!==o);return a}(e,t),t){const n=nw(t,e);F_(t,t.next),F_(n,n.next)}}function j_(e,t){return Z_(e.prev,e,t.prev)<0&&Z_(t.next,e,e.next)<0}function X_(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function q_(e){let t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function $_(e,t,n,r,i,a,s,o){return(i-s)*(t-o)-(e-s)*(a-o)>=0&&(e-s)*(r-o)-(n-s)*(t-o)>=0&&(n-s)*(a-o)-(i-s)*(r-o)>=0}function Y_(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){let n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&K_(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(tw(e,t)&&tw(t,e)&&function(e,t){let n=e,r=!1;const i=(e.x+t.x)/2,a=(e.y+t.y)/2;do{n.y>a!=n.next.y>a&&n.next.y!==n.y&&i<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(Z_(e.prev,e,t.prev)||Z_(e,t.prev,t))||J_(e,t)&&Z_(e.prev,e,e.next)>0&&Z_(t.prev,t,t.next)>0)}function Z_(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function J_(e,t){return e.x===t.x&&e.y===t.y}function K_(e,t,n,r){const i=ew(Z_(e,t,n)),a=ew(Z_(e,t,r)),s=ew(Z_(n,r,e)),o=ew(Z_(n,r,t));return i!==a&&s!==o||!(0!==i||!Q_(e,n,t))||!(0!==a||!Q_(e,r,t))||!(0!==s||!Q_(n,e,r))||!(0!==o||!Q_(n,t,r))}function Q_(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function ew(e){return e>0?1:e<0?-1:0}function tw(e,t){return Z_(e.prev,e,e.next)<0?Z_(e,t,e.next)>=0&&Z_(e,e.prev,t)>=0:Z_(e,t,e.prev)<0||Z_(e,e.next,t)<0}function nw(e,t){const n=new aw(e.i,e.x,e.y),r=new aw(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function rw(e,t,n,r){const i=new aw(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function iw(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function aw(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}class sw{static area(e){const t=e.length;let n=0;for(let r=t-1,i=0;i<t;r=i++)n+=e[r].x*e[i].y-e[i].x*e[r].y;return.5*n}static isClockWise(e){return sw.area(e)<0}static triangulateShape(e,t){const n=[],r=[],i=[];ow(e),lw(n,e);let a=e.length;t.forEach(ow);for(let e=0;e<t.length;e++)r.push(a),a+=t[e].length,lw(n,t[e]);const s=function(e,t,n=2){const r=t&&t.length,i=r?t[0]*n:e.length;let a=N_(e,0,i,n,!0);const s=[];if(!a||a.next===a.prev)return s;let o,l,c,u,h,f,d;if(r&&(a=function(e,t,n,r){const i=[];let a,s,o,l,c;for(a=0,s=t.length;a<s;a++)o=t[a]*r,l=a<s-1?t[a+1]*r:e.length,c=N_(e,o,l,r,!1),c===c.next&&(c.steiner=!0),i.push(q_(c));for(i.sort(G_),a=0;a<i.length;a++)W_(i[a],n),n=F_(n,n.next);return n}(e,t,a,n)),e.length>80*n){o=c=e[0],l=u=e[1];for(let t=n;t<i;t+=n)h=e[t],f=e[t+1],h<o&&(o=h),f<l&&(l=f),h>c&&(c=h),f>u&&(u=f);d=Math.max(c-o,u-l),d=0!==d?1/d:0}return B_(a,s,n,o,l,d),s}(n,r);for(let e=0;e<s.length;e+=3)i.push(s.slice(e,e+3));return i}}function ow(e){const t=e.length;t>2&&e[t-1].equals(e[0])&&e.pop()}function lw(e,t){for(let n=0;n<t.length;n++)e.push(t[n].x),e.push(t[n].y)}class cw extends rv{constructor(e=new I_([new tm(.5,.5),new tm(-.5,.5),new tm(-.5,-.5),new tm(.5,-.5)]),t={}){super(),this.type="ExtrudeGeometry",this.parameters={shapes:e,options:t},e=Array.isArray(e)?e:[e];const n=this,r=[],i=[];for(let t=0,n=e.length;t<n;t++)a(e[t]);function a(e){const a=[],s=void 0!==t.curveSegments?t.curveSegments:12,o=void 0!==t.steps?t.steps:1;let l=void 0!==t.depth?t.depth:1,c=void 0===t.bevelEnabled||t.bevelEnabled,u=void 0!==t.bevelThickness?t.bevelThickness:.2,h=void 0!==t.bevelSize?t.bevelSize:u-.1,f=void 0!==t.bevelOffset?t.bevelOffset:0,d=void 0!==t.bevelSegments?t.bevelSegments:3;const p=t.extrudePath,m=void 0!==t.UVGenerator?t.UVGenerator:uw;void 0!==t.amount&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),l=t.amount);let g,v,y,b,x,_=!1;p&&(g=p.getSpacedPoints(o),_=!0,c=!1,v=p.computeFrenetFrames(o,!1),y=new Am,b=new Am,x=new Am),c||(d=0,u=0,h=0,f=0);const w=e.extractPoints(s);let T=w.shape;const S=w.holes;if(!sw.isClockWise(T)){T=T.reverse();for(let e=0,t=S.length;e<t;e++){const t=S[e];sw.isClockWise(t)&&(S[e]=t.reverse())}}const E=sw.triangulateShape(T,S),M=T;for(let e=0,t=S.length;e<t;e++){const t=S[e];T=T.concat(t)}function A(e,t,n){return t||console.error("THREE.ExtrudeGeometry: vec does not exist"),t.clone().multiplyScalar(n).add(e)}const C=T.length,R=E.length;function L(e,t,n){let r,i,a;const s=e.x-t.x,o=e.y-t.y,l=n.x-e.x,c=n.y-e.y,u=s*s+o*o,h=s*c-o*l;if(Math.abs(h)>Number.EPSILON){const h=Math.sqrt(u),f=Math.sqrt(l*l+c*c),d=t.x-o/h,p=t.y+s/h,m=((n.x-c/f-d)*c-(n.y+l/f-p)*l)/(s*c-o*l);r=d+s*m-e.x,i=p+o*m-e.y;const g=r*r+i*i;if(g<=2)return new tm(r,i);a=Math.sqrt(g/2)}else{let e=!1;s>Number.EPSILON?l>Number.EPSILON&&(e=!0):s<-Number.EPSILON?l<-Number.EPSILON&&(e=!0):Math.sign(o)===Math.sign(c)&&(e=!0),e?(r=-o,i=s,a=Math.sqrt(u)):(r=s,i=o,a=Math.sqrt(u/2))}return new tm(r/a,i/a)}const k=[];for(let e=0,t=M.length,n=t-1,r=e+1;e<t;e++,n++,r++)n===t&&(n=0),r===t&&(r=0),k[e]=L(M[e],M[n],M[r]);const P=[];let D,O=k.concat();for(let e=0,t=S.length;e<t;e++){const t=S[e];D=[];for(let e=0,n=t.length,r=n-1,i=e+1;e<n;e++,r++,i++)r===n&&(r=0),i===n&&(i=0),D[e]=L(t[e],t[r],t[i]);P.push(D),O=O.concat(D)}for(let e=0;e<d;e++){const t=e/d,n=u*Math.cos(t*Math.PI/2),r=h*Math.sin(t*Math.PI/2)+f;for(let e=0,t=M.length;e<t;e++){const t=A(M[e],k[e],r);F(t.x,t.y,-n)}for(let e=0,t=S.length;e<t;e++){const t=S[e];D=P[e];for(let e=0,i=t.length;e<i;e++){const i=A(t[e],D[e],r);F(i.x,i.y,-n)}}}const I=h+f;for(let e=0;e<C;e++){const t=c?A(T[e],O[e],I):T[e];_?(b.copy(v.normals[0]).multiplyScalar(t.x),y.copy(v.binormals[0]).multiplyScalar(t.y),x.copy(g[0]).add(b).add(y),F(x.x,x.y,x.z)):F(t.x,t.y,0)}for(let e=1;e<=o;e++)for(let t=0;t<C;t++){const n=c?A(T[t],O[t],I):T[t];_?(b.copy(v.normals[e]).multiplyScalar(n.x),y.copy(v.binormals[e]).multiplyScalar(n.y),x.copy(g[e]).add(b).add(y),F(x.x,x.y,x.z)):F(n.x,n.y,l/o*e)}for(let e=d-1;e>=0;e--){const t=e/d,n=u*Math.cos(t*Math.PI/2),r=h*Math.sin(t*Math.PI/2)+f;for(let e=0,t=M.length;e<t;e++){const t=A(M[e],k[e],r);F(t.x,t.y,l+n)}for(let e=0,t=S.length;e<t;e++){const t=S[e];D=P[e];for(let e=0,i=t.length;e<i;e++){const i=A(t[e],D[e],r);_?F(i.x,i.y+g[o-1].y,g[o-1].x+n):F(i.x,i.y,l+n)}}}function N(e,t){let n=e.length;for(;--n>=0;){const r=n;let i=n-1;i<0&&(i=e.length-1);for(let e=0,n=o+2*d;e<n;e++){const n=C*e,a=C*(e+1);U(t+r+n,t+i+n,t+i+a,t+r+a)}}}function F(e,t,n){a.push(e),a.push(t),a.push(n)}function B(e,t,i){z(e),z(t),z(i);const a=r.length/3,s=m.generateTopUV(n,r,a-3,a-2,a-1);H(s[0]),H(s[1]),H(s[2])}function U(e,t,i,a){z(e),z(t),z(a),z(t),z(i),z(a);const s=r.length/3,o=m.generateSideWallUV(n,r,s-6,s-3,s-2,s-1);H(o[0]),H(o[1]),H(o[3]),H(o[1]),H(o[2]),H(o[3])}function z(e){r.push(a[3*e+0]),r.push(a[3*e+1]),r.push(a[3*e+2])}function H(e){i.push(e.x),i.push(e.y)}!function(){const e=r.length/3;if(c){let e=0,t=C*e;for(let e=0;e<R;e++){const n=E[e];B(n[2]+t,n[1]+t,n[0]+t)}e=o+2*d,t=C*e;for(let e=0;e<R;e++){const n=E[e];B(n[0]+t,n[1]+t,n[2]+t)}}else{for(let e=0;e<R;e++){const t=E[e];B(t[2],t[1],t[0])}for(let e=0;e<R;e++){const t=E[e];B(t[0]+C*o,t[1]+C*o,t[2]+C*o)}}n.addGroup(e,r.length/3-e,0)}(),function(){const e=r.length/3;let t=0;N(M,t),t+=M.length;for(let e=0,n=S.length;e<n;e++){const n=S[e];N(n,t),t+=n.length}n.addGroup(e,r.length/3-e,1)}()}this.setAttribute("position",new Yg(r,3)),this.setAttribute("uv",new Yg(i,2)),this.computeVertexNormals()}toJSON(){const e=super.toJSON();return function(e,t,n){if(n.shapes=[],Array.isArray(e))for(let t=0,r=e.length;t<r;t++){const r=e[t];n.shapes.push(r.uuid)}else n.shapes.push(e.uuid);return void 0!==t.extrudePath&&(n.options.extrudePath=t.extrudePath.toJSON()),n}(this.parameters.shapes,this.parameters.options,e)}static fromJSON(e,t){const n=[];for(let r=0,i=e.shapes.length;r<i;r++){const i=t[e.shapes[r]];n.push(i)}const r=e.options.extrudePath;return void 0!==r&&(e.options.extrudePath=(new P_[r.type]).fromJSON(r)),new cw(n,e.options)}}const uw={generateTopUV:function(e,t,n,r,i){const a=t[3*n],s=t[3*n+1],o=t[3*r],l=t[3*r+1],c=t[3*i],u=t[3*i+1];return[new tm(a,s),new tm(o,l),new tm(c,u)]},generateSideWallUV:function(e,t,n,r,i,a){const s=t[3*n],o=t[3*n+1],l=t[3*n+2],c=t[3*r],u=t[3*r+1],h=t[3*r+2],f=t[3*i],d=t[3*i+1],p=t[3*i+2],m=t[3*a],g=t[3*a+1],v=t[3*a+2];return Math.abs(o-u)<Math.abs(s-c)?[new tm(s,1-l),new tm(c,1-h),new tm(f,1-p),new tm(m,1-v)]:[new tm(o,1-l),new tm(u,1-h),new tm(d,1-p),new tm(g,1-v)]}};class hw extends rv{constructor(e=new I_([new tm(0,.5),new tm(-.5,-.5),new tm(.5,-.5)]),t=12){super(),this.type="ShapeGeometry",this.parameters={shapes:e,curveSegments:t};const n=[],r=[],i=[],a=[];let s=0,o=0;if(!1===Array.isArray(e))l(e);else for(let t=0;t<e.length;t++)l(e[t]),this.addGroup(s,o,t),s+=o,o=0;function l(e){const s=r.length/3,l=e.extractPoints(t);let c=l.shape;const u=l.holes;!1===sw.isClockWise(c)&&(c=c.reverse());for(let e=0,t=u.length;e<t;e++){const t=u[e];!0===sw.isClockWise(t)&&(u[e]=t.reverse())}const h=sw.triangulateShape(c,u);for(let e=0,t=u.length;e<t;e++){const t=u[e];c=c.concat(t)}for(let e=0,t=c.length;e<t;e++){const t=c[e];r.push(t.x,t.y,0),i.push(0,0,1),a.push(t.x,t.y)}for(let e=0,t=h.length;e<t;e++){const t=h[e],r=t[0]+s,i=t[1]+s,a=t[2]+s;n.push(r,i,a),o+=3}}this.setIndex(n),this.setAttribute("position",new Yg(r,3)),this.setAttribute("normal",new Yg(i,3)),this.setAttribute("uv",new Yg(a,2))}toJSON(){const e=super.toJSON();return function(e,t){if(t.shapes=[],Array.isArray(e))for(let n=0,r=e.length;n<r;n++){const r=e[n];t.shapes.push(r.uuid)}else t.shapes.push(e.uuid);return t}(this.parameters.shapes,e)}static fromJSON(e,t){const n=[];for(let r=0,i=e.shapes.length;r<i;r++){const i=t[e.shapes[r]];n.push(i)}return new hw(n,e.curveSegments)}}class fw extends rv{constructor(e=null){if(super(),this.type="WireframeGeometry",this.parameters={geometry:e},null!==e){const t=[],n=new Set,r=new Am,i=new Am;if(null!==e.index){const a=e.attributes.position,s=e.index;let o=e.groups;0===o.length&&(o=[{start:0,count:s.count,materialIndex:0}]);for(let e=0,l=o.length;e<l;++e){const l=o[e],c=l.start;for(let e=c,o=c+l.count;e<o;e+=3)for(let o=0;o<3;o++){const l=s.getX(e+o),c=s.getX(e+(o+1)%3);r.fromBufferAttribute(a,l),i.fromBufferAttribute(a,c),!0===dw(r,i,n)&&(t.push(r.x,r.y,r.z),t.push(i.x,i.y,i.z))}}}else{const a=e.attributes.position;for(let e=0,s=a.count/3;e<s;e++)for(let s=0;s<3;s++){const o=3*e+s,l=3*e+(s+1)%3;r.fromBufferAttribute(a,o),i.fromBufferAttribute(a,l),!0===dw(r,i,n)&&(t.push(r.x,r.y,r.z),t.push(i.x,i.y,i.z))}}this.setAttribute("position",new Yg(t,3))}}}function dw(e,t,n){const r=`${e.x},${e.y},${e.z}-${t.x},${t.y},${t.z}`,i=`${t.x},${t.y},${t.z}-${e.x},${e.y},${e.z}`;return!0!==n.has(r)&&!0!==n.has(i)&&(n.add(r),n.add(i),!0)}class pw extends Vg{constructor(e){super(),this.type="ShadowMaterial",this.color=new mm(0),this.transparent=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this}}pw.prototype.isShadowMaterial=!0;class mw extends Av{constructor(e){super(e),this.type="RawShaderMaterial"}}mw.prototype.isRawShaderMaterial=!0;class gw extends Vg{constructor(e){super(),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new mm(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new mm(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new tm(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this}}gw.prototype.isMeshStandardMaterial=!0;class vw extends gw{constructor(e){super(),this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new tm(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return Yp(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(e){this.ior=(1+.4*e)/(1-.4*e)}}),this.sheenColor=new mm(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=0,this.attenuationColor=new mm(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new mm(1,1,1),this.specularColorMap=null,this._sheen=0,this._clearcoat=0,this._transmission=0,this.setValues(e)}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}vw.prototype.isMeshPhysicalMaterial=!0;class yw extends Vg{constructor(e){super(),this.type="MeshPhongMaterial",this.color=new mm(16777215),this.specular=new mm(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new mm(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new tm(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this}}yw.prototype.isMeshPhongMaterial=!0;class bw extends Vg{constructor(e){super(),this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new mm(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new mm(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new tm(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this}}bw.prototype.isMeshToonMaterial=!0;class xw extends Vg{constructor(e){super(),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new tm(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}xw.prototype.isMeshNormalMaterial=!0;class _w extends Vg{constructor(e){super(),this.type="MeshLambertMaterial",this.color=new mm(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new mm(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this}}_w.prototype.isMeshLambertMaterial=!0;class ww extends Vg{constructor(e){super(),this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new mm(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new tm(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this}}ww.prototype.isMeshMatcapMaterial=!0;class Tw extends Jx{constructor(e){super(),this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}Tw.prototype.isLineDashedMaterial=!0;const Sw={ShadowMaterial:pw,SpriteMaterial:Ex,RawShaderMaterial:mw,ShaderMaterial:Av,PointsMaterial:o_,MeshPhysicalMaterial:vw,MeshStandardMaterial:gw,MeshPhongMaterial:yw,MeshToonMaterial:bw,MeshNormalMaterial:xw,MeshLambertMaterial:_w,MeshDepthMaterial:ax,MeshDistanceMaterial:sx,MeshBasicMaterial:Gg,MeshMatcapMaterial:ww,LineDashedMaterial:Tw,LineBasicMaterial:Jx,Material:Vg};Vg.fromType=function(e){return new Sw[e]};const Ew={arraySlice:function(e,t,n){return Ew.isTypedArray(e)?new e.constructor(e.subarray(t,void 0!==n?n:e.length)):e.slice(t,n)},convertArray:function(e,t,n){return!e||!n&&e.constructor===t?e:"number"==typeof t.BYTES_PER_ELEMENT?new t(e):Array.prototype.slice.call(e)},isTypedArray:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},getKeyframeOrder:function(e){const t=e.length,n=new Array(t);for(let e=0;e!==t;++e)n[e]=e;return n.sort((function(t,n){return e[t]-e[n]})),n},sortedArray:function(e,t,n){const r=e.length,i=new e.constructor(r);for(let a=0,s=0;s!==r;++a){const r=n[a]*t;for(let n=0;n!==t;++n)i[s++]=e[r+n]}return i},flattenJSON:function(e,t,n,r){let i=1,a=e[0];for(;void 0!==a&&void 0===a[r];)a=e[i++];if(void 0===a)return;let s=a[r];if(void 0!==s)if(Array.isArray(s))do{s=a[r],void 0!==s&&(t.push(a.time),n.push.apply(n,s)),a=e[i++]}while(void 0!==a);else if(void 0!==s.toArray)do{s=a[r],void 0!==s&&(t.push(a.time),s.toArray(n,n.length)),a=e[i++]}while(void 0!==a);else do{s=a[r],void 0!==s&&(t.push(a.time),n.push(s)),a=e[i++]}while(void 0!==a)},subclip:function(e,t,n,r,i=30){const a=e.clone();a.name=t;const s=[];for(let e=0;e<a.tracks.length;++e){const t=a.tracks[e],o=t.getValueSize(),l=[],c=[];for(let e=0;e<t.times.length;++e){const a=t.times[e]*i;if(!(a<n||a>=r)){l.push(t.times[e]);for(let n=0;n<o;++n)c.push(t.values[e*o+n])}}0!==l.length&&(t.times=Ew.convertArray(l,t.times.constructor),t.values=Ew.convertArray(c,t.values.constructor),s.push(t))}a.tracks=s;let o=1/0;for(let e=0;e<a.tracks.length;++e)o>a.tracks[e].times[0]&&(o=a.tracks[e].times[0]);for(let e=0;e<a.tracks.length;++e)a.tracks[e].shift(-1*o);return a.resetDuration(),a},makeClipAdditive:function(e,t=0,n=e,r=30){r<=0&&(r=30);const i=n.tracks.length,a=t/r;for(let t=0;t<i;++t){const r=n.tracks[t],i=r.ValueTypeName;if("bool"===i||"string"===i)continue;const s=e.tracks.find((function(e){return e.name===r.name&&e.ValueTypeName===i}));if(void 0===s)continue;let o=0;const l=r.getValueSize();r.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(o=l/3);let c=0;const u=s.getValueSize();s.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(c=u/3);const h=r.times.length-1;let f;if(a<=r.times[0]){const e=o,t=l-o;f=Ew.arraySlice(r.values,e,t)}else if(a>=r.times[h]){const e=h*l+o,t=e+l-o;f=Ew.arraySlice(r.values,e,t)}else{const e=r.createInterpolant(),t=o,n=l-o;e.evaluate(a),f=Ew.arraySlice(e.resultBuffer,t,n)}"quaternion"===i&&(new Mm).fromArray(f).normalize().conjugate().toArray(f);const d=s.times.length;for(let e=0;e<d;++e){const t=e*u+c;if("quaternion"===i)Mm.multiplyQuaternionsFlat(s.values,t,f,0,s.values,t);else{const e=u-2*c;for(let n=0;n<e;++n)s.values[t+n]-=f[n]}}}return e.blendMode=2501,e}};class Mw{constructor(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=void 0!==r?r:new t.constructor(n),this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let n=this._cachedIndex,r=t[n],i=t[n-1];e:{t:{let a;n:{r:if(!(e<r)){for(let a=n+2;;){if(void 0===r){if(e<i)break r;return n=t.length,this._cachedIndex=n,this.afterEnd_(n-1,e,i)}if(n===a)break;if(i=r,r=t[++n],e<r)break t}a=t.length;break n}if(e>=i)break e;{const s=t[1];e<s&&(n=2,i=s);for(let a=n-2;;){if(void 0===i)return this._cachedIndex=0,this.beforeStart_(0,e,r);if(n===a)break;if(r=i,i=t[--n-1],e>=i)break t}a=n,n=0}}for(;n<a;){const r=n+a>>>1;e<t[r]?a=r:n=r+1}if(r=t[n],i=t[n-1],void 0===i)return this._cachedIndex=0,this.beforeStart_(0,e,r);if(void 0===r)return n=t.length,this._cachedIndex=n,this.afterEnd_(n-1,i,e)}this._cachedIndex=n,this.intervalChanged_(n,i,r)}return this.interpolate_(n,i,e,r)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(e){const t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=e*r;for(let e=0;e!==r;++e)t[e]=n[i+e];return t}interpolate_(){throw new Error("call to abstract method")}intervalChanged_(){}}Mw.prototype.beforeStart_=Mw.prototype.copySampleValue_,Mw.prototype.afterEnd_=Mw.prototype.copySampleValue_;class Aw extends Mw{constructor(e,t,n,r){super(e,t,n,r),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:kp,endingEnd:kp}}intervalChanged_(e,t,n){const r=this.parameterPositions;let i=e-2,a=e+1,s=r[i],o=r[a];if(void 0===s)switch(this.getSettings_().endingStart){case Pp:i=e,s=2*t-n;break;case Dp:i=r.length-2,s=t+r[i]-r[i+1];break;default:i=e,s=n}if(void 0===o)switch(this.getSettings_().endingEnd){case Pp:a=e,o=2*n-t;break;case Dp:a=1,o=n+r[1]-r[0];break;default:a=e-1,o=t}const l=.5*(n-t),c=this.valueSize;this._weightPrev=l/(t-s),this._weightNext=l/(o-n),this._offsetPrev=i*c,this._offsetNext=a*c}interpolate_(e,t,n,r){const i=this.resultBuffer,a=this.sampleValues,s=this.valueSize,o=e*s,l=o-s,c=this._offsetPrev,u=this._offsetNext,h=this._weightPrev,f=this._weightNext,d=(n-t)/(r-t),p=d*d,m=p*d,g=-h*m+2*h*p-h*d,v=(1+h)*m+(-1.5-2*h)*p+(-.5+h)*d+1,y=(-1-f)*m+(1.5+f)*p+.5*d,b=f*m-f*p;for(let e=0;e!==s;++e)i[e]=g*a[c+e]+v*a[l+e]+y*a[o+e]+b*a[u+e];return i}}class Cw extends Mw{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){const i=this.resultBuffer,a=this.sampleValues,s=this.valueSize,o=e*s,l=o-s,c=(n-t)/(r-t),u=1-c;for(let e=0;e!==s;++e)i[e]=a[l+e]*u+a[o+e]*c;return i}}class Rw extends Mw{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e){return this.copySampleValue_(e-1)}}class Lw{constructor(e,t,n,r){if(void 0===e)throw new Error("THREE.KeyframeTrack: track name is undefined");if(void 0===t||0===t.length)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+e);this.name=e,this.times=Ew.convertArray(t,this.TimeBufferType),this.values=Ew.convertArray(n,this.ValueBufferType),this.setInterpolation(r||this.DefaultInterpolation)}static toJSON(e){const t=e.constructor;let n;if(t.toJSON!==this.toJSON)n=t.toJSON(e);else{n={name:e.name,times:Ew.convertArray(e.times,Array),values:Ew.convertArray(e.values,Array)};const t=e.getInterpolation();t!==e.DefaultInterpolation&&(n.interpolation=t)}return n.type=e.ValueTypeName,n}InterpolantFactoryMethodDiscrete(e){return new Rw(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodLinear(e){return new Cw(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodSmooth(e){return new Aw(this.times,this.values,this.getValueSize(),e)}setInterpolation(e){let t;switch(e){case Cp:t=this.InterpolantFactoryMethodDiscrete;break;case Rp:t=this.InterpolantFactoryMethodLinear;break;case Lp:t=this.InterpolantFactoryMethodSmooth}if(void 0===t){const t="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(e===this.DefaultInterpolation)throw new Error(t);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",t),this}return this.createInterpolant=t,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return Cp;case this.InterpolantFactoryMethodLinear:return Rp;case this.InterpolantFactoryMethodSmooth:return Lp}}getValueSize(){return this.values.length/this.times.length}shift(e){if(0!==e){const t=this.times;for(let n=0,r=t.length;n!==r;++n)t[n]+=e}return this}scale(e){if(1!==e){const t=this.times;for(let n=0,r=t.length;n!==r;++n)t[n]*=e}return this}trim(e,t){const n=this.times,r=n.length;let i=0,a=r-1;for(;i!==r&&n[i]<e;)++i;for(;-1!==a&&n[a]>t;)--a;if(++a,0!==i||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);const e=this.getValueSize();this.times=Ew.arraySlice(n,i,a),this.values=Ew.arraySlice(this.values,i*e,a*e)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const n=this.times,r=this.values,i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let a=null;for(let t=0;t!==i;t++){const r=n[t];if("number"==typeof r&&isNaN(r)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,t,r),e=!1;break}if(null!==a&&a>r){console.error("THREE.KeyframeTrack: Out of order keys.",this,t,r,a),e=!1;break}a=r}if(void 0!==r&&Ew.isTypedArray(r))for(let t=0,n=r.length;t!==n;++t){const n=r[t];if(isNaN(n)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,t,n),e=!1;break}}return e}optimize(){const e=Ew.arraySlice(this.times),t=Ew.arraySlice(this.values),n=this.getValueSize(),r=this.getInterpolation()===Lp,i=e.length-1;let a=1;for(let s=1;s<i;++s){let i=!1;const o=e[s];if(o!==e[s+1]&&(1!==s||o!==e[0]))if(r)i=!0;else{const e=s*n,r=e-n,a=e+n;for(let s=0;s!==n;++s){const n=t[e+s];if(n!==t[r+s]||n!==t[a+s]){i=!0;break}}}if(i){if(s!==a){e[a]=e[s];const r=s*n,i=a*n;for(let e=0;e!==n;++e)t[i+e]=t[r+e]}++a}}if(i>0){e[a]=e[i];for(let e=i*n,r=a*n,s=0;s!==n;++s)t[r+s]=t[e+s];++a}return a!==e.length?(this.times=Ew.arraySlice(e,0,a),this.values=Ew.arraySlice(t,0,a*n)):(this.times=e,this.values=t),this}clone(){const e=Ew.arraySlice(this.times,0),t=Ew.arraySlice(this.values,0),n=new(0,this.constructor)(this.name,e,t);return n.createInterpolant=this.createInterpolant,n}}Lw.prototype.TimeBufferType=Float32Array,Lw.prototype.ValueBufferType=Float32Array,Lw.prototype.DefaultInterpolation=Rp;class kw extends Lw{}kw.prototype.ValueTypeName="bool",kw.prototype.ValueBufferType=Array,kw.prototype.DefaultInterpolation=Cp,kw.prototype.InterpolantFactoryMethodLinear=void 0,kw.prototype.InterpolantFactoryMethodSmooth=void 0;class Pw extends Lw{}Pw.prototype.ValueTypeName="color";class Dw extends Lw{}Dw.prototype.ValueTypeName="number";class Ow extends Mw{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){const i=this.resultBuffer,a=this.sampleValues,s=this.valueSize,o=(n-t)/(r-t);let l=e*s;for(let e=l+s;l!==e;l+=4)Mm.slerpFlat(i,0,a,l-s,a,l,o);return i}}class Iw extends Lw{InterpolantFactoryMethodLinear(e){return new Ow(this.times,this.values,this.getValueSize(),e)}}Iw.prototype.ValueTypeName="quaternion",Iw.prototype.DefaultInterpolation=Rp,Iw.prototype.InterpolantFactoryMethodSmooth=void 0;class Nw extends Lw{}Nw.prototype.ValueTypeName="string",Nw.prototype.ValueBufferType=Array,Nw.prototype.DefaultInterpolation=Cp,Nw.prototype.InterpolantFactoryMethodLinear=void 0,Nw.prototype.InterpolantFactoryMethodSmooth=void 0;class Fw extends Lw{}Fw.prototype.ValueTypeName="vector";class Bw{constructor(e,t=-1,n,r=2500){this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=$p(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],n=e.tracks,r=1/(e.fps||1);for(let e=0,i=n.length;e!==i;++e)t.push(Uw(n[e]).scale(r));const i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i}static toJSON(e){const t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let e=0,r=n.length;e!==r;++e)t.push(Lw.toJSON(n[e]));return r}static CreateFromMorphTargetSequence(e,t,n,r){const i=t.length,a=[];for(let e=0;e<i;e++){let s=[],o=[];s.push((e+i-1)%i,e,(e+1)%i),o.push(0,1,0);const l=Ew.getKeyframeOrder(s);s=Ew.sortedArray(s,1,l),o=Ew.sortedArray(o,1,l),r||0!==s[0]||(s.push(i),o.push(o[0])),a.push(new Dw(".morphTargetInfluences["+t[e].name+"]",s,o).scale(1/n))}return new this(e,-1,a)}static findByName(e,t){let n=e;if(!Array.isArray(e)){const t=e;n=t.geometry&&t.geometry.animations||t.animations}for(let e=0;e<n.length;e++)if(n[e].name===t)return n[e];return null}static CreateClipsFromMorphTargetSequences(e,t,n){const r={},i=/^([\w-]*?)([\d]+)$/;for(let t=0,n=e.length;t<n;t++){const n=e[t],a=n.name.match(i);if(a&&a.length>1){const e=a[1];let t=r[e];t||(r[e]=t=[]),t.push(n)}}const a=[];for(const e in r)a.push(this.CreateFromMorphTargetSequence(e,r[e],t,n));return a}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(e,t,n,r,i){if(0!==n.length){const a=[],s=[];Ew.flattenJSON(n,a,s,r),0!==a.length&&i.push(new e(t,a,s))}},r=[],i=e.name||"default",a=e.fps||30,s=e.blendMode;let o=e.length||-1;const l=e.hierarchy||[];for(let e=0;e<l.length;e++){const i=l[e].keys;if(i&&0!==i.length)if(i[0].morphTargets){const e={};let t;for(t=0;t<i.length;t++)if(i[t].morphTargets)for(let n=0;n<i[t].morphTargets.length;n++)e[i[t].morphTargets[n]]=-1;for(const n in e){const e=[],a=[];for(let r=0;r!==i[t].morphTargets.length;++r){const r=i[t];e.push(r.time),a.push(r.morphTarget===n?1:0)}r.push(new Dw(".morphTargetInfluence["+n+"]",e,a))}o=e.length*a}else{const a=".bones["+t[e].name+"]";n(Fw,a+".position",i,"pos",r),n(Iw,a+".quaternion",i,"rot",r),n(Fw,a+".scale",i,"scl",r)}}return 0===r.length?null:new this(i,o,r,s)}resetDuration(){let e=0;for(let t=0,n=this.tracks.length;t!==n;++t){const n=this.tracks[t];e=Math.max(e,n.times[n.times.length-1])}return this.duration=e,this}trim(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].trim(0,this.duration);return this}validate(){let e=!0;for(let t=0;t<this.tracks.length;t++)e=e&&this.tracks[t].validate();return e}optimize(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].optimize();return this}clone(){const e=[];for(let t=0;t<this.tracks.length;t++)e.push(this.tracks[t].clone());return new this.constructor(this.name,this.duration,e,this.blendMode)}toJSON(){return this.constructor.toJSON(this)}}function Uw(e){if(void 0===e.type)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const t=function(e){switch(e.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return Dw;case"vector":case"vector2":case"vector3":case"vector4":return Fw;case"color":return Pw;case"quaternion":return Iw;case"bool":case"boolean":return kw;case"string":return Nw}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+e)}(e.type);if(void 0===e.times){const t=[],n=[];Ew.flattenJSON(e.keys,t,n,"value"),e.times=t,e.values=n}return void 0!==t.parse?t.parse(e):new t(e.name,e.times,e.values,e.interpolation)}const zw={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={}}};const Hw=new class{constructor(e,t,n){const r=this;let i,a=!1,s=0,o=0;const l=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this.itemStart=function(e){o++,!1===a&&void 0!==r.onStart&&r.onStart(e,s,o),a=!0},this.itemEnd=function(e){s++,void 0!==r.onProgress&&r.onProgress(e,s,o),s===o&&(a=!1,void 0!==r.onLoad&&r.onLoad())},this.itemError=function(e){void 0!==r.onError&&r.onError(e)},this.resolveURL=function(e){return i?i(e):e},this.setURLModifier=function(e){return i=e,this},this.addHandler=function(e,t){return l.push(e,t),this},this.removeHandler=function(e){const t=l.indexOf(e);return-1!==t&&l.splice(t,2),this},this.getHandler=function(e){for(let t=0,n=l.length;t<n;t+=2){const n=l[t],r=l[t+1];if(n.global&&(n.lastIndex=0),n.test(e))return r}return null}}};class Vw{constructor(e){this.manager=void 0!==e?e:Hw,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(e,t){const n=this;return new Promise((function(r,i){n.load(e,r,t,i)}))}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}}const Gw={};class Ww extends Vw{constructor(e){super(e)}load(e,t,n,r){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const i=zw.get(e);if(void 0!==i)return this.manager.itemStart(e),setTimeout((()=>{t&&t(i),this.manager.itemEnd(e)}),0),i;if(void 0!==Gw[e])return void Gw[e].push({onLoad:t,onProgress:n,onError:r});Gw[e]=[],Gw[e].push({onLoad:t,onProgress:n,onError:r});const a=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),s=this.mimeType,o=this.responseType;fetch(a).then((t=>{if(200===t.status||0===t.status){if(0===t.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),"undefined"==typeof ReadableStream||void 0===t.body||void 0===t.body.getReader)return t;const n=Gw[e],r=t.body.getReader(),i=t.headers.get("Content-Length"),a=i?parseInt(i):0,s=0!==a;let o=0;const l=new ReadableStream({start(e){!function t(){r.read().then((({done:r,value:i})=>{if(r)e.close();else{o+=i.byteLength;const r=new ProgressEvent("progress",{lengthComputable:s,loaded:o,total:a});for(let e=0,t=n.length;e<t;e++){const t=n[e];t.onProgress&&t.onProgress(r)}e.enqueue(i),t()}}))}()}});return new Response(l)}throw Error(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`)})).then((e=>{switch(o){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"document":return e.text().then((e=>(new DOMParser).parseFromString(e,s)));case"json":return e.json();default:if(void 0===s)return e.text();{const t=/charset="?([^;"\s]*)"?/i.exec(s),n=t&&t[1]?t[1].toLowerCase():void 0,r=new TextDecoder(n);return e.arrayBuffer().then((e=>r.decode(e)))}}})).then((t=>{zw.add(e,t);const n=Gw[e];delete Gw[e];for(let e=0,r=n.length;e<r;e++){const r=n[e];r.onLoad&&r.onLoad(t)}})).catch((t=>{const n=Gw[e];if(void 0===n)throw this.manager.itemError(e),t;delete Gw[e];for(let e=0,r=n.length;e<r;e++){const r=n[e];r.onError&&r.onError(t)}this.manager.itemError(e)})).finally((()=>{this.manager.itemEnd(e)})),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class jw extends Vw{constructor(e){super(e)}load(e,t,n,r){void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const i=this,a=zw.get(e);if(void 0!==a)return i.manager.itemStart(e),setTimeout((function(){t&&t(a),i.manager.itemEnd(e)}),0),a;const s=im("img");function o(){c(),zw.add(e,this),t&&t(this),i.manager.itemEnd(e)}function l(t){c(),r&&r(t),i.manager.itemError(e),i.manager.itemEnd(e)}function c(){s.removeEventListener("load",o,!1),s.removeEventListener("error",l,!1)}return s.addEventListener("load",o,!1),s.addEventListener("error",l,!1),"data:"!==e.slice(0,5)&&void 0!==this.crossOrigin&&(s.crossOrigin=this.crossOrigin),i.manager.itemStart(e),s.src=e,s}}class Xw extends Vw{constructor(e){super(e)}load(e,t,n,r){const i=new Pv,a=new jw(this.manager);a.setCrossOrigin(this.crossOrigin),a.setPath(this.path);let s=0;function o(n){a.load(e[n],(function(e){i.images[n]=e,s++,6===s&&(i.needsUpdate=!0,t&&t(i))}),void 0,r)}for(let t=0;t<e.length;++t)o(t);return i}}class qw extends Vw{constructor(e){super(e)}load(e,t,n,r){const i=new _m,a=new jw(this.manager);return a.setCrossOrigin(this.crossOrigin),a.setPath(this.path),a.load(e,(function(e){i.image=e,i.needsUpdate=!0,void 0!==t&&t(i)}),n,r),i}}class $w extends Rg{constructor(e,t=1){super(),this.type="Light",this.color=new mm(e),this.intensity=t}dispose(){}copy(e){return super.copy(e),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(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}}$w.prototype.isLight=!0;(class extends $w{constructor(e,t,n){super(e,n),this.type="HemisphereLight",this.position.copy(Rg.DefaultUp),this.updateMatrix(),this.groundColor=new mm(t)}copy(e){return $w.prototype.copy.call(this,e),this.groundColor.copy(e.groundColor),this}}).prototype.isHemisphereLight=!0;const Yw=new ig,Zw=new Am,Jw=new Am;class Kw{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new tm(512,512),this.map=null,this.mapPass=null,this.matrix=new ig,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new zv,this._frameExtents=new tm(1,1),this._viewportCount=1,this._viewports=[new wm(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,n=this.matrix;Zw.setFromMatrixPosition(e.matrixWorld),t.position.copy(Zw),Jw.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(Jw),t.updateMatrixWorld(),Yw.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Yw),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(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return(new this.constructor).copy(this)}toJSON(){const e={};return 0!==this.bias&&(e.bias=this.bias),0!==this.normalBias&&(e.normalBias=this.normalBias),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}}class Qw extends Kw{constructor(){super(new Rv(50,1,.5,500)),this.focus=1}updateMatrices(e){const t=this.camera,n=2*qp*e.angle*this.focus,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()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}Qw.prototype.isSpotLightShadow=!0;(class extends $w{constructor(e,t,n=0,r=Math.PI/3,i=0,a=1){super(e,t),this.type="SpotLight",this.position.copy(Rg.DefaultUp),this.updateMatrix(),this.target=new Rg,this.distance=n,this.angle=r,this.penumbra=i,this.decay=a,this.shadow=new Qw}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e){return super.copy(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}}).prototype.isSpotLight=!0;const eT=new ig,tT=new Am,nT=new Am;class rT extends Kw{constructor(){super(new Rv(90,1,.5,500)),this._frameExtents=new tm(4,2),this._viewportCount=6,this._viewports=[new wm(2,1,1,1),new wm(0,1,1,1),new wm(3,1,1,1),new wm(1,1,1,1),new wm(3,0,1,1),new wm(1,0,1,1)],this._cubeDirections=[new Am(1,0,0),new Am(-1,0,0),new Am(0,0,1),new Am(0,0,-1),new Am(0,1,0),new Am(0,-1,0)],this._cubeUps=[new Am(0,1,0),new Am(0,1,0),new Am(0,1,0),new Am(0,1,0),new Am(0,0,1),new Am(0,0,-1)]}updateMatrices(e,t=0){const n=this.camera,r=this.matrix,i=e.distance||n.far;i!==n.far&&(n.far=i,n.updateProjectionMatrix()),tT.setFromMatrixPosition(e.matrixWorld),n.position.copy(tT),nT.copy(n.position),nT.add(this._cubeDirections[t]),n.up.copy(this._cubeUps[t]),n.lookAt(nT),n.updateMatrixWorld(),r.makeTranslation(-tT.x,-tT.y,-tT.z),eT.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(eT)}}rT.prototype.isPointLightShadow=!0;class iT extends $w{constructor(e,t,n=0,r=1){super(e,t),this.type="PointLight",this.distance=n,this.decay=r,this.shadow=new rT}get power(){return 4*this.intensity*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}iT.prototype.isPointLight=!0;class aT extends Kw{constructor(){super(new Qv(-5,5,5,-5,.5,500))}}aT.prototype.isDirectionalLightShadow=!0;(class extends $w{constructor(e,t){super(e,t),this.type="DirectionalLight",this.position.copy(Rg.DefaultUp),this.updateMatrix(),this.target=new Rg,this.shadow=new aT}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}).prototype.isDirectionalLight=!0;class sT extends $w{constructor(e,t){super(e,t),this.type="AmbientLight"}}sT.prototype.isAmbientLight=!0;(class extends $w{constructor(e,t,n=10,r=10){super(e,t),this.type="RectAreaLight",this.width=n,this.height=r}get power(){return this.intensity*this.width*this.height*Math.PI}set power(e){this.intensity=e/(this.width*this.height*Math.PI)}copy(e){return super.copy(e),this.width=e.width,this.height=e.height,this}toJSON(e){const t=super.toJSON(e);return t.object.width=this.width,t.object.height=this.height,t}}).prototype.isRectAreaLight=!0;class oT{constructor(){this.coefficients=[];for(let e=0;e<9;e++)this.coefficients.push(new Am)}set(e){for(let t=0;t<9;t++)this.coefficients[t].copy(e[t]);return this}zero(){for(let e=0;e<9;e++)this.coefficients[e].set(0,0,0);return this}getAt(e,t){const n=e.x,r=e.y,i=e.z,a=this.coefficients;return t.copy(a[0]).multiplyScalar(.282095),t.addScaledVector(a[1],.488603*r),t.addScaledVector(a[2],.488603*i),t.addScaledVector(a[3],.488603*n),t.addScaledVector(a[4],n*r*1.092548),t.addScaledVector(a[5],r*i*1.092548),t.addScaledVector(a[6],.315392*(3*i*i-1)),t.addScaledVector(a[7],n*i*1.092548),t.addScaledVector(a[8],.546274*(n*n-r*r)),t}getIrradianceAt(e,t){const n=e.x,r=e.y,i=e.z,a=this.coefficients;return t.copy(a[0]).multiplyScalar(.886227),t.addScaledVector(a[1],1.023328*r),t.addScaledVector(a[2],1.023328*i),t.addScaledVector(a[3],1.023328*n),t.addScaledVector(a[4],.858086*n*r),t.addScaledVector(a[5],.858086*r*i),t.addScaledVector(a[6],.743125*i*i-.247708),t.addScaledVector(a[7],.858086*n*i),t.addScaledVector(a[8],.429043*(n*n-r*r)),t}add(e){for(let t=0;t<9;t++)this.coefficients[t].add(e.coefficients[t]);return this}addScaledSH(e,t){for(let n=0;n<9;n++)this.coefficients[n].addScaledVector(e.coefficients[n],t);return this}scale(e){for(let t=0;t<9;t++)this.coefficients[t].multiplyScalar(e);return this}lerp(e,t){for(let n=0;n<9;n++)this.coefficients[n].lerp(e.coefficients[n],t);return this}equals(e){for(let t=0;t<9;t++)if(!this.coefficients[t].equals(e.coefficients[t]))return!1;return!0}copy(e){return this.set(e.coefficients)}clone(){return(new this.constructor).copy(this)}fromArray(e,t=0){const n=this.coefficients;for(let r=0;r<9;r++)n[r].fromArray(e,t+3*r);return this}toArray(e=[],t=0){const n=this.coefficients;for(let r=0;r<9;r++)n[r].toArray(e,t+3*r);return e}static getBasisAt(e,t){const 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)}}oT.prototype.isSphericalHarmonics3=!0;class lT extends $w{constructor(e=new oT,t=1){super(void 0,t),this.sh=e}copy(e){return super.copy(e),this.sh.copy(e.sh),this}fromJSON(e){return this.intensity=e.intensity,this.sh.fromArray(e.sh),this}toJSON(e){const t=super.toJSON(e);return t.object.sh=this.sh.toArray(),t}}lT.prototype.isLightProbe=!0;class cT{static decodeText(e){if("undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);let t="";for(let n=0,r=e.length;n<r;n++)t+=String.fromCharCode(e[n]);try{return decodeURIComponent(escape(t))}catch(e){return t}}static extractUrlBase(e){const t=e.lastIndexOf("/");return-1===t?"./":e.slice(0,t+1)}static resolveURL(e,t){return"string"!=typeof e||""===e?"":(/^https?:\/\//i.test(t)&&/^\//.test(e)&&(t=t.replace(/(^https?:\/\/[^\/]+).*/i,"$1")),/^(https?:)?\/\//i.test(e)||/^data:.*,.*$/i.test(e)||/^blob:.*$/i.test(e)?e:t+e)}}class uT extends rv{constructor(){super(),this.type="InstancedBufferGeometry",this.instanceCount=1/0}copy(e){return super.copy(e),this.instanceCount=e.instanceCount,this}clone(){return(new this.constructor).copy(this)}toJSON(){const e=super.toJSON(this);return e.instanceCount=this.instanceCount,e.isInstancedBufferGeometry=!0,e}}let hT;uT.prototype.isInstancedBufferGeometry=!0,class extends Vw{constructor(e){super(e),"undefined"==typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),"undefined"==typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,n,r){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const i=this,a=zw.get(e);if(void 0!==a)return i.manager.itemStart(e),setTimeout((function(){t&&t(a),i.manager.itemEnd(e)}),0),a;const s={};s.credentials="anonymous"===this.crossOrigin?"same-origin":"include",s.headers=this.requestHeader,fetch(e,s).then((function(e){return e.blob()})).then((function(e){return createImageBitmap(e,Object.assign(i.options,{colorSpaceConversion:"none"}))})).then((function(n){zw.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)}}.prototype.isImageBitmapLoader=!0;class fT extends Vw{constructor(e){super(e)}load(e,t,n,r){const i=this,a=new Ww(this.manager);a.setResponseType("arraybuffer"),a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,(function(n){try{const e=n.slice(0);(void 0===hT&&(hT=new(window.AudioContext||window.webkitAudioContext)),hT).decodeAudioData(e,(function(e){t(e)}))}catch(t){r?r(t):console.error(t),i.manager.itemError(e)}}),n,r)}}(class extends lT{constructor(e,t,n=1){super(void 0,n);const r=(new mm).set(e),i=(new mm).set(t),a=new Am(r.r,r.g,r.b),s=new Am(i.r,i.g,i.b),o=Math.sqrt(Math.PI),l=o*Math.sqrt(.75);this.sh.coefficients[0].copy(a).add(s).multiplyScalar(o),this.sh.coefficients[1].copy(a).sub(s).multiplyScalar(l)}}).prototype.isHemisphereLightProbe=!0,class extends lT{constructor(e,t=1){super(void 0,t);const n=(new mm).set(e);this.sh.coefficients[0].set(n.r,n.g,n.b).multiplyScalar(2*Math.sqrt(Math.PI))}}.prototype.isAmbientLightProbe=!0;class dT{constructor(e,t,n){let r,i,a;switch(this.binding=e,this.valueSize=n,t){case"quaternion":r=this._slerp,i=this._slerpAdditive,a=this._setAdditiveIdentityQuaternion,this.buffer=new Float64Array(6*n),this._workIndex=5;break;case"string":case"bool":r=this._select,i=this._select,a=this._setAdditiveIdentityOther,this.buffer=new Array(5*n);break;default:r=this._lerp,i=this._lerpAdditive,a=this._setAdditiveIdentityNumeric,this.buffer=new Float64Array(5*n)}this._mixBufferRegion=r,this._mixBufferRegionAdditive=i,this._setIdentity=a,this._origIndex=3,this._addIndex=4,this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,this.useCount=0,this.referenceCount=0}accumulate(e,t){const n=this.buffer,r=this.valueSize,i=e*r+r;let a=this.cumulativeWeight;if(0===a){for(let e=0;e!==r;++e)n[i+e]=n[e];a=t}else{a+=t;const e=t/a;this._mixBufferRegion(n,i,0,e,r)}this.cumulativeWeight=a}accumulateAdditive(e){const t=this.buffer,n=this.valueSize,r=n*this._addIndex;0===this.cumulativeWeightAdditive&&this._setIdentity(),this._mixBufferRegionAdditive(t,r,0,e,n),this.cumulativeWeightAdditive+=e}apply(e){const t=this.valueSize,n=this.buffer,r=e*t+t,i=this.cumulativeWeight,a=this.cumulativeWeightAdditive,s=this.binding;if(this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,i<1){const e=t*this._origIndex;this._mixBufferRegion(n,r,e,1-i,t)}a>0&&this._mixBufferRegionAdditive(n,r,this._addIndex*t,1,t);for(let e=t,i=t+t;e!==i;++e)if(n[e]!==n[e+t]){s.setValue(n,r);break}}saveOriginalState(){const e=this.binding,t=this.buffer,n=this.valueSize,r=n*this._origIndex;e.getValue(t,r);for(let e=n,i=r;e!==i;++e)t[e]=t[r+e%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const e=3*this.valueSize;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,t=e+this.valueSize;for(let n=e;n<t;n++)this.buffer[n]=0}_setAdditiveIdentityQuaternion(){this._setAdditiveIdentityNumeric(),this.buffer[this._addIndex*this.valueSize+3]=1}_setAdditiveIdentityOther(){const e=this._origIndex*this.valueSize,t=this._addIndex*this.valueSize;for(let n=0;n<this.valueSize;n++)this.buffer[t+n]=this.buffer[e+n]}_select(e,t,n,r,i){if(r>=.5)for(let r=0;r!==i;++r)e[t+r]=e[n+r]}_slerp(e,t,n,r){Mm.slerpFlat(e,t,e,t,e,n,r)}_slerpAdditive(e,t,n,r,i){const a=this._workIndex*i;Mm.multiplyQuaternionsFlat(e,a,e,t,e,n),Mm.slerpFlat(e,t,e,t,e,a,r)}_lerp(e,t,n,r,i){const a=1-r;for(let s=0;s!==i;++s){const i=t+s;e[i]=e[i]*a+e[n+s]*r}}_lerpAdditive(e,t,n,r,i){for(let a=0;a!==i;++a){const i=t+a;e[i]=e[i]+e[n+a]*r}}}const pT=new RegExp("[\\[\\]\\.:\\/]","g"),mT="[^\\[\\]\\.:\\/]",gT="[^"+"\\[\\]\\.:\\/".replace("\\.","")+"]",vT=/((?:WC+[\/:])*)/.source.replace("WC",mT),yT=/(WCOD+)?/.source.replace("WCOD",gT),bT=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",mT),xT=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",mT),_T=new RegExp("^"+vT+yT+bT+xT+"$"),wT=["material","materials","bones"];class TT{constructor(e,t,n){this.path=t,this.parsedPath=n||TT.parseTrackName(t),this.node=TT.findNode(e,this.parsedPath.nodeName)||e,this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,n){return e&&e.isAnimationObjectGroup?new TT.Composite(e,t,n):new TT(e,t,n)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(pT,"")}static parseTrackName(e){const t=_T.exec(e);if(null===t)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const 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){const e=n.nodeName.substring(r+1);-1!==wT.indexOf(e)&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}static findNode(e,t){if(void 0===t||""===t||"."===t||-1===t||t===e.name||t===e.uuid)return e;if(e.skeleton){const n=e.skeleton.getBoneByName(t);if(void 0!==n)return n}if(e.children){const n=function(e){for(let r=0;r<e.length;r++){const i=e[r];if(i.name===t||i.uuid===t)return i;const a=n(i.children);if(a)return a}return null},r=n(e.children);if(r)return r}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(e,t){e[t]=this.targetObject[this.propertyName]}_getValue_array(e,t){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)e[t++]=n[r]}_getValue_arrayElement(e,t){e[t]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(e,t){this.resolvedProperty.toArray(e,t)}_setValue_direct(e,t){this.targetObject[this.propertyName]=e[t]}_setValue_direct_setNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(e,t){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++]}_setValue_array_setNeedsUpdate(e,t){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(e,t){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(e,t){this.resolvedProperty[this.propertyIndex]=e[t]}_setValue_arrayElement_setNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(e,t){this.resolvedProperty.fromArray(e,t)}_setValue_fromArray_setNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(e,t){this.bind(),this.getValue(e,t)}_setValue_unbound(e,t){this.bind(),this.setValue(e,t)}bind(){let e=this.node;const t=this.parsedPath,n=t.objectName,r=t.propertyName;let i=t.propertyIndex;if(e||(e=TT.findNode(this.rootNode,t.nodeName)||this.rootNode,this.node=e),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!e)return void console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.");if(n){let r=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(let t=0;t<e.length;t++)if(e[t].name===r){r=t;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!==r){if(void 0===e[r])return void console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,e);e=e[r]}}const a=e[r];if(void 0===a){const n=t.nodeName;return void console.error("THREE.PropertyBinding: Trying to update property for track: "+n+"."+r+" but it wasn't found.",e)}let s=this.Versioning.None;this.targetObject=e,void 0!==e.needsUpdate?s=this.Versioning.NeedsUpdate:void 0!==e.matrixWorldNeedsUpdate&&(s=this.Versioning.MatrixWorldNeedsUpdate);let o=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)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences on THREE.Geometry. Use THREE.BufferGeometry instead.",this);if(!e.geometry.morphAttributes)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);void 0!==e.morphTargetDictionary[i]&&(i=e.morphTargetDictionary[i])}o=this.BindingType.ArrayElement,this.resolvedProperty=a,this.propertyIndex=i}else void 0!==a.fromArray&&void 0!==a.toArray?(o=this.BindingType.HasFromToArray,this.resolvedProperty=a):Array.isArray(a)?(o=this.BindingType.EntireArray,this.resolvedProperty=a):this.propertyName=r;this.getValue=this.GetterByBindingType[o],this.setValue=this.SetterByBindingTypeAndVersioning[o][s]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}TT.Composite=class{constructor(e,t,n){const r=n||TT.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();const n=this._targetGroup.nCachedObjects_,r=this._bindings[n];void 0!==r&&r.getValue(e,t)}setValue(e,t){const n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}},TT.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},TT.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},TT.prototype.GetterByBindingType=[TT.prototype._getValue_direct,TT.prototype._getValue_array,TT.prototype._getValue_arrayElement,TT.prototype._getValue_toArray],TT.prototype.SetterByBindingTypeAndVersioning=[[TT.prototype._setValue_direct,TT.prototype._setValue_direct_setNeedsUpdate,TT.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[TT.prototype._setValue_array,TT.prototype._setValue_array_setNeedsUpdate,TT.prototype._setValue_array_setMatrixWorldNeedsUpdate],[TT.prototype._setValue_arrayElement,TT.prototype._setValue_arrayElement_setNeedsUpdate,TT.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[TT.prototype._setValue_fromArray,TT.prototype._setValue_fromArray_setNeedsUpdate,TT.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];class ST{constructor(e,t,n=null,r=t.blendMode){this._mixer=e,this._clip=t,this._localRoot=n,this.blendMode=r;const i=t.tracks,a=i.length,s=new Array(a),o={endingStart:kp,endingEnd:kp};for(let e=0;e!==a;++e){const t=i[e].createInterpolant(null);s[e]=t,t.settings=o}this._interpolantSettings=o,this._interpolants=s,this._propertyBindings=new Array(a),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=2201,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}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,t){return this.loop=e,this.repetitions=t,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,t,n){if(e.fadeOut(t),this.fadeIn(t),n){const n=this._clip.duration,r=e._clip.duration,i=r/n,a=n/r;e.warp(1,i,t),this.warp(a,1,t)}return this}crossFadeTo(e,t,n){return e.crossFadeFrom(this,t,n)}stopFading(){const e=this._weightInterpolant;return null!==e&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,t,n){const r=this._mixer,i=r.time,a=this.timeScale;let s=this._timeScaleInterpolant;null===s&&(s=r._lendControlInterpolant(),this._timeScaleInterpolant=s);const o=s.parameterPositions,l=s.sampleValues;return o[0]=i,o[1]=i+n,l[0]=e/a,l[1]=t/a,this}stopWarping(){const e=this._timeScaleInterpolant;return null!==e&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(e,t,n,r){if(!this.enabled)return void this._updateWeight(e);const i=this._startTime;if(null!==i){const r=(e-i)*n;if(r<0||0===n)return;this._startTime=null,t=n*r}t*=this._updateTimeScale(e);const a=this._updateTime(t),s=this._updateWeight(e);if(s>0){const e=this._interpolants,t=this._propertyBindings;if(2501===this.blendMode)for(let n=0,r=e.length;n!==r;++n)e[n].evaluate(a),t[n].accumulateAdditive(s);else for(let n=0,i=e.length;n!==i;++n)e[n].evaluate(a),t[n].accumulate(r,s)}}_updateWeight(e){let t=0;if(this.enabled){t=this.weight;const n=this._weightInterpolant;if(null!==n){const r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopFading(),0===r&&(this.enabled=!1))}}return this._effectiveWeight=t,t}_updateTimeScale(e){let t=0;if(!this.paused){t=this.timeScale;const n=this._timeScaleInterpolant;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(e){const t=this._clip.duration,n=this.loop;let r=this.time+e,i=this._loopCount;const a=2202===n;if(0===e)return-1===i?r:a&&1==(1&i)?t-r:r;if(2200===n){-1===i&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(r>=t)r=t;else{if(!(r<0)){this.time=r;break e}r=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=r,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)),r>=t||r<0){const n=Math.floor(r/t);r-=t*n,i+=Math.abs(n);const s=this.repetitions-i;if(s<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,r=e>0?t:0,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(1===s){const t=e<0;this._setEndings(t,!t,a)}else this._setEndings(!1,!1,a);this._loopCount=i,this.time=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n})}}else this.time=r;if(a&&1==(1&i))return t-r}return r}_setEndings(e,t,n){const r=this._interpolantSettings;n?(r.endingStart=Pp,r.endingEnd=Pp):(r.endingStart=e?this.zeroSlopeAtStart?Pp:kp:Dp,r.endingEnd=t?this.zeroSlopeAtEnd?Pp:kp:Dp)}_scheduleFading(e,t,n){const r=this._mixer,i=r.time;let a=this._weightInterpolant;null===a&&(a=r._lendControlInterpolant(),this._weightInterpolant=a);const s=a.parameterPositions,o=a.sampleValues;return s[0]=i,o[0]=t,s[1]=i+e,o[1]=n,this}}(class extends Gp{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,t){const n=e._localRoot||this._root,r=e._clip.tracks,i=r.length,a=e._propertyBindings,s=e._interpolants,o=n.uuid,l=this._bindingsByRootAndName;let c=l[o];void 0===c&&(c={},l[o]=c);for(let e=0;e!==i;++e){const i=r[e],l=i.name;let u=c[l];if(void 0!==u)++u.referenceCount,a[e]=u;else{if(u=a[e],void 0!==u){null===u._cacheIndex&&(++u.referenceCount,this._addInactiveBinding(u,o,l));continue}const r=t&&t._propertyBindings[e].binding.parsedPath;u=new dT(TT.create(n,l,r),i.ValueTypeName,i.getValueSize()),++u.referenceCount,this._addInactiveBinding(u,o,l),a[e]=u}s[e].resultBuffer=u.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(null===e._cacheIndex){const 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)}const t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){const n=t[e];0==n.useCount++&&(this._lendBinding(n),n.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){const t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){const n=t[e];0==--n.useCount&&(n.restoreOriginalState(),this._takeBackBinding(n))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const 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(e){const t=e._cacheIndex;return null!==t&&t<this._nActiveActions}_addInactiveAction(e,t,n){const r=this._actions,i=this._actionsByClip;let a=i[t];if(void 0===a)a={knownActions:[e],actionByRoot:{}},e._byClipCacheIndex=0,i[t]=a;else{const t=a.knownActions;e._byClipCacheIndex=t.length,t.push(e)}e._cacheIndex=r.length,r.push(e),a.actionByRoot[n]=e}_removeInactiveAction(e){const t=this._actions,n=t[t.length-1],r=e._cacheIndex;n._cacheIndex=r,t[r]=n,t.pop(),e._cacheIndex=null;const i=e._clip.uuid,a=this._actionsByClip,s=a[i],o=s.knownActions,l=o[o.length-1],c=e._byClipCacheIndex;l._byClipCacheIndex=c,o[c]=l,o.pop(),e._byClipCacheIndex=null,delete s.actionByRoot[(e._localRoot||this._root).uuid],0===o.length&&delete a[i],this._removeInactiveBindingsForAction(e)}_removeInactiveBindingsForAction(e){const t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){const n=t[e];0==--n.referenceCount&&this._removeInactiveBinding(n)}}_lendAction(e){const 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(e){const 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(e,t,n){const r=this._bindingsByRootAndName,i=this._bindings;let a=r[t];void 0===a&&(a={},r[t]=a),a[n]=e,e._cacheIndex=i.length,i.push(e)}_removeInactiveBinding(e){const t=this._bindings,n=e.binding,r=n.rootNode.uuid,i=n.path,a=this._bindingsByRootAndName,s=a[r],o=t[t.length-1],l=e._cacheIndex;o._cacheIndex=l,t[l]=o,t.pop(),delete s[i],0===Object.keys(s).length&&delete a[r]}_lendBinding(e){const 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(e){const 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(){const e=this._controlInterpolants,t=this._nActiveControlInterpolants++;let n=e[t];return void 0===n&&(n=new Cw(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer),n.__cacheIndex=t,e[t]=n),n}_takeBackControlInterpolant(e){const t=this._controlInterpolants,n=e.__cacheIndex,r=--this._nActiveControlInterpolants,i=t[r];e.__cacheIndex=r,t[r]=e,i.__cacheIndex=n,t[n]=i}clipAction(e,t,n){const r=t||this._root,i=r.uuid;let a="string"==typeof e?Bw.findByName(r,e):e;const s=null!==a?a.uuid:e,o=this._actionsByClip[s];let l=null;if(void 0===n&&(n=null!==a?a.blendMode:2500),void 0!==o){const e=o.actionByRoot[i];if(void 0!==e&&e.blendMode===n)return e;l=o.knownActions[0],null===a&&(a=l._clip)}if(null===a)return null;const c=new ST(this,a,t,n);return this._bindAction(c,l),this._addInactiveAction(c,s,i),c}existingAction(e,t){const n=t||this._root,r=n.uuid,i="string"==typeof e?Bw.findByName(n,e):e,a=i?i.uuid:e,s=this._actionsByClip[a];return void 0!==s&&s.actionByRoot[r]||null}stopAllAction(){const e=this._actions;for(let t=this._nActiveActions-1;t>=0;--t)e[t].stop();return this}update(e){e*=this.timeScale;const t=this._actions,n=this._nActiveActions,r=this.time+=e,i=Math.sign(e),a=this._accuIndex^=1;for(let s=0;s!==n;++s)t[s]._update(r,e,i,a);const s=this._bindings,o=this._nActiveBindings;for(let e=0;e!==o;++e)s[e].apply(a);return this}setTime(e){this.time=0;for(let e=0;e<this._actions.length;e++)this._actions[e].time=0;return this.update(e)}getRoot(){return this._root}uncacheClip(e){const t=this._actions,n=e.uuid,r=this._actionsByClip,i=r[n];if(void 0!==i){const e=i.knownActions;for(let n=0,r=e.length;n!==r;++n){const r=e[n];this._deactivateAction(r);const i=r._cacheIndex,a=t[t.length-1];r._cacheIndex=null,r._byClipCacheIndex=null,a._cacheIndex=i,t[i]=a,t.pop(),this._removeInactiveBindingsForAction(r)}delete r[n]}}uncacheRoot(e){const t=e.uuid,n=this._actionsByClip;for(const e in n){const r=n[e].actionByRoot[t];void 0!==r&&(this._deactivateAction(r),this._removeInactiveAction(r))}const r=this._bindingsByRootAndName[t];if(void 0!==r)for(const e in r){const t=r[e];t.restoreOriginalState(),this._removeInactiveBinding(t)}}uncacheAction(e,t){const n=this.existingAction(e,t);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}}).prototype._controlInterpolantsResultBuffer=new Float32Array(1);class ET{constructor(e){"string"==typeof e&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),e=arguments[1]),this.value=e}clone(){return new ET(void 0===this.value.clone?this.value:this.value.clone())}}class MT extends wx{constructor(e,t,n=1){super(e,t),this.meshPerAttribute=n}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}clone(e){const t=super.clone(e);return t.meshPerAttribute=this.meshPerAttribute,t}toJSON(e){const t=super.toJSON(e);return t.isInstancedInterleavedBuffer=!0,t.meshPerAttribute=this.meshPerAttribute,t}}MT.prototype.isInstancedInterleavedBuffer=!0;const AT=new tm;class CT{constructor(e=new tm(1/0,1/0),t=new tm(-1/0,-1/0)){this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){const n=AT.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}clone(){return(new this.constructor).copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y}getCenter(e){return this.isEmpty()?e.set(0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y)}containsBox(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(e,t){return 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(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(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return AT.copy(e).clamp(this.min,this.max).sub(e).length()}intersect(e){return this.min.max(e.min),this.max.min(e.max),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}CT.prototype.isBox2=!0;const RT=new Am,LT=new Am;class kT{constructor(e=new Am,t=new Am){this.start=e,this.end=t}set(e,t){return this.start.copy(e),this.end.copy(t),this}copy(e){return this.start.copy(e.start),this.end.copy(e.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,t){return this.delta(t).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,t){RT.subVectors(e,this.start),LT.subVectors(this.end,this.start);const n=LT.dot(LT);let r=LT.dot(RT)/n;return t&&(r=Yp(r,0,1)),r}closestPointToPoint(e,t,n){const r=this.closestPointToPointParameter(e,t);return this.delta(n).multiplyScalar(r).add(this.start)}applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(e){return e.start.equals(this.start)&&e.end.equals(this.end)}clone(){return(new this.constructor).copy(this)}}const PT=new Am,DT=new ig,OT=new ig;function IT(e){const t=[];!0===e.isBone&&t.push(e);for(let n=0;n<e.children.length;n++)t.push.apply(t,IT(e.children[n]));return t}class NT extends s_{constructor(e=1){const t=[0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],n=new rv;n.setAttribute("position",new Yg(t,3)),n.setAttribute("color",new Yg([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3)),super(n,new Jx({vertexColors:!0,toneMapped:!1})),this.type="AxesHelper"}setColors(e,t,n){const r=new mm,i=this.geometry.attributes.color.array;return r.set(e),r.toArray(i,0),r.toArray(i,3),r.set(t),r.toArray(i,6),r.toArray(i,9),r.set(n),r.toArray(i,12),r.toArray(i,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}}const FT=new ArrayBuffer(4),BT=(new Float32Array(FT),new Uint32Array(FT),new Uint32Array(512)),UT=new Uint32Array(512);for(let e=0;e<256;++e){const t=e-127;t<-27?(BT[e]=0,BT[256|e]=32768,UT[e]=24,UT[256|e]=24):t<-14?(BT[e]=1024>>-t-14,BT[256|e]=1024>>-t-14|32768,UT[e]=-t-1,UT[256|e]=-t-1):t<=15?(BT[e]=t+15<<10,BT[256|e]=t+15<<10|32768,UT[e]=13,UT[256|e]=13):t<128?(BT[e]=31744,BT[256|e]=64512,UT[e]=24,UT[256|e]=24):(BT[e]=31744,BT[256|e]=64512,UT[e]=13,UT[256|e]=13)}const zT=new Uint32Array(2048),HT=new Uint32Array(64),VT=new Uint32Array(64);for(let e=1;e<1024;++e){let t=e<<13,n=0;for(;0==(8388608&t);)t<<=1,n-=8388608;t&=-8388609,n+=947912704,zT[e]=t|n}for(let e=1024;e<2048;++e)zT[e]=939524096+(e-1024<<13);for(let e=1;e<31;++e)HT[e]=e<<23;HT[31]=1199570944,HT[32]=2147483648;for(let e=33;e<63;++e)HT[e]=2147483648+(e-32<<23);HT[63]=3347054592;for(let e=1;e<64;++e)32!==e&&(VT[e]=1024);p_.create=function(e,t){return console.log("THREE.Curve.create() has been deprecated"),e.prototype=Object.create(p_.prototype),e.prototype.constructor=e,e.prototype.getPoint=t,e},O_.prototype.fromPoints=function(e){return console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(e)};class GT extends NT{constructor(e){console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper."),super(e)}}(class extends s_{constructor(e=10,t=10,n=4473924,r=8947848){n=new mm(n),r=new mm(r);const i=t/2,a=e/t,s=e/2,o=[],l=[];for(let e=0,c=0,u=-s;e<=t;e++,u+=a){o.push(-s,0,u,s,0,u),o.push(u,0,-s,u,0,s);const t=e===i?n:r;t.toArray(l,c),c+=3,t.toArray(l,c),c+=3,t.toArray(l,c),c+=3,t.toArray(l,c),c+=3}const c=new rv;c.setAttribute("position",new Yg(o,3)),c.setAttribute("color",new Yg(l,3)),super(c,new Jx({vertexColors:!0,toneMapped:!1})),this.type="GridHelper"}}).prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},class extends s_{constructor(e){const t=IT(e),n=new rv,r=[],i=[],a=new mm(0,0,1),s=new mm(0,1,0);for(let e=0;e<t.length;e++){const n=t[e];n.parent&&n.parent.isBone&&(r.push(0,0,0),r.push(0,0,0),i.push(a.r,a.g,a.b),i.push(s.r,s.g,s.b))}n.setAttribute("position",new Yg(r,3)),n.setAttribute("color",new Yg(i,3)),super(n,new Jx({vertexColors:!0,depthTest:!1,depthWrite:!1,toneMapped:!1,transparent:!0})),this.type="SkeletonHelper",this.isSkeletonHelper=!0,this.root=e,this.bones=t,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1}updateMatrixWorld(e){const t=this.bones,n=this.geometry,r=n.getAttribute("position");OT.copy(this.root.matrixWorld).invert();for(let e=0,n=0;e<t.length;e++){const i=t[e];i.parent&&i.parent.isBone&&(DT.multiplyMatrices(OT,i.matrixWorld),PT.setFromMatrixPosition(DT),r.setXYZ(n,PT.x,PT.y,PT.z),DT.multiplyMatrices(OT,i.parent.matrixWorld),PT.setFromMatrixPosition(DT),r.setXYZ(n+1,PT.x,PT.y,PT.z),n+=2)}n.getAttribute("position").needsUpdate=!0,super.updateMatrixWorld(e)}}.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},Vw.prototype.extractUrlBase=function(e){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),cT.extractUrlBase(e)},Vw.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.")}},CT.prototype.center=function(e){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(e)},CT.prototype.empty=function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},CT.prototype.isIntersectionBox=function(e){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},CT.prototype.size=function(e){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(e)},Lm.prototype.center=function(e){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(e)},Lm.prototype.empty=function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},Lm.prototype.isIntersectionBox=function(e){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},Lm.prototype.isIntersectionSphere=function(e){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(e)},Lm.prototype.size=function(e){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(e)},pg.prototype.toVector3=function(){console.error("THREE.Euler: .toVector3() has been removed. Use Vector3.setFromEuler() instead")},Ym.prototype.empty=function(){return console.warn("THREE.Sphere: .empty() has been renamed to .isEmpty()."),this.isEmpty()},zv.prototype.setFromMatrix=function(e){return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."),this.setFromProjectionMatrix(e)},kT.prototype.center=function(e){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(e)},nm.prototype.flattenToArrayOffset=function(e,t){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(e,t)},nm.prototype.multiplyVector3=function(e){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),e.applyMatrix3(this)},nm.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},nm.prototype.applyToBufferAttribute=function(e){return console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead."),e.applyMatrix3(this)},nm.prototype.applyToVector3Array=function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")},nm.prototype.getInverse=function(e){return console.warn("THREE.Matrix3: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(e).invert()},ig.prototype.extractPosition=function(e){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(e)},ig.prototype.flattenToArrayOffset=function(e,t){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(e,t)},ig.prototype.getPosition=function(){return console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),(new Am).setFromMatrixColumn(this,3)},ig.prototype.setRotationFromQuaternion=function(e){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(e)},ig.prototype.multiplyToArray=function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},ig.prototype.multiplyVector3=function(e){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},ig.prototype.multiplyVector4=function(e){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},ig.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},ig.prototype.rotateAxis=function(e){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),e.transformDirection(this)},ig.prototype.crossVector=function(e){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},ig.prototype.translate=function(){console.error("THREE.Matrix4: .translate() has been removed.")},ig.prototype.rotateX=function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},ig.prototype.rotateY=function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},ig.prototype.rotateZ=function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},ig.prototype.rotateByAxis=function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},ig.prototype.applyToBufferAttribute=function(e){return console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},ig.prototype.applyToVector3Array=function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},ig.prototype.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)},ig.prototype.getInverse=function(e){return console.warn("THREE.Matrix4: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(e).invert()},Fv.prototype.isIntersectionLine=function(e){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(e)},Mm.prototype.multiplyVector3=function(e){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),e.applyQuaternion(this)},Mm.prototype.inverse=function(){return console.warn("THREE.Quaternion: .inverse() has been renamed to invert()."),this.invert()},rg.prototype.isIntersectionBox=function(e){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},rg.prototype.isIntersectionPlane=function(e){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(e)},rg.prototype.isIntersectionSphere=function(e){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(e)},zg.prototype.area=function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},zg.prototype.barycoordFromPoint=function(e,t){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(e,t)},zg.prototype.midpoint=function(e){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(e)},zg.prototypenormal=function(e){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(e)},zg.prototype.plane=function(e){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(e)},zg.barycoordFromPoint=function(e,t,n,r,i){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),zg.getBarycoord(e,t,n,r,i)},zg.normal=function(e,t,n,r){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),zg.getNormal(e,t,n,r)},I_.prototype.extractAllPoints=function(e){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(e)},I_.prototype.extrude=function(e){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new cw(this,e)},I_.prototype.makeGeometry=function(e){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new hw(this,e)},tm.prototype.fromAttribute=function(e,t,n){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},tm.prototype.distanceToManhattan=function(e){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(e)},tm.prototype.lengthManhattan=function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},Am.prototype.setEulerFromRotationMatrix=function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},Am.prototype.setEulerFromQuaternion=function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},Am.prototype.getPositionFromMatrix=function(e){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(e)},Am.prototype.getScaleFromMatrix=function(e){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(e)},Am.prototype.getColumnFromMatrix=function(e,t){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(t,e)},Am.prototype.applyProjection=function(e){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(e)},Am.prototype.fromAttribute=function(e,t,n){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},Am.prototype.distanceToManhattan=function(e){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(e)},Am.prototype.lengthManhattan=function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},wm.prototype.fromAttribute=function(e,t,n){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},wm.prototype.lengthManhattan=function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},Rg.prototype.getChildByName=function(e){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(e)},Rg.prototype.renderDepth=function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},Rg.prototype.translate=function(e,t){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(t,e)},Rg.prototype.getWorldRotation=function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")},Rg.prototype.applyMatrix=function(e){return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(e)},Object.defineProperties(Rg.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.")}}}),_v.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(_v.prototype,{drawMode:{get:function(){return console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode."),0},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.")}}}),jx.prototype.initBones=function(){console.error("THREE.SkinnedMesh: initBones() has been removed.")},Rv.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($w.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(Xg.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===zp},set:function(){console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.setUsage(zp)}}}),Xg.prototype.setDynamic=function(e){return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===e?zp:Up),this},Xg.prototype.copyIndicesArray=function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")},Xg.prototype.setArray=function(){console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},rv.prototype.addIndex=function(e){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(e)},rv.prototype.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 Xg(arguments[1],arguments[2])))},rv.prototype.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)},rv.prototype.clearDrawCalls=function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},rv.prototype.computeOffsets=function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")},rv.prototype.removeAttribute=function(e){return console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute()."),this.deleteAttribute(e)},rv.prototype.applyMatrix=function(e){return console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(e)},Object.defineProperties(rv.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}}}),wx.prototype.setDynamic=function(e){return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===e?zp:Up),this},wx.prototype.setArray=function(){console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},cw.prototype.getArrays=function(){console.error("THREE.ExtrudeGeometry: .getArrays() has been removed.")},cw.prototype.addShapeList=function(){console.error("THREE.ExtrudeGeometry: .addShapeList() has been removed.")},cw.prototype.addShape=function(){console.error("THREE.ExtrudeGeometry: .addShape() has been removed.")},_x.prototype.dispose=function(){console.error("THREE.Scene: .dispose() has been removed.")},ET.prototype.onUpdate=function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this},Object.defineProperties(Vg.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 mm}},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=1===e}},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}},vertexTangents:{get:function(){console.warn("THREE."+this.type+": .vertexTangents has been removed.")},set:function(){console.warn("THREE."+this.type+": .vertexTangents has been removed.")}}}),Object.defineProperties(Av.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}}}),yx.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)},yx.prototype.animate=function(e){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(e)},yx.prototype.getCurrentRenderTarget=function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},yx.prototype.getMaxAnisotropy=function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},yx.prototype.getPrecision=function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},yx.prototype.resetGLState=function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},yx.prototype.supportsFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},yx.prototype.supportsHalfFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},yx.prototype.supportsStandardDerivatives=function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},yx.prototype.supportsCompressedTextureS3TC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},yx.prototype.supportsCompressedTexturePVRTC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},yx.prototype.supportsBlendMinMax=function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},yx.prototype.supportsVertexTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},yx.prototype.supportsInstancedArrays=function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},yx.prototype.enableScissorTest=function(e){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(e)},yx.prototype.initMaterial=function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},yx.prototype.addPrePlugin=function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},yx.prototype.addPostPlugin=function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},yx.prototype.updateShadowMap=function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},yx.prototype.setFaceCulling=function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")},yx.prototype.allocTextureUnit=function(){console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed.")},yx.prototype.setTexture=function(){console.warn("THREE.WebGLRenderer: .setTexture() has been removed.")},yx.prototype.setTexture2D=function(){console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed.")},yx.prototype.setTextureCube=function(){console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed.")},yx.prototype.getActiveMipMapLevel=function(){return console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel()."),this.getActiveMipmapLevel()},Object.defineProperties(yx.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?Ip:Op}},toneMappingWhitePoint:{get:function(){return console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed."),1},set:function(){console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.")}},gammaFactor:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaFactor has been removed."),2},set:function(){console.warn("THREE.WebGLRenderer: .gammaFactor has been removed.")}}}),Object.defineProperties(ox.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(Tm.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}}}),class extends Rg{constructor(e){super(),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.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}setMediaElementSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}setMediaStreamSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}setBuffer(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}play(e=0){if(!0===this.isPlaying)return void console.warn("THREE.Audio: Audio is already playing.");if(!1===this.hasPlaybackControl)return void console.warn("THREE.Audio: this Audio has no playback control.");this._startedAt=this.context.currentTime+e;const 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._progress+this.offset,this.duration),this.isPlaying=!0,this.source=t,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(!1!==this.hasPlaybackControl)return!0===this.isPlaying&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,!0===this.loop&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this;console.warn("THREE.Audio: this Audio has no playback control.")}stop(){if(!1!==this.hasPlaybackControl)return this._progress=0,this.source.stop(),this.source.onended=null,this.isPlaying=!1,this;console.warn("THREE.Audio: this Audio has no playback control.")}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let 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._connected=!0,this}disconnect(){if(this.filters.length>0){this.source.disconnect(this.filters[0]);for(let 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._connected=!1,this}getFilters(){return this.filters}setFilters(e){return e||(e=[]),!0===this._connected?(this.disconnect(),this.filters=e.slice(),this.connect()):this.filters=e.slice(),this}setDetune(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(){return this.detune}getFilter(){return this.getFilters()[0]}setFilter(e){return this.setFilters(e?[e]:[])}setPlaybackRate(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(){return this.playbackRate}onEnded(){this.isPlaying=!1}getLoop(){return!1===this.hasPlaybackControl?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop}setLoop(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(e){return this.loopStart=e,this}setLoopEnd(e){return this.loopEnd=e,this}getVolume(){return this.gain.gain.value}setVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}}.prototype.load=function(e){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");const t=this;return(new fT).load(e,(function(e){t.setBuffer(e)})),this},kv.prototype.updateCubeMap=function(e,t){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(e,t)},kv.prototype.clear=function(e,t,n,r){return console.warn("THREE.CubeCamera: .clear() is now .renderTarget.clear()."),this.renderTarget.clear(e,t,n,r)},vm.crossOrigin=void 0,vm.loadTexture=function(e,t,n,r){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");const i=new qw;i.setCrossOrigin(this.crossOrigin);const a=i.load(e,n,void 0,r);return t&&(a.mapping=t),a},vm.loadTextureCube=function(e,t,n,r){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");const i=new Xw;i.setCrossOrigin(this.crossOrigin);const a=i.load(e,n,void 0,r);return t&&(a.mapping=t),a},vm.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},vm.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:"139"}})),"undefined"!=typeof window&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__="139");const WT=/^[og]\s*(.+)?/,jT=/^mtllib /,XT=/^usemtl /,qT=/^usemap /,$T=new Am,YT=new Am,ZT=new Am,JT=new Am,KT=new Am,QT=new mm;function eS(){const e={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(e,t){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=e,void(this.object.fromDeclaration=!1!==t);const n=this.object&&"function"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0),this.object={name:e||"",fromDeclaration:!1!==t,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(e,t){const n=this._finalize(!1);n&&(n.inherited||n.groupCount<=0)&&this.materials.splice(n.index,1);const r={index:this.materials.length,name:e||"",mtllib:Array.isArray(t)&&t.length>0?t[t.length-1]:"",smooth:void 0!==n?n.smooth:this.smooth,groupStart:void 0!==n?n.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(e){const t={index:"number"==typeof e?e:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return t.clone=this.clone.bind(t),t}};return this.materials.push(r),r},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(e){const t=this.currentMaterial();if(t&&-1===t.groupEnd&&(t.groupEnd=this.geometry.vertices.length/3,t.groupCount=t.groupEnd-t.groupStart,t.inherited=!1),e&&this.materials.length>1)for(let e=this.materials.length-1;e>=0;e--)this.materials[e].groupCount<=0&&this.materials.splice(e,1);return e&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),t}},n&&n.name&&"function"==typeof n.clone){const e=n.clone(0);e.inherited=!0,this.object.materials.push(e)}this.objects.push(this.object)},finalize:function(){this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(e,t){const n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseNormalIndex:function(e,t){const n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseUVIndex:function(e,t){const n=parseInt(e,10);return 2*(n>=0?n-1:n+t/2)},addVertex:function(e,t,n){const r=this.vertices,i=this.object.geometry.vertices;i.push(r[e+0],r[e+1],r[e+2]),i.push(r[t+0],r[t+1],r[t+2]),i.push(r[n+0],r[n+1],r[n+2])},addVertexPoint:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addVertexLine:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addNormal:function(e,t,n){const r=this.normals,i=this.object.geometry.normals;i.push(r[e+0],r[e+1],r[e+2]),i.push(r[t+0],r[t+1],r[t+2]),i.push(r[n+0],r[n+1],r[n+2])},addFaceNormal:function(e,t,n){const r=this.vertices,i=this.object.geometry.normals;$T.fromArray(r,e),YT.fromArray(r,t),ZT.fromArray(r,n),KT.subVectors(ZT,YT),JT.subVectors($T,YT),KT.cross(JT),KT.normalize(),i.push(KT.x,KT.y,KT.z),i.push(KT.x,KT.y,KT.z),i.push(KT.x,KT.y,KT.z)},addColor:function(e,t,n){const r=this.colors,i=this.object.geometry.colors;void 0!==r[e]&&i.push(r[e+0],r[e+1],r[e+2]),void 0!==r[t]&&i.push(r[t+0],r[t+1],r[t+2]),void 0!==r[n]&&i.push(r[n+0],r[n+1],r[n+2])},addUV:function(e,t,n){const r=this.uvs,i=this.object.geometry.uvs;i.push(r[e+0],r[e+1]),i.push(r[t+0],r[t+1]),i.push(r[n+0],r[n+1])},addDefaultUV:function(){const e=this.object.geometry.uvs;e.push(0,0),e.push(0,0),e.push(0,0)},addUVLine:function(e){const t=this.uvs;this.object.geometry.uvs.push(t[e+0],t[e+1])},addFace:function(e,t,n,r,i,a,s,o,l){const c=this.vertices.length;let u=this.parseVertexIndex(e,c),h=this.parseVertexIndex(t,c),f=this.parseVertexIndex(n,c);if(this.addVertex(u,h,f),this.addColor(u,h,f),void 0!==s&&""!==s){const e=this.normals.length;u=this.parseNormalIndex(s,e),h=this.parseNormalIndex(o,e),f=this.parseNormalIndex(l,e),this.addNormal(u,h,f)}else this.addFaceNormal(u,h,f);if(void 0!==r&&""!==r){const e=this.uvs.length;u=this.parseUVIndex(r,e),h=this.parseUVIndex(i,e),f=this.parseUVIndex(a,e),this.addUV(u,h,f),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(e){this.object.geometry.type="Points";const t=this.vertices.length;for(let n=0,r=e.length;n<r;n++){const r=this.parseVertexIndex(e[n],t);this.addVertexPoint(r),this.addColor(r)}},addLineGeometry:function(e,t){this.object.geometry.type="Line";const n=this.vertices.length,r=this.uvs.length;for(let t=0,r=e.length;t<r;t++)this.addVertexLine(this.parseVertexIndex(e[t],n));for(let e=0,n=t.length;e<n;e++)this.addUVLine(this.parseUVIndex(t[e],r))}};return e.startObject("",!1),e}class tS extends Vw{constructor(e){super(e),this.materials=null}load(e,t,n,r){const i=this,a=new Ww(this.manager);a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.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)}setMaterials(e){return this.materials=e,this}parse(e){const t=new eS;-1!==e.indexOf("\r\n")&&(e=e.replace(/\r\n/g,"\n")),-1!==e.indexOf("\\\n")&&(e=e.replace(/\\\n/g,""));const n=e.split("\n");let r="",i="",a=0,s=[];const o="function"==typeof"".trimLeft;for(let e=0,l=n.length;e<l;e++)if(r=n[e],r=o?r.trimLeft():r.trim(),a=r.length,0!==a&&(i=r.charAt(0),"#"!==i))if("v"===i){const e=r.split(/\s+/);switch(e[0]){case"v":t.vertices.push(parseFloat(e[1]),parseFloat(e[2]),parseFloat(e[3])),e.length>=7?(QT.setRGB(parseFloat(e[4]),parseFloat(e[5]),parseFloat(e[6])).convertSRGBToLinear(),t.colors.push(QT.r,QT.g,QT.b)):t.colors.push(void 0,void 0,void 0);break;case"vn":t.normals.push(parseFloat(e[1]),parseFloat(e[2]),parseFloat(e[3]));break;case"vt":t.uvs.push(parseFloat(e[1]),parseFloat(e[2]))}}else if("f"===i){const e=r.slice(1).trim().split(/\s+/),n=[];for(let t=0,r=e.length;t<r;t++){const r=e[t];if(r.length>0){const e=r.split("/");n.push(e)}}const i=n[0];for(let e=1,r=n.length-1;e<r;e++){const r=n[e],a=n[e+1];t.addFace(i[0],r[0],a[0],i[1],r[1],a[1],i[2],r[2],a[2])}}else if("l"===i){const e=r.substring(1).trim().split(" ");let n=[];const i=[];if(-1===r.indexOf("/"))n=e;else for(let t=0,r=e.length;t<r;t++){const r=e[t].split("/");""!==r[0]&&n.push(r[0]),""!==r[1]&&i.push(r[1])}t.addLineGeometry(n,i)}else if("p"===i){const e=r.slice(1).trim().split(" ");t.addPointGeometry(e)}else if(null!==(s=WT.exec(r))){const e=(" "+s[0].slice(1).trim()).slice(1);t.startObject(e)}else if(XT.test(r))t.object.startMaterial(r.substring(7).trim(),t.materialLibraries);else if(jT.test(r))t.materialLibraries.push(r.substring(7).trim());else if(qT.test(r))console.warn('THREE.OBJLoader: Rendering identifier "usemap" not supported. Textures must be defined in MTL files.');else if("s"===i){if(s=r.split(" "),s.length>1){const e=s[1].trim().toLowerCase();t.object.smooth="0"!==e&&"off"!==e}else t.object.smooth=!0;const e=t.object.currentMaterial();e&&(e.smooth=t.object.smooth)}else{if("\0"===r)continue;console.warn('THREE.OBJLoader: Unexpected line: "'+r+'"')}t.finalize();const l=new fx;if(l.materialLibraries=[].concat(t.materialLibraries),!0==!(1===t.objects.length&&0===t.objects[0].geometry.vertices.length))for(let e=0,n=t.objects.length;e<n;e++){const n=t.objects[e],r=n.geometry,i=n.materials,a="Line"===r.type,s="Points"===r.type;let o=!1;if(0===r.vertices.length)continue;const c=new rv;c.setAttribute("position",new Yg(r.vertices,3)),r.normals.length>0&&c.setAttribute("normal",new Yg(r.normals,3)),r.colors.length>0&&(o=!0,c.setAttribute("color",new Yg(r.colors,3))),!0===r.hasUVIndices&&c.setAttribute("uv",new Yg(r.uvs,2));const u=[];for(let e=0,n=i.length;e<n;e++){const n=i[e],r=n.name+"_"+n.smooth+"_"+o;let l=t.materials[r];if(null!==this.materials)if(l=this.materials.create(n.name),!a||!l||l instanceof Jx){if(s&&l&&!(l instanceof o_)){const e=new o_({size:10,sizeAttenuation:!1});Vg.prototype.copy.call(e,l),e.color.copy(l.color),e.map=l.map,l=e}}else{const e=new Jx;Vg.prototype.copy.call(e,l),e.color.copy(l.color),l=e}void 0===l&&(l=a?new Jx:s?new o_({size:1,sizeAttenuation:!1}):new yw,l.name=n.name,l.flatShading=!n.smooth,l.vertexColors=o,t.materials[r]=l),u.push(l)}let h;if(u.length>1){for(let e=0,t=i.length;e<t;e++){const t=i[e];c.addGroup(t.groupStart,t.groupCount,e)}h=a?new s_(c,u):s?new f_(c,u):new _v(c,u)}else h=a?new s_(c,u[0]):s?new f_(c,u[0]):new _v(c,u[0]);h.name=n.name,l.add(h)}else if(t.vertices.length>0){const e=new o_({size:1,sizeAttenuation:!1}),n=new rv;n.setAttribute("position",new Yg(t.vertices,3)),t.colors.length>0&&void 0!==t.colors[0]&&(n.setAttribute("color",new Yg(t.colors,3)),e.vertexColors=!0);const r=new f_(n,e);l.add(r)}return l}}class nS extends Mw{constructor(e,t,n,r){super(e,t,n,r)}copySampleValue_(e){const t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=e*r*3+r;for(let e=0;e!==r;e++)t[e]=n[i+e];return t}}nS.prototype.beforeStart_=nS.prototype.copySampleValue_,nS.prototype.afterEnd_=nS.prototype.copySampleValue_,nS.prototype.interpolate_=function(e,t,n,r){const i=this.resultBuffer,a=this.sampleValues,s=this.valueSize,o=2*s,l=3*s,c=r-t,u=(n-t)/c,h=u*u,f=h*u,d=e*l,p=d-l,m=-2*f+3*h,g=f-h,v=1-m,y=g-h+u;for(let e=0;e!==s;e++){const t=a[p+e+s],n=a[p+e+o]*c,r=a[d+e+s],l=a[d+e]*c;i[e]=v*t+y*n+m*r+g*l}return i},new Mm,Int8Array,Uint8Array,Int16Array,Uint16Array,Uint32Array,Float32Array;class rS extends Vw{constructor(e){super(e)}load(e,t,n,r){const i=this,a=""===this.path?cT.extractUrlBase(e):this.path,s=new Ww(this.manager);s.setPath(this.path),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(e,(function(n){try{t(i.parse(n,a))}catch(t){r?r(t):console.error(t),i.manager.itemError(e)}}),n,r)}setMaterialOptions(e){return this.materialOptions=e,this}parse(e,t){const n=e.split("\n");let r={};const i=/\s+/,a={};for(let e=0;e<n.length;e++){let t=n[e];if(t=t.trim(),0===t.length||"#"===t.charAt(0))continue;const s=t.indexOf(" ");let o=s>=0?t.substring(0,s):t;o=o.toLowerCase();let l=s>=0?t.substring(s+1):"";if(l=l.trim(),"newmtl"===o)r={name:l},a[l]=r;else if("ka"===o||"kd"===o||"ks"===o||"ke"===o){const e=l.split(i,3);r[o]=[parseFloat(e[0]),parseFloat(e[1]),parseFloat(e[2])]}else r[o]=l}const s=new iS(this.resourcePath||t,this.materialOptions);return s.setCrossOrigin(this.crossOrigin),s.setManager(this.manager),s.setMaterials(a),s}}class iS{constructor(e="",t={}){this.baseUrl=e,this.options=t,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.crossOrigin="anonymous",this.side=void 0!==this.options.side?this.options.side:0,this.wrap=void 0!==this.options.wrap?this.options.wrap:cp}setCrossOrigin(e){return this.crossOrigin=e,this}setManager(e){this.manager=e}setMaterials(e){this.materialsInfo=this.convert(e),this.materials={},this.materialsArray=[],this.nameLookup={}}convert(e){if(!this.options)return e;const t={};for(const n in e){const r=e[n],i={};t[n]=i;for(const e in r){let t=!0,n=r[e];const a=e.toLowerCase();switch(a){case"kd":case"ka":case"ks":this.options&&this.options.normalizeRGB&&(n=[n[0]/255,n[1]/255,n[2]/255]),this.options&&this.options.ignoreZeroRGBs&&0===n[0]&&0===n[1]&&0===n[2]&&(t=!1)}t&&(i[a]=n)}}return t}preload(){for(const e in this.materialsInfo)this.create(e)}getIndex(e){return this.nameLookup[e]}getAsArray(){let e=0;for(const t in this.materialsInfo)this.materialsArray[e]=this.create(t),this.nameLookup[t]=e,e++;return this.materialsArray}create(e){return void 0===this.materials[e]&&this.createMaterial_(e),this.materials[e]}createMaterial_(e){const t=this,n=this.materialsInfo[e],r={name:e,side:this.side};function i(e,n){if(r[e])return;const i=t.getTextureParams(n,r),a=t.loadTexture((s=t.baseUrl,"string"!=typeof(o=i.url)||""===o?"":/^https?:\/\//i.test(o)?o:s+o));var s,o;a.repeat.copy(i.scale),a.offset.copy(i.offset),a.wrapS=t.wrap,a.wrapT=t.wrap,"map"!==e&&"emissiveMap"!==e||(a.encoding=Ip),r[e]=a}for(const e in n){const t=n[e];let a;if(""!==t)switch(e.toLowerCase()){case"kd":r.color=(new mm).fromArray(t).convertSRGBToLinear();break;case"ks":r.specular=(new mm).fromArray(t).convertSRGBToLinear();break;case"ke":r.emissive=(new mm).fromArray(t).convertSRGBToLinear();break;case"map_kd":i("map",t);break;case"map_ks":i("specularMap",t);break;case"map_ke":i("emissiveMap",t);break;case"norm":i("normalMap",t);break;case"map_bump":case"bump":i("bumpMap",t);break;case"map_d":i("alphaMap",t),r.transparent=!0;break;case"ns":r.shininess=parseFloat(t);break;case"d":a=parseFloat(t),a<1&&(r.opacity=a,r.transparent=!0);break;case"tr":a=parseFloat(t),this.options&&this.options.invertTrProperty&&(a=1-a),a>0&&(r.opacity=1-a,r.transparent=!0)}}return this.materials[e]=new yw(r),this.materials[e]}getTextureParams(e,t){const n={scale:new tm(1,1),offset:new tm(0,0)},r=e.split(/\s+/);let i;return i=r.indexOf("-bm"),i>=0&&(t.bumpScale=parseFloat(r[i+1]),r.splice(i,2)),i=r.indexOf("-s"),i>=0&&(n.scale.set(parseFloat(r[i+1]),parseFloat(r[i+2])),r.splice(i,4)),i=r.indexOf("-o"),i>=0&&(n.offset.set(parseFloat(r[i+1]),parseFloat(r[i+2])),r.splice(i,4)),n.url=r.join(" ").trim(),n}loadTexture(e,t,n,r,i){const a=void 0!==this.manager?this.manager:Hw;let s=a.getHandler(e);null===s&&(s=new qw(a)),s.setCrossOrigin&&s.setCrossOrigin(this.crossOrigin);const o=s.load(e,n,r,i);return void 0!==t&&(o.mapping=t),o}}var aS=function(e){return URL.createObjectURL(new Blob([e],{type:"text/javascript"}))};try{URL.revokeObjectURL(aS(""))}catch(e){aS=function(e){return"data:application/javascript;charset=UTF-8,"+encodeURI(e)}}var sS=Uint8Array,oS=Uint16Array,lS=Uint32Array,cS=new sS([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),uS=new sS([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),hS=(new sS([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),function(e,t){for(var n=new oS(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new lS(n[30]);for(r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return[n,i]}),fS=hS(cS,2),dS=fS[0],pS=fS[1];dS[28]=258,pS[258]=28;for(var mS=hS(uS,0),gS=(mS[0],mS[1],new oS(32768)),vS=0;vS<32768;++vS){var yS=(43690&vS)>>>1|(21845&vS)<<1;yS=(61680&(yS=(52428&yS)>>>2|(13107&yS)<<2))>>>4|(3855&yS)<<4,gS[vS]=((65280&yS)>>>8|(255&yS)<<8)>>>1}var bS=new sS(288);for(vS=0;vS<144;++vS)bS[vS]=8;for(vS=144;vS<256;++vS)bS[vS]=9;for(vS=256;vS<280;++vS)bS[vS]=7;for(vS=280;vS<288;++vS)bS[vS]=8;var xS=new sS(32);for(vS=0;vS<32;++vS)xS[vS]=5;var _S=new sS(0),wS="undefined"!=typeof TextDecoder&&new TextDecoder;try{wS.decode(_S,{stream:!0})}catch(e){}new pg,new Am;const TS=new Lm,SS=new Am;class ES extends uT{constructor(){super(),this.type="LineSegmentsGeometry",this.setIndex([0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5]),this.setAttribute("position",new Yg([-1,2,0,1,2,0,-1,1,0,1,1,0,-1,0,0,1,0,0,-1,-1,0,1,-1,0],3)),this.setAttribute("uv",new Yg([-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],2))}applyMatrix4(e){const t=this.attributes.instanceStart,n=this.attributes.instanceEnd;return void 0!==t&&(t.applyMatrix4(e),n.applyMatrix4(e),t.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}setPositions(e){let t;e instanceof Float32Array?t=e:Array.isArray(e)&&(t=new Float32Array(e));const n=new MT(t,6,1);return this.setAttribute("instanceStart",new Sx(n,3,0)),this.setAttribute("instanceEnd",new Sx(n,3,3)),this.computeBoundingBox(),this.computeBoundingSphere(),this}setColors(e){let t;e instanceof Float32Array?t=e:Array.isArray(e)&&(t=new Float32Array(e));const n=new MT(t,6,1);return this.setAttribute("instanceColorStart",new Sx(n,3,0)),this.setAttribute("instanceColorEnd",new Sx(n,3,3)),this}fromWireframeGeometry(e){return this.setPositions(e.attributes.position.array),this}fromEdgesGeometry(e){return this.setPositions(e.attributes.position.array),this}fromMesh(e){return this.fromWireframeGeometry(new fw(e.geometry)),this}fromLineSegments(e){const t=e.geometry;if(!t.isGeometry)return t.isBufferGeometry&&this.setPositions(t.attributes.position.array),this;console.error("THREE.LineSegmentsGeometry no longer supports Geometry. Use THREE.BufferGeometry instead.")}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new Lm);const e=this.attributes.instanceStart,t=this.attributes.instanceEnd;void 0!==e&&void 0!==t&&(this.boundingBox.setFromBufferAttribute(e),TS.setFromBufferAttribute(t),this.boundingBox.union(TS))}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new Ym),null===this.boundingBox&&this.computeBoundingBox();const e=this.attributes.instanceStart,t=this.attributes.instanceEnd;if(void 0!==e&&void 0!==t){const n=this.boundingSphere.center;this.boundingBox.getCenter(n);let r=0;for(let i=0,a=e.count;i<a;i++)SS.fromBufferAttribute(e,i),r=Math.max(r,n.distanceToSquared(SS)),SS.fromBufferAttribute(t,i),r=Math.max(r,n.distanceToSquared(SS));this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)&&console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.",this)}}toJSON(){}applyMatrix(e){return console.warn("THREE.LineSegmentsGeometry: applyMatrix() has been renamed to applyMatrix4()."),this.applyMatrix4(e)}}ES.prototype.isLineSegmentsGeometry=!0,jv.line={worldUnits:{value:1},linewidth:{value:1},resolution:{value:new tm(1,1)},dashOffset:{value:0},dashScale:{value:1},dashSize:{value:1},gapSize:{value:1}},Xv.line={uniforms:Mv.merge([jv.common,jv.fog,jv.line]),vertexShader:"\n\t\t#include <common>\n\t\t#include <color_pars_vertex>\n\t\t#include <fog_pars_vertex>\n\t\t#include <logdepthbuf_pars_vertex>\n\t\t#include <clipping_planes_pars_vertex>\n\n\t\tuniform float linewidth;\n\t\tuniform vec2 resolution;\n\n\t\tattribute vec3 instanceStart;\n\t\tattribute vec3 instanceEnd;\n\n\t\tattribute vec3 instanceColorStart;\n\t\tattribute vec3 instanceColorEnd;\n\n\t\t#ifdef WORLD_UNITS\n\n\t\t\tvarying vec4 worldPos;\n\t\t\tvarying vec3 worldStart;\n\t\t\tvarying vec3 worldEnd;\n\n\t\t\t#ifdef USE_DASH\n\n\t\t\t\tvarying vec2 vUv;\n\n\t\t\t#endif\n\n\t\t#else\n\n\t\t\tvarying vec2 vUv;\n\n\t\t#endif\n\n\t\t#ifdef USE_DASH\n\n\t\t\tuniform float dashScale;\n\t\t\tattribute float instanceDistanceStart;\n\t\t\tattribute float instanceDistanceEnd;\n\t\t\tvarying float vLineDistance;\n\n\t\t#endif\n\n\t\tvoid trimSegment( const in vec4 start, inout vec4 end ) {\n\n\t\t\t// trim end segment so it terminates between the camera plane and the near plane\n\n\t\t\t// conservative estimate of the near plane\n\t\t\tfloat a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column\n\t\t\tfloat b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column\n\t\t\tfloat nearEstimate = - 0.5 * b / a;\n\n\t\t\tfloat alpha = ( nearEstimate - start.z ) / ( end.z - start.z );\n\n\t\t\tend.xyz = mix( start.xyz, end.xyz, alpha );\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\t#ifdef USE_COLOR\n\n\t\t\t\tvColor.xyz = ( position.y < 0.5 ) ? instanceColorStart : instanceColorEnd;\n\n\t\t\t#endif\n\n\t\t\t#ifdef USE_DASH\n\n\t\t\t\tvLineDistance = ( position.y < 0.5 ) ? dashScale * instanceDistanceStart : dashScale * instanceDistanceEnd;\n\t\t\t\tvUv = uv;\n\n\t\t\t#endif\n\n\t\t\tfloat aspect = resolution.x / resolution.y;\n\n\t\t\t// camera space\n\t\t\tvec4 start = modelViewMatrix * vec4( instanceStart, 1.0 );\n\t\t\tvec4 end = modelViewMatrix * vec4( instanceEnd, 1.0 );\n\n\t\t\t#ifdef WORLD_UNITS\n\n\t\t\t\tworldStart = start.xyz;\n\t\t\t\tworldEnd = end.xyz;\n\n\t\t\t#else\n\n\t\t\t\tvUv = uv;\n\n\t\t\t#endif\n\n\t\t\t// special case for perspective projection, and segments that terminate either in, or behind, the camera plane\n\t\t\t// clearly the gpu firmware has a way of addressing this issue when projecting into ndc space\n\t\t\t// but we need to perform ndc-space calculations in the shader, so we must address this issue directly\n\t\t\t// perhaps there is a more elegant solution -- WestLangley\n\n\t\t\tbool perspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 ); // 4th entry in the 3rd column\n\n\t\t\tif ( perspective ) {\n\n\t\t\t\tif ( start.z < 0.0 && end.z >= 0.0 ) {\n\n\t\t\t\t\ttrimSegment( start, end );\n\n\t\t\t\t} else if ( end.z < 0.0 && start.z >= 0.0 ) {\n\n\t\t\t\t\ttrimSegment( end, start );\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// clip space\n\t\t\tvec4 clipStart = projectionMatrix * start;\n\t\t\tvec4 clipEnd = projectionMatrix * end;\n\n\t\t\t// ndc space\n\t\t\tvec3 ndcStart = clipStart.xyz / clipStart.w;\n\t\t\tvec3 ndcEnd = clipEnd.xyz / clipEnd.w;\n\n\t\t\t// direction\n\t\t\tvec2 dir = ndcEnd.xy - ndcStart.xy;\n\n\t\t\t// account for clip-space aspect ratio\n\t\t\tdir.x *= aspect;\n\t\t\tdir = normalize( dir );\n\n\t\t\t#ifdef WORLD_UNITS\n\n\t\t\t\t// get the offset direction as perpendicular to the view vector\n\t\t\t\tvec3 worldDir = normalize( end.xyz - start.xyz );\n\t\t\t\tvec3 offset;\n\t\t\t\tif ( position.y < 0.5 ) {\n\n\t\t\t\t\toffset = normalize( cross( start.xyz, worldDir ) );\n\n\t\t\t\t} else {\n\n\t\t\t\t\toffset = normalize( cross( end.xyz, worldDir ) );\n\n\t\t\t\t}\n\n\t\t\t\t// sign flip\n\t\t\t\tif ( position.x < 0.0 ) offset *= - 1.0;\n\n\t\t\t\tfloat forwardOffset = dot( worldDir, vec3( 0.0, 0.0, 1.0 ) );\n\n\t\t\t\t// don't extend the line if we're rendering dashes because we\n\t\t\t\t// won't be rendering the endcaps\n\t\t\t\t#ifndef USE_DASH\n\n\t\t\t\t\t// extend the line bounds to encompass endcaps\n\t\t\t\t\tstart.xyz += - worldDir * linewidth * 0.5;\n\t\t\t\t\tend.xyz += worldDir * linewidth * 0.5;\n\n\t\t\t\t\t// shift the position of the quad so it hugs the forward edge of the line\n\t\t\t\t\toffset.xy -= dir * forwardOffset;\n\t\t\t\t\toffset.z += 0.5;\n\n\t\t\t\t#endif\n\n\t\t\t\t// endcaps\n\t\t\t\tif ( position.y > 1.0 || position.y < 0.0 ) {\n\n\t\t\t\t\toffset.xy += dir * 2.0 * forwardOffset;\n\n\t\t\t\t}\n\n\t\t\t\t// adjust for linewidth\n\t\t\t\toffset *= linewidth * 0.5;\n\n\t\t\t\t// set the world position\n\t\t\t\tworldPos = ( position.y < 0.5 ) ? start : end;\n\t\t\t\tworldPos.xyz += offset;\n\n\t\t\t\t// project the worldpos\n\t\t\t\tvec4 clip = projectionMatrix * worldPos;\n\n\t\t\t\t// shift the depth of the projected points so the line\n\t\t\t\t// segments overlap neatly\n\t\t\t\tvec3 clipPose = ( position.y < 0.5 ) ? ndcStart : ndcEnd;\n\t\t\t\tclip.z = clipPose.z * clip.w;\n\n\t\t\t#else\n\n\t\t\t\tvec2 offset = vec2( dir.y, - dir.x );\n\t\t\t\t// undo aspect ratio adjustment\n\t\t\t\tdir.x /= aspect;\n\t\t\t\toffset.x /= aspect;\n\n\t\t\t\t// sign flip\n\t\t\t\tif ( position.x < 0.0 ) offset *= - 1.0;\n\n\t\t\t\t// endcaps\n\t\t\t\tif ( position.y < 0.0 ) {\n\n\t\t\t\t\toffset += - dir;\n\n\t\t\t\t} else if ( position.y > 1.0 ) {\n\n\t\t\t\t\toffset += dir;\n\n\t\t\t\t}\n\n\t\t\t\t// adjust for linewidth\n\t\t\t\toffset *= linewidth;\n\n\t\t\t\t// adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ...\n\t\t\t\toffset /= resolution.y;\n\n\t\t\t\t// select end\n\t\t\t\tvec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd;\n\n\t\t\t\t// back to clip space\n\t\t\t\toffset *= clip.w;\n\n\t\t\t\tclip.xy += offset;\n\n\t\t\t#endif\n\n\t\t\tgl_Position = clip;\n\n\t\t\tvec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation\n\n\t\t\t#include <logdepthbuf_vertex>\n\t\t\t#include <clipping_planes_vertex>\n\t\t\t#include <fog_vertex>\n\n\t\t}\n\t\t",fragmentShader:"\n\t\tuniform vec3 diffuse;\n\t\tuniform float opacity;\n\t\tuniform float linewidth;\n\n\t\t#ifdef USE_DASH\n\n\t\t\tuniform float dashOffset;\n\t\t\tuniform float dashSize;\n\t\t\tuniform float gapSize;\n\n\t\t#endif\n\n\t\tvarying float vLineDistance;\n\n\t\t#ifdef WORLD_UNITS\n\n\t\t\tvarying vec4 worldPos;\n\t\t\tvarying vec3 worldStart;\n\t\t\tvarying vec3 worldEnd;\n\n\t\t\t#ifdef USE_DASH\n\n\t\t\t\tvarying vec2 vUv;\n\n\t\t\t#endif\n\n\t\t#else\n\n\t\t\tvarying vec2 vUv;\n\n\t\t#endif\n\n\t\t#include <common>\n\t\t#include <color_pars_fragment>\n\t\t#include <fog_pars_fragment>\n\t\t#include <logdepthbuf_pars_fragment>\n\t\t#include <clipping_planes_pars_fragment>\n\n\t\tvec2 closestLineToLine(vec3 p1, vec3 p2, vec3 p3, vec3 p4) {\n\n\t\t\tfloat mua;\n\t\t\tfloat mub;\n\n\t\t\tvec3 p13 = p1 - p3;\n\t\t\tvec3 p43 = p4 - p3;\n\n\t\t\tvec3 p21 = p2 - p1;\n\n\t\t\tfloat d1343 = dot( p13, p43 );\n\t\t\tfloat d4321 = dot( p43, p21 );\n\t\t\tfloat d1321 = dot( p13, p21 );\n\t\t\tfloat d4343 = dot( p43, p43 );\n\t\t\tfloat d2121 = dot( p21, p21 );\n\n\t\t\tfloat denom = d2121 * d4343 - d4321 * d4321;\n\n\t\t\tfloat numer = d1343 * d4321 - d1321 * d4343;\n\n\t\t\tmua = numer / denom;\n\t\t\tmua = clamp( mua, 0.0, 1.0 );\n\t\t\tmub = ( d1343 + d4321 * ( mua ) ) / d4343;\n\t\t\tmub = clamp( mub, 0.0, 1.0 );\n\n\t\t\treturn vec2( mua, mub );\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\t#include <clipping_planes_fragment>\n\n\t\t\t#ifdef USE_DASH\n\n\t\t\t\tif ( vUv.y < - 1.0 || vUv.y > 1.0 ) discard; // discard endcaps\n\n\t\t\t\tif ( mod( vLineDistance + dashOffset, dashSize + gapSize ) > dashSize ) discard; // todo - FIX\n\n\t\t\t#endif\n\n\t\t\tfloat alpha = opacity;\n\n\t\t\t#ifdef WORLD_UNITS\n\n\t\t\t\t// Find the closest points on the view ray and the line segment\n\t\t\t\tvec3 rayEnd = normalize( worldPos.xyz ) * 1e5;\n\t\t\t\tvec3 lineDir = worldEnd - worldStart;\n\t\t\t\tvec2 params = closestLineToLine( worldStart, worldEnd, vec3( 0.0, 0.0, 0.0 ), rayEnd );\n\n\t\t\t\tvec3 p1 = worldStart + lineDir * params.x;\n\t\t\t\tvec3 p2 = rayEnd * params.y;\n\t\t\t\tvec3 delta = p1 - p2;\n\t\t\t\tfloat len = length( delta );\n\t\t\t\tfloat norm = len / linewidth;\n\n\t\t\t\t#ifndef USE_DASH\n\n\t\t\t\t\t#ifdef USE_ALPHA_TO_COVERAGE\n\n\t\t\t\t\t\tfloat dnorm = fwidth( norm );\n\t\t\t\t\t\talpha = 1.0 - smoothstep( 0.5 - dnorm, 0.5 + dnorm, norm );\n\n\t\t\t\t\t#else\n\n\t\t\t\t\t\tif ( norm > 0.5 ) {\n\n\t\t\t\t\t\t\tdiscard;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t#endif\n\n\t\t\t\t#endif\n\n\t\t\t#else\n\n\t\t\t\t#ifdef USE_ALPHA_TO_COVERAGE\n\n\t\t\t\t\t// artifacts appear on some hardware if a derivative is taken within a conditional\n\t\t\t\t\tfloat a = vUv.x;\n\t\t\t\t\tfloat b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;\n\t\t\t\t\tfloat len2 = a * a + b * b;\n\t\t\t\t\tfloat dlen = fwidth( len2 );\n\n\t\t\t\t\tif ( abs( vUv.y ) > 1.0 ) {\n\n\t\t\t\t\t\talpha = 1.0 - smoothstep( 1.0 - dlen, 1.0 + dlen, len2 );\n\n\t\t\t\t\t}\n\n\t\t\t\t#else\n\n\t\t\t\t\tif ( abs( vUv.y ) > 1.0 ) {\n\n\t\t\t\t\t\tfloat a = vUv.x;\n\t\t\t\t\t\tfloat b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;\n\t\t\t\t\t\tfloat len2 = a * a + b * b;\n\n\t\t\t\t\t\tif ( len2 > 1.0 ) discard;\n\n\t\t\t\t\t}\n\n\t\t\t\t#endif\n\n\t\t\t#endif\n\n\t\t\tvec4 diffuseColor = vec4( diffuse, alpha );\n\n\t\t\t#include <logdepthbuf_fragment>\n\t\t\t#include <color_fragment>\n\n\t\t\tgl_FragColor = vec4( diffuseColor.rgb, alpha );\n\n\t\t\t#include <tonemapping_fragment>\n\t\t\t#include <encodings_fragment>\n\t\t\t#include <fog_fragment>\n\t\t\t#include <premultiplied_alpha_fragment>\n\n\t\t}\n\t\t"};class MS extends Av{constructor(e){super({type:"LineMaterial",uniforms:Mv.clone(Xv.line.uniforms),vertexShader:Xv.line.vertexShader,fragmentShader:Xv.line.fragmentShader,clipping:!0}),Object.defineProperties(this,{color:{enumerable:!0,get:function(){return this.uniforms.diffuse.value},set:function(e){this.uniforms.diffuse.value=e}},worldUnits:{enumerable:!0,get:function(){return"WORLD_UNITS"in this.defines},set:function(e){!0===e?this.defines.WORLD_UNITS="":delete this.defines.WORLD_UNITS}},linewidth:{enumerable:!0,get:function(){return this.uniforms.linewidth.value},set:function(e){this.uniforms.linewidth.value=e}},dashed:{enumerable:!0,get:function(){return Boolean("USE_DASH"in this.defines)},set(e){Boolean(e)!==Boolean("USE_DASH"in this.defines)&&(this.needsUpdate=!0),!0===e?this.defines.USE_DASH="":delete this.defines.USE_DASH}},dashScale:{enumerable:!0,get:function(){return this.uniforms.dashScale.value},set:function(e){this.uniforms.dashScale.value=e}},dashSize:{enumerable:!0,get:function(){return this.uniforms.dashSize.value},set:function(e){this.uniforms.dashSize.value=e}},dashOffset:{enumerable:!0,get:function(){return this.uniforms.dashOffset.value},set:function(e){this.uniforms.dashOffset.value=e}},gapSize:{enumerable:!0,get:function(){return this.uniforms.gapSize.value},set:function(e){this.uniforms.gapSize.value=e}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(e){this.uniforms.opacity.value=e}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(e){this.uniforms.resolution.value.copy(e)}},alphaToCoverage:{enumerable:!0,get:function(){return Boolean("USE_ALPHA_TO_COVERAGE"in this.defines)},set:function(e){Boolean(e)!==Boolean("USE_ALPHA_TO_COVERAGE"in this.defines)&&(this.needsUpdate=!0),!0===e?(this.defines.USE_ALPHA_TO_COVERAGE="",this.extensions.derivatives=!0):(delete this.defines.USE_ALPHA_TO_COVERAGE,this.extensions.derivatives=!1)}}}),this.setValues(e)}}MS.prototype.isLineMaterial=!0;const AS=new Am,CS=new Am,RS=new wm,LS=new wm,kS=new wm,PS=new Am,DS=new ig,OS=new kT,IS=new Am,NS=new Lm,FS=new Ym,BS=new wm;let US,zS,HS,VS;function GS(e,t,n){return BS.set(0,0,-t,1).applyMatrix4(e.projectionMatrix),BS.multiplyScalar(1/BS.w),BS.x=VS/n.width,BS.y=VS/n.height,BS.applyMatrix4(e.projectionMatrixInverse),BS.multiplyScalar(1/BS.w),Math.abs(Math.max(BS.x,BS.y))}class WS extends _v{constructor(e=new ES,t=new MS({color:16777215*Math.random()})){super(e,t),this.type="LineSegments2"}computeLineDistances(){const e=this.geometry,t=e.attributes.instanceStart,n=e.attributes.instanceEnd,r=new Float32Array(2*t.count);for(let e=0,i=0,a=t.count;e<a;e++,i+=2)AS.fromBufferAttribute(t,e),CS.fromBufferAttribute(n,e),r[i]=0===i?0:r[i-1],r[i+1]=r[i]+AS.distanceTo(CS);const i=new MT(r,2,1);return e.setAttribute("instanceDistanceStart",new Sx(i,1,0)),e.setAttribute("instanceDistanceEnd",new Sx(i,1,1)),this}raycast(e,t){const n=this.material.worldUnits,r=e.camera;null!==r||n||console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2 while worldUnits is set to false.');const i=void 0!==e.params.Line2&&e.params.Line2.threshold||0;US=e.ray;const a=this.matrixWorld,s=this.geometry,o=this.material;let l,c;VS=o.linewidth+i,zS=s.attributes.instanceStart,HS=s.attributes.instanceEnd,null===s.boundingSphere&&s.computeBoundingSphere(),FS.copy(s.boundingSphere).applyMatrix4(a),l=n?.5*VS:GS(r,Math.max(r.near,FS.distanceToPoint(US.origin)),o.resolution),FS.radius+=l,!1!==US.intersectsSphere(FS)&&(null===s.boundingBox&&s.computeBoundingBox(),NS.copy(s.boundingBox).applyMatrix4(a),c=n?.5*VS:GS(r,Math.max(r.near,NS.distanceToPoint(US.origin)),o.resolution),NS.expandByScalar(c),!1!==US.intersectsBox(NS)&&(n?function(e,t){for(let n=0,r=zS.count;n<r;n++){OS.start.fromBufferAttribute(zS,n),OS.end.fromBufferAttribute(HS,n);const r=new Am,i=new Am;US.distanceSqToSegment(OS.start,OS.end,i,r),i.distanceTo(r)<.5*VS&&t.push({point:i,pointOnLine:r,distance:US.origin.distanceTo(i),object:e,face:null,faceIndex:n,uv:null,uv2:null})}}(this,t):function(e,t,n){const r=t.projectionMatrix,i=e.material.resolution,a=e.matrixWorld,s=e.geometry,o=s.attributes.instanceStart,l=s.attributes.instanceEnd,c=-t.near;US.at(1,kS),kS.w=1,kS.applyMatrix4(t.matrixWorldInverse),kS.applyMatrix4(r),kS.multiplyScalar(1/kS.w),kS.x*=i.x/2,kS.y*=i.y/2,kS.z=0,PS.copy(kS),DS.multiplyMatrices(t.matrixWorldInverse,a);for(let t=0,s=o.count;t<s;t++){if(RS.fromBufferAttribute(o,t),LS.fromBufferAttribute(l,t),RS.w=1,LS.w=1,RS.applyMatrix4(DS),LS.applyMatrix4(DS),RS.z>c&&LS.z>c)continue;if(RS.z>c){const e=RS.z-LS.z,t=(RS.z-c)/e;RS.lerp(LS,t)}else if(LS.z>c){const e=LS.z-RS.z,t=(LS.z-c)/e;LS.lerp(RS,t)}RS.applyMatrix4(r),LS.applyMatrix4(r),RS.multiplyScalar(1/RS.w),LS.multiplyScalar(1/LS.w),RS.x*=i.x/2,RS.y*=i.y/2,LS.x*=i.x/2,LS.y*=i.y/2,OS.start.copy(RS),OS.start.z=0,OS.end.copy(LS),OS.end.z=0;const s=OS.closestPointToPointParameter(PS,!0);OS.at(s,IS);const u=em.lerp(RS.z,LS.z,s),h=u>=-1&&u<=1,f=PS.distanceTo(IS)<.5*VS;if(h&&f){OS.start.fromBufferAttribute(o,t),OS.end.fromBufferAttribute(l,t),OS.start.applyMatrix4(a),OS.end.applyMatrix4(a);const r=new Am,i=new Am;US.distanceSqToSegment(OS.start,OS.end,i,r),n.push({point:i,pointOnLine:r,distance:US.origin.distanceTo(i),object:e,face:null,faceIndex:t,uv:null,uv2:null})}}}(this,r,t)))}}WS.prototype.isLineSegments2=!0;class jS extends ES{constructor(){super(),this.type="LineGeometry"}setPositions(e){const t=e.length-3,n=new Float32Array(2*t);for(let r=0;r<t;r+=3)n[2*r]=e[r],n[2*r+1]=e[r+1],n[2*r+2]=e[r+2],n[2*r+3]=e[r+3],n[2*r+4]=e[r+4],n[2*r+5]=e[r+5];return super.setPositions(n),this}setColors(e){const t=e.length-3,n=new Float32Array(2*t);for(let r=0;r<t;r+=3)n[2*r]=e[r],n[2*r+1]=e[r+1],n[2*r+2]=e[r+2],n[2*r+3]=e[r+3],n[2*r+4]=e[r+4],n[2*r+5]=e[r+5];return super.setColors(n),this}fromLine(e){const t=e.geometry;if(!t.isGeometry)return t.isBufferGeometry&&this.setPositions(t.attributes.position.array),this;console.error("THREE.LineGeometry no longer supports Geometry. Use THREE.BufferGeometry instead.")}}jS.prototype.isLineGeometry=!0,class extends WS{constructor(e=new jS,t=new MS({color:16777215*Math.random()})){super(e,t),this.type="Line2"}}.prototype.isLine2=!0,class extends Rg{constructor(e=document.createElement("div")){super(),this.element=e,this.element.style.position="absolute",this.element.style.userSelect="none",this.element.setAttribute("draggable",!1),this.addEventListener("removed",(function(){this.traverse((function(e){e.element instanceof Element&&null!==e.element.parentNode&&e.element.parentNode.removeChild(e.element)}))}))}copy(e,t){return super.copy(e,t),this.element=e.element.cloneNode(!0),this}}.prototype.isCSS2DObject=!0,new Am,new ig,new ig,new Am,new Am;const XS={name:"ModelViewer",data:()=>({viewerSrc:"",image:null,listDataCache:[],index:0,imgUrl:"",isCreatePoster:!1,gl:{scene:null,renderer:null,camera:null,controls:null,geometry:null,isRotate:!1,isMove:!1,startEvent:null,WebGLoutput:null,animationFrame:null}}),props:{list:{type:Array,default:()=>[]},alt:{type:String,default:"预览图缺失"},show:{type:Boolean,default:!1},currentIndex:{type:Number,default:0},width:{type:String,default:"80%"},height:{type:String,default:"80%"},showThumbnail:{type:Boolean,default:!1}},computed:{listLength(){return this.list.length},realName(){return this.list[this.index].name},currentData(){return this.listDataCache[this.index]},currentModel(){return this.list[this.index]}},watch:{show(e){e?(this.$emit("open"),this.index=this.currentIndex,this.loadModel(this.currentModel)):this.$emit("close")}},mounted(){},methods:{viewerStyle(){return`width:${this.width};height:${this.height};`},getModelImg(e){},init(){this.keydown()},loadModel(e){const t=()=>{let t=new rS,n=new tS;const r=e.mtl,i=e.obj;t.load(r,(e=>{e.preload();const t=Object.keys(e.materials);for(let n=0;n<t.length;n++)e.materials[t[n]].opacity=1-e.materials[t[n]].opacity;n.setMaterials(e),n.load(i,(e=>{this.gl.geometry=e,e.position.x=0,e.position.y=0,e.position.z=-100,e.scale.x=100,e.scale.y=100,e.scale.z=100,e.scale.set(200,200,200),this.gl.scene.add(e)}))}))},n=()=>{this.gl.scene=new _x,this.gl.scene.rotateY(45);let e=new GT(50);this.gl.scene.add(e);let t=new iT(16777215);t.position.set(200,300,10),this.gl.scene.add(t);let n=new sT(4473924);n.position.set(200,300,10),this.gl.scene.add(n);let r=.8*window.innerWidth,i=.8*window.innerHeight,a=r/i,s=200;this.gl.camera=new Qv(-s*a,s*a,s,-s,1,1e3),this.gl.camera.position.set(500,300,200),this.gl.camera.lookAt(this.gl.scene.position),this.gl.renderer=new yx,this.gl.renderer.setSize(r,i),this.gl.renderer.setClearColor(12178431,1),this.gl.WebGLoutput.innerHTML="",this.gl.renderer.domElement.style.width="100%",this.gl.renderer.domElement.style.height="100%",this.gl.WebGLoutput.appendChild(this.gl.renderer.domElement),this.gl.renderer.domElement.addEventListener("click",(e=>{console.log("click",e)})),this.gl.renderer.domElement.addEventListener("dblclick",(e=>{console.log("dblclick",e)})),this.gl.renderer.domElement.addEventListener("mousedown",(e=>{console.log("mousedown",e),1===e.which&&(this.gl.isRotate=!0,this.gl.startEvent=e),3===e.which&&(this.gl.isMove=!0,this.gl.startEvent=e)})),this.gl.renderer.domElement.addEventListener("mouseup",(e=>{console.log("mouseup",e),this.gl.isRotate=!1,this.gl.isMove=!1})),this.gl.renderer.domElement.addEventListener("contextmenu",(e=>{console.log("mouseup",e),e.preventDefault()})),this.gl.renderer.domElement.addEventListener("mousewheel",(e=>{console.log("mousewheel",e),e.preventDefault();let t=.1;e.wheelDelta>0?(t=1-t,this.gl.geometry.scale.set(this.gl.geometry.scale.x*t,this.gl.geometry.scale.y*t,this.gl.geometry.scale.z*t)):(t=1+t,this.gl.geometry.scale.set(this.gl.geometry.scale.x*t,this.gl.geometry.scale.y*t,this.gl.geometry.scale.z*t))})),this.gl.renderer.domElement.addEventListener("mousemove",(e=>{if(this.gl.isRotate){const t=-(this.gl.startEvent.offsetX-e.offsetX),n=-(this.gl.startEvent.offsetY-e.offsetY);this.gl.geometry.rotateOnWorldAxis(new Am(1,0,0),.001*n),this.gl.geometry.rotateOnWorldAxis(new Am(0,1,0),.001*t)}if(this.gl.isMove){const t=.05*-(this.gl.startEvent.offsetX-e.offsetX),n=.05*(this.gl.startEvent.offsetY-e.offsetY);this.gl.geometry.position.set(this.gl.geometry.position.x+t,this.gl.geometry.position.y+n,this.gl.geometry.position.z)}}))},r=()=>{this.gl.renderer.render(this.gl.scene,this.gl.camera),this.gl.animationFrame=requestAnimationFrame(r)};this.$nextTick((()=>{this.gl.WebGLoutput=document.querySelector("#WebGL-output"),n(),r(),t()}))},switchAction(e){let t=this.index;switch(e){case"prev":this.index+=this.index<=0?0:-1;break;case"next":{let e=this.listLength-1;this.index+=this.index>=e?e-this.index:1}break;default:this.index=+e}this.judgeThumbnailListMove(t,this.index)},judgeThumbnailListMove(e,t){if(e==t)return;let n=0,r=0,i=34*(t-e),a=(this.listLength,this.$refs.duoViewerImageThumbnailList);a&&(r=this.getCurrentTransform(a),r&&(n=Math.abs(+r.translateX)),this.setTransform(a,{scaleX:"1",skewY:"0",translateX:`-${n+i}px`,translateY:"0%",rotate:"0deg"}))},requestFullScreen(){let e=this.$refs.duoViewer,t=e.requestFullScreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.call(e)},keydown(){window.addEventListener("keydown",(e=>{(e=event||window.event)&&40==e.keyCode&&this.zoom("out"),e&&37==e.keyCode&&this.switchAction("prev"),e&&39==e.keyCode&&this.switchAction("next"),e&&38==e.keyCode&&this.zoom("in"),e&&27==e.keyCode&&this.handleClose()}))},initMouseWheel(){const e=e=>{(e=e||window.event).wheelDelta?(e.wheelDelta>0&&this.zoom("out"),e.wheelDelta<0&&this.zoom("in")):e.detail&&(e.detail>0&&this.zoom("out"),e.detail<0&&this.zoom("in"))};document.addEventListener&&document.addEventListener("DOMMouseScroll",e,!1),window.onmousewheel=document.onmousewheel=e},clickAgent(e){switch(e.target.getAttribute("data-viewer-action")){case"zoom-in":this.zoom("in");break;case"zoom-out":this.zoom("out");break;case"one-to-one":this.resetZoom();break;case"prev":this.switchAction("prev");break;case"play":this.requestFullScreen();break;case"next":this.switchAction("next");break;case"reset":this.resetAll();break;case"select":this.switchAction(e.target.getAttribute("data-viewer-action-index"));break;case"rotate-left":this.rotate("left");break;case"rotate-right":this.rotate("right")}},handleClose(){cancelAnimationFrame(this.gl.animationFrame);const e=Object.keys(this.gl);for(let t=0;t<e.length;t++)this.gl[e[t]]=null;this.$emit("update:show",!1)}}},qS=XS;var $S=n(404),YS={};YS.styleTagTransform=Vd(),YS.setAttributes=Bd(),YS.insert=Nd().bind(null,"head"),YS.domAPI=Od(),YS.insertStyleElement=zd(),Pd()($S.Z,YS),$S.Z&&$S.Z.locals&&$S.Z.locals;var ZS=jd(qS,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("div",{ref:"duoViewer",staticClass:"duo-viewer",on:{click:e.clickAgent}},[n("div",{staticClass:"duo-viewer-mask"},[n("div",{staticClass:"duo-viewer-mask__image",style:e.viewerStyle(),attrs:{id:"WebGL-output"}})]),e._v(" "),e.showThumbnail?n("div",{staticClass:"duo-viewer-footer"},[n("div",{staticClass:"duo-viewer-footer__title"},[e._v(e._s(e.realName))]),e._v(" "),e._m(0),e._v(" "),n("div",{staticClass:"duo-viewer-footer__navbar"},[n("div",{staticClass:"duo-viewer-footer__navbar-thumbnail-wrap"},[n("div",{ref:"duoViewerImageThumbnailList",staticClass:"duo-viewer-footer__navbar-thumbnail-list",style:{width:34*e.listLength+"px"}},e._l(e.list,(function(t,r){return n("div",{key:t+r,class:r===e.index?"duo-viewer-footer__navbar-thumbnail-item viewer-current":"duo-viewer-footer__navbar-thumbnail-item"},[n("img",{staticClass:"duo-viewer-footer__navbar-thumbnail-image",attrs:{"data-viewer-action":"select","data-viewer-action-index":r,src:e.getModelImg(t,r),alt:e.alt}})])})),0)])])]):e._e(),e._v(" "),n("div",{staticClass:"duo-viewer-close",on:{click:e.handleClose}},[n("div",{staticClass:"duo-viewer-close__off"})])]):e._e()}),[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"duo-viewer-footer__toolbar"},[n("ul",[n("li",{staticClass:"duo-viewer-footer__zoom-in",attrs:{"data-viewer-action":"zoom-in"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__zoom-out",attrs:{"data-viewer-action":"zoom-out"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__one-to-one",attrs:{"data-viewer-action":"one-to-one"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__prev",attrs:{"data-viewer-action":"prev"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__play",attrs:{"data-viewer-action":"play"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__next",attrs:{"data-viewer-action":"next"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__reset",attrs:{"data-viewer-action":"reset"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__rotate-left",attrs:{"data-viewer-action":"rotate-left"}}),e._v(" "),n("li",{staticClass:"duo-viewer-footer__rotate-right",attrs:{"data-viewer-action":"rotate-right"}})])])}],!1,null,"646727ba",null);const JS=ZS.exports;var KS=function(e,t,n,r){var i,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};const QS={t:"top",m:"marginTop",b:"bottom"},eE={l:"left",m:"marginLeft",r:"right"};let tE=class extends ud{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"stickSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parentScaleX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parentScaleY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isActive",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"preventActiveBehavior",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isDraggable",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isResizable",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"aspectRatio",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parentLimitation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"snapToGrid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"gridX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"gridY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parentW",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parentH",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"w",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"h",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"minw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"minh",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"z",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dragHandle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dragCancel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sticks",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"axis",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contentClass",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isStorage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"emits",{enumerable:!0,configurable:!0,writable:!0,value:["clicked","dragging","dragstop","resizing","resizestop","activated","deactivated"]}),Object.defineProperty(this,"fixAspectRatio",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"active",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"zIndex",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"parentWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"parentHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"left",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"top",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"right",{enumerable:!0,configurable:!0,writable:!0,value:50}),Object.defineProperty(this,"bottom",{enumerable:!0,configurable:!0,writable:!0,value:50}),Object.defineProperty(this,"minHeight",{enumerable:!0,configurable:!0,writable:!0,value:10}),Object.defineProperty(this,"stickDrag",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"bodyDrag",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"dimensionsBeforeMove",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"limits",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentStick",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"aspectFactor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"domEvents",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parentElement",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_uid",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}beforeCreate(){this.stickDrag=!1,this.bodyDrag=!1,this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}},this.currentStick=null}mounted(){if(this.parentElement=this.$el.parentNode,this.parentWidth=this.parentW?this.parentW:this.parentElement.clientWidth,this.parentHeight=this.parentH?this.parentH:this.parentElement.clientHeight,this.left=this.x,this.top=this.y,this.right=this.parentWidth-("auto"===this.w?this.$refs.container.scrollWidth:this.w)-this.left,this.bottom=this.parentHeight-("auto"===this.h?this.$refs.container.scrollHeight:this.h)-this.top,this.domEvents=new Map([["mousemove",this.move],["mouseup",this.up],["mouseleave",this.up],["mousedown",this.deselect],["touchmove",this.move],["touchend",this.up],["touchcancel",this.up],["touchstart",this.up],["keydown",this.keydown]]),function(e){e.forEach(((e,t)=>{document.documentElement.addEventListener(t,e)}))}(this.domEvents),this.dragHandle&&[...this.$el.querySelectorAll(this.dragHandle)].forEach((e=>{e.setAttribute("data-drag-handle",this._uid)})),this.dragCancel&&[...this.$el.querySelectorAll(this.dragCancel)].forEach((e=>{e.setAttribute("data-drag-cancel",this._uid)})),""!==this.name.trim()&&this.isStorage){let e=JSON.parse(localStorage.getItem("DragResizeView_Rect_"+this.name));null!==e&&null!==e.left&&null!==e.top&&null!==e.right&&null!==e.bottom?(this.left=e.left,this.top=e.top,this.right=e.right,this.bottom=e.bottom):localStorage.removeItem("DragResizeView_Rect_"+this.name)}}beforeDestroy(){!function(e){e.forEach(((e,t)=>{document.documentElement.removeEventListener(t,e)}))}(this.domEvents)}deselect(){this.preventActiveBehavior||(this.active=!1)}move(e){if(!this.stickDrag&&!this.bodyDrag)return;e.stopPropagation();const t=void 0!==e.pageX?e.pageX:e.touches[0].pageX,n=void 0!==e.pageY?e.pageY:e.touches[0].pageY,{dimensionsBeforeMove:r}=this,i={x:(r.pointerX-t)/this.parentScaleX,y:(r.pointerY-n)/this.parentScaleY};if(this.stickDrag&&this.stickMove(i),this.bodyDrag){if("x"===this.axis)i.y=0;else if("y"===this.axis)i.x=0;else if("none"===this.axis)return;this.bodyMove(i)}}up(e){this.stickDrag?this.stickUp():this.bodyDrag&&this.bodyUp()}keydown(e){if(!this.stickDrag&&!this.bodyDrag)return;e.stopPropagation();const{dimensionsBeforeMove:t}=this;let n=0,r=0;if("a"===e.key||"ArrowLeft"===e.key)n=t.pointerX-1,r=t.pointerY;else if("d"===e.key||"ArrowRight"===e.key)n=t.pointerX+1,r=t.pointerY;else if("w"===e.key||"ArrowUp"===e.key)n=t.pointerX,r=t.pointerY-1;else{if("s"!==e.key&&"ArrowDown"!==e.key)return;n=t.pointerX,r=t.pointerY+1}const i={x:(t.pointerX-n)/this.parentScaleX,y:(t.pointerY-r)/this.parentScaleY};if(this.stickDrag&&this.stickMove(i),"x"===this.axis)i.y=0;else if("y"===this.axis)i.x=0;else if("none"===this.axis)return;this.bodyMove(i),this.saveDimensionsBeforeMove(i.x,i.y)}bodyDown(e){const{target:t,button:n}=e;if(this.preventActiveBehavior||(this.active=!0),n&&0!==n)return;if(this.$emit("clicked",e),!this.active)return;if(this.dragHandle&&t.getAttribute("data-drag-handle")!==this._uid.toString())return;if(this.dragCancel&&t.getAttribute("data-drag-cancel")===this._uid.toString())return;void 0!==e.stopPropagation&&e.stopPropagation(),void 0!==e.preventDefault&&e.preventDefault(),this.isDraggable&&(this.bodyDrag=!0);const r=void 0!==e.pageX?e.pageX:e.touches[0].pageX,i=void 0!==e.pageY?e.pageY:e.touches[0].pageY;this.saveDimensionsBeforeMove(r,i),this.parentLimitation&&(this.limits=this.calcDragLimitation())}bodyMove(e){const{dimensionsBeforeMove:t,parentWidth:n,parentHeight:r,gridX:i,gridY:a,width:s,height:o}=this;let l=t.top-e.y,c=t.bottom+e.y,u=t.left-e.x,h=t.right+e.x;if(this.snapToGrid){let e=!0,t=!0,f=l-Math.floor(l/a)*a,d=r-c-Math.floor((r-c)/a)*a,p=u-Math.floor(u/i)*i,m=n-h-Math.floor((n-h)/i)*i;f>a/2&&(f-=a),d>a/2&&(d-=a),p>i/2&&(p-=i),m>i/2&&(m-=i),Math.abs(d)<Math.abs(f)&&(e=!1),Math.abs(m)<Math.abs(p)&&(t=!1),l-=e?f:d,c=r-o-l,u-=t?p:m,h=n-s-u}({newLeft:this.left,newRight:this.right,newTop:this.top,newBottom:this.bottom}=this.rectCorrectionByLimit({newLeft:u,newRight:h,newTop:l,newBottom:c})),this.$emit("dragging",this.rect),this.storageElementInfo()}bodyUp(){this.bodyDrag=!1,this.$emit("dragging",this.rect),this.$emit("dragstop",this.rect),this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}}}stickDown(e,t,n=!1){if(!(this.isResizable&&this.active||n))return;this.stickDrag=!0;const r=void 0!==t.pageX?t.pageX:t.touches[0].pageX,i=void 0!==t.pageY?t.pageY:t.touches[0].pageY;this.saveDimensionsBeforeMove(r,i),this.currentStick=e,this.limits=this.calcResizeLimits()}saveDimensionsBeforeMove(e,t){this.dimensionsBeforeMove.pointerX=e,this.dimensionsBeforeMove.pointerY=t,this.dimensionsBeforeMove.left=this.left,this.dimensionsBeforeMove.right=this.right,this.dimensionsBeforeMove.top=this.top,this.dimensionsBeforeMove.bottom=this.bottom,this.dimensionsBeforeMove.width=this.width,this.dimensionsBeforeMove.height=this.height,this.aspectFactor=this.width/this.height}stickMove(e){const{currentStick:t,dimensionsBeforeMove:n,gridY:r,gridX:i,snapToGrid:a,parentHeight:s,parentWidth:o}=this;let l=n.top,c=n.bottom,u=n.left,h=n.right;switch(t[0]){case"b":c=n.bottom+e.y,a&&(c=s-Math.round((s-c)/r)*r);break;case"t":l=n.top-e.y,a&&(l=Math.round(l/r)*r)}switch(t[1]){case"r":h=n.right+e.x,a&&(h=o-Math.round((o-h)/i)*i);break;case"l":u=n.left-e.x,a&&(u=Math.round(u/i)*i)}({newLeft:u,newRight:h,newTop:l,newBottom:c}=this.rectCorrectionByLimit({newLeft:u,newRight:h,newTop:l,newBottom:c})),this.aspectRatio&&({newLeft:u,newRight:h,newTop:l,newBottom:c}=this.rectCorrectionByAspectRatio({newLeft:u,newRight:h,newTop:l,newBottom:c})),this.left=u,this.right=h,this.top=l,this.bottom=c,this.$emit("resizing",this.rect),this.storageElementInfo()}stickUp(){this.stickDrag=!1,this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}},this.$emit("resizing",this.rect),this.$emit("resizestop",this.rect)}calcDragLimitation(){const{parentWidth:e,parentHeight:t}=this;return{left:{min:0,max:e-this.width},right:{min:0,max:e-this.width},top:{min:0,max:t-this.height},bottom:{min:0,max:t-this.height}}}calcResizeLimits(){const{aspectFactor:e,width:t,height:n,bottom:r,top:i,left:a,right:s}=this;let{minh:o,minw:l}=this;const c=this.parentLimitation?0:null;this.aspectRatio&&(l/o>e?o=l/e:l=e*o);const u={left:{min:c,max:a+(t-l)},right:{min:c,max:s+(t-l)},top:{min:c,max:i+(n-o)},bottom:{min:c,max:r+(n-o)}};if(this.aspectRatio){const c={left:{min:a-Math.min(i,r)*e*2,max:a+(n-o)/2*e*2},right:{min:s-Math.min(i,r)*e*2,max:s+(n-o)/2*e*2},top:{min:i-Math.min(a,s)/e*2,max:i+(t-l)/2/e*2},bottom:{min:r-Math.min(a,s)/e*2,max:r+(t-l)/2/e*2}};"m"===this.currentStick[0]?(u.left={min:Math.max(u.left.min,c.left.min),max:Math.min(u.left.max,c.left.max)},u.right={min:Math.max(u.right.min,c.right.min),max:Math.min(u.right.max,c.right.max)}):"m"===this.currentStick[1]&&(u.top={min:Math.max(u.top.min,c.top.min),max:Math.min(u.top.max,c.top.max)},u.bottom={min:Math.max(u.bottom.min,c.bottom.min),max:Math.min(u.bottom.max,c.bottom.max)})}return u}sideCorrectionByLimit(e,t){let n=t;return null!==e.min&&t<e.min?n=e.min:null!==e.max&&e.max<t&&(n=e.max),n}rectCorrectionByLimit(e){const{limits:t}=this;let{newRight:n,newLeft:r,newBottom:i,newTop:a}=e;return r=this.sideCorrectionByLimit(t.left,r),n=this.sideCorrectionByLimit(t.right,n),a=this.sideCorrectionByLimit(t.top,a),i=this.sideCorrectionByLimit(t.bottom,i),{newLeft:r,newRight:n,newTop:a,newBottom:i}}rectCorrectionByAspectRatio(e){let{newLeft:t,newRight:n,newTop:r,newBottom:i}=e;const{parentWidth:a,parentHeight:s,currentStick:o,aspectFactor:l,dimensionsBeforeMove:c}=this;let u=a-t-n,h=s-r-i;if("m"===o[1]){const e=h-c.height;t-=e*l/2,n-=e*l/2}else if("m"===o[0]){const e=u-c.width;r-=e/l/2,i-=e/l/2}else u/h>l?(u=l*h,"l"===o[1]?t=a-n-u:n=a-t-u):(h=u/l,"t"===o[0]?r=s-i-h:i=s-r-h);return{newLeft:t,newRight:n,newTop:r,newBottom:i}}storageElementInfo(){if(!this.isStorage)return;if(""===this.name.trim())throw"unspecified name";if(null===this.rect.left||null===this.rect.top||null===this.right||null===this.bottom)return;const e={left:this.rect.left,top:this.rect.top,right:this.right,bottom:this.bottom};localStorage.setItem("DragResizeView_Rect_"+this.name,JSON.stringify(e))}get positionStyle(){return{top:this.top+"px",left:this.left+"px",zIndex:this.zIndex}}get sizeStyle(){return{width:"auto"==this.w?"auto":this.width+"px",height:"auto"==this.h?"auto":this.height+"px"}}get vdrStick(){return e=>{const t={width:this.stickSize/this.parentScaleX+"px",height:this.stickSize/this.parentScaleY+"px"};return t[QS[e[0]]]=this.stickSize/this.parentScaleX/-2+"px",t[eE[e[1]]]=this.stickSize/this.parentScaleX/-2+"px",t}}get width(){return this.parentWidth-this.left-this.right}get height(){return this.parentHeight-this.top-this.bottom}get rect(){return{left:Math.round(this.left),top:Math.round(this.top),width:Math.round(this.width),height:Math.round(this.height)}}onActive(e){e?this.$emit("activated"):this.$emit("deactivated")}onIsActive(e){this.active=e}onZ(e){(e>=0||"auto"===e)&&(this.zIndex=e)}onX(e,t){if(this.stickDrag||this.bodyDrag||e===this.left)return;const n=t-e;this.bodyDown({pageX:this.left,pageY:this.top}),this.bodyMove({x:n,y:0}),this.$nextTick((()=>{this.bodyUp()}))}onY(e,t){if(this.stickDrag||this.bodyDrag||e===this.top)return;const n=t-e;this.bodyDown({pageX:this.left,pageY:this.top}),this.bodyMove({x:0,y:n}),this.$nextTick((()=>{this.bodyUp()}))}onW(e,t){if(this.stickDrag||this.bodyDrag||e===this.width)return;const n=t-e;this.stickDown("mr",{pageX:this.right,pageY:this.top+this.height/2},!0),this.stickMove({x:n,y:0}),this.$nextTick((()=>{this.stickUp()}))}onH(e,t){if(this.stickDrag||this.bodyDrag||e===this.height)return;const n=t-e;this.stickDown("bm",{pageX:this.left+this.width/2,pageY:this.bottom},!0),this.stickMove({x:0,y:n}),this.$nextTick((()=>{this.stickUp()}))}onParentW(e){this.right=e-this.width-this.left,this.parentWidth=e}onParentH(e){this.bottom=e-this.height-this.top,this.parentHeight=e}};KS([Md({type:String,required:!1,default:""})],tE.prototype,"name",void 0),KS([Md({type:Number,default:8})],tE.prototype,"stickSize",void 0),KS([Md({type:Number,default:1})],tE.prototype,"parentScaleX",void 0),KS([Md({type:Number,default:1})],tE.prototype,"parentScaleY",void 0),KS([Md({type:Boolean,default:!1})],tE.prototype,"isActive",void 0),KS([Md({type:Boolean,default:!1})],tE.prototype,"preventActiveBehavior",void 0),KS([Md({type:Boolean,default:!0})],tE.prototype,"isDraggable",void 0),KS([Md({type:Boolean,default:!0})],tE.prototype,"isResizable",void 0),KS([Md({type:Boolean,default:!1})],tE.prototype,"aspectRatio",void 0),KS([Md({type:Boolean,default:!1})],tE.prototype,"parentLimitation",void 0),KS([Md({type:Boolean,default:!1})],tE.prototype,"snapToGrid",void 0),KS([Md({type:Number,default:50,validator:e=>e>=0})],tE.prototype,"gridX",void 0),KS([Md({type:Number,default:50,validator:e=>e>=0})],tE.prototype,"gridY",void 0),KS([Md({type:Number,default:0,validator:e=>e>=0})],tE.prototype,"parentW",void 0),KS([Md({type:Number,default:0,validator:e=>e>=0})],tE.prototype,"parentH",void 0),KS([Md({type:[String,Number],default:200,validator:e=>"string"==typeof e?"auto"===e:e>=0})],tE.prototype,"w",void 0),KS([Md({type:[String,Number],default:200,validator:e=>"string"==typeof e?"auto"===e:e>=0})],tE.prototype,"h",void 0),KS([Md({type:Number,default:50,validator:e=>e>=0})],tE.prototype,"minw",void 0),KS([Md({type:Number,default:50,validator:e=>e>=0})],tE.prototype,"minh",void 0),KS([Md({type:Number,default:0,validator:e=>"number"==typeof e})],tE.prototype,"x",void 0),KS([Md({type:Number,default:0,validator:e=>"number"==typeof e})],tE.prototype,"y",void 0),KS([Md({type:[String,Number],default:"auto",validator:e=>"string"==typeof e?"auto"===e:e>=0})],tE.prototype,"z",void 0),KS([Md({type:String,default:null})],tE.prototype,"dragHandle",void 0),KS([Md({type:String,default:null})],tE.prototype,"dragCancel",void 0),KS([Md({type:Array,default:()=>["tl","tm","tr","mr","br","bm","bl","ml"]})],tE.prototype,"sticks",void 0),KS([Md({type:String,default:"both",validator:e=>-1!==["x","y","both","none"].indexOf(e)})],tE.prototype,"axis",void 0),KS([Md({type:String,required:!1,default:""})],tE.prototype,"contentClass",void 0),KS([Md({type:Boolean,required:!1,default:!1})],tE.prototype,"isStorage",void 0),KS([Ad("active",{immediate:!1,deep:!1})],tE.prototype,"onActive",null),KS([Ad("isActive",{immediate:!0,deep:!1})],tE.prototype,"onIsActive",null),KS([Ad("z",{immediate:!0,deep:!1})],tE.prototype,"onZ",null),KS([Ad("x",{immediate:!1,deep:!1})],tE.prototype,"onX",null),KS([Ad("y",{immediate:!1,deep:!1})],tE.prototype,"onY",null),KS([Ad("w",{immediate:!1,deep:!1})],tE.prototype,"onW",null),KS([Ad("h",{immediate:!1,deep:!1})],tE.prototype,"onH",null),KS([Ad("parentW",{immediate:!1,deep:!1})],tE.prototype,"onParentW",null),KS([Ad("parentH",{immediate:!1,deep:!1})],tE.prototype,"onParentH",null),tE=KS([Sd({name:"DragResizeView"})],tE);const nE=tE;var rE=n(973),iE={};iE.styleTagTransform=Vd(),iE.setAttributes=Bd(),iE.insert=Nd().bind(null,"head"),iE.domAPI=Od(),iE.insertStyleElement=zd(),Pd()(rE.Z,iE),rE.Z&&rE.Z.locals&&rE.Z.locals;const aE=jd(nE,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vdr",class:(e.active||e.isActive?"active":"inactive")+" "+(e.contentClass?e.contentClass:""),style:e.positionStyle,on:{mousedown:function(t){return e.bodyDown(t)},touchstart:function(t){return e.bodyDown(t)},touchend:function(t){return e.up(t)}}},[n("div",{ref:"container",staticClass:"content-container",style:e.sizeStyle},[e._t("default")],2),e._v(" "),e._l(e.sticks,(function(t){return n("div",{staticClass:"vdr-stick",class:["vdr-stick-"+t,e.isResizable?"":"not-resizable"],style:e.vdrStick(t),on:{mousedown:function(n){return n.stopPropagation(),n.preventDefault(),e.stickDown(t,n)},touchstart:function(n){return n.stopPropagation(),n.preventDefault(),e.stickDown(t,n)}}})}))],2)}),[],!1,null,"3e98848e",null).exports,sE=[Xd,Kd,ip,aE,JS],oE=e=>{oE.installed||(oE.installed=!0,sE.map((t=>{e.component(t.name,t)})))};"undefined"!=typeof window&&window.Vue&&oE(window.Vue);const lE={}})();var i=r.Ip,a=r.Ud,s=r.$p,o=r.OO,l=r.OM,c=r.Rf,u=r.ZP;export{i as DragResizeView,a as EMacro,s as FileViewer,o as ImageViewer,l as ModelViewer,c as VideoViewer,u as default};