@postnord/pn-marketweb-components 2.0.119 → 2.0.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/_commonjsHelpers-206db00d.js +37 -0
- package/cjs/convert-b219d02d.js +1826 -0
- package/cjs/loader.cjs.js +1 -1
- package/cjs/pn-chart.cjs.entry.js +21919 -0
- package/cjs/pn-charts-card.cjs.entry.js +21 -0
- package/cjs/pn-find-price.cjs.entry.js +2 -1
- package/cjs/pn-find-service-and-price.cjs.entry.js +2 -1
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +4 -2
- package/cjs/pn-product-pricelist.cjs.entry.js +2 -1
- package/collection/collection-manifest.json +2 -0
- package/collection/components/charts/pn-chart/pn-chart-helper.js +52 -0
- package/collection/components/charts/pn-chart/pn-chart.css +26 -0
- package/collection/components/charts/pn-chart/pn-chart.js +94 -0
- package/collection/components/charts/pn-chart/pn-chart.stories.js +0 -0
- package/collection/components/charts/pn-chart/types.js +1 -0
- package/collection/components/charts/pn-charts-card/pn-charts-card.css +106 -0
- package/collection/components/charts/pn-charts-card/pn-charts-card.js +156 -0
- package/collection/components/charts/pn-charts-card/pn-charts-card.stories.js +75 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.css +10 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +21 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +4 -2
- package/custom-elements/index.d.ts +12 -0
- package/custom-elements/index.js +21968 -20
- package/esm/_commonjsHelpers-27f122dd.js +32 -0
- package/esm/{convert-ae809f9c.js → convert-f6377d13.js} +2 -16
- package/esm/loader.js +1 -1
- package/esm/pn-chart.entry.js +21915 -0
- package/esm/pn-charts-card.entry.js +17 -0
- package/esm/pn-find-price.entry.js +2 -1
- package/esm/pn-find-service-and-price.entry.js +2 -1
- package/esm/pn-market-web-components.js +1 -1
- package/esm/pn-marketweb-siteheader.entry.js +4 -2
- package/esm/pn-product-pricelist.entry.js +2 -1
- package/esm-es5/_commonjsHelpers-27f122dd.js +1 -0
- package/esm-es5/{convert-ae809f9c.js → convert-f6377d13.js} +2 -2
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-chart.entry.js +16 -0
- package/esm-es5/pn-charts-card.entry.js +1 -0
- package/esm-es5/pn-find-price.entry.js +1 -1
- package/esm-es5/pn-find-service-and-price.entry.js +1 -1
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
- package/esm-es5/pn-product-pricelist.entry.js +1 -1
- package/package.json +3 -1
- package/pn-market-web-components/p-1751415f.entry.js +16 -0
- package/pn-market-web-components/p-35fcd76c.system.entry.js +1 -0
- package/pn-market-web-components/p-3c0d63fb.system.entry.js +1 -0
- package/pn-market-web-components/p-67887512.system.js +1 -1
- package/pn-market-web-components/p-736e5b84.system.entry.js +1 -0
- package/pn-market-web-components/p-77557da8.entry.js +1 -0
- package/pn-market-web-components/p-814af281.js +1 -0
- package/pn-market-web-components/{p-0ea97ca0.system.js → p-8766fa86.system.js} +2 -2
- package/pn-market-web-components/p-8e4d292f.entry.js +1 -0
- package/pn-market-web-components/p-93b6310e.system.entry.js +1 -0
- package/pn-market-web-components/p-aab2e28f.entry.js +1 -0
- package/pn-market-web-components/p-b97cb315.system.entry.js +16 -0
- package/pn-market-web-components/p-b9f2577c.entry.js +1 -0
- package/pn-market-web-components/p-bfe239ca.js +13 -0
- package/pn-market-web-components/p-d3a0ed9b.system.entry.js +1 -0
- package/pn-market-web-components/p-effbbf45.entry.js +1 -0
- package/pn-market-web-components/p-fe1f76a3.system.js +1 -0
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/types/components/charts/pn-chart/pn-chart-helper.d.ts +46 -0
- package/types/components/charts/pn-chart/pn-chart.d.ts +17 -0
- package/types/components/charts/pn-chart/types.d.ts +7 -0
- package/types/components/charts/pn-charts-card/pn-charts-card.d.ts +12 -0
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.d.ts +2 -0
- package/types/components.d.ts +54 -0
- package/umd/pn-marketweb-init.js +41 -37
- package/umd/pn-marketweb-salesforce.js +2 -2
- package/cjs/convert-362ef5e6.js +0 -1840
- package/pn-market-web-components/p-0ed41da6.system.entry.js +0 -1
- package/pn-market-web-components/p-3231d8c0.entry.js +0 -1
- package/pn-market-web-components/p-513e3c62.entry.js +0 -1
- package/pn-market-web-components/p-774b7a9f.entry.js +0 -1
- package/pn-market-web-components/p-8144bcbc.system.entry.js +0 -1
- package/pn-market-web-components/p-9adc3940.js +0 -13
- package/pn-market-web-components/p-b32a8507.entry.js +0 -1
- package/pn-market-web-components/p-bc22baf1.system.entry.js +0 -1
- package/pn-market-web-components/p-fecc53bb.system.entry.js +0 -1
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const t={createDocument:function(t){return(new DOMParser).parseFromString(t.trim(),"text/xml")}};var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var i,e=(function(t){
|
|
2
|
-
/*!
|
|
3
|
-
|
|
4
|
-
JSZip v3.7.1 - A JavaScript class for generating and reading zip files
|
|
5
|
-
<http://stuartk.com/jszip>
|
|
6
|
-
|
|
7
|
-
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
8
|
-
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.
|
|
9
|
-
|
|
10
|
-
JSZip uses the library pako released under the MIT license :
|
|
11
|
-
https://github.com/nodeca/pako/blob/master/LICENSE
|
|
12
|
-
*/
|
|
13
|
-
t.exports=function t(r,i,e){function o(u,a){if(!i[u]){if(!r[u]){if(!a&&n)return n();if(s)return s(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var c=i[u]={exports:{}};r[u][0].call(c.exports,(function(t){return o(r[u][1][t]||t)}),c,c.exports,t,r,i,e)}return i[u].exports}for(var s=n,u=0;u<e.length;u++)o(e[u]);return o}({1:[function(t,r,n){var i=t("./utils"),e=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(t){for(var r,n,e,s,u,a,f=[],c=0,h=t.length,l=h,d="string"!==i.getTypeOf(t);c<t.length;)l=h-c,e=d?(r=t[c++],n=c<h?t[c++]:0,c<h?t[c++]:0):(r=t.charCodeAt(c++),n=c<h?t.charCodeAt(c++):0,c<h?t.charCodeAt(c++):0),s=(3&r)<<4|n>>4,u=1<l?(15&n)<<2|e>>6:64,a=2<l?63&e:64,f.push(o.charAt(r>>2)+o.charAt(s)+o.charAt(u)+o.charAt(a));return f.join("")},n.decode=function(t){var r,n,i,s,u,a,f=0,c=0,h="data:";if(t.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var l,d=3*(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(t.charAt(t.length-1)===o.charAt(64)&&d--,t.charAt(t.length-2)===o.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(l=e.uint8array?new Uint8Array(0|d):new Array(0|d);f<t.length;)r=o.indexOf(t.charAt(f++))<<2|(s=o.indexOf(t.charAt(f++)))>>4,n=(15&s)<<4|(u=o.indexOf(t.charAt(f++)))>>2,i=(3&u)<<6|(a=o.indexOf(t.charAt(f++))),l[c++]=r,64!==u&&(l[c++]=n),64!==a&&(l[c++]=i);return l}},{"./support":30,"./utils":32}],2:[function(t,r){var n=t("./external"),i=t("./stream/DataWorker"),e=t("./stream/Crc32Probe"),o=t("./stream/DataLengthProbe");function s(t,r,n,i,e){this.compressedSize=t,this.uncompressedSize=r,this.crc32=n,this.compression=i,this.compressedContent=e}s.prototype={getContentWorker:function(){var t=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),r=this;return t.on("end",(function(){if(this.streamInfo.data_length!==r.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,r,n){return t.pipe(new e).pipe(new o("uncompressedSize")).pipe(r.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",r)},r.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,r,n){var i=t("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,r){var n=t("./utils"),i=function(){for(var t,r=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;r[n]=t}return r}();r.exports=function(t,r){return void 0!==t&&t.length?"string"!==n.getTypeOf(t)?function(t,r,n){var e=i,o=0+n;t^=-1;for(var s=0;s<o;s++)t=t>>>8^e[255&(t^r[s])];return-1^t}(0|r,t,t.length):function(t,r,n){var e=i,o=0+n;t^=-1;for(var s=0;s<o;s++)t=t>>>8^e[255&(t^r.charCodeAt(s))];return-1^t}(0|r,t,t.length):0}},{"./utils":32}],5:[function(t,r,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(t,r){var n;n="undefined"!=typeof Promise?Promise:t("lie"),r.exports={Promise:n}},{lie:37}],7:[function(t,r,n){var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,e=t("pako"),o=t("./utils"),s=t("./stream/GenericWorker"),u=i?"uint8array":"array";function a(t,r){s.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=r,this.meta={}}n.magic="\b\0",o.inherits(a,s),a.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(u,t.data),!1)},a.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},a.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},a.prototype._createPako=function(){this._pako=new e[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(r){t.push({data:r,meta:t.meta})}},n.compressWorker=function(t){return new a("Deflate",t)},n.uncompressWorker=function(){return new a("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,r){function n(t,r){var n,i="";for(n=0;n<r;n++)i+=String.fromCharCode(255&t),t>>>=8;return i}function i(t,r,i,o,f,c){var h,l,d=t.file,v=t.compression,b=c!==s.utf8encode,y=e.transformTo("string",c(d.name)),m=e.transformTo("string",s.utf8encode(d.name)),p=d.comment,w=e.transformTo("string",c(p)),k=e.transformTo("string",s.utf8encode(p)),g=m.length!==d.name.length,A=k.length!==p.length,S="",j="",O="",E=d.dir,U=d.date,I={crc32:0,compressedSize:0,uncompressedSize:0};r&&!i||(I.crc32=t.crc32,I.compressedSize=t.compressedSize,I.uncompressedSize=t.uncompressedSize);var z=0;r&&(z|=8),b||!g&&!A||(z|=2048);var T=0,C=0;E&&(T|=16),"UNIX"===f?(C=798,T|=function(t,r){var n=t;return t||(n=r?16893:33204),(65535&n)<<16}(d.unixPermissions,E)):(C=20,T|=function(t){return 63&(t||0)}(d.dosPermissions)),h=U.getUTCHours(),h<<=6,h|=U.getUTCMinutes(),h<<=5,h|=U.getUTCSeconds()/2,l=U.getUTCFullYear()-1980,l<<=4,l|=U.getUTCMonth()+1,l<<=5,l|=U.getUTCDate(),g&&(j=n(1,1)+n(u(y),4)+m,S+="up"+n(j.length,2)+j),A&&(O=n(1,1)+n(u(w),4)+k,S+="uc"+n(O.length,2)+O);var R="";return R+="\n\0",R+=n(z,2),R+=v.magic,R+=n(h,2),R+=n(l,2),R+=n(I.crc32,4),R+=n(I.compressedSize,4),R+=n(I.uncompressedSize,4),R+=n(y.length,2),R+=n(S.length,2),{fileRecord:a.LOCAL_FILE_HEADER+R+y+S,dirRecord:a.CENTRAL_FILE_HEADER+n(C,2)+R+n(w.length,2)+"\0\0\0\0"+n(T,4)+n(o,4)+y+S+w}}var e=t("../utils"),o=t("../stream/GenericWorker"),s=t("../utf8"),u=t("../crc32"),a=t("../signature");function f(t,r,n,i){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=r,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}e.inherits(f,o),f.prototype.push=function(t){var r=t.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,o.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(r+100*(n-i-1))/n:100}}))},f.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var r=this.streamFiles&&!t.file.dir;if(r){var n=i(t,r,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(t){this.accumulate=!1;var r=this.streamFiles&&!t.file.dir,e=i(t,r,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(e.dirRecord),r)this.push({data:function(t){return a.DATA_DESCRIPTOR+n(t.crc32,4)+n(t.compressedSize,4)+n(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:e.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var t=this.bytesWritten,r=0;r<this.dirRecords.length;r++)this.push({data:this.dirRecords[r],meta:{percent:100}});var i=function(t,r,i,o,s){var u=e.transformTo("string",s(o));return a.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(t,2)+n(t,2)+n(r,4)+n(i,4)+n(u.length,2)+u}(this.dirRecords.length,this.bytesWritten-t,t,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(t){this._sources.push(t);var r=this;return t.on("data",(function(t){r.processChunk(t)})),t.on("end",(function(){r.closedSource(r.previous.streamInfo),r._sources.length?r.prepareNextSource():r.end()})),t.on("error",(function(t){r.error(t)})),this},f.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},f.prototype.error=function(t){var r=this._sources;if(!o.prototype.error.call(this,t))return!1;for(var n=0;n<r.length;n++)try{r[n].error(t)}catch(t){}return!0},f.prototype.lock=function(){o.prototype.lock.call(this);for(var t=this._sources,r=0;r<t.length;r++)t[r].lock()},r.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,r,n){var i=t("../compressions"),e=t("./ZipFileWorker");n.generateWorker=function(t,r,n){var o=new e(r.streamFiles,n,r.platform,r.encodeFileName),s=0;try{t.forEach((function(t,n){s++;var e=function(t,r){var n=t||r,e=i[n];if(!e)throw new Error(n+" is not a valid compression method !");return e}(n.options.compression,r.compression),u=n.dir,a=n.date;n._compressWorker(e,n.options.compressionOptions||r.compressionOptions||{}).withStreamInfo("file",{name:t,dir:u,date:a,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)})),o.entriesCount=s}catch(t){o.error(t)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,r){function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new n;for(var r in this)"function"!=typeof this[r]&&(t[r]=this[r]);return t}}(n.prototype=t("./object")).loadAsync=t("./load"),n.support=t("./support"),n.defaults=t("./defaults"),n.version="3.7.1",n.loadAsync=function(t,r){return(new n).loadAsync(t,r)},n.external=t("./external"),r.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,r){var n=t("./utils"),i=t("./external"),e=t("./utf8"),o=t("./zipEntries"),s=t("./stream/Crc32Probe"),u=t("./nodejsUtils");function a(t){return new i.Promise((function(r,n){var i=t.decompressed.getContentWorker().pipe(new s);i.on("error",(function(t){n(t)})).on("end",(function(){i.streamInfo.crc32!==t.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):r()})).resume()}))}r.exports=function(t,r){var s=this;return r=n.extend(r||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:e.utf8decode}),u.isNode&&u.isStream(t)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",t,!0,r.optimizedBinaryString,r.base64).then((function(t){var n=new o(r);return n.load(t),n})).then((function(t){var n=[i.Promise.resolve(t)],e=t.files;if(r.checkCRC32)for(var o=0;o<e.length;o++)n.push(a(e[o]));return i.Promise.all(n)})).then((function(t){for(var n=t.shift(),i=n.files,e=0;e<i.length;e++){var o=i[e];s.file(o.fileNameStr,o.decompressed,{binary:!0,optimizedBinaryString:!0,date:o.date,dir:o.dir,comment:o.fileCommentStr.length?o.fileCommentStr:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:r.createFolders})}return n.zipComment.length&&(s.comment=n.zipComment),s}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,r){var n=t("../utils"),i=t("../stream/GenericWorker");function e(t,r){i.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(r)}n.inherits(e,i),e.prototype._bindStream=function(t){var r=this;(this._stream=t).pause(),t.on("data",(function(t){r.push({data:t,meta:{percent:0}})})).on("error",(function(t){r.isPaused?this.generatedError=t:r.error(t)})).on("end",(function(){r.isPaused?r._upstreamEnded=!0:r.end()}))},e.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},e.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=e},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,r){var n=t("readable-stream").Readable;function i(t,r,i){n.call(this,r),this._helper=t;var e=this;t.on("data",(function(t,r){e.push(t)||e._helper.pause(),i&&i(r)})).on("error",(function(t){e.emit("error",t)})).on("end",(function(){e.push(null)}))}t("../utils").inherits(i,n),i.prototype._read=function(){this._helper.resume()},r.exports=i},{"../utils":32,"readable-stream":16}],14:[function(t,r){r.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(t,r){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,r);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new Buffer(t,r)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var r=new Buffer(t);return r.fill(0),r},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,r){function n(t,r,n){var i,s=e.getTypeOf(r),c=e.extend(n||{},u);c.date=c.date||new Date,null!==c.compression&&(c.compression=c.compression.toUpperCase()),"string"==typeof c.unixPermissions&&(c.unixPermissions=parseInt(c.unixPermissions,8)),c.unixPermissions&&16384&c.unixPermissions&&(c.dir=!0),c.dosPermissions&&16&c.dosPermissions&&(c.dir=!0),c.dir&&(t=v(t)),c.createFolders&&(i=d(t))&&b.call(this,i,!0),n&&void 0!==n.binary||(c.binary=!("string"===s&&!1===c.binary&&!1===c.base64)),(r instanceof a&&0===r.uncompressedSize||c.dir||!r||0===r.length)&&(c.base64=!1,c.binary=!0,r="",c.compression="STORE",s="string");var y;y=r instanceof a||r instanceof o?r:h.isNode&&h.isStream(r)?new l(t,r):e.prepareContent(t,r,c.binary,c.optimizedBinaryString,c.base64);var m=new f(t,y,c);this.files[t]=m}var i=t("./utf8"),e=t("./utils"),o=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),u=t("./defaults"),a=t("./compressedObject"),f=t("./zipObject"),c=t("./generate"),h=t("./nodejsUtils"),l=t("./nodejs/NodejsStreamInputAdapter"),d=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var r=t.lastIndexOf("/");return 0<r?t.substring(0,r):""},v=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},b=function(t,r){return r=void 0!==r?r:u.createFolders,t=v(t),this.files[t]||n.call(this,t,null,{dir:!0,createFolders:r}),this.files[t]};function y(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var m={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var r,n,i;for(r in this.files)i=this.files[r],(n=r.slice(this.root.length,r.length))&&r.slice(0,this.root.length)===this.root&&t(n,i)},filter:function(t){var r=[];return this.forEach((function(n,i){t(n,i)&&r.push(i)})),r},file:function(t,r,i){if(1!==arguments.length)return n.call(this,t=this.root+t,r,i),this;if(y(t)){var e=t;return this.filter((function(t,r){return!r.dir&&e.test(t)}))}var o=this.files[this.root+t];return o&&!o.dir?o:null},folder:function(t){if(!t)return this;if(y(t))return this.filter((function(r,n){return n.dir&&t.test(r)}));var r=b.call(this,this.root+t),n=this.clone();return n.root=r.name,n},remove:function(t){var r=this.files[t=this.root+t];if(r||("/"!==t.slice(-1)&&(t+="/"),r=this.files[t]),r&&!r.dir)delete this.files[t];else for(var n=this.filter((function(r,n){return n.name.slice(0,t.length)===t})),i=0;i<n.length;i++)delete this.files[n[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var r,n={};try{if((n=e.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");e.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS"),r=c.generateWorker(this,n,n.comment||this.comment||"")}catch(t){(r=new o("error")).error(t)}return new s(r,n.type||"string",n.mimeType)},generateAsync:function(t,r){return this.generateInternalStream(t).accumulate(r)},generateNodeStream:function(t,r){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(r)}};r.exports=m},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,r){r.exports=t("stream")},{stream:void 0}],17:[function(t,r){var n=t("./DataReader");function i(t){n.call(this,t);for(var r=0;r<this.data.length;r++)t[r]=255&t[r]}t("../utils").inherits(i,n),i.prototype.byteAt=function(t){return this.data[this.zero+t]},i.prototype.lastIndexOfSignature=function(t){for(var r=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),e=t.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===r&&this.data[o+1]===n&&this.data[o+2]===i&&this.data[o+3]===e)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(t){var r=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),e=t.charCodeAt(3),o=this.readData(4);return r===o[0]&&n===o[1]&&i===o[2]&&e===o[3]},i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var r=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,r},r.exports=i},{"../utils":32,"./DataReader":18}],18:[function(t,r){var n=t("../utils");function i(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var r,n=0;for(this.checkOffset(t),r=this.index+t-1;r>=this.index;r--)n=(n<<8)+this.byteAt(r);return this.index+=t,n},readString:function(t){return n.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},r.exports=i},{"../utils":32}],19:[function(t,r){var n=t("./Uint8ArrayReader");function i(t){n.call(this,t)}t("../utils").inherits(i,n),i.prototype.readData=function(t){this.checkOffset(t);var r=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,r},r.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,r){var n=t("./DataReader");function i(t){n.call(this,t)}t("../utils").inherits(i,n),i.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},i.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},i.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},i.prototype.readData=function(t){this.checkOffset(t);var r=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,r},r.exports=i},{"../utils":32,"./DataReader":18}],21:[function(t,r){var n=t("./ArrayReader");function i(t){n.call(this,t)}t("../utils").inherits(i,n),i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var r=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,r},r.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(t,r){var n=t("../utils"),i=t("../support"),e=t("./ArrayReader"),o=t("./StringReader"),s=t("./NodeBufferReader"),u=t("./Uint8ArrayReader");r.exports=function(t){var r=n.getTypeOf(t);return n.checkSupport(r),"string"!==r||i.uint8array?"nodebuffer"===r?new s(t):i.uint8array?new u(n.transformTo("uint8array",t)):new e(n.transformTo("array",t)):new o(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,r,n){n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,r){var n=t("./GenericWorker"),i=t("../utils");function e(t){n.call(this,"ConvertWorker to "+t),this.destType=t}i.inherits(e,n),e.prototype.processChunk=function(t){this.push({data:i.transformTo(this.destType,t.data),meta:t.meta})},r.exports=e},{"../utils":32,"./GenericWorker":28}],25:[function(t,r){var n=t("./GenericWorker"),i=t("../crc32");function e(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(e,n),e.prototype.processChunk=function(t){this.streamInfo.crc32=i(t.data,this.streamInfo.crc32||0),this.push(t)},r.exports=e},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,r){var n=t("../utils"),i=t("./GenericWorker");function e(t){i.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}n.inherits(e,i),e.prototype.processChunk=function(t){t&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+t.data.length),i.prototype.processChunk.call(this,t)},r.exports=e},{"../utils":32,"./GenericWorker":28}],27:[function(t,r){var n=t("../utils"),i=t("./GenericWorker");function e(t){i.call(this,"DataWorker");var r=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){r.dataIsReady=!0,r.data=t,r.max=t&&t.length||0,r.type=n.getTypeOf(t),r.isPaused||r._tickAndRepeat()}),(function(t){r.error(t)}))}n.inherits(e,i),e.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},e.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},e.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},e.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,r=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,r);break;case"uint8array":t=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":t=this.data.slice(this.index,r)}return this.index=r,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=e},{"../utils":32,"./GenericWorker":28}],28:[function(t,r){function n(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,r){return this._listeners[t].push(r),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,r){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,r)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var r=this;return t.on("data",(function(t){r.processChunk(t)})),t.on("end",(function(){r.end()})),t.on("error",(function(t){r.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,r){return this.extraStreamInfo[t]=r,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},r.exports=n},{}],29:[function(t,r){var n=t("../utils"),i=t("./ConvertWorker"),e=t("./GenericWorker"),o=t("../base64"),s=t("../support"),u=t("../external"),a=null;if(s.nodestream)try{a=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function f(t,r,o){var s=r;switch(r){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=r,this._mimeType=o,n.checkSupport(s),this._worker=t.pipe(new i(s)),t.lock()}catch(t){this._worker=new e("error"),this._worker.error(t)}}f.prototype={accumulate:function(t){return function(t,r){return new u.Promise((function(i,e){var s=[],u=t._internalType,a=t._outputType,f=t._mimeType;t.on("data",(function(t,n){s.push(t),r&&r(n)})).on("error",(function(t){s=[],e(t)})).on("end",(function(){try{var t=function(t,r,i){switch(t){case"blob":return n.newBlob(n.transformTo("arraybuffer",r),i);case"base64":return o.encode(r);default:return n.transformTo(t,r)}}(a,function(t,r){var n,i=0,e=null,o=0;for(n=0;n<r.length;n++)o+=r[n].length;switch(t){case"string":return r.join("");case"array":return Array.prototype.concat.apply([],r);case"uint8array":for(e=new Uint8Array(o),n=0;n<r.length;n++)e.set(r[n],i),i+=r[n].length;return e;case"nodebuffer":return Buffer.concat(r);default:throw new Error("concat : unsupported type '"+t+"'")}}(u,s),f);i(t)}catch(t){e(t)}s=[]})).resume()}))}(this,t)},on:function(t,r){var i=this;return this._worker.on(t,"data"===t?function(t){r.call(i,t.data,t.meta)}:function(){n.delay(r,arguments,i)}),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new a(this,{objectMode:"nodebuffer"!==this._outputType},t)}},r.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,r,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var i=new ArrayBuffer(0);try{n.blob=0===new Blob([i],{type:"application/zip"}).size}catch(t){try{var e=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);e.append(i),n.blob=0===e.getBlob("application/zip").size}catch(t){n.blob=!1}}}try{n.nodestream=!!t("readable-stream").Readable}catch(t){n.nodestream=!1}},{"readable-stream":16}],31:[function(t,r,n){for(var i=t("./utils"),e=t("./support"),o=t("./nodejsUtils"),s=t("./stream/GenericWorker"),u=new Array(256),a=0;a<256;a++)u[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function f(){s.call(this,"utf-8 decode"),this.leftOver=null}function c(){s.call(this,"utf-8 encode")}u[254]=u[254]=1,n.utf8encode=function(t){return e.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var r,n,i,o,s,u=t.length,a=0;for(o=0;o<u;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<u&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),a+=n<128?1:n<2048?2:n<65536?3:4;for(r=e.uint8array?new Uint8Array(a):new Array(a),o=s=0;s<a;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<u&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?r[s++]=n:(n<2048?r[s++]=192|n>>>6:(n<65536?r[s++]=224|n>>>12:(r[s++]=240|n>>>18,r[s++]=128|n>>>12&63),r[s++]=128|n>>>6&63),r[s++]=128|63&n);return r}(t)},n.utf8decode=function(t){return e.nodebuffer?i.transformTo("nodebuffer",t).toString("utf-8"):function(t){var r,n,e,o,s=t.length,a=new Array(2*s);for(r=n=0;r<s;)if((e=t[r++])<128)a[n++]=e;else if(4<(o=u[e]))a[n++]=65533,r+=o-1;else{for(e&=2===o?31:3===o?15:7;1<o&&r<s;)e=e<<6|63&t[r++],o--;1<o?a[n++]=65533:e<65536?a[n++]=e:(a[n++]=55296|(e-=65536)>>10&1023,a[n++]=56320|1023&e)}return a.length!==n&&(a.subarray?a=a.subarray(0,n):a.length=n),i.applyFromCharCode(a)}(t=i.transformTo(e.uint8array?"uint8array":"array",t))},i.inherits(f,s),f.prototype.processChunk=function(t){var r=i.transformTo(e.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(e.uint8array){var o=r;(r=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),r.set(o,this.leftOver.length)}else r=this.leftOver.concat(r);this.leftOver=null}var s=function(t,r){var n;for((r=r||t.length)>t.length&&(r=t.length),n=r-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?r:n+u[t[n]]>r?n:r}(r),a=r;s!==r.length&&(e.uint8array?(a=r.subarray(0,s),this.leftOver=r.subarray(s,r.length)):(a=r.slice(0,s),this.leftOver=r.slice(s,r.length))),this.push({data:n.utf8decode(a),meta:t.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=f,i.inherits(c,s),c.prototype.processChunk=function(t){this.push({data:n.utf8encode(t.data),meta:t.meta})},n.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,r,n){var i=t("./support"),e=t("./base64"),o=t("./nodejsUtils"),s=t("set-immediate-shim"),u=t("./external");function a(t){return t}function f(t,r){for(var n=0;n<t.length;++n)r[n]=255&t.charCodeAt(n);return r}n.newBlob=function(r,i){n.checkSupport("blob");try{return new Blob([r],{type:i})}catch(t){try{var e=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return e.append(r),e.getBlob(i)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(t,r,n){var i=[],e=0,o=t.length;if(o<=n)return String.fromCharCode.apply(null,t);for(;e<o;)i.push(String.fromCharCode.apply(null,"array"===r||"nodebuffer"===r?t.slice(e,Math.min(e+n,o)):t.subarray(e,Math.min(e+n,o)))),e+=n;return i.join("")},stringifyByChar:function(t){for(var r="",n=0;n<t.length;n++)r+=String.fromCharCode(t[n]);return r},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(t){return!1}}()}};function h(t){var r=65536,i=n.getTypeOf(t),e=!0;if("uint8array"===i?e=c.applyCanBeUsed.uint8array:"nodebuffer"===i&&(e=c.applyCanBeUsed.nodebuffer),e)for(;1<r;)try{return c.stringifyByChunk(t,i,r)}catch(t){r=Math.floor(r/2)}return c.stringifyByChar(t)}function l(t,r){for(var n=0;n<t.length;n++)r[n]=t[n];return r}n.applyFromCharCode=h;var d={};d.string={string:a,array:function(t){return f(t,new Array(t.length))},arraybuffer:function(t){return d.string.uint8array(t).buffer},uint8array:function(t){return f(t,new Uint8Array(t.length))},nodebuffer:function(t){return f(t,o.allocBuffer(t.length))}},d.array={string:h,array:a,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(t)}},d.arraybuffer={string:function(t){return h(new Uint8Array(t))},array:function(t){return l(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:a,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(new Uint8Array(t))}},d.uint8array={string:h,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:a,nodebuffer:function(t){return o.newBufferFrom(t)}},d.nodebuffer={string:h,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return d.nodebuffer.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:a},n.transformTo=function(t,r){if(r=r||"",!t)return r;n.checkSupport(t);var i=n.getTypeOf(r);return d[i][t](r)},n.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":i.nodebuffer&&o.isBuffer(t)?"nodebuffer":i.uint8array&&t instanceof Uint8Array?"uint8array":i.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(t){if(!i[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(t){var r,n,i="";for(n=0;n<(t||"").length;n++)i+="\\x"+((r=t.charCodeAt(n))<16?"0":"")+r.toString(16).toUpperCase();return i},n.delay=function(t,r,n){s((function(){t.apply(n||null,r||[])}))},n.inherits=function(t,r){function n(){}n.prototype=r.prototype,t.prototype=new n},n.extend=function(){var t,r,n={};for(t=0;t<arguments.length;t++)for(r in arguments[t])arguments[t].hasOwnProperty(r)&&void 0===n[r]&&(n[r]=arguments[t][r]);return n},n.prepareContent=function(t,r,o,s,a){return u.Promise.resolve(r).then((function(t){return i.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new u.Promise((function(r,n){var i=new FileReader;i.onload=function(t){r(t.target.result)},i.onerror=function(t){n(t.target.error)},i.readAsArrayBuffer(t)})):t})).then((function(r){var c=n.getTypeOf(r);return c?("arraybuffer"===c?r=n.transformTo("uint8array",r):"string"===c&&(a?r=e.decode(r):o&&!0!==s&&(r=function(t){return f(t,i.uint8array?new Uint8Array(t.length):new Array(t.length))}(r))),r):u.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(t,r){var n=t("./reader/readerFor"),i=t("./utils"),e=t("./signature"),o=t("./zipEntry"),s=(t("./utf8"),t("./support"));function u(t){this.files=[],this.loadOptions=t}u.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var r=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(r)+", expected "+i.pretty(t)+")")}},isSignature:function(t,r){var n=this.reader.index;this.reader.setIndex(t);var i=this.reader.readString(4)===r;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),r=i.transformTo(s.uint8array?"uint8array":"array",t);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,r,n,i=this.zip64EndOfCentralSize-44;0<i;)t=this.reader.readInt(2),r=this.reader.readInt(4),n=this.reader.readData(r),this.zip64ExtensibleData[t]={id:t,length:r,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,r;for(t=0;t<this.files.length;t++)this.reader.setIndex((r=this.files[t]).localHeaderOffset),this.checkSignature(e.LOCAL_FILE_HEADER),r.readLocalPart(this.reader),r.handleUTF8(),r.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(e.CENTRAL_FILE_HEADER);)(t=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(e.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,e.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var r=t;if(this.checkSignature(e.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(e.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(e.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,e.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(e.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(e.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var o=r-n;if(0<o)this.isSignature(r,e.CENTRAL_FILE_HEADER)||(this.reader.zero=o);else if(o<0)throw new Error("Corrupted zip: missing "+Math.abs(o)+" bytes.")},prepareReader:function(t){this.reader=n(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=u},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(t,r){var n=t("./reader/readerFor"),i=t("./utils"),e=t("./compressedObject"),o=t("./crc32"),s=t("./utf8"),u=t("./compressions"),a=t("./support");function f(t,r){this.options=t,this.loadOptions=r}f.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var r,n;if(t.skip(22),this.fileNameLength=t.readInt(2),n=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(r=function(t){for(var r in u)if(u.hasOwnProperty(r)&&u[r].magic===t)return u[r];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new e(this.compressedSize,this.uncompressedSize,this.crc32,r,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var r=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(r),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var r,n,i,e=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<e;)r=t.readInt(2),n=t.readInt(2),i=t.readData(n),this.extraFields[r]={id:r,length:n,value:i};t.setIndex(e)},handleUTF8:function(){var t=a.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var r=this.findExtraFieldUnicodePath();if(null!==r)this.fileNameStr=r;else{var n=i.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var e=this.findExtraFieldUnicodeComment();if(null!==e)this.fileCommentStr=e;else{var o=i.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var r=n(t.value);return 1!==r.readInt(1)||o(this.fileName)!==r.readInt(4)?null:s.utf8decode(r.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var r=n(t.value);return 1!==r.readInt(1)||o(this.fileComment)!==r.readInt(4)?null:s.utf8decode(r.readData(t.length-5))}return null}},r.exports=f},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,r){function n(t,r,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=r,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=t("./stream/StreamHelper"),e=t("./stream/DataWorker"),o=t("./utf8"),s=t("./compressedObject"),u=t("./stream/GenericWorker");n.prototype={internalStream:function(t){var r=null,n="string";try{if(!t)throw new Error("No output type specified.");var e="string"===(n=t.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),r=this._decompressWorker();var s=!this._dataBinary;s&&!e&&(r=r.pipe(new o.Utf8EncodeWorker)),!s&&e&&(r=r.pipe(new o.Utf8DecodeWorker))}catch(t){(r=new u("error")).error(t)}return new i(r,n,"")},async:function(t,r){return this.internalStream(t).accumulate(r)},nodeStream:function(t,r){return this.internalStream(t||"nodebuffer").toNodejsStream(r)},_compressWorker:function(t,r){if(this._data instanceof s&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,t,r)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof u?this._data:new e(this._data)}};for(var a=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],f=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},c=0;c<a.length;c++)n.prototype[a[c]]=f;r.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,n){(function(t){var r,i,e=t.MutationObserver||t.WebKitMutationObserver;if(e){var o=0,s=new e(c),u=t.document.createTextNode("");s.observe(u,{characterData:!0}),r=function(){u.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)r="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var r=t.document.createElement("script");r.onreadystatechange=function(){c(),r.onreadystatechange=null,r.parentNode.removeChild(r),r=null},t.document.documentElement.appendChild(r)}:function(){setTimeout(c,0)};else{var a=new t.MessageChannel;a.port1.onmessage=c,r=function(){a.port2.postMessage(0)}}var f=[];function c(){var t,r;i=!0;for(var n=f.length;n;){for(r=f,f=[],t=-1;++t<n;)r[t]();n=f.length}i=!1}n.exports=function(t){1!==f.push(t)||i||r()}}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,r){var n=t("immediate");function i(){}var e={},o=["REJECTED"],s=["FULFILLED"],u=["PENDING"];function a(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,t!==i&&l(this,t)}function f(t,r,n){this.promise=t,"function"==typeof r&&(this.onFulfilled=r,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function c(t,r,i){n((function(){var n;try{n=r(i)}catch(n){return e.reject(t,n)}n===t?e.reject(t,new TypeError("Cannot resolve promise with itself")):e.resolve(t,n)}))}function h(t){var r=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof r)return function(){r.apply(t,arguments)}}function l(t,r){var n=!1;function i(r){n||(n=!0,e.reject(t,r))}function o(r){n||(n=!0,e.resolve(t,r))}var s=d((function(){r(o,i)}));"error"===s.status&&i(s.value)}function d(t,r){var n={};try{n.value=t(r),n.status="success"}catch(t){n.status="error",n.value=t}return n}(r.exports=a).prototype.finally=function(t){if("function"!=typeof t)return this;var r=this.constructor;return this.then((function(n){return r.resolve(t()).then((function(){return n}))}),(function(n){return r.resolve(t()).then((function(){throw n}))}))},a.prototype.catch=function(t){return this.then(null,t)},a.prototype.then=function(t,r){if("function"!=typeof t&&this.state===s||"function"!=typeof r&&this.state===o)return this;var n=new this.constructor(i);return this.state!==u?c(n,this.state===s?t:r,this.outcome):this.queue.push(new f(n,t,r)),n},f.prototype.callFulfilled=function(t){e.resolve(this.promise,t)},f.prototype.otherCallFulfilled=function(t){c(this.promise,this.onFulfilled,t)},f.prototype.callRejected=function(t){e.reject(this.promise,t)},f.prototype.otherCallRejected=function(t){c(this.promise,this.onRejected,t)},e.resolve=function(t,r){var n=d(h,r);if("error"===n.status)return e.reject(t,n.value);var i=n.value;if(i)l(t,i);else{t.state=s,t.outcome=r;for(var o=-1,u=t.queue.length;++o<u;)t.queue[o].callFulfilled(r)}return t},e.reject=function(t,r){t.state=o,t.outcome=r;for(var n=-1,i=t.queue.length;++n<i;)t.queue[n].callRejected(r);return t},a.resolve=function(t){return t instanceof this?t:e.resolve(new this(i),t)},a.reject=function(t){var r=new this(i);return e.reject(r,t)},a.all=function(t){var r=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,o=!1;if(!n)return this.resolve([]);for(var s=new Array(n),u=0,a=-1,f=new this(i);++a<n;)c(t[a],a);return f;function c(t,i){r.resolve(t).then((function(t){s[i]=t,++u!==n||o||(o=!0,e.resolve(f,s))}),(function(t){o||(o=!0,e.reject(f,t))}))}},a.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var r=t.length,n=!1;if(!r)return this.resolve([]);for(var o=-1,s=new this(i);++o<r;)this.resolve(t[o]).then((function(t){n||(n=!0,e.resolve(s,t))}),(function(t){n||(n=!0,e.reject(s,t))}));return s}},{immediate:36}],38:[function(t,r){var n={};(0,t("./lib/utils/common").assign)(n,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),r.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,r,n){var i=t("./zlib/deflate"),e=t("./utils/common"),o=t("./utils/strings"),s=t("./zlib/messages"),u=t("./zlib/zstream"),a=Object.prototype.toString;function f(t){if(!(this instanceof f))return new f(t);this.options=e.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var r=this.options;r.raw&&0<r.windowBits?r.windowBits=-r.windowBits:r.gzip&&0<r.windowBits&&r.windowBits<16&&(r.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,r.level,r.method,r.windowBits,r.memLevel,r.strategy);if(0!==n)throw new Error(s[n]);if(r.header&&i.deflateSetHeader(this.strm,r.header),r.dictionary){var c;if(c="string"==typeof r.dictionary?o.string2buf(r.dictionary):"[object ArrayBuffer]"===a.call(r.dictionary)?new Uint8Array(r.dictionary):r.dictionary,0!==(n=i.deflateSetDictionary(this.strm,c)))throw new Error(s[n]);this._dict_set=!0}}function c(t,r){var n=new f(r);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}f.prototype.push=function(t,r){var n,s,u=this.strm,f=this.options.chunkSize;if(this.ended)return!1;s=r===~~r?r:!0===r?4:0,u.input="string"==typeof t?o.string2buf(t):"[object ArrayBuffer]"===a.call(t)?new Uint8Array(t):t,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=new e.Buf8(f),u.next_out=0,u.avail_out=f),1!==(n=i.deflate(u,s))&&0!==n)return this.onEnd(n),!(this.ended=!0);0!==u.avail_out&&(0!==u.avail_in||4!==s&&2!==s)||this.onData("string"===this.options.to?o.buf2binstring(e.shrinkBuf(u.output,u.next_out)):e.shrinkBuf(u.output,u.next_out))}while((0<u.avail_in||0===u.avail_out)&&1!==n);return 4===s?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==s||(this.onEnd(0),!(u.avail_out=0))},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){0===t&&(this.result="string"===this.options.to?this.chunks.join(""):e.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=f,n.deflate=c,n.deflateRaw=function(t,r){return(r=r||{}).raw=!0,c(t,r)},n.gzip=function(t,r){return(r=r||{}).gzip=!0,c(t,r)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,r,n){var i=t("./zlib/inflate"),e=t("./utils/common"),o=t("./utils/strings"),s=t("./zlib/constants"),u=t("./zlib/messages"),a=t("./zlib/zstream"),f=t("./zlib/gzheader"),c=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=e.assign({chunkSize:16384,windowBits:0,to:""},t||{});var r=this.options;r.raw&&0<=r.windowBits&&r.windowBits<16&&(r.windowBits=-r.windowBits,0===r.windowBits&&(r.windowBits=-15)),!(0<=r.windowBits&&r.windowBits<16)||t&&t.windowBits||(r.windowBits+=32),15<r.windowBits&&r.windowBits<48&&0==(15&r.windowBits)&&(r.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,r.windowBits);if(n!==s.Z_OK)throw new Error(u[n]);this.header=new f,i.inflateGetHeader(this.strm,this.header)}function l(t,r){var n=new h(r);if(n.push(t,!0),n.err)throw n.msg||u[n.err];return n.result}h.prototype.push=function(t,r){var n,u,a,f,h,l,d=this.strm,v=this.options.chunkSize,b=this.options.dictionary,y=!1;if(this.ended)return!1;u=r===~~r?r:!0===r?s.Z_FINISH:s.Z_NO_FLUSH,d.input="string"==typeof t?o.binstring2buf(t):"[object ArrayBuffer]"===c.call(t)?new Uint8Array(t):t,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new e.Buf8(v),d.next_out=0,d.avail_out=v),(n=i.inflate(d,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&b&&(l="string"==typeof b?o.string2buf(b):"[object ArrayBuffer]"===c.call(b)?new Uint8Array(b):b,n=i.inflateSetDictionary(this.strm,l)),n===s.Z_BUF_ERROR&&!0===y&&(n=s.Z_OK,y=!1),n!==s.Z_STREAM_END&&n!==s.Z_OK)return this.onEnd(n),!(this.ended=!0);d.next_out&&(0!==d.avail_out&&n!==s.Z_STREAM_END&&(0!==d.avail_in||u!==s.Z_FINISH&&u!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(a=o.utf8border(d.output,d.next_out),f=d.next_out-a,h=o.buf2string(d.output,a),d.next_out=f,d.avail_out=v-f,f&&e.arraySet(d.output,d.output,a,f,0),this.onData(h)):this.onData(e.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(y=!0)}while((0<d.avail_in||0===d.avail_out)&&n!==s.Z_STREAM_END);return n===s.Z_STREAM_END&&(u=s.Z_FINISH),u===s.Z_FINISH?(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===s.Z_OK):u!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(d.avail_out=0))},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===s.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):e.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=h,n.inflate=l,n.inflateRaw=function(t,r){return(r=r||{}).raw=!0,l(t,r)},n.ungzip=l},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,r,n){var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(t){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var n=r.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}}return t},n.shrinkBuf=function(t,r){return t.length===r?t:t.subarray?t.subarray(0,r):(t.length=r,t)};var e={arraySet:function(t,r,n,i,e){if(r.subarray&&t.subarray)t.set(r.subarray(n,n+i),e);else for(var o=0;o<i;o++)t[e+o]=r[n+o]},flattenChunks:function(t){var r,n,i,e,o,s;for(r=i=0,n=t.length;r<n;r++)i+=t[r].length;for(s=new Uint8Array(i),r=e=0,n=t.length;r<n;r++)s.set(o=t[r],e),e+=o.length;return s}},o={arraySet:function(t,r,n,i,e){for(var o=0;o<i;o++)t[e+o]=r[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,e)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(i)},{}],42:[function(t,r,n){var i=t("./common"),e=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){e=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var s=new i.Buf8(256),u=0;u<256;u++)s[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;function a(t,r){if(r<65537&&(t.subarray&&o||!t.subarray&&e))return String.fromCharCode.apply(null,i.shrinkBuf(t,r));for(var n="",s=0;s<r;s++)n+=String.fromCharCode(t[s]);return n}s[254]=s[254]=1,n.string2buf=function(t){var r,n,e,o,s,u=t.length,a=0;for(o=0;o<u;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<u&&56320==(64512&(e=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(e-56320),o++),a+=n<128?1:n<2048?2:n<65536?3:4;for(r=new i.Buf8(a),o=s=0;s<a;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<u&&56320==(64512&(e=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(e-56320),o++),n<128?r[s++]=n:(n<2048?r[s++]=192|n>>>6:(n<65536?r[s++]=224|n>>>12:(r[s++]=240|n>>>18,r[s++]=128|n>>>12&63),r[s++]=128|n>>>6&63),r[s++]=128|63&n);return r},n.buf2binstring=function(t){return a(t,t.length)},n.binstring2buf=function(t){for(var r=new i.Buf8(t.length),n=0,e=r.length;n<e;n++)r[n]=t.charCodeAt(n);return r},n.buf2string=function(t,r){var n,i,e,o,u=r||t.length,f=new Array(2*u);for(n=i=0;n<u;)if((e=t[n++])<128)f[i++]=e;else if(4<(o=s[e]))f[i++]=65533,n+=o-1;else{for(e&=2===o?31:3===o?15:7;1<o&&n<u;)e=e<<6|63&t[n++],o--;1<o?f[i++]=65533:e<65536?f[i++]=e:(f[i++]=55296|(e-=65536)>>10&1023,f[i++]=56320|1023&e)}return a(f,i)},n.utf8border=function(t,r){var n;for((r=r||t.length)>t.length&&(r=t.length),n=r-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?r:n+s[t[n]]>r?n:r}},{"./common":41}],43:[function(t,r){r.exports=function(t,r,n,i){for(var e=65535&t|0,o=t>>>16&65535|0,s=0;0!==n;){for(n-=s=2e3<n?2e3:n;o=o+(e=e+r[i++]|0)|0,--s;);e%=65521,o%=65521}return e|o<<16|0}},{}],44:[function(t,r){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,r){var n=function(){for(var t,r=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;r[n]=t}return r}();r.exports=function(t,r,i,e){var o=n,s=e+i;t^=-1;for(var u=e;u<s;u++)t=t>>>8^o[255&(t^r[u])];return-1^t}},{}],46:[function(t,r,n){var i,e=t("../utils/common"),o=t("./trees"),s=t("./adler32"),u=t("./crc32"),a=t("./messages"),f=-2,c=258,h=262,l=113;function d(t,r){return t.msg=a[r],r}function v(t){return(t<<1)-(4<t?9:0)}function b(t){for(var r=t.length;0<=--r;)t[r]=0}function y(t){var r=t.state,n=r.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(e.arraySet(t.output,r.pending_buf,r.pending_out,n,t.next_out),t.next_out+=n,r.pending_out+=n,t.total_out+=n,t.avail_out-=n,r.pending-=n,0===r.pending&&(r.pending_out=0))}function m(t,r){o._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,r),t.block_start=t.strstart,y(t.strm)}function p(t,r){t.pending_buf[t.pending++]=r}function w(t,r){t.pending_buf[t.pending++]=r>>>8&255,t.pending_buf[t.pending++]=255&r}function k(t,r){var n,i,e=t.max_chain_length,o=t.strstart,s=t.prev_length,u=t.nice_match,a=t.strstart>t.w_size-h?t.strstart-(t.w_size-h):0,f=t.window,l=t.w_mask,d=t.prev,v=t.strstart+c,b=f[o+s-1],y=f[o+s];t.prev_length>=t.good_match&&(e>>=2),u>t.lookahead&&(u=t.lookahead);do{if(f[(n=r)+s]===y&&f[n+s-1]===b&&f[n]===f[o]&&f[++n]===f[o+1]){o+=2,n++;do{}while(f[++o]===f[++n]&&f[++o]===f[++n]&&f[++o]===f[++n]&&f[++o]===f[++n]&&f[++o]===f[++n]&&f[++o]===f[++n]&&f[++o]===f[++n]&&f[++o]===f[++n]&&o<v);if(i=c-(v-o),o=v-c,s<i){if(t.match_start=r,u<=(s=i))break;b=f[o+s-1],y=f[o+s]}}}while((r=d[r&l])>a&&0!=--e);return s<=t.lookahead?s:t.lookahead}function g(t){var r,n,i,o,a,f,c,l,d,v,b=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=b+(b-h)){for(e.arraySet(t.window,t.window,b,b,0),t.match_start-=b,t.strstart-=b,t.block_start-=b,r=n=t.hash_size;i=t.head[--r],t.head[r]=b<=i?i-b:0,--n;);for(r=n=b;i=t.prev[--r],t.prev[r]=b<=i?i-b:0,--n;);o+=b}if(0===t.strm.avail_in)break;if(c=t.window,l=t.strstart+t.lookahead,v=void 0,(d=o)<(v=(f=t.strm).avail_in)&&(v=d),n=0===v?0:(f.avail_in-=v,e.arraySet(c,f.input,f.next_in,v,l),1===f.state.wrap?f.adler=s(f.adler,c,v,l):2===f.state.wrap&&(f.adler=u(f.adler,c,v,l)),f.next_in+=v,f.total_in+=v,v),t.lookahead+=n,t.lookahead+t.insert>=3)for(t.ins_h=t.window[a=t.strstart-t.insert],t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+3-1])&t.hash_mask,t.prev[a&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<h&&0!==t.strm.avail_in)}function A(t,r){for(var n,i;;){if(t.lookahead<h){if(g(t),t.lookahead<h&&0===r)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-h&&(t.match_length=k(t,n)),t.match_length>=3)if(i=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(m(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===r?(m(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(m(t,!1),0===t.strm.avail_out)?1:2}function S(t,r){for(var n,i,e;;){if(t.lookahead<h){if(g(t),t.lookahead<h&&0===r)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-h&&(t.match_length=k(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&4096<t.strstart-t.match_start)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){for(e=t.strstart+t.lookahead-3,i=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=e&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(m(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((i=o._tr_tally(t,0,t.window[t.strstart-1]))&&m(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===r?(m(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(m(t,!1),0===t.strm.avail_out)?1:2}function j(t,r,n,i,e){this.good_length=t,this.max_lazy=r,this.nice_length=n,this.max_chain=i,this.func=e}function O(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(1146),this.dyn_dtree=new e.Buf16(122),this.bl_tree=new e.Buf16(78),b(this.dyn_ltree),b(this.dyn_dtree),b(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(16),this.heap=new e.Buf16(573),b(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(573),b(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function E(t){var r;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(r=t.state).pending=0,r.pending_out=0,r.wrap<0&&(r.wrap=-r.wrap),r.status=r.wrap?42:l,t.adler=2===r.wrap?0:1,r.last_flush=0,o._tr_init(r),0):d(t,f)}function U(t){var r=E(t);return 0===r&&function(t){t.window_size=2*t.w_size,b(t.head),t.max_lazy_match=i[t.level].max_lazy,t.good_match=i[t.level].good_length,t.nice_match=i[t.level].nice_length,t.max_chain_length=i[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0}(t.state),r}function I(t,r,n,i,o,s){if(!t)return f;var u=1;if(-1===r&&(r=6),i<0?(u=0,i=-i):15<i&&(u=2,i-=16),o<1||9<o||8!==n||i<8||15<i||r<0||9<r||s<0||4<s)return d(t,f);8===i&&(i=9);var a=new O;return(t.state=a).strm=t,a.wrap=u,a.gzhead=null,a.w_bits=i,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=o+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+3-1)/3),a.window=new e.Buf8(2*a.w_size),a.head=new e.Buf16(a.hash_size),a.prev=new e.Buf16(a.w_size),a.lit_bufsize=1<<o+6,a.pending_buf_size=4*a.lit_bufsize,a.pending_buf=new e.Buf8(a.pending_buf_size),a.d_buf=1*a.lit_bufsize,a.l_buf=3*a.lit_bufsize,a.level=r,a.strategy=s,a.method=n,U(t)}i=[new j(0,0,0,0,(function(t,r){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(g(t),0===t.lookahead&&0===r)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+n;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,m(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-h&&(m(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===r?(m(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&m(t,!1),1)})),new j(4,4,8,4,A),new j(4,5,16,8,A),new j(4,6,32,32,A),new j(4,4,16,16,S),new j(8,16,32,32,S),new j(8,16,128,128,S),new j(8,32,128,256,S),new j(32,128,258,1024,S),new j(32,258,258,4096,S)],n.deflateInit=function(t,r){return I(t,r,8,15,8,0)},n.deflateInit2=I,n.deflateReset=U,n.deflateResetKeep=E,n.deflateSetHeader=function(t,r){return t&&t.state?2!==t.state.wrap?f:(t.state.gzhead=r,0):f},n.deflate=function(t,r){var n,e,s,a;if(!t||!t.state||5<r||r<0)return t?d(t,f):f;if(e=t.state,!t.output||!t.input&&0!==t.avail_in||666===e.status&&4!==r)return d(t,0===t.avail_out?-5:f);if(e.strm=t,n=e.last_flush,e.last_flush=r,42===e.status)if(2===e.wrap)t.adler=0,p(e,31),p(e,139),p(e,8),e.gzhead?(p(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),p(e,255&e.gzhead.time),p(e,e.gzhead.time>>8&255),p(e,e.gzhead.time>>16&255),p(e,e.gzhead.time>>24&255),p(e,9===e.level?2:2<=e.strategy||e.level<2?4:0),p(e,255&e.gzhead.os),e.gzhead.extra&&e.gzhead.extra.length&&(p(e,255&e.gzhead.extra.length),p(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(t.adler=u(t.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=69):(p(e,0),p(e,0),p(e,0),p(e,0),p(e,0),p(e,9===e.level?2:2<=e.strategy||e.level<2?4:0),p(e,3),e.status=l);else{var h=8+(e.w_bits-8<<4)<<8;h|=(2<=e.strategy||e.level<2?0:e.level<6?1:6===e.level?2:3)<<6,0!==e.strstart&&(h|=32),h+=31-h%31,e.status=l,w(e,h),0!==e.strstart&&(w(e,t.adler>>>16),w(e,65535&t.adler)),t.adler=1}if(69===e.status)if(e.gzhead.extra){for(s=e.pending;e.gzindex<(65535&e.gzhead.extra.length)&&(e.pending!==e.pending_buf_size||(e.gzhead.hcrc&&e.pending>s&&(t.adler=u(t.adler,e.pending_buf,e.pending-s,s)),y(t),s=e.pending,e.pending!==e.pending_buf_size));)p(e,255&e.gzhead.extra[e.gzindex]),e.gzindex++;e.gzhead.hcrc&&e.pending>s&&(t.adler=u(t.adler,e.pending_buf,e.pending-s,s)),e.gzindex===e.gzhead.extra.length&&(e.gzindex=0,e.status=73)}else e.status=73;if(73===e.status)if(e.gzhead.name){s=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>s&&(t.adler=u(t.adler,e.pending_buf,e.pending-s,s)),y(t),s=e.pending,e.pending===e.pending_buf_size)){a=1;break}a=e.gzindex<e.gzhead.name.length?255&e.gzhead.name.charCodeAt(e.gzindex++):0,p(e,a)}while(0!==a);e.gzhead.hcrc&&e.pending>s&&(t.adler=u(t.adler,e.pending_buf,e.pending-s,s)),0===a&&(e.gzindex=0,e.status=91)}else e.status=91;if(91===e.status)if(e.gzhead.comment){s=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>s&&(t.adler=u(t.adler,e.pending_buf,e.pending-s,s)),y(t),s=e.pending,e.pending===e.pending_buf_size)){a=1;break}a=e.gzindex<e.gzhead.comment.length?255&e.gzhead.comment.charCodeAt(e.gzindex++):0,p(e,a)}while(0!==a);e.gzhead.hcrc&&e.pending>s&&(t.adler=u(t.adler,e.pending_buf,e.pending-s,s)),0===a&&(e.status=103)}else e.status=103;if(103===e.status&&(e.gzhead.hcrc?(e.pending+2>e.pending_buf_size&&y(t),e.pending+2<=e.pending_buf_size&&(p(e,255&t.adler),p(e,t.adler>>8&255),t.adler=0,e.status=l)):e.status=l),0!==e.pending){if(y(t),0===t.avail_out)return e.last_flush=-1,0}else if(0===t.avail_in&&v(r)<=v(n)&&4!==r)return d(t,-5);if(666===e.status&&0!==t.avail_in)return d(t,-5);if(0!==t.avail_in||0!==e.lookahead||0!==r&&666!==e.status){var k=2===e.strategy?function(t,r){for(var n;;){if(0===t.lookahead&&(g(t),0===t.lookahead)){if(0===r)return 1;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(m(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===r?(m(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(m(t,!1),0===t.strm.avail_out)?1:2}(e,r):3===e.strategy?function(t,r){for(var n,i,e,s,u=t.window;;){if(t.lookahead<=c){if(g(t),t.lookahead<=c&&0===r)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&0<t.strstart&&(i=u[e=t.strstart-1])===u[++e]&&i===u[++e]&&i===u[++e]){s=t.strstart+c;do{}while(i===u[++e]&&i===u[++e]&&i===u[++e]&&i===u[++e]&&i===u[++e]&&i===u[++e]&&i===u[++e]&&i===u[++e]&&e<s);t.match_length=c-(s-e),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(m(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===r?(m(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(m(t,!1),0===t.strm.avail_out)?1:2}(e,r):i[e.level].func(e,r);if(3!==k&&4!==k||(e.status=666),1===k||3===k)return 0===t.avail_out&&(e.last_flush=-1),0;if(2===k&&(1===r?o._tr_align(e):5!==r&&(o._tr_stored_block(e,0,0,!1),3===r&&(b(e.head),0===e.lookahead&&(e.strstart=0,e.block_start=0,e.insert=0))),y(t),0===t.avail_out))return e.last_flush=-1,0}return 4!==r?0:e.wrap<=0?1:(2===e.wrap?(p(e,255&t.adler),p(e,t.adler>>8&255),p(e,t.adler>>16&255),p(e,t.adler>>24&255),p(e,255&t.total_in),p(e,t.total_in>>8&255),p(e,t.total_in>>16&255),p(e,t.total_in>>24&255)):(w(e,t.adler>>>16),w(e,65535&t.adler)),y(t),0<e.wrap&&(e.wrap=-e.wrap),0!==e.pending?0:1)},n.deflateEnd=function(t){var r;return t&&t.state?42!==(r=t.state.status)&&69!==r&&73!==r&&91!==r&&103!==r&&r!==l&&666!==r?d(t,f):(t.state=null,r===l?d(t,-3):0):f},n.deflateSetDictionary=function(t,r){var n,i,o,u,a,c,h,l,d=r.length;if(!t||!t.state)return f;if(2===(u=(n=t.state).wrap)||1===u&&42!==n.status||n.lookahead)return f;for(1===u&&(t.adler=s(t.adler,r,d,0)),n.wrap=0,d>=n.w_size&&(0===u&&(b(n.head),n.strstart=0,n.block_start=0,n.insert=0),l=new e.Buf8(n.w_size),e.arraySet(l,r,d-n.w_size,n.w_size,0),r=l,d=n.w_size),a=t.avail_in,c=t.next_in,h=t.input,t.avail_in=d,t.next_in=0,t.input=r,g(n);n.lookahead>=3;){for(i=n.strstart,o=n.lookahead-2;n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+3-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++,--o;);n.strstart=i,n.lookahead=2,g(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=c,t.input=h,t.avail_in=a,n.wrap=u,0},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,r){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,r){r.exports=function(t,r){var n,i,e,o,s,u,a,f,c,h,l,d,v,b,y,m,p,w,k,g,A,S,j,O,E;O=t.input,e=(i=t.next_in)+(t.avail_in-5),E=t.output,s=(o=t.next_out)-(r-t.avail_out),u=o+(t.avail_out-257),a=(n=t.state).dmax,f=n.wsize,c=n.whave,h=n.wnext,l=n.window,d=n.hold,v=n.bits,b=n.lencode,y=n.distcode,m=(1<<n.lenbits)-1,p=(1<<n.distbits)-1;t:do{v<15&&(d+=O[i++]<<v,d+=O[i++]<<(v+=8),v+=8),w=b[d&m];r:for(;;){if(d>>>=k=w>>>24,v-=k,0==(k=w>>>16&255))E[o++]=65535&w;else{if(!(16&k)){if(0==(64&k)){w=b[(65535&w)+(d&(1<<k)-1)];continue r}if(32&k){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}g=65535&w,(k&=15)&&(v<k&&(d+=O[i++]<<v,v+=8),g+=d&(1<<k)-1,d>>>=k,v-=k),v<15&&(d+=O[i++]<<v,d+=O[i++]<<(v+=8),v+=8),w=y[d&p];n:for(;;){if(d>>>=k=w>>>24,v-=k,!(16&(k=w>>>16&255))){if(0==(64&k)){w=y[(65535&w)+(d&(1<<k)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(A=65535&w,v<(k&=15)&&(d+=O[i++]<<v,(v+=8)<k&&(d+=O[i++]<<v,v+=8)),a<(A+=d&(1<<k)-1)){t.msg="invalid distance too far back",n.mode=30;break t}if(d>>>=k,v-=k,(k=o-s)<A){if(c<(k=A-k)&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(j=l,(S=0)===h){if(S+=f-k,k<g){for(g-=k;E[o++]=l[S++],--k;);S=o-A,j=E}}else if(h<k){if(S+=f+h-k,(k-=h)<g){for(g-=k;E[o++]=l[S++],--k;);if(S=0,h<g){for(g-=k=h;E[o++]=l[S++],--k;);S=o-A,j=E}}}else if(S+=h-k,k<g){for(g-=k;E[o++]=l[S++],--k;);S=o-A,j=E}for(;2<g;)E[o++]=j[S++],E[o++]=j[S++],E[o++]=j[S++],g-=3;g&&(E[o++]=j[S++],1<g&&(E[o++]=j[S++]))}else{for(S=o-A;E[o++]=E[S++],E[o++]=E[S++],E[o++]=E[S++],2<(g-=3););g&&(E[o++]=E[S++],1<g&&(E[o++]=E[S++]))}break}}break}}while(i<e&&o<u);i-=g=v>>3,d&=(1<<(v-=g<<3))-1,t.next_in=i,t.next_out=o,t.avail_in=i<e?e-i+5:5-(i-e),t.avail_out=o<u?u-o+257:257-(o-u),n.hold=d,n.bits=v}},{}],49:[function(t,r,n){var i=t("../utils/common"),e=t("./adler32"),o=t("./crc32"),s=t("./inffast"),u=t("./inftrees"),a=-2;function f(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function h(t){var r;return t&&t.state?(t.total_in=t.total_out=(r=t.state).total=0,t.msg="",r.wrap&&(t.adler=1&r.wrap),r.mode=1,r.last=0,r.havedict=0,r.dmax=32768,r.head=null,r.hold=0,r.bits=0,r.lencode=r.lendyn=new i.Buf32(852),r.distcode=r.distdyn=new i.Buf32(592),r.sane=1,r.back=-1,0):a}function l(t){var r;return t&&t.state?((r=t.state).wsize=0,r.whave=0,r.wnext=0,h(t)):a}function d(t,r){var n,i;return t&&t.state?(i=t.state,r<0?(n=0,r=-r):(n=1+(r>>4),r<48&&(r&=15)),r&&(r<8||15<r)?a:(null!==i.window&&i.wbits!==r&&(i.window=null),i.wrap=n,i.wbits=r,l(t))):a}function v(t,r){var n,i;return t?(i=new c,(t.state=i).window=null,0!==(n=d(t,r))&&(t.state=null),n):a}var b,y,m=!0;function p(t){if(m){var r;for(b=new i.Buf32(512),y=new i.Buf32(32),r=0;r<144;)t.lens[r++]=8;for(;r<256;)t.lens[r++]=9;for(;r<280;)t.lens[r++]=7;for(;r<288;)t.lens[r++]=8;for(u(1,t.lens,0,288,b,0,t.work,{bits:9}),r=0;r<32;)t.lens[r++]=5;u(2,t.lens,0,32,y,0,t.work,{bits:5}),m=!1}t.lencode=b,t.lenbits=9,t.distcode=y,t.distbits=5}function w(t,r,n,e){var o,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new i.Buf8(s.wsize)),e>=s.wsize?(i.arraySet(s.window,r,n-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(e<(o=s.wsize-s.wnext)&&(o=e),i.arraySet(s.window,r,n-e,o,s.wnext),(e-=o)?(i.arraySet(s.window,r,n-e,e,0),s.wnext=e,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}n.inflateReset=l,n.inflateReset2=d,n.inflateResetKeep=h,n.inflateInit=function(t){return v(t,15)},n.inflateInit2=v,n.inflate=function(t,r){var n,c,h,l,d,v,b,y,m,k,g,A,S,j,O,E,U,I,z,T,C,R,F,B,D=0,_=new i.Buf8(4),x=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return a;12===(n=t.state).mode&&(n.mode=13),d=t.next_out,h=t.output,l=t.next_in,c=t.input,y=n.hold,m=n.bits,k=v=t.avail_in,g=b=t.avail_out,R=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;m<16;){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}if(2&n.wrap&&35615===y){_[n.check=0]=255&y,_[1]=y>>>8&255,n.check=o(n.check,_,2,0),m=y=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&y)<<8)+(y>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&y)){t.msg="unknown compression method",n.mode=30;break}if(m-=4,C=8+(15&(y>>>=4)),0===n.wbits)n.wbits=C;else if(C>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<C,t.adler=n.check=1,n.mode=512&y?10:12,m=y=0;break;case 2:for(;m<16;){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}if(n.flags=y,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=y>>8&1),512&n.flags&&(_[0]=255&y,_[1]=y>>>8&255,n.check=o(n.check,_,2,0)),m=y=0,n.mode=3;case 3:for(;m<32;){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}n.head&&(n.head.time=y),512&n.flags&&(_[0]=255&y,_[1]=y>>>8&255,_[2]=y>>>16&255,_[3]=y>>>24&255,n.check=o(n.check,_,4,0)),m=y=0,n.mode=4;case 4:for(;m<16;){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}n.head&&(n.head.xflags=255&y,n.head.os=y>>8),512&n.flags&&(_[0]=255&y,_[1]=y>>>8&255,n.check=o(n.check,_,2,0)),m=y=0,n.mode=5;case 5:if(1024&n.flags){for(;m<16;){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}n.length=y,n.head&&(n.head.extra_len=y),512&n.flags&&(_[0]=255&y,_[1]=y>>>8&255,n.check=o(n.check,_,2,0)),m=y=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(v<(A=n.length)&&(A=v),A&&(n.head&&(C=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,c,l,A,C)),512&n.flags&&(n.check=o(n.check,c,A,l)),v-=A,l+=A,n.length-=A),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===v)break t;for(A=0;C=c[l+A++],n.head&&C&&n.length<65536&&(n.head.name+=String.fromCharCode(C)),C&&A<v;);if(512&n.flags&&(n.check=o(n.check,c,A,l)),v-=A,l+=A,C)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===v)break t;for(A=0;C=c[l+A++],n.head&&C&&n.length<65536&&(n.head.comment+=String.fromCharCode(C)),C&&A<v;);if(512&n.flags&&(n.check=o(n.check,c,A,l)),v-=A,l+=A,C)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;m<16;){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}if(y!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}m=y=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;m<32;){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}t.adler=n.check=f(y),m=y=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=d,t.avail_out=b,t.next_in=l,t.avail_in=v,n.hold=y,n.bits=m,2;t.adler=n.check=1,n.mode=12;case 12:if(5===r||6===r)break t;case 13:if(n.last){y>>>=7&m,m-=7&m,n.mode=27;break}for(;m<3;){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}switch(n.last=1&y,m-=1,3&(y>>>=1)){case 0:n.mode=14;break;case 1:if(p(n),n.mode=20,6!==r)break;y>>>=2,m-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}y>>>=2,m-=2;break;case 14:for(y>>>=7&m,m-=7&m;m<32;){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}if((65535&y)!=(y>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&y,m=y=0,n.mode=15,6===r)break t;case 15:n.mode=16;case 16:if(A=n.length){if(v<A&&(A=v),b<A&&(A=b),0===A)break t;i.arraySet(h,c,l,A,d),v-=A,l+=A,b-=A,d+=A,n.length-=A;break}n.mode=12;break;case 17:for(;m<14;){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}if(n.nlen=257+(31&y),m-=5,n.ndist=1+(31&(y>>>=5)),m-=5,n.ncode=4+(15&(y>>>=5)),y>>>=4,m-=4,286<n.nlen||30<n.ndist){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;m<3;){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}n.lens[x[n.have++]]=7&y,y>>>=3,m-=3}for(;n.have<19;)n.lens[x[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,R=u(0,n.lens,0,19,n.lencode,0,n.work,F={bits:n.lenbits}),n.lenbits=F.bits,R){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;E=(D=n.lencode[y&(1<<n.lenbits)-1])>>>16&255,U=65535&D,!((O=D>>>24)<=m);){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}if(U<16)y>>>=O,m-=O,n.lens[n.have++]=U;else{if(16===U){for(B=O+2;m<B;){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}if(y>>>=O,m-=O,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}C=n.lens[n.have-1],A=3+(3&y),y>>>=2,m-=2}else if(17===U){for(B=O+3;m<B;){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}m-=O,C=0,A=3+(7&(y>>>=O)),y>>>=3,m-=3}else{for(B=O+7;m<B;){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}m-=O,C=0,A=11+(127&(y>>>=O)),y>>>=7,m-=7}if(n.have+A>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;A--;)n.lens[n.have++]=C}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,R=u(1,n.lens,0,n.nlen,n.lencode,0,n.work,F={bits:n.lenbits}),n.lenbits=F.bits,R){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,R=u(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,F={bits:n.distbits}),n.distbits=F.bits,R){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===r)break t;case 20:n.mode=21;case 21:if(6<=v&&258<=b){t.next_out=d,t.avail_out=b,t.next_in=l,t.avail_in=v,n.hold=y,n.bits=m,s(t,g),d=t.next_out,h=t.output,b=t.avail_out,l=t.next_in,c=t.input,v=t.avail_in,y=n.hold,m=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;E=(D=n.lencode[y&(1<<n.lenbits)-1])>>>16&255,U=65535&D,!((O=D>>>24)<=m);){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}if(E&&0==(240&E)){for(I=O,z=E,T=U;E=(D=n.lencode[T+((y&(1<<I+z)-1)>>I)])>>>16&255,U=65535&D,!(I+(O=D>>>24)<=m);){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}y>>>=I,m-=I,n.back+=I}if(y>>>=O,m-=O,n.back+=O,n.length=U,0===E){n.mode=26;break}if(32&E){n.back=-1,n.mode=12;break}if(64&E){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&E,n.mode=22;case 22:if(n.extra){for(B=n.extra;m<B;){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}n.length+=y&(1<<n.extra)-1,y>>>=n.extra,m-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;E=(D=n.distcode[y&(1<<n.distbits)-1])>>>16&255,U=65535&D,!((O=D>>>24)<=m);){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}if(0==(240&E)){for(I=O,z=E,T=U;E=(D=n.distcode[T+((y&(1<<I+z)-1)>>I)])>>>16&255,U=65535&D,!(I+(O=D>>>24)<=m);){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}y>>>=I,m-=I,n.back+=I}if(y>>>=O,m-=O,n.back+=O,64&E){t.msg="invalid distance code",n.mode=30;break}n.offset=U,n.extra=15&E,n.mode=24;case 24:if(n.extra){for(B=n.extra;m<B;){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}n.offset+=y&(1<<n.extra)-1,y>>>=n.extra,m-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===b)break t;if(n.offset>(A=g-b)){if((A=n.offset-A)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}S=A>n.wnext?n.wsize-(A-=n.wnext):n.wnext-A,A>n.length&&(A=n.length),j=n.window}else j=h,S=d-n.offset,A=n.length;for(b<A&&(A=b),b-=A,n.length-=A;h[d++]=j[S++],--A;);0===n.length&&(n.mode=21);break;case 26:if(0===b)break t;h[d++]=n.length,b--,n.mode=21;break;case 27:if(n.wrap){for(;m<32;){if(0===v)break t;v--,y|=c[l++]<<m,m+=8}if(t.total_out+=g-=b,n.total+=g,g&&(t.adler=n.check=n.flags?o(n.check,h,g,d-g):e(n.check,h,g,d-g)),g=b,(n.flags?y:f(y))!==n.check){t.msg="incorrect data check",n.mode=30;break}m=y=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;m<32;){if(0===v)break t;v--,y+=c[l++]<<m,m+=8}if(y!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}m=y=0}n.mode=29;case 29:R=1;break t;case 30:R=-3;break t;case 31:return-4;case 32:default:return a}return t.next_out=d,t.avail_out=b,t.next_in=l,t.avail_in=v,n.hold=y,n.bits=m,(n.wsize||g!==t.avail_out&&n.mode<30&&(n.mode<27||4!==r))&&w(t,t.output,t.next_out,g-t.avail_out)?(n.mode=31,-4):(g-=t.avail_out,t.total_in+=k-=t.avail_in,t.total_out+=g,n.total+=g,n.wrap&&g&&(t.adler=n.check=n.flags?o(n.check,h,g,t.next_out-g):e(n.check,h,g,t.next_out-g)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==k&&0===g||4===r)&&0===R&&(R=-5),R)},n.inflateEnd=function(t){if(!t||!t.state)return a;var r=t.state;return r.window&&(r.window=null),t.state=null,0},n.inflateGetHeader=function(t,r){var n;return t&&t.state?0==(2&(n=t.state).wrap)?a:((n.head=r).done=!1,0):a},n.inflateSetDictionary=function(t,r){var n,i=r.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?a:11===n.mode&&e(1,r,i,0)!==n.check?-3:w(t,r,i,i)?(n.mode=31,-4):(n.havedict=1,0):a},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,r){var n=t("../utils/common"),i=[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,0,0],e=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[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,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(t,r,u,a,f,c,h,l){var d,v,b,y,m,p,w,k,g,A=l.bits,S=0,j=0,O=0,E=0,U=0,I=0,z=0,T=0,C=0,R=0,F=null,B=0,D=new n.Buf16(16),_=new n.Buf16(16),x=null,N=0;for(S=0;S<=15;S++)D[S]=0;for(j=0;j<a;j++)D[r[u+j]]++;for(U=A,E=15;1<=E&&0===D[E];E--);if(E<U&&(U=E),0===E)return f[c++]=20971520,f[c++]=20971520,l.bits=1,0;for(O=1;O<E&&0===D[O];O++);for(U<O&&(U=O),S=T=1;S<=15;S++)if(T<<=1,(T-=D[S])<0)return-1;if(0<T&&(0===t||1!==E))return-1;for(_[1]=0,S=1;S<15;S++)_[S+1]=_[S]+D[S];for(j=0;j<a;j++)0!==r[u+j]&&(h[_[r[u+j]]++]=j);if(p=0===t?(F=x=h,19):1===t?(F=i,B-=257,x=e,N-=257,256):(F=o,x=s,-1),S=O,m=c,z=j=R=0,b=-1,y=(C=1<<(I=U))-1,1===t&&852<C||2===t&&592<C)return 1;for(;;){for(w=S-z,g=h[j]<p?(k=0,h[j]):h[j]>p?(k=x[N+h[j]],F[B+h[j]]):(k=96,0),d=1<<S-z,O=v=1<<I;f[m+(R>>z)+(v-=d)]=w<<24|k<<16|g|0,0!==v;);for(d=1<<S-1;R&d;)d>>=1;if(0!==d?(R&=d-1,R+=d):R=0,j++,0==--D[S]){if(S===E)break;S=r[u+h[j]]}if(U<S&&(R&y)!==b){for(0===z&&(z=U),m+=O,T=1<<(I=S-z);I+z<E&&!((T-=D[I+z])<=0);)I++,T<<=1;if(C+=1<<I,1===t&&852<C||2===t&&592<C)return 1;f[b=R&y]=U<<24|I<<16|m-c|0}}return 0!==R&&(f[m+R]=S-z<<24|64<<16|0),l.bits=U,0}},{"../utils/common":41}],51:[function(t,r){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,r,n){var i=t("../utils/common");function e(t){for(var r=t.length;0<=--r;)t[r]=0}var o=256,s=286,u=30,a=15,f=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],c=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],d=new Array(576);e(d);var v=new Array(60);e(v);var b=new Array(512);e(b);var y=new Array(256);e(y);var m=new Array(29);e(m);var p,w,k,g=new Array(u);function A(t,r,n,i,e){this.static_tree=t,this.extra_bits=r,this.extra_base=n,this.elems=i,this.max_length=e,this.has_stree=t&&t.length}function S(t,r){this.dyn_tree=t,this.max_code=0,this.stat_desc=r}function j(t){return t<256?b[t]:b[256+(t>>>7)]}function O(t,r){t.pending_buf[t.pending++]=255&r,t.pending_buf[t.pending++]=r>>>8&255}function E(t,r,n){t.bi_valid>16-n?(t.bi_buf|=r<<t.bi_valid&65535,O(t,t.bi_buf),t.bi_buf=r>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=r<<t.bi_valid&65535,t.bi_valid+=n)}function U(t,r,n){E(t,n[2*r],n[2*r+1])}function I(t,r){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--r;);return n>>>1}function z(t,r,n){var i,e,o=new Array(16),s=0;for(i=1;i<=a;i++)o[i]=s=s+n[i-1]<<1;for(e=0;e<=r;e++){var u=t[2*e+1];0!==u&&(t[2*e]=I(o[u]++,u))}}function T(t){var r;for(r=0;r<s;r++)t.dyn_ltree[2*r]=0;for(r=0;r<u;r++)t.dyn_dtree[2*r]=0;for(r=0;r<19;r++)t.bl_tree[2*r]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function C(t){8<t.bi_valid?O(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function R(t,r,n,i){var e=2*r,o=2*n;return t[e]<t[o]||t[e]===t[o]&&i[r]<=i[n]}function F(t,r,n){for(var i=t.heap[n],e=n<<1;e<=t.heap_len&&(e<t.heap_len&&R(r,t.heap[e+1],t.heap[e],t.depth)&&e++,!R(r,i,t.heap[e],t.depth));)t.heap[n]=t.heap[e],n=e,e<<=1;t.heap[n]=i}function B(t,r,n){var i,e,s,u,a=0;if(0!==t.last_lit)for(;i=t.pending_buf[t.d_buf+2*a]<<8|t.pending_buf[t.d_buf+2*a+1],e=t.pending_buf[t.l_buf+a],a++,0===i?U(t,e,r):(U(t,(s=y[e])+o+1,r),0!==(u=f[s])&&E(t,e-=m[s],u),U(t,s=j(--i),n),0!==(u=c[s])&&E(t,i-=g[s],u)),a<t.last_lit;);U(t,256,r)}function D(t,r){var n,i,e,o=r.dyn_tree,s=r.stat_desc.static_tree,u=r.stat_desc.has_stree,f=r.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<f;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(e=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[e]=0,t.opt_len--,u&&(t.static_len-=s[2*e+1]);for(r.max_code=c,n=t.heap_len>>1;1<=n;n--)F(t,o,n);for(e=f;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],F(t,o,1),i=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=i,o[2*e]=o[2*n]+o[2*i],t.depth[e]=(t.depth[n]>=t.depth[i]?t.depth[n]:t.depth[i])+1,o[2*n+1]=o[2*i+1]=e,t.heap[1]=e++,F(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,r){var n,i,e,o,s,u,f=r.dyn_tree,c=r.max_code,h=r.stat_desc.static_tree,l=r.stat_desc.has_stree,d=r.stat_desc.extra_bits,v=r.stat_desc.extra_base,b=r.stat_desc.max_length,y=0;for(o=0;o<=a;o++)t.bl_count[o]=0;for(f[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)b<(o=f[2*f[2*(i=t.heap[n])+1]+1]+1)&&(o=b,y++),f[2*i+1]=o,c<i||(t.bl_count[o]++,s=0,v<=i&&(s=d[i-v]),t.opt_len+=(u=f[2*i])*(o+s),l&&(t.static_len+=u*(h[2*i+1]+s)));if(0!==y){do{for(o=b-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[b]--,y-=2}while(0<y);for(o=b;0!==o;o--)for(i=t.bl_count[o];0!==i;)c<(e=t.heap[--n])||(f[2*e+1]!==o&&(t.opt_len+=(o-f[2*e+1])*f[2*e],f[2*e+1]=o),i--)}}(t,r),z(o,c,t.bl_count)}function _(t,r,n){var i,e,o=-1,s=r[1],u=0,a=7,f=4;for(0===s&&(a=138,f=3),r[2*(n+1)+1]=65535,i=0;i<=n;i++)e=s,s=r[2*(i+1)+1],++u<a&&e===s||(u<f?t.bl_tree[2*e]+=u:0!==e?(e!==o&&t.bl_tree[2*e]++,t.bl_tree[32]++):u<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=e,f=(u=0)===s?(a=138,3):e===s?(a=6,3):(a=7,4))}function x(t,r,n){var i,e,o=-1,s=r[1],u=0,a=7,f=4;for(0===s&&(a=138,f=3),i=0;i<=n;i++)if(e=s,s=r[2*(i+1)+1],!(++u<a&&e===s)){if(u<f)for(;U(t,e,t.bl_tree),0!=--u;);else 0!==e?(e!==o&&(U(t,e,t.bl_tree),u--),U(t,16,t.bl_tree),E(t,u-3,2)):u<=10?(U(t,17,t.bl_tree),E(t,u-3,3)):(U(t,18,t.bl_tree),E(t,u-11,7));o=e,f=(u=0)===s?(a=138,3):e===s?(a=6,3):(a=7,4)}}e(g);var N=!1;function W(t,r,n,e){E(t,0+(e?1:0),3),function(t,r,n){C(t),O(t,n),O(t,~n),i.arraySet(t.pending_buf,t.window,r,n,t.pending),t.pending+=n}(t,r,n)}n._tr_init=function(t){N||(function(){var t,r,n,i,e,o=new Array(16);for(i=n=0;i<28;i++)for(m[i]=n,t=0;t<1<<f[i];t++)y[n++]=i;for(y[n-1]=i,i=e=0;i<16;i++)for(g[i]=e,t=0;t<1<<c[i];t++)b[e++]=i;for(e>>=7;i<u;i++)for(g[i]=e<<7,t=0;t<1<<c[i]-7;t++)b[256+e++]=i;for(r=0;r<=a;r++)o[r]=0;for(t=0;t<=143;)d[2*t+1]=8,t++,o[8]++;for(;t<=255;)d[2*t+1]=9,t++,o[9]++;for(;t<=279;)d[2*t+1]=7,t++,o[7]++;for(;t<=287;)d[2*t+1]=8,t++,o[8]++;for(z(d,287,o),t=0;t<u;t++)v[2*t+1]=5,v[2*t]=I(t,5);p=new A(d,f,257,s,a),w=new A(v,c,0,u,a),k=new A(new Array(0),h,0,19,7)}(),N=!0),t.l_desc=new S(t.dyn_ltree,p),t.d_desc=new S(t.dyn_dtree,w),t.bl_desc=new S(t.bl_tree,k),t.bi_buf=0,t.bi_valid=0,T(t)},n._tr_stored_block=W,n._tr_flush_block=function(t,r,n,i){var e,s,u=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var r,n=4093624447;for(r=0;r<=31;r++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*r])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(r=32;r<o;r++)if(0!==t.dyn_ltree[2*r])return 1;return 0}(t)),D(t,t.l_desc),D(t,t.d_desc),u=function(t){var r;for(_(t,t.dyn_ltree,t.l_desc.max_code),_(t,t.dyn_dtree,t.d_desc.max_code),D(t,t.bl_desc),r=18;3<=r&&0===t.bl_tree[2*l[r]+1];r--);return t.opt_len+=3*(r+1)+5+5+4,r}(t),(s=t.static_len+3+7>>>3)<=(e=t.opt_len+3+7>>>3)&&(e=s)):e=s=n+5,n+4<=e&&-1!==r?W(t,r,n,i):4===t.strategy||s===e?(E(t,2+(i?1:0),3),B(t,d,v)):(E(t,4+(i?1:0),3),function(t,r,n,i){var e;for(E(t,r-257,5),E(t,n-1,5),E(t,i-4,4),e=0;e<i;e++)E(t,t.bl_tree[2*l[e]+1],3);x(t,t.dyn_ltree,r-1),x(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,u+1),B(t,t.dyn_ltree,t.dyn_dtree)),T(t),i&&C(t)},n._tr_tally=function(t,r,n){return t.pending_buf[t.d_buf+2*t.last_lit]=r>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&r,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===r?t.dyn_ltree[2*n]++:(t.matches++,r--,t.dyn_ltree[2*(y[n]+o+1)]++,t.dyn_dtree[2*j(r)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){E(t,2,3),U(t,256,d),function(t){16===t.bi_valid?(O(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,r){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,r){r.exports="function"==typeof setImmediate?setImmediate:function(){var t=[].slice.apply(arguments);t.splice(1,0,0),setTimeout.apply(null,t)}},{}]},{},[10])(10)}(i={path:undefined,exports:{},require:function(){return n()}}),i.exports);function o(t){return e.loadAsync(t).then((function(t){var r=[];t.forEach((function(t,n){n.dir||r.push(n.name)}));var n={};return Promise.all(r.map((function(r){return t.file(r).async("string").then((function(t){return n[r]=t}))}))).then((function(){return n}))}))}function s(t,r){for(var n=0;n<t.childNodes.length;){var i=t.childNodes[n];if(1===i.nodeType&&c(i)===r)return i;n++}}function u(t,r){for(var n=[],i=0;i<t.childNodes.length;){var e=t.childNodes[i];1===e.nodeType&&c(e)===r&&n.push(e),i++}return n}function a(t,r,n){for(var i=0;i<t.childNodes.length;){var e=t.childNodes[i];r?1===e.nodeType&&c(e)===r&&n(e,i):n(e,i),i++}}var f=/.+\:/;function c(t){return t.tagName.replace(f,"")}function h(t,r){var n,i=r.createDocument(t),e={},o=s(i.documentElement,"workbookPr");return o&&"1"===o.getAttribute("date1904")&&(e.epoch1904=!0),e.sheets=[],(n=i,u(s(n.documentElement,"sheets"),"sheet")).forEach((function(t){t.getAttribute("name")&&e.sheets.push({id:t.getAttribute("sheetId"),name:t.getAttribute("name"),relationId:t.getAttribute("r:id")})})),e}function l(t,r){var n=r.createDocument(t),i={sheets:{},sharedStrings:void 0,styles:void 0};return function(t){return u(t.documentElement,"Relationship")}(n).forEach((function(t){var r=t.getAttribute("Target");switch(t.getAttribute("Type")){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles":i.styles=d(r);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings":i.sharedStrings=d(r);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet":i.sheets[t.getAttribute("Id")]=d(r)}})),i}function d(t){return"/"===t[0]?t.slice("/".length):"xl/"+t}function v(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,i)}return n}function b(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?v(Object(n),!0).forEach((function(r){y(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function y(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function m(t,r){if(!t)return{};var n,i,e=r.createDocument(t),o=(n=e,i=s(n.documentElement,"cellStyleXfs"),i?u(i,"xf"):[]).map(w),a=function(t){var r=s(t.documentElement,"numFmts");return r?u(r,"numFmt"):[]}(e).map(p).reduce((function(t,r){return t[r.id]=r,t}),[]);return function(t){var r=s(t.documentElement,"cellXfs");return r?u(r,"xf"):[]}(e).map((function(t){return t.hasAttribute("xfId")?b(b({},o[t.xfId]),w(t,a)):w(t,a)}))}function p(t){return{id:t.getAttribute("numFmtId"),template:t.getAttribute("formatCode")}}function w(t,r){var n={};if(t.hasAttribute("numFmtId")){var i=t.getAttribute("numFmtId");n.numberFormat=r[i]?r[i]:{id:i}}return n}function k(t,r){return t?(n=r.createDocument(t),i=function(t){var r=s(t,"t");if(r)return r.textContent;var n="";return a(t,"r",(function(t){n+=s(t,"t").textContent})),n},e=[],a(n.documentElement,"si",(function(t){e.push(i(t))})),e):[];var n,i,e}function g(t,r){return r&&r.epoch1904&&(t+=1462),new Date(Math.round(24*(t-25569)*36e5))}function A(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,i=new Array(r);n<r;n++)i[n]=t[n];return i}var S=[14,15,16,17,18,19,20,21,22,27,30,36,45,46,47,50,57];function j(t,r,n){var i=n.getInlineStringValue,e=n.getStyleId,o=n.styles,s=n.values,u=n.properties,a=n.options;switch(r||(r="n"),r){case"str":""===(t=t.trim())&&(t=void 0);break;case"inlineStr":if(void 0===(t=i()))throw new Error('Unsupported "inline string" cell value structure');""===(t=t.trim())&&(t=void 0);break;case"s":""===(t=(t=s[parseInt(t)]).trim())&&(t=void 0);break;case"b":t="1"===t;break;case"z":t=void 0;break;case"e":t=function(t){switch(t){case 0:return"#NULL!";case 7:return"#DIV/0!";case 15:return"#VALUE!";case 23:return"#REF!";case 29:return"#NAME?";case 36:return"#NUM!";case 42:return"#N/A";case 43:return"#GETTING_DATA";default:return"#ERROR_".concat(t)}}(t);break;case"d":if(void 0===t)break;t=new Date(t);break;case"n":if(void 0===t)break;t=parseFloat(t);var f=e();if(f){var c=o[f];if(!c)throw new Error("Cell style not found: ".concat(f));(S.indexOf(parseInt(c.numberFormat.id))>=0||a.dateFormat&&c.numberFormat.template===a.dateFormat||!1!==a.smartDateParser&&c.numberFormat.template&&function(t){for(var r,n=function(t,r){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,r){if(t){if("string"==typeof t)return A(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}((t=t.toLowerCase()).split(/\W+/));!(r=n()).done;)if(O.indexOf(r.value)<0)return!1;return!0}(c.numberFormat.template))&&(t=g(t,u))}break;default:throw new TypeError("Cell type not supported: ".concat(r))}return void 0===t&&(t=null),t}var O=["ss","mm","h","hh","am","pm","d","dd","m","mm","mmm","mmmm","yy","yyyy"],E=["","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];function U(t){for(var r=0,n=0;n<t.length;)r*=26,r+=E.indexOf(t[n]),n++;return r}function I(t){return t=t.split(/(\d+)/),[parseInt(t[1]),U(t[0].trim())]}function z(t,r,n,i,e,o){var u=function(t){var r=s(t.documentElement,"sheetData"),n=[];return a(r,"row",(function(t){a(t,"c",(function(t){n.push(t)}))})),n}(t);return 0===u.length?[]:u.map((function(t){return function(t,r,n,i,e,o,u){var a,f=I(t.getAttribute("r")),h=function(t,r){return s(r,"v")}(0,t),l=h&&h.textContent;return t.hasAttribute("t")&&(a=t.getAttribute("t")),{row:f[0],column:f[1],value:j(l,a,{getInlineStringValue:function(){return function(t,r){if(r.firstChild&&"is"===c(r.firstChild)&&r.firstChild.firstChild&&"t"===c(r.firstChild.firstChild))return r.firstChild.firstChild.textContent}(0,t)},getStyleId:function(){return t.getAttribute("s")},styles:e,values:i,properties:o,options:u})}}(t,0,0,n,i,e,o)}))}function T(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,i=new Array(r);n<r;n++)i[n]=t[n];return i}function C(t){var r=function(t){var r=s(t.documentElement,"dimension");if(r)return r.getAttribute("ref")}(t);if(r)return 1===(r=r.split(":").map(I).map((function(t){var r,n,i=(n=2,function(t){if(Array.isArray(t))return t}(r=t)||function(t,r){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var i,e,o=[],s=!0,u=!1;try{for(n=n.call(t);!(s=(i=n.next()).done)&&(o.push(i.value),!r||o.length!==r);s=!0);}catch(a){u=!0,e=a}finally{try{s||null==n.return||n.return()}finally{if(u)throw e}}return o}}(r,n)||function(t,r){if(t){if("string"==typeof t)return T(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(t,r):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return{row:i[0],column:i[1]}}))).length&&(r=[r[0],r[0]]),r}function R(t,r,n,i,e,o){var s=r.createDocument(t),u=z(s,0,n,i,e,o),a=C(s)||function(t){var r=function(t,r){return t-r},n=t.map((function(t){return t.row})).sort(r),i=t.map((function(t){return t.column})).sort(r);return[{row:n[0],column:i[0]},{row:n[n.length-1],column:i[i.length-1]}]}(u);return{cells:u,dimensions:a}}function F(t,r){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,r){if(t){if("string"==typeof t)return B(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function B(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,i=new Array(r);n<r;n++)i[n]=t[n];return i}function D(t,r){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,r){if(t){if("string"==typeof t)return _(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,i=new Array(r);n<r;n++)i[n]=t[n];return i}function x(t,r){if(t){if("string"==typeof t)return N(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(t,r):void 0}}function N(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,i=new Array(r);n<r;n++)i[n]=t[n];return i}function W(t,r){var n=t.cells;if(0===n.length)return[];for(var i=function(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var i,e,o=[],s=!0,u=!1;try{for(n=n.call(t);!(s=(i=n.next()).done)&&(o.push(i.value),!r||o.length!==r);s=!0);}catch(a){u=!0,e=a}finally{try{s||null==n.return||n.return()}finally{if(u)throw e}}return o}}(t,r)||x(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.dimensions,2)[1],e=i.column,o=i.row,s=new Array(o),u=0;u<o;){s[u]=new Array(e);for(var a=0;a<e;)s[u][a]=null,a++;u++}for(var f,c=function(t){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=x(t))){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(f=c()).done;){var h=f.value,l=h.row-1,d=h.column-1;d<e&&l<o&&(s[l][d]=h.value)}var v=r.rowMap;if(v)for(var b=0;b<s.length;)v[b]=b,b++;return s=function(t){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.rowMap,i=r.accessor,e=void 0===i?function(t){return t}:i,o=r.onlyTrimAtTheEnd,s=t.length-1;s>=0;){for(var u,a=!0,f=F(t[s]);!(u=f()).done;)if(null!==e(u.value)){a=!1;break}if(a)t.splice(s,1),n&&n.splice(s,1);else if(o)break;s--}return t}(function(t){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.accessor,i=void 0===n?function(t){return t}:n,e=r.onlyTrimAtTheEnd,o=t[0].length-1;o>=0;){for(var s,u=!0,a=D(t);!(s=a()).done;)if(null!==i(s.value[o])){u=!1;break}if(u)for(var f=0;f<t.length;)t[f].splice(o,1),f++;else if(e)break;o--}return t}(s,{onlyTrimAtTheEnd:!0}),{onlyTrimAtTheEnd:!0,rowMap:v}),r.transformData&&(s=r.transformData(s)),s}function Z(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,i=new Array(r);n<r;n++)i[n]=t[n];return i}function P(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,i)}return n}function G(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?P(Object(n),!0).forEach((function(r){L(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function L(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function M(t,r){if("number"==typeof t){var n=r[t-1];return n&&n.relationId}for(var i,e=function(t,r){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,r){if(t){if("string"==typeof t)return Z(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r);!(i=e()).done;){var o=i.value;if(o.name===t)return o.relationId}}function H(t,r){var n=r&&r.map((function(t,r){return'"'.concat(t.name,'" (#').concat(r+1,")")})).join(", ");return new Error("Sheet ".concat("number"==typeof t?"#"+t:'"'+t+'"'," not found in the *.xlsx file.").concat(r?" Available sheets: "+n+".":""))}function K(){}function J(){}var $=/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)*(?:[a-z\u00a1-\uffff]{2,}))(?::\d{2,5})?(?:[/?#]\S*)?$/i;function X(){}var Y=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i;function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function q(t,r){if(t){if("string"==typeof t)return Q(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(t,r):void 0}}function Q(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,i=new Array(r);n<r;n++)i[n]=t[n];return i}function tt(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,i)}return n}function rt(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?tt(Object(n),!0).forEach((function(r){nt(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function nt(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var it={isColumnOriented:!1};function et(t,r,n,i,e,o){for(var s={},u=function(){var u=f[a],c=t[u],h="object"===V(c.type)&&!Array.isArray(c.type),l=r[i.indexOf(u)];void 0===l&&(l=null);var d=void 0,v=void 0;if(h)d=et(c.type,r,n,i,e,o);else if(null===l)d=null;else if(Array.isArray(c.type)){var b=!1,y=function(t){for(var r,n,i=[],e=0;e<t.length;){var o=(r=ut(t,",",e),n=2,function(t){if(Array.isArray(t))return t}(r)||function(t,r){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var i,e,o=[],s=!0,u=!1;try{for(n=n.call(t);!(s=(i=n.next()).done)&&(o.push(i.value),!r||o.length!==r);s=!0);}catch(a){u=!0,e=a}finally{try{s||null==n.return||n.return()}finally{if(u)throw e}}return o}}(r,n)||q(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());e+=o[1]+",".length,i.push(o[0].trim())}return i}(l).map((function(t){var r=ot(t,c,o);return r.error&&(d=t,v=r.error),null!==r.value&&(b=!0),r.value}));v||(d=b?y:null)}else{var m=ot(l,c,o);d=(v=m.error)?l:m.value}!v&&null===d&&c.required&&(v="required"),v?(v={error:v,row:n+1,column:u,value:d},c.type&&(v.type=c.type),e.push(v)):null!==d&&(s[c.prop]=d)},a=0,f=Object.keys(t);a<f.length;a++)u();return Object.keys(s).length>0?s:null}function ot(t,r,n){if(null===t)return{value:null};var i;if((i=r.parse?st(t,r.parse):r.type?function(t,r,n){switch(r){case String:return"string"==typeof t?{value:t}:"number"==typeof t&&isFinite(t)?{value:String(t)}:{error:"invalid"};case Number:case K:if("string"==typeof t){var i=t;if(t=parseFloat(t),String(t)!==i)return{error:"invalid"}}else if("number"!=typeof t)return{error:"invalid"};return isFinite(t)?r===K&&(0|(o=t))!==o?{error:"invalid"}:{value:t}:{error:"invalid"};case J:return"string"==typeof t&&function(t){return $.test(t)}(t)?{value:t}:{error:"invalid"};case X:return"string"==typeof t&&function(t){return Y.test(t)}(t)?{value:t}:{error:"invalid"};case Date:if(t instanceof Date)return{value:t};if("number"==typeof t){if(!isFinite(t))return{error:"invalid"};var e=g(t=parseInt(t),n.properties);return e?{value:e}:{error:"invalid"}}return{error:"invalid"};case Boolean:return"boolean"==typeof t?{value:t}:{error:"invalid"};default:if("function"==typeof r)return st(t,r);throw new Error("Unknown schema type: ".concat(r&&r.name||r))}var o}(t,Array.isArray(r.type)?r.type[0]:r.type,n):{value:t}).error)return i;if(null!==i.value){if(r.oneOf&&r.oneOf.indexOf(i.value)<0)return{error:"invalid"};if(r.validate)try{r.validate(i.value)}catch(e){return{error:e.message}}}return i}function st(t,r){try{return void 0===(t=r(t))?{value:null}:{value:t}}catch(n){return{error:n.message}}}function ut(t,r,n){for(var i=0,e="";n+i<t.length;){var o=t[n+i];if(o===r)return[e,i];if('"'===o){var s=ut(t,'"',n+i+1);e+=s[0],i+='"'.length+s[1]+'"'.length}else e+=o,i++}return[e,i]}var at=function(t){return t[0].map((function(r,n){return t.map((function(t){return t[n]}))}))};function ft(t){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ct(t){for(var r={},n=0,i=Object.keys(t);n<i.length;n++){var e=i[n],o=t[e],s=void 0;"object"===ft(o)&&(o=Object.keys(t[e])[0],s=ct(t[e][o])),r[e]={prop:o},s&&(r[e].type=s)}return r}var ht=["schema","map"];function lt(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,i)}return n}function dt(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?lt(Object(n),!0).forEach((function(r){vt(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function vt(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function bt(t,r,n){var i=n.schema,e=n.map,o=function(t,r){if(null==t)return{};var n,i,e=function(t,r){if(null==t)return{};var n,i,e={},o=Object.keys(t);for(i=0;i<o.length;i++)r.indexOf(n=o[i])>=0||(e[n]=t[n]);return e}(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r.indexOf(n=o[i])>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(e[n]=t[n])}return e}(n,ht);!i&&e&&(i=ct(e));var s=function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n.sheet||(n=G({sheet:1},n));var i=function(r){if(!t[r])throw new Error('"'.concat(r,'" file not found inside the *.xlsx file zip archive'));return t[r]},e=l(i("xl/_rels/workbook.xml.rels"),r),o=e.sharedStrings?k(i(e.sharedStrings),r):[],s=e.styles?m(i(e.styles),r):{},u=h(i("xl/workbook.xml"),r);if(n.getSheets)return u.sheets.map((function(t){return{name:t.name}}));var a=M(n.sheet,u.sheets);if(!a||!e.sheets[a])throw H(n.sheet,u.sheets);var f=W(R(i(e.sheets[a]),r,o,s,u,n),n);return n.properties?{data:f,properties:u}:f}(t,r,dt(dt({},o),{},{properties:i||o.properties}));return i?function(t,r,n){var i=(n=n?rt(rt({},it),n):it).isColumnOriented,e=n.rowMap;!function(t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];if(!t[i].prop)throw new Error('"prop" not defined for schema entry "'.concat(i,'".'))}}(r),i&&(t=at(t));for(var o=t[0],s=[],u=[],a=1;a<t.length;a++){var f=et(r,t[a],a-1,o,u,n);f&&s.push(f)}if(e)for(var c,h=function(t){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=q(t))){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(u);!(c=h()).done;){var l=c.value;l.row=e[l.row]+1}return{rows:s,errors:u}}(s.data,i,dt(dt({},o),{},{properties:s.properties})):s}function yt(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(r).then((function(r){return bt(r,t,n)}))}async function mt(t,r=["what","deliveryscope"]){const n=t=>t.toLowerCase().replace(/\s+/g,""),i=await yt(t,{getSheets:!0});let e=[],o=await Promise.all(i.map((async r=>await yt(t,{sheet:r.name})))),s={};return o.forEach((t=>{const i=t.shift().map((t=>n(t)));i.forEach((t=>{void 0===s[t]&&r.includes(t)&&(s[t]=[])})),t.forEach((t=>{const o={};i.forEach((async(i,e)=>{const u=t[e];if(o[i]=u,r.includes(i)){const t=n(u);o[i]=t,s[i].includes(t)||s[i].push(t)}})),e.push(o)}))})),{types:s,data:e}}async function pt(t,r=["sizecategory"]){const n=t=>t.toLowerCase().replace(/\s+/g,""),i=await yt(t,{getSheets:!0});let e,o=[],s=await Promise.all(i.map((async r=>await yt(t,{sheet:r.name})))),u={};return s.forEach((t=>{const i=t.shift().map((t=>n(t)));i.forEach(((t,n)=>{void 0===u[t]&&r.includes(t)&&(u[t]=[]),"sizecategory"===t&&(e=n)})),t.forEach((t=>{t[e].split("/").forEach((s=>{const a={};i.forEach((async(i,o)=>{const f=o===e?s:t[o];if(a[i]=f,r.includes(i)){const t=n(f);a[i]=t,u[i].includes(t)||u[i].push(t)}})),o.push(a)}))}))})),{types:u,data:o}}export{mt as a,pt as c}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,a as i}from"./p-58e8d7d5.js";import{w as s}from"./p-4e9a272d.js";import{a as n}from"./p-9adc3940.js";import{s as a}from"./p-c4254e9e.js";import"./p-86f06e26.js";const r={sv:{componentheading:"Våra priser och villkor för inrikesförsändelser för dig som direktbetalande kund?",deliveryscopeheading:"Endast leveranser inom Sverige",resultlistheading:"Några bra alternativ för dig",weightlabel:"Vikt",maxweightlabel:"Maxvikt",maxmeasurementlabel:"Maxvolym",senddirectcta:"Köp online",stampshopcta:"Köp frimärken",message:"*Vid köp hos valfritt ombud",servicePointHeader:"Eller hitta närmaste serviceställe",servicePointLink:"Sök serviceställe eller brevlåda"},en:{componentheading:"Our prices and terms and conditions for domestic shipments for you as a direct paying customer",deliveryscopeheading:"Deliveries within Sweden only",resultlistheading:"Some suitable options for you",weightlabel:"Weight",maxweightlabel:"Max weight",maxmeasurementlabel:"Maximum measurement",senddirectcta:"Buy Online",stampshopcta:"Buy Stamps",message:"When buying from any agent",servicePointHeader:"Or find nearest service point",servicePointLink:"Search letter-box or service point"},da:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Kun leveringer indenfor Sverige",resultlistheading:"Some suitable options for you",weightlabel:"Vægt",maxweightlabel:"Max vægt",maxmeasurementlabel:"Maks. Volumen",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"},no:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Kun leveranser innen Sverige",resultlistheading:"Some suitable options for you",weightlabel:"Vekt",maxweightlabel:"Maks vekt",maxmeasurementlabel:"Maks volum",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"},fi:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Toimitukset vain Ruotsin sisällä",resultlistheading:"Some suitable options for you",weightlabel:"Paino",maxweightlabel:"Max paino",maxmeasurementlabel:"Max äänenvoimakkuus",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"}},o={se:{currency:"kr"},dk:{currency:"dk"},fi:{currency:" €"},no:{currency:"kr"}};let l=class{constructor(e){t(this,e),this.source="https://com-integration.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx",this.language="sv",this.market="se",this.productid="",this.filteredItems=[],this.sourceData={types:[],data:[]},this.gotData=!1,this.loading=!1,this.postagetype={value:""},this.weight={value:0,name:""},this.weightvalue=0}componentWillLoad(){this.setState(),this.getDataSource().then((()=>{}))}setState(){this.market&&(a.market=o[this.market]),this.language&&r[this.language]&&(a.i18n=r[this.language])}async getDataSource(){if(!this.productid)return;this.loading=!0;const t=`?cache=${Math.floor(9999*Math.random()+1)}`,e=await fetch(this.source+t),i=await e.blob();try{const t=await n(i);this.sourceData=t,this.filterItems()}catch(s){this.loading=!1,console.warn("Unable to parse data")}}filterItems(){var t;if(!(null===(t=this.sourceData)||void 0===t?void 0:t.data))return void console.info("Data has not yet been loaded");this.loading=!1;const e=this.sourceData.data.filter((t=>t.id===this.productid));if(0===e.length)return;if(this.postagetype.value=e[0].what,!s[this.postagetype.value]||0===s[this.postagetype.value].length)return;0===this.weightvalue&&(this.weight=s[this.postagetype.value][0],this.weightvalue=this.weight.value);const i="kg"===this.weight.abbreviation.toLocaleLowerCase()&&"letter"===this.postagetype.value?1e3*this.weight.value:this.weight.value;let n=e.filter((t=>t.maxweight===i));if(0===n.length&&(n=e.filter((t=>t.maxweight>=i)),n.length>0)){const t=[...new Map(n.reverse().map((t=>[t.id,t]))).values()];t.length>0&&(n=t)}this.filteredItems=n,this.gotData=this.filteredItems.length>0}render(){return e(i,null,e("div",{class:"content"},e("slot",null)),this.loading?e("pn-spinner",null):null,this.postagetype.value&&s[this.postagetype.value]?e("div",{class:"weightselection"},e("div",{class:"weightoption"},e("div",{class:"weightoption-input"},e("pn-input",{inputid:"weightvalue",name:"weightvalue",type:"number",label:a.i18n.weightlabel,value:this.weightvalue,onChange:t=>{if(t&&t.target&&t.target.value){const e=parseInt(t.target.value,10);if(!isNaN(e)){let t=s[this.postagetype.value].filter((t=>("kg"===t.abbreviation?1e3*t.value:t.value)>=e));t&&t.length>0&&(this.weight=t[0],this.weightvalue=this.weight.value)}}}}),e("span",{class:"weightoption-input-abbreviation"},this.weight.abbreviation)),e("div",{class:"weightoption-range"},e("input",{type:"range",id:"weightrange",name:"weightrange",list:"weightlist",value:this.weight.value?s[this.postagetype.value].findIndex((t=>t.value===this.weightvalue)):0,onChange:t=>{this.weight=s[this.postagetype.value][t.target.value],this.weightvalue=this.weight.value},min:"0",max:s[this.postagetype.value].length-1}),e("datalist",{id:"weightlist"},s[this.postagetype.value].map(((t,i)=>{let n=t.name;return s[this.postagetype.value].length>6&&(n=i%5==0||0===i||i===s[this.postagetype.value].length-1?t.name:""),e("option",Object.assign({value:i},n?{label:n}:{}))})))))):null,e("div",{class:"resultlist","data-list-count":this.filteredItems.length},this.filteredItems.map((t=>e("div",null,e("pn-find-price-result",{item:t}))))))}static get watchers(){return{market:["setState"],language:["setState"],postagetype:["filterItems"],weightvalue:["filterItems"]}}};l.style='pn-product-pricelist pn-spinner{margin:1em auto}pn-product-pricelist h2,pn-product-pricelist .heading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:1rem}pn-product-pricelist .content,pn-product-pricelist .weightselection,pn-product-pricelist .resultlist{max-width:50em;margin:0 auto 1.6rem}pn-product-pricelist .weightoption{display:-ms-flexbox;display:flex;gap:1.6rem}pn-product-pricelist .weightoption-input{width:5em;position:relative;display:none}pn-product-pricelist .weightoption-input input::-webkit-outer-spin-button,pn-product-pricelist .weightoption-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}pn-product-pricelist .weightoption-input-abbreviation{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:1.2em;margin-top:1.55rem;font-weight:500}pn-product-pricelist .weightoption-range{-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:end;align-self:flex-end;position:relative;top:0.5em}pn-product-pricelist .weightoption-range input{width:calc(100% - 1.5em)}pn-product-pricelist .weightoption-range datalist{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;font-size:0.75em}pn-product-pricelist .resultlist:not([data-list-count="0"]){margin-top:2em}';export{l as pn_product_pricelist}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(M,i,I,N){function D(M){return M instanceof I?M:new I((function(i){i(M)}))}return new(I||(I=Promise))((function(I,j){function g(M){try{z(N.next(M))}catch(i){j(i)}}function e(M){try{z(N["throw"](M))}catch(i){j(i)}}function z(M){M.done?I(M.value):D(M.value).then(g,e)}z((N=N.apply(M,i||[])).next())}))};var __generator=this&&this.__generator||function(M,i){var I={label:0,sent:function(){if(j[0]&1)throw j[1];return j[1]},trys:[],ops:[]},N,D,j,g;return g={next:e(0),throw:e(1),return:e(2)},typeof Symbol==="function"&&(g[Symbol.iterator]=function(){return this}),g;function e(M){return function(i){return z([M,i])}}function z(g){if(N)throw new TypeError("Generator is already executing.");while(I)try{if(N=1,D&&(j=g[0]&2?D["return"]:g[0]?D["throw"]||((j=D["return"])&&j.call(D),0):D.next)&&!(j=j.call(D,g[1])).done)return j;if(D=0,j)g=[g[0]&2,j.value];switch(g[0]){case 0:case 1:j=g;break;case 4:I.label++;return{value:g[1],done:false};case 5:I.label++;D=g[1];g=[0];continue;case 7:g=I.ops.pop();I.trys.pop();continue;default:if(!(j=I.trys,j=j.length>0&&j[j.length-1])&&(g[0]===6||g[0]===2)){I=0;continue}if(g[0]===3&&(!j||g[1]>j[0]&&g[1]<j[3])){I.label=g[1];break}if(g[0]===6&&I.label<j[1]){I.label=j[1];j=g;break}if(j&&I.label<j[2]){I.label=j[2];I.ops.push(g);break}if(j[2])I.ops.pop();I.trys.pop();continue}g=i.call(M,I)}catch(e){g=[6,e];D=0}finally{N=j=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(M,i,I){if(I||arguments.length===2)for(var N=0,D=i.length,j;N<D;N++){if(j||!(N in i)){if(!j)j=Array.prototype.slice.call(i,0,N);j[N]=i[N]}}return M.concat(j||Array.prototype.slice.call(i))};System.register(["./p-36654f2a.system.js","./p-bfa7c83f.system.js","./p-0ea97ca0.system.js","./p-37017f68.system.js","./p-825b8fb8.system.js"],(function(M){"use strict";var i,I,N,D,j,g,e;return{setters:[function(M){i=M.r;I=M.h},function(M){N=M.f;D=M.s;j=M.w},function(M){g=M.c},function(M){e=M.s},function(){}],execute:function(){var z={sv:{componentheading:"Våra priser och villkor för inrikesförsändelser för dig som direktbetalande kund?",deliveryscopeheading:"Endast leveranser inom Sverige",resultlistheading:"Några bra alternativ för dig",sizeheading:"Uppskatta storleken på din försändelse",weightheading:"Uppskatta vikten på din försändelse",weightlabel:"Vikt",maxweightlabel:"Maxvikt",maxmeasurementlabel:"Maxvolym",senddirectcta:"Köp online",stampshopcta:"Till butiken",message:"*Vid köp hos valfritt ombud",servicePointHeader:"Eller hitta närmaste serviceställe",servicePointLink:"Hitta Serviceställe",riktigaVykort:"Köp Riktiga Vykort",riktigaVykortMobile:"Ladda ner appen",ombudHeader:"Köp via ombud"},en:{componentheading:"Our prices and terms and conditions for domestic shipments for you as a direct paying customer",deliveryscopeheading:"Deliveries within Sweden only",resultlistheading:"Some suitable options for you",sizeheading:"Estimate the size of your shipment",weightheading:"Estimate the weight of your shipment",weightlabel:"Weight",maxweightlabel:"Max weight",maxmeasurementlabel:"Maximum measurement",senddirectcta:"Buy Online",stampshopcta:"To the Store",message:"When buying from any agent",servicePointHeader:"Find service point",servicePointLink:"Find service point",riktigaVykort:"Buy Postcards",riktigaVykortMobile:"Download the app",ombudHeader:"Purchase by agent"},da:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Kun leveringer indenfor Sverige",resultlistheading:"Nogle passende muligheder for dig",sizeheading:"Anslå størrelsen på din forsendelse",weightheading:"Anslå vægten af din forsendelse",weightlabel:"Vægt",maxweightlabel:"Max vægt",maxmeasurementlabel:"Maks. Volumen",senddirectcta:"Køb Online",stampshopcta:"Til butikken",message:"When buying from any agent",servicePointHeader:"Find nærmeste servicested",servicePointLink:"Find nærmeste servicested",riktigaVykort:"Køb Riktiga Vykort",ombudHeader:"Køb af agent"},no:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Kun leveranser innen Sverige",resultlistheading:"Some suitable options for you",weightlabel:"Vekt",maxweightlabel:"Maks vekt",maxmeasurementlabel:"Maks volum",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"},fi:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Toimitukset vain Ruotsin sisällä",resultlistheading:"Some suitable options for you",weightlabel:"Paino",maxweightlabel:"Max paino",maxmeasurementlabel:"Max äänenvoimakkuus",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"}};var T={se:{currency:"kr",country:"Sweden",servicePoint:"https://www.postnord.se/vara-verktyg/sok-brevlada-eller-servicestalle"},dk:{currency:"dk",country:"Denmark",servicePoint:"https://www.postnord.dk/varktojer/find-os"},fi:{currency:" €",country:"Finland",servicePoint:""},no:{currency:"kr",country:"Norway",servicePoint:""}};var u="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTQiIGhlaWdodD0iMzgiIHZpZXdCb3g9IjAgMCA1NCAzOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQ0LjM4NDggMzhINTAuMzAxN0M1MS45MzM5IDM4IDUzLjMxMTEgMzYuMjM1NyA1My4zMTExIDMzLjk5NjRWNC4wMDM1N0M1My4zMTExIDEuODMyMTQgNTEuOTg0OSAwIDUwLjMwMTcgMEg0NC4zODQ4VjM4WiIgZmlsbD0iIzAwNUQ5MiIvPgo8cGF0aCBkPSJNNDcuMzQzMyAzOEgxMy4zMjFDMTEuNjg4NyAzOCAxMC4zMTE1IDM2LjIzNTcgMTAuMzExNSAzMy45OTY0VjQuMDAzNTdDMTAuMzExNSAxLjgzMjE0IDExLjYzNzcgMCAxMy4zMjEgMEg0NC44NDM5QzQ2LjIyMTEgMCA0Ny4zNDMzIDEuNDkyODYgNDcuMzQzMyAzLjMyNVYzO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YuOTkxIDAuMjY3MDlDMTMyLjA2MiAwLjI2NzA5IDEyOC4wMTIgNC43MDUzMyAxMjcuNTYzIDEwLjM3NTNIMTI0LjUyOEMxMTkuNTEgMTAuMzc1MyAxMTUuNDYzIDE1LjUyNDcgMTE1LjQ2MyAyMS44MTg0VjI2LjU4NjRIMTMxLjA1NloiIGZpbGw9IiNFMEY4RkYiLz4KPC9zdmc+Cg==";var n='@charset "UTF-8";pn-find-price .sizeTable{border-style:none !important;border:0 !important;position:relative}pn-find-price .sizeTable>tr td{margin-bottom:1em;text-align:center;vertical-align:bottom;padding-right:1em;padding-top:1em}pn-find-price .sizeTable #clouds{position:absolute;top:0em;left:4em;z-index:-1}pn-find-price .firstCell{margin-right:0;margin-left:auto}pn-find-price .findprice-form{max-width:60em;margin:0em auto 3em auto}pn-find-price [slot=title]{margin-bottom:1rem}pn-find-price h2{text-align:center}pn-find-price .heading{text-align:center;line-height:1.1;font-weight:bold;margin-bottom:1rem;color:#005D92}pn-find-price .resultHeading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:2em}pn-find-price .sizecategory{margin-top:1em;margin-bottom:3rem;font-size:0.9em;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}pn-find-price .weightoption{font-size:0.9em;max-width:41rem;margin:0 auto}pn-find-price .weightoption-content{text-align:center}pn-find-price .weightoption-content pn-choice-button{width:7em;line-height:3.3em;font-size:0.9em;vertical-align:bottom}pn-find-price .weightoption-content pn-choice-button>label{-ms-flex-line-pack:center;align-content:center;-ms-flex-pack:center;justify-content:center}pn-find-price .weightoption-content pn-choice-button ::before{content:"Max ";font-weight:lighter}pn-find-price .resultlist{margin:3.2rem 0}pn-find-price .servicePoint{text-align:center}pn-find-price .servicePoint pn-illustration{display:block;max-width:5em;max-height:5em;margin:1.5em auto 0 auto}pn-find-price .servicePoint h3{margin-top:0.8em;margin-bottom:0.9em}pn-find-price .servicePoint a{color:#005D92;text-decoration:none}pn-find-price .servicePoint a:hover{color:#0D234B;text-decoration:underline}';var A=M("pn_find_price",function(){function M(M){i(this,M);this.source=N;this.language="sv";this.market="se";this.filteredItems=[];this.weight={value:0,name:""};this.weightvalue=0;this.sourceData={types:[],data:[]};this.sizecategory={value:"",name:"",icon:"",unit:""}}M.prototype.componentWillLoad=function(){this.setState();this.getDataSource()};M.prototype.getDataSource=function(){return __awaiter(this,void 0,void 0,(function(){var M,i,I,N,j;return __generator(this,(function(e){switch(e.label){case 0:M="?cache=".concat(Math.floor(Math.random()*(1e4-1)+1));return[4,fetch(this.source+M)];case 1:i=e.sent();return[4,i.blob()];case 2:I=e.sent();e.label=3;case 3:e.trys.push([3,5,,6]);return[4,g(I)];case 4:N=e.sent();this.sourceData=N;this.sizecategory=D.filter((function(M){return M.value==="Small"}))[0];this.filterItems();return[3,6];case 5:j=e.sent();console.log("Unable to parse data");return[3,6];case 6:return[2]}}))}))};M.prototype.setState=function(){if(this.market){e.market=T[this.market]}if(this.language&&z[this.language]){e.i18n=z[this.language]}};M.prototype.filterItems=function(){var M=this;var i;if(!((i=this.sourceData)===null||i===void 0?void 0:i.data)){console.log("Data has not yet been loaded");return}var I=this.sourceData.data.filter((function(M){return M.deliveryscope.toLocaleLowerCase()===e.market.country.toLocaleLowerCase()}));if(!this.sizecategory){return}var N=I.filter((function(i){return i.sizecategory.toLocaleLowerCase()===M.sizecategory.value.toLocaleLowerCase()}));if(!this.weight){return}var D=this.weight.value<=20?this.weight.value*1e3:this.weight.value;var j=N.filter((function(M){return(M.maxweight<=20?M.maxweight*1e3:M.maxweight)===D}));if(this.weightvalue!==0){var g=N.filter((function(M){return M.maxweight.toString().includes("upto")})).filter((function(M){return Number(M.maxweight.toString().toLocaleLowerCase().replace("upto",""))-D>=0}));j=j.concat(g)}if(j.length===0&&this.weightvalue!==0){j=N.filter((function(M){return(M.maxweight<=20?M.maxweight*1e3:M.maxweight)>=D}));if(j.length>0){j.sort((function(M,i){return M.maxweight-i.maxweight}));var z=__spreadArray([],new Map(j.reverse().map((function(M){return[M["id"],M]}))).values(),true);if(z.length>0){j=z}}}j.sort((function(M,i){var I=M.rank?M.rank:1e4;var N=i.rank?i.rank:1e4;var D=M.highestrankusp?M.highestrankusp:"z";var j=i.highestrankusp?i.highestrankusp:"z";var g=D.localeCompare(j);var e=I-N;return g||e}));this.filteredItems=j};M.prototype.render=function(){var M=this;return I("div",{class:"findprice-form"},I("div",null,I("h4",{class:"heading"},e.i18n.sizeheading),I("div",{class:"sizecategory"},I("table",{class:"sizeTable"},I("img",{id:"clouds",src:c}),I("tr",null,I("td",null,I("img",{class:"firstCell",src:a})),I("td",null,I("img",{src:u})),I("td",null,I("img",{src:t})),I("td",null,I("img",{src:y}))),I("tr",null,I("td",null),D.map((function(i){return I("td",null,I("pn-radio-button",{id:"findpricecategory-"+i.value,radioid:i.value,value:i.value,name:"sizecategory",checked:i.value===M.sizecategory.value,onChange:function(){M.sizecategory=D.filter((function(M){return M.value===i.value}))[0];M.weight={value:0,name:""};M.weightvalue=M.weight.value}}))})))))),I("h4",{class:"heading"},e.i18n.weightheading),this.sizecategory.value&&j[this.sizecategory.unit]?I("div",{class:"weightoption"},I("div",{class:"weightoption-content"},j[this.sizecategory.unit].map((function(i){return I("pn-choice-button",{id:"findpriceweight-"+i.value,choiceid:M.sizecategory.value+i.value,name:"weight",type:"radio",value:!M.weight.value?0:j[M.sizecategory.unit].findIndex((function(i){return i.value===M.weightvalue})),checked:i.value===M.weight.value,onChange:function(){M.weight=j[M.sizecategory.unit].filter((function(M){return M.value===i.value}))[0];M.weightvalue=M.weight.value}},i.name)})))):null,this.filteredItems&&this.filteredItems.length>0?I("div",{class:"resultlist"},e.i18n.resultlistheading?I("div",{class:"resultHeading"},e.i18n.resultlistheading):null,this.filteredItems.map((function(M){return I("div",null,I("pn-find-price-result",{item:M}))}))):null)};Object.defineProperty(M,"watchers",{get:function(){return{market:["setState"],language:["setState"],sizecategory:["filterItems"],weightvalue:["filterItems"]}},enumerable:false,configurable:true});return M}());A.style=n}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,i,n){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function o(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?i(e.value):a(e.value).then(s,o)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return l([e,t])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,a&&(r=s[0]&2?a["return"]:s[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;if(a=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;a=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){i.label=s[1];break}if(s[0]===6&&i.label<r[1]){i.label=r[1];r=s;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(s);break}if(r[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(o){s=[6,o];a=0}finally{n=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var n=0,a=t.length,r;n<a;n++){if(r||!(n in t)){if(!r)r=Array.prototype.slice.call(t,0,n);r[n]=t[n]}}return e.concat(r||Array.prototype.slice.call(t))};System.register(["./p-36654f2a.system.js","./p-bf7cc19d.system.js","./p-0ea97ca0.system.js","./p-37017f68.system.js","./p-825b8fb8.system.js"],(function(e){"use strict";var t,i,n,a,r,s;return{setters:[function(e){t=e.r;i=e.h;n=e.a},function(e){a=e.w},function(e){r=e.a},function(e){s=e.s},function(){}],execute:function(){var o={sv:{componentheading:"Våra priser och villkor för inrikesförsändelser för dig som direktbetalande kund?",deliveryscopeheading:"Endast leveranser inom Sverige",resultlistheading:"Några bra alternativ för dig",weightlabel:"Vikt",maxweightlabel:"Maxvikt",maxmeasurementlabel:"Maxvolym",senddirectcta:"Köp online",stampshopcta:"Köp frimärken",message:"*Vid köp hos valfritt ombud",servicePointHeader:"Eller hitta närmaste serviceställe",servicePointLink:"Sök serviceställe eller brevlåda"},en:{componentheading:"Our prices and terms and conditions for domestic shipments for you as a direct paying customer",deliveryscopeheading:"Deliveries within Sweden only",resultlistheading:"Some suitable options for you",weightlabel:"Weight",maxweightlabel:"Max weight",maxmeasurementlabel:"Maximum measurement",senddirectcta:"Buy Online",stampshopcta:"Buy Stamps",message:"When buying from any agent",servicePointHeader:"Or find nearest service point",servicePointLink:"Search letter-box or service point"},da:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Kun leveringer indenfor Sverige",resultlistheading:"Some suitable options for you",weightlabel:"Vægt",maxweightlabel:"Max vægt",maxmeasurementlabel:"Maks. Volumen",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"},no:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Kun leveranser innen Sverige",resultlistheading:"Some suitable options for you",weightlabel:"Vekt",maxweightlabel:"Maks vekt",maxmeasurementlabel:"Maks volum",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"},fi:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Toimitukset vain Ruotsin sisällä",resultlistheading:"Some suitable options for you",weightlabel:"Paino",maxweightlabel:"Max paino",maxmeasurementlabel:"Max äänenvoimakkuus",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"}};var l={se:{currency:"kr"},dk:{currency:"dk"},fi:{currency:" €"},no:{currency:"kr"}};var u='pn-product-pricelist pn-spinner{margin:1em auto}pn-product-pricelist h2,pn-product-pricelist .heading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:1rem}pn-product-pricelist .content,pn-product-pricelist .weightselection,pn-product-pricelist .resultlist{max-width:50em;margin:0 auto 1.6rem}pn-product-pricelist .weightoption{display:-ms-flexbox;display:flex;gap:1.6rem}pn-product-pricelist .weightoption-input{width:5em;position:relative;display:none}pn-product-pricelist .weightoption-input input::-webkit-outer-spin-button,pn-product-pricelist .weightoption-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}pn-product-pricelist .weightoption-input-abbreviation{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:1.2em;margin-top:1.55rem;font-weight:500}pn-product-pricelist .weightoption-range{-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:end;align-self:flex-end;position:relative;top:0.5em}pn-product-pricelist .weightoption-range input{width:calc(100% - 1.5em)}pn-product-pricelist .weightoption-range datalist{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;font-size:0.75em}pn-product-pricelist .resultlist:not([data-list-count="0"]){margin-top:2em}';var p=e("pn_product_pricelist",function(){function e(e){t(this,e);this.source="https://com-integration.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";this.language="sv";this.market="se";this.productid="";this.filteredItems=[];this.sourceData={types:[],data:[]};this.gotData=false;this.loading=false;this.postagetype={value:""};this.weight={value:0,name:""};this.weightvalue=0}e.prototype.componentWillLoad=function(){this.setState();this.getDataSource().then((function(){}))};e.prototype.setState=function(){if(this.market){s.market=l[this.market]}if(this.language&&o[this.language]){s.i18n=o[this.language]}};e.prototype.getDataSource=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,a;return __generator(this,(function(s){switch(s.label){case 0:if(!this.productid){return[2]}this.loading=true;e="?cache=".concat(Math.floor(Math.random()*(1e4-1)+1));return[4,fetch(this.source+e)];case 1:t=s.sent();return[4,t.blob()];case 2:i=s.sent();s.label=3;case 3:s.trys.push([3,5,,6]);return[4,r(i)];case 4:n=s.sent();this.sourceData=n;this.filterItems();return[3,6];case 5:a=s.sent();this.loading=false;console.warn("Unable to parse data");return[3,6];case 6:return[2]}}))}))};e.prototype.filterItems=function(){var e=this;var t;if(!((t=this.sourceData)===null||t===void 0?void 0:t.data)){console.info("Data has not yet been loaded");return}this.loading=false;var i=this.sourceData.data.filter((function(t){return t.id===e.productid}));if(i.length===0){return}this.postagetype.value=i[0].what;if(!a[this.postagetype.value]||a[this.postagetype.value].length===0){return}if(this.weightvalue===0){this.weight=a[this.postagetype.value][0];this.weightvalue=this.weight.value}var n=this.weight.abbreviation.toLocaleLowerCase()==="kg"&&this.postagetype.value==="letter"?this.weight.value*1e3:this.weight.value;var r=i.filter((function(e){return e.maxweight===n}));if(r.length===0){r=i.filter((function(e){return e.maxweight>=n}));if(r.length>0){var s=__spreadArray([],new Map(r.reverse().map((function(e){return[e["id"],e]}))).values(),true);if(s.length>0){r=s}}}this.filteredItems=r;this.gotData=this.filteredItems.length>0};e.prototype.render=function(){var e=this;return i(n,null,i("div",{class:"content"},i("slot",null)),this.loading?i("pn-spinner",null):null,this.postagetype.value&&a[this.postagetype.value]?i("div",{class:"weightselection"},i("div",{class:"weightoption"},i("div",{class:"weightoption-input"},i("pn-input",{inputid:"weightvalue",name:"weightvalue",type:"number",label:s.i18n.weightlabel,value:this.weightvalue,onChange:function(t){if(t&&t.target&&t.target.value){var i=parseInt(t.target.value,10);if(!isNaN(i)){var n=a[e.postagetype.value].filter((function(e){var t=e.abbreviation==="kg"?e.value*1e3:e.value;return t>=i}));if(n&&n.length>0){e.weight=n[0];e.weightvalue=e.weight.value}}}}}),i("span",{class:"weightoption-input-abbreviation"},this.weight.abbreviation)),i("div",{class:"weightoption-range"},i("input",{type:"range",id:"weightrange",name:"weightrange",list:"weightlist",value:!this.weight.value?0:a[this.postagetype.value].findIndex((function(t){return t.value===e.weightvalue})),onChange:function(t){var i=t.target.value;e.weight=a[e.postagetype.value][i];e.weightvalue=e.weight.value},min:"0",max:a[this.postagetype.value].length-1}),i("datalist",{id:"weightlist"},a[this.postagetype.value].map((function(t,n){var r=t.name;if(a[e.postagetype.value].length>6){r=n%5===0||n===0||n===a[e.postagetype.value].length-1?t.name:""}return i("option",Object.assign({value:n},r?{label:r}:{}))})))))):null,i("div",{class:"resultlist","data-list-count":this.filteredItems.length},this.filteredItems.map((function(e){return i("div",null,i("pn-find-price-result",{item:e}))}))))};Object.defineProperty(e,"watchers",{get:function(){return{market:["setState"],language:["setState"],postagetype:["filterItems"],weightvalue:["filterItems"]}},enumerable:false,configurable:true});return e}());p.style=u}}}));
|