-
Notifications
You must be signed in to change notification settings - Fork 0
/
desktop.js
75 lines (66 loc) · 401 KB
/
desktop.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*! For license information please see desktop.js.LICENSE.txt */
(()=>{var e={5526:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__awaiter||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())}))},i=this&&this.__generator||function(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&i[0]?n.return:i[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,i[1])).done)return a;switch(n=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],n=0}finally{r=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KintoneRequestConfigBuilder=void 0;var s=o(r(6230)),c=o(r(129)),l=r(9575),f=r(6308),u=function(){function e(e){if(this.baseUrl=e.baseUrl,this.auth=e.auth,this.headers=this.buildHeaders({basicAuth:e.basicAuth,userAgent:e.userAgent}),"httpsAgent"in e){if("clientCertAuth"in e)throw new Error("Cannot specify clientCertAuth along with httpsAgent.");this.httpsAgent=e.httpsAgent}else"clientCertAuth"in e&&(this.clientCertAuth=e.clientCertAuth);this.proxy=e.proxy,this.requestToken=null}return e.prototype.build=function(e,t,r,o){return a(this,void 0,void 0,(function(){var a,c,l,u,h,p,d,m,g,v,y;return i(this,(function(i){switch(i.label){case 0:switch(a=n(n(n({method:e,headers:this.headers,url:"".concat(this.baseUrl).concat(t)},o||{}),f.platformDeps.buildPlatformDependentConfig({httpsAgent:this.httpsAgent,clientCertAuth:this.clientCertAuth})),{proxy:this.proxy}),e){case"get":return[3,1];case"post":return[3,4];case"put":return[3,8];case"delete":return[3,10]}return[3,12];case 1:return(p=this.buildRequestUrl(t,r)).length>4096?(c=[n({},a)],g={method:"post",headers:n(n({},this.headers),{"X-HTTP-Method-Override":"GET"})},[4,this.buildData(r)]):[3,3];case 2:return[2,n.apply(void 0,c.concat([(g.data=i.sent(),g)]))];case 3:return[2,n(n({},a),{url:p})];case 4:return r instanceof s.default?[4,this.buildData(r)]:[3,6];case 5:return l=i.sent(),[2,n(n({},a),{headers:"function"==typeof l.getHeaders?n(n({},this.headers),l.getHeaders()):this.headers,data:l})];case 6:return u=[n({},a)],v={},[4,this.buildData(r)];case 7:return[2,n.apply(void 0,u.concat([(v.data=i.sent(),v)]))];case 8:return h=[n({},a)],y={},[4,this.buildData(r)];case 9:return[2,n.apply(void 0,h.concat([(y.data=i.sent(),y)]))];case 10:return d=this.buildRequestUrl,m=[t],[4,this.buildData(r)];case 11:return p=d.apply(this,m.concat([i.sent()])),[2,n(n({},a),{url:p})];case 12:throw new Error("".concat(e," method is not supported"));case 13:return[2]}}))}))},e.prototype.buildRequestUrl=function(e,t){return"".concat(this.baseUrl).concat(e,"?").concat(c.default.stringify(t))},e.prototype.buildData=function(e){return a(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:return"session"!==this.auth.type?[3,2]:[4,this.getRequestToken()];case 1:return t=r.sent(),e instanceof s.default?(e.append("__REQUEST_TOKEN__",t),[2,e]):[2,n({__REQUEST_TOKEN__:t},e)];case 2:return[2,e]}}))}))},e.prototype.buildHeaders=function(e){var t=e.basicAuth,r=e.userAgent,a=t?{Authorization:"Basic ".concat(l.Base64.encode("".concat(t.username,":").concat(t.password)))}:{},i=f.platformDeps.buildHeaders({userAgent:r}),o=n(n({},i),a);switch(this.auth.type){case"password":return n(n({},o),{"X-Cybozu-Authorization":l.Base64.encode("".concat(this.auth.username,":").concat(this.auth.password))});case"apiToken":var s=this.auth.apiToken;return Array.isArray(s)?n(n({},o),{"X-Cybozu-API-Token":s.join(",")}):n(n({},o),{"X-Cybozu-API-Token":s});case"oAuthToken":return n(n({},o),{Authorization:"Bearer ".concat(this.auth.oAuthToken)});default:return n(n({},o),{"X-Requested-With":"XMLHttpRequest"})}},e.prototype.getRequestToken=function(){return a(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return null!==this.requestToken?[3,2]:(e=this,[4,f.platformDeps.getRequestToken()]);case 1:e.requestToken=t.sent(),t.label=2;case 2:return[2,this.requestToken]}}))}))},e}();t.KintoneRequestConfigBuilder=u},8627:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.KintoneResponseHandler=void 0;var i=r(4647),o=r(8855),s=function(){function e(e){var t=e.enableAbortSearchError;this.enableAbortSearchError=t}return e.prototype.handle=function(e){var t=this;return e.then((function(e){return t.handleSuccessResponse(e)}),(function(e){return t.handleErrorResponse(e)}))},e.prototype.handleSuccessResponse=function(e){if(this.enableAbortSearchError&&/Filter aborted because of too many search results/.test(e.headers["x-cybozu-warning"]))throw new i.KintoneAbortSearchError(e.headers["x-cybozu-warning"]);return e.data},e.prototype.handleErrorResponse=function(e){if(!e.response){if(/mac verify failure/.test(e.toString()))throw new Error("invalid clientCertAuth setting");throw e}var t=e.response,r=t.data,i=a(t,["data"]);if("string"==typeof r)throw new Error("".concat(i.status,": ").concat(i.statusText));throw new o.KintoneRestAPIError(n({data:r},i))},e}();t.KintoneResponseHandler=s},6813:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.KintoneRestAPIClient=void 0;var a=r(9733),i=r(2856),o=r(2786),s=r(7796),c=r(1494),l=r(5526),f=r(8627),u=r(6308),h=r(292),p=function(){function e(e){var t,r,p;void 0===e&&(e={}),d(e),this.baseUrl=u.platformDeps.buildBaseUrl(e.baseUrl).replace(/\/+$/,"");var m=function(e){if("username"in e)return n({type:"password"},e);if("apiToken"in e)return n({type:"apiToken"},e);if("oAuthToken"in e)return n({type:"oAuthToken"},e);try{return u.platformDeps.getDefaultAuth()}catch(e){if(e instanceof h.UnsupportedPlatformError)throw new Error("session authentication is not supported in ".concat(e.platform," environment."));throw e}}(null!==(t=e.auth)&&void 0!==t?t:{}),g=new l.KintoneRequestConfigBuilder(n(n({},e),{baseUrl:this.baseUrl,auth:m})),v=new f.KintoneResponseHandler({enableAbortSearchError:null!==(p=null===(r=e.featureFlags)||void 0===r?void 0:r.enableAbortSearchError)&&void 0!==p&&p}),y=new c.DefaultHttpClient({responseHandler:v,requestConfigBuilder:g}),b=e.guestSpaceId;this.bulkRequest_=new a.BulkRequestClient(y,b),this.record=new o.RecordClient(y,this.bulkRequest_,b),this.app=new i.AppClient(y,b),this.file=new s.FileClient(y,b)}return Object.defineProperty(e,"version",{get:function(){return u.platformDeps.getVersion()},enumerable:!1,configurable:!0}),e.prototype.getBaseUrl=function(){return this.baseUrl},e.prototype.bulkRequest=function(e){return this.bulkRequest_.send(e)},e}();t.KintoneRestAPIClient=p;var d=function(e){m(e.baseUrl),g(e.guestSpaceId)},m=function(e){if(void 0!==e){var t=new URL(e);if("localhost"!==t.hostname&&"https:"!==t.protocol)throw new Error('The protocol of baseUrl must be "https".')}},g=function(e){if(""===e||null===e)throw new Error("invalid guestSpaceId: got [".concat(e,"]"))}},2856:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__awaiter||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())}))},i=this&&this.__generator||function(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&i[0]?n.return:i[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,i[1])).done)return a;switch(n=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],n=0}finally{r=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},o=this&&this.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.AppClient=void 0;var s=r(8620),c=function(){function e(e,t){this.client=e,this.guestSpaceId=t}return e.prototype.getFormFields=function(e){var t=e.preview,r=o(e,["preview"]),a=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:t});return this.client.get(a,n({},r))},e.prototype.addFormFields=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.post(t,e)},e.prototype.updateFormFields=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.put(t,e)},e.prototype.deleteFormFields=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.delete(t,e)},e.prototype.getFormLayout=function(e){var t=e.preview,r=o(e,["preview"]),a=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:t});return this.client.get(a,n({},r))},e.prototype.updateFormLayout=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:!0});return this.client.put(t,e)},e.prototype.getViews=function(e){var t=e.preview,r=o(e,["preview"]),n=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:t});return this.client.get(n,r)},e.prototype.updateViews=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:!0});return this.client.put(t,e)},e.prototype.getApp=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app"});return this.client.get(t,e)},e.prototype.getApps=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"apps"});return this.client.get(t,e)},e.prototype.addApp=function(e){return a(this,void 0,void 0,(function(){var t,r,a,o,s;return i(this,(function(i){switch(i.label){case 0:return t=e.name,r=e.space,a=this.buildPathWithGuestSpaceId({endpointName:"app",preview:!0}),r?(o=this.buildPathWithGuestSpaceId({endpointName:"space"}),[4,this.client.get(o,{id:r})]):[3,2];case 1:return s=i.sent().defaultThread,[2,this.client.post(a,n(n({},e),{thread:s}))];case 2:return[2,this.client.post(a,{name:t})]}}))}))},e.prototype.getAppSettings=function(e){var t=e.preview,r=o(e,["preview"]),n=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:t});return this.client.get(n,r)},e.prototype.updateAppSettings=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:!0});return this.client.put(t,e)},e.prototype.getProcessManagement=function(e){var t=e.preview,r=o(e,["preview"]),n=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:t});return this.client.get(n,r)},e.prototype.updateProcessManagement=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:!0});return this.client.put(t,e)},e.prototype.getDeployStatus=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.get(t,e)},e.prototype.deployApp=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.post(t,e)},e.prototype.getFieldAcl=function(e){var t=e.preview,r=o(e,["preview"]),a=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:t});return this.client.get(a,n({},r))},e.prototype.updateFieldAcl=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:!0});return this.client.put(t,e)},e.prototype.getAppAcl=function(e){var t=e.preview,r=o(e,["preview"]),a=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:t});return this.client.get(a,n({},r))},e.prototype.updateAppAcl=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:!0});return this.client.put(t,e)},e.prototype.evaluateRecordsAcl=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/acl/evaluate"});return this.client.get(t,e)},e.prototype.getRecordAcl=function(e){var t=e.preview,r=o(e,["preview"]),a=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:t});return this.client.get(a,n({},r))},e.prototype.updateRecordAcl=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:!0});return this.client.put(t,e)},e.prototype.getAppCustomize=function(e){var t=e.preview,r=o(e,["preview"]),a=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:t});return this.client.get(a,n({},r))},e.prototype.updateAppCustomize=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:!0});return this.client.put(t,e)},e.prototype.getGeneralNotifications=function(e){var t=e.preview,r=o(e,["preview"]),a=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:t});return this.client.get(a,n({},r))},e.prototype.updateGeneralNotifications=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:!0});return this.client.put(t,e)},e.prototype.getPerRecordNotifications=function(e){var t=e.preview,r=o(e,["preview"]),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:t});return this.client.get(n,r)},e.prototype.updatePerRecordNotifications=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:!0});return this.client.put(t,e)},e.prototype.getReminderNotifications=function(e){var t=e.preview,r=o(e,["preview"]),n=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:t});return this.client.get(n,r)},e.prototype.updateReminderNotifications=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:!0});return this.client.put(t,e)},e.prototype.getReports=function(e){var t=e.preview,r=o(e,["preview"]),n=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:t});return this.client.get(n,r)},e.prototype.updateReports=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:!0});return this.client.put(t,e)},e.prototype.getAppActions=function(e){var t=e.preview,r=o(e,["preview"]),n=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:t});return this.client.get(n,r)},e.prototype.updateAppActions=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:!0});return this.client.put(t,e)},e.prototype.buildPathWithGuestSpaceId=function(e){return(0,s.buildPath)(n(n({},e),{guestSpaceId:this.guestSpaceId}))},e}();t.AppClient=c},9733:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.BulkRequestClient=void 0;var i=r(8620),o=function(){function e(e,t){this.client=e,this.guestSpaceId=t,this.REQUESTS_LENGTH_LIMIT=20}return e.prototype.send=function(e){var t=this,r=e.requests.map((function(e){if("endpointName"in e){var r=e.endpointName,i=a(e,["endpointName"]);return n({api:t.buildPathWithGuestSpaceId({endpointName:r})},i)}return e})),i=this.buildPathWithGuestSpaceId({endpointName:"bulkRequest"});return this.client.post(i,{requests:r})},e.prototype.buildPathWithGuestSpaceId=function(e){return(0,i.buildPath)(n(n({},e),{guestSpaceId:this.guestSpaceId}))},e}();t.BulkRequestClient=o},7796:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__awaiter||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())}))},i=this&&this.__generator||function(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&i[0]?n.return:i[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,i[1])).done)return a;switch(n=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],n=0}finally{r=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FileClient=void 0;var s=r(8620),c=o(r(6230)),l=r(6308),f=r(292),u=function(){function e(e,t){this.client=e,this.guestSpaceId=t}return e.prototype.uploadFile=function(e){return a(this,void 0,void 0,(function(){var t,r,n,a,o,s,u,h;return i(this,(function(i){switch(i.label){case 0:if(t=this.buildPathWithGuestSpaceId({endpointName:"file"}),r=new c.default,!("path"in e.file))return[3,5];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,l.platformDeps.readFileFromPath(e.file.path)];case 2:return n=i.sent(),a=n.name,h=n.data,r.append("file",h,a),[3,4];case 3:if((o=i.sent())instanceof f.UnsupportedPlatformError)throw new Error("uploadFile doesn't allow to accept a file path in ".concat(o.platform," environment."));throw o;case 4:return[3,6];case 5:s=e.file,u=s.name,h=s.data,r.append("file",l.platformDeps.buildFormDataValue(h),u),i.label=6;case 6:return[2,this.client.postData(t,r)]}}))}))},e.prototype.downloadFile=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"file"});return this.client.getData(t,e)},e.prototype.buildPathWithGuestSpaceId=function(e){return(0,s.buildPath)(n(n({},e),{guestSpaceId:this.guestSpaceId}))},e}();t.FileClient=u},2786:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__awaiter||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())}))},i=this&&this.__generator||function(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&i[0]?n.return:i[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,i[1])).done)return a;switch(n=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],n=0}finally{r=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},o=this&&this.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r},s=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,a=0,i=t.length;a<i;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.RecordClient=void 0;var c=r(8620),l=r(3870),f=function(){function e(e,t,r){this.client=e,this.bulkRequestClient=t,this.guestSpaceId=r,this.didWarnMaximumOffsetValue=!1}return e.prototype.getRecord=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.get(t,e)},e.prototype.addRecord=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.post(t,e)},e.prototype.updateRecord=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.put(t,e)},e.prototype.upsertRecord=function(e){return a(this,void 0,void 0,(function(){var t,r,n,a,o,s;return i(this,(function(i){switch(i.label){case 0:return t=e.app,r=e.updateKey,n=e.record,[4,this.getRecords({app:t,query:"".concat(r.field,' = "').concat(r.value,'"')})];case 1:return(a=i.sent().records).length>0?"__ID__"!==a[0].$id.type?[3,3]:[4,this.updateRecord(e)]:[3,4];case 2:return o=i.sent().revision,[2,{id:a[0].$id.value,revision:o}];case 3:throw new Error("Missing `$id` in `getRecords` response. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.");case 4:return[2,this.addRecord({app:t,record:Object.assign({},n,(s={},s[r.field]={value:r.value},s))})]}}))}))},e.prototype.getRecords=function(e){return a(this,void 0,void 0,(function(){var t,r;return i(this,(function(n){switch(n.label){case 0:return t=this.buildPathWithGuestSpaceId({endpointName:"records"}),[4,this.client.get(t,e)];case 1:return r=n.sent(),this.warnMaximumOffsetValueIfNeeded(e.query),[2,r]}}))}))},e.prototype.warnMaximumOffsetValueIfNeeded=function(e){if(e){var t=e.match(/offset\s+(\d+)/i);!this.didWarnMaximumOffsetValue&&t&&Number(t[1])>1e4&&(this.didWarnMaximumOffsetValue=!0,console.warn("Warning: The maximum offset value will be limited to 10,000 in the future. Please use `createCursor()` and `getRecordsByCursor()` instead."))}},e.prototype.addRecords=function(e){return a(this,void 0,void 0,(function(){var t,r,n,a;return i(this,(function(i){switch(i.label){case 0:return t=this.buildPathWithGuestSpaceId({endpointName:"records"}),[4,this.client.post(t,e)];case 1:return r=i.sent(),n=r.ids,a=r.revisions,[2,{ids:n,revisions:a,records:n.map((function(e,t){return{id:e,revision:a[t]}}))}]}}))}))},e.prototype.updateRecords=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.put(t,e)},e.prototype.deleteRecords=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.delete(t,e)},e.prototype.createCursor=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.post(t,e)},e.prototype.getRecordsByCursor=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.get(t,e)},e.prototype.deleteCursor=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.delete(t,e)},e.prototype.getAllRecords=function(e){return a(this,void 0,void 0,(function(){var t,r,a,s,c,l,f;return i(this,(function(i){return t=e.condition,r=e.orderBy,a=e.withCursor,s=void 0===a||a,c=o(e,["condition","orderBy","withCursor"]),r?s?(l=t?"".concat(t," "):"",f="".concat(l).concat(r?"order by ".concat(r):""),[2,this.getAllRecordsWithCursor(n(n({},c),{query:f}))]):[2,this.getAllRecordsWithOffset(n(n({},c),{orderBy:r,condition:t}))]:[2,this.getAllRecordsWithId(n(n({},c),{condition:t}))]}))}))},e.prototype.getAllRecordsWithId=function(e){return a(this,void 0,void 0,(function(){var t,r,a;return i(this,(function(i){return t=e.fields,r=o(e,["fields"]),(a=t)&&a.length>0&&-1===a.indexOf("$id")&&(a=s(s([],a,!0),["$id"],!1)),[2,this.getAllRecordsRecursiveWithId(n(n({},r),{fields:a}),"0",[])]}))}))},e.prototype.getAllRecordsRecursiveWithId=function(e,t,r){return a(this,void 0,void 0,(function(){var a,s,c,l,f,u,h,p,d;return i(this,(function(i){switch(i.label){case 0:return a=500,s=e.condition,c=o(e,["condition"]),l=s?"(".concat(s,") and "):"",f="".concat(l,"$id > ").concat(t," order by $id asc limit ").concat(a),[4,this.getRecords(n(n({},c),{query:f}))];case 1:if(u=i.sent(),h=r.concat(u.records),u.records.length<a)return[2,h];if("__ID__"===(p=u.records[u.records.length-1]).$id.type)return d=p.$id.value,[2,this.getAllRecordsRecursiveWithId(e,d,h)];throw new Error("Missing `$id` in `getRecords` response. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.")}}))}))},e.prototype.getAllRecordsWithOffset=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.getAllRecordsRecursiveWithOffset(e,0,[])]}))}))},e.prototype.getAllRecordsRecursiveWithOffset=function(e,t,r){return a(this,void 0,void 0,(function(){var a,s,c,l,f,u,h,p;return i(this,(function(i){switch(i.label){case 0:return a=500,s=e.condition,c=e.orderBy,l=o(e,["condition","orderBy"]),f=s?"".concat(s," "):"",u="".concat(f).concat(c?"order by ".concat(c," "):"","limit ").concat(a," offset ").concat(t),[4,this.getRecords(n(n({},l),{query:u}))];case 1:return h=i.sent(),p=r.concat(h.records),h.records.length<a?[2,p]:[2,this.getAllRecordsRecursiveWithOffset(e,t+a,p)]}}))}))},e.prototype.getAllRecordsWithCursor=function(e){return a(this,void 0,void 0,(function(){var t,r;return i(this,(function(n){switch(n.label){case 0:return[4,this.createCursor(e)];case 1:t=n.sent().id,n.label=2;case 2:return n.trys.push([2,4,,6]),[4,this.getAllRecordsRecursiveByCursor(t,[])];case 3:return[2,n.sent()];case 4:return r=n.sent(),[4,this.deleteCursor({id:t})];case 5:throw n.sent(),r;case 6:return[2]}}))}))},e.prototype.getAllRecordsRecursiveByCursor=function(e,t){return a(this,void 0,void 0,(function(){var r,n;return i(this,(function(a){switch(a.label){case 0:return[4,this.getRecordsByCursor({id:e})];case 1:return r=a.sent(),n=t.concat(r.records),r.next?[2,this.getAllRecordsRecursiveByCursor(e,n)]:[2,n]}}))}))},e.prototype.addAllRecords=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){if(!e.records.every((function(e){return!Array.isArray(e)&&e instanceof Object})))throw new Error("the `records` parameter must be an array of object.");return[2,this.addAllRecordsRecursive(e,e.records.length,[])]}))}))},e.prototype.addAllRecordsRecursive=function(e,t,r){return a(this,void 0,void 0,(function(){var n,a,o,s,c,f;return i(this,(function(i){switch(i.label){case 0:if(n=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,a=e.app,o=e.records,0===(s=o.slice(0,n)).length)return[2,{records:r}];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.addAllRecordsWithBulkRequest({app:a,records:s})];case 2:return c=i.sent(),[3,4];case 3:throw f=i.sent(),new l.KintoneAllRecordsError({records:r},o,t,f,100);case 4:return[2,this.addAllRecordsRecursive({app:a,records:o.slice(n)},t,r.concat(c))]}}))}))},e.prototype.addAllRecordsWithBulkRequest=function(e){return a(this,void 0,void 0,(function(){var t,r;return i(this,(function(n){switch(n.label){case 0:return t=this.separateArrayRecursive(100,[],e.records),r=t.map((function(t){return{method:"POST",endpointName:"records",payload:{app:e.app,records:t}}})),[4,this.bulkRequestClient.send({requests:r})];case 1:return[2,n.sent().results.map((function(e){var t=e.ids,r=e.revisions;return t.map((function(e,t){return{id:e,revision:r[t]}}))})).reduce((function(e,t){return e.concat(t)}),[])]}}))}))},e.prototype.updateAllRecords=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.updateAllRecordsRecursive(e,e.records.length,[])]}))}))},e.prototype.updateAllRecordsRecursive=function(e,t,r){return a(this,void 0,void 0,(function(){var n,a,o,s,c,f;return i(this,(function(i){switch(i.label){case 0:if(n=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,a=e.app,o=e.records,0===(s=o.slice(0,n)).length)return[2,{records:r}];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.updateAllRecordsWithBulkRequest({app:a,records:s})];case 2:return c=i.sent(),[3,4];case 3:throw f=i.sent(),new l.KintoneAllRecordsError({records:r},o,t,f,100);case 4:return[2,this.updateAllRecordsRecursive({app:a,records:o.slice(n)},t,r.concat(c))]}}))}))},e.prototype.updateAllRecordsWithBulkRequest=function(e){return a(this,void 0,void 0,(function(){var t,r;return i(this,(function(n){switch(n.label){case 0:return t=this.separateArrayRecursive(100,[],e.records),r=t.map((function(t){return{method:"PUT",endpointName:"records",payload:{app:e.app,records:t}}})),[4,this.bulkRequestClient.send({requests:r})];case 1:return[2,n.sent().results.map((function(e){return e.records})).reduce((function(e,t){return e.concat(t)}),[])]}}))}))},e.prototype.deleteAllRecords=function(e){return this.deleteAllRecordsRecursive(e,e.records.length)},e.prototype.deleteAllRecordsRecursive=function(e,t){return a(this,void 0,void 0,(function(){var r,n,a,o,s;return i(this,(function(i){switch(i.label){case 0:if(r=100*this.bulkRequestClient.REQUESTS_LENGTH_LIMIT,n=e.app,a=e.records,0===(o=a.slice(0,r)).length)return[2,{}];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.deleteAllRecordsWithBulkRequest({app:n,records:o})];case 2:return i.sent(),[3,4];case 3:throw s=i.sent(),new l.KintoneAllRecordsError({},a,t,s,100);case 4:return[2,this.deleteAllRecordsRecursive({app:n,records:a.slice(r)},t)]}}))}))},e.prototype.deleteAllRecordsWithBulkRequest=function(e){return a(this,void 0,void 0,(function(){var t,r;return i(this,(function(n){switch(n.label){case 0:return t=this.separateArrayRecursive(100,[],e.records),r=t.map((function(t){return{method:"DELETE",endpointName:"records",payload:{app:e.app,ids:t.map((function(e){return e.id})),revisions:t.map((function(e){return e.revision}))}}})),[4,this.bulkRequestClient.send({requests:r})];case 1:return n.sent(),[2]}}))}))},e.prototype.separateArrayRecursive=function(e,t,r){var n=r.slice(0,e);return 0===n.length?t:this.separateArrayRecursive(e,s(s([],t,!0),[n],!1),r.slice(e))},e.prototype.addRecordComment=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.post(t,e)},e.prototype.deleteRecordComment=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.delete(t,e)},e.prototype.getRecordComments=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/comments"});return this.client.get(t,e)},e.prototype.updateRecordAssignees=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/assignees"});return this.client.put(t,e)},e.prototype.updateRecordStatus=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"record/status"});return this.client.put(t,e)},e.prototype.updateRecordsStatus=function(e){var t=this.buildPathWithGuestSpaceId({endpointName:"records/status"});return this.client.put(t,e)},e.prototype.buildPathWithGuestSpaceId=function(e){return(0,c.buildPath)(n(n({},e),{guestSpaceId:this.guestSpaceId}))},e}();t.RecordClient=f},4647:function(e,t){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.KintoneAbortSearchError=void 0;var a=function(e){function t(r){var n=e.call(this,r)||this;return n.name="KintoneAbortSearchError",n.message=r,Object.setPrototypeOf(n,t.prototype),n}return n(t,e),t}(Error);t.KintoneAbortSearchError=a},3870:function(e,t){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.KintoneAllRecordsError=void 0;var a=function(e){function t(r,n,a,i,o){var s=this,c=a-n.length,l=t.extractErrorIndex(c,i,o),f=t.buildErrorMessage(c,a,l);return(s=e.call(this,f)||this).name="KintoneAllRecordsError",s.processedRecordsResult=r,s.unprocessedRecords=n,s.error=i,s.errorIndex=l,s.message=f,Object.setPrototypeOf(s,t.prototype),s}return n(t,e),t.parseErrorIndex=function(e){var t=Object.keys(e)[0].match(/records\[(\d+)\]/);return t?Number(t[1]):null},t.extractErrorIndex=function(e,r,n){if(void 0!==r.bulkRequestIndex&&r.errors){var a=t.parseErrorIndex(r.errors);if(null!==a)return e+r.bulkRequestIndex*n+a}},t.buildErrorMessage=function(e,t,r){var n="";return void 0!==r&&(n="An error occurred at records[".concat(r,"]. ")),n+="".concat(e,"/").concat(t," records are processed successfully")},t}(Error);t.KintoneAllRecordsError=a},8855:function(e,t){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.KintoneRestAPIError=void 0;var a=function(e){function t(r){var n=this,a=t.buildErrorResponseDateWithIndex(r),i=a.data,o=a.bulkRequestIndex;return(n=e.call(this,i.message)||this).name="KintoneRestAPIError",n.id=i.id,n.code=i.code,n.errors=i.errors,n.status=r.status,n.bulkRequestIndex=o,n.headers=r.headers,n.message="[".concat(r.status,"] [").concat(n.code,"] ").concat(n.message," (").concat(n.id,")"),Error.captureStackTrace&&Error.captureStackTrace(n,t),Object.setPrototypeOf(n,t.prototype),n}return n(t,e),t.findErrorResponseDataWithIndex=function(e){for(var t=0;t<e.length;t++){if(0!==Object.keys(e[t]).length)return{data:e[t],bulkRequestIndex:t}}throw Error("Missing response data in `results`. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.")},t.buildErrorResponseDateWithIndex=function(e){return"results"in e.data?t.findErrorResponseDataWithIndex(e.data.results):{data:e.data}},t}(Error);t.KintoneRestAPIError=a},2314:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(4647),t),a(r(3870),t),a(r(8855),t)},4550:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__awaiter||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())}))},i=this&&this.__generator||function(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&i[0]?n.return:i[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,i[1])).done)return a;switch(n=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],n=0}finally{r=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AxiosClient=void 0;var s=o(r(9669)),c=function(){function e(e){var t=e.responseHandler,r=e.requestConfigBuilder;this.responseHandler=t,this.requestConfigBuilder=r}return e.prototype.get=function(e,t){return a(this,void 0,void 0,(function(){var r;return i(this,(function(n){switch(n.label){case 0:return[4,this.requestConfigBuilder.build("get",e,t)];case 1:return r=n.sent(),[4,this.sendRequest(r)];case 2:return[2,n.sent()]}}))}))},e.prototype.getData=function(e,t){return a(this,void 0,void 0,(function(){var r;return i(this,(function(n){switch(n.label){case 0:return[4,this.requestConfigBuilder.build("get",e,t,{responseType:"arraybuffer"})];case 1:return r=n.sent(),[4,this.sendRequest(r)];case 2:return[2,n.sent()]}}))}))},e.prototype.post=function(e,t){return a(this,void 0,void 0,(function(){var r;return i(this,(function(n){switch(n.label){case 0:return[4,this.requestConfigBuilder.build("post",e,t)];case 1:return r=n.sent(),[4,this.sendRequest(r)];case 2:return[2,n.sent()]}}))}))},e.prototype.postData=function(e,t){return a(this,void 0,void 0,(function(){var r;return i(this,(function(n){switch(n.label){case 0:return[4,this.requestConfigBuilder.build("post",e,t)];case 1:return r=n.sent(),[4,this.sendRequest(r)];case 2:return[2,n.sent()]}}))}))},e.prototype.put=function(e,t){return a(this,void 0,void 0,(function(){var r;return i(this,(function(n){switch(n.label){case 0:return[4,this.requestConfigBuilder.build("put",e,t)];case 1:return r=n.sent(),[4,this.sendRequest(r)];case 2:return[2,n.sent()]}}))}))},e.prototype.delete=function(e,t){return a(this,void 0,void 0,(function(){var r;return i(this,(function(n){switch(n.label){case 0:return[4,this.requestConfigBuilder.build("delete",e,t)];case 1:return r=n.sent(),[4,this.sendRequest(r)];case 2:return[2,n.sent()]}}))}))},e.prototype.sendRequest=function(e){return this.responseHandler.handle((0,s.default)(n(n({},e),{maxBodyLength:1/0,maxContentLength:1/0})))},e}();t.AxiosClient=c},1494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultHttpClient=void 0;var n=r(4550);Object.defineProperty(t,"DefaultHttpClient",{enumerable:!0,get:function(){return n.AxiosClient}})},8502:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return a(t,e),t},o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.KintoneRestAPIClient=void 0;var s=r(6308),c=i(r(1773));(0,s.injectPlatformDeps)(c);var l=r(6813);Object.defineProperty(t,"KintoneRestAPIClient",{enumerable:!0,get:function(){return l.KintoneRestAPIClient}}),o(r(2314),t)},292:function(e,t){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedPlatformError=void 0;var a=function(e){function t(r){var n=this,a="This function is not supported in ".concat(r," environment");return n=e.call(this,a)||this,Error.captureStackTrace&&Error.captureStackTrace(n,t),n.name="UnsupportedPlatformError",n.platform=r,Object.setPrototypeOf(n,t.prototype),n}return n(t,e),t}(Error);t.UnsupportedPlatformError=a},1773:function(e,t,r){"use strict";var n=this&&this.__awaiter||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())}))},a=this&&this.__generator||function(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&i[0]?n.return:i[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,i[1])).done)return a;switch(n=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],n=0}finally{r=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.getVersion=t.buildBaseUrl=t.buildFormDataValue=t.buildHeaders=t.buildPlatformDependentConfig=t.getDefaultAuth=t.getRequestToken=t.readFileFromPath=void 0;var i=r(292);t.readFileFromPath=function(e){throw new i.UnsupportedPlatformError("Browser")};t.getRequestToken=function(){return n(void 0,void 0,void 0,(function(){var e,t;return a(this,(function(r){if("object"==typeof kintone&&null!==kintone&&"function"==typeof kintone.getRequestToken)return[2,kintone.getRequestToken()];if("object"==typeof garoon&&null!==garoon&&"function"==typeof(null===(t=null===(e=garoon.connect)||void 0===e?void 0:e.kintone)||void 0===t?void 0:t.getRequestToken))return[2,garoon.connect.kintone.getRequestToken()];throw new Error("session authentication must specify a request token")}))}))};t.getDefaultAuth=function(){return{type:"session"}};t.buildPlatformDependentConfig=function(){return{}};t.buildHeaders=function(){return{}};t.buildFormDataValue=function(e){return new Blob([e])};t.buildBaseUrl=function(e){if(e)return e;if(void 0===location)throw new Error("The baseUrl parameter is required for this environment");var t=location.host,r=location.protocol;return"".concat(r,"//").concat(t)};t.getVersion=function(){return PACKAGE_VERSION}},6308:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.injectPlatformDeps=t.platformDeps=void 0,t.platformDeps={readFileFromPath:function(){throw new Error("not implemented")},getRequestToken:function(){throw new Error("not implemented")},getDefaultAuth:function(){throw new Error("not implemented")},buildPlatformDependentConfig:function(){throw new Error("not implemented")},buildHeaders:function(){throw new Error("not implemented")},buildFormDataValue:function(){throw new Error("not implemented")},buildBaseUrl:function(){throw new Error("not implemented")},getVersion:function(){throw new Error("not implemented")}};t.injectPlatformDeps=function(e){e.readFileFromPath&&(t.platformDeps.readFileFromPath=e.readFileFromPath),e.getRequestToken&&(t.platformDeps.getRequestToken=e.getRequestToken),e.getDefaultAuth&&(t.platformDeps.getDefaultAuth=e.getDefaultAuth),e.buildPlatformDependentConfig&&(t.platformDeps.buildPlatformDependentConfig=e.buildPlatformDependentConfig),e.buildHeaders&&(t.platformDeps.buildHeaders=e.buildHeaders),e.buildFormDataValue&&(t.platformDeps.buildFormDataValue=e.buildFormDataValue),e.buildBaseUrl&&(t.platformDeps.buildBaseUrl=e.buildBaseUrl),e.getVersion&&(t.platformDeps.getVersion=e.getVersion)}},8620:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildPath=void 0;t.buildPath=function(e){var t=e.endpointName,r=e.guestSpaceId,n=e.preview,a=void 0!==r?"/guest/".concat(r):"",i=n?"/preview":"";return"/k".concat(a,"/v1").concat(i,"/").concat(t,".json")}},9669:(e,t,r)=>{e.exports=r(1609)},5448:(e,t,r)=>{"use strict";var n=r(4867),a=r(6026),i=r(4372),o=r(1246),s=r(4097),c=r(4109),l=r(7985),f=r(7874),u=r(2648),h=r(644),p=r(205);e.exports=function(e){return new Promise((function(t,r){var d,m=e.data,g=e.headers,v=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(d),e.signal&&e.signal.removeEventListener("abort",d)}n.isFormData(m)&&n.isStandardBrowserEnv()&&delete g["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",T=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(w+":"+T)}var E=s(e.baseURL,e.url);function S(){if(b){var n="getAllResponseHeaders"in b?c(b.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:e,request:b};a((function(e){t(e),y()}),(function(e){r(e),y()}),i),b=null}}if(b.open(e.method.toUpperCase(),o(E,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=S:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(S)},b.onabort=function(){b&&(r(new u("Request aborted",u.ECONNABORTED,e,b)),b=null)},b.onerror=function(){r(new u("Network Error",u.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||f;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new u(t,n.clarifyTimeoutError?u.ETIMEDOUT:u.ECONNABORTED,e,b)),b=null},n.isStandardBrowserEnv()){var A=(e.withCredentials||l(E))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;A&&(g[e.xsrfHeaderName]=A)}"setRequestHeader"in b&&n.forEach(g,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete g[t]:b.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(d=function(e){b&&(r(!e||e&&e.type?new h:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(d),e.signal&&(e.signal.aborted?d():e.signal.addEventListener("abort",d))),m||(m=null);var O=p(E);O&&-1===["http","https","file"].indexOf(O)?r(new u("Unsupported protocol "+O+":",u.ERR_BAD_REQUEST,e)):b.send(m)}))}},1609:(e,t,r)=>{"use strict";var n=r(4867),a=r(1849),i=r(321),o=r(7185);var s=function e(t){var r=new i(t),s=a(i.prototype.request,r);return n.extend(s,i.prototype,r),n.extend(s,r),s.create=function(r){return e(o(t,r))},s}(r(5546));s.Axios=i,s.CanceledError=r(644),s.CancelToken=r(4972),s.isCancel=r(6502),s.VERSION=r(7288).version,s.toFormData=r(7675),s.AxiosError=r(2648),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=r(8713),s.isAxiosError=r(6268),e.exports=s,e.exports.default=s},4972:(e,t,r)=>{"use strict";var n=r(644);function a(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},a.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},a.source=function(){var e;return{token:new a((function(t){e=t})),cancel:e}},e.exports=a},644:(e,t,r)=>{"use strict";var n=r(2648);function a(e){n.call(this,null==e?"canceled":e,n.ERR_CANCELED),this.name="CanceledError"}r(4867).inherits(a,n,{__CANCEL__:!0}),e.exports=a},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,r)=>{"use strict";var n=r(4867),a=r(1246),i=r(782),o=r(3572),s=r(7185),c=r(4097),l=r(4875),f=l.validators;function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&l.assertOptions(r,{silentJSONParsing:f.transitional(f.boolean),forcedJSONParsing:f.transitional(f.boolean),clarifyTimeoutError:f.transitional(f.boolean)},!1);var n=[],a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,c=[];if(this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)})),!a){var u=[o,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(c),i=Promise.resolve(t);u.length;)i=i.then(u.shift(),u.shift());return i}for(var h=t;n.length;){var p=n.shift(),d=n.shift();try{h=p(h)}catch(e){d(e);break}}try{i=o(h)}catch(e){return Promise.reject(e)}for(;c.length;)i=i.then(c.shift(),c.shift());return i},u.prototype.getUri=function(e){e=s(this.defaults,e);var t=c(e.baseURL,e.url);return a(t,e.params,e.paramsSerializer)},n.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,a){return this.request(s(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}u.prototype[e]=t(),u.prototype[e+"Form"]=t(!0)})),e.exports=u},2648:(e,t,r)=>{"use strict";var n=r(4867);function a(e,t,r,n,a){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}n.inherits(a,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=a.prototype,o={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){o[e]={value:e}})),Object.defineProperties(a,o),Object.defineProperty(i,"isAxiosError",{value:!0}),a.from=function(e,t,r,o,s,c){var l=Object.create(i);return n.toFlatObject(e,l,(function(e){return e!==Error.prototype})),a.call(l,e.message,t,r,o,s),l.name=e.name,c&&Object.assign(l,c),l},e.exports=a},782:(e,t,r)=>{"use strict";var n=r(4867);function a(){this.handlers=[]}a.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=a},4097:(e,t,r)=>{"use strict";var n=r(1793),a=r(7303);e.exports=function(e,t){return e&&!n(t)?a(e,t):t}},3572:(e,t,r)=>{"use strict";var n=r(4867),a=r(8527),i=r(6502),o=r(5546),s=r(644);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=a.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return c(e),t.data=a.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=a.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},7185:(e,t,r)=>{"use strict";var n=r(4867);e.exports=function(e,t){t=t||{};var r={};function a(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function i(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:a(void 0,e[r]):a(e[r],t[r])}function o(e){if(!n.isUndefined(t[e]))return a(void 0,t[e])}function s(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:a(void 0,e[r]):a(void 0,t[r])}function c(r){return r in t?a(e[r],t[r]):r in e?a(void 0,e[r]):void 0}var l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||i,a=t(e);n.isUndefined(a)&&t!==c||(r[e]=a)})),r}},6026:(e,t,r)=>{"use strict";var n=r(2648);e.exports=function(e,t,r){var a=r.config.validateStatus;r.status&&a&&!a(r.status)?t(new n("Request failed with status code "+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}},8527:(e,t,r)=>{"use strict";var n=r(4867),a=r(5546);e.exports=function(e,t,r){var i=this||a;return n.forEach(r,(function(r){e=r.call(i,e,t)})),e}},5546:(e,t,r)=>{"use strict";var n=r(4867),a=r(6016),i=r(2648),o=r(7874),s=r(7675),c={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var f,u={transitional:o,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(f=r(5448)),f),transformRequest:[function(e,t){if(a(t,"Accept"),a(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e))return e;if(n.isArrayBufferView(e))return e.buffer;if(n.isURLSearchParams(e))return l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,i=n.isObject(e),o=t&&t["Content-Type"];if((r=n.isFileList(e))||i&&"multipart/form-data"===o){var c=this.env&&this.env.FormData;return s(r?{"files[]":e}:e,c&&new c)}return i||"application/json"===o?(l(t,"application/json"),function(e,t,r){if(n.isString(e))try{return(t||JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,r=t&&t.silentJSONParsing,a=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||a&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw i.from(e,i.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r(1623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){u.headers[e]=n.merge(c)})),e.exports=u},7874:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:e=>{e.exports={version:"0.27.2"}},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},1246:(e,t,r)=>{"use strict";var n=r(4867);function a(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var o=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),o.push(a(t)+"="+a(e))})))})),i=o.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,r)=>{"use strict";var n=r(4867);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,a,i,o){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(a)&&s.push("path="+a),n.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,r)=>{"use strict";var n=r(4867);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,r)=>{"use strict";var n=r(4867);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function a(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=a(window.location.href),function(t){var r=n.isString(t)?a(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},6016:(e,t,r)=>{"use strict";var n=r(4867);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},1623:e=>{e.exports=null},4109:(e,t,r)=>{"use strict";var n=r(4867),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,o={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(o[t]&&a.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([r]):o[t]?o[t]+", "+r:r}})),o):o}},205:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7675:(e,t,r)=>{"use strict";var n=r(4867);e.exports=function(e,t){t=t||new FormData;var r=[];function a(e){return null===e?"":n.isDate(e)?e.toISOString():n.isArrayBuffer(e)||n.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,o){if(n.isPlainObject(i)||n.isArray(i)){if(-1!==r.indexOf(i))throw Error("Circular reference detected in "+o);r.push(i),n.forEach(i,(function(r,i){if(!n.isUndefined(r)){var s,c=o?o+"."+i:i;if(r&&!o&&"object"==typeof r)if(n.endsWith(i,"{}"))r=JSON.stringify(r);else if(n.endsWith(i,"[]")&&(s=n.toArray(r)))return void s.forEach((function(e){!n.isUndefined(e)&&t.append(c,a(e))}));e(r,c)}})),r.pop()}else t.append(o,a(i))}(e),t}},4875:(e,t,r)=>{"use strict";var n=r(7288).version,a=r(2648),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,r){function i(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new a(i(n," has been removed"+(t?" in "+t:"")),a.ERR_DEPRECATED);return t&&!o[n]&&(o[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new a("options must be an object",a.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],s=t[o];if(s){var c=e[o],l=void 0===c||s(c,o,e);if(!0!==l)throw new a("option "+o+" must be "+l,a.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new a("Unknown option "+o,a.ERR_BAD_OPTION)}},validators:i}},4867:(e,t,r)=>{"use strict";var n,a=r(1849),i=Object.prototype.toString,o=(n=Object.create(null),function(e){var t=i.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function c(e){return Array.isArray(e)}function l(e){return void 0===e}var f=s("ArrayBuffer");function u(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=s("Date"),d=s("File"),m=s("Blob"),g=s("FileList");function v(e){return"[object Function]"===i.call(e)}var y=s("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}var w,T=(w="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return w&&e instanceof w});e.exports={isArray:c,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:u,isPlainObject:h,isUndefined:l,isDate:p,isFile:d,isBlob:m,isFunction:v,isStream:function(e){return u(e)&&v(e.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:b,merge:function e(){var t={};function r(r,n){h(t[n])&&h(r)?t[n]=e(t[n],r):h(r)?t[n]=e({},r):c(r)?t[n]=r.slice():t[n]=r}for(var n=0,a=arguments.length;n<a;n++)b(arguments[n],r);return t},extend:function(e,t,r){return b(t,(function(t,n){e[n]=r&&"function"==typeof t?a(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r){var n,a,i,o={};t=t||{};do{for(a=(n=Object.getOwnPropertyNames(e)).length;a-- >0;)o[i=n[a]]||(t[i]=e[i],o[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:s,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(l(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:T,isFileList:g}},1924:(e,t,r)=>{"use strict";var n=r(210),a=r(5559),i=a(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?a(r):r}},5559:(e,t,r)=>{"use strict";var n=r(8612),a=r(210),i=a("%Function.prototype.apply%"),o=a("%Function.prototype.call%"),s=a("%Reflect.apply%",!0)||n.call(o,i),c=a("%Object.getOwnPropertyDescriptor%",!0),l=a("%Object.defineProperty%",!0),f=a("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=s(n,o,arguments);if(c&&l){var r=c(t,"length");r.configurable&&l(t,"length",{value:1+f(0,e.length-(arguments.length-1))})}return t};var u=function(){return s(n,i,arguments)};l?l(e.exports,"apply",{value:u}):e.exports.apply=u},6230:e=>{e.exports="object"==typeof self?self.FormData:window.FormData},7648:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,a="[object Function]";e.exports=function(e){var i=this;if("function"!=typeof i||n.call(i)!==a)throw new TypeError(t+i);for(var o,s=r.call(arguments,1),c=function(){if(this instanceof o){var t=i.apply(this,s.concat(r.call(arguments)));return Object(t)===t?t:this}return i.apply(e,s.concat(r.call(arguments)))},l=Math.max(0,i.length-s.length),f=[],u=0;u<l;u++)f.push("$"+u);if(o=Function("binder","return function ("+f.join(",")+"){ return binder.apply(this,arguments); }")(c),i.prototype){var h=function(){};h.prototype=i.prototype,o.prototype=new h,h.prototype=null}return o}},8612:(e,t,r)=>{"use strict";var n=r(7648);e.exports=Function.prototype.bind||n},210:(e,t,r)=>{"use strict";var n,a=SyntaxError,i=Function,o=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var l=function(){throw new o},f=c?function(){try{return l}catch(e){try{return c(arguments,"callee").get}catch(e){return l}}}():l,u=r(1405)(),h=Object.getPrototypeOf||function(e){return e.__proto__},p={},d="undefined"==typeof Uint8Array?n:h(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":u?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?h(""[Symbol.iterator]()):n,"%Symbol%":u?Symbol:n,"%SyntaxError%":a,"%ThrowTypeError%":f,"%TypedArray%":d,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},g=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&(r=h(a.prototype))}return m[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=r(8612),b=r(7642),w=y.call(Function.call,Array.prototype.concat),T=y.call(Function.apply,Array.prototype.splice),E=y.call(Function.call,String.prototype.replace),S=y.call(Function.call,String.prototype.slice),A=y.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,x=function(e){var t=S(e,0,1),r=S(e,-1);if("%"===t&&"%"!==r)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var n=[];return E(e,O,(function(e,t,r,a){n[n.length]=r?E(a,_,"$1"):t||e})),n},R=function(e,t){var r,n=e;if(b(v,n)&&(n="%"+(r=v[n])[0]+"%"),b(m,n)){var i=m[n];if(i===p&&(i=g(n)),void 0===i&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new a("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=x(e),n=r.length>0?r[0]:"",i=R("%"+n+"%",t),s=i.name,l=i.value,f=!1,u=i.alias;u&&(n=u[0],T(r,w([0,1],u)));for(var h=1,p=!0;h<r.length;h+=1){var d=r[h],g=S(d,0,1),v=S(d,-1);if(('"'===g||"'"===g||"`"===g||'"'===v||"'"===v||"`"===v)&&g!==v)throw new a("property names with quotes must have matching quotes");if("constructor"!==d&&p||(f=!0),b(m,s="%"+(n+="."+d)+"%"))l=m[s];else if(null!=l){if(!(d in l)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&h+1>=r.length){var y=c(l,d);l=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:l[d]}else p=b(l,d),l=l[d];p&&!f&&(m[s]=l)}}return l}},1405:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,a=r(5419);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&a())))}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},7642:(e,t,r)=>{"use strict";var n=r(8612);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},9575:function(e,t,r){"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g&&r.g,e.exports=function(){"use strict";var e,t="3.7.2",r=t,n="function"==typeof atob,a="function"==typeof btoa,i="function"==typeof Buffer,o="function"==typeof TextDecoder?new TextDecoder:void 0,s="function"==typeof TextEncoder?new TextEncoder:void 0,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=Array.prototype.slice.call(c),f=(e={},l.forEach((function(t,r){return e[t]=r})),e),u=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,h=String.fromCharCode.bind(String),p="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e,t){return void 0===t&&(t=function(e){return e}),new Uint8Array(Array.prototype.slice.call(e,0).map(t))},d=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},m=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},g=function(e){for(var t,r,n,a,i="",o=e.length%3,s=0;s<e.length;){if((r=e.charCodeAt(s++))>255||(n=e.charCodeAt(s++))>255||(a=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");i+=l[(t=r<<16|n<<8|a)>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}return o?i.slice(0,o-3)+"===".substring(o):i},v=a?function(e){return btoa(e)}:i?function(e){return Buffer.from(e,"binary").toString("base64")}:g,y=i?function(e){return Buffer.from(e).toString("base64")}:function(e){for(var t=4096,r=[],n=0,a=e.length;n<a;n+=t)r.push(h.apply(null,e.subarray(n,n+t)));return v(r.join(""))},b=function(e,t){return void 0===t&&(t=!1),t?d(y(e)):y(e)},w=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?h(192|t>>>6)+h(128|63&t):h(224|t>>>12&15)+h(128|t>>>6&63)+h(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return h(240|t>>>18&7)+h(128|t>>>12&63)+h(128|t>>>6&63)+h(128|63&t)},T=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,E=function(e){return e.replace(T,w)},S=i?function(e){return Buffer.from(e,"utf8").toString("base64")}:s?function(e){return y(s.encode(e))}:function(e){return v(E(e))},A=function(e,t){return void 0===t&&(t=!1),t?d(S(e)):S(e)},O=function(e){return A(e,!0)},_=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,x=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return h(55296+(t>>>10))+h(56320+(1023&t));case 3:return h((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return h((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},R=function(e){return e.replace(_,x)},C=function(e){if(e=e.replace(/\s+/g,""),!u.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,r,n,a="",i=0;i<e.length;)t=f[e.charAt(i++)]<<18|f[e.charAt(i++)]<<12|(r=f[e.charAt(i++)])<<6|(n=f[e.charAt(i++)]),a+=64===r?h(t>>16&255):64===n?h(t>>16&255,t>>8&255):h(t>>16&255,t>>8&255,255&t);return a},k=n?function(e){return atob(m(e))}:i?function(e){return Buffer.from(e,"base64").toString("binary")}:C,P=i?function(e){return p(Buffer.from(e,"base64"))}:function(e){return p(k(e),(function(e){return e.charCodeAt(0)}))},I=function(e){return P(D(e))},N=i?function(e){return Buffer.from(e,"base64").toString("utf8")}:o?function(e){return o.decode(P(e))}:function(e){return R(k(e))},D=function(e){return m(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))},L=function(e){return N(D(e))},F=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},M=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,F(t))};e("fromBase64",(function(){return L(this)})),e("toBase64",(function(e){return A(this,e)})),e("toBase64URI",(function(){return A(this,!0)})),e("toBase64URL",(function(){return A(this,!0)})),e("toUint8Array",(function(){return I(this)}))},U=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,F(t))};e("toBase64",(function(e){return b(this,e)})),e("toBase64URI",(function(){return b(this,!0)})),e("toBase64URL",(function(){return b(this,!0)}))},B=function(){M(),U()},j={version:t,VERSION:r,atob:k,atobPolyfill:C,btoa:v,btoaPolyfill:g,fromBase64:L,toBase64:A,encode:A,encodeURI:O,encodeURL:O,utob:E,btou:R,decode:L,isValid:function(e){if("string"!=typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:b,toUint8Array:I,extendString:M,extendUint8Array:U,extendBuiltins:B,Base64:{}};return Object.keys(j).forEach((function(e){return j.Base64[e]=j[e]})),j}()},631:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,a=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&a&&"function"==typeof a.get?a.get:null,o=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&c&&"function"==typeof c.get?c.get:null,f=s&&Set.prototype.forEach,u="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,T=String.prototype.toLowerCase,E=RegExp.prototype.test,S=Array.prototype.concat,A=Array.prototype.join,O=Array.prototype.slice,_=Math.floor,x="function"==typeof BigInt?BigInt.prototype.valueOf:null,R=Object.getOwnPropertySymbols,C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k||"symbol")?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,N=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function D(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||E.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-_(-e):_(e);if(n!==e){var a=String(n),i=y.call(t,a.length+1);return b.call(a,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var L=r(4654),F=L.custom,M=H(F)?F:null;function U(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function B(e){return b.call(String(e),/"/g,""")}function j(e){return!("[object Array]"!==$(e)||P&&"object"==typeof e&&P in e)}function W(e){return!("[object RegExp]"!==$(e)||P&&"object"==typeof e&&P in e)}function H(e){if(k)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!C)return!1;try{return C.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,n,a){var s=r||{};if(V(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!V(s,"customInspect")||s.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return K(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return m?D(t,w):w}if("bigint"==typeof t){var E=String(t)+"n";return m?D(t,E):E}var _=void 0===s.depth?5:s.depth;if(void 0===n&&(n=0),n>=_&&_>0&&"object"==typeof t)return j(t)?"[Array]":"[Object]";var R=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=A.call(Array(e.indent+1)," ")}return{base:r,prev:A.call(Array(t+1),r)}}(s,n);if(void 0===a)a=[];else if(z(a,t)>=0)return"[Circular]";function F(t,r,i){if(r&&(a=O.call(a)).push(r),i){var o={depth:s.depth};return V(s,"quoteStyle")&&(o.quoteStyle=s.quoteStyle),e(t,o,n+1,a)}return e(t,s,n+1,a)}if("function"==typeof t&&!W(t)){var G=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),q=Q(t,F);return"[Function"+(G?": "+G:" (anonymous)")+"]"+(q.length>0?" { "+A.call(q,", ")+" }":"")}if(H(t)){var ee=k?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):C.call(t);return"object"!=typeof t||k?ee:X(ee)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var te="<"+T.call(String(t.nodeName)),re=t.attributes||[],ne=0;ne<re.length;ne++)te+=" "+re[ne].name+"="+U(B(re[ne].value),"double",s);return te+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+="</"+T.call(String(t.nodeName))+">"}if(j(t)){if(0===t.length)return"[]";var ae=Q(t,F);return R&&!function(e){for(var t=0;t<e.length;t++)if(z(e[t],"\n")>=0)return!1;return!0}(ae)?"["+Z(ae,R)+"]":"[ "+A.call(ae,", ")+" ]"}if(function(e){return!("[object Error]"!==$(e)||P&&"object"==typeof e&&P in e)}(t)){var ie=Q(t,F);return"cause"in Error.prototype||!("cause"in t)||I.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+A.call(ie,", ")+" }":"{ ["+String(t)+"] "+A.call(S.call("[cause]: "+F(t.cause),ie),", ")+" }"}if("object"==typeof t&&c){if(M&&"function"==typeof t[M]&&L)return L(t,{depth:_-n});if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var oe=[];return o.call(t,(function(e,r){oe.push(F(r,t,!0)+" => "+F(e,t))})),J("Map",i.call(t),oe,R)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var se=[];return f.call(t,(function(e){se.push(F(e,t))})),J("Set",l.call(t),se,R)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e,u);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{u.call(e,u)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return!("[object Number]"!==$(e)||P&&"object"==typeof e&&P in e)}(t))return X(F(Number(t)));if(function(e){if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}(t))return X(F(x.call(t)));if(function(e){return!("[object Boolean]"!==$(e)||P&&"object"==typeof e&&P in e)}(t))return X(d.call(t));if(function(e){return!("[object String]"!==$(e)||P&&"object"==typeof e&&P in e)}(t))return X(F(String(t)));if(!function(e){return!("[object Date]"!==$(e)||P&&"object"==typeof e&&P in e)}(t)&&!W(t)){var ce=Q(t,F),le=N?N(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",ue=!le&&P&&Object(t)===t&&P in t?y.call($(t),8,-1):fe?"Object":"",he=(le||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ue||fe?"["+A.call(S.call([],ue||[],fe||[]),": ")+"] ":"");return 0===ce.length?he+"{}":R?he+"{"+Z(ce,R)+"}":he+"{ "+A.call(ce,", ")+" }"}return String(t)};var G=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return G.call(e,t)}function $(e){return m.call(e)}function z(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function K(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return K(y.call(e,0,t.maxStringLength),t)+n}return U(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,q),"single",t)}function q(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function X(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function J(e,t,r,n){return e+" ("+t+") {"+(n?Z(r,n):A.call(r,", "))+"}"}function Z(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+A.call(e,","+r)+"\n"+t.prev}function Q(e,t){var r=j(e),n=[];if(r){n.length=e.length;for(var a=0;a<e.length;a++)n[a]=V(e,a)?t(e[a],e):""}var i,o="function"==typeof R?R(e):[];if(k){i={};for(var s=0;s<o.length;s++)i["$"+o[s]]=o[s]}for(var c in e)V(e,c)&&(r&&String(Number(c))===c&&c<e.length||k&&i["$"+c]instanceof Symbol||(E.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof R)for(var l=0;l<o.length;l++)I.call(e,o[l])&&n.push("["+t(o[l])+"]: "+t(e[o[l]],e));return n}},5798:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC1738",a="RFC3986";e.exports={default:a,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n,RFC3986:a}},129:(e,t,r)=>{"use strict";var n=r(8261),a=r(5235),i=r(5798);e.exports={formats:i,parse:a,stringify:n}},5235:(e,t,r)=>{"use strict";var n=r(2769),a=Object.prototype.hasOwnProperty,i=Array.isArray,o={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=s?i.slice(0,s.index):i,f=[];if(l){if(!r.plainObjects&&a.call(Object.prototype,l)&&!r.allowPrototypes)return;f.push(l)}for(var u=0;r.depth>0&&null!==(s=o.exec(i))&&u<r.depth;){if(u+=1,!r.plainObjects&&a.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;f.push(s[1])}return s&&f.push("["+i.slice(s.index)+"]"),function(e,t,r,n){for(var a=n?t:c(t,r),i=e.length-1;i>=0;--i){var o,s=e[i];if("[]"===s&&r.parseArrays)o=[].concat(a);else{o=r.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,f=parseInt(l,10);r.parseArrays||""!==l?!isNaN(f)&&s!==l&&String(f)===l&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(o=[])[f]=a:"__proto__"!==l&&(o[l]=a):o={0:a}}a=o}return a}(f,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?o.charset:e.charset;return{allowDots:void 0===e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var f="string"==typeof e?function(e,t){var r,l={},f=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,u=t.parameterLimit===1/0?void 0:t.parameterLimit,h=f.split(t.delimiter,u),p=-1,d=t.charset;if(t.charsetSentinel)for(r=0;r<h.length;++r)0===h[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[r]?d="utf-8":"utf8=%26%2310003%3B"===h[r]&&(d="iso-8859-1"),p=r,r=h.length);for(r=0;r<h.length;++r)if(r!==p){var m,g,v=h[r],y=v.indexOf("]="),b=-1===y?v.indexOf("="):y+1;-1===b?(m=t.decoder(v,o.decoder,d,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(v.slice(0,b),o.decoder,d,"key"),g=n.maybeMap(c(v.slice(b+1),t),(function(e){return t.decoder(e,o.decoder,d,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===d&&(g=s(g)),v.indexOf("[]=")>-1&&(g=i(g)?[g]:g),a.call(l,m)?l[m]=n.combine(l[m],g):l[m]=g}return l}(e,r):e,u=r.plainObjects?Object.create(null):{},h=Object.keys(f),p=0;p<h.length;++p){var d=h[p],m=l(d,f[d],r,"string"==typeof e);u=n.merge(u,m,r)}return!0===r.allowSparse?u:n.compact(u)}},8261:(e,t,r)=>{"use strict";var n=r(7478),a=r(2769),i=r(5798),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=String.prototype.split,f=Array.prototype.push,u=function(e,t){f.apply(e,c(t)?t:[t])},h=Date.prototype.toISOString,p=i.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:a.encode,encodeValuesOnly:!1,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(e){return h.call(e)},skipNulls:!1,strictNullHandling:!1},m={},g=function e(t,r,i,o,s,f,h,p,g,v,y,b,w,T,E,S){for(var A,O=t,_=S,x=0,R=!1;void 0!==(_=_.get(m))&&!R;){var C=_.get(t);if(x+=1,void 0!==C){if(C===x)throw new RangeError("Cyclic object value");R=!0}void 0===_.get(m)&&(x=0)}if("function"==typeof p?O=p(r,O):O instanceof Date?O=y(O):"comma"===i&&c(O)&&(O=a.maybeMap(O,(function(e){return e instanceof Date?y(e):e}))),null===O){if(s)return h&&!T?h(r,d.encoder,E,"key",b):r;O=""}if("string"==typeof(A=O)||"number"==typeof A||"boolean"==typeof A||"symbol"==typeof A||"bigint"==typeof A||a.isBuffer(O)){if(h){var k=T?r:h(r,d.encoder,E,"key",b);if("comma"===i&&T){for(var P=l.call(String(O),","),I="",N=0;N<P.length;++N)I+=(0===N?"":",")+w(h(P[N],d.encoder,E,"value",b));return[w(k)+(o&&c(O)&&1===P.length?"[]":"")+"="+I]}return[w(k)+"="+w(h(O,d.encoder,E,"value",b))]}return[w(r)+"="+w(String(O))]}var D,L=[];if(void 0===O)return L;if("comma"===i&&c(O))D=[{value:O.length>0?O.join(",")||null:void 0}];else if(c(p))D=p;else{var F=Object.keys(O);D=g?F.sort(g):F}for(var M=o&&c(O)&&1===O.length?r+"[]":r,U=0;U<D.length;++U){var B=D[U],j="object"==typeof B&&void 0!==B.value?B.value:O[B];if(!f||null!==j){var W=c(O)?"function"==typeof i?i(M,B):M:M+(v?"."+B:"["+B+"]");S.set(t,x);var H=n();H.set(m,S),u(L,e(j,W,i,o,s,f,h,p,g,v,y,b,w,T,E,H))}}return L};e.exports=function(e,t){var r,a=e,l=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],a=d.filter;return("function"==typeof e.filter||c(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:a,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof l.filter?a=(0,l.filter)("",a):c(l.filter)&&(r=l.filter);var f,h=[];if("object"!=typeof a||null===a)return"";f=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=s[f];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var m="comma"===p&&t&&t.commaRoundTrip;r||(r=Object.keys(a)),l.sort&&r.sort(l.sort);for(var v=n(),y=0;y<r.length;++y){var b=r[y];l.skipNulls&&null===a[b]||u(h,g(a[b],b,p,m,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,v))}var w=h.join(l.delimiter),T=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?T+="utf8=%26%2310003%3B&":T+="utf8=%E2%9C%93&"),w.length>0?T+w:""}},2769:(e,t,r)=>{"use strict";var n=r(5798),a=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var a=t[n],o=a.obj[a.prop],s=Object.keys(o),c=0;c<s.length;++c){var l=s[c],f=o[l];"object"==typeof f&&null!==f&&-1===r.indexOf(f)&&(t.push({obj:o,prop:l}),r.push(f))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],a=0;a<r.length;++a)void 0!==r[a]&&n.push(r[a]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,a,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",l=0;l<s.length;++l){var f=s.charCodeAt(l);45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===n.RFC1738&&(40===f||41===f)?c+=s.charAt(l):f<128?c+=o[f]:f<2048?c+=o[192|f>>6]+o[128|63&f]:f<55296||f>=57344?c+=o[224|f>>12]+o[128|f>>6&63]+o[128|63&f]:(l+=1,f=65536+((1023&f)<<10|1023&s.charCodeAt(l)),c+=o[240|f>>18]+o[128|f>>12&63]+o[128|f>>6&63]+o[128|63&f])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!a.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return i(t)&&!i(r)&&(o=s(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(a.call(t,i)){var o=t[i];o&&"object"==typeof o&&r&&"object"==typeof r?t[i]=e(o,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var o=r[i];return a.call(t,i)?t[i]=e(t[i],o,n):t[i]=o,t}),o)}}},7478:(e,t,r)=>{"use strict";var n=r(210),a=r(1924),i=r(631),o=n("%TypeError%"),s=n("%WeakMap%",!0),c=n("%Map%",!0),l=a("WeakMap.prototype.get",!0),f=a("WeakMap.prototype.set",!0),u=a("WeakMap.prototype.has",!0),h=a("Map.prototype.get",!0),p=a("Map.prototype.set",!0),d=a("Map.prototype.has",!0),m=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new o("Side channel does not contain "+i(e))},get:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return l(e,n)}else if(c){if(t)return h(t,n)}else if(r)return function(e,t){var r=m(e,t);return r&&r.value}(r,n)},has:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return u(e,n)}else if(c){if(t)return d(t,n)}else if(r)return function(e,t){return!!m(e,t)}(r,n);return!1},set:function(n,a){s&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new s),f(e,n,a)):c?(t||(t=new c),p(t,n,a)):(r||(r={key:{},next:null}),function(e,t,r){var n=m(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,a))}};return n}},4654:()=>{}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{"use strict";const e=JSON.parse('{"u2":{"ja":"Excel出力プラグイン"}}').u2.ja,t="ribbit-kintone-plugin",n=()=>{const r=(()=>{const e=localStorage.getItem(t);if(!e)return{};try{const t=JSON.parse(e);return"object"==typeof t?t:{}}catch(e){return{}}})();r.pluginNames=r.pluginNames||[],r.pluginNames.includes(e)||r.pluginNames.push(e),localStorage.setItem(t,JSON.stringify(r))};var a=Object.defineProperty,i=(e,t,r)=>(((e,t,r)=>{t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);const o=class{constructor(t){i(this,"_pluginId"),i(this,"launch",(t=>{for(const r of t){const{enables:t=(()=>!0),events:n=["app.record.index.show"],action:a,disableMobile:i=!1}=r,o="function"==typeof n?n(this._pluginId):n,s=i?[]:o.map((e=>`mobile.${e}`)),c=r=>{try{return t(r,this._pluginId)?a(r,this._pluginId):r}catch(t){r.error=`プラグイン「${e}」の処理内でエラーが発生しました。`,console.error("エラー",t)}return r};kintone.events.on([...o,...s],c)}})),this._pluginId=t;try{n()}catch(e){}}},s=e=>{var t,r;return e?e.includes("mobile."):null!=(r=null==(t=null==cybozu?void 0:cybozu.data)?void 0:t.IS_MOBILE_DEVICE)?r:!kintone.app.getId()},c=e=>s(e)?kintone.mobile.app:kintone.app,l=()=>c().getId();var f=Object.defineProperty,u=Object.defineProperties,h=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,g=(e,t,r)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,v=(e,t)=>{for(var r in t||(t={}))d.call(t,r)&&g(e,r,t[r]);if(p)for(var r of p(t))m.call(t,r)&&g(e,r,t[r]);return e},y=(e,t)=>u(e,h(t));const b=()=>({allRecords:!0,allFields:!1,union:!0});var w=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),T=Math.abs,E=String.fromCharCode,S=Object.assign;function A(e){return e.trim()}function O(e,t,r){return e.replace(t,r)}function _(e,t){return e.indexOf(t)}function x(e,t){return 0|e.charCodeAt(t)}function R(e,t,r){return e.slice(t,r)}function C(e){return e.length}function k(e){return e.length}function P(e,t){return t.push(e),e}var I=1,N=1,D=0,L=0,F=0,M="";function U(e,t,r,n,a,i,o){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:I,column:N,length:o,return:""}}function B(e,t){return S(U("",null,null,"",null,null,0),e,{length:-e.length},t)}function j(){return F=L>0?x(M,--L):0,N--,10===F&&(N=1,I--),F}function W(){return F=L<D?x(M,L++):0,N++,10===F&&(N=1,I++),F}function H(){return x(M,L)}function G(){return L}function V(e,t){return R(M,e,t)}function z(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function K(e){return I=N=1,D=C(M=e),L=0,[]}function q(e){return M="",e}function X(e){return A(V(L-1,Z(91===e?e+2:40===e?e+1:e)))}function Y(e){for(;(F=H())&&F<33;)W();return z(e)>2||z(F)>3?"":" "}function J(e,t){for(;--t&&W()&&!(F<48||F>102||F>57&&F<65||F>70&&F<97););return V(e,G()+(t<6&&32==H()&&32==W()))}function Z(e){for(;W();)switch(F){case e:return L;case 34:case 39:34!==e&&39!==e&&Z(F);break;case 40:41===e&&Z(e);break;case 92:W()}return L}function Q(e,t){for(;W()&&e+F!==57&&(e+F!==84||47!==H()););return"/*"+V(t,L-1)+"*"+E(47===e?e:W())}function ee(e){for(;!z(H());)W();return V(e,L)}var te="-ms-",re="-moz-",ne="-webkit-",ae="comm",ie="rule",oe="decl",se="@keyframes";function ce(e,t){for(var r="",n=k(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function le(e,t,r,n){switch(e.type){case"@import":case oe:return e.return=e.return||e.value;case ae:return"";case se:return e.return=e.value+"{"+ce(e.children,n)+"}";case ie:e.value=e.props.join(",")}return C(r=ce(e.children,n))?e.return=e.value+"{"+r+"}":""}function fe(e,t){switch(function(e,t){return(((t<<2^x(e,0))<<2^x(e,1))<<2^x(e,2))<<2^x(e,3)}(e,t)){case 5103:return ne+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ne+e+re+e+te+e+e;case 6828:case 4268:return ne+e+te+e+e;case 6165:return ne+e+te+"flex-"+e+e;case 5187:return ne+e+O(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return ne+e+te+"flex-item-"+O(e,/flex-|-self/,"")+e;case 4675:return ne+e+te+"flex-line-pack"+O(e,/align-content|flex-|-self/,"")+e;case 5548:return ne+e+te+O(e,"shrink","negative")+e;case 5292:return ne+e+te+O(e,"basis","preferred-size")+e;case 6060:return ne+"box-"+O(e,"-grow","")+ne+e+te+O(e,"grow","positive")+e;case 4554:return ne+O(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return O(O(O(e,/(zoom-|grab)/,ne+"$1"),/(image-set)/,ne+"$1"),e,"")+e;case 5495:case 3959:return O(e,/(image-set\([^]*)/,ne+"$1$`$1");case 4968:return O(O(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+ne+e+e;case 4095:case 3583:case 4068:case 2532:return O(e,/(.+)-inline(.+)/,ne+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(C(e)-1-t>6)switch(x(e,t+1)){case 109:if(45!==x(e,t+4))break;case 102:return O(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+re+(108==x(e,t+3)?"$3":"$2-$3"))+e;case 115:return~_(e,"stretch")?fe(O(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==x(e,t+1))break;case 6444:switch(x(e,C(e)-3-(~_(e,"!important")&&10))){case 107:return O(e,":",":"+ne)+e;case 101:return O(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ne+(45===x(e,14)?"inline-":"")+"box$3$1"+ne+"$2$3$1"+te+"$2box$3")+e}break;case 5936:switch(x(e,t+11)){case 114:return ne+e+te+O(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ne+e+te+O(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ne+e+te+O(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ne+e+te+e+e}return e}function ue(e){return q(he("",null,null,null,[""],e=K(e),0,[0],e))}function he(e,t,r,n,a,i,o,s,c){for(var l=0,f=0,u=o,h=0,p=0,d=0,m=1,g=1,v=1,y=0,b="",w=a,T=i,S=n,A=b;g;)switch(d=y,y=W()){case 40:if(108!=d&&58==A.charCodeAt(u-1)){-1!=_(A+=O(X(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:A+=X(y);break;case 9:case 10:case 13:case 32:A+=Y(d);break;case 92:A+=J(G()-1,7);continue;case 47:switch(H()){case 42:case 47:P(de(Q(W(),G()),t,r),c);break;default:A+="/"}break;case 123*m:s[l++]=C(A)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+f:p>0&&C(A)-u&&P(p>32?me(A+";",n,r,u-1):me(O(A," ","")+";",n,r,u-2),c);break;case 59:A+=";";default:if(P(S=pe(A,t,r,l,f,a,s,b,w=[],T=[],u),i),123===y)if(0===f)he(A,t,S,S,w,i,u,s,T);else switch(h){case 100:case 109:case 115:he(e,S,S,n&&P(pe(e,S,S,0,0,a,s,b,a,w=[],u),T),a,T,u,s,n?w:T);break;default:he(A,S,S,S,[""],T,0,s,T)}}l=f=p=0,m=v=1,b=A="",u=o;break;case 58:u=1+C(A),p=d;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==j())continue;switch(A+=E(y),y*m){case 38:v=f>0?1:(A+="\f",-1);break;case 44:s[l++]=(C(A)-1)*v,v=1;break;case 64:45===H()&&(A+=X(W())),h=H(),f=u=C(b=A+=ee(G())),y++;break;case 45:45===d&&2==C(A)&&(m=0)}}return i}function pe(e,t,r,n,a,i,o,s,c,l,f){for(var u=a-1,h=0===a?i:[""],p=k(h),d=0,m=0,g=0;d<n;++d)for(var v=0,y=R(e,u+1,u=T(m=o[d])),b=e;v<p;++v)(b=A(m>0?h[v]+" "+y:O(y,/&\f/g,h[v])))&&(c[g++]=b);return U(e,t,r,0===a?ie:s,c,l,f)}function de(e,t,r){return U(e,t,r,ae,E(F),R(e,2,-2),0)}function me(e,t,r,n){return U(e,t,r,oe,R(e,0,n),R(e,n+1,-1),n)}var ge=function(e,t,r){for(var n=0,a=0;n=a,a=H(),38===n&&12===a&&(t[r]=1),!z(a);)W();return V(e,L)},ve=function(e,t){return q(function(e,t){var r=-1,n=44;do{switch(z(n)){case 0:38===n&&12===H()&&(t[r]=1),e[r]+=ge(L-1,t,r);break;case 2:e[r]+=X(n);break;case 4:if(44===n){e[++r]=58===H()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=E(n)}}while(n=W());return e}(K(e),t))},ye=new WeakMap,be=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ye.get(r))&&!n){ye.set(e,!0);for(var a=[],i=ve(t,a),o=r.props,s=0,c=0;s<i.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=a[s]?i[s].replace(/&\f/g,o[l]):o[l]+" "+i[s]}}},we=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Te=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case oe:e.return=fe(e.value,e.length);break;case se:return ce([B(e,{value:O(e.value,"@","@"+ne)})],n);case ie:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ce([B(e,{props:[O(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return ce([B(e,{props:[O(t,/:(plac\w+)/,":-webkit-input-$1")]}),B(e,{props:[O(t,/:(plac\w+)/,":-moz-$1")]}),B(e,{props:[O(t,/:(plac\w+)/,te+"input-$1")]})],n)}return""}))}}];const Ee=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n=e.stylisPlugins||Te;var a,i,o={},s=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)o[t[r]]=!0;s.push(e)}));var c,l,f,u,h=[le,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],p=(l=[be,we].concat(n,h),f=k(l),function(e,t,r,n){for(var a="",i=0;i<f;i++)a+=l[i](e,t,r,n)||"";return a});i=function(e,t,r,n){c=r,ce(ue(e?e+"{"+t.styles+"}":t.styles),p),n&&(d.inserted[t.name]=!0)};var d={key:t,sheet:new w({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:i};return d.sheet.hydrate(s),d};const Se=function(e){for(var t,r=0,n=0,a=e.length;a>=4;++n,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(a){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)};const Ae={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const Oe=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}};var _e=/[A-Z]|^ms/g,xe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Re=function(e){return 45===e.charCodeAt(1)},Ce=function(e){return null!=e&&"boolean"!=typeof e},ke=Oe((function(e){return Re(e)?e:e.replace(_e,"-$&").toLowerCase()})),Pe=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(xe,(function(e,t,r){return Ne={name:t,styles:r,next:Ne},t}))}return 1===Ae[e]||Re(e)||"number"!=typeof t||0===t?t:t+"px"};function Ie(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return Ne={name:r.name,styles:r.styles,next:Ne},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)Ne={name:n.name,styles:n.styles,next:Ne},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=Ie(e,t,r[a])+";";else for(var i in r){var o=r[i];if("object"!=typeof o)null!=t&&void 0!==t[o]?n+=i+"{"+t[o]+"}":Ce(o)&&(n+=ke(i)+":"+Pe(i,o)+";");else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var s=Ie(e,t,o);switch(i){case"animation":case"animationName":n+=ke(i)+":"+s+";";break;default:n+=i+"{"+s+"}"}}else for(var c=0;c<o.length;c++)Ce(o[c])&&(n+=ke(i)+":"+Pe(i,o[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var a=Ne,i=r(e);return Ne=a,Ie(e,t,i)}}if(null==t)return r;var o=t[r];return void 0!==o?o:r}var Ne,De=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Le=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,a="";Ne=void 0;var i=e[0];null==i||void 0===i.raw?(n=!1,a+=Ie(r,t,i)):a+=i[0];for(var o=1;o<e.length;o++)a+=Ie(r,t,e[o]),n&&(a+=i[o]);De.lastIndex=0;for(var s,c="";null!==(s=De.exec(a));)c+="-"+s[1];return{name:Se(a)+c,styles:a,next:Ne}};function Fe(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var Me=function(e,t,r){!function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)}(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+n:"",a,e.sheet,!0);a=a.next}while(void 0!==a)}};function Ue(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Be(e,t,r){var n=[],a=Fe(e,n,r);return n.length<2?r:a+t(n)}var je=function e(t){for(var r="",n=0;n<t.length;n++){var a=t[n];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var o in i="",a)a[o]&&o&&(i&&(i+=" "),i+=o);break;default:i=a}i&&(r&&(r+=" "),r+=i)}}return r};const We=function(e){var t=Ee(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var r=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var a=Le(r,t.registered,void 0);return Me(t,a,!1),t.key+"-"+a.name};return{css:r,cx:function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return Be(t.registered,r,je(n))},injectGlobal:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var a=Le(r,t.registered);Ue(t,a)},keyframes:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var a=Le(r,t.registered),i="animation-"+a.name;return Ue(t,{name:a.name,styles:"@keyframes "+i+"{"+a.styles+"}"}),i},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Fe.bind(null,t.registered),merge:Be.bind(null,t.registered,r)}};var He=We({key:"css"}),Ge=(He.flush,He.hydrate,He.cx,He.merge,He.getRegisteredStyles,He.injectGlobal,He.keyframes,He.css);He.sheet,He.cache;const Ve=()=>'\n <div class="local-bias_excel_button-container">\n <svg viewBox="0 0 512 512">\n <g>\n <polygon\n points="388.032,45.654 388.032,83.077 474.573,83.077 474.573,428.961 388.032,428.961 388.032,466.388 512,466.388 512,45.654"\n ></polygon>\n <rect x="388.032" y="120.5" width="49.118" height="65.398"></rect>\n <rect x="388.032" y="223.321" width="49.118" height="65.397"></rect>\n <rect x="388.032" y="326.141" width="49.118" height="65.397"></rect>\n <path\n d="M365.768,6.654V6.502L0,47.382V464.61l365.768,40.887v-39.11v-37.427v-37.423v-65.397v-37.423v-65.397v-37.423\n V120.5V83.077V45.654V10.511l0.015-3.857H365.768z M166.588,213.232l0.042-0.069l0.092,0.149l30.311-51.083l0.982-1.637\n l36.441-1.686l12.022-0.575l6.45-0.225l-16.835,27.792l-39.06,64.369l-3.742,6.175l3.742,6.13l38.733,63.57l10.914,17.938\n l5.917,9.891l-18.141-0.838l-19.598-0.906l-17.771-0.967l-0.054-0.091l-30.311-51.593l-7.112,11.646l-22.781,37.374l-33.647-1.526\n l-15.707-0.788l53.846-89.838l-36.913-61.571l-17.41-29.185l49.084-2.242l23.527,38.314l4.809,7.812L166.588,213.232z"\n ></path>\n </g>\n </svg>\n <div>\n <div></div>\n <div></div>\n </div>\n </div>\n',$e=()=>Ge`
display: inline-block;
width: 48px;
height: 48px;
min-width: 48px;
padding: 0;
margin-right: 8px;
box-sizing: border-box;
border: 1px solid #e3e7e8;
background-color: #f7f9fa;
:hover > div > svg {
fill: #3495da;
}
> div {
display: flex;
justify-content: center;
align-items: center;
transition: all 0.4s ease;
> svg {
display: block;
width: 30px;
height: 30px;
fill: #a8a8a8;
}
/* ローディングアニメーション */
> div {
display: none;
}
}
&[disabled] > div {
> svg {
display: none;
}
> div {
display: block;
width: 30px;
height: 30px;
position: relative;
margin: 0 auto;
> div {
width: 100%;
height: 100%;
border-radius: 50%;
background-color: #3498dbaa;
opacity: 0.6;
position: absolute;
top: 0;
left: 0;
animation: local-bias_sk-bounce 2s infinite ease-in-out;
:last-of-type {
animation-delay: -1s;
}
}
}
}
@keyframes local-bias_sk-bounce {
0%,
100% {
transform: scale(0);
}
50% {
transform: scale(1);
}
}
`;var ze={version:"0.18.5"},Ke=1200,qe=1252,Xe=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Ye={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},Je=function(e){-1!=Xe.indexOf(e)&&(qe=Ye[0]=e)};var Ze=function(e){Ke=e,Je(e)};function Qe(){Ze(1200),Je(1252)}function et(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 tt,rt=function(e){return String.fromCharCode(e)},nt=function(e){return String.fromCharCode(e)};var at="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function it(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+=at.charAt(i)+at.charAt(o)+at.charAt(s)+at.charAt(c);return t}function ot(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=at.indexOf(e.charAt(c++))<<2|(i=at.indexOf(e.charAt(c++)))>>4,t+=String.fromCharCode(r),n=(15&i)<<4|(o=at.indexOf(e.charAt(c++)))>>2,64!==o&&(t+=String.fromCharCode(n)),a=(3&o)<<6|(s=at.indexOf(e.charAt(c++))),64!==s&&(t+=String.fromCharCode(a));return t}var st=function(){return"undefined"!=typeof Buffer&&"undefined"!=typeof process&&void 0!==process.versions&&!!process.versions.node}(),ct=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 lt(e){return st?Buffer.alloc?Buffer.alloc(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function ft(e){return st?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var ut=function(e){return st?ct(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function ht(e){if("undefined"==typeof ArrayBuffer)return ut(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=255&e.charCodeAt(n);return t}function pt(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("")}var dt=st?function(e){return Buffer.concat(e.map((function(e){return Buffer.isBuffer(e)?e:ct(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)})))};var mt=/\u0000/g,gt=/[\u0001-\u0006]/g;function vt(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function yt(e,t){var r=""+e;return r.length>=t?r:kr("0",t-r.length)+r}function bt(e,t){var r=""+e;return r.length>=t?r:kr(" ",t-r.length)+r}function wt(e,t){var r=""+e;return r.length>=t?r:r+kr(" ",t-r.length)}var Tt=Math.pow(2,32);function Et(e,t){return e>Tt||e<-Tt?function(e,t){var r=""+Math.round(e);return r.length>=t?r:kr("0",t-r.length)+r}(e,t):function(e,t){var r=""+e;return r.length>=t?r:kr("0",t-r.length)+r}(Math.round(e),t)}function St(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 At=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],Ot=[["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"]];var _t={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"秒 "'},xt={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},Rt={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 Ct(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 kt(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();e<60&&(r=(r+6)%7);return 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 Pt=new Date(1899,11,31,0,0,0),It=Pt.getTime(),Nt=new Date(1900,2,1,0,0,0);function Dt(e,t){var r=e.getTime();return t?r-=1262304e5:e>=Nt&&(r+=864e5),(r-(It+6e4*(e.getTimezoneOffset()-Pt.getTimezoneOffset())))/864e5}function Lt(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Ft(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=Lt(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=Lt(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}(e),Lt(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 Mt(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):Ft(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return ar(14,Dt(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function Ut(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 Ot[r.m-1][1];case 5:return Ot[r.m-1][0];default:return Ot[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:a=r.d,l=t.length;break;case 3:return At[r.q][0];default:return At[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=yt(o,2+n),"ss"===t?i.substr(0,2):"."+i.substr(2,t.length-1))):yt(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?yt(a,l):""}function Bt(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 jt=/%/g;function Wt(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"-"+Wt(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 Ht=/# (\?+)( ?)\/( ?)(\d+)/;var Gt=/^#*0*\.([0#]+)/,Vt=/\).*[0#]/,$t=/\(###\) ###\\?-####/;function zt(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 Kt(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function qt(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 Xt(e,t,r){if(40===e.charCodeAt(0)&&!t.match(Vt)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Xt("n",n,r):"("+Xt("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 Zt(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(jt,""),a=t.length-n.length;return Zt(e,n,r*Math.pow(10,2*a))+kr("%",a)}(e,t,r);if(-1!==t.indexOf("E"))return Wt(t,r);if(36===t.charCodeAt(0))return"$"+Xt(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+Et(c,t.length);if(t.match(/^[#?]+$/))return"0"===(a=Et(r,0))&&(a=""),a.length>t.length?a:zt(t.substr(0,t.length-a.length))+a;if(i=t.match(Ht))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?kr(" ",e[1].length+1+e[4].length):bt(o,e[1].length)+e[2]+"/"+e[3]+yt(s,e[4].length))}(i,c,l);if(t.match(/^#+0+$/))return l+Et(c,t.length-t.indexOf("0"));if(i=t.match(Gt))return a=Kt(r,i[1].length).replace(/^([^\.]+)$/,"$1."+zt(i[1])).replace(/\.$/,"."+zt(i[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+kr("0",zt(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+Kt(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+Bt(Et(c,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Xt(e,t,-r):Bt(""+(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)))+"."+yt(qt(r,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return Xt(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=vt(Xt(e,t.replace(/[\\-]/g,""),r)),o=0,vt(vt(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return o<a.length?a.charAt(o++):"0"===e?"0":""})));if(t.match($t))return"("+(a=Xt(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=Ct(c,Math.pow(10,o)-1,!1),a=""+l," "==(f=Zt("n",i[1],s[1])).charAt(f.length-1)&&(f=f.substr(0,f.length-1)+"0"),a+=f+i[2]+"/"+i[3],(f=wt(s[2],o)).length<i[4].length&&(f=zt(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=Ct(c,Math.pow(10,o)-1,!0))[0]||(s[1]?"":"0"))+" "+(s[1]?bt(s[1],o)+i[2]+"/"+i[3]+wt(s[2],o):kr(" ",2*o+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return a=Et(r,0),t.length<=a.length?a:zt(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 zt(t.substr(0,u)+a+t.substr(t.length-h))}if(i=t.match(/^00,000\.([#0]*0)$/))return o=qt(r,i[1].length),r<0?"-"+Xt(e,t,-r):Bt(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?yt(0,3-e.length):"")+e}))+"."+yt(o,i[1].length);switch(t){case"###,##0.00":return Xt(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var p=Bt(Et(c,0));return"0"!==p?l+p:"";case"###,###.00":return Xt(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return Xt(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function Yt(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"-"+Yt(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 Jt(e,t,r){if(40===e.charCodeAt(0)&&!t.match(Vt)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Jt("n",n,r):"("+Jt("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 Zt(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(jt,""),a=t.length-n.length;return Zt(e,n,r*Math.pow(10,2*a))+kr("%",a)}(e,t,r);if(-1!==t.indexOf("E"))return Yt(t,r);if(36===t.charCodeAt(0))return"$"+Jt(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+yt(c,t.length);if(t.match(/^[#?]+$/))return a=""+r,0===r&&(a=""),a.length>t.length?a:zt(t.substr(0,t.length-a.length))+a;if(i=t.match(Ht))return function(e,t,r){return r+(0===t?"":""+t)+kr(" ",e[1].length+2+e[4].length)}(i,c,l);if(t.match(/^#+0+$/))return l+yt(c,t.length-t.indexOf("0"));if(i=t.match(Gt))return a=(a=(""+r).replace(/^([^\.]+)$/,"$1."+zt(i[1])).replace(/\.$/,"."+zt(i[1]))).replace(/\.(\d*)$/,(function(e,t){return"."+t+kr("0",zt(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+Bt(""+c);if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Jt(e,t,-r):Bt(""+r)+"."+kr("0",i[1].length);if(i=t.match(/^#,#*,#0/))return Jt(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=vt(Jt(e,t.replace(/[\\-]/g,""),r)),o=0,vt(vt(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return o<a.length?a.charAt(o++):"0"===e?"0":""})));if(t.match($t))return"("+(a=Jt(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=Ct(c,Math.pow(10,o)-1,!1),a=""+l," "==(f=Zt("n",i[1],s[1])).charAt(f.length-1)&&(f=f.substr(0,f.length-1)+"0"),a+=f+i[2]+"/"+i[3],(f=wt(s[2],o)).length<i[4].length&&(f=zt(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=Ct(c,Math.pow(10,o)-1,!0))[0]||(s[1]?"":"0"))+" "+(s[1]?bt(s[1],o)+i[2]+"/"+i[3]+wt(s[2],o):kr(" ",2*o+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return a=""+r,t.length<=a.length?a:zt(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 zt(t.substr(0,u)+a+t.substr(t.length-h))}if(i=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+Jt(e,t,-r):Bt(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?yt(0,3-e.length):"")+e}))+"."+yt(0,i[1].length);switch(t){case"###,###":case"##,###":case"#,###":var p=Bt(""+c);return"0"!==p?l+p:"";default:if(t.match(/\.[0#?]*$/))return Jt(e,t.slice(0,t.lastIndexOf(".")),r)+zt(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function Zt(e,t,r){return(0|r)===r?Jt(e,t,r):Xt(e,t,r)}var Qt=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function er(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":St(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(Qt))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 tr=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function rr(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 nr(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(tr),s=r[1].match(tr);return rr(t,o)?[n,r[0]]:rr(t,s)?[n,r[1]]:[n,r[null!=o&&null!=s?2:1]]}return[n,i]}function ar(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:_t)[e])&&(n=r.table&&r.table[xt[e]]||_t[xt[e]]),null==n&&(n=Rt[e]||"General")}if(St(n,0))return Mt(t,r);t instanceof Date&&(t=Dt(t,r.date1904));var a=nr(n,t);if(St(a[1]))return Mt(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(!St(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 p=e.charAt(++l),d="("===p||")"===p?p:"t";s[s.length]={t:d,v:p},++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=kt(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=kt(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 m={t:f,v:f};if(null==a&&(a=kt(t,r)),"A/P"===e.substr(l,3).toUpperCase()?(null!=a&&(m.v=a.H>=12?"P":"A"),m.t="T",h="h",l+=3):"AM/PM"===e.substr(l,5).toUpperCase()?(null!=a&&(m.v=a.H>=12?"PM":"AM"),m.t="T",l+=5,h="h"):"上午/下午"===e.substr(l,5).toUpperCase()?(null!=a&&(m.v=a.H>=12?"下午":"上午"),m.t="T",l+=5,h="h"):(m.t="t",++l),null==a&&"T"===m.t)return"";s[s.length]=m,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(Qt)){if(null==a&&null==(a=kt(t,r)))return"";s[s.length]={t:"Z",v:c.toLowerCase()},u=c.charAt(1)}else c.indexOf("$")>-1&&(c=(c.match(/\$([^-\[\]]*)/)||[])[1]||"$",er(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 g,v=0,y=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",v<1&&(v=1);break;case"s":(g=s[l].v.match(/\.0+$/))&&(y=Math.max(y,g[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":u=s[l].t;break;case"m":"s"===u&&(s[l].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&s[l].v.match(/[Hh]/)&&(v=1),v<2&&s[l].v.match(/[Mm]/)&&(v=2),v<3&&s[l].v.match(/[Ss]/)&&(v=3)}switch(v){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 b,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=Ut(s[l].t.charCodeAt(0),s[l].v,a,y),s[l].t="t";break;case"n":case"?":for(b=l+1;null!=s[b]&&("?"===(f=s[b].t)||"D"===f||(" "===f||"t"===f)&&null!=s[b+1]&&("?"===s[b+1].t||"t"===s[b+1].t&&"/"===s[b+1].v)||"("===s[l].t&&(" "===f||"n"===f||")"===f)||"t"===f&&("/"===s[b].v||" "===s[b].v&&null!=s[b+1]&&"?"==s[b+1].t));)s[l].v+=s[b].v,s[b]={v:"",t:";"},++b;w+=s[l].v,l=b-1;break;case"G":s[l].t="t",s[l].v=Mt(t,r)}var T,E,S="";if(w.length>0){40==w.charCodeAt(0)?(T=t<0&&45===w.charCodeAt(0)?-t:t,E=Zt("n",w,T)):(E=Zt("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)),b=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 O=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)&&(b>=s[l].v.length-1?(b-=s[l].v.length,s[l].v=E.substr(b+1,s[l].v.length)):b<0?s[l].v="":(s[l].v=E.substr(0,b+1),b=-1),s[l].t="t",O=l);b>=0&&O<s.length&&(s[O].v=E.substr(0,b+1)+s[O].v)}else if(A!==s.length&&-1===E.indexOf("E")){for(b=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,S=s[l].v.substr(i+1);i>=0;--i)b>=0&&("0"===s[l].v.charAt(i)||"#"===s[l].v.charAt(i))&&(S=E.charAt(b--)+S);s[l].v=S,s[l].t="t",O=l}for(b>=0&&O<s.length&&(s[O].v=E.substr(0,b+1)+s[O].v),b=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,S=s[l].v.substr(0,i);i<s[l].v.length;++i)b<E.length&&(S+=E.charAt(b++));s[l].v=S,s[l].t="t",O=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=Zt(s[l].t,s[l].v,T),s[l].t="t");var _="";for(l=0;l!==s.length;++l)null!=s[l]&&(_+=s[l].v);return _}(a[1],t,r,a[0])}function ir(e,t){if("number"!=typeof t){t=+t||-1;for(var r=0;r<392;++r)if(null!=_t[r]){if(_t[r]==e){t=r;break}}else t<0&&(t=r);t<0&&(t=391)}return _t[t]=e,t}function or(e){for(var t=0;392!=t;++t)void 0!==e[t]&&ir(e[t],t)}function sr(){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"秒 "',_t=e}var cr=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;var lr=function(){var e={};e.version="1.2.0";var 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}();var 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],p=r[10],d=r[11],m=r[12],g=r[13],v=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 y=-1^r,b=e.length-15,w=0;w<b;)y=v[e[w++]^255&y]^g[e[w++]^y>>8&255]^m[e[w++]^y>>16&255]^d[e[w++]^y>>>24]^p[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(b+=15;w<b;)y=y>>>8^t[255&(y^e[w++])];return~y},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}(),fr=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){aa(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={};if(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 ae(e,t);if(109==(32|e[0])&&105==(32|e[1]))return function(e,t){if("mime-version:"!=E(e.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var r=t&&t.root||"",n=(st&&Buffer.isBuffer(e)?e.toString("binary"):E(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++&&fe(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,p=512,d=[],m=e.slice(0,512);aa(m,0);var g=function(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(y,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}(m);switch(r=g[0]){case 3:p=512;break;case 4:p=4096;break;case 0:if(0==g[1])return ae(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+r)}512!==p&&aa(m=e.slice(0,p),28);var b=e.slice(0,p);!function(e,t){var r=9;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: ")}(m,r);var w=m.read_shift(4,"i");if(3===r&&0!==w)throw new Error("# Directory Sectors: Expected 0 saw "+w);m.l+=4,i=m.read_shift(4,"i"),m.l+=4,m.chk("00100000","Mini Stream Cutoff Size: "),o=m.read_shift(4,"i"),n=m.read_shift(4,"i"),s=m.read_shift(4,"i"),a=m.read_shift(4,"i");for(var T=-1,S=0;S<109&&!((T=m.read_shift(4,"i"))<0);++S)d[S]=T;var A=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,p);l(s,a,A,p,d);var O=function(e,t,r,n){var a=e.length,i=[],o=[],s=[],c=[],l=n-1,f=0,u=0,h=0,p=0;for(f=0;f<a;++f)if(s=[],(h=f+t)>=a&&(h-=a),!o[h]){c=[];var d=[];for(u=h;u>=0;){d[u]=!0,o[u]=!0,s[s.length]=u,c.push(e[u]);var m=r[Math.floor(4*u/n)];if(n<4+(p=4*u&l))throw new Error("FAT boundary crossed: "+u+" 4 "+n);if(!e[m])break;if(d[u=Zn(e[m],p)])break}i[h]={nodes:s,data:xn([c])}}return i}(A,i,d,p);O[i].name="!Directory",n>0&&o!==v&&(O[o].name="!MiniFAT"),O[d[0]].name="!FAT",O.fat_addrs=d,O.ssz=p;var _=[],x=[],R=[];!function(e,t,r,n,a,i,o,s){for(var l,h=0,p=n.length?2:0,d=t[e].data,m=0,g=0;m<d.length;m+=128){var y=d.slice(m,m+128);aa(y,64),g=y.read_shift(2),l=Cn(y,0,g-p),n.push(l);var b={name:l,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};0!==y.read_shift(2)+y.read_shift(2)+y.read_shift(2)+y.read_shift(2)&&(b.ct=u(y,y.l-8)),0!==y.read_shift(2)+y.read_shift(2)+y.read_shift(2)+y.read_shift(2)&&(b.mt=u(y,y.l-8)),b.start=y.read_shift(4,"i"),b.size=y.read_shift(4,"i"),b.size<0&&b.start<0&&(b.size=b.type=0,b.start=v,b.name=""),5===b.type?(h=b.start,a>0&&h!==v&&(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!==v&&b.start!==v&&t[h]&&(b.content=c(b,t[h].data,(t[s]||{}).data))),b.content&&aa(b.content,0),i[l]=b,o.push(b)}}(i,O,A,_,n,{},x,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]+="/")}(x,R,_),_.shift();var C={FileIndex:x,FullPaths:R};return t&&t.raw&&(C.raw={header:b,sectors:A}),C}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*g,o*g+g)),a-=g,o=Zn(r,4*o);return 0===i.length?oa(0):dt(i).slice(0,e.size)}function l(e,t,r,n,a){var i=v;if(e===v){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=Zn(o,4*c))!==v;++c)a.push(i);l(Zn(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=Zn(e[f],l)}return{nodes:i,data:xn([o])}}function u(e,t){return new Date(1e3*(Jn(e,t+4)/1e7*Math.pow(2,32)+Jn(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(fr.find(e,"/"+t))return;var r=oa(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),p(e)}(e)}function p(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 p=r(u[o][0]);(i=f[p])||(u.push([p,{name:n(p).replace("/",""),type:1,clsid:w,ct:c,mt:c,content:null}]),f[p]=!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 d=e.FileIndex[o],m=e.FullPaths[o];if(d.name=n(m).replace("/",""),d.L=d.R=d.C=-(d.color=1),d.size=d.content?d.content.length:0,d.start=0,d.clsid=d.clsid||w,0===o)d.C=u.length>1?1:-1,d.size=0,d.type=5;else if("/"==m.slice(-1)){for(l=o+1;l<u.length&&r(e.FullPaths[l])!=m;++l);for(d.C=l>=u.length?-1:l,l=o+1;l<u.length&&r(e.FullPaths[l])!=r(m);++l);d.R=l>=u.length?-1:l,d.type=1}else r(e.FullPaths[o+1]||"")==r(m)&&(d.R=o+1),d.type=2}}}function d(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=st&&Buffer.isBuffer(l)?l.toString("binary"):E(l),u=0,h=Math.min(1024,f.length),p=0,d=0;d<=h;++d)(p=f.charCodeAt(d))>=32&&p<128&&++u;var m=u>=4*h/5;a.push(n),a.push("Content-Location: "+(r.root||"file:///C:/SheetJS/")+o),a.push("Content-Transfer-Encoding: "+(m?"quoted-printable":"base64")),a.push("Content-Type: "+se(s,o)),a.push(""),a.push(m?le(f):ce(f))}return a.push(n+"--\r\n"),a.join("\r\n")}(e,r);if(p(e),"zip"===r.fileType)return function(e,t){var r=t||{},n=[],i=[],o=oa(1),s=r.compression?8:0,c=0;0;var l=0,f=0,u=0,h=0,p=e.FullPaths[0],d=p,m=e.FileIndex[0],g=[],v=0;for(l=1;l<e.FullPaths.length;++l)if(d=e.FullPaths[l].slice(p.length),(m=e.FileIndex[l]).size&&m.content&&"Sh33tJ5"!=d){var y=u,b=oa(d.length);for(f=0;f<d.length;++f)b.write_shift(1,127&d.charCodeAt(f));b=b.slice(0,b.l),g[h]=lr.buf(m.content,0);var w=m.content;8==s&&(w=S(w)),(o=oa(30)).write_shift(4,67324752),o.write_shift(2,20),o.write_shift(2,c),o.write_shift(2,s),m.mt?a(o,m.mt):o.write_shift(4,0),o.write_shift(-4,8&c?0:g[h]),o.write_shift(4,8&c?0:w.length),o.write_shift(4,8&c?0:m.content.length),o.write_shift(2,b.length),o.write_shift(2,0),u+=o.length,n.push(o),u+=b.length,n.push(b),u+=w.length,n.push(w),8&c&&((o=oa(12)).write_shift(-4,g[h]),o.write_shift(4,w.length),o.write_shift(4,m.content.length),u+=o.l,n.push(o)),(o=oa(46)).write_shift(4,33639248),o.write_shift(2,0),o.write_shift(2,20),o.write_shift(2,c),o.write_shift(2,s),o.write_shift(4,0),o.write_shift(-4,g[h]),o.write_shift(4,w.length),o.write_shift(4,m.content.length),o.write_shift(2,b.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,y),v+=o.l,i.push(o),v+=b.length,i.push(b),++h}return(o=oa(22)).write_shift(4,101010256),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,h),o.write_shift(2,h),o.write_shift(4,v),o.write_shift(4,u),o.write_shift(2,0),dt([dt(n),dt(i),o])}(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=oa(n[7]<<9),o=0,s=0;for(o=0;o<8;++o)i.write_shift(1,b[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:v),i.write_shift(4,n[3]),i.write_shift(-4,n[1]?n[0]-1:v),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?v: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,v))};for(s=o=0,s+=n[1];o<s;++o)i.write_shift(-4,T.DIFSECT);for(s+=n[2];o<s;++o)i.write_shift(-4,T.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,T.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,T.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:v);var d=0===o&&r.root||u.name;if(f=2*(d.length+1),i.write_shift(64,d,"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,st&&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(st&&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(st)i.l=i.length;else for(;i.l<i.length;)i.write_shift(1,0);return i}t.version="1.2.1";var m,g=64,v=-2,y="d0cf11e0a1b11ae1",b=[208,207,17,224,161,177,26,225],w="00000000000000000000000000000000",T={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:v,FREESECT:-1,HEADER_SIGNATURE:y,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:w,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function E(e){for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function S(e){return m?m.deflateRawSync(e):X(e)}var A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],O=[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],_=[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];for(var x,R,C="undefined"!=typeof Uint8Array,k=C?new Uint8Array(256):[],P=0;P<256;++P)k[P]=(R=void 0,255&((R=139536&((x=P)<<1|x<<11)|558144&(x<<5|x<<15))>>16|R>>8|R));function I(e,t){var r=k[255&e];return t<=8?r>>>8-t:(r=r<<8|k[e>>8&255],t<=16?r>>>16-t:(r=r<<8|k[e>>16&255])>>>24-t)}function N(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=6?0:e[n+1]<<8))>>>r&3}function D(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=5?0:e[n+1]<<8))>>>r&7}function L(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=3?0:e[n+1]<<8))>>>r&31}function F(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=1?0:e[n+1]<<8))>>>r&127}function M(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 U(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 B(e,t,r){return r=(1&r)<<(7&t),e[t>>>3]|=r,t+1}function j(e,t,r){var n=t>>>3;return r<<=7&t,e[n]|=255&r,r>>>=8,e[n+1]=r,t+8}function W(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 H(e,t){var r=e.length,n=2*r>t?2*r:t+5,a=0;if(r>=t)return e;if(st){var i=ft(n);if(e.copy)e.copy(i);else for(;a<e.length;++a)i[a]=e[a];return i}if(C){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 G(e){for(var t=new Array(e),r=0;r<e;++r)t[r]=0;return t}function V(e,t,r){var n=1,a=0,i=0,o=0,s=0,c=e.length,l=C?new Uint16Array(32):G(32);for(i=0;i<32;++i)l[i]=0;for(i=c;i<r;++i)e[i]=0;c=e.length;var f=C?new Uint16Array(c):G(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=I(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 $=C?new Uint16Array(512):G(512),z=C?new Uint16Array(32):G(32);if(!C){for(var K=0;K<512;++K)$[K]=0;for(K=0;K<32;++K)z[K]=0}!function(){for(var e=[],t=0;t<32;t++)e.push(5);V(e,z,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);V(r,$,288)}();var q=function(){for(var e=C?new Uint8Array(32768):[],t=0,r=0;t<_.length-1;++t)for(;r<_[t+1];++r)e[r]=t;for(;r<32768;++r)e[r]=29;var n=C?new Uint8Array(259):[];for(t=0,r=0;t<O.length-1;++t)for(;r<O[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=C?new Uint16Array(32768):[];i<t.length;){var s=Math.min(65535,t.length-i);if(s<10){for(7&(a=U(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=U(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=j(r,a,k[l+1]>>1)-1:(j(r,a,3),j(r,a+=5,k[l-23]>>5),a+=3);var h=l<8?0:l-4>>2;h>0&&(W(r,a,u-O[l]),a+=h),l=e[i-f],a=j(r,a,k[l]>>3),a-=3;var p=l<4?0:l-2>>1;p>0&&(W(r,a,i-f-_[l]),a+=p);for(var d=0;d<u;++d)o[c]=32767&i,c=32767&(c<<5^t[i]),++i;s-=u-1}else l<=143?l+=48:a=B(r,a,1),a=j(r,a,k[l]),o[c]=32767&i,++i}a=j(r,a,0)-1}}return r.l=(a+7)/8|0,r.l}(t,r)}}();function X(e){var t=oa(50+Math.floor(1.1*e.length)),r=q(e,t);return t.slice(0,r)}var Y=C?new Uint16Array(32768):G(32768),J=C?new Uint16Array(32768):G(32768),Z=C?new Uint16Array(128):G(128),Q=1,ee=1;function te(e,t){var r=L(e,t)+257,n=L(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=C?new Uint8Array(19):G(19),s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],c=1,l=C?new Uint8Array(8):G(8),f=C?new Uint8Array(8):G(8),u=o.length,h=0;h<a;++h)o[A[h]]=i=D(e,t),c<i&&(c=i),l[i]++,t+=3;var p=0;for(l[0]=0,h=1;h<=c;++h)f[h]=p=p+l[h-1]<<1;for(h=0;h<u;++h)0!=(p=o[h])&&(s[h]=f[p]++);var d=0;for(h=0;h<u;++h)if(0!=(d=o[h])){p=k[s[h]]>>8-d;for(var m=(1<<7-d)-1;m>=0;--m)Z[p|m<<d]=7&d|h<<3}var g=[];for(c=1;g.length<r+n;)switch(t+=7&(p=Z[F(e,t)]),p>>>=3){case 16:for(i=3+N(e,t),t+=2,p=g[g.length-1];i-- >0;)g.push(p);break;case 17:for(i=3+D(e,t),t+=3;i-- >0;)g.push(0);break;case 18:for(i=11+F(e,t),t+=7;i-- >0;)g.push(0);break;default:g.push(p),c<p&&(c=p)}var v=g.slice(0,r),y=g.slice(r);for(h=r;h<286;++h)v[h]=0;for(h=n;h<30;++h)y[h]=0;return Q=V(v,Y,286),ee=V(y,J,30),t}function re(e,t){var r=function(e,t){if(3==e[0]&&!(3&e[1]))return[lt(t),2];for(var r=0,n=0,a=ft(t||1<<18),i=0,o=a.length>>>0,s=0,c=0;0==(1&n);)if(n=D(e,r),r+=3,n>>>1!=0)for(n>>1==1?(s=9,c=5):(r=te(e,r),s=Q,c=ee);;){!t&&o<i+32767&&(o=(a=H(a,i+32767)).length);var l=M(e,r,s),f=n>>>1==1?$[l]:Y[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+O[f];u>0&&(h+=M(e,r,u),r+=u),l=M(e,r,c),r+=15&(f=n>>>1==1?z[l]:J[l]);var p=(f>>>=4)<4?0:f-2>>1,d=_[f];for(p>0&&(d+=M(e,r,p),r+=p),!t&&o<h&&(o=(a=H(a,h+100)).length);i<h;)a[i]=a[i-d],++i}}else{7&r&&(r+=8-(7&r));var m=e[r>>>3]|e[1+(r>>>3)]<<8;if(r+=32,m>0)for(!t&&o<i+m&&(o=(a=H(a,i+m)).length);m-- >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 ne(e,t){if(!e)throw new Error(t);"undefined"!=typeof console&&console.error(t)}function ae(e,t){var r=e;aa(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),p=r.read_shift(2);r.l+=8;var d=r.read_shift(4),m=i(r.slice(r.l+f,r.l+f+u));r.l+=f+u+p;var g=r.l;r.l=d+4,ie(r,c,l,n,m),r.l=g}return n}function ie(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),p="",d=0;d<u;++d)p+=String.fromCharCode(e[e.l++]);if(h){var g=i(e.slice(e.l,e.l+h));(g[21589]||{}).mt&&(c=g[21589].mt),((a||{})[21589]||{}).mt&&(c=a[21589].mt)}e.l+=h;var v=e.slice(e.l,e.l+l);switch(s){case 8:v=function(e,t){if(!m)return re(e,t);var r=new(0,m.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 y=!1;8&o&&(134695760==e.read_shift(4)&&(e.read_shift(4),y=!0),l=e.read_shift(4),f=e.read_shift(4)),l!=t&&ne(y,"Bad compressed size: "+t+" != "+l),f!=r&&ne(y,"Bad uncompressed size: "+r+" != "+f),ue(n,p,v,{unsafe:!0,mt:c})}var oe={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 se(e,t){if(e.ctype)return e.ctype;var r=e.name||"",n=r.match(/\.([^\.]+)$/);return n&&oe[n[1]]||t&&(n=(r=t).match(/[\.\\]([^\.\\])+$/))&&oe[n[1]]?oe[n[1]]:"application/octet-stream"}function ce(e){for(var t=it(e),r=[],n=0;n<t.length;n+=76)r.push(t.slice(n,n+76));return r.join("\r\n")+"\r\n"}function le(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 fe(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=ut(ot(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 ut(t.join("\r\n"))}(t.slice(s));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+i)}var f=ue(e,a.slice(r.length),n,{unsafe:!0});o&&(f.ctype=o)}function ue(e,t,r,a){var i=a&&a.unsafe;i||h(e);var o=!i&&fr.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||fr.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(gt);for(i=i.replace(mt,""),s&&(i=i.replace(gt,"!")),o=0;o<r.length;++o){if((s?r[o].replace(gt,"!"):r[o]).replace(mt,"")==i)return e.FileIndex[o];if((s?n[o].replace(gt,"!"):n[o]).replace(mt,"")==i)return e.FileIndex[o]}return null},t.read=function(t,r){var n=r&&r.type;switch(n||st&&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(ut(ot(t)),r);case"binary":return s(ut(t),r)}return s(t,r)},t.parse=s,t.write=function(t,r){var n=d(t,r);switch(r&&r.type||"buffer"){case"file":return o(),e.writeFileSync(r.filename,n),n;case"binary":return"string"==typeof n?n:E(n);case"base64":return it("string"==typeof n?n:E(n));case"buffer":if(st)return Buffer.isBuffer(n)?n:ct(n);case"array":return"string"==typeof n?ut(n):n}return n},t.writeFile=function(t,r,n){o();var a=d(t,n);e.writeFileSync(r,a)},t.utils={cfb_new:function(e){var t={};return h(t,e),t},cfb_add:ue,cfb_del:function(e,t){h(e);var r=fr.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=fr.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){p(e,!0)},ReadShift:ea,CheckField:na,prep_blob:aa,bconcat:dt,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:X,_inflateRaw:re,consts:T},t}();let ur;function hr(e){return"string"==typeof e?ht(e):Array.isArray(e)?function(e){if("undefined"==typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(e)}(e):e}function pr(e,t,r){if(void 0!==ur&&ur.writeFileSync)return r?ur.writeFileSync(e,t,r):ur.writeFileSync(e,t);if("undefined"!=typeof Deno){if(r&&"string"==typeof t)switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=ht(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n="utf8"==r?Jr(t):t;if("undefined"!=typeof IE_SaveFile)return IE_SaveFile(n,e);if("undefined"!=typeof Blob){var a=new Blob([hr(n)],{type:"application/octet-stream"});if("undefined"!=typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(a,e);if("undefined"!=typeof saveAs)return saveAs(a,e);if("undefined"!=typeof URL&&"undefined"!=typeof document&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(a);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(i)}),6e4),chrome.downloads.download({url:i,filename:e,saveAs:!0});var o=document.createElement("a");if(null!=o.download)return o.download=e,o.href=i,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(i)}),6e4),i}}if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var s=File(e);return s.open("w"),s.encoding="binary",Array.isArray(t)&&(t=pt(t)),s.write(t),s.close(),t}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error("cannot save file "+e)}function dr(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 mr(e,t){for(var r=[],n=dr(e),a=0;a!==n.length;++a)null==r[e[n[a]][t]]&&(r[e[n[a]][t]]=n[a]);return r}function gr(e){for(var t=[],r=dr(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function vr(e){for(var t=[],r=dr(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}var yr=new Date(1899,11,30,0,0,0);function br(e,t){var r=e.getTime();return t&&(r-=1263168e5),(r-(yr.getTime()+6e4*(e.getTimezoneOffset()-yr.getTimezoneOffset())))/864e5}var wr=new Date,Tr=yr.getTime()+6e4*(wr.getTimezoneOffset()-yr.getTimezoneOffset()),Er=wr.getTimezoneOffset();function Sr(e){var t=new Date;return t.setTime(24*e*60*60*1e3+Tr),t.getTimezoneOffset()!==Er&&t.setTime(t.getTime()+6e4*(t.getTimezoneOffset()-Er)),t}var Ar=new Date("2017-02-19T19:06:09.000Z"),Or=isNaN(Ar.getFullYear())?new Date("2/19/17"):Ar,_r=2017==Or.getFullYear();function xr(e,t){var r=new Date(e);if(_r)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==Or.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 Rr(e,t){if(st&&Buffer.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return Jr(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return Jr(et(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!=typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return Jr(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return Jr(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 Cr(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]=Cr(e[r]));return t}function kr(e,t){for(var r="";r.length<t;)r+=e;return r}function Pr(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 Ir=["january","february","march","april","may","june","july","august","september","october","november","december"];function Nr(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==Ir.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}function Dr(e,t,r){if(e.FullPaths){var n;if("string"==typeof r)return n=st?ct(r):function(e){for(var t=[],r=0,n=e.length+250,a=lt(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=lt(65535),n=65530)}return t.push(a.slice(0,r)),dt(t)}(r),fr.utils.cfb_add(e,t,n);fr.utils.cfb_add(e,t,r)}else e.file(t,r)}function Lr(){return fr.utils.cfb_new()}var Fr='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n';var Mr={""":'"',"'":"'",">":">","<":"<","&":"&"},Ur=gr(Mr),Br=/[&<>'"]/g,jr=/[\u0000-\u0008\u000b-\u001f]/g;function Wr(e){return(e+"").replace(Br,(function(e){return Ur[e]})).replace(jr,(function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"}))}function Hr(e){return Wr(e).replace(/ /g,"_x0020_")}var Gr=/[\u0000-\u001f]/g;function Vr(e){return(e+"").replace(Br,(function(e){return Ur[e]})).replace(/\n/g,"<br/>").replace(Gr,(function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}function $r(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function zr(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 Kr(e){var t,r,n,a=lt(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 qr(e){return ct(e,"binary").toString("utf8")}var Xr="foo bar bazâð£",Yr=st&&(qr(Xr)==zr(Xr)&&qr||Kr(Xr)==zr(Xr)&&Kr)||zr,Jr=st?function(e){return ct(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("")},Zr=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}}();var Qr=/(^\s|\s$|\n)/;function en(e,t){return"<"+e+(t.match(Qr)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function tn(e){return dr(e).map((function(t){return" "+t+'="'+e[t]+'"'})).join("")}function rn(e,t,r){return"<"+e+(null!=r?tn(r):"")+(null!=t?(t.match(Qr)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function nn(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(e){if(t)throw e}return""}var an="http://schemas.openxmlformats.org/package/2006/metadata/core-properties",on="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",sn="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",cn="http://schemas.openxmlformats.org/package/2006/content-types",ln="http://schemas.openxmlformats.org/package/2006/relationships",fn="http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",un="http://purl.org/dc/elements/1.1/",hn="http://purl.org/dc/terms/",pn="http://purl.org/dc/dcmitype/",dn="http://schemas.openxmlformats.org/officeDocument/2006/relationships",mn="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",gn="http://www.w3.org/2001/XMLSchema-instance",vn="http://www.w3.org/2001/XMLSchema",yn=["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"],bn="urn:schemas-microsoft-com:office:office",wn="urn:schemas-microsoft-com:office:excel",Tn="urn:schemas-microsoft-com:office:spreadsheet",En="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",Sn="http://macVmlSchemaUri",An="urn:schemas-microsoft-com:vml",On="http://www.w3.org/TR/REC-html40";var _n=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},xn=st?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map((function(e){return Buffer.isBuffer(e)?e:ct(e)}))):_n(e)}:_n,Rn=function(e,t,r){for(var n=[],a=t;a<r;a+=2)n.push(String.fromCharCode(Xn(e,a)));return n.join("").replace(mt,"")},Cn=st?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(mt,""):Rn(e,t,r)}:Rn,kn=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("")},Pn=st?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):kn(e,t,r)}:kn,In=function(e,t,r){for(var n=[],a=t;a<r;a++)n.push(String.fromCharCode(qn(e,a)));return n.join("")},Nn=st?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf8",t,r):In(e,t,r)}:In,Dn=function(e,t){var r=Jn(e,t);return r>0?Nn(e,t+4,t+4+r-1):""},Ln=Dn,Fn=function(e,t){var r=Jn(e,t);return r>0?Nn(e,t+4,t+4+r-1):""},Mn=Fn,Un=function(e,t){var r=2*Jn(e,t);return r>0?Nn(e,t+4,t+4+r-1):""},Bn=Un,jn=function(e,t){var r=Jn(e,t);return r>0?Cn(e,t+4,t+4+r):""},Wn=jn,Hn=function(e,t){var r=Jn(e,t);return r>0?Nn(e,t+4,t+4+r):""},Gn=Hn,Vn=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)},$n=Vn,zn=function(e){return Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array};function Kn(){Cn=function(e,t,r){return tt.utils.decode(1200,e.slice(t,r)).replace(mt,"")},Nn=function(e,t,r){return tt.utils.decode(65001,e.slice(t,r))},Ln=function(e,t){var r=Jn(e,t);return r>0?tt.utils.decode(qe,e.slice(t+4,t+4+r-1)):""},Mn=function(e,t){var r=Jn(e,t);return r>0?tt.utils.decode(Ke,e.slice(t+4,t+4+r-1)):""},Bn=function(e,t){var r=2*Jn(e,t);return r>0?tt.utils.decode(1200,e.slice(t+4,t+4+r-1)):""},Wn=function(e,t){var r=Jn(e,t);return r>0?tt.utils.decode(1200,e.slice(t+4,t+4+r)):""},Gn=function(e,t){var r=Jn(e,t);return r>0?tt.utils.decode(65001,e.slice(t+4,t+4+r)):""}}st&&(Ln=function(e,t){if(!Buffer.isBuffer(e))return Dn(e,t);var r=e.readUInt32LE(t);return r>0?e.toString("utf8",t+4,t+4+r-1):""},Mn=function(e,t){if(!Buffer.isBuffer(e))return Fn(e,t);var r=e.readUInt32LE(t);return r>0?e.toString("utf8",t+4,t+4+r-1):""},Bn=function(e,t){if(!Buffer.isBuffer(e))return Un(e,t);var r=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+r-1)},Wn=function(e,t){if(!Buffer.isBuffer(e))return jn(e,t);var r=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+r)},Gn=function(e,t){if(!Buffer.isBuffer(e))return Hn(e,t);var r=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+r)},$n=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):Vn(e,t)},zn=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array}),void 0!==tt&&Kn();var qn=function(e,t){return e[t]},Xn=function(e,t){return 256*e[t+1]+e[t]},Yn=function(e,t){var r=256*e[t+1]+e[t];return r<32768?r:-1*(65535-r+1)},Jn=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Zn=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},Qn=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function ea(e,t){var r,n,a,i,o,s,c="",l=[];switch(t){case"dbcs":if(s=this.l,st&&Buffer.isBuffer(this))c=this.slice(this.l,this.l+2*e).toString("utf16le");else for(o=0;o<e;++o)c+=String.fromCharCode(Xn(this,s)),s+=2;e*=2;break;case"utf8":c=Nn(this,this.l,this.l+e);break;case"utf16le":e*=2,c=Cn(this,this.l,this.l+e);break;case"wstr":if(void 0===tt)return ea.call(this,e,"dbcs");c=tt.utils.decode(Ke,this.slice(this.l,this.l+2*e)),e*=2;break;case"lpstr-ansi":c=Ln(this,this.l),e=4+Jn(this,this.l);break;case"lpstr-cp":c=Mn(this,this.l),e=4+Jn(this,this.l);break;case"lpwstr":c=Bn(this,this.l),e=4+2*Jn(this,this.l);break;case"lpp4":e=4+Jn(this,this.l),c=Wn(this,this.l),2&e&&(e+=2);break;case"8lpp4":e=4+Jn(this,this.l),c=Gn(this,this.l),3&e&&(e+=4-(3&e));break;case"cstr":for(e=0,c="";0!==(a=qn(this,this.l+e++));)l.push(rt(a));c=l.join("");break;case"_wstr":for(e=0,c="";0!==(a=Xn(this,this.l+e));)l.push(rt(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=qn(this,s),this.l=s+1,i=ea.call(this,e-o,a?"dbcs-cont":"sbcs-cont"),l.join("")+i;l.push(rt(Xn(this,s))),s+=2}c=l.join(""),e*=2;break;case"cpstr":if(void 0!==tt){c=tt.utils.decode(Ke,this.slice(this.l,this.l+e));break}case"sbcs-cont":for(c="",s=this.l,o=0;o!=e;++o){if(this.lens&&-1!==this.lens.indexOf(s))return a=qn(this,s),this.l=s+1,i=ea.call(this,e-o,a?"dbcs-cont":"sbcs-cont"),l.join("")+i;l.push(rt(qn(this,s))),s+=1}c=l.join("");break;default:switch(e){case 1:return r=qn(this,this.l),this.l++,r;case 2:return r=("i"===t?Yn:Xn)(this,this.l),this.l+=2,r;case 4:case-4:return"i"===t||0==(128&this[this.l+3])?(r=(e>0?Zn:Qn)(this,this.l),this.l+=4,r):(n=Jn(this,this.l),this.l+=4,n);case 8:case-8:if("f"===t)return n=8==e?$n(this,this.l):$n([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=Pn(this,this.l,e)}}return this.l+=e,c}var ta=function(e,t,r){e[r]=255&t,e[r+1]=t>>>8&255};function ra(e,t,r){var n=0,a=0;if("dbcs"===r){for(a=0;a!=t.length;++a)ta(this,t.charCodeAt(a),this.l+2*a);n=2*t.length}else if("sbcs"===r){if(void 0!==tt&&874==qe)for(a=0;a!=t.length;++a){var i=tt.utils.encode(qe,t.charAt(a));this[this.l+a]=i[0]}else 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 o=Math.min(this.l+e,this.length);for(a=0;a<Math.min(t.length,e);++a){var s=t.charCodeAt(a);this[this.l++]=255&s,this[this.l++]=s>>8}for(;this.l<o;)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 na(e,t){var r=Pn(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function aa(e,t){e.l=t,e.read_shift=ea,e.chk=na,e.write_shift=ra}function ia(e,t){e.l+=t}function oa(e){var t=lt(e);return aa(t,0),t}function sa(){var e=[],t=st?256:2048,r=function(e){var t=oa(e);return aa(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(),dt(e)},_bufs:e}}function ca(e,t,r,n){var a,i=+t;if(!isNaN(i)){n||(n=bc[i].p||(r||[]).length||0),a=1+(i>=128?1:0)+1,n>=128&&++a,n>=16384&&++a,n>=2097152&&++a;var o=e.next(a);i<=127?o.write_shift(1,i):(o.write_shift(1,128+(127&i)),o.write_shift(1,i>>7));for(var s=0;4!=s;++s){if(!(n>=128)){o.write_shift(1,n);break}o.write_shift(1,128+(127&n)),n>>=7}n>0&&zn(r)&&e.push(r)}}function la(e,t,r){var n=Cr(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 fa(e,t,r){var n=Cr(e);return n.s=la(n.s,t.s,r),n.e=la(n.e,t.s,r),n}function ua(e,t){if(e.cRel&&e.c<0)for(e=Cr(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=Cr(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=ya(e);return e.cRel||null==e.cRel||(r=r.replace(/^([A-Z])/,"$$$1")),e.rRel||null==e.rRel||(r=function(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(r)),r}function ha(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?ua(e.s,t.biff)+":"+ua(e.e,t.biff):(e.s.rRel?"":"$")+da(e.s.r)+":"+(e.e.rRel?"":"$")+da(e.e.r):(e.s.cRel?"":"$")+ga(e.s.c)+":"+(e.e.cRel?"":"$")+ga(e.e.c)}function pa(e){return parseInt(e.replace(/\$(\d+)$/,"$1"),10)-1}function da(e){return""+(e+1)}function ma(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 ga(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 va(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 ya(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 ba(e){var t=e.indexOf(":");return-1==t?{s:va(e),e:va(e)}:{s:va(e.slice(0,t)),e:va(e.slice(t+1))}}function wa(e,t){return void 0===t||"number"==typeof t?wa(e.s,e.e):("string"!=typeof e&&(e=ya(e)),"string"!=typeof t&&(t=ya(t)),e==t?e:e+":"+t)}function Ta(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 Ea(e,t){var r="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=ar(e.z,r?br(t):t)}catch(e){}try{return e.w=ar((e.XF||{}).numFmtId||(r?14:0),r?br(t):t)}catch(e){return""+t}}function Sa(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?ai[e.v]||e.v:Ea(e,null==t?e.v:t))}function Aa(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function Oa(e,t,r){var n=r||{},a=e?Array.isArray(e):n.dense;var 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?va(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=Ta(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 p={v:t[u][h]},d=o+u,m=s+h;if(l.s.r>d&&(l.s.r=d),l.s.c>m&&(l.s.c=m),l.e.r<d&&(l.e.r=d),l.e.c<m&&(l.e.c=m),!t[u][h]||"object"!=typeof t[u][h]||Array.isArray(t[u][h])||t[u][h]instanceof Date)if(Array.isArray(p.v)&&(p.f=t[u][h][1],p.v=p.v[0]),null===p.v)if(p.f)p.t="n";else if(n.nullError)p.t="e",p.v=0;else{if(!n.sheetStubs)continue;p.t="z"}else"number"==typeof p.v?p.t="n":"boolean"==typeof p.v?p.t="b":p.v instanceof Date?(p.z=n.dateNF||_t[14],n.cellDates?(p.t="d",p.w=ar(p.z,br(p.v))):(p.t="n",p.v=br(p.v),p.w=ar(p.z,p.v))):p.t="s";else p=t[u][h];if(a)i[d]||(i[d]=[]),i[d][m]&&i[d][m].z&&(p.z=i[d][m].z),i[d][m]=p;else{var g=ya({c:m,r:d});i[g]&&i[g].z&&(p.z=i[g].z),i[g]=p}}}return l.s.c<1e7&&(i["!ref"]=wa(l)),i}function _a(e,t){return Oa(null,e,t)}function xa(e,t){return t||(t=oa(4)),t.write_shift(4,e),t}function Ra(e){var t=e.read_shift(4);return 0===t?"":e.read_shift(t,"dbcs")}function Ca(e,t){var r=!1;return null==t&&(r=!0,t=oa(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function ka(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function Pa(e,t){var r=e.l,n=e.read_shift(1),a=Ra(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(ka(e));o.r=i}else o.r=[{ich:0,ifnt:0}];return e.l=r+t,o}var Ia=Pa;function Na(e,t){var r=!1;return null==t&&(r=!0,t=oa(23+4*e.t.length)),t.write_shift(1,1),Ca(e.t,t),t.write_shift(4,1),function(e,t){t||(t=oa(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0)}({ich:0,ifnt:0},t),r?t.slice(0,t.l):t}function Da(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 La(e,t){return null==t&&(t=oa(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function Fa(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function Ma(e,t){return null==t&&(t=oa(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var Ua=Ra,Ba=Ca;function ja(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}function Wa(e,t){var r=!1;return null==t&&(r=!0,t=oa(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var Ha=Ra,Ga=ja,Va=Wa;function $a(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?$n([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):Zn(t,0)>>2;return r?a/100:a}function za(e,t){null==t&&(t=oa(4));var r=0,n=0,a=100*e;if(e==(0|e)&&e>=-(1<<29)&&e<1<<29?n=1:a==(0|a)&&a>=-(1<<29)&&a<1<<29&&(n=1,r=1),!n)throw new Error("unsupported RkNumber "+e);t.write_shift(-4,((r?a:e)<<2)+(r+2))}function Ka(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 qa=Ka,Xa=function(e,t){return t||(t=oa(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t};function Ya(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Ja(e,t){return(t||oa(8)).write_shift(8,e,"f")}function Za(e,t){if(t||(t=oa(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;null!=e.index?(t.write_shift(1,2),t.write_shift(1,e.index)):null!=e.theme?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),e.rgb&&null==e.theme){var n=e.rgb||"FFFFFF";"number"==typeof n&&(n=("000000"+n.toString(16)).slice(-6)),t.write_shift(1,parseInt(n.slice(0,2),16)),t.write_shift(1,parseInt(n.slice(2,4),16)),t.write_shift(1,parseInt(n.slice(4,6),16)),t.write_shift(1,255)}else t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t}var Qa=80,ei={1:{n:"CodePage",t:2},2:{n:"Category",t:Qa},3:{n:"PresentationFormat",t:Qa},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:Qa},15:{n:"Company",t:Qa},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:Qa},27:{n:"ContentStatus",t:Qa},28:{n:"Language",t:Qa},29:{n:"Version",t:Qa},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},ti={1:{n:"CodePage",t:2},2:{n:"Title",t:Qa},3:{n:"Subject",t:Qa},4:{n:"Author",t:Qa},5:{n:"Keywords",t:Qa},6:{n:"Comments",t:Qa},7:{n:"Template",t:Qa},8:{n:"LastAuthor",t:Qa},9:{n:"RevNumber",t:Qa},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:Qa},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}};function ri(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var ni=Cr(ri([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])),ai={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},ii={"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"},oi={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function si(e,t){var r,n=function(e){for(var t=[],r=dr(e),n=0;n!==r.length;++n)null==t[e[r[n]]]&&(t[e[r[n]]]=[]),t[e[r[n]]].push(r[n]);return t}(ii),a=[];a[a.length]=Fr,a[a.length]=rn("Types",null,{xmlns:cn,"xmlns:xsd":vn,"xmlns:xsi":gn}),a=a.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map((function(e){return rn("Default",null,{Extension:e[0],ContentType:e[1]})})));var i=function(n){e[n]&&e[n].length>0&&(r=e[n][0],a[a.length]=rn("Override",null,{PartName:("/"==r[0]?"":"/")+r,ContentType:oi[n][t.bookType]||oi[n].xlsx}))},o=function(r){(e[r]||[]).forEach((function(e){a[a.length]=rn("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:oi[r][t.bookType]||oi[r].xlsx})}))},s=function(t){(e[t]||[]).forEach((function(e){a[a.length]=rn("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:n[t][0]})}))};return i("workbooks"),o("sheets"),o("charts"),s("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),o("metadata"),s("people"),a.length>2&&(a[a.length]="</Types>",a[1]=a[1].replace("/>",">")),a.join("")}var ci={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 li(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function fi(e){var t=[Fr,rn("Relationships",null,{xmlns:ln})];return dr(e["!id"]).forEach((function(r){t[t.length]=rn("Relationship",null,e["!id"][r])})),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function ui(e,t,r,n,a,i){if(a||(a={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,a.Id="rId"+t,a.Type=n,a.Target=r,i?a.TargetMode=i:[ci.HLINK,ci.XPATH,ci.XMISS].indexOf(a.Type)>-1&&(a.TargetMode="External"),e["!id"][a.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][a.Id]=a,e[("/"+a.Target).replace("//","/")]=a,t}function hi(e,t,r){return[' <rdf:Description rdf:about="'+e+'">\n',' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+t+'"/>\n'," </rdf:Description>\n"].join("")}function pi(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+ze.version+"</meta:generator></office:meta></office:document-meta>"}var di=[["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"]];function mi(e,t,r,n,a){null==a[e]&&null!=t&&""!==t&&(a[e]=t,t=Wr(t),n[n.length]=r?rn(e,t,r):en(e,t))}function gi(e,t){var r=t||{},n=[Fr,rn("cp:coreProperties",null,{"xmlns:cp":an,"xmlns:dc":un,"xmlns:dcterms":hn,"xmlns:dcmitype":pn,"xmlns:xsi":gn})],a={};if(!e&&!r.Props)return n.join("");e&&(null!=e.CreatedDate&&mi("dcterms:created","string"==typeof e.CreatedDate?e.CreatedDate:nn(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),null!=e.ModifiedDate&&mi("dcterms:modified","string"==typeof e.ModifiedDate?e.ModifiedDate:nn(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var i=0;i!=di.length;++i){var o=di[i],s=r.Props&&null!=r.Props[o[1]]?r.Props[o[1]]:e?e[o[1]]:null;!0===s?s="1":!1===s?s="0":"number"==typeof s&&(s=String(s)),null!=s&&mi(o[0],s,null,n,a)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var vi=[["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"]],yi=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function bi(e){var t=[],r=rn;return e||(e={}),e.Application="SheetJS",t[t.length]=Fr,t[t.length]=rn("Properties",null,{xmlns:sn,"xmlns:vt":mn}),vi.forEach((function(n){if(void 0!==e[n[1]]){var a;switch(n[2]){case"string":a=Wr(String(e[n[1]]));break;case"bool":a=e[n[1]]?"true":"false"}void 0!==a&&(t[t.length]=r(n[0],a))}})),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map((function(e){return"<vt:lpstr>"+Wr(e)+"</vt:lpstr>"})).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function wi(e){var t=[Fr,rn("Properties",null,{xmlns:on,"xmlns:vt":mn})];if(!e)return t.join("");var r=1;return dr(e).forEach((function(n){++r,t[t.length]=rn("property",function(e,t){switch(typeof e){case"string":var r=rn("vt:lpwstr",Wr(e));return t&&(r=r.replace(/"/g,"_x0022_")),r;case"number":return rn((0|e)==e?"vt:i4":"vt:r8",Wr(String(e)));case"boolean":return rn("vt:bool",e?"true":"false")}if(e instanceof Date)return rn("vt:filetime",nn(e));throw new Error("Unable to serialize "+e)}(e[n],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:Wr(n)})})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var Ti={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 Ei(e,t){var r=oa(4),n=oa(4);switch(r.write_shift(4,80==e?31:e),e){case 3:n.write_shift(-4,t);break;case 5:(n=oa(8)).write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=function(e){var t=("string"==typeof e?new Date(Date.parse(e)):e).getTime()/1e3+11644473600,r=t%Math.pow(2,32),n=(t-r)/Math.pow(2,32);n*=1e7;var a=(r*=1e7)/Math.pow(2,32)|0;a>0&&(r%=Math.pow(2,32),n+=a);var i=oa(8);return i.write_shift(4,r),i.write_shift(4,n),i}(t);break;case 31:case 80:for((n=oa(4+2*(t.length+1)+(t.length%2?0:2))).write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return dt([r,n])}var Si=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Ai(e){switch(typeof e){case"boolean":return 11;case"number":return(0|e)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64}return-1}function Oi(e,t,r){var n=oa(8),a=[],i=[],o=8,s=0,c=oa(8),l=oa(8);if(c.write_shift(4,2),c.write_shift(4,1200),l.write_shift(4,1),i.push(c),a.push(l),o+=8+c.length,!t){(l=oa(8)).write_shift(4,0),a.unshift(l);var f=[oa(4)];for(f[0].write_shift(4,e.length),s=0;s<e.length;++s){var u=e[s][0];for((c=oa(8+2*(u.length+1)+(u.length%2?0:2))).write_shift(4,s+2),c.write_shift(4,u.length+1),c.write_shift(0,u,"dbcs");c.l!=c.length;)c.write_shift(1,0);f.push(c)}c=dt(f),i.unshift(c),o+=8+c.length}for(s=0;s<e.length;++s)if((!t||t[e[s][0]])&&!(Si.indexOf(e[s][0])>-1||yi.indexOf(e[s][0])>-1)&&null!=e[s][1]){var h=e[s][1],p=0;if(t){var d=r[p=+t[e[s][0]]];if("version"==d.p&&"string"==typeof h){var m=h.split(".");h=(+m[0]<<16)+(+m[1]||0)}c=Ei(d.t,h)}else{var g=Ai(h);-1==g&&(g=31,h=String(h)),c=Ei(g,h)}i.push(c),(l=oa(8)).write_shift(4,t?p:2+s),a.push(l),o+=8+c.length}var v=8*(i.length+1);for(s=0;s<i.length;++s)a[s].write_shift(4,v),v+=i[s].length;return n.write_shift(4,o),n.write_shift(4,i.length),dt([n].concat(a).concat(i))}function _i(e,t,r,n,a,i){var o=oa(a?68:48),s=[o];o.write_shift(2,65534),o.write_shift(2,0),o.write_shift(4,842412599),o.write_shift(16,fr.utils.consts.HEADER_CLSID,"hex"),o.write_shift(4,a?2:1),o.write_shift(16,t,"hex"),o.write_shift(4,a?68:48);var c=Oi(e,r,n);if(s.push(c),a){var l=Oi(a,null,null);o.write_shift(16,i,"hex"),o.write_shift(4,68+c.length),s.push(l)}return dt(s)}function xi(e,t){return 1===e.read_shift(t)}function Ri(e,t){return t||(t=oa(2)),t.write_shift(2,+!!e),t}function Ci(e){return e.read_shift(2,"u")}function ki(e,t){return t||(t=oa(2)),t.write_shift(2,e),t}function Pi(e,t,r){return r||(r=oa(2)),r.write_shift(1,"e"==t?+e:+!!e),r.write_shift(1,"e"==t?1:0),r}function Ii(e,t,r){var n=e.read_shift(r&&r.biff>=12?2:1),a="sbcs-cont",i=Ke;(r&&r.biff>=8&&(Ke=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=n?e.read_shift(n,a):"";return Ke=i,o}function Ni(e){var t=e.t||"",r=oa(3);r.write_shift(2,t.length),r.write_shift(1,1);var n=oa(2*t.length);return n.write_shift(2*t.length,t,"utf16le"),dt([r,n])}function Di(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 Li(e,t,r){var n=e.read_shift(r&&2==r.biff?1:2);return 0===n?(e.l++,""):Di(e,n,r)}function Fi(e,t,r){if(r.biff>5)return Li(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 Mi(e,t,r){return r||(r=oa(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function Ui(e,t){t||(t=oa(6+2*e.length)),t.write_shift(4,1+e.length);for(var r=0;r<e.length;++r)t.write_shift(2,e.charCodeAt(r));return t.write_shift(2,0),t}function Bi(e){var t=oa(512),r=0,n=e.Target;"file://"==n.slice(0,7)&&(n=n.slice(7));var a=n.indexOf("#"),i=a>-1?31:23;switch(n.charAt(0)){case"#":i=28;break;case".":i&=-3}t.write_shift(4,2),t.write_shift(4,i);var o=[8,6815827,6619237,4849780,83];for(r=0;r<o.length;++r)t.write_shift(4,o[r]);if(28==i)Ui(n=n.slice(1),t);else if(2&i){for(o="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<o.length;++r)t.write_shift(1,parseInt(o[r],16));var s=a>-1?n.slice(0,a):n;for(t.write_shift(4,2*(s.length+1)),r=0;r<s.length;++r)t.write_shift(2,s.charCodeAt(r));t.write_shift(2,0),8&i&&Ui(a>-1?n.slice(a+1):"",t)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<o.length;++r)t.write_shift(1,parseInt(o[r],16));for(var c=0;"../"==n.slice(3*c,3*c+3)||"..\\"==n.slice(3*c,3*c+3);)++c;for(t.write_shift(2,c),t.write_shift(4,n.length-3*c+1),r=0;r<n.length-3*c;++r)t.write_shift(1,255&n.charCodeAt(r+3*c));for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),r=0;r<6;++r)t.write_shift(4,0)}return t.slice(0,t.l)}function ji(e,t,r,n){return n||(n=oa(6)),n.write_shift(2,e),n.write_shift(2,t),n.write_shift(2,r||0),n}function Wi(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 Hi(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 Gi(e,t){return t||(t=oa(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function Vi(e,t,r){var n=1536,a=16;switch(r.bookType){case"biff8":case"xla":break;case"biff5":n=1280,a=8;break;case"biff4":n=4,a=6;break;case"biff3":n=3,a=6;break;case"biff2":n=2,a=4;break;default:throw new Error("unsupported BIFF version")}var i=oa(a);return i.write_shift(2,n),i.write_shift(2,t),a>4&&i.write_shift(2,29282),a>6&&i.write_shift(2,1997),a>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function $i(e,t){var r=!t||t.biff>=8?2:1,n=oa(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var a=n.slice(0,n.l);return a.l=n.l,a}function zi(e,t,r,n){var a=r&&5==r.biff;n||(n=oa(a?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(a?1:2,t.length),a||n.write_shift(1,1),n.write_shift((a?1:2)*t.length,t,a?"sbcs":"utf16le");var i=n.length>n.l?n.slice(0,n.l):n;return null==i.l&&(i.l=i.length),i}function Ki(e,t,r,n){var a=r&&5==r.biff;n||(n=oa(a?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,t<<4));var i=0;return e.numFmtId>0&&a&&(i|=1024),n.write_shift(4,i),n.write_shift(4,0),a||n.write_shift(4,0),n.write_shift(2,0),n}function qi(e,t,r){if(r.biff<8)return function(e,t,r){3==e[e.l+1]&&e[e.l]++;var n=Ii(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(Wi(e,r.biff,r));if(e.l!=a)throw new Error("Bad ExternSheet: "+e.l+" != "+a);return n}function Xi(e){var t=oa(24),r=va(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),a=0;a<16;++a)t.write_shift(1,parseInt(n[a],16));return dt([t,Bi(e[1])])}function Yi(e){var t=e[1].Tooltip,r=oa(10+2*(t.length+1));r.write_shift(2,2048);var n=va(e[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var a=0;a<t.length;++a)r.write_shift(2,t.charCodeAt(a));return r.write_shift(2,0),r}function Ji(e,t,r){if(!r.cellStyles)return ia(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 Zi=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=gr({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=_a(function(t,r){var n=[],a=lt(1);switch(r.type){case"base64":a=ut(ot(t));break;case"binary":a=ut(t);break;case"buffer":case"array":a=t}aa(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),h=r.codepage||1252;2!=i&&(a.l+=16,a.read_shift(1),0!==a[a.l]&&(h=e[a[a.l]]),a.l+=1,a.l+=2),c&&(a.l+=36);for(var p=[],d={},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((d={}).name=tt.utils.decode(h,a.slice(a.l,a.l+g)).replace(/[\u0000\r\n].*$/g,""),a.l+=g,d.type=String.fromCharCode(a.read_shift(1)),2==i||c||(d.offset=a.read_shift(4)),d.len=a.read_shift(1),2==i&&(d.offset=a.read_shift(2)),d.dec=a.read_shift(1),d.name.length&&p.push(d),2!=i&&(a.l+=c?13:14),d.type){case"B":s&&8==d.len||!r.WTF||console.log("Skipping "+d.name+":"+d.type);break;case"G":case"P":r.WTF&&console.log("Skipping "+d.name+":"+d.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: "+d.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 v=0,y=0;for(n[0]=[],y=0;y!=p.length;++y)n[0][y]=p[y].name;for(;l-- >0;)if(42!==a[a.l])for(++a.l,n[++v]=[],y=0,y=0;y!=p.length;++y){var b=a.slice(a.l,a.l+p[y].len);a.l+=p[y].len,aa(b,0);var w=tt.utils.decode(h,b);switch(p[y].type){case"C":w.trim().length&&(n[v][y]=w.replace(/\s+$/,""));break;case"D":8===w.length?n[v][y]=new Date(+w.slice(0,4),+w.slice(4,6)-1,+w.slice(6,8)):n[v][y]=w;break;case"F":n[v][y]=parseFloat(w.trim());break;case"+":case"I":n[v][y]=c?2147483648^b.read_shift(-4,"i"):b.read_shift(4,"i");break;case"L":switch(w.trim().toUpperCase()){case"Y":case"T":n[v][y]=!0;break;case"N":case"F":n[v][y]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+w+"|")}break;case"M":if(!o)throw new Error("DBF Unexpected MEMO for type "+i.toString(16));n[v][y]="##MEMO##"+(c?parseInt(w.trim(),10):b.read_shift(4));break;case"N":(w=w.replace(/\u0000/g,"").trim())&&"."!=w&&(n[v][y]=+w||0);break;case"@":n[v][y]=new Date(b.read_shift(-8,"f")-621356832e5);break;case"T":n[v][y]=new Date(864e5*(b.read_shift(4)-2440588)+b.read_shift(4));break;case"Y":n[v][y]=b.read_shift(4,"i")/1e4+b.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":n[v][y]=-b.read_shift(-8,"f");break;case"B":if(s&&8==p[y].len){n[v][y]=b.read_shift(8,"f");break}case"G":case"P":b.l+=p[y].len;break;case"0":if("_NullFlags"===p[y].name)break;default:throw new Error("DBF Unsupported data type "+p[y].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 Aa(r(e,t),t)}catch(e){if(t&&t.WTF)throw e}return{SheetNames:[],Sheets:{}}},to_sheet:r,from_sheet:function(e,r){var a=r||{};if(+a.codepage>=0&&Ze(+a.codepage),"string"==a.type)throw new Error("Cannot write DBF to JS string");var i=sa(),o=gl(e,{header:1,raw:!0,cellDates:!0}),s=o[0],c=o.slice(1),l=e["!cols"]||[],f=0,u=0,h=0,p=1;for(f=0;f<s.length;++f)if(((l[f]||{}).DBF||{}).name)s[f]=l[f].DBF.name,++h;else if(null!=s[f]){if(++h,"number"==typeof s[f]&&(s[f]=s[f].toString(10)),"string"!=typeof s[f])throw new Error("DBF Invalid column name "+s[f]+" |"+typeof s[f]+"|");if(s.indexOf(s[f])!==f)for(u=0;u<1024;++u)if(-1==s.indexOf(s[f]+"_"+u)){s[f]+="_"+u;break}}var d=Ta(e["!ref"]),m=[],g=[],v=[];for(f=0;f<=d.e.c-d.s.c;++f){var y="",b="",w=0,T=[];for(u=0;u<c.length;++u)null!=c[u][f]&&T.push(c[u][f]);if(0!=T.length&&null!=s[f]){for(u=0;u<T.length;++u){switch(typeof T[u]){case"number":b="B";break;case"string":default:b="C";break;case"boolean":b="L";break;case"object":b=T[u]instanceof Date?"D":"C"}w=Math.max(w,String(T[u]).length),y=y&&y!=b?"C":b}w>250&&(w=250),"C"==(b=((l[f]||{}).DBF||{}).type)&&l[f].DBF.len>w&&(w=l[f].DBF.len),"B"==y&&"N"==b&&(y="N",v[f]=l[f].DBF.dec,w=l[f].DBF.len),g[f]="C"==y||"N"==b?w:n[y]||0,p+=g[f],m[f]=y}else m[f]="?"}var E=i.next(32);for(E.write_shift(4,318902576),E.write_shift(4,c.length),E.write_shift(2,296+32*h),E.write_shift(2,p),f=0;f<4;++f)E.write_shift(4,0);for(E.write_shift(4,0|(+t[qe]||3)<<8),f=0,u=0;f<s.length;++f)if(null!=s[f]){var S=i.next(32),A=(s[f].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);S.write_shift(1,A,"sbcs"),S.write_shift(1,"?"==m[f]?"C":m[f],"sbcs"),S.write_shift(4,u),S.write_shift(1,g[f]||n[m[f]]||0),S.write_shift(1,v[f]||0),S.write_shift(1,2),S.write_shift(4,0),S.write_shift(1,0),S.write_shift(4,0),S.write_shift(4,0),u+=g[f]||n[m[f]]||0}var O=i.next(264);for(O.write_shift(4,13),f=0;f<65;++f)O.write_shift(4,0);for(f=0;f<c.length;++f){var _=i.next(p);for(_.write_shift(1,0),u=0;u<s.length;++u)if(null!=s[u])switch(m[u]){case"L":_.write_shift(1,null==c[f][u]?63:c[f][u]?84:70);break;case"B":_.write_shift(8,c[f][u]||0,"f");break;case"N":var x="0";for("number"==typeof c[f][u]&&(x=c[f][u].toFixed(v[u]||0)),h=0;h<g[u]-x.length;++h)_.write_shift(1,32);_.write_shift(1,x,"sbcs");break;case"D":c[f][u]?(_.write_shift(4,("0000"+c[f][u].getFullYear()).slice(-4),"sbcs"),_.write_shift(2,("00"+(c[f][u].getMonth()+1)).slice(-2),"sbcs"),_.write_shift(2,("00"+c[f][u].getDate()).slice(-2),"sbcs")):_.write_shift(8,"00000000","sbcs");break;case"C":var R=String(null!=c[f][u]?c[f][u]:"").slice(0,g[u]);for(_.write_shift(1,R,"sbcs"),h=0;h<g[u]-R.length;++h)_.write_shift(1,32)}}return i.next(1).write_shift(1,26),i.end()}}}(),Qi=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("+dr(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(t,r){var n=e[r];return"number"==typeof n?nt(n):n},n=function(e,t,r){var n=t.charCodeAt(0)-32<<4|r.charCodeAt(0)-48;return 59==n?e:nt(n)};function a(e,a){var i,o=e.split(/[\n\r]+/),s=-1,c=-1,l=0,f=0,u=[],h=[],p=null,d={},m=[],g=[],v=[],y=0;for(+a.codepage>=0&&Ze(+a.codepage);l!==o.length;++l){y=0;var b,w=o[l].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),T=w.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),E=T[0];if(w.length>0)switch(E){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==T[1].charAt(0)&&h.push(w.slice(3).replace(/;;/g,";"));break;case"C":var S=!1,A=!1,O=!1,_=!1,x=-1,R=-1;for(f=1;f<T.length;++f)switch(T[f].charAt(0)){case"A":case"G":break;case"X":c=parseInt(T[f].slice(1))-1,A=!0;break;case"Y":for(s=parseInt(T[f].slice(1))-1,A||(c=0),i=u.length;i<=s;++i)u[i]=[];break;case"K":'"'===(b=T[f].slice(1)).charAt(0)?b=b.slice(1,b.length-1):"TRUE"===b?b=!0:"FALSE"===b?b=!1:isNaN(Pr(b))?isNaN(Nr(b).getDate())||(b=xr(b)):(b=Pr(b),null!==p&&er(p)&&(b=Sr(b))),void 0!==tt&&"string"==typeof b&&"string"!=(a||{}).type&&(a||{}).codepage&&(b=tt.utils.decode(a.codepage,b)),S=!0;break;case"E":_=!0;var C=Vo(T[f].slice(1),{r:s,c});u[s][c]=[u[s][c],C];break;case"S":O=!0,u[s][c]=[u[s][c],"S5S"];break;case"R":x=parseInt(T[f].slice(1))-1;break;case"C":R=parseInt(T[f].slice(1))-1;break;default:if(a&&a.WTF)throw new Error("SYLK bad record "+w)}if(S&&(u[s][c]&&2==u[s][c].length?u[s][c][0]=b:u[s][c]=b,p=null),O){if(_)throw new Error("SYLK shared formula cannot have own formula");var k=x>-1&&u[x][R];if(!k||!k[1])throw new Error("SYLK shared formula cannot find base");u[s][c][1]=Ko(k[1],{r:s-x,c:c-R})}break;case"F":var P=0;for(f=1;f<T.length;++f)switch(T[f].charAt(0)){case"X":c=parseInt(T[f].slice(1))-1,++P;break;case"Y":for(s=parseInt(T[f].slice(1))-1,i=u.length;i<=s;++i)u[i]=[];break;case"M":y=parseInt(T[f].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":p=h[parseInt(T[f].slice(1))];break;case"W":for(v=T[f].slice(1).split(" "),i=parseInt(v[0],10);i<=parseInt(v[1],10);++i)y=parseInt(v[2],10),g[i-1]=0===y?{hidden:!0}:{wch:y},vo(g[i-1]);break;case"C":g[c=parseInt(T[f].slice(1))-1]||(g[c]={});break;case"R":m[s=parseInt(T[f].slice(1))-1]||(m[s]={}),y>0?(m[s].hpt=y,m[s].hpx=bo(y)):0===y&&(m[s].hidden=!0);break;default:if(a&&a.WTF)throw new Error("SYLK bad record "+w)}P<1&&(p=null);break;default:if(a&&a.WTF)throw new Error("SYLK bad record "+w)}}return m.length>0&&(d["!rows"]=m),g.length>0&&(d["!cols"]=g),a&&a.sheetRows&&(u=u.slice(0,a.sheetRows)),[u,d]}function i(e,t){var r=function(e,t){switch(t.type){case"base64":return a(ot(e),t);case"binary":return a(e,t);case"buffer":return a(st&&Buffer.isBuffer(e)?e.toString("binary"):pt(e),t);case"array":return a(Rr(e),t)}throw new Error("Unrecognized type "+t.type)}(e,t),n=r[0],i=r[1],o=_a(n,t);return dr(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"+zo(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 Aa(i(e,t),t)},to_sheet:i,from_sheet:function(e,t){var r,n,a=["ID;PWXL;N;E"],i=[],s=Ta(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=po(e.width)),"number"!=typeof e.wpx||e.wch||(e.wch=mo(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*yo(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=ya({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}}}(),eo=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(Pr(l))?isNaN(Nr(l).getDate())?o[n][a]=l:o[n][a]=xr(l):o[n][a]=Pr(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 _a(function(t,r){switch(r.type){case"base64":return e(ot(t),r);case"binary":return e(t,r);case"buffer":return e(st&&Buffer.isBuffer(t)?t.toString("binary"):pt(t),r);case"array":return e(Rr(t),r)}throw new Error("Unrecognized type "+r.type)}(t,r),r)}return{to_workbook:function(e,r){return Aa(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=Ta(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=ya({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=ar(n.z||_t[14],br(xr(n.v)))),t(a,0,n.w,"V");break;default:t(a,1,0,"")}else t(a,1,0,"")}}t(a,-1,0,"EOD");return a.join("\r\n")}}()}}(),to=function(){function e(e){return e.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function t(e,t){return _a(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=va(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=ba(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=ya({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=br(xr(r.v));a[2]="vtc",a[3]="nd",a[4]=""+f,a[5]=r.w||ar(r.z||_t[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 Aa(t(e,r),r)},to_sheet:t,from_sheet:function(e){return[r,n,a,n,o(e),i].join("\n")}}}(),ro=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(Pr(e))?isNaN(Nr(e).getDate())?t[r][n]=e:t[r][n]=xr(e):t[r][n]=Pr(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="";var 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),p=!1,d=0,m=e.charCodeAt(0);e=e.replace(/\r\n/gm,"\n");var g,v,y=null!=r.dateNF?(g=r.dateNF,v=(v="number"==typeof g?_t[g]:g).replace(cr,"(\\d+)"),new RegExp("^"+v+"$")):null;function b(){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=Pr(t)))if(!isNaN(Nr(t).getDate())||y&&t.match(y)){n.z=r.dateNF||_t[14];var a=0;y&&t.match(y)&&(t=function(e,t,r){var n=-1,a=-1,i=-1,o=-1,s=-1,c=-1;(t.match(cr)||[]).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(y)||[]),a=1),r.cellDates?(n.t="d",n.v=xr(t,a)):(n.t="n",n.v=br(xr(t,a))),!1!==r.cellText&&(n.w=ar(n.z,n.v instanceof Date?br(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[ya({c,r:s})]=n),f=u+1,m=e.charCodeAt(f),o.e.c<c&&(o.e.c=c),o.e.r<s&&(o.e.r=s),d==h)++c;else if(c=0,++s,r.sheetRows&&r.sheetRows<=s)return!0}e:for(;u<e.length;++u)switch(d=e.charCodeAt(u)){case 34:34===m&&(p=!p);break;case h:case 10:case 13:if(!p&&b())break e}return u-f>0&&b(),i["!ref"]=wa(o),i}function i(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):_a(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)}function o(e,t){var r="",n="string"==t.type?[0,0,0,0]:cl(e,t);switch(t.type){case"base64":r=ot(e);break;case"binary":case"string":r=e;break;case"buffer":r=65001==t.codepage?e.toString("utf8"):t.codepage&&void 0!==tt?tt.utils.decode(t.codepage,e):st&&Buffer.isBuffer(e)?e.toString("binary"):pt(e);break;case"array":r=Rr(e);break;default:throw new Error("Unrecognized type "+t.type)}return 239==n[0]&&187==n[1]&&191==n[2]?r=Yr(r.slice(3)):"string"!=t.type&&"buffer"!=t.type&&65001==t.codepage?r=Yr(r):"binary"==t.type&&void 0!==tt&&t.codepage&&(r=tt.utils.decode(t.codepage,tt.utils.encode(28591,r))),"socialcalc:version:"==r.slice(0,19)?to.to_sheet("string"==t.type?r:Yr(r),t):i(r,t)}return{to_workbook:function(e,t){return Aa(o(e,t),t)},to_sheet:o,from_sheet:function(e){for(var t,r=[],n=Ta(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=ya({r:i,c:s});if((t=a?(e[i]||[])[s]:e[c])&&null!=t.v){for(var l=(t.w||(Sa(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")}}}();var no=function(){function e(e,t,r){if(e){aa(e,e.l||0);for(var n=r.Enum||v;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||{};var 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=v,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||_t[14],n.cellDates&&(e[1].t="d",e[1].v=Sr(e[1].v))),n.qpro&&e[3]>s&&(a["!ref"]=wa(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[ya(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[ya(e[0])]=e[1]}}),n);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);n.Enum=y,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"]=wa(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[ya(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"]=wa(u),c[o||i]=a,l.push(o||i),!f.length)return{SheetNames:l,Sheets:c};for(var p={},d=[],m=0;m<f.length;++m)c[l[m]]?(d.push(f[m]||l[m]),p[f[m]]=c[f[m]]||c[l[m]]):(d.push(f[m]),p[f[m]]={"!ref":"A1"});return{SheetNames:d,Sheets:p}}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=oa(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=oa(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=oa(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?ga(t):da(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]},l=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function f(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 u(e,t,r,n){var a=oa(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 h(e,t){var r=f(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=oa(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 d(e,t){var r=f(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=oa(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 v={0:{n:"BOF",f:Ci},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){aa(e,0);var r=[],n=0,a="",i="",o="",f="";for(;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),p=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+p+":"+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 d="";u=e[e.l++];)d+=String.fromCharCode(u);r.push('"'+d.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:f=r.pop(),o=r.pop(),r.push(["AND","OR"][u-20]+"("+o+","+f+")");break;default:if(u<32&&l[u])f=r.pop(),o=r.pop(),r.push(o+l[u]+f);else{if(!c[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=c[u][1])&&(n=e[e.l++]),n>r.length)return void console.error("WK1 bad formula parse 0x"+u.toString(16)+":|"+r.join("|")+"|");var m=r.slice(-n);r.length-=n,r.push(c[u][0]+"("+m.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:""}},y={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=f(e);return r[1].t="s",r[1].v=e.read_shift(t-4,"cstr"),r}},23:{n:"NUMBER17",f:h},24:{n:"NUMBER18",f:function(e,t){var r=f(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=h(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=f(e),n=e.read_shift(4);return r[1].v=n>>6,r}},38:{n:"??"},39:{n:"NUMBER27",f:d},40:{n:"FORMULA28",f:function(e,t){var r=d(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&&Ze(+r.codepage),"string"==r.type)throw new Error("Cannot write WK1 to JS string");var n,s,c=sa(),l=Ta(e["!ref"]),f=Array.isArray(e),u=[];wc(c,0,(n=1030,(s=oa(2)).write_shift(2,n),s)),wc(c,6,function(e){var t=oa(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),p=l.s.r;p<=h;++p)for(var d=da(p),m=l.s.c;m<=l.e.c;++m){p===l.s.r&&(u[m]=ga(m));var g=u[m]+d,v=f?(e[p]||[])[m]:e[g];if(v&&"z"!=v.t)if("n"==v.t)(0|v.v)==v.v&&v.v>=-32768&&v.v<=32767?wc(c,13,i(p,m,v.v)):wc(c,14,o(p,m,v.v));else wc(c,15,a(p,m,Sa(v).slice(0,239)))}return wc(c,1),c.end()},book_to_wk3:function(e,t){var r=t||{};if(+r.codepage>=0&&Ze(+r.codepage),"string"==r.type)throw new Error("Cannot write WK3 to JS string");var n=sa();wc(n,0,function(e){var t=oa(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=ba(s["!ref"]);r<c.e.r&&(r=c.e.r),n<c.e.c&&(n=c.e.c)}}r>8191&&(r=8191);return 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"]&&wc(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 c=Ta(s["!ref"]),l=Array.isArray(s),f=[],h=Math.min(c.e.r,8191),d=c.s.r;d<=h;++d)for(var m=da(d),v=c.s.c;v<=c.e.c;++v){d===c.s.r&&(f[v]=ga(v));var y=f[v]+m,b=l?(s[d]||[])[v]:s[y];if(b&&"z"!=b.t)if("n"==b.t)wc(n,23,p(d,v,o,b.v));else wc(n,22,u(d,v,o,Sa(b).slice(0,239)))}++o}}return wc(n,1),n.end()},to_workbook:function(e,r){switch(r.type){case"base64":return t(ut(ot(e)),r);case"binary":return t(ut(e),r);case"buffer":case"array":return t(e,r)}throw"Unsupported type "+r.type}}}();var ao=/^\s|\s$|[\t\n\r]/;function io(e,t){if(!t.bookSST)return"";var r=[Fr];r[r.length]=rn("sst",null,{xmlns:yn[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(null!=e[n]){var a=e[n],i="<si>";a.r?i+=a.r:(i+="<t",a.t||(a.t=""),a.t.match(ao)&&(i+=' xml:space="preserve"'),i+=">"+Wr(a.t)+"</t>"),i+="</si>",r[r.length]=i}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}var oo=function(e,t){var r=!1;return null==t&&(r=!0,t=oa(15+4*e.t.length)),t.write_shift(1,0),Ca(e.t,t),r?t.slice(0,t.l):t};function so(e){var t=sa();ca(t,159,function(e,t){return t||(t=oa(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}(e));for(var r=0;r<e.length;++r)ca(t,19,oo(e[r]));return ca(t,160),t.end()}function co(e){if(void 0!==tt)return tt.utils.encode(qe,e);for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function lo(e){var t,r,n=0,a=co(e),i=a.length+1;for((t=lt(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}var fo=function(){function e(e,r){switch(r.type){case"base64":return t(ot(e),r);case"binary":return t(e,r);case"buffer":return t(st&&Buffer.isBuffer(e)?e.toString("binary"):pt(e),r);case"array":return t(Rr(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[ya({r:t,c:s})]=l}}o=i.lastIndex}s>a.e.c&&(a.e.c=s)})),r["!ref"]=wa(a),r}return{to_workbook:function(t,r){return Aa(e(t,r),r)},to_sheet:e,from_sheet:function(e){for(var t,r=["{\\rtf1\\ansi"],n=Ta(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=ya({r:i,c:o});(t=a?(e[i]||[])[o]:e[s])&&(null!=t.v||t.f&&!t.F)&&(r.push(" "+(t.w||(Sa(t),t.w))),r.push("\\cell"))}r.push("\\pard\\intbl\\row")}return r.join("")+"}"}}}();function uo(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)}var ho=6;function po(e){return Math.floor((e+Math.round(128/ho)/256)*ho)}function mo(e){return Math.floor((e-5)/ho*100+.5)/100}function go(e){return Math.round((e*ho+5)/ho*256)/256}function vo(e){e.width?(e.wpx=po(e.width),e.wch=mo(e.wpx),e.MDW=ho):e.wpx?(e.wch=mo(e.wpx),e.width=go(e.wch),e.MDW=ho):"number"==typeof e.wch&&(e.width=go(e.wch),e.wpx=po(e.width),e.MDW=ho),e.customWidth&&delete e.customWidth}function yo(e){return 96*e/96}function bo(e){return 96*e/96}function wo(e,t){var r,n=[Fr,rn("styleSheet",null,{xmlns:yn[0],"xmlns:vt":mn})];return e.SSF&&null!=(r=function(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(r){for(var n=r[0];n<=r[1];++n)null!=e[n]&&(t[t.length]=rn("numFmt",null,{numFmtId:n,formatCode:Wr(e[n])}))})),1===t.length?"":(t[t.length]="</numFmts>",t[0]=rn("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(e.SSF))&&(n[n.length]=r),n[n.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',n[n.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',n[n.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',n[n.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(r=function(e){var t=[];return t[t.length]=rn("cellXfs",null),e.forEach((function(e){t[t.length]=rn("xf",null,e)})),t[t.length]="</cellXfs>",2===t.length?"":(t[0]=rn("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(t.cellXfs))&&(n[n.length]=r),n[n.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',n[n.length]='<dxfs count="0"/>',n[n.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',n.length>2&&(n[n.length]="</styleSheet>",n[1]=n[1].replace("/>",">")),n.join("")}function To(e,t,r){r||(r=oa(6+4*t.length)),r.write_shift(2,e),Ca(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return null==r.l&&(r.l=r.length),n}function Eo(e,t){t||(t=oa(153)),t.write_shift(2,20*e.sz),function(e,t){t||(t=oa(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);t.write_shift(1,r),t.write_shift(1,0)}(e,t),t.write_shift(2,e.bold?700:400);var r=0;"superscript"==e.vertAlign?r=1:"subscript"==e.vertAlign&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),Za(e.color,t);var n=0;return"major"==e.scheme&&(n=1),"minor"==e.scheme&&(n=2),t.write_shift(1,n),Ca(e.name,t),t.length>t.l?t.slice(0,t.l):t}var So,Ao=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Oo=ia;function _o(e,t){t||(t=oa(84)),So||(So=gr(Ao));var r=So[e.patternType];null==r&&(r=40),t.write_shift(4,r);var n=0;if(40!=r)for(Za({auto:1},t),Za({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function xo(e,t,r){r||(r=oa(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);return r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function Ro(e,t){return t||(t=oa(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var Co=ia;function ko(e){var t;ca(e,613,xa(1)),ca(e,46,(t||(t=oa(51)),t.write_shift(1,0),Ro(0,t),Ro(0,t),Ro(0,t),Ro(0,t),Ro(0,t),t.length>t.l?t.slice(0,t.l):t)),ca(e,614)}function Po(e){var t,r;ca(e,619,xa(1)),ca(e,48,(t={xfId:0,builtinId:0,name:"Normal"},r||(r=oa(52)),r.write_shift(4,t.xfId),r.write_shift(2,1),r.write_shift(1,+t.builtinId),r.write_shift(1,0),Wa(t.name||"",r),r.length>r.l?r.slice(0,r.l):r)),ca(e,620)}function Io(e){ca(e,508,function(e,t,r){var n=oa(2052);return n.write_shift(4,e),Wa(t,n),Wa(r,n),n.length>n.l?n.slice(0,n.l):n}(0,"TableStyleMedium9","PivotStyleMedium4")),ca(e,509)}function No(e,t){var r=sa();return ca(r,278),function(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach((function(e){for(var n=e[0];n<=e[1];++n)null!=t[n]&&++r})),0!=r&&(ca(e,615,xa(r)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(r){for(var n=r[0];n<=r[1];++n)null!=t[n]&&ca(e,44,To(n,t[n]))})),ca(e,616))}}(r,e.SSF),function(e){ca(e,611,xa(1)),ca(e,43,Eo({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),ca(e,612)}(r),function(e){ca(e,603,xa(2)),ca(e,45,_o({patternType:"none"})),ca(e,45,_o({patternType:"gray125"})),ca(e,604)}(r),ko(r),function(e){ca(e,626,xa(1)),ca(e,47,xo({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),ca(e,627)}(r),function(e,t){ca(e,617,xa(t.length)),t.forEach((function(t){ca(e,47,xo(t,0))})),ca(e,618)}(r,t.cellXfs),Po(r),function(e){ca(e,505,xa(0)),ca(e,506)}(r),Io(r),ca(r,279),r.end()}function Do(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var r=[Fr];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("")}function Lo(){var e,t,r=sa();return ca(r,332),ca(r,334,xa(1)),ca(r,335,((t=oa(12+2*(e={name:"XLDAPR",version:12e4,flags:3496657072}).name.length)).write_shift(4,e.flags),t.write_shift(4,e.version),Ca(e.name,t),t.slice(0,t.l))),ca(r,336),ca(r,339,function(e,t){var r=oa(8+2*t.length);return r.write_shift(4,e),Ca(t,r),r.slice(0,r.l)}(1,"XLDAPR")),ca(r,52),ca(r,35,xa(514)),ca(r,4096,xa(0)),ca(r,4097,ki(1)),ca(r,36),ca(r,53),ca(r,340),ca(r,337,function(e,t){var r=oa(8);return r.write_shift(4,e),r.write_shift(4,t?1:0),r}(1,!0)),ca(r,51,function(e){var t=oa(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r<e.length;++r)t.write_shift(4,e[r][0]),t.write_shift(4,e[r][1]);return t}([[1,0]])),ca(r,338),ca(r,333),r.end()}function Fo(){var e=[Fr];return e.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n <metadataTypes count="1">\n <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n </metadataTypes>\n <futureMetadata name="XLDAPR" count="1">\n <bk>\n <extLst>\n <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n </ext>\n </extLst>\n </bk>\n </futureMetadata>\n <cellMetadata count="1">\n <bk>\n <rc t="1" v="0"/>\n </bk>\n </cellMetadata>\n</metadata>'),e.join("")}var Mo=1024;function Uo(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),a=[rn("xml",null,{"xmlns:v":An,"xmlns:o":bn,"xmlns:x":wn,"xmlns:mv":Sn}).replace(/\/>/,">"),rn("o:shapelayout",rn("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),rn("v:shapetype",[rn("v:stroke",null,{joinstyle:"miter"}),rn("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];Mo<1e3*e;)Mo+=1e3;return t.forEach((function(e){var t=va(e[0]),r={color2:"#BEFF82",type:"gradient"};"gradient"==r.type&&(r.angle="-180");var n="gradient"==r.type?rn("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,i=rn("v:fill",n,r);++Mo,a=a.concat(["<v:shape"+tn({id:"_x0000_s"+Mo,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(e[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",i,rn("v:shadow",null,{on:"t",obscured:"t"}),rn("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",en("x:Anchor",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(",")),en("x:AutoFill","False"),en("x:Row",String(t.r)),en("x:Column",String(t.c)),e[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])})),a.push("</xml>"),a.join("")}function Bo(e){var t=[Fr,rn("comments",null,{xmlns:yn[0]})],r=[];return t.push("<authors>"),e.forEach((function(e){e[1].forEach((function(e){var n=Wr(e.a);-1==r.indexOf(n)&&(r.push(n),t.push("<author>"+n+"</author>")),e.T&&e.ID&&-1==r.indexOf("tc="+e.ID)&&(r.push("tc="+e.ID),t.push("<author>tc="+e.ID+"</author>"))}))})),0==r.length&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach((function(e){var n=0,a=[];if(e[1][0]&&e[1][0].T&&e[1][0].ID?n=r.indexOf("tc="+e[1][0].ID):e[1].forEach((function(e){e.a&&(n=r.indexOf(Wr(e.a))),a.push(e.t||"")})),t.push('<comment ref="'+e[0]+'" authorId="'+n+'"><text>'),a.length<=1)t.push(en("t",Wr(a[0]||"")));else{for(var i="Comment:\n "+a[0]+"\n",o=1;o<a.length;++o)i+="Reply:\n "+a[o]+"\n";t.push(en("t",Wr(i)))}t.push("</text></comment>")})),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function jo(e,t,r){var n=[Fr,rn("ThreadedComments",null,{xmlns:fn}).replace(/[\/]>/,">")];return e.forEach((function(e){var a="";(e[1]||[]).forEach((function(i,o){if(i.T){i.a&&-1==t.indexOf(i.a)&&t.push(i.a);var s={ref:e[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};0==o?a=s.id:s.parentId=a,i.ID=s.id,i.a&&(s.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(i.a)).slice(-12)+"}"),n.push(rn("threadedComment",en("text",i.t||""),s))}else delete i.ID}))})),n.push("</ThreadedComments>"),n.join("")}var Wo=Ra;function Ho(e){var t=sa(),r=[];return ca(t,628),ca(t,630),e.forEach((function(e){e[1].forEach((function(e){r.indexOf(e.a)>-1||(r.push(e.a.slice(0,54)),ca(t,632,function(e){return Ca(e.slice(0,54))}(e.a)))}))})),ca(t,631),ca(t,633),e.forEach((function(e){e[1].forEach((function(n){n.iauthor=r.indexOf(n.a);var a={s:va(e[0]),e:va(e[0])};ca(t,635,function(e,t){return null==t&&(t=oa(36)),t.write_shift(4,e[1].iauthor),Xa(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}([a,n])),n.t&&n.t.length>0&&ca(t,637,Na(n)),ca(t,636),delete n.iauthor}))})),ca(t,634),ca(t,629),t.end()}var Go=["xlsb","xlsm","xlam","biff8","xla"];var Vo=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?"":"$")+ga(c)+(o?"":"$")+da(s)}return function(n,a){return t=a,n.replace(e,r)}}(),$o=/(^|[^._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,zo=function(){return function(e,t){return e.replace($o,(function(e,r,n,a,i,o){var s=ma(a)-(n?0:t.c),c=pa(o)-(i?0:t.r);return r+"R"+(0==c?"":i?c+1:"["+c+"]")+"C"+(0==s?"":n?s+1:"["+s+"]")}))}}();function Ko(e,t){return e.replace($o,(function(e,r,n,a,i,o){return r+("$"==n?n+a:ga(ma(a)+t.c))+("$"==i?i+o:da(pa(o)+t.r))}))}function qo(e){e.l+=1}function Xo(e,t){var r=e.read_shift(1==t?1:2);return[16383&r,r>>14&1,r>>15&1]}function Yo(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return Jo(e);12==r.biff&&(n=4)}var a=e.read_shift(n),i=e.read_shift(n),o=Xo(e,2),s=Xo(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 Jo(e){var t=Xo(e,2),r=Xo(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 Zo(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return function(e){var t=Xo(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=Xo(e,2);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function Qo(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 es(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function ts(e){return[e.read_shift(1),e.read_shift(1)]}function rs(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]=xi(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:r[1]=ai[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:r[1]=Ya(e);break;case 2:r[1]=Fi(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function ns(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?qa:Hi)(e,8));return a}function as(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]=rs(e,r.biff);return o}function is(e,t,r){return e.l+=2,[Qo(e)]}function os(e){return e.l+=6,[]}function ss(e){return e.l+=2,[Ci(e),1&e.read_shift(2)]}var cs=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];var ls={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:ia},3:{n:"PtgAdd",f:qo},4:{n:"PtgSub",f:qo},5:{n:"PtgMul",f:qo},6:{n:"PtgDiv",f:qo},7:{n:"PtgPower",f:qo},8:{n:"PtgConcat",f:qo},9:{n:"PtgLt",f:qo},10:{n:"PtgLe",f:qo},11:{n:"PtgEq",f:qo},12:{n:"PtgGe",f:qo},13:{n:"PtgGt",f:qo},14:{n:"PtgNe",f:qo},15:{n:"PtgIsect",f:qo},16:{n:"PtgUnion",f:qo},17:{n:"PtgRange",f:qo},18:{n:"PtgUplus",f:qo},19:{n:"PtgUminus",f:qo},20:{n:"PtgPercent",f:qo},21:{n:"PtgParen",f:qo},22:{n:"PtgMissArg",f:qo},23:{n:"PtgStr",f:function(e,t,r){return e.l++,Ii(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++,ai[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++,Ya(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[Rs[a],xs[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]?xs:_s)[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,Zo(e,0,r)]}},37:{n:"PtgArea",f:function(e,t,r){return[(96&e[e.l++])>>5,Yo(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:ia},40:{n:"PtgMemNoMem",f:ia},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 Jo(e);var n=e.read_shift(12==r.biff?4:2),a=e.read_shift(12==r.biff?4:2),i=Xo(e,2),o=Xo(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,Zo(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)switch(r.biff){case 5:e.l+=12,6;break;case 12:12}return[n,a,Yo(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:{}},fs={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},us={1:{n:"PtgElfLel",f:ss},2:{n:"PtgElfRw",f:is},3:{n:"PtgElfCol",f:is},6:{n:"PtgElfRwV",f:is},7:{n:"PtgElfColV",f:is},10:{n:"PtgElfRadical",f:is},11:{n:"PtgElfRadicalS",f:os},13:{n:"PtgElfColS",f:os},15:{n:"PtgElfColSV",f:os},16:{n:"PtgElfRadicalLel",f:ss},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:cs[r>>2&31],idx:n,c:a,C:i}}},29:{n:"PtgSxName",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},hs={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:es},33:{n:"PtgAttrBaxcel",f:es},64:{n:"PtgAttrSpace",f:function(e){return e.read_shift(2),ts(e)}},65:{n:"PtgAttrSpaceSemi",f:function(e){return e.read_shift(2),ts(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 ps(e,t,r,n){if(n.biff<8)return ia(e,t);for(var a=e.l+t,i=[],o=0;o!==r.length;++o)switch(r[o][0]){case"PtgArray":r[o][1]=as(e,0,n),i.push(r[o][1]);break;case"PtgMemArea":r[o][2]=ns(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(ia(e,t)),i}function ds(e,t,r){for(var n,a,i=e.l+t,o=[];i!=e.l;)t=i-e.l,a=e[e.l],n=ls[a]||ls[fs[a]],24!==a&&25!==a||(n=(24===a?us:hs)[e[e.l+1]]),n&&n.f?o.push([n.n,n.f(e,t,r)]):ia(e,t);return o}function ms(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];if(o)if(2===o[0])a.push('"'+o[1].replace(/"/g,'""')+'"');else a.push(o[1]);else a.push("")}t.push(a.join(","))}return t.join(";")}var gs={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function vs(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 ys(e,t,r){var n=vs(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 bs(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,p=0,d="";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":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(),m>=0){switch(e[0][m][1][0]){case 0:g=kr(" ",e[0][m][1][1]);break;case 1:g=kr("\r",e[0][m][1][1]);break;default:if(g="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}o+=g,m=-1}u.push(o+gs[b[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=la(b[1][1],f,a),u.push(ua(s,l));break;case"PtgRefN":s=r?la(b[1][1],r,a):b[1][1],u.push(ua(s,l));break;case"PtgRef3d":h=b[1][1],s=la(b[1][2],f,a);d=ys(n,h,a);u.push(d+"!"+ua(s,l));break;case"PtgFunc":case"PtgFuncVar":var w=b[1][0],T=b[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(b[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":u.push(b[1]);break;case"PtgNum":u.push(String(b[1]));break;case"PtgStr":u.push('"'+b[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":c=fa(b[1][1],r?{s:r}:f,a),u.push(ha(c,a));break;case"PtgArea":c=fa(b[1][1],f,a),u.push(ha(c,a));break;case"PtgArea3d":h=b[1][1],c=b[1][2],d=ys(n,h,a),u.push(d+"!"+ha(c,a));break;case"PtgAttrSum":u.push("SUM("+u.pop()+")");break;case"PtgName":p=b[1][2];var S=(n.names||[])[p-1]||(n[0]||[])[p],A=S?S.Name:"SH33TJSNAME"+String(p);A&&"_xlfn."==A.slice(0,6)&&!a.xlfn&&(A=A.slice(6)),u.push(A);break;case"PtgNameX":var O,_=b[1][1];if(p=b[1][2],!(a.biff<=5)){var x="";if(14849==((n[_]||[])[0]||[])[0]||(1025==((n[_]||[])[0]||[])[0]?n[_][p]&&n[_][p].itab>0&&(x=n.SheetNames[n[_][p].itab-1]+"!"):x=n.SheetNames[p-1]+"!"),n[_]&&n[_][p])x+=n[_][p].Name;else if(n[0]&&n[0][p])x+=n[0][p].Name;else{var R=(vs(n,_,a)||"").split(";;");R[p-1]?x=R[p-1]:x+="SH33TJSERRX"}u.push(x);break}_<0&&(_=-_),n[_]&&(O=n[_][p]),O||(O={Name:"SH33TJSERRY"}),u.push(O.Name);break;case"PtgParen":var C="(",k=")";if(m>=0){switch(g="",e[0][m][1][0]){case 2:C=kr(" ",e[0][m][1][1])+C;break;case 3:C=kr("\r",e[0][m][1][1])+C;break;case 4:k=kr(" ",e[0][m][1][1])+k;break;case 5:k=kr("\r",e[0][m][1][1])+k;break;default:if(a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}u.push(C+u.pop()+k);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":u.push("#REF!");break;case"PtgExp":s={c:b[1][1],r:b[1][0]};var P={c:r.c,r:r.r};if(n.sharedf[ya(s)]){var I=n.sharedf[ya(s)];u.push(bs(I,f,P,n,a))}else{var N=!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(bs(o[1],f,P,n,a)),N=!0;break}N||u.push(b[1])}break;case"PtgArray":u.push("{"+ms(b[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=v;break;case"PtgMissArg":u.push("");break;case"PtgList":u.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!=a.biff&&m>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(e[0][v][0])){var D=!0;switch((b=e[0][m])[1][0]){case 4:D=!1;case 0:g=kr(" ",b[1][1]);break;case 5:D=!1;case 1:g=kr("\r",b[1][1]);break;default:if(g="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[1][0])}u.push((D?g:"")+u.pop()+(D?"":g)),m=-1}}if(u.length>1&&a.WTF)throw new Error("bad formula stack");return u[0]}function ws(e,t,r,n,a){var i=ji(t,r,a),o=function(e){if(null==e){var t=oa(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}return Ja("number"==typeof e?e:0)}(e.v),s=oa(6);s.write_shift(2,33),s.write_shift(4,0);for(var c=oa(e.bf.length),l=0;l<e.bf.length;++l)c[l]=e.bf[l];return dt([i,o,s,c])}function Ts(e,t,r){var n=e.read_shift(4),a=ds(e,n,r),i=e.read_shift(4);return[a,i>0?ps(e,i,a,r):null]}var Es=Ts,Ss=Ts,As=Ts,Os=Ts,_s={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"},xs={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"},Rs={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};var Cs="undefined"!=typeof Map;function ks(e,t,r){var n=0,a=e.length;if(r){if(Cs?r.has(t):Object.prototype.hasOwnProperty.call(r,t))for(var i=Cs?r.get(t):r[t];n<i.length;++n)if(e[i[n]].t===t)return e.Count++,i[n]}else for(;n<a;++n)if(e[n].t===t)return e.Count++,n;return e[a]={t},e.Count++,e.Unique++,r&&(Cs?(r.has(t)||r.set(t,[]),r.get(t).push(a)):(Object.prototype.hasOwnProperty.call(r,t)||(r[t]=[]),r[t].push(a))),a}function Ps(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(ho=t.MDW),null!=t.width?r.customWidth=1:null!=t.wpx?n=mo(t.wpx):null!=t.wch&&(n=t.wch),n>-1?(r.width=go(n),r.customWidth=1):null!=t.width&&(r.width=t.width),t.hidden&&(r.hidden=!0),null!=t.level&&(r.outlineLevel=r.level=t.level),r}function Is(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 Ns(e,t,r){var n=r.revssf[null!=t.z?t.z:"General"],a=60,i=e.length;if(null==n&&r.ssf)for(;a<392;++a)if(null==r.ssf[a]){ir(t.z,a),r.ssf[a]=t.z,r.revssf[t.z]=n=a;break}for(a=0;a!=i;++a)if(e[a].numFmtId===n)return a;return e[i]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function Ds(e,t,r){if(e&&e["!ref"]){var n=Ta(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+e["!ref"])}}var Ls=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Fs=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Ms(e,t,r,n){if(e.c&&r["!comments"].push([t,e.c]),void 0===e.v&&"string"!=typeof e.f||"z"===e.t&&!e.f)return"";var a="",i=e.t,o=e.v;if("z"!==e.t)switch(e.t){case"b":a=e.v?"1":"0";break;case"n":a=""+e.v;break;case"e":a=ai[e.v];break;case"d":n&&n.cellDates?a=xr(e.v,-1).toISOString():((e=Cr(e)).t="n",a=""+(e.v=br(xr(e.v)))),void 0===e.z&&(e.z=_t[14]);break;default:a=e.v}var s=en("v",Wr(a)),c={r:t},l=Ns(n.cellXfs,e,n);switch(0!==l&&(c.s=l),e.t){case"n":case"z":break;case"d":c.t="d";break;case"b":c.t="b";break;case"e":c.t="e";break;default:if(null==e.v){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){s=en("v",""+ks(n.Strings,e.v,n.revStrings)),c.t="s";break}c.t="str"}if(e.t!=i&&(e.t=i,e.v=o),"string"==typeof e.f&&e.f){var f=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;s=rn("f",Wr(e.f),f)+(null!=e.v?s:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(c.cm=1),rn("c",s,c)}function Us(e,t,r,n){var a,i=[Fr,rn("worksheet",null,{xmlns:yn[0],"xmlns:r":dn})],o=r.SheetNames[e],s="",c=r.Sheets[o];null==c&&(c={});var l=c["!ref"]||"A1",f=Ta(l);if(f.e.c>16383||f.e.r>1048575){if(t.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383),f.e.r=Math.min(f.e.c,1048575),l=wa(f)}n||(n={}),c["!comments"]=[];var u=[];!function(e,t,r,n,a){var i=!1,o={},s=null;if("xlsx"!==n.bookType&&t.vbaraw){var c=t.SheetNames[r];try{t.Workbook&&(c=t.Workbook.Sheets[r].CodeName||c)}catch(e){}i=!0,o.codeName=Jr(Wr(c))}if(e&&e["!outline"]){var l={summaryBelow:1,summaryRight:1};e["!outline"].above&&(l.summaryBelow=0),e["!outline"].left&&(l.summaryRight=0),s=(s||"")+rn("outlinePr",null,l)}(i||s)&&(a[a.length]=rn("sheetPr",s,o))}(c,r,e,t,i),i[i.length]=rn("dimension",null,{ref:l}),i[i.length]=function(e,t,r,n){var a={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(a.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),rn("sheetViews",rn("sheetView",null,a),{})}(0,0,0,r),t.sheetFormat&&(i[i.length]=rn("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),null!=c["!cols"]&&c["!cols"].length>0&&(i[i.length]=function(e,t){for(var r,n=["<cols>"],a=0;a!=t.length;++a)(r=t[a])&&(n[n.length]=rn("col",null,Ps(a,r)));return n[n.length]="</cols>",n.join("")}(0,c["!cols"])),i[a=i.length]="<sheetData/>",c["!links"]=[],null!=c["!ref"]&&(s=function(e,t,r,n){var a,i,o=[],s=[],c=Ta(e["!ref"]),l="",f="",u=[],h=0,p=0,d=e["!rows"],m=Array.isArray(e),g={r:f},v=-1;for(p=c.s.c;p<=c.e.c;++p)u[p]=ga(p);for(h=c.s.r;h<=c.e.r;++h){for(s=[],f=da(h),p=c.s.c;p<=c.e.c;++p){a=u[p]+f;var y=m?(e[h]||[])[p]:e[a];void 0!==y&&null!=(l=Ms(y,a,e,t))&&s.push(l)}(s.length>0||d&&d[h])&&(g={r:f},d&&d[h]&&((i=d[h]).hidden&&(g.hidden=1),v=-1,i.hpx?v=yo(i.hpx):i.hpt&&(v=i.hpt),v>-1&&(g.ht=v,g.customHeight=1),i.level&&(g.outlineLevel=i.level)),o[o.length]=rn("row",s.join(""),g))}if(d)for(;h<d.length;++h)d&&d[h]&&(g={r:h+1},(i=d[h]).hidden&&(g.hidden=1),v=-1,i.hpx?v=yo(i.hpx):i.hpt&&(v=i.hpt),v>-1&&(g.ht=v,g.customHeight=1),i.level&&(g.outlineLevel=i.level),o[o.length]=rn("row","",g));return o.join("")}(c,t,0,0),s.length>0&&(i[i.length]=s)),i.length>a+1&&(i[i.length]="</sheetData>",i[a]=i[a].replace("/>",">")),c["!protect"]&&(i[i.length]=function(e){var t={sheet:1};return Ls.forEach((function(r){null!=e[r]&&e[r]&&(t[r]="1")})),Fs.forEach((function(r){null==e[r]||e[r]||(t[r]="0")})),e.password&&(t.password=lo(e.password).toString(16).toUpperCase()),rn("sheetProtection",null,t)}(c["!protect"])),null!=c["!autofilter"]&&(i[i.length]=function(e,t,r,n){var a="string"==typeof e.ref?e.ref:wa(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,o=ba(a);o.s.r==o.e.r&&(o.e.r=ba(t["!ref"]).e.r,a=wa(o));for(var s=0;s<i.length;++s){var c=i[s];if("_xlnm._FilterDatabase"==c.Name&&c.Sheet==n){c.Ref="'"+r.SheetNames[n]+"'!"+a;break}}return s==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+a}),rn("autoFilter",null,{ref:a})}(c["!autofilter"],c,r,e)),null!=c["!merges"]&&c["!merges"].length>0&&(i[i.length]=function(e){if(0===e.length)return"";for(var t='<mergeCells count="'+e.length+'">',r=0;r!=e.length;++r)t+='<mergeCell ref="'+wa(e[r])+'"/>';return t+"</mergeCells>"}(c["!merges"]));var h,p,d=-1,m=-1;return c["!links"].length>0&&(i[i.length]="<hyperlinks>",c["!links"].forEach((function(e){e[1].Target&&(h={ref:e[0]},"#"!=e[1].Target.charAt(0)&&(m=ui(n,-1,Wr(e[1].Target).replace(/#.*$/,""),ci.HLINK),h["r:id"]="rId"+m),(d=e[1].Target.indexOf("#"))>-1&&(h.location=Wr(e[1].Target.slice(d+1))),e[1].Tooltip&&(h.tooltip=Wr(e[1].Tooltip)),i[i.length]=rn("hyperlink",null,h))})),i[i.length]="</hyperlinks>"),delete c["!links"],null!=c["!margins"]&&(i[i.length]=(Is(p=c["!margins"]),rn("pageMargins",null,p))),t&&!t.ignoreEC&&null!=t.ignoreEC||(i[i.length]=en("ignoredErrors",rn("ignoredError",null,{numberStoredAsText:1,sqref:l}))),u.length>0&&(m=ui(n,-1,"../drawings/drawing"+(e+1)+".xml",ci.DRAW),i[i.length]=rn("drawing",null,{"r:id":"rId"+m}),c["!drawing"]=u),c["!comments"].length>0&&(m=ui(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",ci.VML),i[i.length]=rn("legacyDrawing",null,{"r:id":"rId"+m}),c["!legacy"]=m),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function Bs(e,t,r,n){var a=function(e,t,r){var n=oa(145),a=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var i=320;a.hpx?i=20*yo(a.hpx):a.hpt&&(i=20*a.hpt),n.write_shift(2,i),n.write_shift(1,0);var o=0;a.level&&(o|=a.level),a.hidden&&(o|=16),(a.hpx||a.hpt)&&(o|=32),n.write_shift(1,o),n.write_shift(1,0);var s=0,c=n.l;n.l+=4;for(var l={r:e,c:0},f=0;f<16;++f)if(!(t.s.c>f+1<<10||t.e.c<f<<10)){for(var u=-1,h=-1,p=f<<10;p<f+1<<10;++p)l.c=p,(Array.isArray(r)?(r[l.r]||[])[l.c]:r[ya(l)])&&(u<0&&(u=p),h=p);u<0||(++s,n.write_shift(4,u),n.write_shift(4,h))}var d=n.l;return n.l=c,n.write_shift(4,s),n.l=d,n.length>n.l?n.slice(0,n.l):n}(n,r,t);(a.length>17||(t["!rows"]||[])[n])&&ca(e,0,a)}var js=qa,Ws=Xa;function Hs(e){return[Fa(e),Ya(e),"n"]}var Gs=qa,Vs=Xa;var $s=["left","right","top","bottom","header","footer"];function zs(e,t,r,n,a,i,o){if(void 0===t.v)return!1;var s="";switch(t.t){case"b":s=t.v?"1":"0";break;case"d":(t=Cr(t)).z=t.z||_t[14],t.v=br(xr(t.v)),t.t="n";break;case"n":case"e":s=""+t.v;break;default:s=t.v}var c={r,c:n};switch(c.s=Ns(a.cellXfs,t,a),t.l&&i["!links"].push([ya(c),t.l]),t.c&&i["!comments"].push([ya(c),t.c]),t.t){case"s":case"str":return a.bookSST?(s=ks(a.Strings,t.v,a.revStrings),c.t="s",c.v=s,o?ca(e,18,function(e,t,r){return null==r&&(r=oa(8)),Ma(t,r),r.write_shift(4,t.v),r}(0,c)):ca(e,7,function(e,t,r){return null==r&&(r=oa(12)),La(t,r),r.write_shift(4,t.v),r}(0,c))):(c.t="str",o?ca(e,17,function(e,t,r){return null==r&&(r=oa(8+4*e.v.length)),Ma(t,r),Ca(e.v,r),r.length>r.l?r.slice(0,r.l):r}(t,c)):ca(e,6,function(e,t,r){return null==r&&(r=oa(12+4*e.v.length)),La(t,r),Ca(e.v,r),r.length>r.l?r.slice(0,r.l):r}(t,c))),!0;case"n":return t.v==(0|t.v)&&t.v>-1e3&&t.v<1e3?o?ca(e,13,function(e,t,r){return null==r&&(r=oa(8)),Ma(t,r),za(e.v,r),r}(t,c)):ca(e,2,function(e,t,r){return null==r&&(r=oa(12)),La(t,r),za(e.v,r),r}(t,c)):o?ca(e,16,function(e,t,r){return null==r&&(r=oa(12)),Ma(t,r),Ja(e.v,r),r}(t,c)):ca(e,5,function(e,t,r){return null==r&&(r=oa(16)),La(t,r),Ja(e.v,r),r}(t,c)),!0;case"b":return c.t="b",o?ca(e,15,function(e,t,r){return null==r&&(r=oa(5)),Ma(t,r),r.write_shift(1,e.v?1:0),r}(t,c)):ca(e,4,function(e,t,r){return null==r&&(r=oa(9)),La(t,r),r.write_shift(1,e.v?1:0),r}(t,c)),!0;case"e":return c.t="e",o?ca(e,14,function(e,t,r){return null==r&&(r=oa(8)),Ma(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}(t,c)):ca(e,3,function(e,t,r){return null==r&&(r=oa(9)),La(t,r),r.write_shift(1,e.v),r}(t,c)),!0}return o?ca(e,12,function(e,t,r){return null==r&&(r=oa(4)),Ma(t,r)}(0,c)):ca(e,1,function(e,t,r){return null==r&&(r=oa(8)),La(t,r)}(0,c)),!0}function Ks(e,t){var r,n;t&&t["!merges"]&&(ca(e,177,(r=t["!merges"].length,null==n&&(n=oa(4)),n.write_shift(4,r),n)),t["!merges"].forEach((function(t){ca(e,176,Vs(t))})),ca(e,178))}function qs(e,t){t&&t["!cols"]&&(ca(e,390),t["!cols"].forEach((function(t,r){t&&ca(e,60,function(e,t,r){null==r&&(r=oa(18));var n=Ps(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,256*(n.width||10)),r.write_shift(4,0);var a=0;return t.hidden&&(a|=1),"number"==typeof n.width&&(a|=2),t.level&&(a|=t.level<<8),r.write_shift(2,a),r}(r,t))})),ca(e,391))}function Xs(e,t){var r,n;t&&t["!ref"]&&(ca(e,648),ca(e,649,(r=Ta(t["!ref"]),(n=oa(24)).write_shift(4,4),n.write_shift(4,1),Xa(r,n),n)),ca(e,650))}function Ys(e,t,r){t["!links"].forEach((function(t){if(t[1].Target){var n=ui(r,-1,t[1].Target.replace(/#.*$/,""),ci.HLINK);ca(e,494,function(e,t){var r=oa(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Xa({s:va(e[0]),e:va(e[0])},r),Va("rId"+t,r);var n=e[1].Target.indexOf("#");return Ca((-1==n?"":e[1].Target.slice(n+1))||"",r),Ca(e[1].Tooltip||"",r),Ca("",r),r.slice(0,r.l)}(t,n))}})),delete t["!links"]}function Js(e,t,r){ca(e,133),ca(e,137,function(e,t,r){null==r&&(r=oa(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}(0,r)),ca(e,138),ca(e,134)}function Zs(e,t){var r,n;t["!protect"]&&ca(e,535,(r=t["!protect"],null==n&&(n=oa(66)),n.write_shift(2,r.password?lo(r.password):0),n.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach((function(e){e[1]?n.write_shift(4,null==r[e[0]]||r[e[0]]?0:1):n.write_shift(4,null!=r[e[0]]&&r[e[0]]?0:1)})),n))}function Qs(e,t,r,n){var a=sa(),i=r.SheetNames[e],o=r.Sheets[i]||{},s=i;try{r&&r.Workbook&&(s=r.Workbook.Sheets[e].CodeName||s)}catch(e){}var c,l,f=Ta(o["!ref"]||"A1");if(f.e.c>16383||f.e.r>1048575){if(t.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383),f.e.r=Math.min(f.e.c,1048575)}return o["!links"]=[],o["!comments"]=[],ca(a,129),(r.vbaraw||o["!outline"])&&ca(a,147,function(e,t,r){null==r&&(r=oa(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var a=1;a<3;++a)r.write_shift(1,0);return Za({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),Ba(e,r),r.slice(0,r.l)}(s,o["!outline"])),ca(a,148,Ws(f)),Js(a,0,r.Workbook),qs(a,o),function(e,t,r,n){var a,i=Ta(t["!ref"]||"A1"),o="",s=[];ca(e,145);var c=Array.isArray(t),l=i.e.r;t["!rows"]&&(l=Math.max(i.e.r,t["!rows"].length-1));for(var f=i.s.r;f<=l;++f){o=da(f),Bs(e,t,i,f);var u=!1;if(f<=i.e.r)for(var h=i.s.c;h<=i.e.c;++h){f===i.s.r&&(s[h]=ga(h)),a=s[h]+o;var p=c?(t[f]||[])[h]:t[a];u=!!p&&zs(e,p,f,h,n,t,u)}}ca(e,146)}(a,o,0,t),Zs(a,o),function(e,t,r,n){if(t["!autofilter"]){var a=t["!autofilter"],i="string"==typeof a.ref?a.ref:wa(a.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var o=r.Workbook.Names,s=ba(i);s.s.r==s.e.r&&(s.e.r=ba(t["!ref"]).e.r,i=wa(s));for(var c=0;c<o.length;++c){var l=o[c];if("_xlnm._FilterDatabase"==l.Name&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+i;break}}c==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),ca(e,161,Xa(Ta(i))),ca(e,162)}}(a,o,r,e),Ks(a,o),Ys(a,o,n),o["!margins"]&&ca(a,476,(c=o["!margins"],null==l&&(l=oa(48)),Is(c),$s.forEach((function(e){Ja(c[e],l)})),l)),t&&!t.ignoreEC&&null!=t.ignoreEC||Xs(a,o),function(e,t,r,n){if(t["!comments"].length>0){var a=ui(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",ci.VML);ca(e,551,Va("rId"+a)),t["!legacy"]=a}}(a,o,e,n),ca(a,130),a.end()}var ec=[["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"]];var tc="][*?/\\".split("");function rc(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return tc.forEach((function(n){if(-1!=e.indexOf(n)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}})),r}function nc(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t,r,n,a=e.Workbook&&e.Workbook.Sheets||[];t=e.SheetNames,r=a,n=!!e.vbaraw,t.forEach((function(e,a){rc(e);for(var i=0;i<a;++i)if(e==t[i])throw new Error("Duplicate Sheet Name: "+e);if(n){var o=r&&r[a]&&r[a].CodeName||e;if(95==o.charCodeAt(0)&&o.length>22)throw new Error("Bad Code Name: Worksheet"+o)}}));for(var i=0;i<e.SheetNames.length;++i)Ds(e.Sheets[e.SheetNames[i]],e.SheetNames[i],i)}function ac(e){var t=[Fr];t[t.length]=rn("workbook",null,{xmlns:yn[0],"xmlns:r":dn});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(ec.forEach((function(t){null!=e.Workbook.WBProps[t[0]]&&e.Workbook.WBProps[t[0]]!=t[1]&&(n[t[0]]=e.Workbook.WBProps[t[0]])})),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=rn("workbookPr",null,n);var a=e.Workbook&&e.Workbook.Sheets||[],i=0;if(a&&a[0]&&a[0].Hidden){for(t[t.length]="<bookViews>",i=0;i!=e.SheetNames.length&&a[i]&&a[i].Hidden;++i);i==e.SheetNames.length&&(i=0),t[t.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",i=0;i!=e.SheetNames.length;++i){var o={name:Wr(e.SheetNames[i].slice(0,31))};if(o.sheetId=""+(i+1),o["r:id"]="rId"+(i+1),a[i])switch(a[i].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden"}t[t.length]=rn("sheet",null,o)}return t[t.length]="</sheets>",r&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach((function(e){var r={name:e.Name};e.Comment&&(r.comment=e.Comment),null!=e.Sheet&&(r.localSheetId=""+e.Sheet),e.Hidden&&(r.hidden="1"),e.Ref&&(t[t.length]=rn("definedName",Wr(e.Ref),r))})),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function ic(e,t){if(t.Workbook&&t.Workbook.Sheets){for(var r,n,a=t.Workbook.Sheets,i=0,o=-1,s=-1;i<a.length;++i)!a[i]||!a[i].Hidden&&-1==o?o=i:1==a[i].Hidden&&-1==s&&(s=i);if(!(s>o))ca(e,135),ca(e,158,(r=o,n||(n=oa(29)),n.write_shift(-4,0),n.write_shift(-4,460),n.write_shift(4,28800),n.write_shift(4,17600),n.write_shift(4,500),n.write_shift(4,r),n.write_shift(4,r),n.write_shift(1,120),n.length>n.l?n.slice(0,n.l):n)),ca(e,136)}}function oc(e,t){var r=sa();return ca(r,131),ca(r,128,function(e,t){t||(t=oa(127));for(var r=0;4!=r;++r)t.write_shift(4,0);return Ca("SheetJS",t),Ca(ze.version,t),Ca(ze.version,t),Ca("7262",t),t.length>t.l?t.slice(0,t.l):t}()),ca(r,153,function(e,t){t||(t=oa(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),Ba(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}(e.Workbook&&e.Workbook.WBProps||null)),ic(r,e),function(e,t){ca(e,143);for(var r=0;r!=t.SheetNames.length;++r){ca(e,156,(n={Hidden:t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]},(a=void 0)||(a=oa(127)),a.write_shift(4,n.Hidden),a.write_shift(4,n.iTabID),Va(n.strRelID,a),Ca(n.name.slice(0,31),a),a.length>a.l?a.slice(0,a.l):a))}var n,a;ca(e,144)}(r,e),ca(r,132),r.end()}function sc(e,t,r,n,a){return(".bin"===t.slice(-4)?Qs:Us)(e,r,n,a)}function cc(e,t,r){return(".bin"===t.slice(-4)?Ho:Bo)(e,r)}function lc(e,t){var r=[];return e.Props&&r.push(function(e,t){var r=[];return dr(Ti).map((function(e){for(var t=0;t<di.length;++t)if(di[t][1]==e)return di[t];for(t=0;t<vi.length;++t)if(vi[t][1]==e)return vi[t];throw e})).forEach((function(n){if(null!=e[n[1]]){var a=t&&t.Props&&null!=t.Props[n[1]]?t.Props[n[1]]:e[n[1]];"date"===n[2]&&(a=new Date(a).toISOString().replace(/\.\d*Z/,"Z")),"number"==typeof a?a=String(a):!0===a||!1===a?a=a?"1":"0":a instanceof Date&&(a=new Date(a).toISOString().replace(/\.\d*Z/,"")),r.push(en(Ti[n[1]]||n[1],a))}})),rn("DocumentProperties",r.join(""),{xmlns:bn})}(e.Props,t)),e.Custprops&&r.push(function(e,t){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",a=[];return e&&dr(e).forEach((function(t){if(Object.prototype.hasOwnProperty.call(e,t)){for(var n=0;n<di.length;++n)if(t==di[n][1])return;for(n=0;n<vi.length;++n)if(t==vi[n][1])return;for(n=0;n<r.length;++n)if(t==r[n])return;var i=e[t],o="string";"number"==typeof i?(o="float",i=String(i)):!0===i||!1===i?(o="boolean",i=i?"1":"0"):i=String(i),a.push(rn(Hr(t),i,{"dt:dt":o}))}})),t&&dr(t).forEach((function(r){if(Object.prototype.hasOwnProperty.call(t,r)&&(!e||!Object.prototype.hasOwnProperty.call(e,r))){var n=t[r],i="string";"number"==typeof n?(i="float",n=String(n)):!0===n||!1===n?(i="boolean",n=n?"1":"0"):n instanceof Date?(i="dateTime.tz",n=n.toISOString()):n=String(n),a.push(rn(Hr(r),n,{"dt:dt":i}))}})),"<"+n+' xmlns="'+bn+'">'+a.join("")+"</"+n+">"}(e.Props,e.Custprops)),r.join("")}function fc(e){return rn("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+zo(e.Ref,{r:0,c:0})})}function uc(e,t,r,n,a,i,o){if(!e||null==e.v&&null==e.f)return"";var s={};if(e.f&&(s["ss:Formula"]="="+Wr(zo(e.f,o))),e.F&&e.F.slice(0,t.length)==t){var c=va(e.F.slice(t.length+1));s["ss:ArrayRange"]="RC:R"+(c.r==o.r?"":"["+(c.r-o.r)+"]")+"C"+(c.c==o.c?"":"["+(c.c-o.c)+"]")}if(e.l&&e.l.Target&&(s["ss:HRef"]=Wr(e.l.Target),e.l.Tooltip&&(s["x:HRefScreenTip"]=Wr(e.l.Tooltip))),r["!merges"])for(var l=r["!merges"],f=0;f!=l.length;++f)l[f].s.c==o.c&&l[f].s.r==o.r&&(l[f].e.c>l[f].s.c&&(s["ss:MergeAcross"]=l[f].e.c-l[f].s.c),l[f].e.r>l[f].s.r&&(s["ss:MergeDown"]=l[f].e.r-l[f].s.r));var u="",h="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":u="Number",h=String(e.v);break;case"b":u="Boolean",h=e.v?"1":"0";break;case"e":u="Error",h=ai[e.v];break;case"d":u="DateTime",h=new Date(e.v).toISOString(),null==e.z&&(e.z=e.z||_t[14]);break;case"s":u="String",h=((e.v||"")+"").replace(Br,(function(e){return Ur[e]})).replace(Gr,(function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}))}var p=Ns(n.cellXfs,e,n);s["ss:StyleID"]="s"+(21+p),s["ss:Index"]=o.c+1;var d=null!=e.v?h:"",m="z"==e.t?"":'<Data ss:Type="'+u+'">'+d+"</Data>";return(e.c||[]).length>0&&(m+=e.c.map((function(e){var t=rn("ss:Data",(e.t||"").replace(/(\r\n|[\r\n])/g," "),{xmlns:"http://www.w3.org/TR/REC-html40"});return rn("Comment",t,{"ss:Author":e.a})})).join("")),rn("Cell",m,s)}function hc(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=bo(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function pc(e,t,r){var n=[],a=r.SheetNames[e],i=r.Sheets[a],o=i?function(e,t,r,n){if(!e)return"";if(!((n||{}).Workbook||{}).Names)return"";for(var a=n.Workbook.Names,i=[],o=0;o<a.length;++o){var s=a[o];s.Sheet==r&&(s.Name.match(/^_xlfn\./)||i.push(fc(s)))}return i.join("")}(i,0,e,r):"";return o.length>0&&n.push("<Names>"+o+"</Names>"),o=i?function(e,t,r,n){if(!e["!ref"])return"";var a=Ta(e["!ref"]),i=e["!merges"]||[],o=0,s=[];e["!cols"]&&e["!cols"].forEach((function(e,t){vo(e);var r=!!e.width,n=Ps(t,e),a={"ss:Index":t+1};r&&(a["ss:Width"]=po(n.width)),e.hidden&&(a["ss:Hidden"]="1"),s.push(rn("Column",null,a))}));for(var c=Array.isArray(e),l=a.s.r;l<=a.e.r;++l){for(var f=[hc(l,(e["!rows"]||[])[l])],u=a.s.c;u<=a.e.c;++u){var h=!1;for(o=0;o!=i.length;++o)if(!(i[o].s.c>u||i[o].s.r>l||i[o].e.c<u||i[o].e.r<l)){i[o].s.c==u&&i[o].s.r==l||(h=!0);break}if(!h){var p={r:l,c:u},d=ya(p),m=c?(e[l]||[])[u]:e[d];f.push(uc(m,d,e,t,0,0,p))}}f.push("</Row>"),f.length>2&&s.push(f.join(""))}return s.join("")}(i,t):"",o.length>0&&n.push("<Table>"+o+"</Table>"),n.push(function(e,t,r,n){if(!e)return"";var a=[];if(e["!margins"]&&(a.push("<PageSetup>"),e["!margins"].header&&a.push(rn("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&a.push(rn("Footer",null,{"x:Margin":e["!margins"].footer})),a.push(rn("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),a.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)a.push(rn("Visible",1==n.Workbook.Sheets[r].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<r&&(!n.Workbook.Sheets[i]||n.Workbook.Sheets[i].Hidden);++i);i==r&&a.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&a.push("<DisplayRightToLeft/>"),e["!protect"]&&(a.push(en("ProtectContents","True")),e["!protect"].objects&&a.push(en("ProtectObjects","True")),e["!protect"].scenarios&&a.push(en("ProtectScenarios","True")),null==e["!protect"].selectLockedCells||e["!protect"].selectLockedCells?null==e["!protect"].selectUnlockedCells||e["!protect"].selectUnlockedCells||a.push(en("EnableSelection","UnlockedCells")):a.push(en("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach((function(t){e["!protect"][t[0]]&&a.push("<"+t[1]+"/>")}))),0==a.length?"":rn("WorksheetOptions",a.join(""),{xmlns:wn})}(i,0,e,r)),n.join("")}function dc(e,t){t||(t={}),e.SSF||(e.SSF=Cr(_t)),e.SSF&&(sr(),or(e.SSF),t.revssf=vr(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Ns(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(lc(e,t)),r.push(""),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push(rn("Worksheet",pc(n,t,e),{"ss:Name":Wr(e.SheetNames[n])}));return r[2]=function(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach((function(e,t){var n=[];n.push(rn("NumberFormat",null,{"ss:Format":Wr(_t[e.numFmtId])}));var a={"ss:ID":"s"+(21+t)};r.push(rn("Style",n.join(""),a))})),rn("Styles",r.join(""))}(0,t),r[3]=function(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n<t.length;++n){var a=t[n];null==a.Sheet&&(a.Name.match(/^_xlfn\./)||r.push(fc(a)))}return rn("Names",r.join(""))}(e),Fr+rn("Workbook",r.join(""),{xmlns:Tn,"xmlns:o":bn,"xmlns:x":wn,"xmlns:ss":Tn,"xmlns:dt":En,"xmlns:html":On})}var mc="e0859ff2f94f6810ab9108002b27b3d9",gc="02d5cdd59c2e1b10939708002b2cf9ae",vc="05d5cdd59c2e1b10939708002b2cf9ae";function yc(e,t){var r=t||{},n=fr.utils.cfb_new({root:"R"}),a="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":a="/Workbook",r.biff=8;break;case"biff5":a="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return fr.utils.cfb_add(n,a,Cc(e,r)),8==r.biff&&(e.Props||e.Custprops)&&function(e,t){var r,n=[],a=[],i=[],o=0,s=mr(ei,"n"),c=mr(ti,"n");if(e.Props)for(r=dr(e.Props),o=0;o<r.length;++o)(Object.prototype.hasOwnProperty.call(s,r[o])?n:Object.prototype.hasOwnProperty.call(c,r[o])?a:i).push([r[o],e.Props[r[o]]]);if(e.Custprops)for(r=dr(e.Custprops),o=0;o<r.length;++o)Object.prototype.hasOwnProperty.call(e.Props||{},r[o])||(Object.prototype.hasOwnProperty.call(s,r[o])?n:Object.prototype.hasOwnProperty.call(c,r[o])?a:i).push([r[o],e.Custprops[r[o]]]);var l=[];for(o=0;o<i.length;++o)Si.indexOf(i[o][0])>-1||yi.indexOf(i[o][0])>-1||null!=i[o][1]&&l.push(i[o]);a.length&&fr.utils.cfb_add(t,"/SummaryInformation",_i(a,mc,c,ti)),(n.length||l.length)&&fr.utils.cfb_add(t,"/DocumentSummaryInformation",_i(n,gc,s,ei,l.length?l:null,vc))}(e,n),8==r.biff&&e.vbaraw&&function(e,t){t.FullPaths.forEach((function(r,n){if(0!=n){var a=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==a.slice(-1)&&fr.utils.cfb_add(e,a,t.FileIndex[n].content)}}))}(n,fr.read(e.vbaraw,{type:"string"==typeof e.vbaraw?"binary":"buffer"})),n}var bc={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[Da(e)]}},2:{f:function(e){return[Da(e),$a(e),"n"]}},3:{f:function(e){return[Da(e),e.read_shift(1),"e"]}},4:{f:function(e){return[Da(e),e.read_shift(1),"b"]}},5:{f:function(e){return[Da(e),Ya(e),"n"]}},6:{f:function(e){return[Da(e),Ra(e),"str"]}},7:{f:function(e){return[Da(e),e.read_shift(4),"s"]}},8:{f:function(e,t,r){var n=e.l+t,a=Da(e);a.r=r["!row"];var i=[a,Ra(e),"str"];if(r.cellFormula){e.l+=2;var o=Ss(e,n-e.l,r);i[3]=bs(o,0,a,r.supbooks,r)}else e.l=n;return i}},9:{f:function(e,t,r){var n=e.l+t,a=Da(e);a.r=r["!row"];var i=[a,Ya(e),"n"];if(r.cellFormula){e.l+=2;var o=Ss(e,n-e.l,r);i[3]=bs(o,0,a,r.supbooks,r)}else e.l=n;return i}},10:{f:function(e,t,r){var n=e.l+t,a=Da(e);a.r=r["!row"];var i=[a,e.read_shift(1),"b"];if(r.cellFormula){e.l+=2;var o=Ss(e,n-e.l,r);i[3]=bs(o,0,a,r.supbooks,r)}else e.l=n;return i}},11:{f:function(e,t,r){var n=e.l+t,a=Da(e);a.r=r["!row"];var i=[a,e.read_shift(1),"e"];if(r.cellFormula){e.l+=2;var o=Ss(e,n-e.l,r);i[3]=bs(o,0,a,r.supbooks,r)}else e.l=n;return i}},12:{f:function(e){return[Fa(e)]}},13:{f:function(e){return[Fa(e),$a(e),"n"]}},14:{f:function(e){return[Fa(e),e.read_shift(1),"e"]}},15:{f:function(e){return[Fa(e),e.read_shift(1),"b"]}},16:{f:Hs},17:{f:function(e){return[Fa(e),Ra(e),"str"]}},18:{f:function(e){return[Fa(e),e.read_shift(4),"s"]}},19:{f:Pa},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=Ha(e),o=As(e,0,r),s=ja(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=ni[n];c&&(t.rgb=uo(c));break;case 2:t.rgb=uo([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=Ra(e),n}},44:{f:function(e,t){return[e.read_shift(2),Ra(e)]}},45:{f:Oo},46:{f:Co},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:Ji},62:{f:function(e){return[Da(e),Pa(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=ya(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:ia,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=Ua(e,t-19),r}},148:{f:js,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?Ra(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=Ga(e,t-8),r.name=Ra(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:qa},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:Gs},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:Ra(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:Ga},357:{},358:{},359:{},360:{T:1},361:{},362:{f:qi},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=Ka(e),i=e.read_shift(1),o=[a];if(o[2]=i,r.cellFormula){var s=Es(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=[qa(e,16)];if(r.cellFormula){var i=Os(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 $s.forEach((function(r){t[r]=Ya(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=qa(e,16),a=ja(e),i=Ra(e),o=Ra(e),s=Ra(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:Ga},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:Wo},633:{T:1},634:{T:-1},635:{T:1,f:function(e){var t={};t.iauthor=e.read_shift(4);var r=qa(e,16);return t.rfx=r.s,t.ref=ya(r.s),e.l+=16,t}},636:{T:-1},637:{f:Ia},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:Ra(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:""}};function wc(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&&zn(r)&&e.push(r)}}function Tc(e,t,r){return e||(e=oa(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function Ec(e,t,r,n){if(null!=t.v)switch(t.t){case"d":case"n":var a="d"==t.t?br(xr(t.v)):t.v;return void(a==(0|a)&&a>=0&&a<65536?wc(e,2,(i=r,o=n,s=a,c=oa(9),Tc(c,i,o),c.write_shift(2,s),c)):wc(e,3,function(e,t,r){var n=oa(15);return Tc(n,e,t),n.write_shift(8,r,"f"),n}(r,n,a)));case"b":case"e":return void wc(e,5,function(e,t,r,n){var a=oa(9);return Tc(a,e,t),Pi(r,n||"b",a),a}(r,n,t.v,t.t));case"s":case"str":return void wc(e,4,function(e,t,r){var n=oa(8+2*r.length);return Tc(n,e,t),n.write_shift(1,r.length),n.write_shift(r.length,r,"sbcs"),n.l<n.length?n.slice(0,n.l):n}(r,n,(t.v||"").slice(0,255)))}var i,o,s,c;wc(e,1,Tc(null,r,n))}function Sc(e,t){var r=t||{};for(var n=sa(),a=0,i=0;i<e.SheetNames.length;++i)e.SheetNames[i]==r.sheet&&(a=i);if(0==a&&r.sheet&&e.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return wc(n,4==r.biff?1033:3==r.biff?521:9,Vi(0,16,r)),function(e,t,r,n){var a,i=Array.isArray(t),o=Ta(t["!ref"]||"A1"),s="",c=[];if(o.e.c>255||o.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");o.e.c=Math.min(o.e.c,255),o.e.r=Math.min(o.e.c,16383),a=wa(o)}for(var l=o.s.r;l<=o.e.r;++l){s=da(l);for(var f=o.s.c;f<=o.e.c;++f){l===o.s.r&&(c[f]=ga(f)),a=c[f]+s;var u=i?(t[l]||[])[f]:t[a];u&&Ec(e,u,l,f)}}}(n,e.Sheets[e.SheetNames[a]],0,r),wc(n,10),n.end()}function Ac(e,t,r){wc(e,49,function(e,t){var r=e.name||"Arial",n=t&&5==t.biff,a=oa(n?15+r.length:16+2*r.length);return a.write_shift(2,20*(e.sz||12)),a.write_shift(4,0),a.write_shift(2,400),a.write_shift(4,0),a.write_shift(2,0),a.write_shift(1,r.length),n||a.write_shift(1,1),a.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),a}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},r))}function Oc(e,t){if(t){var r=0;t.forEach((function(t,n){++r<=256&&t&&wc(e,125,function(e,t){var r=oa(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,256*e.width),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}(Ps(n,t),n))}))}}function _c(e,t,r,n,a){var i=16+Ns(a.cellXfs,t,a);if(null!=t.v||t.bf)if(t.bf)wc(e,6,ws(t,r,n,0,i));else switch(t.t){case"d":case"n":wc(e,515,function(e,t,r,n){var a=oa(14);return ji(e,t,n,a),Ja(r,a),a}(r,n,"d"==t.t?br(xr(t.v)):t.v,i));break;case"b":case"e":wc(e,517,function(e,t,r,n,a,i){var o=oa(8);return ji(e,t,n,o),Pi(r,i,o),o}(r,n,t.v,i,0,t.t));break;case"s":case"str":if(a.bookSST)wc(e,253,function(e,t,r,n){var a=oa(10);return ji(e,t,n,a),a.write_shift(4,r),a}(r,n,ks(a.Strings,t.v,a.revStrings),i));else wc(e,516,function(e,t,r,n,a){var i=!a||8==a.biff,o=oa(+i+8+(1+i)*r.length);return ji(e,t,n,o),o.write_shift(2,r.length),i&&o.write_shift(1,1),o.write_shift((1+i)*r.length,r,i?"utf16le":"sbcs"),o}(r,n,(t.v||"").slice(0,255),i,a));break;default:wc(e,513,ji(r,n,i))}else wc(e,513,ji(r,n,i))}function xc(e,t,r){var n,a,i,o=sa(),s=r.SheetNames[e],c=r.Sheets[s]||{},l=(r||{}).Workbook||{},f=(l.Sheets||[])[e]||{},u=Array.isArray(c),h=8==t.biff,p="",d=[],m=Ta(c["!ref"]||"A1"),g=h?65536:16384;if(m.e.c>255||m.e.r>=g){if(t.WTF)throw new Error("Range "+(c["!ref"]||"A1")+" exceeds format limit A1:IV16384");m.e.c=Math.min(m.e.c,255),m.e.r=Math.min(m.e.c,g-1)}wc(o,2057,Vi(0,16,t)),wc(o,13,ki(1)),wc(o,12,ki(100)),wc(o,15,Ri(!0)),wc(o,17,Ri(!1)),wc(o,16,Ja(.001)),wc(o,95,Ri(!0)),wc(o,42,Ri(!1)),wc(o,43,Ri(!1)),wc(o,130,ki(1)),wc(o,128,(a=[0,0],(i=oa(8)).write_shift(4,0),i.write_shift(2,a[0]?a[0]+1:0),i.write_shift(2,a[1]?a[1]+1:0),i)),wc(o,131,Ri(!1)),wc(o,132,Ri(!1)),h&&Oc(o,c["!cols"]),wc(o,512,function(e,t){var r=8!=t.biff&&t.biff?2:4,n=oa(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}(m,t)),h&&(c["!links"]=[]);for(var v=m.s.r;v<=m.e.r;++v){p=da(v);for(var y=m.s.c;y<=m.e.c;++y){v===m.s.r&&(d[y]=ga(y)),n=d[y]+p;var b=u?(c[v]||[])[y]:c[n];b&&(_c(o,b,v,y,t),h&&b.l&&c["!links"].push([n,b.l]))}}var w=f.CodeName||f.name||s;return h&&wc(o,574,function(e){var t=oa(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}((l.Views||[])[0])),h&&(c["!merges"]||[]).length&&wc(o,229,function(e){var t=oa(2+8*e.length);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)Gi(e[r],t);return t}(c["!merges"])),h&&function(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];wc(e,440,Xi(n)),n[1].Tooltip&&wc(e,2048,Yi(n))}delete t["!links"]}(o,c),wc(o,442,Mi(w)),h&&function(e,t){var r=oa(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),wc(e,2151,r),(r=oa(39)).write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),Gi(Ta(t["!ref"]||"A1"),r),r.write_shift(4,4),wc(e,2152,r)}(o,c),wc(o,10),o.end()}function Rc(e,t,r){var n,a=sa(),i=(e||{}).Workbook||{},o=i.Sheets||[],s=i.WBProps||{},c=8==r.biff,l=5==r.biff;(wc(a,2057,Vi(0,5,r)),"xla"==r.bookType&&wc(a,135),wc(a,225,c?ki(1200):null),wc(a,193,function(e,t){t||(t=oa(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}(2)),l&&wc(a,191),l&&wc(a,192),wc(a,226),wc(a,92,function(e,t){var r=!t||8==t.biff,n=oa(r?112:54);for(n.write_shift(8==t.biff?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l<n.length;)n.write_shift(1,r?0:32);return n}(0,r)),wc(a,66,ki(c?1200:1252)),c&&wc(a,353,ki(0)),c&&wc(a,448),wc(a,317,function(e){for(var t=oa(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}(e.SheetNames.length)),c&&e.vbaraw&&wc(a,211),c&&e.vbaraw)&&wc(a,442,Mi(s.CodeName||"ThisWorkbook"));wc(a,156,ki(17)),wc(a,25,Ri(!1)),wc(a,18,Ri(!1)),wc(a,19,ki(0)),c&&wc(a,431,Ri(!1)),c&&wc(a,444,ki(0)),wc(a,61,((n=oa(18)).write_shift(2,0),n.write_shift(2,0),n.write_shift(2,29280),n.write_shift(2,17600),n.write_shift(2,56),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,1),n.write_shift(2,500),n)),wc(a,64,Ri(!1)),wc(a,141,ki(0)),wc(a,34,Ri("true"==function(e){return e.Workbook&&e.Workbook.WBProps&&$r(e.Workbook.WBProps.date1904)?"true":"false"}(e))),wc(a,14,Ri(!0)),c&&wc(a,439,Ri(!1)),wc(a,218,ki(0)),Ac(a,0,r),function(e,t,r){t&&[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var a=n[0];a<=n[1];++a)null!=t[a]&&wc(e,1054,zi(a,t[a],r))}))}(a,e.SSF,r),function(e,t){for(var r=0;r<16;++r)wc(e,224,Ki({numFmtId:0,style:!0},0,t));t.cellXfs.forEach((function(r){wc(e,224,Ki(r,0,t))}))}(a,r),c&&wc(a,352,Ri(!1));var f=a.end(),u=sa();c&&wc(u,140,function(e){return e||(e=oa(4)),e.write_shift(2,1),e.write_shift(2,1),e}()),c&&r.Strings&&function(e,t,r,n){var a=n||(r||[]).length||0;if(a<=8224)return wc(e,t,r,a);var i=t;if(!isNaN(i)){for(var o=r.parts||[],s=0,c=0,l=0;l+(o[s]||8224)<=8224;)l+=o[s]||8224,s++;var f=e.next(4);for(f.write_shift(2,i),f.write_shift(2,l),e.push(r.slice(c,c+l)),c+=l;c<a;){for((f=e.next(4)).write_shift(2,60),l=0;l+(o[s]||8224)<=8224;)l+=o[s]||8224,s++;f.write_shift(2,l),e.push(r.slice(c,c+l)),c+=l}}}(u,252,function(e,t){var r=oa(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],a=0;a<e.length;++a)n[a]=Ni(e[a]);var i=dt([r].concat(n));return i.parts=[r.length].concat(n.map((function(e){return e.length}))),i}(r.Strings)),wc(u,10);var h=u.end(),p=sa(),d=0,m=0;for(m=0;m<e.SheetNames.length;++m)d+=(c?12:11)+(c?2:1)*e.SheetNames[m].length;var g=f.length+d+h.length;for(m=0;m<e.SheetNames.length;++m){wc(p,133,$i({pos:g,hs:(o[m]||{}).Hidden||0,dt:0,name:e.SheetNames[m]},r)),g+=t[m].length}var v=p.end();if(d!=v.length)throw new Error("BS8 "+d+" != "+v.length);var y=[];return f.length&&y.push(f),v.length&&y.push(v),h.length&&y.push(h),dt(y)}function Cc(e,t){for(var r=0;r<=e.SheetNames.length;++r){var n=e.Sheets[e.SheetNames[r]];if(n&&n["!ref"])ba(n["!ref"]).e.c>255&&"undefined"!=typeof console&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}var a=t||{};switch(a.biff||2){case 8:case 5:return function(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=Cr(_t)),e&&e.SSF&&(sr(),or(e.SSF),r.revssf=vr(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,il(r),r.cellXfs=[],Ns(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var a=0;a<e.SheetNames.length;++a)n[n.length]=xc(a,r,e);return n.unshift(Rc(e,n,r)),dt(n)}(e,t);case 4:case 3:case 2:return Sc(e,t)}throw new Error("invalid type "+a.bookType+" for BIFF")}function kc(e,t,r,n){for(var a=e["!merges"]||[],i=[],o=t.s.c;o<=t.e.c;++o){for(var s=0,c=0,l=0;l<a.length;++l)if(!(a[l].s.r>r||a[l].s.c>o||a[l].e.r<r||a[l].e.c<o)){if(a[l].s.r<r||a[l].s.c<o){s=-1;break}s=a[l].e.r-a[l].s.r+1,c=a[l].e.c-a[l].s.c+1;break}if(!(s<0)){var f=ya({r,c:o}),u=n.dense?(e[r]||[])[o]:e[f],h=u&&null!=u.v&&(u.h||Vr(u.w||(Sa(u),u.w)||""))||"",p={};s>1&&(p.rowspan=s),c>1&&(p.colspan=c),n.editable?h='<span contenteditable="true">'+h+"</span>":u&&(p["data-t"]=u&&u.t||"z",null!=u.v&&(p["data-v"]=u.v),null!=u.z&&(p["data-z"]=u.z),u.l&&"#"!=(u.l.Target||"#").charAt(0)&&(h='<a href="'+u.l.Target+'">'+h+"</a>")),p.id=(n.id||"sjs")+"-"+f,i.push(rn("td",h,p))}}return"<tr>"+i.join("")+"</tr>"}var Pc='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',Ic="</body></html>";function Nc(e,t,r){return[].join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function Dc(e,t){var r=t||{},n=null!=r.header?r.header:Pc,a=null!=r.footer?r.footer:Ic,i=[n],o=ba(e["!ref"]);r.dense=Array.isArray(e),i.push(Nc(0,0,r));for(var s=o.s.r;s<=o.e.r;++s)i.push(kc(e,o,s,r));return i.push("</table>"+a),i.join("")}function Lc(e,t,r){var n=r||{};var a=0,i=0;if(null!=n.origin)if("number"==typeof n.origin)a=n.origin;else{var o="string"==typeof n.origin?va(n.origin):n.origin;a=o.r,i=o.c}var s=t.getElementsByTagName("tr"),c=Math.min(n.sheetRows||1e7,s.length),l={s:{r:0,c:0},e:{r:a,c:i}};if(e["!ref"]){var f=ba(e["!ref"]);l.s.r=Math.min(l.s.r,f.s.r),l.s.c=Math.min(l.s.c,f.s.c),l.e.r=Math.max(l.e.r,f.e.r),l.e.c=Math.max(l.e.c,f.e.c),-1==a&&(l.e.r=a=f.e.r+1)}var u=[],h=0,p=e["!rows"]||(e["!rows"]=[]),d=0,m=0,g=0,v=0,y=0,b=0;for(e["!cols"]||(e["!cols"]=[]);d<s.length&&m<c;++d){var w=s[d];if(Mc(w)){if(n.display)continue;p[m]={hidden:!0}}var T=w.children;for(g=v=0;g<T.length;++g){var E=T[g];if(!n.display||!Mc(E)){var S=E.hasAttribute("data-v")?E.getAttribute("data-v"):E.hasAttribute("v")?E.getAttribute("v"):Zr(E.innerHTML),A=E.getAttribute("data-z")||E.getAttribute("z");for(h=0;h<u.length;++h){var O=u[h];O.s.c==v+i&&O.s.r<m+a&&m+a<=O.e.r&&(v=O.e.c+1-i,h=-1)}b=+E.getAttribute("colspan")||1,((y=+E.getAttribute("rowspan")||1)>1||b>1)&&u.push({s:{r:m+a,c:v+i},e:{r:m+a+(y||1)-1,c:v+i+(b||1)-1}});var _={t:"s",v:S},x=E.getAttribute("data-t")||E.getAttribute("t")||"";null!=S&&(0==S.length?_.t=x||"z":n.raw||0==S.trim().length||"s"==x||("TRUE"===S?_={t:"b",v:!0}:"FALSE"===S?_={t:"b",v:!1}:isNaN(Pr(S))?isNaN(Nr(S).getDate())||(_={t:"d",v:xr(S)},n.cellDates||(_={t:"n",v:br(_.v)}),_.z=n.dateNF||_t[14]):_={t:"n",v:Pr(S)})),void 0===_.z&&null!=A&&(_.z=A);var R="",C=E.getElementsByTagName("A");if(C&&C.length)for(var k=0;k<C.length&&(!C[k].hasAttribute("href")||"#"==(R=C[k].getAttribute("href")).charAt(0));++k);R&&"#"!=R.charAt(0)&&(_.l={Target:R}),n.dense?(e[m+a]||(e[m+a]=[]),e[m+a][v+i]=_):e[ya({c:v+i,r:m+a})]=_,l.e.c<v+i&&(l.e.c=v+i),v+=b}}++m}return u.length&&(e["!merges"]=(e["!merges"]||[]).concat(u)),l.e.r=Math.max(l.e.r,m-1+a),e["!ref"]=wa(l),m>=c&&(e["!fullref"]=wa((l.e.r=s.length-d+m-1+a,l))),e}function Fc(e,t){return Lc((t||{}).dense?[]:{},e,t)}function Mc(e){var t="",r=function(e){return e.ownerDocument.defaultView&&"function"==typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"==typeof getComputedStyle?getComputedStyle:null}(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),"none"===t}var Uc=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+tn({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return Fr+t}}(),Bc=function(){var e=" <table:table-cell />\n",t=function(t,r,n){var a=[];a.push(' <table:table table:name="'+Wr(r.SheetNames[n])+'" table:style-name="ta1">\n');var i=0,o=0,s=ba(t["!ref"]||"A1"),c=t["!merges"]||[],l=0,f=Array.isArray(t);if(t["!cols"])for(o=0;o<=s.e.c;++o)a.push(" <table:table-column"+(t["!cols"][o]?' table:style-name="co'+t["!cols"][o].ods+'"':"")+"></table:table-column>\n");var u="",h=t["!rows"]||[];for(i=0;i<s.s.r;++i)u=h[i]?' table:style-name="ro'+h[i].ods+'"':"",a.push(" <table:table-row"+u+"></table:table-row>\n");for(;i<=s.e.r;++i){for(u=h[i]?' table:style-name="ro'+h[i].ods+'"':"",a.push(" <table:table-row"+u+">\n"),o=0;o<s.s.c;++o)a.push(e);for(;o<=s.e.c;++o){var p=!1,d={},m="";for(l=0;l!=c.length;++l)if(!(c[l].s.c>o||c[l].s.r>i||c[l].e.c<o||c[l].e.r<i)){c[l].s.c==o&&c[l].s.r==i||(p=!0),d["table:number-columns-spanned"]=c[l].e.c-c[l].s.c+1,d["table:number-rows-spanned"]=c[l].e.r-c[l].s.r+1;break}if(p)a.push(" <table:covered-table-cell/>\n");else{var g=ya({r:i,c:o}),v=f?(t[i]||[])[o]:t[g];if(v&&v.f&&(d["table:formula"]=Wr(("of:="+v.f.replace($o,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")),v.F&&v.F.slice(0,g.length)==g)){var y=ba(v.F);d["table:number-matrix-columns-spanned"]=y.e.c-y.s.c+1,d["table:number-matrix-rows-spanned"]=y.e.r-y.s.r+1}if(v){switch(v.t){case"b":m=v.v?"TRUE":"FALSE",d["office:value-type"]="boolean",d["office:boolean-value"]=v.v?"true":"false";break;case"n":m=v.w||String(v.v||0),d["office:value-type"]="float",d["office:value"]=v.v||0;break;case"s":case"str":m=null==v.v?"":v.v,d["office:value-type"]="string";break;case"d":m=v.w||xr(v.v).toISOString(),d["office:value-type"]="date",d["office:date-value"]=xr(v.v).toISOString(),d["table:style-name"]="ce1";break;default:a.push(e);continue}var b=Wr(m).replace(/ +/g,(function(e){return'<text:s text:c="'+e.length+'"/>'})).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>");if(v.l&&v.l.Target){var w=v.l.Target;"#"==(w="#"==w.charAt(0)?"#"+w.slice(1).replace(/\./,"!"):w).charAt(0)||w.match(/^\w+:/)||(w="../"+w),b=rn("text:a",b,{"xlink:href":w.replace(/&/g,"&")})}a.push(" "+rn("table:table-cell",rn("text:p",b,{}),d)+"\n")}else a.push(e)}}a.push(" </table:table-row>\n")}return a.push(" </table:table>\n"),a.join("")};return function(e,r){var n=[Fr],a=tn({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),i=tn({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==r.bookType?(n.push("<office:document"+a+i+">\n"),n.push(pi().replace(/office:document-meta/g,"office:meta"))):n.push("<office:document-content"+a+">\n"),function(e,t){e.push(" <office:automatic-styles>\n"),e.push(' <number:date-style style:name="N37" number:automatic-order="true">\n'),e.push(' <number:month number:style="long"/>\n'),e.push(" <number:text>/</number:text>\n"),e.push(' <number:day number:style="long"/>\n'),e.push(" <number:text>/</number:text>\n"),e.push(" <number:year/>\n"),e.push(" </number:date-style>\n");var r=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!cols"])for(var n=0;n<t["!cols"].length;++n)if(t["!cols"][n]){var a=t["!cols"][n];if(null==a.width&&null==a.wpx&&null==a.wch)continue;vo(a),a.ods=r;var i=t["!cols"][n].wpx+"px";e.push(' <style:style style:name="co'+r+'" style:family="table-column">\n'),e.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+i+'"/>\n'),e.push(" </style:style>\n"),++r}}));var n=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!rows"])for(var r=0;r<t["!rows"].length;++r)if(t["!rows"][r]){t["!rows"][r].ods=n;var a=t["!rows"][r].hpx+"px";e.push(' <style:style style:name="ro'+n+'" style:family="table-row">\n'),e.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+a+'"/>\n'),e.push(" </style:style>\n"),++n}})),e.push(' <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),e.push(' <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),e.push(" </style:style>\n"),e.push(' <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),e.push(" </office:automatic-styles>\n")}(n,e),n.push(" <office:body>\n"),n.push(" <office:spreadsheet>\n");for(var o=0;o!=e.SheetNames.length;++o)n.push(t(e.Sheets[e.SheetNames[o]],e,o));return n.push(" </office:spreadsheet>\n"),n.push(" </office:body>\n"),"fods"==r.bookType?n.push("</office:document>"):n.push("</office:document-content>"),n.join("")}}();function jc(e,t){if("fods"==t.bookType)return Bc(e,t);var r=Lr(),n="",a=[],i=[];return Dr(r,n="mimetype","application/vnd.oasis.opendocument.spreadsheet"),Dr(r,n="content.xml",Bc(e,t)),a.push([n,"text/xml"]),i.push([n,"ContentFile"]),Dr(r,n="styles.xml",Uc(e,t)),a.push([n,"text/xml"]),i.push([n,"StylesFile"]),Dr(r,n="meta.xml",Fr+pi()),a.push([n,"text/xml"]),i.push([n,"MetadataFile"]),Dr(r,n="manifest.rdf",function(e){var t,r,n=[Fr];n.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var a=0;a!=e.length;++a)n.push(hi(e[a][0],e[a][1])),n.push((t="",r=e[a][0],[' <rdf:Description rdf:about="'+t+'">\n',' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+r+'"/>\n'," </rdf:Description>\n"].join("")));return n.push(hi("","Document","pkg")),n.push("</rdf:RDF>"),n.join("")}(i)),a.push([n,"application/rdf+xml"]),Dr(r,n="META-INF/manifest.xml",function(e){var t=[Fr];t.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),t.push(' <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var r=0;r<e.length;++r)t.push(' <manifest:file-entry manifest:full-path="'+e[r][0]+'" manifest:media-type="'+e[r][1]+'"/>\n');return t.push("</manifest:manifest>"),t.join("")}(a)),r}function Wc(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Hc(e){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):ut(Jr(e))}function Gc(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 Vc(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 $c(e){var t=new Uint8Array(7);t[0]=127&e;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383)break e;if(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)break e;if(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)break e;if(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)break e;if(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103)break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function zc(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 Kc(e){for(var t=[],r=[0];r[0]<e.length;){var n,a=r[0],i=Vc(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=Vc(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 qc(e){var t=[];return e.forEach((function(e,r){e.forEach((function(e){e.data&&(t.push($c(8*r+e.type)),2==e.type&&t.push($c(e.data.length)),t.push(e.data))}))})),Gc(t)}function Xc(e){for(var t,r=[],n=[0];n[0]<e.length;){var a=Vc(e,n),i=Kc(e.slice(n[0],n[0]+a));n[0]+=a;var o={id:zc(i[1][0].data),messages:[]};i[2].forEach((function(t){var r=Kc(t.data),a=zc(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=zc(i[3][0].data)>>>0>0),r.push(o)}return r}function Yc(e){var t=[];return e.forEach((function(e){var r=[];r[1]=[{data:$c(e.id),type:0}],r[2]=[],null!=e.merge&&(r[3]=[{data:$c(+!!e.merge),type:0}]);var n=[];e.messages.forEach((function(e){n.push(e.data),e.meta[3]=[{type:0,data:$c(e.data.length)}],r[2].push({data:qc(e.meta),type:2})}));var a=qc(r);t.push($c(a.length)),t.push(a),n.forEach((function(e){return t.push(e)}))})),Gc(t)}function Jc(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=Vc(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=[Gc(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=Gc(a);if(f.length!=n)throw new Error("Unexpected length: ".concat(f.length," != ").concat(n));return f}function Zc(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(Jc(n,e.slice(r,r+a))),r+=a}if(r!==e.length)throw new Error("data is not a valid framed stream!");return Gc(t)}function Qc(e){for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,268435455),a=new Uint8Array(4);t.push(a);var i=$c(n),o=i.length;t.push(i),n<=60?(o++,t.push(new Uint8Array([n-1<<2]))):n<=256?(o+=2,t.push(new Uint8Array([240,n-1&255]))):n<=65536?(o+=3,t.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(o+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(o+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),o+=n,a[0]=0,a[1]=255&o,a[2]=o>>8&255,a[3]=o>>16&255,r+=n}return Gc(t)}function el(e,t){var r=new Uint8Array(32),n=Wc(r),a=12,i=0;switch(r[0]=5,e.t){case"n":r[1]=2,function(e,t,r){var n=Math.floor(0==r?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,a=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(127&n)<<1;for(var i=0;a>=1;++i,a/=256)e[t+i]=255&a;e[t+15]|=r>=0?0:128}(r,a,e.v),i|=1,a+=16;break;case"b":r[1]=6,n.setFloat64(a,e.v?1:0,!0),i|=2,a+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(a,t.indexOf(e.v),!0),i|=8,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,i,!0),r.slice(0,a)}function tl(e,t){var r=new Uint8Array(32),n=Wc(r),a=12,i=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(a,e.v,!0),i|=32,a+=8;break;case"b":r[2]=6,n.setFloat64(a,e.v?1:0,!0),i|=32,a+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(a,t.indexOf(e.v),!0),i|=16,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,i,!0),r.slice(0,a)}function rl(e){return Vc(Kc(e)[1][0].data)}function nl(e,t,r){var n,a,i,o;if(!(null==(n=e[6])?void 0:n[0])||!(null==(a=e[7])?void 0:a[0]))throw"Mutation only works on post-BNC storages!";if((null==(o=null==(i=e[8])?void 0:i[0])?void 0:o.data)&&zc(e[8][0].data)>0||!1)throw"Math only works with normal offsets";for(var s=0,c=Wc(e[7][0].data),l=0,f=[],u=Wc(e[4][0].data),h=0,p=[],d=0;d<t.length;++d)if(null!=t[d]){var m,g;switch(c.setUint16(2*d,l,!0),u.setUint16(2*d,h,!0),typeof t[d]){case"string":m=el({t:"s",v:t[d]},r),g=tl({t:"s",v:t[d]},r);break;case"number":m=el({t:"n",v:t[d]},r),g=tl({t:"n",v:t[d]},r);break;case"boolean":m=el({t:"b",v:t[d]},r),g=tl({t:"b",v:t[d]},r);break;default:throw new Error("Unsupported value "+t[d])}f.push(m),l+=m.length,p.push(g),h+=g.length,++s}else c.setUint16(2*d,65535,!0),u.setUint16(2*d,65535);for(e[2][0].data=$c(s);d<e[7][0].data.length/2;++d)c.setUint16(2*d,65535,!0),u.setUint16(2*d,65535,!0);return e[6][0].data=Gc(f),e[3][0].data=Gc(p),s}function al(e){return function(t){for(var r=0;r!=e.length;++r){var n=e[r];void 0===t[n[0]]&&(t[n[0]]=n[1]),"n"===n[2]&&(t[n[0]]=Number(t[n[0]]))}}}function il(e){al([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function ol(e,t){return"ods"==t.bookType?jc(e,t):"numbers"==t.bookType?function(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=ba(r["!ref"]);n.s.r=n.s.c=0;var a=!1;n.e.c>9&&(a=!0,n.e.c=9),n.e.r>49&&(a=!0,n.e.r=49),a&&console.error("The Numbers writer is currently limited to ".concat(wa(n)));var i=gl(r,{range:n,header:1}),o=["~Sh33tJ5~"];i.forEach((function(e){return e.forEach((function(e){"string"==typeof e&&o.push(e)}))}));var s={},c=[],l=fr.read(t.numbers,{type:"base64"});l.FileIndex.map((function(e,t){return[e,l.FullPaths[t]]})).forEach((function(e){var t=e[0],r=e[1];2==t.type&&t.name.match(/\.iwa/)&&Xc(Zc(t.content)).forEach((function(e){c.push(e.id),s[e.id]={deps:[],location:r,type:zc(e.messages[0].meta[1][0].data)}}))})),c.sort((function(e,t){return e-t}));var f=c.filter((function(e){return e>1})).map((function(e){return[e,$c(e)]}));l.FileIndex.map((function(e,t){return[e,l.FullPaths[t]]})).forEach((function(e){var t=e[0];e[1],t.name.match(/\.iwa/)&&Xc(Zc(t.content)).forEach((function(e){e.messages.forEach((function(t){f.forEach((function(t){e.messages.some((function(e){return 11006!=zc(e.meta[1][0].data)&&function(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n<t.length;++n)if(e[r+n]!=t[n])continue e;return!0}return!1}(e.data,t[1])}))&&s[t[0]].deps.push(e.id)}))}))}))}));for(var u,h=fr.find(l,s[1].location),p=Xc(Zc(h.content)),d=0;d<p.length;++d){var m=p[d];1==m.id&&(u=m)}var g=rl(Kc(u.messages[0].data)[1][0].data);for(p=Xc(Zc((h=fr.find(l,s[g].location)).content)),d=0;d<p.length;++d)(m=p[d]).id==g&&(u=m);for(g=rl(Kc(u.messages[0].data)[2][0].data),p=Xc(Zc((h=fr.find(l,s[g].location)).content)),d=0;d<p.length;++d)(m=p[d]).id==g&&(u=m);for(g=rl(Kc(u.messages[0].data)[2][0].data),p=Xc(Zc((h=fr.find(l,s[g].location)).content)),d=0;d<p.length;++d)(m=p[d]).id==g&&(u=m);var v=Kc(u.messages[0].data);v[6][0].data=$c(n.e.r+1),v[7][0].data=$c(n.e.c+1);for(var y=rl(v[46][0].data),b=fr.find(l,s[y].location),w=Xc(Zc(b.content)),T=0;T<w.length&&w[T].id!=y;++T);if(w[T].id!=y)throw"Bad ColumnRowUIDMapArchive";var E=Kc(w[T].messages[0].data);E[1]=[],E[2]=[],E[3]=[];for(var S=0;S<=n.e.c;++S){var A=[];A[1]=A[2]=[{type:0,data:$c(S+420690)}],E[1].push({type:2,data:qc(A)}),E[2].push({type:0,data:$c(S)}),E[3].push({type:0,data:$c(S)})}E[4]=[],E[5]=[],E[6]=[];for(var O=0;O<=n.e.r;++O)(A=[])[1]=A[2]=[{type:0,data:$c(O+726270)}],E[4].push({type:2,data:qc(A)}),E[5].push({type:0,data:$c(O)}),E[6].push({type:0,data:$c(O)});w[T].messages[0].data=qc(E),b.content=Qc(Yc(w)),b.size=b.content.length,delete v[46];var _=Kc(v[4][0].data);_[7][0].data=$c(n.e.r+1);var x=rl(Kc(_[1][0].data)[2][0].data);if((w=Xc(Zc((b=fr.find(l,s[x].location)).content)))[0].id!=x)throw"Bad HeaderStorageBucket";var R=Kc(w[0].messages[0].data);for(O=0;O<i.length;++O){var C=Kc(R[2][0].data);C[1][0].data=$c(O),C[4][0].data=$c(i[O].length),R[2][O]={type:R[2][0].type,data:qc(C)}}w[0].messages[0].data=qc(R),b.content=Qc(Yc(w)),b.size=b.content.length;var k=rl(_[2][0].data);if((w=Xc(Zc((b=fr.find(l,s[k].location)).content)))[0].id!=k)throw"Bad HeaderStorageBucket";for(R=Kc(w[0].messages[0].data),S=0;S<=n.e.c;++S)(C=Kc(R[2][0].data))[1][0].data=$c(S),C[4][0].data=$c(n.e.r+1),R[2][S]={type:R[2][0].type,data:qc(C)};w[0].messages[0].data=qc(R),b.content=Qc(Yc(w)),b.size=b.content.length;var P=rl(_[4][0].data);!function(){for(var e,t=fr.find(l,s[P].location),r=Xc(Zc(t.content)),n=0;n<r.length;++n){var a=r[n];a.id==P&&(e=a)}var i=Kc(e.messages[0].data);i[3]=[];var c=[];o.forEach((function(e,t){c[1]=[{type:0,data:$c(t)}],c[2]=[{type:0,data:$c(1)}],c[3]=[{type:2,data:Hc(e)}],i[3].push({type:2,data:qc(c)})})),e.messages[0].data=qc(i);var f=Qc(Yc(r));t.content=f,t.size=t.content.length}();var I=Kc(_[3][0].data),N=I[1][0];delete I[2];var D=Kc(N.data),L=rl(D[2][0].data);!function(){for(var e,t=fr.find(l,s[L].location),r=Xc(Zc(t.content)),a=0;a<r.length;++a){var c=r[a];c.id==L&&(e=c)}var f=Kc(e.messages[0].data);delete f[6],delete I[7];var u=new Uint8Array(f[5][0].data);f[5]=[];for(var h=0,p=0;p<=n.e.r;++p){var d=Kc(u);h+=nl(d,i[p],o),d[1][0].data=$c(p),f[5].push({data:qc(d),type:2})}f[1]=[{type:0,data:$c(n.e.c+1)}],f[2]=[{type:0,data:$c(n.e.r+1)}],f[3]=[{type:0,data:$c(h)}],f[4]=[{type:0,data:$c(n.e.r+1)}],e.messages[0].data=qc(f);var m=Qc(Yc(r));t.content=m,t.size=t.content.length}(),N.data=qc(D),_[3][0].data=qc(I),v[4][0].data=qc(_),u.messages[0].data=qc(v);var F=Qc(Yc(p));return h.content=F,h.size=h.content.length,l}(e,t):"xlsb"==t.bookType?function(e,t){Mo=1024,e&&!e.SSF&&(e.SSF=Cr(_t));e&&e.SSF&&(sr(),or(e.SSF),t.revssf=vr(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF);t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Cs?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xlsb"==t.bookType?"bin":"xml",n=Go.indexOf(t.bookType)>-1,a={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};il(t=t||{});var i=Lr(),o="",s=0;t.cellXfs=[],Ns(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});if(Dr(i,o="docProps/core.xml",gi(e.Props,t)),a.coreprops.push(o),ui(t.rels,2,o,ci.CORE_PROPS),o="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var c=[],l=0;l<e.SheetNames.length;++l)2!=(e.Workbook.Sheets[l]||{}).Hidden&&c.push(e.SheetNames[l]);e.Props.SheetNames=c}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,Dr(i,o,bi(e.Props)),a.extprops.push(o),ui(t.rels,3,o,ci.EXT_PROPS),e.Custprops!==e.Props&&dr(e.Custprops||{}).length>0&&(Dr(i,o="docProps/custom.xml",wi(e.Custprops)),a.custprops.push(o),ui(t.rels,4,o,ci.CUST_PROPS));for(s=1;s<=e.SheetNames.length;++s){var f={"!id":{}},u=e.Sheets[e.SheetNames[s-1]];(u||{})["!type"];if(Dr(i,o="xl/worksheets/sheet"+s+"."+r,sc(s-1,o,t,e,f)),a.sheets.push(o),ui(t.wbrels,-1,"worksheets/sheet"+s+"."+r,ci.WS[0]),u){var h=u["!comments"],p=!1,d="";h&&h.length>0&&(Dr(i,d="xl/comments"+s+"."+r,cc(h,d,t)),a.comments.push(d),ui(f,-1,"../comments"+s+"."+r,ci.CMNT),p=!0),u["!legacy"]&&p&&Dr(i,"xl/drawings/vmlDrawing"+s+".vml",Uo(s,u["!comments"])),delete u["!comments"],delete u["!legacy"]}f["!id"].rId1&&Dr(i,li(o),fi(f))}null!=t.Strings&&t.Strings.length>0&&(Dr(i,o="xl/sharedStrings."+r,function(e,t,r){return(".bin"===t.slice(-4)?so:io)(e,r)}(t.Strings,o,t)),a.strs.push(o),ui(t.wbrels,-1,"sharedStrings."+r,ci.SST));Dr(i,o="xl/workbook."+r,function(e,t,r){return(".bin"===t.slice(-4)?oc:ac)(e,r)}(e,o,t)),a.workbooks.push(o),ui(t.rels,1,o,ci.WB),Dr(i,o="xl/theme/theme1.xml",Do(e.Themes,t)),a.themes.push(o),ui(t.wbrels,-1,"theme/theme1.xml",ci.THEME),Dr(i,o="xl/styles."+r,function(e,t,r){return(".bin"===t.slice(-4)?No:wo)(e,r)}(e,o,t)),a.styles.push(o),ui(t.wbrels,-1,"styles."+r,ci.STY),e.vbaraw&&n&&(Dr(i,o="xl/vbaProject.bin",e.vbaraw),a.vba.push(o),ui(t.wbrels,-1,"vbaProject.bin",ci.VBA));return Dr(i,o="xl/metadata."+r,function(e){return(".bin"===e.slice(-4)?Lo:Fo)()}(o)),a.metadata.push(o),ui(t.wbrels,-1,"metadata."+r,ci.XLMETA),Dr(i,"[Content_Types].xml",si(a,t)),Dr(i,"_rels/.rels",fi(t.rels)),Dr(i,"xl/_rels/workbook."+r+".rels",fi(t.wbrels)),delete t.revssf,delete t.ssf,i}(e,t):sl(e,t)}function sl(e,t){Mo=1024,e&&!e.SSF&&(e.SSF=Cr(_t)),e&&e.SSF&&(sr(),or(e.SSF),t.revssf=vr(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Cs?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=Go.indexOf(t.bookType)>-1,a={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};il(t=t||{});var i=Lr(),o="",s=0;if(t.cellXfs=[],Ns(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),Dr(i,o="docProps/core.xml",gi(e.Props,t)),a.coreprops.push(o),ui(t.rels,2,o,ci.CORE_PROPS),o="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var c=[],l=0;l<e.SheetNames.length;++l)2!=(e.Workbook.Sheets[l]||{}).Hidden&&c.push(e.SheetNames[l]);e.Props.SheetNames=c}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,Dr(i,o,bi(e.Props)),a.extprops.push(o),ui(t.rels,3,o,ci.EXT_PROPS),e.Custprops!==e.Props&&dr(e.Custprops||{}).length>0&&(Dr(i,o="docProps/custom.xml",wi(e.Custprops)),a.custprops.push(o),ui(t.rels,4,o,ci.CUST_PROPS));var f=["SheetJ5"];for(t.tcid=0,s=1;s<=e.SheetNames.length;++s){var u={"!id":{}},h=e.Sheets[e.SheetNames[s-1]];(h||{})["!type"];if(Dr(i,o="xl/worksheets/sheet"+s+"."+r,Us(s-1,t,e,u)),a.sheets.push(o),ui(t.wbrels,-1,"worksheets/sheet"+s+"."+r,ci.WS[0]),h){var p=h["!comments"],d=!1,m="";if(p&&p.length>0){var g=!1;p.forEach((function(e){e[1].forEach((function(e){1==e.T&&(g=!0)}))})),g&&(Dr(i,m="xl/threadedComments/threadedComment"+s+"."+r,jo(p,f,t)),a.threadedcomments.push(m),ui(u,-1,"../threadedComments/threadedComment"+s+"."+r,ci.TCMNT)),Dr(i,m="xl/comments"+s+"."+r,Bo(p)),a.comments.push(m),ui(u,-1,"../comments"+s+"."+r,ci.CMNT),d=!0}h["!legacy"]&&d&&Dr(i,"xl/drawings/vmlDrawing"+s+".vml",Uo(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}u["!id"].rId1&&Dr(i,li(o),fi(u))}return null!=t.Strings&&t.Strings.length>0&&(Dr(i,o="xl/sharedStrings.xml",io(t.Strings,t)),a.strs.push(o),ui(t.wbrels,-1,"sharedStrings.xml",ci.SST)),Dr(i,o="xl/workbook.xml",ac(e)),a.workbooks.push(o),ui(t.rels,1,o,ci.WB),Dr(i,o="xl/theme/theme1.xml",Do(e.Themes,t)),a.themes.push(o),ui(t.wbrels,-1,"theme/theme1.xml",ci.THEME),Dr(i,o="xl/styles.xml",wo(e,t)),a.styles.push(o),ui(t.wbrels,-1,"styles.xml",ci.STY),e.vbaraw&&n&&(Dr(i,o="xl/vbaProject.bin",e.vbaraw),a.vba.push(o),ui(t.wbrels,-1,"vbaProject.bin",ci.VBA)),Dr(i,o="xl/metadata.xml",Fo()),a.metadata.push(o),ui(t.wbrels,-1,"metadata.xml",ci.XLMETA),f.length>1&&(Dr(i,o="xl/persons/person.xml",function(e){var t=[Fr,rn("personList",null,{xmlns:fn,"xmlns:x":yn[0]}).replace(/[\/]>/,">")];return e.forEach((function(e,r){t.push(rn("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+r).slice(-12)+"}",userId:e,providerId:"None"}))})),t.push("</personList>"),t.join("")}(f)),a.people.push(o),ui(t.wbrels,-1,"persons/person.xml",ci.PEOPLE)),Dr(i,"[Content_Types].xml",si(a,t)),Dr(i,"_rels/.rels",fi(t.rels)),Dr(i,"xl/_rels/workbook.xml.rels",fi(t.wbrels)),delete t.revssf,delete t.ssf,i}function cl(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=ot(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 ll(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return pr(t.file,fr.write(e,{type:st?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return fr.write(e,t)}function fl(e,t){var r={},n=st?"nodebuffer":"undefined"!=typeof Uint8Array?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var a=e.FullPaths?fr.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if("undefined"!=typeof Deno&&"string"==typeof a){if("binary"==t.type||"base64"==t.type)return a;a=new Uint8Array(ht(a))}return t.password&&"undefined"!=typeof encrypt_agile?ll(encrypt_agile(a,t.password),t):"file"===t.type?pr(t.file,a):"string"==t.type?Yr(a):a}function ul(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return it(Jr(n));case"binary":return Jr(n);case"string":return e;case"file":return pr(t.file,n,"utf8");case"buffer":return st?ct(n,"utf8"):"undefined"!=typeof TextEncoder?(new TextEncoder).encode(n):ul(n,{type:"binary"}).split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}function hl(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n<e.length;++n)r+=String.fromCharCode(e[n]);return"base64"==t.type?it(r):"string"==t.type?Yr(r):r;case"file":return pr(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function pl(e,t){Qe(),nc(e);var r=Cr(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),"array"==r.type){r.type="binary";var n=pl(e,r);return r.type="array",ht(n)}var a=0;if(r.sheet&&(a="number"==typeof r.sheet?r.sheet:e.SheetNames.indexOf(r.sheet),!e.SheetNames[a]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return ul(dc(e,r),r);case"slk":case"sylk":return ul(Qi.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"htm":case"html":return ul(Dc(e.Sheets[e.SheetNames[a]],r),r);case"txt":return function(e,t){switch(t.type){case"base64":return it(e);case"binary":case"string":return e;case"file":return pr(t.file,e,"binary");case"buffer":return st?ct(e,"binary"):e.split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}(wl(e.Sheets[e.SheetNames[a]],r),r);case"csv":return ul(bl(e.Sheets[e.SheetNames[a]],r),r,"\ufeff");case"dif":return ul(eo.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"dbf":return hl(Zi.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"prn":return ul(ro.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"rtf":return ul(fo.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"eth":return ul(to.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"fods":return ul(jc(e,r),r);case"wk1":return hl(no.sheet_to_wk1(e.Sheets[e.SheetNames[a]],r),r);case"wk3":return hl(no.book_to_wk3(e,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),hl(Cc(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),function(e,t){var r=t||{};return ll(yc(e,r),r)}(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function(e,t){var r=Cr(t||{});return fl(ol(e,r),r)}(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function dl(e){if(!e.bookType){var t=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();t.match(/^\.[a-z]+$/)&&(e.bookType=t.slice(1)),e.bookType={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"}[e.bookType]||e.bookType}}function ml(e,t,r,n,a,i,o,s){var c=da(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 p=t.s.c;p<=t.e.c;++p){var d=o?e[r][p]:e[n[p]+c];if(void 0!==d&&void 0!==d.t){var m=d.v;switch(d.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 "+d.t)}if(null!=i[p]){if(null==m)if("e"==d.t&&null===m)h[i[p]]=null;else if(void 0!==l)h[i[p]]=l;else{if(!f||null!==m)continue;h[i[p]]=null}else h[i[p]]=f&&("n"!==d.t||"n"===d.t&&!1!==s.rawNumbers)?m:Sa(d,m,s);null!=m&&(u=!1)}}else{if(void 0===l)continue;null!=i[p]&&(h[i[p]]=l)}}return{row:h,isempty:u}}function gl(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=Ta(f);break;case"number":(c=Ta(e["!ref"])).s.r=f;break;default:c=f}n>0&&(a=0);var u=da(c.s.r),h=[],p=[],d=0,m=0,g=Array.isArray(e),v=c.s.r,y=0,b={};g&&!e[v]&&(e[v]=[]);var w=l.skipHidden&&e["!cols"]||[],T=l.skipHidden&&e["!rows"]||[];for(y=c.s.c;y<=c.e.c;++y)if(!(w[y]||{}).hidden)switch(h[y]=ga(y),r=g?e[v][y]:e[h[y]+u],n){case 1:i[y]=y-c.s.c;break;case 2:i[y]=h[y];break;case 3:i[y]=l.header[y-c.s.c];break;default:if(null==r&&(r={w:"__EMPTY",t:"s"}),s=o=Sa(r,null,l),m=b[o]||0){do{s=o+"_"+m++}while(b[s]);b[o]=m,b[s]=1}else b[o]=1;i[y]=s}for(v=c.s.r+a;v<=c.e.r;++v)if(!(T[v]||{}).hidden){var E=ml(e,c,v,h,n,i,g,l);(!1===E.isempty||(1===n?!1!==l.blankrows:l.blankrows))&&(p[d++]=E.row)}return p.length=d,p}var vl=/"/g;function yl(e,t,r,n,a,i,o,s){for(var c=!0,l=[],f="",u=da(r),h=t.s.c;h<=t.e.c;++h)if(n[h]){var p=s.dense?(e[r]||[])[h]:e[n[h]+u];if(null==p)f="";else if(null!=p.v){c=!1,f=""+(s.rawNumbers&&"n"==p.t?p.v:Sa(p,null,s));for(var d=0,m=0;d!==f.length;++d)if((m=f.charCodeAt(d))===a||m===i||34===m||s.forceQuotes){f='"'+f.replace(vl,'""')+'"';break}"ID"==f&&(f='"ID"')}else null==p.f||p.F?f="":(c=!1,(f="="+p.f).indexOf(",")>=0&&(f='"'+f.replace(vl,'""')+'"'));l.push(f)}return!1===s.blankrows&&c?null:l.join(o)}function bl(e,t){var r=[],n=null==t?{}:t;if(null==e||null==e["!ref"])return"";var a=Ta(e["!ref"]),i=void 0!==n.FS?n.FS:",",o=i.charCodeAt(0),s=void 0!==n.RS?n.RS:"\n",c=s.charCodeAt(0),l=new RegExp(("|"==i?"\\|":i)+"+$"),f="",u=[];n.dense=Array.isArray(e);for(var h=n.skipHidden&&e["!cols"]||[],p=n.skipHidden&&e["!rows"]||[],d=a.s.c;d<=a.e.c;++d)(h[d]||{}).hidden||(u[d]=ga(d));for(var m=0,g=a.s.r;g<=a.e.r;++g)(p[g]||{}).hidden||null!=(f=yl(e,a,g,u,o,c,i,n))&&(n.strip&&(f=f.replace(l,"")),(f||!1!==n.blankrows)&&r.push((m++?s:"")+f));return delete n.dense,r.join("")}function wl(e,t){t||(t={}),t.FS="\t",t.RS="\n";var r=bl(e,t);if(void 0===tt||"string"==t.type)return r;var n=tt.utils.encode(1200,r,"str");return String.fromCharCode(255)+String.fromCharCode(254)+n}function Tl(e,t,r){var n,a=r||{},i=+!a.skipHeader,o=e||{},s=0,c=0;if(o&&null!=a.origin)if("number"==typeof a.origin)s=a.origin;else{var l="string"==typeof a.origin?va(a.origin):a.origin;s=l.r,c=l.c}var f={s:{c:0,r:0},e:{c,r:s+t.length-1+i}};if(o["!ref"]){var u=Ta(o["!ref"]);f.e.c=Math.max(f.e.c,u.e.c),f.e.r=Math.max(f.e.r,u.e.r),-1==s&&(s=u.e.r+1,f.e.r=s+t.length-1+i)}else-1==s&&(s=0,f.e.r=t.length-1+i);var h=a.header||[],p=0;t.forEach((function(e,t){dr(e).forEach((function(r){-1==(p=h.indexOf(r))&&(h[p=h.length]=r);var l=e[r],f="z",u="",d=ya({c:c+p,r:s+t+i});n=El(o,d),!l||"object"!=typeof l||l instanceof Date?("number"==typeof l?f="n":"boolean"==typeof l?f="b":"string"==typeof l?f="s":l instanceof Date?(f="d",a.cellDates||(f="n",l=br(l)),u=a.dateNF||_t[14]):null===l&&a.nullError&&(f="e",l=0),n?(n.t=f,n.v=l,delete n.w,delete n.R,u&&(n.z=u)):o[d]=n={t:f,v:l},u&&(n.z=u)):o[d]=l}))})),f.e.c=Math.max(f.e.c,c+h.length-1);var d=da(s);if(i)for(p=0;p<h.length;++p)o[ga(p+c)+d]={t:"s",v:h[p]};return o["!ref"]=wa(f),o}function El(e,t,r){if("string"==typeof t){if(Array.isArray(e)){var n=va(t);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return El(e,ya("number"!=typeof t?t:{r:t,c:r||0}))}function Sl(){return{SheetNames:[],Sheets:{}}}function Al(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(rc(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}function Ol(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}var _l={encode_col:ga,encode_row:da,encode_cell:ya,encode_range:wa,decode_col:ma,decode_row:pa,split_cell:function(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:va,decode_range:ba,format_cell:Sa,sheet_add_aoa:Oa,sheet_add_json:Tl,sheet_add_dom:Lc,aoa_to_sheet:_a,json_to_sheet:function(e,t){return Tl(null,e,t)},table_to_sheet:Fc,table_to_book:function(e,t){return Aa(Fc(e,t),t)},sheet_to_csv:bl,sheet_to_txt:wl,sheet_to_json:gl,sheet_to_html:Dc,sheet_to_formulae:function(e){var t,r="",n="";if(null==e||null==e["!ref"])return[];var a,i=Ta(e["!ref"]),o="",s=[],c=[],l=Array.isArray(e);for(a=i.s.c;a<=i.e.c;++a)s[a]=ga(a);for(var f=i.s.r;f<=i.e.r;++f)for(o=da(f),a=i.s.c;a<=i.e.c;++a)if(r=s[a]+o,n="",void 0!==(t=l?(e[f]||[])[a]:e[r])){if(null!=t.F){if(r=t.F,!t.f)continue;n=t.f,-1==r.indexOf(":")&&(r=r+":"+r)}if(null!=t.f)n=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)n=""+t.v;else if("b"==t.t)n=t.v?"TRUE":"FALSE";else if(void 0!==t.w)n="'"+t.w;else{if(void 0===t.v)continue;n="s"==t.t?"'"+t.v:""+t.v}}c[c.length]=r+"="+n}return c},sheet_to_row_object_array:gl,sheet_get_cell:El,book_new:Sl,book_append_sheet:Al,book_set_sheet_visibility:function(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=function(e,t){if("number"==typeof t){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r},cell_set_number_format:function(e,t){return e.z=t,e},cell_set_hyperlink:Ol,cell_set_internal_link:function(e,t,r){return Ol(e,"#"+t,r)},cell_add_comment:function(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})},sheet_set_array_formula:function(e,t,r,n){for(var a="string"!=typeof t?t:Ta(t),i="string"==typeof t?t:wa(t),o=a.s.r;o<=a.e.r;++o)for(var s=a.s.c;s<=a.e.c;++s){var c=El(e,o,s);c.t="n",c.F=i,delete c.v,o==a.s.r&&s==a.s.c&&(c.f=r,n&&(c.D=!0))}return e},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};ze.version;var xl=(e,t,r)=>new Promise(((n,a)=>{var i=e=>{try{s(r.next(e))}catch(e){a(e)}},o=e=>{try{s(r.throw(e))}catch(e){a(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,o);s((r=r.apply(e,t)).next())}));const Rl=e=>xl(void 0,[e],(function*({id:e,onAdvance:t,loadedData:r=[]}){const n=yield kintone.api(kintone.api.url("/k/v1/records/cursor",!0),"GET",{id:e}),a=[...r,...n.records];return t&&t(a),n.next?Rl({id:e,onAdvance:t,loadedData:a}):a})),Cl=e=>e.replace(/limit.*/g,"").replace(/offset.*/g,"");var kl=r(8502),Pl=(e,t,r)=>new Promise(((n,a)=>{var i=e=>{try{s(r.next(e))}catch(e){a(e)}},o=e=>{try{s(r.throw(e))}catch(e){a(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,o);s((r=r.apply(e,t)).next())}));function Il(e,t){return Pl(this,null,(function*(){const r=l();if(!r)return;const n=(t.allRecords?c().getQueryCondition():c().getQuery())||"",a=yield((...e)=>xl(void 0,[...e],(function*(e={}){const{app:t=l(),fields:r=[],totalCount:n=!1,query:a="",onGetTotal:i=null,onAdvance:o=null}=e,s={app:t,fields:r,size:500,totalCount:n,query:""};if(a&&(~a.indexOf("limit")||~a.indexOf("offset"))){s.query=a;const{records:e}=yield kintone.api(kintone.api.url("/k/v1/records",!0),"GET",s);return e}s.query=a?Cl(a):"";const c=yield kintone.api(kintone.api.url("/k/v1/records/cursor",!0),"POST",s);return i&&i(c.totalCount),Rl({id:c.id,onAdvance:o})})))({app:r,query:n});if(!a.length)return;const i=new kl.KintoneRestAPIClient,[o,{views:s},{properties:f}]=yield Promise.all([i.app.getApp({id:r}),i.app.getViews({app:r}),i.app.getFormFields({app:r})]),u=[],h=_l.aoa_to_sheet([[]]),p=yield Nl(s,f,String(e.viewId),Boolean(t.allFields)),d=p.some((e=>"SUBTABLE"===e.type));let m=0,g=0;const v=[];for(const e of p)Dl(h,m,g,e.label),"SUBTABLE"===e.type?(v.push(e),Object.keys(e.fields).map(((t,r)=>{Dl(h,m+1,g+r,e.fields[t].label)})),u.push({s:{r:m,c:g},e:{r:m,c:g+Object.keys(e.fields).length-1}}),g+=Object.keys(e.fields).length):(d&&u.push({s:{r:m,c:g},e:{r:m+1,c:g}}),g++);m=d?2:1;const y=g;for(const e of a){g=0;let r=1;v.map((t=>{const n=e[t.code].value.length;r<n&&(r=n)}));for(const n of p){const a=e[n.code];if(a)if("SUBTABLE"===a.type){a.value.map(((e,t)=>{Object.keys(n.fields).map(((r,n)=>{const a=Ll(e.value[r]);Dl(h,m+t,g+n,a)}))})),g+=Object.keys(n.fields).length}else{const e=Ll(a);Dl(h,m,g,e),d&&t.union&&u.push({s:{r:m,c:g},e:{r:m+r-1,c:g}}),g++}else g++}m+=r}h["!ref"]=_l.encode_range({s:{c:0,r:0},e:{c:y,r:m}}),h["!merges"]=u;const b=_l.book_new();_l.book_append_sheet(b,h,"app");const w=new Date,T=`${w.getFullYear()}-${w.getMonth()+1}-${w.getDate()}`;var E,S,A,O;E=b,S=`${o.name}_${T}.xlsx`,(O=A||{}).type="file",O.file=S,dl(O),pl(E,O)}))}const Nl=(e,t,r,n)=>Pl(void 0,null,(function*(){if(n)return Object.values(t);const a=Object.values(e).find((e=>r===e.id));return a&&"LIST"===a.type?Object.values(t).filter((e=>a.fields.includes(e.code))):Object.values(t)}));function Dl(e,t,r,n){e[_l.encode_cell({r:t,c:r})]={t:"s",v:n}}const Ll=e=>{switch(e.type){case"CREATOR":case"MODIFIER":return`${e.value.name}(${e.value.code})`;case"CHECK_BOX":case"MULTI_SELECT":case"CATEGORY":return e.value.join("\n");case"USER_SELECT":case"ORGANIZATION_SELECT":case"GROUP_SELECT":case"STATUS_ASSIGNEE":case"FILE":return e.value.map((e=>e.name)).join("\n");case"SUBTABLE":return"";default:return e.value||""}};const Fl="ribbit-plugin-xlsx",Ml={events:["app.record.index.show"],action:(e,t)=>{if(document.querySelector(`#${Fl}`))return e;const r=(e=>{const t=kintone.plugin.app.getConfig(e);return Object.keys(t).length?Object.entries(t).reduce(((e,[t,r])=>y(v({},e),{[t]:JSON.parse(r)})),{}):b()})(t),n=(e=>{const t=document.createElement("button");return t.id=e,t.innerHTML=Ve(),t.classList.add($e()),t})(Fl),a=(e=>{if(s(e))kintone.mobile.app.getHeaderSpaceElement();else if(!~e.indexOf("index"))return kintone.app.record.getHeaderMenuSpaceElement();return kintone.app.getHeaderMenuSpaceElement()})(e.type);return a&&a.append(n),n.onclick=()=>{return t=void 0,a=null,i=function*(){n.disabled=!0;try{yield Il(e,r)}catch(t){console.error(t),null==e||e.error("[Excel出力プラグイン]出力時にエラーが発生しました")}finally{n.disabled=!1}},new Promise(((e,r)=>{var n=e=>{try{s(i.next(e))}catch(e){r(e)}},o=e=>{try{s(i.throw(e))}catch(e){r(e)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(n,o);s((i=i.apply(t,a)).next())}));var t,a,i},e}};var Ul;Ul=kintone.$PLUGIN_ID,new o(Ul).launch([Ml])})()})();