@stellartrack/custom-data-table
Version:
A high-performance virtualized React data table with Excel export and filtering
1 lines • 314 kB
JavaScript
(function(le,xe){typeof exports=="object"&&typeof module<"u"?module.exports=xe(require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["react/jsx-runtime","react"],xe):(le=typeof globalThis<"u"?globalThis:le||self,le.CustomDataTable=xe(le.jsxRuntime,le.React))})(this,function(le,xe){"use strict";function Sn(){return Sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sn.apply(null,arguments)}function vi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function An(e,t){return An=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},An(e,t)}function cs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,An(e,t)}var mi=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function hs(e,t){return!!(e===t||mi(e)&&mi(t))}function us(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!hs(e[r],t[r]))return!1;return!0}function Fn(e,t){t===void 0&&(t=us);var r,n=[],i,a=!1;function s(){for(var f=[],l=0;l<arguments.length;l++)f[l]=arguments[l];return a&&r===this&&t(f,n)||(i=e.apply(this,f),a=!0,r=this,n=f),i}return s}var xs=typeof performance=="object"&&typeof performance.now=="function",gi=xs?function(){return performance.now()}:function(){return Date.now()};function _i(e){cancelAnimationFrame(e.id)}function ds(e,t){var r=gi();function n(){gi()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var yn=-1;function Ti(e){if(e===void 0&&(e=!1),yn===-1||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),yn=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return yn}var Qr=null;function Ei(e){if(e===void 0&&(e=!1),Qr===null||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?Qr="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Qr="negative":Qr="positive-ascending"),document.body.removeChild(t),Qr}return Qr}process.env.NODE_ENV;var ps=150,vs=function(t,r){return t},Ht=null,zt=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(Ht=new WeakSet,zt=new WeakSet);function ms(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,f=e.getStopIndexForStartIndex,l=e.initInstanceProps,o=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(p){cs(u,p);function u(g){var h;return h=p.call(this,g)||this,h._instanceProps=l(h.props,vi(h)),h._outerRef=void 0,h._resetIsScrollingTimeoutId=null,h.state={instance:vi(h),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof h.props.initialScrollOffset=="number"?h.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},h._callOnItemsRendered=void 0,h._callOnItemsRendered=Fn(function(v,S,y,A){return h.props.onItemsRendered({overscanStartIndex:v,overscanStopIndex:S,visibleStartIndex:y,visibleStopIndex:A})}),h._callOnScroll=void 0,h._callOnScroll=Fn(function(v,S,y){return h.props.onScroll({scrollDirection:v,scrollOffset:S,scrollUpdateWasRequested:y})}),h._getItemStyle=void 0,h._getItemStyle=function(v){var S=h.props,y=S.direction,A=S.itemSize,N=S.layout,B=h._getItemStyleCache(o&&A,o&&N,o&&y),j;if(B.hasOwnProperty(v))j=B[v];else{var I=r(h.props,v,h._instanceProps),U=i(h.props,v,h._instanceProps),R=y==="horizontal"||N==="horizontal",H=y==="rtl",G=R?I:0;B[v]=j={position:"absolute",left:H?void 0:G,right:H?G:void 0,top:R?0:I,height:R?"100%":U,width:R?U:"100%"}}return j},h._getItemStyleCache=void 0,h._getItemStyleCache=Fn(function(v,S,y){return{}}),h._onScrollHorizontal=function(v){var S=v.currentTarget,y=S.clientWidth,A=S.scrollLeft,N=S.scrollWidth;h.setState(function(B){if(B.scrollOffset===A)return null;var j=h.props.direction,I=A;if(j==="rtl")switch(Ei()){case"negative":I=-A;break;case"positive-descending":I=N-y-A;break}return I=Math.max(0,Math.min(I,N-y)),{isScrolling:!0,scrollDirection:B.scrollOffset<I?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._onScrollVertical=function(v){var S=v.currentTarget,y=S.clientHeight,A=S.scrollHeight,N=S.scrollTop;h.setState(function(B){if(B.scrollOffset===N)return null;var j=Math.max(0,Math.min(N,A-y));return{isScrolling:!0,scrollDirection:B.scrollOffset<j?"forward":"backward",scrollOffset:j,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._outerRefSetter=function(v){var S=h.props.outerRef;h._outerRef=v,typeof S=="function"?S(v):S!=null&&typeof S=="object"&&S.hasOwnProperty("current")&&(S.current=v)},h._resetIsScrollingDebounced=function(){h._resetIsScrollingTimeoutId!==null&&_i(h._resetIsScrollingTimeoutId),h._resetIsScrollingTimeoutId=ds(h._resetIsScrolling,ps)},h._resetIsScrolling=function(){h._resetIsScrollingTimeoutId=null,h.setState({isScrolling:!1},function(){h._getItemStyleCache(-1,null)})},h}u.getDerivedStateFromProps=function(h,v){return gs(h,v),c(h),null};var x=u.prototype;return x.scrollTo=function(h){h=Math.max(0,h),this.setState(function(v){return v.scrollOffset===h?null:{scrollDirection:v.scrollOffset<h?"forward":"backward",scrollOffset:h,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},x.scrollToItem=function(h,v){v===void 0&&(v="auto");var S=this.props,y=S.itemCount,A=S.layout,N=this.state.scrollOffset;h=Math.max(0,Math.min(h,y-1));var B=0;if(this._outerRef){var j=this._outerRef;A==="vertical"?B=j.scrollWidth>j.clientWidth?Ti():0:B=j.scrollHeight>j.clientHeight?Ti():0}this.scrollTo(a(this.props,h,v,N,this._instanceProps,B))},x.componentDidMount=function(){var h=this.props,v=h.direction,S=h.initialScrollOffset,y=h.layout;if(typeof S=="number"&&this._outerRef!=null){var A=this._outerRef;v==="horizontal"||y==="horizontal"?A.scrollLeft=S:A.scrollTop=S}this._callPropsCallbacks()},x.componentDidUpdate=function(){var h=this.props,v=h.direction,S=h.layout,y=this.state,A=y.scrollOffset,N=y.scrollUpdateWasRequested;if(N&&this._outerRef!=null){var B=this._outerRef;if(v==="horizontal"||S==="horizontal")if(v==="rtl")switch(Ei()){case"negative":B.scrollLeft=-A;break;case"positive-ascending":B.scrollLeft=A;break;default:var j=B.clientWidth,I=B.scrollWidth;B.scrollLeft=I-j-A;break}else B.scrollLeft=A;else B.scrollTop=A}this._callPropsCallbacks()},x.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&_i(this._resetIsScrollingTimeoutId)},x.render=function(){var h=this.props,v=h.children,S=h.className,y=h.direction,A=h.height,N=h.innerRef,B=h.innerElementType,j=h.innerTagName,I=h.itemCount,U=h.itemData,R=h.itemKey,H=R===void 0?vs:R,G=h.layout,X=h.outerElementType,Q=h.outerTagName,_e=h.style,ce=h.useIsScrolling,ne=h.width,fe=this.state.isScrolling,pe=y==="horizontal"||G==="horizontal",de=pe?this._onScrollHorizontal:this._onScrollVertical,ve=this._getRangeToRender(),Te=ve[0],F=ve[1],D=[];if(I>0)for(var C=Te;C<=F;C++)D.push(xe.createElement(v,{data:U,key:H(C,U),index:C,isScrolling:ce?fe:void 0,style:this._getItemStyle(C)}));var O=n(this.props,this._instanceProps);return xe.createElement(X||Q||"div",{className:S,onScroll:de,ref:this._outerRefSetter,style:Sn({position:"relative",height:A,width:ne,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:y},_e)},xe.createElement(B||j||"div",{children:D,ref:N,style:{height:pe?"100%":O,pointerEvents:fe?"none":void 0,width:pe?O:"100%"}}))},x._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var h=this.props.itemCount;if(h>0){var v=this._getRangeToRender(),S=v[0],y=v[1],A=v[2],N=v[3];this._callOnItemsRendered(S,y,A,N)}}if(typeof this.props.onScroll=="function"){var B=this.state,j=B.scrollDirection,I=B.scrollOffset,U=B.scrollUpdateWasRequested;this._callOnScroll(j,I,U)}},x._getRangeToRender=function(){var h=this.props,v=h.itemCount,S=h.overscanCount,y=this.state,A=y.isScrolling,N=y.scrollDirection,B=y.scrollOffset;if(v===0)return[0,0,0,0];var j=s(this.props,B,this._instanceProps),I=f(this.props,j,B,this._instanceProps),U=!A||N==="backward"?Math.max(1,S):1,R=!A||N==="forward"?Math.max(1,S):1;return[Math.max(0,j-U),Math.max(0,Math.min(v-1,I+R)),j,I]},u}(xe.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var gs=function(t,r){var n=t.children,i=t.direction,a=t.height,s=t.layout,f=t.innerTagName,l=t.outerTagName,o=t.width,c=r.instance;if(process.env.NODE_ENV!=="production"){(f!=null||l!=null)&&zt&&!zt.has(c)&&(zt.add(c),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var p=i==="horizontal"||s==="horizontal";switch(i){case"horizontal":case"vertical":Ht&&!Ht.has(c)&&(Ht.add(c),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(s){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+s+'" was specified.'))}if(n==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(n===null?"null":typeof n)+'" was specified.'));if(p&&typeof o!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(o===null?"null":typeof o)+'" was specified.'));if(!p&&typeof a!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(a===null?"null":typeof a)+'" was specified.'))}},_s=50,et=function(t,r,n){var i=t,a=i.itemSize,s=n.itemMetadataMap,f=n.lastMeasuredIndex;if(r>f){var l=0;if(f>=0){var o=s[f];l=o.offset+o.size}for(var c=f+1;c<=r;c++){var p=a(c);s[c]={offset:l,size:p},l+=p}n.lastMeasuredIndex=r}return s[r]},Ts=function(t,r,n){var i=r.itemMetadataMap,a=r.lastMeasuredIndex,s=a>0?i[a].offset:0;return s>=n?wi(t,r,a,0,n):Es(t,r,Math.max(0,a),n)},wi=function(t,r,n,i,a){for(;i<=n;){var s=i+Math.floor((n-i)/2),f=et(t,s,r).offset;if(f===a)return s;f<a?i=s+1:f>a&&(n=s-1)}return i>0?i-1:0},Es=function(t,r,n,i){for(var a=t.itemCount,s=1;n<a&&et(t,n,r).offset<i;)n+=s,s*=2;return wi(t,r,Math.min(n,a-1),Math.floor(n/2),i)},Si=function(t,r){var n=t.itemCount,i=r.itemMetadataMap,a=r.estimatedItemSize,s=r.lastMeasuredIndex,f=0;if(s>=n&&(s=n-1),s>=0){var l=i[s];f=l.offset+l.size}var o=n-s-1,c=o*a;return f+c},ws=ms({getItemOffset:function(t,r,n){return et(t,r,n).offset},getItemSize:function(t,r,n){return n.itemMetadataMap[r].size},getEstimatedTotalSize:Si,getOffsetForIndexAndAlignment:function(t,r,n,i,a,s){var f=t.direction,l=t.height,o=t.layout,c=t.width,p=f==="horizontal"||o==="horizontal",u=p?c:l,x=et(t,r,a),g=Si(t,a),h=Math.max(0,Math.min(g-u,x.offset)),v=Math.max(0,x.offset-u+x.size+s);switch(n==="smart"&&(i>=v-u&&i<=h+u?n="auto":n="center"),n){case"start":return h;case"end":return v;case"center":return Math.round(v+(h-v)/2);case"auto":default:return i>=v&&i<=h?i:i<v?v:h}},getStartIndexForOffset:function(t,r,n){return Ts(t,n,r)},getStopIndexForStartIndex:function(t,r,n,i){for(var a=t.direction,s=t.height,f=t.itemCount,l=t.layout,o=t.width,c=a==="horizontal"||l==="horizontal",p=c?o:s,u=et(t,r,i),x=n+p,g=u.offset+u.size,h=r;h<f-1&&g<x;)h++,g+=et(t,h,i).size;return h},initInstanceProps:function(t,r){var n=t,i=n.estimatedItemSize,a={itemMetadataMap:{},estimatedItemSize:i||_s,lastMeasuredIndex:-1};return r.resetAfterIndex=function(s,f){f===void 0&&(f=!0),a.lastMeasuredIndex=Math.min(a.lastMeasuredIndex,s-1),r._getItemStyleCache(-1),f&&r.forceUpdate()},a},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var r=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof r!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(r===null?"null":typeof r)+'" was specified.'))}}),Ai={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Fi=xe.createContext&&xe.createContext(Ai),kr=function(){return kr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},kr.apply(this,arguments)},Ss=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function yi(e){return e&&e.map(function(t,r){return xe.createElement(t.tag,kr({key:r},t.attr),yi(t.child))})}function As(e){return function(t){return xe.createElement(Fs,kr({attr:kr({},e.attr)},t),yi(e.child))}}function Fs(e){var t=function(r){var n=e.attr,i=e.size,a=e.title,s=Ss(e,["attr","size","title"]),f=i||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),xe.createElement("svg",kr({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:l,style:kr(kr({color:e.color||r.color},r.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),a&&xe.createElement("title",null,a),e.children)};return Fi!==void 0?xe.createElement(Fi.Consumer,null,function(r){return t(r)}):t(Ai)}function ys(e){return As({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm60.1 106.5L224 336l60.1 93.5c5.1 8-.6 18.5-10.1 18.5h-34.9c-4.4 0-8.5-2.4-10.6-6.3C208.9 405.5 192 373 192 373c-6.4 14.8-10 20-36.6 68.8-2.1 3.9-6.1 6.3-10.5 6.3H110c-9.5 0-15.2-10.5-10.1-18.5l60.3-93.5-60.3-93.5c-5.2-8 .6-18.5 10.1-18.5h34.8c4.4 0 8.5 2.4 10.6 6.3 26.1 48.8 20 33.6 36.6 68.5 0 0 6.1-11.7 36.6-68.5 2.1-3.9 6.2-6.3 10.6-6.3H274c9.5-.1 15.2 10.4 10.1 18.4zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"}}]})(e)}/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Vt={};Vt.version="0.18.5";var Ci=1252,Cs=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Oi=function(e){Cs.indexOf(e)!=-1&&(Ci=e)};function Os(){Oi(1252)}var vt=function(e){Oi(e)};function Is(){vt(1200),Os()}var Gt=function(t){return String.fromCharCode(t)},Ii=function(t){return String.fromCharCode(t)},Xt,Rr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function mt(e){for(var t="",r=0,n=0,i=0,a=0,s=0,f=0,l=0,o=0;o<e.length;)r=e.charCodeAt(o++),a=r>>2,n=e.charCodeAt(o++),s=(r&3)<<4|n>>4,i=e.charCodeAt(o++),f=(n&15)<<2|i>>6,l=i&63,isNaN(n)?f=l=64:isNaN(i)&&(l=64),t+=Rr.charAt(a)+Rr.charAt(s)+Rr.charAt(f)+Rr.charAt(l);return t}function Sr(e){var t="",r=0,n=0,i=0,a=0,s=0,f=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var o=0;o<e.length;)a=Rr.indexOf(e.charAt(o++)),s=Rr.indexOf(e.charAt(o++)),r=a<<2|s>>4,t+=String.fromCharCode(r),f=Rr.indexOf(e.charAt(o++)),n=(s&15)<<4|f>>2,f!==64&&(t+=String.fromCharCode(n)),l=Rr.indexOf(e.charAt(o++)),i=(f&3)<<6|l,l!==64&&(t+=String.fromCharCode(i));return t}var Ee=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Ar=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function Wr(e){return Ee?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function Ni(e){return Ee?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var dr=function(t){return Ee?Ar(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function jt(e){if(typeof ArrayBuffer>"u")return dr(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function gt(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function Ns(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var ze=Ee?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:Ar(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),i=0;for(t=0,r=0;t<e.length;r+=i,++t)if(i=e[t].length,e[t]instanceof Uint8Array)n.set(e[t],r);else{if(typeof e[t]=="string")throw"wtf";n.set(new Uint8Array(e[t]),r)}return n}return[].concat.apply([],e.map(function(a){return Array.isArray(a)?a:[].slice.call(a)}))};function Ds(e){for(var t=[],r=0,n=e.length+250,i=Wr(e.length+255),a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s<128)i[r++]=s;else if(s<2048)i[r++]=192|s>>6&31,i[r++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var f=e.charCodeAt(++a)&1023;i[r++]=240|s>>8&7,i[r++]=128|s>>2&63,i[r++]=128|f>>6&15|(s&3)<<4,i[r++]=128|f&63}else i[r++]=224|s>>12&15,i[r++]=128|s>>6&63,i[r++]=128|s&63;r>n&&(t.push(i.slice(0,r)),r=0,i=Wr(65535),n=65530)}return t.push(i.slice(0,r)),ze(t)}var _t=/\u0000/g,$t=/[\u0001-\u0006]/g;function rt(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function pr(e,t){var r=""+e;return r.length>=t?r:Re("0",t-r.length)+r}function Cn(e,t){var r=""+e;return r.length>=t?r:Re(" ",t-r.length)+r}function Kt(e,t){var r=""+e;return r.length>=t?r:r+Re(" ",t-r.length)}function ks(e,t){var r=""+Math.round(e);return r.length>=t?r:Re("0",t-r.length)+r}function Rs(e,t){var r=""+e;return r.length>=t?r:Re("0",t-r.length)+r}var Di=Math.pow(2,32);function tt(e,t){if(e>Di||e<-Di)return ks(e,t);var r=Math.round(e);return Rs(r,t)}function Yt(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var ki=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],On=[["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"]];function Ls(e){return 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"秒 "',e}var ke={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"秒 "'},Ri={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},Ps={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 Jt(e,t,r){for(var n=e<0?-1:1,i=e*n,a=0,s=1,f=0,l=1,o=0,c=0,p=Math.floor(i);o<t&&(p=Math.floor(i),f=p*s+a,c=p*o+l,!(i-p<5e-8));)i=1/(i-p),a=s,s=f,l=o,o=c;if(c>t&&(o>t?(c=l,f=a):(c=o,f=s)),!r)return[0,n*f,c];var u=Math.floor(n*f/c);return[u,n*f-u*c,c]}function qt(e,t,r){if(e>2958465||e<0)return null;var n=e|0,i=Math.floor(86400*(e-n)),a=0,s=[],f={D:n,T:i,u:86400*(e-n)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(f.u)<1e-6&&(f.u=0),t&&t.date1904&&(n+=1462),f.u>.9999&&(f.u=0,++i==86400&&(f.T=i=0,++n,++f.D)),n===60)s=r?[1317,10,29]:[1900,2,29],a=3;else if(n===0)s=r?[1317,8,29]:[1900,1,0],a=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),s=[l.getFullYear(),l.getMonth()+1,l.getDate()],a=l.getDay(),n<60&&(a=(a+6)%7),r&&(a=zs(l,s))}return f.y=s[0],f.m=s[1],f.d=s[2],f.S=i%60,i=Math.floor(i/60),f.M=i%60,i=Math.floor(i/60),f.H=i,f.q=a,f}var Li=new Date(1899,11,31,0,0,0),Ms=Li.getTime(),Bs=new Date(1900,2,1,0,0,0);function Pi(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=Bs&&(r+=24*60*60*1e3),(r-(Ms+(e.getTimezoneOffset()-Li.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function In(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function bs(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function Us(e){var t=e<0?12:11,r=In(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function Ws(e){var t=In(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function Hs(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=Us(e):t===10?r=e.toFixed(10).substr(0,12):r=Ws(e),In(bs(r.toUpperCase()))}function Nn(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Hs(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return Pr(14,Pi(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function zs(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function Vs(e,t,r,n){var i="",a=0,s=0,f=r.y,l,o=0;switch(e){case 98:f=r.y+543;case 121:switch(t.length){case 1:case 2:l=f%100,o=2;break;default:l=f%1e4,o=4;break}break;case 109:switch(t.length){case 1:case 2:l=r.m,o=t.length;break;case 3:return On[r.m-1][1];case 5:return On[r.m-1][0];default:return On[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=r.d,o=t.length;break;case 3:return ki[r.q][0];default:return ki[r.q][1]}break;case 104:switch(t.length){case 1:case 2:l=1+(r.H+11)%12,o=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:l=r.H,o=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:l=r.M,o=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?pr(r.S,t.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,a=Math.round(s*(r.S+r.u)),a>=60*s&&(a=0),t==="s"?a===0?"0":""+a/s:(i=pr(a,2+n),t==="ss"?i.substr(0,2):"."+i.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":l=r.D*24+r.H;break;case"[m]":case"[mm]":l=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":l=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}o=t.length===3?1:2;break;case 101:l=f,o=1;break}var c=o>0?pr(l,o):"";return c}function Lr(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var Mi=/%/g;function Gs(e,t,r){var n=t.replace(Mi,""),i=t.length-n.length;return Fr(e,n,r*Math.pow(10,2*i))+Re("%",i)}function Xs(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Fr(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function Bi(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+Bi(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),r=(t/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),r.indexOf("e")===-1){var s=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+a):r+="E+"+(s-a);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,i)+"."+r.substr(2+i),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(f,l,o,c){return l+o+c.substr(0,(i+a)%i)+"."+c.substr(a)+"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 bi=/# (\?+)( ?)\/( ?)(\d+)/;function js(e,t,r){var n=parseInt(e[4],10),i=Math.round(t*n),a=Math.floor(i/n),s=i-a*n,f=n;return r+(a===0?"":""+a)+" "+(s===0?Re(" ",e[1].length+1+e[4].length):Cn(s,e[1].length)+e[2]+"/"+e[3]+pr(f,e[4].length))}function $s(e,t,r){return r+(t===0?"":""+t)+Re(" ",e[1].length+2+e[4].length)}var Ui=/^#*0*\.([0#]+)/,Wi=/\).*[0#]/,Hi=/\(###\) ###\\?-####/;function qe(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function zi(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function Vi(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 Ks(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function Ys(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function lr(e,t,r){if(e.charCodeAt(0)===40&&!t.match(Wi)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?lr("n",n,r):"("+lr("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return Xs(e,t,r);if(t.indexOf("%")!==-1)return Gs(e,t,r);if(t.indexOf("E")!==-1)return Bi(t,r);if(t.charCodeAt(0)===36)return"$"+lr(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,s,f,l=Math.abs(r),o=r<0?"-":"";if(t.match(/^00+$/))return o+tt(l,t.length);if(t.match(/^[#?]+$/))return i=tt(r,0),i==="0"&&(i=""),i.length>t.length?i:qe(t.substr(0,t.length-i.length))+i;if(a=t.match(bi))return js(a,l,o);if(t.match(/^#+0+$/))return o+tt(l,t.length-t.indexOf("0"));if(a=t.match(Ui))return i=zi(r,a[1].length).replace(/^([^\.]+)$/,"$1."+qe(a[1])).replace(/\.$/,"."+qe(a[1])).replace(/\.(\d*)$/,function(g,h){return"."+h+Re("0",qe(a[1]).length-h.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return o+zi(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 o+Lr(tt(l,0));if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+lr(e,t,-r):Lr(""+(Math.floor(r)+Ks(r,a[1].length)))+"."+pr(Vi(r,a[1].length),a[1].length);if(a=t.match(/^#,#*,#0/))return lr(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=rt(lr(e,t.replace(/[\\-]/g,""),r)),s=0,rt(rt(t.replace(/\\/g,"")).replace(/[0#]/g,function(g){return s<i.length?i.charAt(s++):g==="0"?"0":""}));if(t.match(Hi))return i=lr(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),f=Jt(l,Math.pow(10,s)-1,!1),i=""+o,c=Fr("n",a[1],f[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),i+=c+a[2]+"/"+a[3],c=Kt(f[2],s),c.length<a[4].length&&(c=qe(a[4].substr(a[4].length-c.length))+c),i+=c,i;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),f=Jt(l,Math.pow(10,s)-1,!0),o+(f[0]||(f[1]?"":"0"))+" "+(f[1]?Cn(f[1],s)+a[2]+"/"+a[3]+Kt(f[2],s):Re(" ",2*s+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=tt(r,0),t.length<=i.length?i:qe(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0?]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var p=t.indexOf(".")-s,u=t.length-i.length-p;return qe(t.substr(0,p)+i+t.substr(t.length-u))}if(a=t.match(/^00,000\.([#0]*0)$/))return s=Vi(r,a[1].length),r<0?"-"+lr(e,t,-r):Lr(Ys(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(g){return"00,"+(g.length<3?pr(0,3-g.length):"")+g})+"."+pr(s,a[1].length);switch(t){case"###,##0.00":return lr(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var x=Lr(tt(l,0));return x!=="0"?o+x:"";case"###,###.00":return lr(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return lr(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function Js(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Fr(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function qs(e,t,r){var n=t.replace(Mi,""),i=t.length-n.length;return Fr(e,n,r*Math.pow(10,2*i))+Re("%",i)}function Gi(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+Gi(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),r=(t/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),!r.match(/[Ee]/)){var s=Math.floor(Math.log(t)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+a):r+="E+"+(s-a),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(f,l,o,c){return l+o+c.substr(0,(i+a)%i)+"."+c.substr(a)+"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 _r(e,t,r){if(e.charCodeAt(0)===40&&!t.match(Wi)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?_r("n",n,r):"("+_r("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return Js(e,t,r);if(t.indexOf("%")!==-1)return qs(e,t,r);if(t.indexOf("E")!==-1)return Gi(t,r);if(t.charCodeAt(0)===36)return"$"+_r(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,s,f,l=Math.abs(r),o=r<0?"-":"";if(t.match(/^00+$/))return o+pr(l,t.length);if(t.match(/^[#?]+$/))return i=""+r,r===0&&(i=""),i.length>t.length?i:qe(t.substr(0,t.length-i.length))+i;if(a=t.match(bi))return $s(a,l,o);if(t.match(/^#+0+$/))return o+pr(l,t.length-t.indexOf("0"));if(a=t.match(Ui))return i=(""+r).replace(/^([^\.]+)$/,"$1."+qe(a[1])).replace(/\.$/,"."+qe(a[1])),i=i.replace(/\.(\d*)$/,function(g,h){return"."+h+Re("0",qe(a[1]).length-h.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return o+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return o+Lr(""+l);if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+_r(e,t,-r):Lr(""+r)+"."+Re("0",a[1].length);if(a=t.match(/^#,#*,#0/))return _r(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=rt(_r(e,t.replace(/[\\-]/g,""),r)),s=0,rt(rt(t.replace(/\\/g,"")).replace(/[0#]/g,function(g){return s<i.length?i.charAt(s++):g==="0"?"0":""}));if(t.match(Hi))return i=_r(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),f=Jt(l,Math.pow(10,s)-1,!1),i=""+o,c=Fr("n",a[1],f[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),i+=c+a[2]+"/"+a[3],c=Kt(f[2],s),c.length<a[4].length&&(c=qe(a[4].substr(a[4].length-c.length))+c),i+=c,i;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),f=Jt(l,Math.pow(10,s)-1,!0),o+(f[0]||(f[1]?"":"0"))+" "+(f[1]?Cn(f[1],s)+a[2]+"/"+a[3]+Kt(f[2],s):Re(" ",2*s+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=""+r,t.length<=i.length?i:qe(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var p=t.indexOf(".")-s,u=t.length-i.length-p;return qe(t.substr(0,p)+i+t.substr(t.length-u))}if(a=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+_r(e,t,-r):Lr(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(g){return"00,"+(g.length<3?pr(0,3-g.length):"")+g})+"."+pr(0,a[1].length);switch(t){case"###,###":case"##,###":case"#,###":var x=Lr(""+l);return x!=="0"?o+x:"";default:if(t.match(/\.[0#?]*$/))return _r(e,t.slice(0,t.lastIndexOf(".")),r)+qe(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function Fr(e,t,r){return(r|0)===r?_r(e,t,r):lr(e,t,r)}function Zs(e){for(var t=[],r=!1,n=0,i=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(i,n-i),i=n+1}if(t[t.length]=e.substr(i),r===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var Xi=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function ji(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":Yt(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")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(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||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(Xi))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;case" ":++t;break;default:++t;break}return!1}function Qs(e,t,r,n){for(var i=[],a="",s=0,f="",l="t",o,c,p,u="H";s<e.length;)switch(f=e.charAt(s)){case"G":if(!Yt(e,s))throw new Error("unrecognized character "+f+" in "+e);i[i.length]={t:"G",v:"General"},s+=7;break;case'"':for(a="";(p=e.charCodeAt(++s))!==34&&s<e.length;)a+=String.fromCharCode(p);i[i.length]={t:"t",v:a},++s;break;case"\\":var x=e.charAt(++s),g=x==="("||x===")"?x:"t";i[i.length]={t:g,v:x},++s;break;case"_":i[i.length]={t:"t",v:" "},s+=2;break;case"@":i[i.length]={t:"T",v:t},++s;break;case"B":case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(o==null&&(o=qt(t,r,e.charAt(s+1)==="2"),o==null))return"";i[i.length]={t:"X",v:e.substr(s,2)},l=f,s+=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||o==null&&(o=qt(t,r),o==null))return"";for(a=f;++s<e.length&&e.charAt(s).toLowerCase()===f;)a+=f;f==="m"&&l.toLowerCase()==="h"&&(f="M"),f==="h"&&(f=u),i[i.length]={t:f,v:a},l=f;break;case"A":case"a":case"上":var h={t:f,v:f};if(o==null&&(o=qt(t,r)),e.substr(s,3).toUpperCase()==="A/P"?(o!=null&&(h.v=o.H>=12?"P":"A"),h.t="T",u="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(o!=null&&(h.v=o.H>=12?"PM":"AM"),h.t="T",s+=5,u="h"):e.substr(s,5).toUpperCase()==="上午/下午"?(o!=null&&(h.v=o.H>=12?"下午":"上午"),h.t="T",s+=5,u="h"):(h.t="t",++s),o==null&&h.t==="T")return"";i[i.length]=h,l=f;break;case"[":for(a=f;e.charAt(s++)!=="]"&&s<e.length;)a+=e.charAt(s);if(a.slice(-1)!=="]")throw'unterminated "[" block: |'+a+"|";if(a.match(Xi)){if(o==null&&(o=qt(t,r),o==null))return"";i[i.length]={t:"Z",v:a.toLowerCase()},l=a.charAt(1)}else a.indexOf("$")>-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",ji(e)||(i[i.length]={t:"t",v:a}));break;case".":if(o!=null){for(a=f;++s<e.length&&(f=e.charAt(s))==="0";)a+=f;i[i.length]={t:"s",v:a};break}case"0":case"#":for(a=f;++s<e.length&&"0#?.,E+-%".indexOf(f=e.charAt(s))>-1;)a+=f;i[i.length]={t:"n",v:a};break;case"?":for(a=f;e.charAt(++s)===f;)a+=f;i[i.length]={t:f,v:a},l=f;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":i[i.length]={t:n===1?"t":f,v:f},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(a=f;s<e.length&&"0123456789".indexOf(e.charAt(++s))>-1;)a+=e.charAt(s);i[i.length]={t:"D",v:a};break;case" ":i[i.length]={t:f,v:f},++s;break;case"$":i[i.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(f)===-1)throw new Error("unrecognized character "+f+" in "+e);i[i.length]={t:"t",v:f},++s;break}var v=0,S=0,y;for(s=i.length-1,l="t";s>=0;--s)switch(i[s].t){case"h":case"H":i[s].t=u,l="h",v<1&&(v=1);break;case"s":(y=i[s].v.match(/\.0+$/))&&(S=Math.max(S,y[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":l=i[s].t;break;case"m":l==="s"&&(i[s].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&i[s].v.match(/[Hh]/)&&(v=1),v<2&&i[s].v.match(/[Mm]/)&&(v=2),v<3&&i[s].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M),o.M>=60&&(o.M=0,++o.H);break;case 2:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M);break}var A="",N;for(s=0;s<i.length;++s)switch(i[s].t){case"t":case"T":case" ":case"D":break;case"X":i[s].v="",i[s].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[s].v=Vs(i[s].t.charCodeAt(0),i[s].v,o,S),i[s].t="t";break;case"n":case"?":for(N=s+1;i[N]!=null&&((f=i[N].t)==="?"||f==="D"||(f===" "||f==="t")&&i[N+1]!=null&&(i[N+1].t==="?"||i[N+1].t==="t"&&i[N+1].v==="/")||i[s].t==="("&&(f===" "||f==="n"||f===")")||f==="t"&&(i[N].v==="/"||i[N].v===" "&&i[N+1]!=null&&i[N+1].t=="?"));)i[s].v+=i[N].v,i[N]={v:"",t:";"},++N;A+=i[s].v,s=N-1;break;case"G":i[s].t="t",i[s].v=Nn(t,r);break}var B="",j,I;if(A.length>0){A.charCodeAt(0)==40?(j=t<0&&A.charCodeAt(0)===45?-t:t,I=Fr("n",A,j)):(j=t<0&&n>1?-t:t,I=Fr("n",A,j),j<0&&i[0]&&i[0].t=="t"&&(I=I.substr(1),i[0].v="-"+i[0].v)),N=I.length-1;var U=i.length;for(s=0;s<i.length;++s)if(i[s]!=null&&i[s].t!="t"&&i[s].v.indexOf(".")>-1){U=s;break}var R=i.length;if(U===i.length&&I.indexOf("E")===-1){for(s=i.length-1;s>=0;--s)i[s]==null||"n?".indexOf(i[s].t)===-1||(N>=i[s].v.length-1?(N-=i[s].v.length,i[s].v=I.substr(N+1,i[s].v.length)):N<0?i[s].v="":(i[s].v=I.substr(0,N+1),N=-1),i[s].t="t",R=s);N>=0&&R<i.length&&(i[R].v=I.substr(0,N+1)+i[R].v)}else if(U!==i.length&&I.indexOf("E")===-1){for(N=I.indexOf(".")-1,s=U;s>=0;--s)if(!(i[s]==null||"n?".indexOf(i[s].t)===-1)){for(c=i[s].v.indexOf(".")>-1&&s===U?i[s].v.indexOf(".")-1:i[s].v.length-1,B=i[s].v.substr(c+1);c>=0;--c)N>=0&&(i[s].v.charAt(c)==="0"||i[s].v.charAt(c)==="#")&&(B=I.charAt(N--)+B);i[s].v=B,i[s].t="t",R=s}for(N>=0&&R<i.length&&(i[R].v=I.substr(0,N+1)+i[R].v),N=I.indexOf(".")+1,s=U;s<i.length;++s)if(!(i[s]==null||"n?(".indexOf(i[s].t)===-1&&s!==U)){for(c=i[s].v.indexOf(".")>-1&&s===U?i[s].v.indexOf(".")+1:0,B=i[s].v.substr(0,c);c<i[s].v.length;++c)N<I.length&&(B+=I.charAt(N++));i[s].v=B,i[s].t="t",R=s}}}for(s=0;s<i.length;++s)i[s]!=null&&"n?".indexOf(i[s].t)>-1&&(j=n>1&&t<0&&s>0&&i[s-1].v==="-"?-t:t,i[s].v=Fr(i[s].t,i[s].v,j),i[s].t="t");var H="";for(s=0;s!==i.length;++s)i[s]!=null&&(H+=i[s].v);return H}var $i=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Ki(e,t){if(t==null)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;break}return!1}function ef(e,t){var r=Zs(e),n=r.length,i=r[n-1].indexOf("@");if(n<4&&i>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||i>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=i>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=i>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=i>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var a=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,a];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var s=r[0].match($i),f=r[1].match($i);return Ki(t,s)?[n,r[0]]:Ki(t,f)?[n,r[1]]:[n,r[s!=null&&f!=null?2:1]]}return[n,a]}function Pr(e,t,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:ke)[e],n==null&&(n=r.table&&r.table[Ri[e]]||ke[Ri[e]]),n==null&&(n=Ps[e]||"General");break}if(Yt(n,0))return Nn(t,r);t instanceof Date&&(t=Pi(t,r.date1904));var i=ef(n,t);if(Yt(i[1]))return Nn(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return Qs(i[1],t,r,i[0])}function Yi(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(ke[r]==null){t<0&&(t=r);continue}if(ke[r]==e){t=r;break}}t<0&&(t=391)}return ke[t]=e,t}function Zt(e){for(var t=0;t!=392;++t)e[t]!==void 0&&Yi(e[t],t)}function Qt(){ke=Ls()}var Ji=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function rf(e){var t=typeof e=="number"?ke[e]:e;return t=t.replace(Ji,"(\\d+)"),new RegExp("^"+t+"$")}function tf(e,t,r){var n=-1,i=-1,a=-1,s=-1,f=-1,l=-1;(t.match(Ji)||[]).forEach(function(p,u){var x=parseInt(r[u+1],10);switch(p.toLowerCase().charAt(0)){case"y":n=x;break;case"d":a=x;break;case"h":s=x;break;case"s":l=x;break;case"m":s>=0?f=x:i=x;break}}),l>=0&&f==-1&&i>=0&&(f=i,i=-1);var o=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);o.length==7&&(o="0"+o),o.length==8&&(o="20"+o);var c=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(f>=0?f:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return s==-1&&f==-1&&l==-1?o:n==-1&&i==-1&&a==-1?c:o+"T"+c}var nf=function(){var e={};e.version="1.2.0";function t(){for(var I=0,U=new Array(256),R=0;R!=256;++R)I=R,I=I&1?-306674912^I>>>1:I>>>1,I=I&1?-306674912^I>>>1:I>>>1,I=I&1?-306674912^I>>>1:I>>>1,I=I&1?-306674912^I>>>1:I>>>1,I=I&1?-306674912^I>>>1:I>>>1,I=I&1?-306674912^I>>>1:I>>>1,I=I&1?-306674912^I>>>1:I>>>1,I=I&1?-306674912^I>>>1:I>>>1,U[R]=I;return typeof Int32Array<"u"?new Int32Array(U):U}var r=t();function n(I){var U=0,R=0,H=0,G=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(H=0;H!=256;++H)G[H]=I[H];for(H=0;H!=256;++H)for(R=I[H],U=256+H;U<4096;U+=256)R=G[U]=R>>>8^I[R&255];var X=[];for(H=1;H!=16;++H)X[H-1]=typeof Int32Array<"u"?G.subarray(H*256,H*256+256):G.slice(H*256,H*256+256);return X}var i=n(r),a=i[0],s=i[1],f=i[2],l=i[3],o=i[4],c=i[5],p=i[6],u=i[7],x=i[8],g=i[9],h=i[10],v=i[11],S=i[12],y=i[13],A=i[14];function N(I,U){for(var R=U^-1,H=0,G=I.length;H<G;)R=R>>>8^r[(R^I.charCodeAt(H++))&255];return~R}function B(I,U){for(var R=U^-1,H=I.length-15,G=0;G<H;)R=A[I[G++]^R&255]^y[I[G++]^R>>8&255]^S[I[G++]^R>>16&255]^v[I[G++]^R>>>24]^h[I[G++]]^g[I[G++]]^x[I[G++]]^u[I[G++]]^p[I[G++]]^c[I[G++]]^o[I[G++]]^l[I[G++]]^f[I[G++]]^s[I[G++]]^a[I[G++]]^r[I[G++]];for(H+=15;G<H;)R=R>>>8^r[(R^I[G++])&255];return~R}function j(I,U){for(var R=U^-1,H=0,G=I.length,X=0,Q=0;H<G;)X=I.charCodeAt(H++),X<128?R=R>>>8^r[(R^X)&255]:X<2048?(R=R>>>8^r[(R^(192|X>>6&31))&255],R=R>>>8^r[(R^(128|X&63))&255]):X>=55296&&X<57344?(X=(X&1023)+64,Q=I.charCodeAt(H++)&1023,R=R>>>8^r[(R^(240|X>>8&7))&255],R=R>>>8^r[(R^(128|X>>2&63))&255],R=R>>>8^r[(R^(128|Q>>6&15|(X&3)<<4))&255],R=R>>>8^r[(R^(128|Q&63))&255]):(R=R>>>8^r[(R^(224|X>>12&15))&255],R=R>>>8^r[(R^(128|X>>6&63))&255],R=R>>>8^r[(R^(128|X&63))&255]);return~R}return e.table=r,e.bstr=N,e.buf=B,e.str=j,e}(),Ce=function(){var t={};t.version="1.2.1";function r(d,T){for(var m=d.split("/"),_=T.split("/"),E=0,w=0,L=Math.min(m.length,_.length);E<L;++E){if(w=m[E].length-_[E].length)return w;if(m[E]!=_[E])return m[E]<_[E]?-1:1}return m.length-_.length}function n(d){if(d.charAt(d.length-1)=="/")return d.slice(0,-1).indexOf("/")===-1?d:n(d.slice(0,-1));var T=d.lastIndexOf("/");return T===-1?d:d.slice(0,T+1)}function i(d){if(d.charAt(d.length-1)=="/")return i(d.slice(0,-1));var T=d.lastIndexOf("/");return T===-1?d:d.slice(T+1)}function a(d,T){typeof T=="string"&&(T=new Date(T));var m=T.getHours();m=m<<6|T.getMinutes(),m=m<<5|T.getSeconds()>>>1,d.write_shift(2,m);var _=T.getFullYear()-1980;_=_<<4|T.getMonth()+1,_=_<<5|T.getDate(),d.write_shift(2,_)}function s(d){var T=d.read_shift(2)&65535,m=d.read_shift(2)&65535,_=new Date,E=m&31;m>>>=5;var w=m&15;m>>>=4,_.setMilliseconds(0),_.setFullYear(m+1980),_.setMonth(w-1),_.setDate(E);var L=T&31;T>>>=5;var W=T&63;return T>>>=6,_.setHours(T),_.setMinutes(W),_.setSeconds(L<<1),_}function f(d){sr(d,0);for(var T={},m=0;d.l<=d.length-4;){var _=d.read_shift(2),E=d.read_shift(2),w=d.l+E,L={};switch(_){case 21589:m=d.read_shift(1),m&1&&(L.mtime=d.read_shift(4)),E>5&&(m&2&&(L.atime=d.read_shift(4)),m&4&&(L.ctime=d.read_shift(4))),L.mtime&&(L.mt=new Date(L.mtime*1e3));break}d.l=w,T[_]=L}return T}var l;function o(){return l||(l={})}function c(d,T){if(d[0]==80&&d[1]==75)return ls(d,T);if((d[0]|32)==109&&(d[1]|32)==105)return Rx(d,T);if(d.length<512)throw new Error("CFB file size "+d.length+" < 512");var m=3,_=512,E=0,w=0,L=0,W=0,k=0,P=[],M=d.slice(0,512);sr(M,0);var K=p(M);switch(m=K[0],m){case 3:_=512;break;case 4:_=4096;break;case 0:if(K[1]==0)return ls(d,T);default:throw new Error("Major Version: Expected 3 or 4 saw "+m)}_!==512&&(M=d.slice(0,_),sr(M,28));var Z=d.slice(0,_);u(M,m);var te=M.read_shift(4,"i");if(m===3&&te!==0)throw new Error("# Directory Sectors: Expected 0 saw "+te);M.l+=4,L=M.read_shift(4,"i"),M.l+=4,M.chk("00100000","Mini Stream Cutoff Size: "),W=M.read_shift(4,"i"),E=M.read_shift(4,"i"),k=M.read_shift(4,"i"),w=M.read_shift(4,"i");for(var Y=-1,re=0;re<109&&(Y=M.read_shift(4,"i"),!(Y<0));++re)P[re]=Y;var he=x(d,_);v(k,w,he,_,P);var Ne=y(he,L,P,_);Ne[L].name="!Directory",E>0&&W!==Q&&(Ne[W].name="!MiniFAT"),Ne[P[0]].name="!FAT",Ne.fat_addrs=P,Ne.ssz=_;var De={},Je=[],bt=[],Ut=[];A(L,Ne,he,Je,E,De,bt,W),g(bt,Ut,Je),Je.shift();var Wt={FileIndex:bt,FullPaths:Ut};return T&&T.raw&&(Wt.raw={header:Z,sectors:he}),Wt}function p(d){if(d[d.l]==80&&d[d.l+1]==75)return[0,0];d.chk(_e,"Header Signature: "),d.l+=16;var T=d.read_shift(2,"u");return[d.read_shift(2,"u"),T]}function u(d,T){var m=9;switch(d.l+=2,m=d.read_shift(2)){case 9:if(T!=3)throw new Error("Sector Shift: Expected 9 saw "+m);break;case 12:if(T!=4)throw new Error("Sector Shift: Expected 12 saw "+m);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+m)}d.chk("0600","Mini Sector Shift: "),d.chk("000000000000","Reserved: ")}function x(d,T){for(var m=Math.ceil(d.length/T)-1,_=[],E=1;E<m;++E)_[E-1]=d.slice(E*T,(E+1)*T);return _[m-1]=d.slice(m*T),_}function g(d,T,m){for(var _=0,E=0,w=0,L=0,W=0,k=m.length,P=[],M=[];_<k;++_)P[_]=M[_]=_,T[_]=m[_];for(;W<M.length;++W)_=M[W],E=d[_].L,w=d[_].R,L=d[_].C,P[_]===_&&(E!==-1&&P[E]!==E&&(P[_]=P[E]),w!==-1&&P[w]!==w&&(P[_]=P[w])),L!==-1&&(P[L]=_),E!==-1&&_!=P[_]&&(P[E]=P[_],M.lastIndexOf(E)<W&&M.push(E)),w!==-1&&_!=P[_]&&(P[w]=P[_],M.lastIndexOf(w)<W&&M.push(w));for(_=1;_<k;++_)P[_]===_&&(w!==-1&&P[w]!==w?P[_]=P[w]:E!==-1&&P[E]!==E&&(P[_]=P[E]));for(_=1;_<k;++_)if(d[_].type!==0){if(W=_,W!=P[W])do W=P[W],T[_]=T[W]+"/"+T[_];while(W!==0&&P[W]!==-1&&W!=P[W]);P[_]=-1}for(T[0]+="/",_=1;_<k;++_)d[_].type!==2&&(T[_]+="/")}function h(d,T,m){for(var _=d.start,E=d.size,w=[],L=_;m&&E>0&&L>=0;)w.push(T.slice(L*X,L*X+X)),E-=X,L=Hr(m,L*4);return w.length===0?b(0):ze(w).slice(0,d.size)}function v(d,T,m,_,E){var w=Q;if(d===Q){if(T!==0)throw new Error("DIFAT chain shorter than expected")}else if(d!==-1){var L=m[d],W=(_>>>2)-1;if(!L)return;for(var k=0;k<W&&(w=Hr(L,k*4))!==Q;++k)E.push(w);v(Hr(L,_-4),T-1,m,_,E)}}function S(d,T,m,_,E){var w=[],L=[];E||(E=[]);var W=_-1,k=0,P=0;for(k=T;k>=0;){E[k]=!0,w[w.length]=k,L.push(d[k]);var M=m[Math.floor(k*4/_)];if(P=k*4&W,_<4+P)throw new Error("FAT boundary crossed: "+k+" 4 "+_);if(!d[M])break;k=Hr(d[M],P)}return{nodes:w,data:la([L])}}function y(d,T,m,_){var E=d.length,w=[],L=[],W=[],k=[],P=_-1,M=0,K=0,Z=0,te=0;for(M=0;M<E;++M)if(W=[],Z=M+T,Z>=E&&(Z-=E),!L[Z]){k=[];var Y=[];for(K=Z;K>=0;){Y[K]=!0,L[K]=!0,W[W.length]=K,k.push(d[K]);var re=m[Math.floor(K*4/_)];if(te=K*4&P,_<4+te)throw new Error("FAT boundary crossed: "+K+" 4 "+_);if(!d[re]||(K=Hr(d[re],te),Y[K]))break}w[Z]={nodes:W,data:la([k])}}return w}function A(d,T,m,_,E,w,L,W){for(var k=0,P=_.length?2:0,M=T[d].data,K=0,Z=0,te;K<M.length;K+=128){var Y=M.slice(K,K+128);sr(Y,64),Z=Y.read_shift(2),te=Bn(Y,0,Z-P),_.push(te);var re={name:te,type:Y.read_shift(1),color:Y.read_shift(1),L:Y.read_shift(4,"i"),R:Y.read_shift(4,"i"),C:Y.read_shift(4,"i"),clsid:Y.read_shift(16),state:Y.read_shift(4,"i"),start:0,size:0},he=Y.read_shift(2)+Y.read_shift(2)+Y.read_shift(2)+Y.read_shift(2);he!==0&&(re.ct=N(Y,Y.l-8));var Ne=Y.read_shift(2)+Y.read_shift(2)+Y.read_shift(2)+Y.read_shift(2);Ne!==0&&(re.mt=N(Y,Y.l-8)),re.start=Y.read_shift(4,"i"),re.size=Y.read_shift(4,"i"),re.size<0&&re.start<0&&(re.size=re.type=0,re.start=Q,re.name=""),re.type===5?(k=re.start,E>0&&k!==Q&&(T[k].name="!StreamData")):re.size>=4096?(re.storage="fat",T[re.start]===void 0&&(T[re.start]=S(m,re.start,T.fat_addrs,T.ssz)),T[re.start].name=re.name,re.content=T[re.start].data.slice(0,re.size)):(re.storage="minifat",re.size<0?re.size=0:k!==Q&&re.start!==Q&&T[k]&&(re.content=h(re,T[k].data,(T[W]||{}).data))),re.content&&sr(re.content,0),w[te]=re,L.push(re)}}function N(d,T){return new Date((ar