text: (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},"3q5l":function(e,t,n){e.exports=n.p+"0-es2015.8fe87dfd713631e188e0.worker.js"},Sy1n:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return i});class i{constructor(){this.title="Hello World!"}onButtonClick(){this.title="Hello from Kendo UI!"}}if("undefined"!=typeof Worker){const t=new Worker(e,{});t.onmessage=(({data:e})=>{console.log(`page got message: ${e}`)}),t.postMessage("hello")}}).call(this,n("3q5l"))},g1Xn:function(e,t,n){var i;e.exports=function e(t,n,r){function s(a,l){if(!n[a]){if(!t[a]){if(!l&&"function"==typeof i&&i)return i(a,!0);if(o)return o(a,!0);var h=new Error("Cannot find module '"+a+"'");throw h.code="MODULE_NOT_FOUND",h}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){return s(t[a][1][e]||e)},u,u.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof i&&i,a=0;a<r.length;a++)s(r[a]);return s}({1:[function(e,t,n){"use strict";var i=e("./utils"),r=e("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,r,o,a,l,h=[],u=0,c=e.length,d=c,p="string"!==i.getTypeOf(e);u<e.length;)d=c-u,p?(t=e[u++],n=u<c?e[u++]:0,r=u<c?e[u++]:0):(t=e.charCodeAt(u++),n=u<c?e.charCodeAt(u++):0,r=u<c?e.charCodeAt(u++):0),o=(3&t)<<4|n>>4,a=d>1?(15&n)<<2|r>>6:64,l=d>2?63&r:64,h.push(s.charAt(t>>2)+s.charAt(o)+s.charAt(a)+s.charAt(l));return h.join("")},n.decode=function(e){var t,n,i,o,a,l,h=0,u=0;if("data:"===e.substr(0,"data:".length))throw new Error("Invalid base64 input, it looks like a data url.");var c,d=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===s.charAt(64)&&d--,e.charAt(e.length-2)===s.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(c=r.uint8array?new Uint8Array(0|d):new Array(0|d);h<e.length;)i=s.indexOf(e.charAt(h++)),t=(15&(o=s.indexOf(e.charAt(h++))))<<4|(a=s.indexOf(e.charAt(h++)))>>2,n=(3&a)<<6|(l=s.indexOf(e.charAt(h++))),c[u++]=i<<2|o>>4,64!==a&&(c[u++]=t),64!==l&&(c[u++]=n);return c}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var i=e("./external"),r=e("./stream/DataWorker"),s=e("./stream/DataLengthProbe"),o=e("./stream/Crc32Probe");function a(e,t,n,i,r){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=i,this.compressedContent=r}s=e("./stream/DataLengthProbe"),a.prototype={getContentWorker:function(){var e=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(e,t,n){return e.pipe(new o).pipe(new s("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new s("compressedSize")).withStreamInfo("compression",t)},t.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var i=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(e){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var i=e("./utils"),r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==i.getTypeOf(e)?function(t,n,i,s){var o=r,a=0+e.length;t^=-1;for(var l=0;l<a;l++)t=t>>>8^o[255&(t^n[l])];return-1^t}(0|t,e):function(t,n,i,s){var o=r,a=0+e.length;t^=-1;for(var l=0;l<a;l++)t=t>>>8^o[255&(t^n.charCodeAt(l))];return-1^t}(0|t,e):0}},{"./utils":32}],5:[function(e,t,n){"use strict";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(e,t,n){"use strict";var i;i="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:i}},{lie:37}],7:[function(e,t,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=e("pako"),s=e("./utils"),o=e("./stream/GenericWorker"),a=i?"uint8array":"array";function l(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",s.inherits(l,o),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(a,e.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";var i=e("../utils"),r=e("../stream/GenericWorker"),s=e("../utf8"),o=e("../crc32"),a=e("../signature"),l=function(e,t){var n,i="";for(n=0;n<t;n++)i+=String.fromCharCode(255&e),e>>>=8;return i},h=function(e,t,n,r,h,u){var c,d,p=e.file,f=e.compression,m=u!==s.utf8encode,g=i.transformTo("string",u(p.name)),v=i.transformTo("string",s.utf8encode(p.name)),y=p.comment,w=i.transformTo("string",u(y)),_=i.transformTo("string",s.utf8encode(y)),b=v.length!==p.name.length,x=_.length!==y.length,C="",S="",k="",E=p.dir,T=p.date,I={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(I.crc32=e.crc32,I.compressedSize=e.compressedSize,I.uncompressedSize=e.uncompressedSize);var D=0;t&&(D|=8),m||!b&&!x||(D|=2048);var A,O,N=0,F=0;E&&(N|=16),"UNIX"===h?(F=798,N|=(O=A=p.unixPermissions,A||(O=E?16893:33204),(65535&O)<<16)):(F=20,N|=63&(p.dosPermissions||0)),c=T.getUTCHours(),c<<=6,c|=T.getUTCMinutes(),c<<=5,c|=T.getUTCSeconds()/2,d=T.getUTCFullYear()-1980,d<<=4,d|=T.getUTCMonth()+1,d<<=5,d|=T.getUTCDate(),b&&(S=l(1,1)+l(o(g),4)+v,C+="up"+l(S.length,2)+S),x&&(k=l(1,1)+l(o(w),4)+_,C+="uc"+l(k.length,2)+k);var M="";return M+="\n\0",M+=l(D,2),M+=f.magic,M+=l(c,2),M+=l(d,2),M+=l(I.crc32,4),M+=l(I.compressedSize,4),M+=l(I.uncompressedSize,4),M+=l(g.length,2),M+=l(C.length,2),{fileRecord:a.LOCAL_FILE_HEADER+M+g+C,dirRecord:a.CENTRAL_FILE_HEADER+l(F,2)+M+l(w.length,2)+"\0\0\0\0"+l(N,4)+l(r,4)+g+C+w}},u=function(e){return a.DATA_DESCRIPTOR+l(e.crc32,4)+l(e.compressedSize,4)+l(e.uncompressedSize,4)};function c(e,t,n,i){r.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(c,r),c.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,r.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-i-1))/n:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=h(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=h(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:u(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=function(e,t,n,r,s){var o=i.transformTo("string",s(r));return a.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(e,2)+l(e,2)+l(t,4)+l(n,4)+l(o.length,2)+o}(this.dirRecords.length,this.bytesWritten-e,e,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},c.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(e){var t=this._sources;if(!r.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},c.prototype.lock=function(){r.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var i=e("../compressions"),r=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var s=new r(t.streamFiles,n,t.platform,t.encodeFileName),o=0;try{e.forEach(function(e,n){o++;var r=function(e,r){var s=n.options.compression||t.compression,o=i[s];if(!o)throw new Error(s+" is not a valid compression method !");return o}(),a=n.dir,l=n.date;n._compressWorker(r,n.options.compressionOptions||t.compressionOptions||{}).withStreamInfo("file",{name:e,dir:a,date:l,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(s)}),s.entriesCount=o}catch(a){s.error(a)}return s}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var e=new i;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(i.prototype=e("./object")).loadAsync=e("./load"),i.support=e("./support"),i.defaults=e("./defaults"),i.version="3.2.0",i.loadAsync=function(e,t){return(new i).loadAsync(e,t)},i.external=e("./external"),t.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){"use strict";var i=e("./utils"),r=e("./external"),s=e("./utf8"),o=(i=e("./utils"),e("./zipEntries")),a=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function h(e){return new r.Promise(function(t,n){var i=e.decompressed.getContentWorker().pipe(new a);i.on("error",function(e){n(e)}).on("end",function(){i.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var n=this;return t=i.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),l.isNode&&l.isStream(e)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var n=new o(t);return n.load(e),n}).then(function(e){var n=[r.Promise.resolve(e)],i=e.files;if(t.checkCRC32)for(var s=0;s<i.length;s++)n.push(h(i[s]));return r.Promise.all(n)}).then(function(e){for(var i=e.shift(),r=i.files,s=0;s<r.length;s++){var o=r[s];n.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:t.createFolders})}return i.zipComment.length&&(n.comment=i.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){"use strict";var i=e("../utils"),r=e("../stream/GenericWorker");function s(e,t){r.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}i.inherits(s,r),s.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},s.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){"use strict";var i=e("readable-stream").Readable;function r(e,t,n){i.call(this,t),this._helper=e;var r=this;e.on("data",function(e,t){r.push(e)||r._helper.pause(),n&&n(t)}).on("error",function(e){r.emit("error",e)}).on("end",function(){r.push(null)})}e("../utils").inherits(r,i),r.prototype._read=function(){this._helper.resume()},t.exports=r},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){"use strict";var i=e("./utf8"),r=e("./utils"),s=e("./stream/GenericWorker"),o=e("./stream/StreamHelper"),a=e("./defaults"),l=e("./compressedObject"),h=e("./zipObject"),u=e("./generate"),c=e("./nodejsUtils"),d=e("./nodejs/NodejsStreamInputAdapter"),p=function(e,t,n){var i,o,u=r.getTypeOf(t),p=r.extend(n||{},a);p.date=p.date||new Date,null!==p.compression&&(p.compression=p.compression.toUpperCase()),"string"==typeof p.unixPermissions&&(p.unixPermissions=parseInt(p.unixPermissions,8)),p.unixPermissions&&16384&p.unixPermissions&&(p.dir=!0),p.dosPermissions&&16&p.dosPermissions&&(p.dir=!0),p.dir&&(e=m(e)),p.createFolders&&(i=f(e))&&g.call(this,i,!0),n&&void 0!==n.binary||(p.binary=!("string"===u&&!1===p.binary&&!1===p.base64)),(t instanceof l&&0===t.uncompressedSize||p.dir||!t||0===t.length)&&(p.base64=!1,p.binary=!0,t="",p.compression="STORE",u="string"),o=t instanceof l||t instanceof s?t:c.isNode&&c.isStream(t)?new d(e,t):r.prepareContent(e,t,p.binary,p.optimizedBinaryString,p.base64);var v=new h(e,o,p);this.files[e]=v},f=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:a.createFolders,e=m(e),this.files[e]||p.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}t.exports={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,i;for(t in this.files)this.files.hasOwnProperty(t)&&(i=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,i))},filter:function(e){var t=[];return this.forEach(function(n,i){e(n,i)&&t.push(i)}),t},file:function(e,t,n){if(1===arguments.length){if(v(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var r=this.files[this.root+e];return r&&!r.dir?r:null}return p.call(this,e=this.root+e,t,n),this},folder:function(e){if(!e)return this;if(v(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=g.call(this,this.root+e),n=this.clone();return n.root=t.name,n},remove:function(e){var t=this.files[e=this.root+e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),i=0;i<n.length;i++)delete this.files[n[i].name];return this},generate:function(e){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if((n=r.extend(e||{},{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.");r.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS"),t=u.generateWorker(this,n,n.comment||this.comment||"")}catch(a){(t=new s("error")).error(a)}return new o(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}}},{"./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(e,t,n){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){"use strict";var i=e("./DataReader");function r(e){i.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(r,i),r.prototype.byteAt=function(e){return this.data[this.zero+e]},r.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2),r=e.charCodeAt(3),s=this.length-4;s>=0;--s)if(this.data[s]===t&&this.data[s+1]===n&&this.data[s+2]===i&&this.data[s+3]===r)return s-this.zero;return-1},r.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2),r=e.charCodeAt(3),s=this.readData(4);return t===s[0]&&n===s[1]&&i===s[2]&&r===s[3]},r.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){"use strict";var i=e("../utils");function r(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return i.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=r},{"../utils":32}],19:[function(e,t,n){"use strict";var i=e("./Uint8ArrayReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var i=e("./DataReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},r.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},r.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var i=e("./ArrayReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var i=e("../utils"),r=e("../support"),s=e("./ArrayReader"),o=e("./StringReader"),a=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=i.getTypeOf(e);return i.checkSupport(t),"string"!==t||r.uint8array?"nodebuffer"===t?new a(e):r.uint8array?new l(i.transformTo("uint8array",e)):new s(i.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK\x03\x04",n.CENTRAL_FILE_HEADER="PK\x01\x02",n.CENTRAL_DIRECTORY_END="PK\x05\x06",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",n.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,n){"use strict";var i=e("./GenericWorker"),r=e("../utils");function s(e){i.call(this,"ConvertWorker to "+e),this.destType=e}r.inherits(s,i),s.prototype.processChunk=function(e){this.push({data:r.transformTo(this.destType,e.data),meta:e.meta})},t.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var i=e("./GenericWorker"),r=e("../crc32");function s(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(s,i),s.prototype.processChunk=function(e){this.streamInfo.crc32=r(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var i=e("../utils"),r=e("./GenericWorker");function s(e){r.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}i.inherits(s,r),s.prototype.processChunk=function(e){e&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+e.data.length),r.prototype.processChunk.call(this,e)},t.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var i=e("../utils"),r=e("./GenericWorker");function s(e){r.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=i.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}i.inherits(s,r),s.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function i(e){this.name=e||"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}i.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),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;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},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 e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=i},{}],29:[function(e,t,n){"use strict";var i=e("../utils"),r=e("./ConvertWorker"),s=e("./GenericWorker"),o=e("../base64"),a=e("../support"),l=e("../external"),h=null;if(a.nodestream)try{h=e("../nodejs/NodejsStreamOutputAdapter")}catch(c){}function u(e,t,n){var o=t;switch(t){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{this._internalType=o,this._outputType=t,this._mimeType=n,i.checkSupport(o),this._worker=e.pipe(new r(o)),e.lock()}catch(c){this._worker=new s("error"),this._worker.error(c)}}u.prototype={accumulate:function(e){return t=this,n=e,new l.Promise(function(e,r){var s=[],a=t._internalType,l=t._outputType,h=t._mimeType;t.on("data",function(e,t){s.push(e),n&&n(t)}).on("error",function(e){s=[],r(e)}).on("end",function(){try{var t=function(e,t,n){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),n);case"base64":return o.encode(t);default:return i.transformTo(e,t)}}(l,function(e,t){var n,i=0,r=null,s=0;for(n=0;n<t.length;n++)s+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(r=new Uint8Array(s),n=0;n<t.length;n++)r.set(t[n],i),i+=t[n].length;return r;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(a,s),h);e(t)}catch(c){r(c)}s=[]}).resume()});var t,n},on:function(e,t){var n=this;return this._worker.on(e,"data"===e?function(e){t.call(n,e.data,e.meta)}:function(){i.delay(t,arguments,n)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=u},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){"use strict";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(s){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(i),n.blob=0===r.getBlob("application/zip").size}catch(s){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(s){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){"use strict";for(var i=e("./utils"),r=e("./support"),s=e("./nodejsUtils"),o=e("./stream/GenericWorker"),a=new Array(256),l=0;l<256;l++)a[l]=l>=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;function h(){o.call(this,"utf-8 decode"),this.leftOver=null}function u(){o.call(this,"utf-8 encode")}a[254]=a[254]=1,n.utf8encode=function(e){return r.nodebuffer?s.newBufferFrom(e,"utf-8"):function(e){var t,n,i,s,o,a=e.length,l=0;for(s=0;s<a;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<a&&56320==(64512&(i=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(i-56320),s++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=r.uint8array?new Uint8Array(l):new Array(l),o=0,s=0;o<l;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<a&&56320==(64512&(i=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(i-56320),s++),n<128?t[o++]=n:n<2048?(t[o++]=192|n>>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){return r.nodebuffer?i.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,r,s,o=e.length,l=new Array(2*o);for(n=0,t=0;t<o;)if((r=e[t++])<128)l[n++]=r;else if((s=a[r])>4)l[n++]=65533,t+=s-1;else{for(r&=2===s?31:3===s?15:7;s>1&&t<o;)r=r<<6|63&e[t++],s--;s>1?l[n++]=65533:r<65536?l[n++]=r:(l[n++]=55296|(r-=65536)>>10&1023,l[n++]=56320|1023&r)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),i.applyFromCharCode(l)}(e=i.transformTo(r.uint8array?"uint8array":"array",e))},i.inherits(h,o),h.prototype.processChunk=function(e){var t=i.transformTo(r.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var s=t;(t=new Uint8Array(s.length+this.leftOver.length)).set(this.leftOver,0),t.set(s,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+a[e[n]]>t?n:t}(t),l=t;o!==t.length&&(r.uint8array?(l=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(l=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(l),meta:e.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=h,i.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var i=e("./support"),r=e("./base64"),s=e("./nodejsUtils"),o=e("set-immediate-shim"),a=e("./external");function l(e){return e}function h(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(r){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(e),i.getBlob(t)}catch(r){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(e,t,n){var i=[],r=0,s=e.length;if(s<=n)return String.fromCharCode.apply(null,e);for(;r<s;)i.push("array"===t||"nodebuffer"===t?String.fromCharCode.apply(null,e.slice(r,Math.min(r+n,s))):String.fromCharCode.apply(null,e.subarray(r,Math.min(r+n,s)))),r+=n;return i.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,s.allocBuffer(1)).length}catch(e){return!1}}()}};function c(e){var t=65536,i=n.getTypeOf(e),r=!0;if("uint8array"===i?r=u.applyCanBeUsed.uint8array:"nodebuffer"===i&&(r=u.applyCanBeUsed.nodebuffer),r)for(;t>1;)try{return u.stringifyByChunk(e,i,t)}catch(s){t=Math.floor(t/2)}return u.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=c;var p={};p.string={string:l,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return p.string.uint8array(e).buffer},uint8array:function(e){return h(e,new Uint8Array(e.length))},nodebuffer:function(e){return h(e,s.allocBuffer(e.length))}},p.array={string:c,array:l,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return s.newBufferFrom(e)}},p.arraybuffer={string:function(e){return c(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:l,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return s.newBufferFrom(new Uint8Array(e))}},p.uint8array={string:c,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:l,nodebuffer:function(e){return s.newBufferFrom(e)}},p.nodebuffer={string:c,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return p.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:l},n.transformTo=function(e,t){if(t||(t=""),!e)return t;n.checkSupport(e);var i=n.getTypeOf(t);return p[i][e](t)},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":i.nodebuffer&&s.isBuffer(e)?"nodebuffer":i.uint8array&&e instanceof Uint8Array?"uint8array":i.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!i[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,i="";for(n=0;n<(e||"").length;n++)i+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return i},n.delay=function(e,t,n){o(function(){e.apply(n||null,t||[])})},n.inherits=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,s,o,l){return a.Promise.resolve(t).then(function(e){return i.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise(function(t,n){var i=new FileReader;i.onload=function(e){t(e.target.result)},i.onerror=function(e){n(e.target.error)},i.readAsArrayBuffer(e)}):e}).then(function(t){var u,c=n.getTypeOf(t);return c?("arraybuffer"===c?t=n.transformTo("uint8array",t):"string"===c&&(l?t=r.decode(t):s&&!0!==o&&(t=h(u=t,i.uint8array?new Uint8Array(u.length):new Array(u.length)))),t):a.Promise.reject(new Error("Can't read the data of '"+e+"'. 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(e,t,n){"use strict";var i=e("./reader/readerFor"),r=e("./utils"),s=e("./signature"),o=e("./zipEntry"),a=(e("./utf8"),e("./support"));function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(t)+", expected "+r.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4)===t;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 e=this.reader.readData(this.zipCommentLength),t=r.transformTo(a.uint8array?"uint8array":"array",e);this.zipComment=this.loadOptions.decodeFileName(t)},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 e,t,n,i=this.zip64EndOfCentralSize-44;0<i;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)this.reader.setIndex((t=this.files[e]).localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);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 e=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,s.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(e);var t=e;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.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(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=t-n;if(i>0)this.isSignature(t,s.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){this.reader=i(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){"use strict";var i=e("./reader/readerFor"),r=e("./utils"),s=e("./compressedObject"),o=e("./crc32"),a=e("./utf8"),l=e("./compressions"),h=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(l.hasOwnProperty(t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===e&&(this.dosPermissions=63&this.externalFileAttributes),3===e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,n,i,r=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index<r;)t=e.readInt(2),n=e.readInt(2),i=e.readData(n),this.extraFields[t]={id:t,length:n,value:i}},handleUTF8:function(){var e=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=r.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var s=r.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=i(e.value);return 1!==t.readInt(1)?null:o(this.fileName)!==t.readInt(4)?null:a.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=i(e.value);return 1!==t.readInt(1)?null:o(this.fileComment)!==t.readInt(4)?null:a.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){"use strict";var i=e("./stream/StreamHelper"),r=e("./stream/DataWorker"),s=e("./utf8"),o=e("./compressedObject"),a=e("./stream/GenericWorker"),l=function(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}};l.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!r&&(t=t.pipe(new s.Utf8EncodeWorker)),!o&&r&&(t=t.pipe(new s.Utf8DecodeWorker))}catch(l){(t=new a("error")).error(l)}return new i(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof o&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new s.Utf8EncodeWorker)),o.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof a?this._data:new r(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},c=0;c<h.length;c++)l.prototype[h[c]]=u;t.exports=l},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){"use strict";var n,i,r=e.MutationObserver||e.WebKitMutationObserver;if(r){var s=0,o=new r(u),a=e.document.createTextNode("");o.observe(a,{characterData:!0}),n=function(){a.data=s=++s%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var h=[];function u(){var e,t;i=!0;for(var n=h.length;n;){for(t=h,h=[],e=-1;++e<n;)t[e]();n=h.length}i=!1}t.exports=function(e){1!==h.push(e)||i||n()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){"use strict";var i=e("immediate");function r(){}var s={},o=["REJECTED"],a=["FULFILLED"],l=["PENDING"];function h(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==r&&p(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function c(e,t,n){i(function(){var i;try{i=t(n)}catch(r){return s.reject(e,r)}i===e?s.reject(e,new TypeError("Cannot resolve promise with itself")):s.resolve(e,i)})}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function i(t){n||(n=!0,s.reject(e,t))}function r(t){n||(n=!0,s.resolve(e,t))}var o=f(function(){t(r,i)});"error"===o.status&&i(o.value)}function f(e,t){var n={};try{n.value=e(t),n.status="success"}catch(i){n.status="error",n.value=i}return n}t.exports=h,h.prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},h.prototype.catch=function(e){return this.then(null,e)},h.prototype.then=function(e,t){if("function"!=typeof e&&this.state===a||"function"!=typeof t&&this.state===o)return this;var n=new this.constructor(r);return this.state!==l?c(n,this.state===a?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){s.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){c(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){s.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){c(this.promise,this.onRejected,e)},s.resolve=function(e,t){var n=f(d,t);if("error"===n.status)return s.reject(e,n.value);var i=n.value;if(i)p(e,i);else{e.state=a,e.outcome=t;for(var r=-1,o=e.queue.length;++r<o;)e.queue[r].callFulfilled(t)}return e},s.reject=function(e,t){e.state=o,e.outcome=t;for(var n=-1,i=e.queue.length;++n<i;)e.queue[n].callRejected(t);return e},h.resolve=function(e){return e instanceof this?e:s.resolve(new this(r),e)},h.reject=function(e){var t=new this(r);return s.reject(t,e)},h.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,i=!1;if(!n)return this.resolve([]);for(var o=new Array(n),a=0,l=-1,h=new this(r);++l<n;)u(e[l],l);return h;function u(e,r){t.resolve(e).then(function(e){o[r]=e,++a!==n||i||(i=!0,s.resolve(h,o))},function(e){i||(i=!0,s.reject(h,e))})}},h.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,n=!1;if(!t)return this.resolve([]);for(var i=-1,o=new this(r);++i<t;)this.resolve(e[i]).then(function(e){n||(n=!0,s.resolve(o,e))},function(e){n||(n=!0,s.reject(o,e))});return o}},{immediate:36}],38:[function(e,t,n){"use strict";var i={};(0,e("./lib/utils/common").assign)(i,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";var i=e("./zlib/deflate"),r=e("./utils/common"),s=e("./utils/strings"),o=e("./zlib/messages"),a=e("./zlib/zstream"),l=Object.prototype.toString,h=0,u=-1,c=0,d=8;function p(e){if(!(this instanceof p))return new p(e);this.options=r.assign({level:u,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:c,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==h)throw new Error(o[n]);if(t.header&&i.deflateSetHeader(this.strm,t.header),t.dictionary){var f;if(f="string"==typeof t.dictionary?s.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=i.deflateSetDictionary(this.strm,f))!==h)throw new Error(o[n]);this._dict_set=!0}}function f(e,t){var n=new p(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}p.prototype.push=function(e,t){var n,o,a=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,a.input="string"==typeof e?s.string2buf(e):"[object ArrayBuffer]"===l.call(e)?new Uint8Array(e):e,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new r.Buf8(u),a.next_out=0,a.avail_out=u),1!==(n=i.deflate(a,o))&&n!==h)return this.onEnd(n),this.ended=!0,!1;0!==a.avail_out&&(0!==a.avail_in||4!==o&&2!==o)||this.onData("string"===this.options.to?s.buf2binstring(r.shrinkBuf(a.output,a.next_out)):r.shrinkBuf(a.output,a.next_out))}while((a.avail_in>0||0===a.avail_out)&&1!==n);return 4===o?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===h):2!==o||(this.onEnd(h),a.avail_out=0,!0)},p.prototype.onData=function(e){this.chunks.push(e)},p.prototype.onEnd=function(e){e===h&&(this.result="string"===this.options.to?this.chunks.join(""):r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=p,n.deflate=f,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,f(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){"use strict";var i=e("./zlib/inflate"),r=e("./utils/common"),s=e("./utils/strings"),o=e("./zlib/constants"),a=e("./zlib/messages"),l=e("./zlib/zstream"),h=e("./zlib/gzheader"),u=Object.prototype.toString;function c(e){if(!(this instanceof c))return new c(e);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw new Error(a[n]);this.header=new h,i.inflateGetHeader(this.strm,this.header)}function d(e,t){var n=new c(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}c.prototype.push=function(e,t){var n,a,l,h,c,d,p=this.strm,f=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;a=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,p.input="string"==typeof e?s.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?new Uint8Array(e):e,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new r.Buf8(f),p.next_out=0,p.avail_out=f),(n=i.inflate(p,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&m&&(d="string"==typeof m?s.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,n=i.inflateSetDictionary(this.strm,d)),n===o.Z_BUF_ERROR&&!0===g&&(n=o.Z_OK,g=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),this.ended=!0,!1;p.next_out&&(0!==p.avail_out&&n!==o.Z_STREAM_END&&(0!==p.avail_in||a!==o.Z_FINISH&&a!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=s.utf8border(p.output,p.next_out),h=p.next_out-l,c=s.buf2string(p.output,l),p.next_out=h,p.avail_out=f-h,h&&r.arraySet(p.output,p.output,l,h,0),this.onData(c)):this.onData(r.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(g=!0)}while((p.avail_in>0||0===p.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(a=o.Z_FINISH),a===o.Z_FINISH?(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):a!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),p.avail_out=0,!0)},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){e===o.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=c,n.inflate=d,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},n.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,i,r){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+i),r);else for(var s=0;s<i;s++)e[r+s]=t[n+s]},flattenChunks:function(e){var t,n,i,r,s,o;for(i=0,t=0,n=e.length;t<n;t++)i+=e[t].length;for(o=new Uint8Array(i),r=0,t=0,n=e.length;t<n;t++)o.set(s=e[t],r),r+=s.length;return o}},s={arraySet:function(e,t,n,i,r){for(var s=0;s<i;s++)e[r+s]=t[n+s]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,r)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,s))},n.setTyped(i)},{}],42:[function(e,t,n){"use strict";var i=e("./common"),r=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(h){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(h){s=!1}for(var o=new i.Buf8(256),a=0;a<256;a++)o[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;function l(e,t){if(t<65537&&(e.subarray&&s||!e.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(e,t));for(var n="",o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}o[254]=o[254]=1,n.string2buf=function(e){var t,n,r,s,o,a=e.length,l=0;for(s=0;s<a;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<a&&56320==(64512&(r=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(r-56320),s++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new i.Buf8(l),o=0,s=0;o<l;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<a&&56320==(64512&(r=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(r-56320),s++),n<128?t[o++]=n:n<2048?(t[o++]=192|n>>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new i.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,i,r,s,a=t||e.length,h=new Array(2*a);for(i=0,n=0;n<a;)if((r=e[n++])<128)h[i++]=r;else if((s=o[r])>4)h[i++]=65533,n+=s-1;else{for(r&=2===s?31:3===s?15:7;s>1&&n<a;)r=r<<6|63&e[n++],s--;s>1?h[i++]=65533:r<65536?h[i++]=r:(h[i++]=55296|(r-=65536)>>10&1023,h[i++]=56320|1023&r)}return l(h,i)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+o[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,i){for(var r=65535&e|0,s=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{s=s+(r=r+t[i++]|0)|0}while(--o);r%=65521,s%=65521}return r|s<<16|0}},{}],44:[function(e,t,n){"use strict";t.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(e,t,n){"use strict";var i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,r){var s=i,o=r+n;e^=-1;for(var a=r;a<o;a++)e=e>>>8^s[255&(e^t[a])];return-1^e}},{}],46:[function(e,t,n){"use strict";var i,r=e("../utils/common"),s=e("./trees"),o=e("./adler32"),a=e("./crc32"),l=e("./messages"),h=0,u=4,c=0,d=-2,p=-1,f=1,m=4,g=2,v=8,y=9,w=286,_=30,b=19,x=2*w+1,C=15,S=3,k=258,E=k+S+1,T=42,I=113,D=1,A=2,O=3,N=4;function F(e,t){return e.msg=l[t],t}function M(e){return(e<<1)-(e>4?9:0)}function P(e){for(var t=e.length;--t>=0;)e[t]=0}function R(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(r.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function V(e,t){s._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,R(e.strm)}function z(e,t){e.pending_buf[e.pending++]=t}function L(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function B(e,t){var n,i,r=e.max_chain_length,s=e.strstart,o=e.prev_length,a=e.nice_match,l=e.strstart>e.w_size-E?e.strstart-(e.w_size-E):0,h=e.window,u=e.w_mask,c=e.prev,d=e.strstart+k,p=h[s+o-1],f=h[s+o];e.prev_length>=e.good_match&&(r>>=2),a>e.lookahead&&(a=e.lookahead);do{if(h[(n=t)+o]===f&&h[n+o-1]===p&&h[n]===h[s]&&h[++n]===h[s+1]){s+=2,n++;do{}while(h[++s]===h[++n]&&h[++s]===h[++n]&&h[++s]===h[++n]&&h[++s]===h[++n]&&h[++s]===h[++n]&&h[++s]===h[++n]&&h[++s]===h[++n]&&h[++s]===h[++n]&&s<d);if(i=k-(d-s),s=d-k,i>o){if(e.match_start=t,o=i,i>=a)break;p=h[s+o-1],f=h[s+o]}}}while((t=c[t&u])>l&&0!=--r);return o<=e.lookahead?o:e.lookahead}function H(e){var t,n,i,s,l,h,u,c,d,p,f=e.w_size;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-E)){r.arraySet(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,t=n=e.hash_size;do{i=e.head[--t],e.head[t]=i>=f?i-f:0}while(--n);t=n=f;do{i=e.prev[--t],e.prev[t]=i>=f?i-f:0}while(--n);s+=f}if(0===e.strm.avail_in)break;if(u=e.window,c=e.strstart+e.lookahead,p=void 0,(p=(h=e.strm).avail_in)>(d=s)&&(p=d),n=0===p?0:(h.avail_in-=p,r.arraySet(u,h.input,h.next_in,p,c),1===h.state.wrap?h.adler=o(h.adler,u,p,c):2===h.state.wrap&&(h.adler=a(h.adler,u,p,c)),h.next_in+=p,h.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=S)for(e.ins_h=e.window[l=e.strstart-e.insert],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+S-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<S)););}while(e.lookahead<E&&0!==e.strm.avail_in)}function $(e,t){for(var n,i;;){if(e.lookahead<E){if(H(e),e.lookahead<E&&t===h)return D;if(0===e.lookahead)break}if(n=0,e.lookahead>=S&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-E&&(e.match_length=B(e,n)),e.match_length>=S)if(i=s._tr_tally(e,e.strstart-e.match_start,e.match_length-S),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=S){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(V(e,!1),0===e.strm.avail_out))return D}return e.insert=e.strstart<S-1?e.strstart:S-1,t===u?(V(e,!0),0===e.strm.avail_out?O:N):e.last_lit&&(V(e,!1),0===e.strm.avail_out)?D:A}function j(e,t){for(var n,i,r;;){if(e.lookahead<E){if(H(e),e.lookahead<E&&t===h)return D;if(0===e.lookahead)break}if(n=0,e.lookahead>=S&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=S-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-E&&(e.match_length=B(e,n),e.match_length<=5&&(e.strategy===f||e.match_length===S&&e.strstart-e.match_start>4096)&&(e.match_length=S-1)),e.prev_length>=S&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-S,i=s._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-S),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=r&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=S-1,e.strstart++,i&&(V(e,!1),0===e.strm.avail_out))return D}else if(e.match_available){if((i=s._tr_tally(e,0,e.window[e.strstart-1]))&&V(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return D}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=s._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<S-1?e.strstart:S-1,t===u?(V(e,!0),0===e.strm.avail_out?O:N):e.last_lit&&(V(e,!1),0===e.strm.avail_out)?D:A}function U(e,t,n,i,r){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=i,this.func=r}function q(){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=v,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 r.Buf16(2*x),this.dyn_dtree=new r.Buf16(2*(2*_+1)),this.bl_tree=new r.Buf16(2*(2*b+1)),P(this.dyn_ltree),P(this.dyn_dtree),P(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(C+1),this.heap=new r.Buf16(2*w+1),P(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*w+1),P(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 W(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=g,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?T:I,e.adler=2===t.wrap?0:1,t.last_flush=h,s._tr_init(t),c):F(e,d)}function G(e){var t,n=W(e);return n===c&&((t=e.state).window_size=2*t.w_size,P(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=S-1,t.match_available=0,t.ins_h=0),n}function Z(e,t,n,i,s,o){if(!e)return d;var a=1;if(t===p&&(t=6),i<0?(a=0,i=-i):i>15&&(a=2,i-=16),s<1||s>y||n!==v||i<8||i>15||t<0||t>9||o<0||o>m)return F(e,d);8===i&&(i=9);var l=new q;return e.state=l,l.strm=e,l.wrap=a,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=s+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+S-1)/S),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<s+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=n,G(e)}i=[new U(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(H(e),0===e.lookahead&&t===h)return D;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+n;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,V(e,!1),0===e.strm.avail_out))return D;if(e.strstart-e.block_start>=e.w_size-E&&(V(e,!1),0===e.strm.avail_out))return D}return e.insert=0,t===u?(V(e,!0),0===e.strm.avail_out?O:N):(e.strstart>e.block_start&&V(e,!1),D)}),new U(4,4,8,4,$),new U(4,5,16,8,$),new U(4,6,32,32,$),new U(4,4,16,16,j),new U(8,16,32,32,j),new U(8,16,128,128,j),new U(8,32,128,256,j),new U(32,128,258,1024,j),new U(32,258,258,4096,j)],n.deflateInit=function(e,t){return Z(e,t,v,15,8,0)},n.deflateInit2=Z,n.deflateReset=G,n.deflateResetKeep=W,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?d:(e.state.gzhead=t,c):d},n.deflate=function(e,t){var n,r,o,l;if(!e||!e.state||t>5||t<0)return e?F(e,d):d;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||666===r.status&&t!==u)return F(e,0===e.avail_out?-5:d);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===T)if(2===r.wrap)e.adler=0,z(r,31),z(r,139),z(r,8),r.gzhead?(z(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),z(r,255&r.gzhead.time),z(r,r.gzhead.time>>8&255),z(r,r.gzhead.time>>16&255),z(r,r.gzhead.time>>24&255),z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),z(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(z(r,255&r.gzhead.extra.length),z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=a(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(z(r,0),z(r,0),z(r,0),z(r,0),z(r,0),z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),z(r,3),r.status=I);else{var p=v+(r.w_bits-8<<4)<<8;p|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(p|=32),p+=31-p%31,r.status=I,L(r,p),0!==r.strstart&&(L(r,e.adler>>>16),L(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(o=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),R(e),o=r.pending,r.pending!==r.pending_buf_size));)z(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),R(e),o=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,z(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),R(e),o=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,z(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),0===l&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&R(e),r.pending+2<=r.pending_buf_size&&(z(r,255&e.adler),z(r,e.adler>>8&255),e.adler=0,r.status=I)):r.status=I),0!==r.pending){if(R(e),0===e.avail_out)return r.last_flush=-1,c}else if(0===e.avail_in&&M(t)<=M(n)&&t!==u)return F(e,-5);if(666===r.status&&0!==e.avail_in)return F(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==h&&666!==r.status){var f=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(H(e),0===e.lookahead)){if(t===h)return D;break}if(e.match_length=0,n=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(V(e,!1),0===e.strm.avail_out))return D}return e.insert=0,t===u?(V(e,!0),0===e.strm.avail_out?O:N):e.last_lit&&(V(e,!1),0===e.strm.avail_out)?D:A}(r,t):3===r.strategy?function(e,t){for(var n,i,r,o,a=e.window;;){if(e.lookahead<=k){if(H(e),e.lookahead<=k&&t===h)return D;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=S&&e.strstart>0&&(i=a[r=e.strstart-1])===a[++r]&&i===a[++r]&&i===a[++r]){o=e.strstart+k;do{}while(i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&r<o);e.match_length=k-(o-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=S?(n=s._tr_tally(e,1,e.match_length-S),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(V(e,!1),0===e.strm.avail_out))return D}return e.insert=0,t===u?(V(e,!0),0===e.strm.avail_out?O:N):e.last_lit&&(V(e,!1),0===e.strm.avail_out)?D:A}(r,t):i[r.level].func(r,t);if(f!==O&&f!==N||(r.status=666),f===D||f===O)return 0===e.avail_out&&(r.last_flush=-1),c;if(f===A&&(1===t?s._tr_align(r):5!==t&&(s._tr_stored_block(r,0,0,!1),3===t&&(P(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),R(e),0===e.avail_out))return r.last_flush=-1,c}return t!==u?c:r.wrap<=0?1:(2===r.wrap?(z(r,255&e.adler),z(r,e.adler>>8&255),z(r,e.adler>>16&255),z(r,e.adler>>24&255),z(r,255&e.total_in),z(r,e.total_in>>8&255),z(r,e.total_in>>16&255),z(r,e.total_in>>24&255)):(L(r,e.adler>>>16),L(r,65535&e.adler)),R(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?c:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==T&&69!==t&&73!==t&&91!==t&&103!==t&&t!==I&&666!==t?F(e,d):(e.state=null,t===I?F(e,-3):c):d},n.deflateSetDictionary=function(e,t){var n,i,s,a,l,h,u,p,f=t.length;if(!e||!e.state)return d;if(2===(a=(n=e.state).wrap)||1===a&&n.status!==T||n.lookahead)return d;for(1===a&&(e.adler=o(e.adler,t,f,0)),n.wrap=0,f>=n.w_size&&(0===a&&(P(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new r.Buf8(n.w_size),r.arraySet(p,t,f-n.w_size,n.w_size,0),t=p,f=n.w_size),l=e.avail_in,h=e.next_in,u=e.input,e.avail_in=f,e.next_in=0,e.input=t,H(n);n.lookahead>=S;){i=n.strstart,s=n.lookahead-(S-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+S-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++}while(--s);n.strstart=i,n.lookahead=S-1,H(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=S-1,n.match_available=0,e.next_in=h,e.input=u,e.avail_in=l,n.wrap=a,c},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){"use strict";t.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(e,t,n){"use strict";t.exports=function(e,t){var n,i,r,s,o,a,l,h,u,c,d,p,f,m,g,v,y,w,_,b,x,C,S,k,E;k=e.input,r=(i=e.next_in)+(e.avail_in-5),E=e.output,o=(s=e.next_out)-(t-e.avail_out),a=s+(e.avail_out-257),l=(n=e.state).dmax,h=n.wsize,u=n.whave,c=n.wnext,d=n.window,p=n.hold,f=n.bits,m=n.lencode,g=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{f<15&&(p+=k[i++]<<f,p+=k[i++]<<(f+=8),f+=8),w=m[p&v];t:for(;;){if(p>>>=_=w>>>24,f-=_,0==(_=w>>>16&255))E[s++]=65535&w;else{if(!(16&_)){if(0==(64&_)){w=m[(65535&w)+(p&(1<<_)-1)];continue t}if(32&_){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}b=65535&w,(_&=15)&&(f<_&&(p+=k[i++]<<f,f+=8),b+=p&(1<<_)-1,p>>>=_,f-=_),f<15&&(p+=k[i++]<<f,p+=k[i++]<<(f+=8),f+=8),w=g[p&y];n:for(;;){if(p>>>=_=w>>>24,f-=_,!(16&(_=w>>>16&255))){if(0==(64&_)){w=g[(65535&w)+(p&(1<<_)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(x=65535&w,f<(_&=15)&&(p+=k[i++]<<f,(f+=8)<_&&(p+=k[i++]<<f,f+=8)),(x+=p&(1<<_)-1)>l){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=_,f-=_,x>(_=s-o)){if((_=x-_)>u&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(C=0,S=d,0===c){if(C+=h-_,_<b){b-=_;do{E[s++]=d[C++]}while(--_);C=s-x,S=E}}else if(c<_){if(C+=h+c-_,(_-=c)<b){b-=_;do{E[s++]=d[C++]}while(--_);if(C=0,c<b){b-=_=c;do{E[s++]=d[C++]}while(--_);C=s-x,S=E}}}else if(C+=c-_,_<b){b-=_;do{E[s++]=d[C++]}while(--_);C=s-x,S=E}for(;b>2;)E[s++]=S[C++],E[s++]=S[C++],E[s++]=S[C++],b-=3;b&&(E[s++]=S[C++],b>1&&(E[s++]=S[C++]))}else{C=s-x;do{E[s++]=E[C++],E[s++]=E[C++],E[s++]=E[C++],b-=3}while(b>2);b&&(E[s++]=E[C++],b>1&&(E[s++]=E[C++]))}break}}break}}while(i<r&&s<a);p&=(1<<(f-=(b=f>>3)<<3))-1,e.next_in=i-=b,e.next_out=s,e.avail_in=i<r?r-i+5:5-(i-r),e.avail_out=s<a?a-s+257:257-(s-a),n.hold=p,n.bits=f}},{}],49:[function(e,t,n){"use strict";var i=e("../utils/common"),r=e("./adler32"),s=e("./crc32"),o=e("./inffast"),a=e("./inftrees"),l=1,h=2,u=0,c=-2,d=1,p=852,f=592;function m(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){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 v(e){var t;return e&&e.state?(e.total_in=e.total_out=(t=e.state).total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=d,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new i.Buf32(p),t.distcode=t.distdyn=new i.Buf32(f),t.sane=1,t.back=-1,u):c}function y(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,v(e)):c}function w(e,t){var n,i;return e&&e.state?(i=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?c:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=n,i.wbits=t,y(e))):c}function _(e,t){var n,i;return e?(i=new g,e.state=i,i.window=null,(n=w(e,t))!==u&&(e.state=null),n):c}var b,x,C=!0;function S(e){if(C){var t;for(b=new i.Buf32(512),x=new i.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(a(l,e.lens,0,288,b,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;a(h,e.lens,0,32,x,0,e.work,{bits:5}),C=!1}e.lencode=b,e.lenbits=9,e.distcode=x,e.distbits=5}function k(e,t,n,r){var s,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new i.Buf8(o.wsize)),r>=o.wsize?(i.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((s=o.wsize-o.wnext)>r&&(s=r),i.arraySet(o.window,t,n-r,s,o.wnext),(r-=s)?(i.arraySet(o.window,t,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=s,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=s))),0}n.inflateReset=y,n.inflateReset2=w,n.inflateResetKeep=v,n.inflateInit=function(e){return _(e,15)},n.inflateInit2=_,n.inflate=function(e,t){var n,p,f,g,v,y,w,_,b,x,C,E,T,I,D,A,O,N,F,M,P,R,V,z,L=0,B=new i.Buf8(4),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return c;12===(n=e.state).mode&&(n.mode=13),v=e.next_out,f=e.output,g=e.next_in,p=e.input,_=n.hold,b=n.bits,x=y=e.avail_in,C=w=e.avail_out,R=u;e:for(;;)switch(n.mode){case d:if(0===n.wrap){n.mode=13;break}for(;b<16;){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}if(2&n.wrap&&35615===_){n.check=0,B[0]=255&_,B[1]=_>>>8&255,n.check=s(n.check,B,2,0),_=0,b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&_)<<8)+(_>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&_)){e.msg="unknown compression method",n.mode=30;break}if(b-=4,P=8+(15&(_>>>=4)),0===n.wbits)n.wbits=P;else if(P>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<P,e.adler=n.check=1,n.mode=512&_?10:12,_=0,b=0;break;case 2:for(;b<16;){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}if(n.flags=_,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=_>>8&1),512&n.flags&&(B[0]=255&_,B[1]=_>>>8&255,n.check=s(n.check,B,2,0)),_=0,b=0,n.mode=3;case 3:for(;b<32;){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}n.head&&(n.head.time=_),512&n.flags&&(B[0]=255&_,B[1]=_>>>8&255,B[2]=_>>>16&255,B[3]=_>>>24&255,n.check=s(n.check,B,4,0)),_=0,b=0,n.mode=4;case 4:for(;b<16;){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}n.head&&(n.head.xflags=255&_,n.head.os=_>>8),512&n.flags&&(B[0]=255&_,B[1]=_>>>8&255,n.check=s(n.check,B,2,0)),_=0,b=0,n.mode=5;case 5:if(1024&n.flags){for(;b<16;){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}n.length=_,n.head&&(n.head.extra_len=_),512&n.flags&&(B[0]=255&_,B[1]=_>>>8&255,n.check=s(n.check,B,2,0)),_=0,b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((E=n.length)>y&&(E=y),E&&(n.head&&(P=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,p,g,E,P)),512&n.flags&&(n.check=s(n.check,p,E,g)),y-=E,g+=E,n.length-=E),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===y)break e;E=0;do{P=p[g+E++],n.head&&P&&n.length<65536&&(n.head.name+=String.fromCharCode(P))}while(P&&E<y);if(512&n.flags&&(n.check=s(n.check,p,E,g)),y-=E,g+=E,P)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===y)break e;E=0;do{P=p[g+E++],n.head&&P&&n.length<65536&&(n.head.comment+=String.fromCharCode(P))}while(P&&E<y);if(512&n.flags&&(n.check=s(n.check,p,E,g)),y-=E,g+=E,P)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;b<16;){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}if(_!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}_=0,b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;b<32;){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}e.adler=n.check=m(_),_=0,b=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=v,e.avail_out=w,e.next_in=g,e.avail_in=y,n.hold=_,n.bits=b,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){_>>>=7&b,b-=7&b,n.mode=27;break}for(;b<3;){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}switch(n.last=1&_,b-=1,3&(_>>>=1)){case 0:n.mode=14;break;case 1:if(S(n),n.mode=20,6===t){_>>>=2,b-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}_>>>=2,b-=2;break;case 14:for(_>>>=7&b,b-=7&b;b<32;){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}if((65535&_)!=(_>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&_,_=0,b=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(E=n.length){if(E>y&&(E=y),E>w&&(E=w),0===E)break e;i.arraySet(f,p,g,E,v),y-=E,g+=E,w-=E,v+=E,n.length-=E;break}n.mode=12;break;case 17:for(;b<14;){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}if(n.nlen=257+(31&_),b-=5,n.ndist=1+(31&(_>>>=5)),b-=5,n.ncode=4+(15&(_>>>=5)),_>>>=4,b-=4,n.nlen>286||n.ndist>30){e.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(;b<3;){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}n.lens[H[n.have++]]=7&_,_>>>=3,b-=3}for(;n.have<19;)n.lens[H[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,R=a(0,n.lens,0,19,n.lencode,0,n.work,V={bits:n.lenbits}),n.lenbits=V.bits,R){e.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(;A=(L=n.lencode[_&(1<<n.lenbits)-1])>>>16&255,O=65535&L,!((D=L>>>24)<=b);){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}if(O<16)_>>>=D,b-=D,n.lens[n.have++]=O;else{if(16===O){for(z=D+2;b<z;){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}if(_>>>=D,b-=D,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}P=n.lens[n.have-1],E=3+(3&_),_>>>=2,b-=2}else if(17===O){for(z=D+3;b<z;){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}b-=D,P=0,E=3+(7&(_>>>=D)),_>>>=3,b-=3}else{for(z=D+7;b<z;){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}b-=D,P=0,E=11+(127&(_>>>=D)),_>>>=7,b-=7}if(n.have+E>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;E--;)n.lens[n.have++]=P}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,R=a(l,n.lens,0,n.nlen,n.lencode,0,n.work,V={bits:n.lenbits}),n.lenbits=V.bits,R){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,R=a(h,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,V={bits:n.distbits}),n.distbits=V.bits,R){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(y>=6&&w>=258){e.next_out=v,e.avail_out=w,e.next_in=g,e.avail_in=y,n.hold=_,n.bits=b,o(e,C),v=e.next_out,f=e.output,w=e.avail_out,g=e.next_in,p=e.input,y=e.avail_in,_=n.hold,b=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;A=(L=n.lencode[_&(1<<n.lenbits)-1])>>>16&255,O=65535&L,!((D=L>>>24)<=b);){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}if(A&&0==(240&A)){for(N=D,F=A,M=O;A=(L=n.lencode[M+((_&(1<<N+F)-1)>>N)])>>>16&255,O=65535&L,!(N+(D=L>>>24)<=b);){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}_>>>=N,b-=N,n.back+=N}if(_>>>=D,b-=D,n.back+=D,n.length=O,0===A){n.mode=26;break}if(32&A){n.back=-1,n.mode=12;break}if(64&A){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&A,n.mode=22;case 22:if(n.extra){for(z=n.extra;b<z;){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}n.length+=_&(1<<n.extra)-1,_>>>=n.extra,b-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;A=(L=n.distcode[_&(1<<n.distbits)-1])>>>16&255,O=65535&L,!((D=L>>>24)<=b);){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}if(0==(240&A)){for(N=D,F=A,M=O;A=(L=n.distcode[M+((_&(1<<N+F)-1)>>N)])>>>16&255,O=65535&L,!(N+(D=L>>>24)<=b);){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}_>>>=N,b-=N,n.back+=N}if(_>>>=D,b-=D,n.back+=D,64&A){e.msg="invalid distance code",n.mode=30;break}n.offset=O,n.extra=15&A,n.mode=24;case 24:if(n.extra){for(z=n.extra;b<z;){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}n.offset+=_&(1<<n.extra)-1,_>>>=n.extra,b-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===w)break e;if(n.offset>(E=C-w)){if((E=n.offset-E)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}T=E>n.wnext?n.wsize-(E-=n.wnext):n.wnext-E,E>n.length&&(E=n.length),I=n.window}else I=f,T=v-n.offset,E=n.length;E>w&&(E=w),w-=E,n.length-=E;do{f[v++]=I[T++]}while(--E);0===n.length&&(n.mode=21);break;case 26:if(0===w)break e;f[v++]=n.length,w--,n.mode=21;break;case 27:if(n.wrap){for(;b<32;){if(0===y)break e;y--,_|=p[g++]<<b,b+=8}if(e.total_out+=C-=w,n.total+=C,C&&(e.adler=n.check=n.flags?s(n.check,f,C,v-C):r(n.check,f,C,v-C)),C=w,(n.flags?_:m(_))!==n.check){e.msg="incorrect data check",n.mode=30;break}_=0,b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;b<32;){if(0===y)break e;y--,_+=p[g++]<<b,b+=8}if(_!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}_=0,b=0}n.mode=29;case 29:R=1;break e;case 30:R=-3;break e;case 31:return-4;case 32:default:return c}return e.next_out=v,e.avail_out=w,e.next_in=g,e.avail_in=y,n.hold=_,n.bits=b,(n.wsize||C!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&k(e,e.output,e.next_out,C-e.avail_out)?(n.mode=31,-4):(C-=e.avail_out,e.total_in+=x-=e.avail_in,e.total_out+=C,n.total+=C,n.wrap&&C&&(e.adler=n.check=n.flags?s(n.check,f,C,e.next_out-C):r(n.check,f,C,e.next_out-C)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===x&&0===C||4===t)&&R===u&&(R=-5),R)},n.inflateEnd=function(e){if(!e||!e.state)return c;var t=e.state;return t.window&&(t.window=null),e.state=null,u},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?c:(n.head=t,t.done=!1,u):c},n.inflateSetDictionary=function(e,t){var n,i=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?c:11===n.mode&&r(1,t,i,0)!==n.check?-3:k(e,t,i,i)?(n.mode=31,-4):(n.havedict=1,u):c},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){"use strict";var i=e("../utils/common"),r=[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],s=[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],a=[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];t.exports=function(e,t,n,l,h,u,c,d){var p,f,m,g,v,y,w,_,b,x=d.bits,C=0,S=0,k=0,E=0,T=0,I=0,D=0,A=0,O=0,N=0,F=null,M=0,P=new i.Buf16(16),R=new i.Buf16(16),V=null,z=0;for(C=0;C<=15;C++)P[C]=0;for(S=0;S<l;S++)P[t[n+S]]++;for(T=x,E=15;E>=1&&0===P[E];E--);if(T>E&&(T=E),0===E)return h[u++]=20971520,h[u++]=20971520,d.bits=1,0;for(k=1;k<E&&0===P[k];k++);for(T<k&&(T=k),A=1,C=1;C<=15;C++)if(A<<=1,(A-=P[C])<0)return-1;if(A>0&&(0===e||1!==E))return-1;for(R[1]=0,C=1;C<15;C++)R[C+1]=R[C]+P[C];for(S=0;S<l;S++)0!==t[n+S]&&(c[R[t[n+S]]++]=S);if(0===e?(F=V=c,y=19):1===e?(F=r,M-=257,V=s,z-=257,y=256):(F=o,V=a,y=-1),N=0,S=0,C=k,v=u,I=T,D=0,m=-1,g=(O=1<<T)-1,1===e&&O>852||2===e&&O>592)return 1;for(;;){w=C-D,c[S]<y?(_=0,b=c[S]):c[S]>y?(_=V[z+c[S]],b=F[M+c[S]]):(_=96,b=0),p=1<<C-D,k=f=1<<I;do{h[v+(N>>D)+(f-=p)]=w<<24|_<<16|b|0}while(0!==f);for(p=1<<C-1;N&p;)p>>=1;if(0!==p?(N&=p-1,N+=p):N=0,S++,0==--P[C]){if(C===E)break;C=t[n+c[S]]}if(C>T&&(N&g)!==m){for(0===D&&(D=T),v+=k,A=1<<(I=C-D);I+D<E&&!((A-=P[I+D])<=0);)I++,A<<=1;if(O+=1<<I,1===e&&O>852||2===e&&O>592)return 1;h[m=N&g]=T<<24|I<<16|v-u|0}}return 0!==N&&(h[v+N]=C-D<<24|64<<16|0),d.bits=T,0}},{"../utils/common":41}],51:[function(e,t,n){"use strict";t.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(e,t,n){"use strict";var i=e("../utils/common");function r(e){for(var t=e.length;--t>=0;)e[t]=0}var s=0,o=256,a=o+1+29,l=30,h=19,u=2*a+1,c=15,d=16,p=256,f=16,m=17,g=18,v=[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],y=[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],w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],b=new Array(2*(a+2));r(b);var x=new Array(2*l);r(x);var C=new Array(512);r(C);var S=new Array(256);r(S);var k=new Array(29);r(k);var E,T,I,D=new Array(l);function A(e,t,n,i,r){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}function O(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function N(e){return e<256?C[e]:C[256+(e>>>7)]}function F(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function M(e,t,n){e.bi_valid>d-n?(e.bi_buf|=t<<e.bi_valid&65535,F(e,e.bi_buf),e.bi_buf=t>>d-e.bi_valid,e.bi_valid+=n-d):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function P(e,t,n){M(e,n[2*t],n[2*t+1])}function R(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function V(e,t,n){var i,r,s=new Array(c+1),o=0;for(i=1;i<=c;i++)s[i]=o=o+n[i-1]<<1;for(r=0;r<=t;r++){var a=e[2*r+1];0!==a&&(e[2*r]=R(s[a]++,a))}}function z(e){var t;for(t=0;t<a;t++)e.dyn_ltree[2*t]=0;for(t=0;t<l;t++)e.dyn_dtree[2*t]=0;for(t=0;t<h;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*p]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function L(e){e.bi_valid>8?F(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function B(e,t,n,i){var r=2*t,s=2*n;return e[r]<e[s]||e[r]===e[s]&&i[t]<=i[n]}function H(e,t,n){for(var i=e.heap[n],r=n<<1;r<=e.heap_len&&(r<e.heap_len&&B(t,e.heap[r+1],e.heap[r],e.depth)&&r++,!B(t,i,e.heap[r],e.depth));)e.heap[n]=e.heap[r],n=r,r<<=1;e.heap[n]=i}function $(e,t,n){var i,r,s,a,l=0;if(0!==e.last_lit)do{i=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],r=e.pending_buf[e.l_buf+l],l++,0===i?P(e,r,t):(P(e,(s=S[r])+o+1,t),0!==(a=v[s])&&M(e,r-=k[s],a),P(e,s=N(--i),n),0!==(a=y[s])&&M(e,i-=D[s],a))}while(l<e.last_lit);P(e,p,t)}function j(e,t){var n,i,r,s=t.dyn_tree,o=t.stat_desc.static_tree,a=t.stat_desc.has_stree,l=t.stat_desc.elems,h=-1;for(e.heap_len=0,e.heap_max=u,n=0;n<l;n++)0!==s[2*n]?(e.heap[++e.heap_len]=h=n,e.depth[n]=0):s[2*n+1]=0;for(;e.heap_len<2;)s[2*(r=e.heap[++e.heap_len]=h<2?++h:0)]=1,e.depth[r]=0,e.opt_len--,a&&(e.static_len-=o[2*r+1]);for(t.max_code=h,n=e.heap_len>>1;n>=1;n--)H(e,s,n);r=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],H(e,s,1),i=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=i,s[2*r]=s[2*n]+s[2*i],e.depth[r]=(e.depth[n]>=e.depth[i]?e.depth[n]:e.depth[i])+1,s[2*n+1]=s[2*i+1]=r,e.heap[1]=r++,H(e,s,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,i,r,s,o,a,l=t.dyn_tree,h=t.max_code,d=t.stat_desc.static_tree,p=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,g=t.stat_desc.max_length,v=0;for(s=0;s<=c;s++)e.bl_count[s]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<u;n++)(s=l[2*l[2*(i=e.heap[n])+1]+1]+1)>g&&(s=g,v++),l[2*i+1]=s,i>h||(e.bl_count[s]++,o=0,i>=m&&(o=f[i-m]),e.opt_len+=(a=l[2*i])*(s+o),p&&(e.static_len+=a*(d[2*i+1]+o)));if(0!==v){do{for(s=g-1;0===e.bl_count[s];)s--;e.bl_count[s]--,e.bl_count[s+1]+=2,e.bl_count[g]--,v-=2}while(v>0);for(s=g;0!==s;s--)for(i=e.bl_count[s];0!==i;)(r=e.heap[--n])>h||(l[2*r+1]!==s&&(e.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),i--)}}(e,t),V(s,h,e.bl_count)}function U(e,t,n){var i,r,s=-1,o=t[1],a=0,l=7,h=4;for(0===o&&(l=138,h=3),t[2*(n+1)+1]=65535,i=0;i<=n;i++)r=o,o=t[2*(i+1)+1],++a<l&&r===o||(a<h?e.bl_tree[2*r]+=a:0!==r?(r!==s&&e.bl_tree[2*r]++,e.bl_tree[2*f]++):a<=10?e.bl_tree[2*m]++:e.bl_tree[2*g]++,a=0,s=r,0===o?(l=138,h=3):r===o?(l=6,h=3):(l=7,h=4))}function q(e,t,n){var i,r,s=-1,o=t[1],a=0,l=7,h=4;for(0===o&&(l=138,h=3),i=0;i<=n;i++)if(r=o,o=t[2*(i+1)+1],!(++a<l&&r===o)){if(a<h)do{P(e,r,e.bl_tree)}while(0!=--a);else 0!==r?(r!==s&&(P(e,r,e.bl_tree),a--),P(e,f,e.bl_tree),M(e,a-3,2)):a<=10?(P(e,m,e.bl_tree),M(e,a-3,3)):(P(e,g,e.bl_tree),M(e,a-11,7));a=0,s=r,0===o?(l=138,h=3):r===o?(l=6,h=3):(l=7,h=4)}}r(D);var W=!1;function G(e,t,n,r){M(e,(s<<1)+(r?1:0),3),function(e,t,n,r){L(e),F(e,n),F(e,~n),i.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}n._tr_init=function(e){W||(function(){var e,t,n,i,r,s=new Array(c+1);for(n=0,i=0;i<28;i++)for(k[i]=n,e=0;e<1<<v[i];e++)S[n++]=i;for(S[n-1]=i,r=0,i=0;i<16;i++)for(D[i]=r,e=0;e<1<<y[i];e++)C[r++]=i;for(r>>=7;i<l;i++)for(D[i]=r<<7,e=0;e<1<<y[i]-7;e++)C[256+r++]=i;for(t=0;t<=c;t++)s[t]=0;for(e=0;e<=143;)b[2*e+1]=8,e++,s[8]++;for(;e<=255;)b[2*e+1]=9,e++,s[9]++;for(;e<=279;)b[2*e+1]=7,e++,s[7]++;for(;e<=287;)b[2*e+1]=8,e++,s[8]++;for(V(b,a+1,s),e=0;e<l;e++)x[2*e+1]=5,x[2*e]=R(e,5);E=new A(b,v,o+1,a,c),T=new A(x,y,0,l,c),I=new A(new Array(0),w,0,h,7)}(),W=!0),e.l_desc=new O(e.dyn_ltree,E),e.d_desc=new O(e.dyn_dtree,T),e.bl_desc=new O(e.bl_tree,I),e.bi_buf=0,e.bi_valid=0,z(e)},n._tr_stored_block=G,n._tr_flush_block=function(e,t,n,i){var r,s,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<o;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),j(e,e.l_desc),j(e,e.d_desc),a=function(e){var t;for(U(e,e.dyn_ltree,e.l_desc.max_code),U(e,e.dyn_dtree,e.d_desc.max_code),j(e,e.bl_desc),t=h-1;t>=3&&0===e.bl_tree[2*_[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),(s=e.static_len+3+7>>>3)<=(r=e.opt_len+3+7>>>3)&&(r=s)):r=s=n+5,n+4<=r&&-1!==t?G(e,t,n,i):4===e.strategy||s===r?(M(e,2+(i?1:0),3),$(e,b,x)):(M(e,4+(i?1:0),3),function(e,t,n,i){var r;for(M(e,t-257,5),M(e,n-1,5),M(e,i-4,4),r=0;r<i;r++)M(e,e.bl_tree[2*_[r]+1],3);q(e,e.dyn_ltree,t-1),q(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),$(e,e.dyn_ltree,e.dyn_dtree)),z(e),i&&L(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(S[n]+o+1)]++,e.dyn_dtree[2*N(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){M(e,2,3),P(e,p,b),function(e){16===e.bi_valid?(F(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";t.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(e,t,n){"use strict";t.exports="function"==typeof setImmediate?setImmediate:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)},"wSl+":function(e,t,n){var i;e.exports=function e(t,n,r){function s(a,l){if(!n[a]){if(!t[a]){if(!l&&"function"==typeof i&&i)return i(a,!0);if(o)return o(a,!0);var h=new Error("Cannot find module '"+a+"'");throw h.code="MODULE_NOT_FOUND",h}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){return s(t[a][1][e]||e)},u,u.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof i&&i,a=0;a<r.length;a++)s(r[a]);return s}({1:[function(e,t,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(e[i]=n[i])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var s={arraySet:function(e,t,n,i,r){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+i),r);else for(var s=0;s<i;s++)e[r+s]=t[n+s]},flattenChunks:function(e){var t,n,i,r,s,o;for(i=0,t=0,n=e.length;t<n;t++)i+=e[t].length;for(o=new Uint8Array(i),r=0,t=0,n=e.length;t<n;t++)o.set(s=e[t],r),r+=s.length;return o}},o={arraySet:function(e,t,n,i,r){for(var s=0;s<i;s++)e[r+s]=t[n+s]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,s)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(i)},{}],2:[function(e,t,n){"use strict";var i=e("./common"),r=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(h){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(h){s=!1}for(var o=new i.Buf8(256),a=0;a<256;a++)o[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;function l(e,t){if(t<65534&&(e.subarray&&s||!e.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(e,t));for(var n="",o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}o[254]=o[254]=1,n.string2buf=function(e){var t,n,r,s,o,a=e.length,l=0;for(s=0;s<a;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<a&&56320==(64512&(r=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(r-56320),s++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new i.Buf8(l),o=0,s=0;o<l;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<a&&56320==(64512&(r=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(r-56320),s++),n<128?t[o++]=n:n<2048?(t[o++]=192|n>>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new i.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,i,r,s,a=t||e.length,h=new Array(2*a);for(i=0,n=0;n<a;)if((r=e[n++])<128)h[i++]=r;else if((s=o[r])>4)h[i++]=65533,n+=s-1;else{for(r&=2===s?31:3===s?15:7;s>1&&n<a;)r=r<<6|63&e[n++],s--;s>1?h[i++]=65533:r<65536?h[i++]=r:(h[i++]=55296|(r-=65536)>>10&1023,h[i++]=56320|1023&r)}return l(h,i)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+o[e[n]]>t?n:t}},{"./common":1}],3:[function(e,t,n){"use strict";t.exports=function(e,t,n,i){for(var r=65535&e|0,s=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{s=s+(r=r+t[i++]|0)|0}while(--o);r%=65521,s%=65521}return r|s<<16|0}},{}],4:[function(e,t,n){"use strict";var i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,r){var s=i,o=r+n;e^=-1;for(var a=r;a<o;a++)e=e>>>8^s[255&(e^t[a])];return-1^e}},{}],5:[function(e,t,n){"use strict";var i,r=e("../utils/common"),s=e("./trees"),o=e("./adler32"),a=e("./crc32"),l=e("./messages"),h=0,u=4,c=0,d=-2,p=-1,f=1,m=4,g=2,v=8,y=9,w=286,_=30,b=19,x=2*w+1,C=15,S=3,k=258,E=k+S+1,T=42,I=113,D=1,A=2,O=3,N=4;function F(e,t){return e.msg=l[t],t}function M(e){return(e<<1)-(e>4?9:0)}function P(e){for(var t=e.length;--t>=0;)e[t]=0}function R(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(r.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function V(e,t){s._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,R(e.strm)}function z(e,t){e.pending_buf[e.pending++]=t}function L(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function B(e,t){var n,i,r=e.max_chain_length,s=e.strstart,o=e.prev_length,a=e.nice_match,l=e.strstart>e.w_size-E?e.strstart-(e.w_size-E):0,h=e.window,u=e.w_mask,c=e.prev,d=e.strstart+k,p=h[s+o-1],f=h[s+o];e.prev_length>=e.good_match&&(r>>=2),a>e.lookahead&&(a=e.lookahead);do{if(h[(n=t)+o]===f&&h[n+o-1]===p&&h[n]===h[s]&&h[++n]===h[s+1]){s+=2,n++;do{}while(h[++s]===h[++n]&&h[++s]===h[++n]&&h[++s]===h[++n]&&h[++s]===h[++n]&&h[++s]===h[++n]&&h[++s]===h[++n]&&h[++s]===h[++n]&&h[++s]===h[++n]&&s<d);if(i=k-(d-s),s=d-k,i>o){if(e.match_start=t,o=i,i>=a)break;p=h[s+o-1],f=h[s+o]}}}while((t=c[t&u])>l&&0!=--r);return o<=e.lookahead?o:e.lookahead}function H(e){var t,n,i,s,l,h,u,c,d,p,f=e.w_size;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-E)){r.arraySet(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,t=n=e.hash_size;do{i=e.head[--t],e.head[t]=i>=f?i-f:0}while(--n);t=n=f;do{i=e.prev[--t],e.prev[t]=i>=f?i-f:0}while(--n);s+=f}if(0===e.strm.avail_in)break;if(u=e.window,c=e.strstart+e.lookahead,p=void 0,(p=(h=e.strm).avail_in)>(d=s)&&(p=d),n=0===p?0:(h.avail_in-=p,r.arraySet(u,h.input,h.next_in,p,c),1===h.state.wrap?h.adler=o(h.adler,u,p,c):2===h.state.wrap&&(h.adler=a(h.adler,u,p,c)),h.next_in+=p,h.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=S)for(e.ins_h=e.window[l=e.strstart-e.insert],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+S-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<S)););}while(e.lookahead<E&&0!==e.strm.avail_in)}function $(e,t){for(var n,i;;){if(e.lookahead<E){if(H(e),e.lookahead<E&&t===h)return D;if(0===e.lookahead)break}if(n=0,e.lookahead>=S&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-E&&(e.match_length=B(e,n)),e.match_length>=S)if(i=s._tr_tally(e,e.strstart-e.match_start,e.match_length-S),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=S){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(V(e,!1),0===e.strm.avail_out))return D}return e.insert=e.strstart<S-1?e.strstart:S-1,t===u?(V(e,!0),0===e.strm.avail_out?O:N):e.last_lit&&(V(e,!1),0===e.strm.avail_out)?D:A}function j(e,t){for(var n,i,r;;){if(e.lookahead<E){if(H(e),e.lookahead<E&&t===h)return D;if(0===e.lookahead)break}if(n=0,e.lookahead>=S&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=S-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-E&&(e.match_length=B(e,n),e.match_length<=5&&(e.strategy===f||e.match_length===S&&e.strstart-e.match_start>4096)&&(e.match_length=S-1)),e.prev_length>=S&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-S,i=s._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-S),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=r&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=S-1,e.strstart++,i&&(V(e,!1),0===e.strm.avail_out))return D}else if(e.match_available){if((i=s._tr_tally(e,0,e.window[e.strstart-1]))&&V(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return D}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=s._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<S-1?e.strstart:S-1,t===u?(V(e,!0),0===e.strm.avail_out?O:N):e.last_lit&&(V(e,!1),0===e.strm.avail_out)?D:A}function U(e,t,n,i,r){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=i,this.func=r}function q(){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=v,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 r.Buf16(2*x),this.dyn_dtree=new r.Buf16(2*(2*_+1)),this.bl_tree=new r.Buf16(2*(2*b+1)),P(this.dyn_ltree),P(this.dyn_dtree),P(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(C+1),this.heap=new r.Buf16(2*w+1),P(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*w+1),P(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 W(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=g,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?T:I,e.adler=2===t.wrap?0:1,t.last_flush=h,s._tr_init(t),c):F(e,d)}function G(e){var t,n=W(e);return n===c&&((t=e.state).window_size=2*t.w_size,P(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=S-1,t.match_available=0,t.ins_h=0),n}function Z(e,t,n,i,s,o){if(!e)return d;var a=1;if(t===p&&(t=6),i<0?(a=0,i=-i):i>15&&(a=2,i-=16),s<1||s>y||n!==v||i<8||i>15||t<0||t>9||o<0||o>m)return F(e,d);8===i&&(i=9);var l=new q;return e.state=l,l.strm=e,l.wrap=a,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=s+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+S-1)/S),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<s+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=n,G(e)}i=[new U(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(H(e),0===e.lookahead&&t===h)return D;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+n;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,V(e,!1),0===e.strm.avail_out))return D;if(e.strstart-e.block_start>=e.w_size-E&&(V(e,!1),0===e.strm.avail_out))return D}return e.insert=0,t===u?(V(e,!0),0===e.strm.avail_out?O:N):(e.strstart>e.block_start&&V(e,!1),D)}),new U(4,4,8,4,$),new U(4,5,16,8,$),new U(4,6,32,32,$),new U(4,4,16,16,j),new U(8,16,32,32,j),new U(8,16,128,128,j),new U(8,32,128,256,j),new U(32,128,258,1024,j),new U(32,258,258,4096,j)],n.deflateInit=function(e,t){return Z(e,t,v,15,8,0)},n.deflateInit2=Z,n.deflateReset=G,n.deflateResetKeep=W,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?d:(e.state.gzhead=t,c):d},n.deflate=function(e,t){var n,r,o,l;if(!e||!e.state||t>5||t<0)return e?F(e,d):d;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||666===r.status&&t!==u)return F(e,0===e.avail_out?-5:d);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===T)if(2===r.wrap)e.adler=0,z(r,31),z(r,139),z(r,8),r.gzhead?(z(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),z(r,255&r.gzhead.time),z(r,r.gzhead.time>>8&255),z(r,r.gzhead.time>>16&255),z(r,r.gzhead.time>>24&255),z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),z(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(z(r,255&r.gzhead.extra.length),z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=a(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(z(r,0),z(r,0),z(r,0),z(r,0),z(r,0),z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),z(r,3),r.status=I);else{var p=v+(r.w_bits-8<<4)<<8;p|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(p|=32),p+=31-p%31,r.status=I,L(r,p),0!==r.strstart&&(L(r,e.adler>>>16),L(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(o=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),R(e),o=r.pending,r.pending!==r.pending_buf_size));)z(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),R(e),o=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,z(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),R(e),o=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,z(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),0===l&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&R(e),r.pending+2<=r.pending_buf_size&&(z(r,255&e.adler),z(r,e.adler>>8&255),e.adler=0,r.status=I)):r.status=I),0!==r.pending){if(R(e),0===e.avail_out)return r.last_flush=-1,c}else if(0===e.avail_in&&M(t)<=M(n)&&t!==u)return F(e,-5);if(666===r.status&&0!==e.avail_in)return F(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==h&&666!==r.status){var f=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(H(e),0===e.lookahead)){if(t===h)return D;break}if(e.match_length=0,n=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(V(e,!1),0===e.strm.avail_out))return D}return e.insert=0,t===u?(V(e,!0),0===e.strm.avail_out?O:N):e.last_lit&&(V(e,!1),0===e.strm.avail_out)?D:A}(r,t):3===r.strategy?function(e,t){for(var n,i,r,o,a=e.window;;){if(e.lookahead<=k){if(H(e),e.lookahead<=k&&t===h)return D;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=S&&e.strstart>0&&(i=a[r=e.strstart-1])===a[++r]&&i===a[++r]&&i===a[++r]){o=e.strstart+k;do{}while(i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&r<o);e.match_length=k-(o-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=S?(n=s._tr_tally(e,1,e.match_length-S),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(V(e,!1),0===e.strm.avail_out))return D}return e.insert=0,t===u?(V(e,!0),0===e.strm.avail_out?O:N):e.last_lit&&(V(e,!1),0===e.strm.avail_out)?D:A}(r,t):i[r.level].func(r,t);if(f!==O&&f!==N||(r.status=666),f===D||f===O)return 0===e.avail_out&&(r.last_flush=-1),c;if(f===A&&(1===t?s._tr_align(r):5!==t&&(s._tr_stored_block(r,0,0,!1),3===t&&(P(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),R(e),0===e.avail_out))return r.last_flush=-1,c}return t!==u?c:r.wrap<=0?1:(2===r.wrap?(z(r,255&e.adler),z(r,e.adler>>8&255),z(r,e.adler>>16&255),z(r,e.adler>>24&255),z(r,255&e.total_in),z(r,e.total_in>>8&255),z(r,e.total_in>>16&255),z(r,e.total_in>>24&255)):(L(r,e.adler>>>16),L(r,65535&e.adler)),R(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?c:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==T&&69!==t&&73!==t&&91!==t&&103!==t&&t!==I&&666!==t?F(e,d):(e.state=null,t===I?F(e,-3):c):d},n.deflateSetDictionary=function(e,t){var n,i,s,a,l,h,u,p,f=t.length;if(!e||!e.state)return d;if(2===(a=(n=e.state).wrap)||1===a&&n.status!==T||n.lookahead)return d;for(1===a&&(e.adler=o(e.adler,t,f,0)),n.wrap=0,f>=n.w_size&&(0===a&&(P(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new r.Buf8(n.w_size),r.arraySet(p,t,f-n.w_size,n.w_size,0),t=p,f=n.w_size),l=e.avail_in,h=e.next_in,u=e.input,e.avail_in=f,e.next_in=0,e.input=t,H(n);n.lookahead>=S;){i=n.strstart,s=n.lookahead-(S-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+S-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++}while(--s);n.strstart=i,n.lookahead=S-1,H(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=S-1,n.match_available=0,e.next_in=h,e.input=u,e.avail_in=l,n.wrap=a,c},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":4,"./messages":6,"./trees":7}],6:[function(e,t,n){"use strict";t.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"}},{}],7:[function(e,t,n){"use strict";var i=e("../utils/common");function r(e){for(var t=e.length;--t>=0;)e[t]=0}var s=0,o=256,a=o+1+29,l=30,h=19,u=2*a+1,c=15,d=16,p=256,f=16,m=17,g=18,v=[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],y=[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],w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],b=new Array(2*(a+2));r(b);var x=new Array(2*l);r(x);var C=new Array(512);r(C);var S=new Array(256);r(S);var k=new Array(29);r(k);var E,T,I,D=new Array(l);function A(e,t,n,i,r){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}function O(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function N(e){return e<256?C[e]:C[256+(e>>>7)]}function F(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function M(e,t,n){e.bi_valid>d-n?(e.bi_buf|=t<<e.bi_valid&65535,F(e,e.bi_buf),e.bi_buf=t>>d-e.bi_valid,e.bi_valid+=n-d):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function P(e,t,n){M(e,n[2*t],n[2*t+1])}function R(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function V(e,t,n){var i,r,s=new Array(c+1),o=0;for(i=1;i<=c;i++)s[i]=o=o+n[i-1]<<1;for(r=0;r<=t;r++){var a=e[2*r+1];0!==a&&(e[2*r]=R(s[a]++,a))}}function z(e){var t;for(t=0;t<a;t++)e.dyn_ltree[2*t]=0;for(t=0;t<l;t++)e.dyn_dtree[2*t]=0;for(t=0;t<h;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*p]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function L(e){e.bi_valid>8?F(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function B(e,t,n,i){var r=2*t,s=2*n;return e[r]<e[s]||e[r]===e[s]&&i[t]<=i[n]}function H(e,t,n){for(var i=e.heap[n],r=n<<1;r<=e.heap_len&&(r<e.heap_len&&B(t,e.heap[r+1],e.heap[r],e.depth)&&r++,!B(t,i,e.heap[r],e.depth));)e.heap[n]=e.heap[r],n=r,r<<=1;e.heap[n]=i}function $(e,t,n){var i,r,s,a,l=0;if(0!==e.last_lit)do{i=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],r=e.pending_buf[e.l_buf+l],l++,0===i?P(e,r,t):(P(e,(s=S[r])+o+1,t),0!==(a=v[s])&&M(e,r-=k[s],a),P(e,s=N(--i),n),0!==(a=y[s])&&M(e,i-=D[s],a))}while(l<e.last_lit);P(e,p,t)}function j(e,t){var n,i,r,s=t.dyn_tree,o=t.stat_desc.static_tree,a=t.stat_desc.has_stree,l=t.stat_desc.elems,h=-1;for(e.heap_len=0,e.heap_max=u,n=0;n<l;n++)0!==s[2*n]?(e.heap[++e.heap_len]=h=n,e.depth[n]=0):s[2*n+1]=0;for(;e.heap_len<2;)s[2*(r=e.heap[++e.heap_len]=h<2?++h:0)]=1,e.depth[r]=0,e.opt_len--,a&&(e.static_len-=o[2*r+1]);for(t.max_code=h,n=e.heap_len>>1;n>=1;n--)H(e,s,n);r=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],H(e,s,1),i=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=i,s[2*r]=s[2*n]+s[2*i],e.depth[r]=(e.depth[n]>=e.depth[i]?e.depth[n]:e.depth[i])+1,s[2*n+1]=s[2*i+1]=r,e.heap[1]=r++,H(e,s,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,i,r,s,o,a,l=t.dyn_tree,h=t.max_code,d=t.stat_desc.static_tree,p=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,g=t.stat_desc.max_length,v=0;for(s=0;s<=c;s++)e.bl_count[s]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<u;n++)(s=l[2*l[2*(i=e.heap[n])+1]+1]+1)>g&&(s=g,v++),l[2*i+1]=s,i>h||(e.bl_count[s]++,o=0,i>=m&&(o=f[i-m]),e.opt_len+=(a=l[2*i])*(s+o),p&&(e.static_len+=a*(d[2*i+1]+o)));if(0!==v){do{for(s=g-1;0===e.bl_count[s];)s--;e.bl_count[s]--,e.bl_count[s+1]+=2,e.bl_count[g]--,v-=2}while(v>0);for(s=g;0!==s;s--)for(i=e.bl_count[s];0!==i;)(r=e.heap[--n])>h||(l[2*r+1]!==s&&(e.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),i--)}}(e,t),V(s,h,e.bl_count)}function U(e,t,n){var i,r,s=-1,o=t[1],a=0,l=7,h=4;for(0===o&&(l=138,h=3),t[2*(n+1)+1]=65535,i=0;i<=n;i++)r=o,o=t[2*(i+1)+1],++a<l&&r===o||(a<h?e.bl_tree[2*r]+=a:0!==r?(r!==s&&e.bl_tree[2*r]++,e.bl_tree[2*f]++):a<=10?e.bl_tree[2*m]++:e.bl_tree[2*g]++,a=0,s=r,0===o?(l=138,h=3):r===o?(l=6,h=3):(l=7,h=4))}function q(e,t,n){var i,r,s=-1,o=t[1],a=0,l=7,h=4;for(0===o&&(l=138,h=3),i=0;i<=n;i++)if(r=o,o=t[2*(i+1)+1],!(++a<l&&r===o)){if(a<h)do{P(e,r,e.bl_tree)}while(0!=--a);else 0!==r?(r!==s&&(P(e,r,e.bl_tree),a--),P(e,f,e.bl_tree),M(e,a-3,2)):a<=10?(P(e,m,e.bl_tree),M(e,a-3,3)):(P(e,g,e.bl_tree),M(e,a-11,7));a=0,s=r,0===o?(l=138,h=3):r===o?(l=6,h=3):(l=7,h=4)}}r(D);var W=!1;function G(e,t,n,r){M(e,(s<<1)+(r?1:0),3),function(e,t,n,r){L(e),F(e,n),F(e,~n),i.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}n._tr_init=function(e){W||(function(){var e,t,n,i,r,s=new Array(c+1);for(n=0,i=0;i<28;i++)for(k[i]=n,e=0;e<1<<v[i];e++)S[n++]=i;for(S[n-1]=i,r=0,i=0;i<16;i++)for(D[i]=r,e=0;e<1<<y[i];e++)C[r++]=i;for(r>>=7;i<l;i++)for(D[i]=r<<7,e=0;e<1<<y[i]-7;e++)C[256+r++]=i;for(t=0;t<=c;t++)s[t]=0;for(e=0;e<=143;)b[2*e+1]=8,e++,s[8]++;for(;e<=255;)b[2*e+1]=9,e++,s[9]++;for(;e<=279;)b[2*e+1]=7,e++,s[7]++;for(;e<=287;)b[2*e+1]=8,e++,s[8]++;for(V(b,a+1,s),e=0;e<l;e++)x[2*e+1]=5,x[2*e]=R(e,5);E=new A(b,v,o+1,a,c),T=new A(x,y,0,l,c),I=new A(new Array(0),w,0,h,7)}(),W=!0),e.l_desc=new O(e.dyn_ltree,E),e.d_desc=new O(e.dyn_dtree,T),e.bl_desc=new O(e.bl_tree,I),e.bi_buf=0,e.bi_valid=0,z(e)},n._tr_stored_block=G,n._tr_flush_block=function(e,t,n,i){var r,s,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<o;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),j(e,e.l_desc),j(e,e.d_desc),a=function(e){var t;for(U(e,e.dyn_ltree,e.l_desc.max_code),U(e,e.dyn_dtree,e.d_desc.max_code),j(e,e.bl_desc),t=h-1;t>=3&&0===e.bl_tree[2*_[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),(s=e.static_len+3+7>>>3)<=(r=e.opt_len+3+7>>>3)&&(r=s)):r=s=n+5,n+4<=r&&-1!==t?G(e,t,n,i):4===e.strategy||s===r?(M(e,2+(i?1:0),3),$(e,b,x)):(M(e,4+(i?1:0),3),function(e,t,n,i){var r;for(M(e,t-257,5),M(e,n-1,5),M(e,i-4,4),r=0;r<i;r++)M(e,e.bl_tree[2*_[r]+1],3);q(e,e.dyn_ltree,t-1),q(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),$(e,e.dyn_ltree,e.dyn_dtree)),z(e),i&&L(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(S[n]+o+1)]++,e.dyn_dtree[2*N(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){M(e,2,3),P(e,p,b),function(e){16===e.bi_valid?(F(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":1}],8:[function(e,t,n){"use strict";t.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}},{}],"/lib/deflate.js":[function(e,t,n){"use strict";var i=e("./zlib/deflate"),r=e("./utils/common"),s=e("./utils/strings"),o=e("./zlib/messages"),a=e("./zlib/zstream"),l=Object.prototype.toString,h=0,u=-1,c=0,d=8;function p(e){if(!(this instanceof p))return new p(e);this.options=r.assign({level:u,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:c,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==h)throw new Error(o[n]);if(t.header&&i.deflateSetHeader(this.strm,t.header),t.dictionary){var f;if(f="string"==typeof t.dictionary?s.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=i.deflateSetDictionary(this.strm,f))!==h)throw new Error(o[n]);this._dict_set=!0}}function f(e,t){var n=new p(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}p.prototype.push=function(e,t){var n,o,a=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,a.input="string"==typeof e?s.string2buf(e):"[object ArrayBuffer]"===l.call(e)?new Uint8Array(e):e,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new r.Buf8(u),a.next_out=0,a.avail_out=u),1!==(n=i.deflate(a,o))&&n!==h)return this.onEnd(n),this.ended=!0,!1;0!==a.avail_out&&(0!==a.avail_in||4!==o&&2!==o)||this.onData("string"===this.options.to?s.buf2binstring(r.shrinkBuf(a.output,a.next_out)):r.shrinkBuf(a.output,a.next_out))}while((a.avail_in>0||0===a.avail_out)&&1!==n);return 4===o?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===h):2!==o||(this.onEnd(h),a.avail_out=0,!0)},p.prototype.onData=function(e){this.chunks.push(e)},p.prototype.onEnd=function(e){e===h&&(this.result="string"===this.options.to?this.chunks.join(""):r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=p,n.deflate=f,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,f(e,t)}},{"./utils/common":1,"./utils/strings":2,"./zlib/deflate":5,"./zlib/messages":6,"./zlib/zstream":8}]},{},[])("/lib/deflate.js")},zUnb:function(e,t,n){"use strict";n.r(t);var i={};function r(e){return"function"==typeof e}n.r(i),n.d(i,"swing",function(){return yg}),n.d(i,"linear",function(){return wg}),n.d(i,"easeOutElastic",function(){return _g});let s=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function a(e){setTimeout(()=>{throw e})}const l={closed:!0,next(e){},error(e){if(o.useDeprecatedSynchronousErrorHandling)throw e;a(e)},complete(){}},h=Array.isArray||(e=>e&&"number"==typeof e.length);function u(e){return null!==e&&"object"==typeof e}function c(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}c.prototype=Object.create(Error.prototype);const d=c,p=(()=>{class e{constructor(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let e,t=!1;if(this.closed)return;let{_parent:n,_parents:i,_unsubscribe:s,_subscriptions:o}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let a=-1,l=i?i.length:0;for(;n;)n.remove(this),n=++a<l&&i[a]||null;if(r(s))try{s.call(this)}catch(c){t=!0,e=c instanceof d?f(c.errors):[c]}if(h(o))for(a=-1,l=o.length;++a<l;){const n=o[a];if(u(n))try{n.unsubscribe()}catch(c){t=!0,e=e||[],c instanceof d?e=e.concat(f(c.errors)):e.push(c)}}if(t)throw new d(e)}add(t){let n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;(n=new e)._subscriptions=[t]}break;default:if(!t)return e.EMPTY;throw new Error("unrecognized teardown "+t+" added to Subscription.")}if(n._addParent(this)){const e=this._subscriptions;e?e.push(n):this._subscriptions=[n]}return n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}_addParent(e){let{_parent:t,_parents:n}=this;return t!==e&&(t?n?-1===n.indexOf(e)&&(n.push(e),!0):(this._parents=[e],!0):(this._parent=e,!0))}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function f(e){return e.reduce((e,t)=>e.concat(t instanceof d?t.errors:t),[])}const m="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class g extends p{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!e){this.destination=l;break}if("object"==typeof e){e instanceof g?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new v(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new v(this,e,t,n)}}[m](){return this}static create(e,t,n){const i=new g(e,t,n);return i.syncErrorThrowable=!1,i}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:e,_parents:t}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this}}class v extends g{constructor(e,t,n,i){let s;super(),this._parentSubscriber=e;let o=this;r(t)?s=t:t&&(s=t.next,n=t.error,i=t.complete,t!==l&&(r((o=Object.create(t)).unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=n,this._complete=i}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;o.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=o;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):a(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;a(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);o.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw n;a(n)}}__tryOrSetError(e,t,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return o.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(a(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const y="function"==typeof Symbol&&Symbol.observable||"@@observable";function w(){}const _=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:i}=this,r=function(e,t,n){if(e){if(e instanceof g)return e;if(e[m])return e[m]()}return e||t||n?new g(e,t,n):new g(l)}(e,t,n);if(r.add(i?i.call(r,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),o.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(e){try{return this._subscribe(e)}catch(t){o.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:i}=e;if(t||i)return!1;e=n&&n instanceof g?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=b(t))((t,n)=>{let i;i=this.subscribe(t=>{try{e(t)}catch(r){n(r),i&&i.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[y](){return this}pipe(...e){return 0===e.length?this:((t=e)?1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)}:w)(this);var t}toPromise(e){return new(e=b(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=(t=>new e(t)),e})();function b(e){if(e||(e=o.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function x(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}x.prototype=Object.create(Error.prototype);const C=x;class S extends p{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class k extends g{constructor(e){super(e),this.destination=e}}const E=(()=>{class e extends _{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[m](){return new k(this)}lift(e){const t=new T(this,this);return t.operator=e,t}next(e){if(this.closed)throw new C;if(!this.isStopped){const{observers:t}=this,n=t.length,i=t.slice();for(let r=0;r<n;r++)i[r].next(e)}}error(e){if(this.closed)throw new C;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,i=t.slice();for(let r=0;r<n;r++)i[r].error(e);this.observers.length=0}complete(){if(this.closed)throw new C;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let i=0;i<t;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new C;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new C;return this.hasError?(e.error(this.thrownError),p.EMPTY):this.isStopped?(e.complete(),p.EMPTY):(this.observers.push(e),new S(this,e))}asObservable(){const e=new _;return e.source=this,e}}return e.create=((e,t)=>new T(e,t)),e})();class T extends E{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):p.EMPTY}}function I(e){return e&&"function"==typeof e.schedule}class D extends g{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const A=e=>t=>{for(let n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()},O=e=>t=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,a),t);function N(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const F=N(),M=e=>t=>{const n=e[F]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t},P=e=>t=>{const n=e[y]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)},R=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function V(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const z=e=>{if(e instanceof _)return t=>e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t);if(e&&"function"==typeof e[y])return P(e);if(R(e))return A(e);if(V(e))return O(e);if(e&&"function"==typeof e[F])return M(e);{const t=u(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};function L(e,t,n,i,r=new D(e,n,i)){if(!r.closed)return z(t)(r)}class B extends g{notifyNext(e,t,n,i,r){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}function H(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new $(e,t))}}class ${constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new j(e,this.project,this.thisArg))}}class j extends g{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function U(e,t){return new _(t?n=>{const i=new p;let r=0;return i.add(t.schedule(function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()})),i}:A(e))}function q(e,t){if(!t)return e instanceof _?e:new _(z(e));if(null!=e){if(function(e){return e&&"function"==typeof e[y]}(e))return function(e,t){return new _(t?n=>{const i=new p;return i.add(t.schedule(()=>{const r=e[y]();i.add(r.subscribe({next(e){i.add(t.schedule(()=>n.next(e)))},error(e){i.add(t.schedule(()=>n.error(e)))},complete(){i.add(t.schedule(()=>n.complete()))}}))})),i}:P(e))}(e,t);if(V(e))return function(e,t){return new _(t?n=>{const i=new p;return i.add(t.schedule(()=>e.then(e=>{i.add(t.schedule(()=>{n.next(e),i.add(t.schedule(()=>n.complete()))}))},e=>{i.add(t.schedule(()=>n.error(e)))}))),i}:O(e))}(e,t);if(R(e))return U(e,t);if(function(e){return e&&"function"==typeof e[F]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new _(t?n=>{const i=new p;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=e[F](),i.add(t.schedule(function(){if(n.closed)return;let e,t;try{const s=r.next();e=s.value,t=s.done}catch(i){return void n.error(i)}t?n.complete():(n.next(e),this.schedule())}))})),i}:M(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function W(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(W((n,i)=>q(e(n,i)).pipe(H((e,r)=>t(n,e,i,r))),n)):("number"==typeof t&&(n=t),t=>t.lift(new G(e,n)))}class G{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new Z(e,this.project,this.concurrent))}}class Z extends B{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t,e,n)}_innerSub(e,t,n){const i=new D(this,void 0,void 0);this.destination.add(i),L(this,e,t,n,i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e,t,n,i,r){this.destination.next(t)}notifyComplete(e){const t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Y(e){return e}function K(e=Number.POSITIVE_INFINITY){return W(Y,e)}function Q(...e){let t=Number.POSITIVE_INFINITY,n=null,i=e[e.length-1];return I(i)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof i&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof _?e[0]:K(t)(U(e,n))}function X(){return function(e){return e.lift(new J(e))}}class J{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const i=new ee(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class ee extends g{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}const te=class extends _{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new p).add(this.source.subscribe(new ie(this.getSubject(),this))),e.closed?(this._connection=null,e=p.EMPTY):this._connection=e),e}refCount(){return X()(this)}}.prototype,ne={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:te._subscribe},_isComplete:{value:te._isComplete,writable:!0},getSubject:{value:te.getSubject},connect:{value:te.connect},refCount:{value:te.refCount}};class ie extends k{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function re(e,t){return function(n){let i;if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new se(i,t));const r=Object.create(n,ne);return r.source=n,r.subjectFactory=i,r}}class se{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:n}=this,i=this.subjectFactory(),r=n(i).subscribe(e);return r.add(t.subscribe(i)),r}}function oe(){return new E}const ae="__parameters__";function le(e,t,n){const i=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function r(...e){if(this instanceof r)return i.apply(this,e),this;const t=new r(...e);return n.annotation=t,n;function n(e,n,i){const r=e.hasOwnProperty(ae)?e[ae]:Object.defineProperty(e,ae,{value:[]})[ae];for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(t),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r}const he=le("Inject",e=>({token:e})),ue=le("Optional"),ce=le("Self"),de=le("SkipSelf");var pe=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function fe(e){for(let t in e)if(e[t]===fe)return t;throw Error("Could not find renamed property on target object.")}function me(e){return{providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const ge=me;function ve(e){return e&&e.hasOwnProperty(ye)?e[ye]:null}const ye=fe({ngInjectableDef:fe});function we(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(we).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}const _e=fe({__forward_ref__:fe});function be(e){return e.__forward_ref__=be,e.toString=function(){return we(this())},e}function xe(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(_e)&&t.__forward_ref__===be?t():e}function Ce(){const e="undefined"!=typeof globalThis&&globalThis,t="undefined"!=typeof window&&window,n="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i="undefined"!=typeof global&&global;return e||i||t||n}const Se=Ce();let ke,Ee=void 0;function Te(e){const t=Ee;return Ee=e,t}function Ie(e,t=pe.Default){return(ke||function(e,t=pe.Default){if(void 0===Ee)throw new Error("inject() must be called from an injection context");return null===Ee?function(e,t,n){const i=ve(e);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&pe.Optional)return null;throw new Error(`Injector: NOT_FOUND [${we(e)}]`)}(e,0,t):Ee.get(e,t&pe.Optional?null:void 0,t)})(e,t)}const De=Ie;class Ae{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=me({providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Oe="__source",Ne=new Object,Fe=new Ae("INJECTOR",-1);class Me{get(e,t=Ne){if(t===Ne){const t=new Error(`NullInjectorError: No provider for ${we(e)}!`);throw t.name="NullInjectorError",t}return t}}const Pe=(()=>{class e{static create(e,t){return Array.isArray(e)?new qe(e,t):new qe(e.providers,e.parent,e.name||null)}}return e.THROW_IF_NOT_FOUND=Ne,e.NULL=new Me,e.ngInjectableDef=me({providedIn:"any",factory:()=>Ie(Fe)}),e.__NG_ELEMENT_ID__=-1,e})(),Re=function(e){return e},Ve=[],ze=Re,Le=function(){return Array.prototype.slice.call(arguments)},Be=fe({provide:String,useValue:fe}),He="ngTokenPath",$e="ngTempTokenPath",je=/\n/gm,Ue="\u0275";class qe{constructor(e,t=Pe.NULL,n=null){this.parent=t,this.source=n;const i=this._records=new Map;i.set(Pe,{token:Pe,fn:Re,deps:Ve,value:this,useNew:!1}),i.set(Fe,{token:Fe,fn:Re,deps:Ve,value:this,useNew:!1}),function e(t,n){if(n)if((n=xe(n))instanceof Array)for(let i=0;i<n.length;i++)e(t,n[i]);else{if("function"==typeof n)throw Ze("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Ze("Unexpected provider",n);{let e=xe(n.provide);const i=function(e){const t=function(e){let t=Ve;const n=e.deps;if(n&&n.length){t=[];for(let e=0;e<n.length;e++){let i=6,r=xe(n[e]);if(r instanceof Array)for(let e=0,t=r;e<t.length;e++){const n=t[e];n instanceof ue||n==ue?i|=1:n instanceof de||n==de?i&=-3:n instanceof ce||n==ce?i&=-5:r=n instanceof he?n.token:xe(n)}t.push({token:r,options:i})}}else if(e.useExisting)t=[{token:xe(e.useExisting),options:6}];else if(!(n||Be in e))throw Ze("'deps' required",e);return t}(e);let n=Re,i=Ve,r=!1,s=xe(e.provide);if(Be in e)i=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)r=!0,n=xe(e.useClass);else{if("function"!=typeof s)throw Ze("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);r=!0,n=s}return{deps:t,fn:n,useNew:r,value:i}}(n);if(!0===n.multi){let i=t.get(e);if(i){if(i.fn!==Le)throw We(e)}else t.set(e,i={token:n.provide,deps:[],useNew:!1,fn:Le,value:Ve});i.deps.push({token:e=n,options:6})}const r=t.get(e);if(r&&r.fn==Le)throw We(e);t.set(e,i)}}}(i,e)}get(e,t,n=pe.Default){const i=this._records.get(e);try{return function e(t,n,i,r,s,o){try{return function(t,n,i,r,s,o){let a;if(!n||o&pe.SkipSelf)o&pe.Self||(a=r.get(t,s,pe.Default));else{if((a=n.value)==ze)throw Error(Ue+"Circular dependency");if(a===Ve){n.value=ze;let t=void 0,s=n.useNew,o=n.fn,l=n.deps,h=Ve;if(l.length){h=[];for(let t=0;t<l.length;t++){const n=l[t],s=n.options,o=2&s?i.get(n.token):void 0;h.push(e(n.token,o,i,o||4&s?r:Pe.NULL,1&s?null:Pe.THROW_IF_NOT_FOUND,pe.Default))}}n.value=a=s?new o(...h):o.apply(t,h)}}return a}(t,n,i,r,s,o)}catch(a){throw a instanceof Error||(a=new Error(a)),(a[$e]=a[$e]||[]).unshift(t),n&&n.value==ze&&(n.value=Ve),a}}(e,i,this._records,this.parent,t,n)}catch(r){return function(e,t,n,i){const r=e[$e];throw t[Oe]&&r.unshift(t[Oe]),e.message=Ge("\n"+e.message,r,"StaticInjectorError",i),e[He]=r,e[$e]=null,e}(r,e,0,this.source)}}toString(){const e=[];return this._records.forEach((t,n)=>e.push(we(n))),`StaticInjector[${e.join(", ")}]`}}function We(e){return Ze("Cannot mix multi providers and regular providers",e)}function Ge(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Ue?e.substr(2):e;let r=we(t);if(t instanceof Array)r=t.map(we).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let i=t[n];e.push(n+":"+("string"==typeof i?JSON.stringify(i):we(i)))}r=`{${e.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(je,"\n  ")}`}function Ze(e,t){return new Error(Ge(e,t,"StaticInjectorError"))}const Ye="ngDebugContext",Ke="ngOriginalError",Qe="ngErrorLogger",Xe=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),Je=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Se))();function et(e){return e[Ye]}function tt(e){return e[Ke]}function nt(e,...t){e.error(...t)}class it{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e[Qe]||nt}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?et(e)?et(e):this._findContext(tt(e)):null}_findOriginalError(e){let t=tt(e);for(;t&&tt(t);)t=tt(t);return t}}let rt=!0,st=!1;function ot(){return st=!0,rt}class at{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(i){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e="<body><remove></remove>"+e+"</body>";try{const n=(new window.DOMParser).parseFromString(e,"text/html").body;return n.removeChild(n.firstChild),n}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}stripCustomNsAttrs(e){const t=e.attributes;for(let i=t.length-1;0<i;i--){const n=t.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const lt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,ht=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function ut(e){return(e=String(e)).match(lt)||e.match(ht)?e:(ot()&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see http://g.co/ng/security#xss)`),"unsafe:"+e)}function ct(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function dt(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const pt=ct("area,br,col,hr,img,wbr"),ft=ct("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),mt=ct("rp,rt"),gt=dt(mt,ft),vt=dt(pt,dt(ft,ct("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),dt(mt,ct("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),gt),yt=ct("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),wt=ct("srcset"),_t=dt(yt,wt,ct("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ct("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),bt=ct("script,style,template");class xt{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!vt.hasOwnProperty(t))return this.sanitizedSomething=!0,!bt.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let r=0;r<n.length;r++){const e=n.item(r),t=e.name,s=t.toLowerCase();if(!_t.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let o=e.value;yt[s]&&(o=ut(o)),wt[s]&&(i=o,o=(i=String(i)).split(",").map(e=>ut(e.trim())).join(", ")),this.buf.push(" ",t,'="',kt(o),'"')}var i;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();vt.hasOwnProperty(t)&&!pt.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(kt(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const Ct=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,St=/([^\#-~ |!])/g;function kt(e){return e.replace(/&/g,"&amp;").replace(Ct,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(St,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Et;function Tt(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const It=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}();class Dt{}const At=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Ot=/^url\(([^)]+)\)$/,Nt=/([A-Z])/g;function Ft(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function Mt(e){return!!e&&"function"==typeof e.then}function Pt(e){return!!e&&"function"==typeof e.subscribe}let Rt=null;function Vt(){if(!Rt){const e=Se.Symbol;if(e&&e.iterator)Rt=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Rt=n)}}}return Rt}function zt(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function Lt(e,t){const n=Ht(e),i=Ht(t);if(n&&i)return function(e,t,n){const i=e[Vt()](),r=t[Vt()]();for(;;){const e=i.next(),t=r.next();if(e.done&&t.done)return!0;if(e.done||t.done)return!1;if(!n(e.value,t.value))return!1}}(e,t,Lt);{const r=e&&("object"==typeof e||"function"==typeof e),s=t&&("object"==typeof t||"function"==typeof t);return!(n||!r||i||!s)||zt(e,t)}}class Bt{constructor(e){this.wrapped=e}static wrap(e){return new Bt(e)}static unwrap(e){return Bt.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof Bt}}function Ht(e){return!!$t(e)&&(Array.isArray(e)||!(e instanceof Map)&&Vt()in e)}function $t(e){return null!==e&&("function"==typeof e||"object"==typeof e)}class jt{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}const Ut=new Ae("The presence of this token marks an injector as being the root injector.");class qt{}class Wt{}function Gt(e){const t=Error(`No component factory found for ${we(e)}. Did you add it to @NgModule.entryComponents?`);return t[Zt]=e,t}const Zt="ngComponent";class Yt{resolveComponentFactory(e){throw Gt(e)}}const Kt=(()=>{class e{}return e.NULL=new Yt,e})();class Qt{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let i=0;i<e.length;i++){const t=e[i];this._factories.set(t.componentType,t)}}resolveComponentFactory(e){let t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw Gt(e);return new Xt(t,this._ngModule)}}class Xt extends Wt{constructor(e,t){super(),this.factory=e,this.ngModule=t,this.selector=e.selector,this.componentType=e.componentType,this.ngContentSelectors=e.ngContentSelectors,this.inputs=e.inputs,this.outputs=e.outputs}create(e,t,n,i){return this.factory.create(e,t,n,i||this.ngModule)}}class Jt{}class en{}function tn(...e){}const nn=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=(()=>rn(e)),e})(),rn=tn;class sn{}class on{}const an=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),ln=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>hn()),e})(),hn=tn;class un{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const cn=new un("8.0.3");class dn{constructor(){}supports(e){return Ht(e)}create(e){return new fn(e)}}const pn=(e,t)=>t;class fn{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||pn}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,i=0,r=null;for(;t||n;){const s=!n||t&&t.currentIndex<yn(n,i,r)?t:n,o=yn(s,i,r),a=s.currentIndex;if(s===n)i--,n=n._nextRemoved;else if(t=t._next,null==s.previousIndex)i++;else{r||(r=[]);const e=o-i,t=a-i;if(e!=t){for(let n=0;n<e;n++){const i=n<r.length?r[n]:r[n]=0,s=i+n;t<=s&&s<e&&(r[n]=i+1)}r[s.previousIndex]=t-e}}o!==a&&e(s,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!Ht(e))throw new Error(`Error trying to diff '${we(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,i,r=this._itHead,s=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)i=this._trackByFn(t,n=e[t]),null!==r&&zt(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,n,i,t)),zt(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,i,t),s=!0),r=r._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Vt()]();let i;for(;!(i=n.next()).done;)t(i.value)}}(e,e=>{i=this._trackByFn(t,e),null!==r&&zt(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,e,i,t)),zt(r.item,e)||this._addIdentityChange(r,e)):(r=this._mismatch(r,e,i,t),s=!0),r=r._next,t++}),this.length=t;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,i){let r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(zt(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(zt(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,i)):e=this._addAfter(new mn(t,n),r,i),e}_verifyReinsertion(e,t,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,r=e._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new vn),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new vn),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class mn{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class gn{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&zt(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class vn{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new gn,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function yn(e,t,n){const i=e.previousIndex;if(null===i)return i;let r=0;return n&&i<n.length&&(r=n[i]),i+t+r}class wn{constructor(){}supports(e){return e instanceof Map||$t(e)}create(){return new _n}}class _n{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||$t(e)))throw new Error(`Error trying to diff '${we(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const i=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new bn(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){zt(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class bn{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}const xn=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new de,new ue]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.ngInjectableDef=me({providedIn:"root",factory:()=>new e([new dn])}),e})(),Cn=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new de,new ue]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.ngInjectableDef=me({providedIn:"root",factory:()=>new e([new wn])}),e})(),Sn=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>kn()),e})(),kn=(...e)=>{},En=[new wn],Tn=new xn([new dn]),In=new Cn(En),Dn=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>An(e,nn)),e})(),An=tn,On=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>Nn(e,nn)),e})(),Nn=tn;function Fn(e,t,n,i){let r=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return i&&(r+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return Mn(n,t),n}(r,e)}function Mn(e,t){e[Ye]=t,e[Qe]=t.logError.bind(t)}function Pn(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function Rn(e,t,n){const i=e.state,r=1792&i;return r===t?(e.state=-1793&i|n,e.initIndex=-1,!0):r===n}function Vn(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function zn(e,t){return e.nodes[t]}function Ln(e,t){return e.nodes[t]}function Bn(e,t){return e.nodes[t]}function Hn(e,t){return e.nodes[t]}function $n(e,t){return e.nodes[t]}const jn={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Un=()=>{},qn=new Map;function Wn(e){let t=qn.get(e);return t||(t=we(e)+"_"+qn.size,qn.set(e,t)),t}const Gn="$$undefined",Zn="$$empty";function Yn(e){return{id:Gn,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let Kn=0;function Qn(e,t,n,i){return!(!(2&e.state)&&zt(e.oldValues[t.bindingIndex+n],i))}function Xn(e,t,n,i){return!!Qn(e,t,n,i)&&(e.oldValues[t.bindingIndex+n]=i,!0)}function Jn(e,t,n,i){const r=e.oldValues[t.bindingIndex+n];if(1&e.state||!Lt(r,i)){const s=t.bindings[n].name;throw Fn(jn.createDebugContext(e,t.nodeIndex),`${s}: ${r}`,`${s}: ${i}`,0!=(1&e.state))}}function ei(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function ti(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function ni(e,t,n,i){try{return ei(33554432&e.def.nodes[t].flags?Ln(e,t).componentView:e),jn.handleEvent(e,t,n,i)}catch(r){e.root.errorHandler.handleError(r)}}function ii(e){return e.parent?Ln(e.parent,e.parentNodeDef.nodeIndex):null}function ri(e){return e.parent?e.parentNodeDef.parent:null}function si(e,t){switch(201347067&t.flags){case 1:return Ln(e,t.nodeIndex).renderElement;case 2:return zn(e,t.nodeIndex).renderText}}function oi(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function ai(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function li(e){return 1<<e%32}function hi(e){const t={};let n=0;const i={};return e&&e.forEach(([e,r])=>{"number"==typeof e?(t[e]=r,n|=li(e)):i[e]=r}),{matchedQueries:t,references:i,matchedQueryIds:n}}function ui(e,t){return e.map(e=>{let n,i;return Array.isArray(e)?[i,n]=e:(i=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,Oe,{value:t,configurable:!0}),{flags:i,token:n,tokenKey:Wn(n)}})}function ci(e,t,n){let i=n.renderParent;return i?0==(1&i.flags)||0==(33554432&i.flags)||i.element.componentRendererType&&i.element.componentRendererType.encapsulation===Xe.Native?Ln(e,n.renderParent.nodeIndex).renderElement:void 0:t}const di=new WeakMap;function pi(e){let t=di.get(e);return t||((t=e(()=>Un)).factory=e,di.set(e,t)),t}function fi(e,t,n,i,r){3===t&&(n=e.renderer.parentNode(si(e,e.def.lastRenderRootNode))),mi(e,t,0,e.def.nodes.length-1,n,i,r)}function mi(e,t,n,i,r,s,o){for(let a=n;a<=i;a++){const n=e.def.nodes[a];11&n.flags&&vi(e,n,t,r,s,o),a+=n.childCount}}function gi(e,t,n,i,r,s){let o=e;for(;o&&!oi(o);)o=o.parent;const a=o.parent,l=ri(o),h=l.nodeIndex+l.childCount;for(let u=l.nodeIndex+1;u<=h;u++){const e=a.def.nodes[u];e.ngContentIndex===t&&vi(a,e,n,i,r,s),u+=e.childCount}if(!a.parent){const o=e.root.projectableNodes[t];if(o)for(let t=0;t<o.length;t++)yi(e,o[t],n,i,r,s)}}function vi(e,t,n,i,r,s){if(8&t.flags)gi(e,t.ngContent.index,n,i,r,s);else{const o=si(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&yi(e,o,n,i,r,s),32&t.bindingFlags&&yi(Ln(e,t.nodeIndex).componentView,o,n,i,r,s)):yi(e,o,n,i,r,s),16777216&t.flags){const o=Ln(e,t.nodeIndex).viewContainer._embeddedViews;for(let e=0;e<o.length;e++)fi(o[e],n,i,r,s)}1&t.flags&&!t.element.name&&mi(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,i,r,s)}}function yi(e,t,n,i,r,s){const o=e.renderer;switch(n){case 1:o.appendChild(i,t);break;case 2:o.insertBefore(i,t,r);break;case 3:o.removeChild(i,t);break;case 0:s.push(t)}}const wi=/^:([^:]+):(.+)$/;function _i(e){if(":"===e[0]){const t=e.match(wi);return[t[1],t[2]]}return["",e]}function bi(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}const xi=new Object,Ci=Wn(Pe),Si=Wn(Fe),ki=Wn(Jt);function Ei(e,t,n,i){return n=xe(n),{index:-1,deps:ui(i,we(t)),flags:e,token:t,value:n}}function Ti(e,t,n=Pe.THROW_IF_NOT_FOUND){const i=Te(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);const o=t.tokenKey;switch(o){case Ci:case Si:case ki:return e}const a=e._def.providersByKey[o];let l;if(a){let t=e._providers[a.index];return void 0===t&&(t=e._providers[a.index]=Ii(e,a)),t===xi?void 0:t}if((l=ve(t.token))&&(r=e,null!=(s=l).providedIn&&(function(e,t){return e._def.modules.indexOf(s.providedIn)>-1}(r)||"root"===s.providedIn&&r._def.isRoot))){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:l.factory,deps:[],index:n,token:t.token},e._providers[n]=xi,e._providers[n]=Ii(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Te(i)}var r,s}function Ii(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const i=n.length;switch(i){case 0:return new t;case 1:return new t(Ti(e,n[0]));case 2:return new t(Ti(e,n[0]),Ti(e,n[1]));case 3:return new t(Ti(e,n[0]),Ti(e,n[1]),Ti(e,n[2]));default:const r=new Array(i);for(let t=0;t<i;t++)r[t]=Ti(e,n[t]);return new t(...r)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){const i=n.length;switch(i){case 0:return t();case 1:return t(Ti(e,n[0]));case 2:return t(Ti(e,n[0]),Ti(e,n[1]));case 3:return t(Ti(e,n[0]),Ti(e,n[1]),Ti(e,n[2]));default:const r=Array(i);for(let t=0;t<i;t++)r[t]=Ti(e,n[t]);return t(...r)}}(e,t.value,t.deps);break;case 2048:n=Ti(e,t.deps[0]);break;case 256:n=t.value}return n===xi||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?xi:n}function Di(e,t){const n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;const i=n[t];return i.viewContainerParent=null,Fi(n,t),jn.dirtyParentQueries(i),Oi(i),i}function Ai(e,t,n){const i=t?si(t,t.def.lastRenderRootNode):e.renderElement,r=n.renderer.parentNode(i),s=n.renderer.nextSibling(i);fi(n,2,r,s,void 0)}function Oi(e){fi(e,3,null,null,void 0)}function Ni(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Fi(e,t){t>=e.length-1?e.pop():e.splice(t,1)}const Mi=new Object;function Pi(e,t,n,i,r,s){return new Ri(e,t,n,i,r,s)}class Ri extends Wt{constructor(e,t,n,i,r,s){super(),this.selector=e,this.componentType=t,this._inputs=i,this._outputs=r,this.ngContentSelectors=s,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,i){if(!i)throw new Error("ngModule should be provided");const r=pi(this.viewDefFactory),s=r.nodes[0].element.componentProvider.nodeIndex,o=jn.createRootView(e,t||[],n,r,i,Mi),a=Bn(o,s).instance;return n&&o.renderer.setAttribute(Ln(o,0).renderElement,"ng-version",cn.full),new Vi(o,new Hi(o),a)}}class Vi extends qt{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new nn(Ln(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new qi(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function zi(e,t,n){return new Li(e,t,n)}class Li{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new nn(this._data.renderElement)}get injector(){return new qi(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=ri(e),e=e.parent;return e?new qi(e,t):new qi(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=Di(this._data,e);jn.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new Hi(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const i=e.createEmbeddedView(t||{});return this.insert(i,n),i}createComponent(e,t,n,i,r){const s=n||this.parentInjector;r||e instanceof Xt||(r=s.get(Jt));const o=e.create(s,i,void 0,r);return this.insert(o.hostView,t),o}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,i){let r=t.viewContainer._embeddedViews;null==n&&(n=r.length),i.viewContainerParent=e,Ni(r,n,i),function(e,t){const n=ii(t);if(!n||n===e||16&t.state)return;t.state|=16;let i=n.template._projectedViews;i||(i=n.template._projectedViews=[]),i.push(t),function(e,n){if(4&n.flags)return;t.parent.def.nodeFlags|=4,n.flags|=4;let i=n.parent;for(;i;)i.childFlags|=4,i=i.parent}(0,t.parentNodeDef)}(t,i),jn.dirtyParentQueries(i),Ai(t,n>0?r[n-1]:null,i)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,i){const r=e.viewContainer._embeddedViews,s=r[n];Fi(r,n),null==i&&(i=r.length),Ni(r,i,s),jn.dirtyParentQueries(s),Oi(s),Ai(e,i>0?r[i-1]:null,s)}(this._data,0,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=Di(this._data,e);t&&jn.destroyView(t)}detach(e){const t=Di(this._data,e);return t?new Hi(t):null}}function Bi(e){return new Hi(e)}class Hi{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return fi(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){ei(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{jn.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){jn.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),jn.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Oi(this._view),jn.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function $i(e,t){return new ji(e,t)}class ji extends Dn{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new Hi(jn.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new nn(Ln(this._parentView,this._def.nodeIndex).renderElement)}}function Ui(e,t){return new qi(e,t)}class qi{constructor(e,t){this.view=e,this.elDef=t}get(e,t=Pe.THROW_IF_NOT_FOUND){return jn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Wn(e)},t)}}function Wi(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=Ln(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return zn(e,n.nodeIndex).renderText;if(20240&n.flags)return Bn(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function Gi(e){return new Zi(e.renderer)}class Zi{constructor(e){this.delegate=e}selectRootElement(e){return this.delegate.selectRootElement(e)}createElement(e,t){const[n,i]=_i(t),r=this.delegate.createElement(i,n);return e&&this.delegate.appendChild(e,r),r}createViewRoot(e){return e}createTemplateAnchor(e){const t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t}createText(e,t){const n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n}projectNodes(e,t){for(let n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])}attachViewAfter(e,t){const n=this.delegate.parentNode(e),i=this.delegate.nextSibling(e);for(let r=0;r<t.length;r++)this.delegate.insertBefore(n,t[r],i)}detachView(e){for(let t=0;t<e.length;t++){const n=e[t],i=this.delegate.parentNode(n);this.delegate.removeChild(i,n)}}destroyView(e,t){for(let n=0;n<t.length;n++)this.delegate.destroyNode(t[n])}listen(e,t,n){return this.delegate.listen(e,t,n)}listenGlobal(e,t,n){return this.delegate.listen(e,t,n)}setElementProperty(e,t,n){this.delegate.setProperty(e,t,n)}setElementAttribute(e,t,n){const[i,r]=_i(t);null!=n?this.delegate.setAttribute(e,r,n,i):this.delegate.removeAttribute(e,r,i)}setBindingDebugInfo(e,t,n){}setElementClass(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)}setElementStyle(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)}invokeElementMethod(e,t,n){e[t].apply(e,n)}setText(e,t){this.delegate.setValue(e,t)}animate(){throw new Error("Renderer.animate is no longer supported!")}}function Yi(e,t,n,i){return new Ki(e,t,n,i)}class Ki{constructor(e,t,n,i){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=i,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=new Array(t.providers.length);for(let i=0;i<t.providers.length;i++){const r=t.providers[i];4096&r.flags||void 0===n[i]&&(n[i]=Ii(e,r))}}(this)}get(e,t=Pe.THROW_IF_NOT_FOUND,n=pe.Default){let i=0;return n&pe.SkipSelf?i|=1:n&pe.Self&&(i|=4),Ti(this,{token:e,tokenKey:Wn(e),flags:i},t)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(Kt)}destroy(){if(this._destroyed)throw new Error(`The ng module ${we(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(e,t){const n=e._def,i=new Set;for(let r=0;r<n.providers.length;r++)if(131072&n.providers[r].flags){const t=e._providers[r];if(t&&t!==xi){const e=t.ngOnDestroy;"function"!=typeof e||i.has(t)||(e.apply(t),i.add(t))}}}(this),this._destroyListeners.forEach(e=>e())}onDestroy(e){this._destroyListeners.push(e)}}const Qi=Wn(sn),Xi=Wn(ln),Ji=Wn(nn),er=Wn(On),tr=Wn(Dn),nr=Wn(Sn),ir=Wn(Pe),rr=Wn(Fe);function sr(e,t,n,i,r,s,o,a){const l=[];if(o)for(let u in o){const[e,t]=o[u];l[e]={flags:8,name:u,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const h=[];if(a)for(let u in a)h.push({type:1,propName:u,target:null,eventName:a[u]});return ar(e,t|=16384,n,i,r,r,s,l,h)}function or(e,t,n,i,r){return ar(-1,e,t,0,n,i,r)}function ar(e,t,n,i,r,s,o,a,l){const{matchedQueries:h,references:u,matchedQueryIds:c}=hi(n);l||(l=[]),a||(a=[]),s=xe(s);const d=ui(o,we(r));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:c,references:u,ngContentIndex:-1,childCount:i,bindings:a,bindingFlags:bi(a),outputs:l,element:null,provider:{token:r,value:s,deps:d},text:null,query:null,ngContent:null}}function lr(e,t){return dr(e,t)}function hr(e,t){let n=e;for(;n.parent&&!oi(n);)n=n.parent;return pr(n.parent,ri(n),!0,t.provider.value,t.provider.deps)}function ur(e,t){const n=pr(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let i=0;i<t.outputs.length;i++){const r=t.outputs[i],s=n[r.propName];if(!Pt(s))throw new Error(`@Output ${r.propName} not initialized in '${n.constructor.name}'.`);{const n=s.subscribe(cr(e,t.parent.nodeIndex,r.eventName));e.disposables[t.outputIndex+i]=n.unsubscribe.bind(n)}}return n}function cr(e,t,n){return i=>ni(e,t,n,i)}function dr(e,t){const n=(8192&t.flags)>0,i=t.provider;switch(201347067&t.flags){case 512:return pr(e,t.parent,n,i.value,i.deps);case 1024:return function(e,t,n,i,r){const s=r.length;switch(s){case 0:return i();case 1:return i(mr(e,t,n,r[0]));case 2:return i(mr(e,t,n,r[0]),mr(e,t,n,r[1]));case 3:return i(mr(e,t,n,r[0]),mr(e,t,n,r[1]),mr(e,t,n,r[2]));default:const o=Array(s);for(let i=0;i<s;i++)o[i]=mr(e,t,n,r[i]);return i(...o)}}(e,t.parent,n,i.value,i.deps);case 2048:return mr(e,t.parent,n,i.deps[0]);case 256:return i.value}}function pr(e,t,n,i,r){const s=r.length;switch(s){case 0:return new i;case 1:return new i(mr(e,t,n,r[0]));case 2:return new i(mr(e,t,n,r[0]),mr(e,t,n,r[1]));case 3:return new i(mr(e,t,n,r[0]),mr(e,t,n,r[1]),mr(e,t,n,r[2]));default:const o=new Array(s);for(let i=0;i<s;i++)o[i]=mr(e,t,n,r[i]);return new i(...o)}}const fr={};function mr(e,t,n,i,r=Pe.THROW_IF_NOT_FOUND){if(8&i.flags)return i.token;const s=e;2&i.flags&&(r=null);const o=i.tokenKey;o===nr&&(n=!(!t||!t.element.componentView)),t&&1&i.flags&&(n=!1,t=t.parent);let a=e;for(;a;){if(t)switch(o){case Qi:return Gi(gr(a,t,n));case Xi:return gr(a,t,n).renderer;case Ji:return new nn(Ln(a,t.nodeIndex).renderElement);case er:return Ln(a,t.nodeIndex).viewContainer;case tr:if(t.element.template)return Ln(a,t.nodeIndex).template;break;case nr:return Bi(gr(a,t,n));case ir:case rr:return Ui(a,t);default:const e=(n?t.element.allProviders:t.element.publicProviders)[o];if(e){let t=Bn(a,e.nodeIndex);return t||(t={instance:dr(a,e)},a.nodes[e.nodeIndex]=t),t.instance}}n=oi(a),t=ri(a),a=a.parent,4&i.flags&&(a=null)}const l=s.root.injector.get(i.token,fr);return l!==fr||r===fr?l:s.root.ngModule.injector.get(i.token,r)}function gr(e,t,n){let i;if(n)i=Ln(e,t.nodeIndex).componentView;else for(i=e;i.parent&&!oi(i);)i=i.parent;return i}function vr(e,t,n,i,r,s){if(32768&n.flags){const t=Ln(e,n.parent.nodeIndex).componentView;2&t.def.flags&&(t.state|=8)}if(t.instance[n.bindings[i].name]=r,524288&n.flags){s=s||{};const t=Bt.unwrap(e.oldValues[n.bindingIndex+i]);s[n.bindings[i].nonMinifiedName]=new jt(t,r,0!=(2&e.state))}return e.oldValues[n.bindingIndex+i]=r,s}function yr(e,t){if(!(e.def.nodeFlags&t))return;const n=e.def.nodes;let i=0;for(let r=0;r<n.length;r++){const s=n[r];let o=s.parent;for(!o&&s.flags&t&&_r(e,r,s.flags&t,i++),0==(s.childFlags&t)&&(r+=s.childCount);o&&1&o.flags&&r===o.nodeIndex+o.childCount;)o.directChildFlags&t&&(i=wr(e,o,t,i)),o=o.parent}}function wr(e,t,n,i){for(let r=t.nodeIndex+1;r<=t.nodeIndex+t.childCount;r++){const t=e.def.nodes[r];t.flags&n&&_r(e,r,t.flags&n,i++),r+=t.childCount}return i}function _r(e,t,n,i){const r=Bn(e,t);if(!r)return;const s=r.instance;s&&(jn.setCurrentNode(e,t),1048576&n&&Vn(e,512,i)&&s.ngAfterContentInit(),2097152&n&&s.ngAfterContentChecked(),4194304&n&&Vn(e,768,i)&&s.ngAfterViewInit(),8388608&n&&s.ngAfterViewChecked(),131072&n&&s.ngOnDestroy())}const br=new Ae("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Je});class xr extends E{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let i,r=e=>null,s=()=>null;e&&"object"==typeof e?(i=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(r=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(s=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,r,s);return e instanceof p&&e.add(o),o}}class Cr{constructor(){this.dirty=!0,this._results=[],this.changes=new xr,this.length=0}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}[Vt()](){return this._results[Vt()]()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?(n===t&&(n=t.slice(0,i)),e(r,n)):n!==t&&n.push(r)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}const Sr=new Ae("Application Initializer"),kr=(()=>(class{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();Mt(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}))(),Er=new Ae("AppId");function Tr(){return`${Ir()}${Ir()}${Ir()}`}function Ir(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Dr=new Ae("Platform Initializer"),Ar=new Ae("Platform ID"),Or=new Ae("appBootstrapListener"),Nr=(()=>(class{log(e){console.log(e)}warn(e){console.warn(e)}}))();function Fr(){throw new Error("Runtime compiler is not loaded")}const Mr=Fr,Pr=Fr,Rr=Fr,Vr=Fr,zr=(()=>(class{constructor(){this.compileModuleSync=Mr,this.compileModuleAsync=Pr,this.compileModuleAndAllComponentsSync=Rr,this.compileModuleAndAllComponentsAsync=Vr}clearCache(){}clearCacheFor(e){}getModuleId(e){}}))();class Lr{}let Br,Hr;function $r(){const e=Se.wtf;return!(!e||!(Br=e.trace)||(Hr=Br.events,0))}const jr=$r(),Ur=jr?function(e,t=null){return Hr.createScope(e,t)}:(e,t)=>(function(e,t){return null}),qr=jr?function(e,t){return Br.leaveScope(e,t),t}:(e,t)=>t,Wr=(()=>Promise.resolve(0))();function Gr(e){"undefined"==typeof Zone?Wr.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Zr{constructor({enableLongStackTrace:e=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xr(!1),this.onMicrotaskEmpty=new xr(!1),this.onStable=new xr(!1),this.onError=new xr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");var t;Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,i,r,s,o)=>{try{return Xr(t),e.invokeTask(i,r,s,o)}finally{Jr(t)}},onInvoke:(e,n,i,r,s,o,a)=>{try{return Xr(t),e.invoke(i,r,s,o,a)}finally{Jr(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t.hasPendingMicrotasks=r.microTask,Qr(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,i,r)=>(e.handleError(i,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Zr.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Zr.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,i){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+i,e,Kr,Yr,Yr);try{return r.runTask(s,t,n)}finally{r.cancelTask(s)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function Yr(){}const Kr={};function Qr(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Xr(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Jr(e){e._nesting--,Qr(e)}class es{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xr,this.onMicrotaskEmpty=new xr,this.onStable=new xr,this.onError=new xr}run(e){return e()}runGuarded(e){return e()}runOutsideAngular(e){return e()}runTask(e){return e()}}const ts=(()=>(class{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Zr.assertNotInAngularZone(),Gr(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Gr(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let i=-1;t&&t>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==i),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}))(),ns=(()=>{class e{constructor(){this._applications=new Map,ss.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return ss.findTestabilityInTree(this,e,t)}}return e.ctorParameters=(()=>[]),e})();class is{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let rs,ss=new is,os=function(e){return e instanceof Xt};const as=new Ae("AllowMultipleToken");class ls{constructor(e,t){this.name=e,this.token=t}}function hs(e,t,n=[]){const i=`Platform: ${t}`,r=new Ae(i);return(t=[])=>{let s=us();if(!s||s.injector.get(as,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{const e=n.concat(t).concat({provide:r,useValue:!0});!function(e){if(rs&&!rs.destroyed&&!rs.injector.get(as,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");rs=e.get(cs);const t=e.get(Dr,null);t&&t.forEach(e=>e())}(Pe.create({providers:e,name:i}))}return function(e){const t=us();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function us(){return rs&&!rs.destroyed?rs:null}const cs=(()=>(class{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n="noop"===(r=t?t.ngZone:void 0)?new es:("zone.js"===r?void 0:r)||new Zr({enableLongStackTrace:ot()}),i=[{provide:Zr,useValue:n}];var r;return n.run(()=>{const t=Pe.create({providers:i,parent:this.injector,name:e.moduleType.name}),r=e.create(t),s=r.injector.get(it,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.onDestroy(()=>fs(this._modules,r)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{s.handleError(e)}})),function(e,t,n){try{const r=n();return Mt(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(s,n,()=>{const e=r.injector.get(kr);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,t=[]){const n=ds({},t);return function(e,t,n){return e.get(Lr).createCompiler([t]).compileModuleAsync(n)}(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(ps);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${we(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}))();function ds(e,t){return Array.isArray(t)?t.reduce(ds,e):Object.assign({},e,t)}const ps=(()=>{class e{constructor(e,t,n,i,r,s){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ot(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new _(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),a=new _(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Zr.assertNotInAngularZone(),Gr(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Zr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=Q(o,a.pipe(e=>X()(re(oe)(e))))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof Wt?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const i=os(n)?null:this._injector.get(Jt),r=n.create(Pe.NULL,[],t||n.selector,i);r.onDestroy(()=>{this._unloadComponent(r)});const s=r.injector.get(ts,null);return s&&r.injector.get(ns).registerApplication(r.location.nativeElement,s),this._loadComponent(r),ot()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");const t=e._tickScope();try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1,qr(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;fs(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Or,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),fs(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e._tickScope=Ur("ApplicationRef#tick()"),e})();function fs(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ms{constructor(e,t){this.name=e,this.callback=t}}class gs{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof vs&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class vs extends gs{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return function e(t,n,i){t.childNodes.forEach(t=>{t instanceof vs&&(n(t)&&i.push(t),e(t,n,i))})}(this,e,t),t}queryAllNodes(e){const t=[];return function e(t,n,i){t instanceof vs&&t.childNodes.forEach(t=>{n(t)&&i.push(t),t instanceof vs&&e(t,n,i)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof vs)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}const ys=new Map,ws=function(e){return ys.get(e)||null};function _s(e){ys.set(e.nativeNode,e)}const bs=hs(null,"core",[{provide:Ar,useValue:"unknown"},{provide:cs,deps:[Pe]},{provide:ns,deps:[]},{provide:Nr,deps:[]}]),xs=new Ae("LocaleId");function Cs(){return Tn}function Ss(){return In}function ks(e){return e||"en-US"}function Es(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}const Ts=(()=>(class{constructor(e){}}))();function Is(e,t,n,i,r,s){e|=1;const{matchedQueries:o,references:a,matchedQueryIds:l}=hi(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:o,matchedQueryIds:l,references:a,ngContentIndex:n,childCount:i,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:s?pi(s):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:r||Un},provider:null,text:null,query:null,ngContent:null}}function Ds(e,t,n,i,r,s,o=[],a,l,h,u,c){h||(h=Un);const{matchedQueries:d,references:p,matchedQueryIds:f}=hi(n);let m=null,g=null;s&&([m,g]=_i(s)),a=a||[];const v=new Array(a.length);for(let _=0;_<a.length;_++){const[e,t,n]=a[_],[i,r]=_i(t);let s=void 0,o=void 0;switch(15&e){case 4:o=n;break;case 1:case 8:s=n}v[_]={flags:e,ns:i,name:r,nonMinifiedName:r,securityContext:s,suffix:o}}l=l||[];const y=new Array(l.length);for(let _=0;_<l.length;_++){const[e,t]=l[_];y[_]={type:0,target:e,eventName:t,propName:null}}const w=(o=o||[]).map(([e,t])=>{const[n,i]=_i(e);return[n,i,t]});return c=function(e){if(e&&e.id===Gn){const t=null!=e.encapsulation&&e.encapsulation!==Xe.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${Kn++}`:Zn}return e&&e.id===Zn&&(e=null),e||null}(c),u&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:f,references:p,ngContentIndex:i,childCount:r,bindings:v,bindingFlags:bi(v),outputs:y,element:{ns:m,name:g,attrs:w,template:null,componentProvider:null,componentView:u||null,componentRendererType:c,publicProviders:null,allProviders:null,handleEvent:h||Un},provider:null,text:null,query:null,ngContent:null}}function As(e,t,n){const i=n.element,r=e.root.selectorOrNode,s=e.renderer;let o;if(e.parent||!r){o=i.name?s.createElement(i.name,i.ns):s.createComment("");const r=ci(e,t,n);r&&s.appendChild(r,o)}else o=s.selectRootElement(r,!!i.componentRendererType&&i.componentRendererType.encapsulation===Xe.ShadowDom);if(i.attrs)for(let a=0;a<i.attrs.length;a++){const[e,t,n]=i.attrs[a];s.setAttribute(o,t,n,e)}return o}function Os(e,t,n,i){for(let o=0;o<n.outputs.length;o++){const a=n.outputs[o],l=Ns(e,n.nodeIndex,(s=a.eventName,(r=a.target)?`${r}:${s}`:s));let h=a.target,u=e;"component"===a.target&&(h=null,u=t);const c=u.renderer.listen(h||i,a.eventName,l);e.disposables[n.outputIndex+o]=c}var r,s}function Ns(e,t,n){return i=>ni(e,t,n,i)}function Fs(e,t,n,i){if(!Xn(e,t,n,i))return!1;const r=t.bindings[n],s=Ln(e,t.nodeIndex),o=s.renderElement,a=r.name;switch(15&r.flags){case 1:!function(e,t,n,i,r,s){const o=t.securityContext;let a=o?e.root.sanitizer.sanitize(o,s):s;a=null!=a?a.toString():null;const l=e.renderer;null!=s?l.setAttribute(n,r,a,i):l.removeAttribute(n,r,i)}(e,r,o,r.ns,a,i);break;case 2:!function(e,t,n,i){const r=e.renderer;i?r.addClass(t,n):r.removeClass(t,n)}(e,o,a,i);break;case 4:!function(e,t,n,i,r){let s=e.root.sanitizer.sanitize(It.STYLE,r);if(null!=s){s=s.toString();const e=t.suffix;null!=e&&(s+=e)}else s=null;const o=e.renderer;null!=s?o.setStyle(n,i,s):o.removeStyle(n,i)}(e,r,o,a,i);break;case 8:!function(e,t,n,i,r){const s=t.securityContext;let o=s?e.root.sanitizer.sanitize(s,r):r;e.renderer.setProperty(n,i,o)}(33554432&t.flags&&32&r.flags?s.componentView:e,r,o,a,i)}return!0}function Ms(e,t,n){let i=[];for(let r in n)i.push({propName:r,bindingType:n[r]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:li(t),bindings:i},ngContent:null}}function Ps(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&ai(e);){let n=e.parentNodeDef;e=e.parent;const i=n.nodeIndex+n.childCount;for(let r=0;r<=i;r++){const i=e.def.nodes[r];67108864&i.flags&&536870912&i.flags&&(i.query.filterId&t)===i.query.filterId&&$n(e,r).setDirty(),!(1&i.flags&&r+i.childCount<n.nodeIndex)&&67108864&i.childFlags&&536870912&i.childFlags||(r+=i.childCount)}}if(134217728&e.def.nodeFlags)for(let n=0;n<e.def.nodes.length;n++){const t=e.def.nodes[n];134217728&t.flags&&536870912&t.flags&&$n(e,n).setDirty(),n+=t.childCount}}function Rs(e,t){const n=$n(e,t.nodeIndex);if(!n.dirty)return;let i,r=void 0;if(67108864&t.flags){const n=t.parent.parent;r=Vs(e,n.nodeIndex,n.nodeIndex+n.childCount,t.query,[]),i=Bn(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(r=Vs(e,0,e.def.nodes.length-1,t.query,[]),i=e.component);n.reset(r);const s=t.query.bindings;let o=!1;for(let a=0;a<s.length;a++){const e=s[a];let t;switch(e.bindingType){case 0:t=n.first;break;case 1:t=n,o=!0}i[e.propName]=t}o&&n.notifyOnChanges()}function Vs(e,t,n,i,r){for(let s=t;s<=n;s++){const t=e.def.nodes[s],n=t.matchedQueries[i.id];if(null!=n&&r.push(zs(e,t,n)),1&t.flags&&t.element.template&&(t.element.template.nodeMatchedQueries&i.filterId)===i.filterId){const n=Ln(e,s);if((t.childMatchedQueries&i.filterId)===i.filterId&&(Vs(e,s+1,s+t.childCount,i,r),s+=t.childCount),16777216&t.flags){const e=n.viewContainer._embeddedViews;for(let t=0;t<e.length;t++){const s=e[t],o=ii(s);o&&o===n&&Vs(s,0,s.def.nodes.length-1,i,r)}}const o=n.template._projectedViews;if(o)for(let e=0;e<o.length;e++){const t=o[e];Vs(t,0,t.def.nodes.length-1,i,r)}}(t.childMatchedQueries&i.filterId)!==i.filterId&&(s+=t.childCount)}return r}function zs(e,t,n){if(null!=n)switch(n){case 1:return Ln(e,t.nodeIndex).renderElement;case 0:return new nn(Ln(e,t.nodeIndex).renderElement);case 2:return Ln(e,t.nodeIndex).template;case 3:return Ln(e,t.nodeIndex).viewContainer;case 4:return Bn(e,t.nodeIndex).instance}}function Ls(e,t){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function Bs(e,t,n){const i=ci(e,t,n);i&&gi(e,n.ngContent.index,1,i,null,void 0)}function Hs(e,t){const n=Object.keys(t),i=n.length,r=new Array(i);for(let s=0;s<i;s++){const e=n[s];r[t[e]]=e}return function(e,t,n){const i=new Array(n.length);for(let r=0;r<n.length;r++){const e=n[r];i[r]={flags:8,name:e,ns:null,nonMinifiedName:e,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:64,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:i,bindingFlags:bi(i),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}(0,e,r)}function $s(e,t,n){const i=new Array(n.length-1);for(let r=1;r<n.length;r++)i[r-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[r]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:i,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function js(e,t,n){let i;const r=e.renderer;i=r.createText(n.text.prefix);const s=ci(e,t,n);return s&&r.appendChild(s,i),{renderText:i}}function Us(e,t){return(null!=e?e.toString():"")+t.suffix}function qs(e,t,n,i){let r=0,s=0,o=0,a=0,l=0,h=null,u=null,c=!1,d=!1,p=null;for(let f=0;f<t.length;f++){const e=t[f];if(e.nodeIndex=f,e.parent=h,e.bindingIndex=r,e.outputIndex=s,e.renderParent=u,o|=e.flags,l|=e.matchedQueryIds,e.element){const t=e.element;t.publicProviders=h?h.element.publicProviders:Object.create(null),t.allProviders=t.publicProviders,c=!1,d=!1,e.element.template&&(l|=e.element.template.nodeMatchedQueries)}if(Gs(h,e,t.length),r+=e.bindings.length,s+=e.outputs.length,!u&&3&e.flags&&(p=e),20224&e.flags){c||(c=!0,h.element.publicProviders=Object.create(h.element.publicProviders),h.element.allProviders=h.element.publicProviders);const t=0!=(32768&e.flags);0==(8192&e.flags)||t?h.element.publicProviders[Wn(e.provider.token)]=e:(d||(d=!0,h.element.allProviders=Object.create(h.element.publicProviders)),h.element.allProviders[Wn(e.provider.token)]=e),t&&(h.element.componentProvider=e)}if(h?(h.childFlags|=e.flags,h.directChildFlags|=e.flags,h.childMatchedQueries|=e.matchedQueryIds,e.element&&e.element.template&&(h.childMatchedQueries|=e.element.template.nodeMatchedQueries)):a|=e.flags,e.childCount>0)h=e,Ws(e)||(u=e);else for(;h&&f===h.nodeIndex+h.childCount;){const e=h.parent;e&&(e.childFlags|=h.childFlags,e.childMatchedQueries|=h.childMatchedQueries),u=(h=e)&&Ws(h)?h.renderParent:h}}return{factory:null,nodeFlags:o,rootNodeFlags:a,nodeMatchedQueries:l,flags:e,nodes:t,updateDirectives:n||Un,updateRenderer:i||Un,handleEvent:(e,n,i,r)=>t[n].element.handleEvent(e,i,r),bindingCount:r,outputCount:s,lastRenderRootNode:p}}function Ws(e){return 0!=(1&e.flags)&&null===e.element.name}function Gs(e,t,n){const i=t.element&&t.element.template;if(i){if(!i.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(i.lastRenderRootNode&&16777216&i.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function Zs(e,t,n,i){const r=Qs(e.root,e.renderer,e,t,n);return Xs(r,e.component,i),Js(r),r}function Ys(e,t,n){const i=Qs(e,e.renderer,null,null,t);return Xs(i,n,n),Js(i),i}function Ks(e,t,n,i){const r=t.element.componentRendererType;let s;return s=r?e.root.rendererFactory.createRenderer(i,r):e.root.renderer,Qs(e.root,s,e,t.element.componentProvider,n)}function Qs(e,t,n,i,r){const s=new Array(r.nodes.length),o=r.outputCount?new Array(r.outputCount):null;return{def:r,parent:n,viewContainerParent:null,parentNodeDef:i,context:null,component:null,nodes:s,state:13,root:e,renderer:t,oldValues:new Array(r.bindingCount),disposables:o,initIndex:-1}}function Xs(e,t,n){e.component=t,e.context=n}function Js(e){let t;oi(e)&&(t=Ln(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,i=e.nodes;for(let r=0;r<n.nodes.length;r++){const s=n.nodes[r];let o;switch(jn.setCurrentNode(e,r),201347067&s.flags){case 1:const n=As(e,t,s);let a=void 0;if(33554432&s.flags){const t=pi(s.element.componentView);a=jn.createComponentView(e,s,t,n)}Os(e,a,s,n),o={renderElement:n,componentView:a,viewContainer:null,template:s.element.template?$i(e,s):void 0},16777216&s.flags&&(o.viewContainer=zi(e,s,o));break;case 2:o=js(e,t,s);break;case 512:case 1024:case 2048:case 256:(o=i[r])||4096&s.flags||(o={instance:lr(e,s)});break;case 16:o={instance:hr(e,s)};break;case 16384:(o=i[r])||(o={instance:ur(e,s)}),32768&s.flags&&Xs(Ln(e,s.parent.nodeIndex).componentView,o.instance,o.instance);break;case 32:case 64:case 128:o={value:void 0};break;case 67108864:case 134217728:o=new Cr;break;case 8:Bs(e,t,s),o=void 0}i[r]=o}lo(e,ao.CreateViewNodes),po(e,201326592,268435456,0)}function eo(e){io(e),jn.updateDirectives(e,1),ho(e,ao.CheckNoChanges),jn.updateRenderer(e,1),lo(e,ao.CheckNoChanges),e.state&=-97}function to(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Rn(e,0,256),io(e),jn.updateDirectives(e,0),ho(e,ao.CheckAndUpdate),po(e,67108864,536870912,0);let t=Rn(e,256,512);yr(e,2097152|(t?1048576:0)),jn.updateRenderer(e,0),lo(e,ao.CheckAndUpdate),po(e,134217728,536870912,0),yr(e,8388608|((t=Rn(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Rn(e,768,1024)}function no(e,t,n,i,r,s,o,a,l,h,u,c,d){return 0===n?function(e,t,n,i,r,s,o,a,l,h,u,c){switch(201347067&t.flags){case 1:return function(e,t,n,i,r,s,o,a,l,h,u,c){const d=t.bindings.length;let p=!1;return d>0&&Fs(e,t,0,n)&&(p=!0),d>1&&Fs(e,t,1,i)&&(p=!0),d>2&&Fs(e,t,2,r)&&(p=!0),d>3&&Fs(e,t,3,s)&&(p=!0),d>4&&Fs(e,t,4,o)&&(p=!0),d>5&&Fs(e,t,5,a)&&(p=!0),d>6&&Fs(e,t,6,l)&&(p=!0),d>7&&Fs(e,t,7,h)&&(p=!0),d>8&&Fs(e,t,8,u)&&(p=!0),d>9&&Fs(e,t,9,c)&&(p=!0),p}(e,t,n,i,r,s,o,a,l,h,u,c);case 2:return function(e,t,n,i,r,s,o,a,l,h,u,c){let d=!1;const p=t.bindings,f=p.length;if(f>0&&Xn(e,t,0,n)&&(d=!0),f>1&&Xn(e,t,1,i)&&(d=!0),f>2&&Xn(e,t,2,r)&&(d=!0),f>3&&Xn(e,t,3,s)&&(d=!0),f>4&&Xn(e,t,4,o)&&(d=!0),f>5&&Xn(e,t,5,a)&&(d=!0),f>6&&Xn(e,t,6,l)&&(d=!0),f>7&&Xn(e,t,7,h)&&(d=!0),f>8&&Xn(e,t,8,u)&&(d=!0),f>9&&Xn(e,t,9,c)&&(d=!0),d){let d=t.text.prefix;f>0&&(d+=Us(n,p[0])),f>1&&(d+=Us(i,p[1])),f>2&&(d+=Us(r,p[2])),f>3&&(d+=Us(s,p[3])),f>4&&(d+=Us(o,p[4])),f>5&&(d+=Us(a,p[5])),f>6&&(d+=Us(l,p[6])),f>7&&(d+=Us(h,p[7])),f>8&&(d+=Us(u,p[8])),f>9&&(d+=Us(c,p[9]));const m=zn(e,t.nodeIndex).renderText;e.renderer.setValue(m,d)}return d}(e,t,n,i,r,s,o,a,l,h,u,c);case 16384:return function(e,t,n,i,r,s,o,a,l,h,u,c){const d=Bn(e,t.nodeIndex),p=d.instance;let f=!1,m=void 0;const g=t.bindings.length;return g>0&&Qn(e,t,0,n)&&(f=!0,m=vr(e,d,t,0,n,m)),g>1&&Qn(e,t,1,i)&&(f=!0,m=vr(e,d,t,1,i,m)),g>2&&Qn(e,t,2,r)&&(f=!0,m=vr(e,d,t,2,r,m)),g>3&&Qn(e,t,3,s)&&(f=!0,m=vr(e,d,t,3,s,m)),g>4&&Qn(e,t,4,o)&&(f=!0,m=vr(e,d,t,4,o,m)),g>5&&Qn(e,t,5,a)&&(f=!0,m=vr(e,d,t,5,a,m)),g>6&&Qn(e,t,6,l)&&(f=!0,m=vr(e,d,t,6,l,m)),g>7&&Qn(e,t,7,h)&&(f=!0,m=vr(e,d,t,7,h,m)),g>8&&Qn(e,t,8,u)&&(f=!0,m=vr(e,d,t,8,u,m)),g>9&&Qn(e,t,9,c)&&(f=!0,m=vr(e,d,t,9,c,m)),m&&p.ngOnChanges(m),65536&t.flags&&Vn(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),f}(e,t,n,i,r,s,o,a,l,h,u,c);case 32:case 64:case 128:return function(e,t,n,i,r,s,o,a,l,h,u,c){const d=t.bindings;let p=!1;const f=d.length;if(f>0&&Xn(e,t,0,n)&&(p=!0),f>1&&Xn(e,t,1,i)&&(p=!0),f>2&&Xn(e,t,2,r)&&(p=!0),f>3&&Xn(e,t,3,s)&&(p=!0),f>4&&Xn(e,t,4,o)&&(p=!0),f>5&&Xn(e,t,5,a)&&(p=!0),f>6&&Xn(e,t,6,l)&&(p=!0),f>7&&Xn(e,t,7,h)&&(p=!0),f>8&&Xn(e,t,8,u)&&(p=!0),f>9&&Xn(e,t,9,c)&&(p=!0),p){const p=Hn(e,t.nodeIndex);let m;switch(201347067&t.flags){case 32:m=new Array(d.length),f>0&&(m[0]=n),f>1&&(m[1]=i),f>2&&(m[2]=r),f>3&&(m[3]=s),f>4&&(m[4]=o),f>5&&(m[5]=a),f>6&&(m[6]=l),f>7&&(m[7]=h),f>8&&(m[8]=u),f>9&&(m[9]=c);break;case 64:m={},f>0&&(m[d[0].name]=n),f>1&&(m[d[1].name]=i),f>2&&(m[d[2].name]=r),f>3&&(m[d[3].name]=s),f>4&&(m[d[4].name]=o),f>5&&(m[d[5].name]=a),f>6&&(m[d[6].name]=l),f>7&&(m[d[7].name]=h),f>8&&(m[d[8].name]=u),f>9&&(m[d[9].name]=c);break;case 128:const e=n;switch(f){case 1:m=e.transform(n);break;case 2:m=e.transform(i);break;case 3:m=e.transform(i,r);break;case 4:m=e.transform(i,r,s);break;case 5:m=e.transform(i,r,s,o);break;case 6:m=e.transform(i,r,s,o,a);break;case 7:m=e.transform(i,r,s,o,a,l);break;case 8:m=e.transform(i,r,s,o,a,l,h);break;case 9:m=e.transform(i,r,s,o,a,l,h,u);break;case 10:m=e.transform(i,r,s,o,a,l,h,u,c)}}p.value=m}return p}(e,t,n,i,r,s,o,a,l,h,u,c);default:throw"unreachable"}}(e,t,i,r,s,o,a,l,h,u,c,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let i=!1;for(let r=0;r<n.length;r++)Fs(e,t,r,n[r])&&(i=!0);return i}(e,t,n);case 2:return function(e,t,n){const i=t.bindings;let r=!1;for(let s=0;s<n.length;s++)Xn(e,t,s,n[s])&&(r=!0);if(r){let r="";for(let e=0;e<n.length;e++)r+=Us(n[e],i[e]);r=t.text.prefix+r;const s=zn(e,t.nodeIndex).renderText;e.renderer.setValue(s,r)}return r}(e,t,n);case 16384:return function(e,t,n){const i=Bn(e,t.nodeIndex),r=i.instance;let s=!1,o=void 0;for(let a=0;a<n.length;a++)Qn(e,t,a,n[a])&&(s=!0,o=vr(e,i,t,a,n[a],o));return o&&r.ngOnChanges(o),65536&t.flags&&Vn(e,256,t.nodeIndex)&&r.ngOnInit(),262144&t.flags&&r.ngDoCheck(),s}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const i=t.bindings;let r=!1;for(let s=0;s<n.length;s++)Xn(e,t,s,n[s])&&(r=!0);if(r){const r=Hn(e,t.nodeIndex);let s;switch(201347067&t.flags){case 32:s=n;break;case 64:s={};for(let t=0;t<n.length;t++)s[i[t].name]=n[t];break;case 128:const e=n[0],r=n.slice(1);s=e.transform(...r)}r.value=s}return r}(e,t,n);default:throw"unreachable"}}(e,t,i)}function io(e){const t=e.def;if(4&t.nodeFlags)for(let n=0;n<t.nodes.length;n++){const i=t.nodes[n];if(4&i.flags){const t=Ln(e,n).template._projectedViews;if(t)for(let n=0;n<t.length;n++){const i=t[n];i.state|=32,ti(i,e)}}else 0==(4&i.childFlags)&&(n+=i.childCount)}}function ro(e,t,n,i,r,s,o,a,l,h,u,c,d){return 0===n?function(e,t,n,i,r,s,o,a,l,h,u,c){const d=t.bindings.length;d>0&&Jn(e,t,0,n),d>1&&Jn(e,t,1,i),d>2&&Jn(e,t,2,r),d>3&&Jn(e,t,3,s),d>4&&Jn(e,t,4,o),d>5&&Jn(e,t,5,a),d>6&&Jn(e,t,6,l),d>7&&Jn(e,t,7,h),d>8&&Jn(e,t,8,u),d>9&&Jn(e,t,9,c)}(e,t,i,r,s,o,a,l,h,u,c,d):function(e,t,n){for(let i=0;i<n.length;i++)Jn(e,t,i,n[i])}(e,t,i),!1}function so(e,t){if($n(e,t.nodeIndex).dirty)throw Fn(jn.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,0!=(1&e.state))}function oo(e){if(!(128&e.state)){if(ho(e,ao.Destroy),lo(e,ao.Destroy),yr(e,131072),e.disposables)for(let t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(!(16&e.state))return;const t=ii(e);if(t){const n=t.template._projectedViews;n&&(Fi(n,n.indexOf(e)),jn.dirtyParentQueries(e))}}(e),e.renderer.destroyNode&&function(e){const t=e.def.nodes.length;for(let n=0;n<t;n++){const t=e.def.nodes[n];1&t.flags?e.renderer.destroyNode(Ln(e,n).renderElement):2&t.flags?e.renderer.destroyNode(zn(e,n).renderText):(67108864&t.flags||134217728&t.flags)&&$n(e,n).destroy()}}(e),oi(e)&&e.renderer.destroy(),e.state|=128}}const ao=function(){var e={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return e[e.CreateViewNodes]="CreateViewNodes",e[e.CheckNoChanges]="CheckNoChanges",e[e.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",e[e.Destroy]="Destroy",e}();function lo(e,t){const n=e.def;if(33554432&n.nodeFlags)for(let i=0;i<n.nodes.length;i++){const r=n.nodes[i];33554432&r.flags?uo(Ln(e,i).componentView,t):0==(33554432&r.childFlags)&&(i+=r.childCount)}}function ho(e,t){const n=e.def;if(16777216&n.nodeFlags)for(let i=0;i<n.nodes.length;i++){const r=n.nodes[i];if(16777216&r.flags){const n=Ln(e,i).viewContainer._embeddedViews;for(let e=0;e<n.length;e++)uo(n[e],t)}else 0==(16777216&r.childFlags)&&(i+=r.childCount)}}function uo(e,t){const n=e.state;switch(t){case ao.CheckNoChanges:0==(128&n)&&(12==(12&n)?eo(e):64&n&&co(e,ao.CheckNoChangesProjectedViews));break;case ao.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?eo(e):64&n&&co(e,t));break;case ao.CheckAndUpdate:0==(128&n)&&(12==(12&n)?to(e):64&n&&co(e,ao.CheckAndUpdateProjectedViews));break;case ao.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?to(e):64&n&&co(e,t));break;case ao.Destroy:oo(e);break;case ao.CreateViewNodes:Js(e)}}function co(e,t){ho(e,t),lo(e,t)}function po(e,t,n,i){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const r=e.def.nodes.length;for(let s=0;s<r;s++){const r=e.def.nodes[s];if(r.flags&t&&r.flags&n)switch(jn.setCurrentNode(e,r.nodeIndex),i){case 0:Rs(e,r);break;case 1:so(e,r)}r.childFlags&t&&r.childFlags&n||(s+=r.childCount)}}let fo=!1;function mo(e,t,n,i,r,s){const o=r.injector.get(on);return Ys(vo(e,r,o,t,n),i,s)}function go(e,t,n,i,r,s){const o=r.injector.get(on),a=vo(e,r,new Yo(o),t,n),l=To(i);return Go(Fo.create,Ys,null,[a,l,s])}function vo(e,t,n,i,r){const s=t.injector.get(Dt),o=t.injector.get(it),a=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:i,selectorOrNode:r,sanitizer:s,rendererFactory:n,renderer:a,errorHandler:o}}function yo(e,t,n,i){const r=To(n);return Go(Fo.create,Zs,null,[e,t,r,i])}function wo(e,t,n,i){return n=Co.get(t.element.componentProvider.provider.token)||To(n),Go(Fo.create,Ks,null,[e,t,n,i])}function _o(e,t,n,i){return Yi(e,t,n,function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;return 0===bo.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(e=>{const i=bo.get(e.token);3840&e.flags&&i&&(t=!0,n=n||i.deprecatedBehavior)}),e.modules.forEach(e=>{xo.forEach((i,r)=>{ve(r).providedIn===e&&(t=!0,n=n||i.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e);return t?(function(e){for(let t=0;t<e.providers.length;t++){const i=e.providers[t];n&&(i.flags|=4096);const r=bo.get(i.token);r&&(i.flags=-3841&i.flags|r.flags,i.deps=ui(r.deps),i.value=r.value)}if(xo.size>0){let t=new Set(e.modules);xo.forEach((i,r)=>{if(t.has(ve(r).providedIn)){let t={token:r,flags:i.flags|(n?4096:0),deps:ui(i.deps),value:i.value,index:e.providers.length};e.providers.push(t),e.providersByKey[Wn(r)]=t}})}}(e=e.factory(()=>Un)),e):e}(i))}const bo=new Map,xo=new Map,Co=new Map;function So(e){let t;bo.set(e.token,e),"function"==typeof e.token&&(t=ve(e.token))&&"function"==typeof t.providedIn&&xo.set(e.token,e)}function ko(e,t){const n=pi(t.viewDefFactory),i=pi(n.nodes[0].element.componentView);Co.set(e,i)}function Eo(){bo.clear(),xo.clear(),Co.clear()}function To(e){if(0===bo.size)return e;const t=function(e){const t=[];let n=null;for(let i=0;i<e.nodes.length;i++){const r=e.nodes[i];1&r.flags&&(n=r),n&&3840&r.flags&&bo.has(r.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(()=>Un);for(let i=0;i<t.length;i++)n(e,t[i]);return e;function n(e,t){for(let n=t+1;n<e.nodes.length;n++){const t=e.nodes[n];if(1&t.flags)return;if(3840&t.flags){const e=t.provider,n=bo.get(e.token);n&&(t.flags=-3841&t.flags|n.flags,e.deps=ui(n.deps),e.value=n.value)}}}}function Io(e,t,n,i,r,s,o,a,l,h,u,c,d){const p=e.def.nodes[t];return no(e,p,n,i,r,s,o,a,l,h,u,c,d),224&p.flags?Hn(e,t).value:void 0}function Do(e,t,n,i,r,s,o,a,l,h,u,c,d){const p=e.def.nodes[t];return ro(e,p,n,i,r,s,o,a,l,h,u,c,d),224&p.flags?Hn(e,t).value:void 0}function Ao(e){return Go(Fo.detectChanges,to,null,[e])}function Oo(e){return Go(Fo.checkNoChanges,eo,null,[e])}function No(e){return Go(Fo.destroy,oo,null,[e])}const Fo=function(){var e={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return e[e.create]="create",e[e.detectChanges]="detectChanges",e[e.checkNoChanges]="checkNoChanges",e[e.destroy]="destroy",e[e.handleEvent]="handleEvent",e}();let Mo,Po,Ro;function Vo(e,t){Po=e,Ro=t}function zo(e,t,n,i){return Vo(e,t),Go(Fo.handleEvent,e.def.handleEvent,null,[e,t,n,i])}function Lo(e,t){if(128&e.state)throw Pn(Fo[Mo]);return Vo(e,jo(e,0)),e.def.updateDirectives(function(e,n,i,...r){const s=e.def.nodes[n];return 0===t?Ho(e,s,i,r):$o(e,s,i,r),16384&s.flags&&Vo(e,jo(e,n)),224&s.flags?Hn(e,s.nodeIndex).value:void 0},e)}function Bo(e,t){if(128&e.state)throw Pn(Fo[Mo]);return Vo(e,Uo(e,0)),e.def.updateRenderer(function(e,n,i,...r){const s=e.def.nodes[n];return 0===t?Ho(e,s,i,r):$o(e,s,i,r),3&s.flags&&Vo(e,Uo(e,n)),224&s.flags?Hn(e,s.nodeIndex).value:void 0},e)}function Ho(e,t,n,i){if(no(e,t,n,...i)){const o=1===n?i[0]:i;if(16384&t.flags){const n={};for(let e=0;e<t.bindings.length;e++){const i=t.bindings[e],a=o[e];8&i.flags&&(n[(r=i.nonMinifiedName,s=void 0,s=r.replace(/[$@]/g,"_"),`ng-reflect-${r=s.replace(Nt,(...e)=>"-"+e[1].toLowerCase())}`)]=Ft(a))}const i=t.parent,a=Ln(e,i.nodeIndex).renderElement;if(i.element.name)for(let t in n){const i=n[t];null!=i?e.renderer.setAttribute(a,t,i):e.renderer.removeAttribute(a,t)}else e.renderer.setValue(a,`bindings=${JSON.stringify(n,null,2)}`)}}var r,s}function $o(e,t,n,i){ro(e,t,n,...i)}function jo(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(16384&t.flags&&t.bindings&&t.bindings.length)return n}return null}function Uo(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(3&t.flags&&t.bindings&&t.bindings.length)return n}return null}class qo{constructor(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];let n=this.nodeDef,i=e;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&i;)n=ri(i),i=i.parent;this.elDef=n,this.elView=i}get elOrCompView(){return Ln(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return Ui(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const e=[];if(this.elDef)for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e}get references(){const e={};if(this.elDef){Wo(this.elView,this.elDef,e);for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&Wo(this.elView,n,e),t+=n.childCount}}return e}get componentRenderElement(){const e=function(e){for(;e&&!oi(e);)e=e.parent;return e.parent?Ln(e.parent,ri(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?si(this.view,this.nodeDef):si(this.elView,this.elDef)}logError(e,...t){let n,i;2&this.nodeDef.flags?(n=this.view.def,i=this.nodeDef.nodeIndex):(n=this.elView.def,i=this.elDef.nodeIndex);const r=function(e,t){let n=-1;for(let i=0;i<=t;i++)3&e.nodes[i].flags&&n++;return n}(n,i);let s=-1;n.factory(()=>++s===r?e.error.bind(e,...t):Un),s<r&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error(...t))}}function Wo(e,t,n){for(let i in t.references)n[i]=zs(e,t,t.references[i])}function Go(e,t,n,i){const r=Mo,s=Po,o=Ro;try{Mo=e;const l=t.apply(n,i);return Po=s,Ro=o,Mo=r,l}catch(a){if(et(a)||!Po)throw a;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),Mn(e,t),e}(a,Zo())}}function Zo(){return Po?new qo(Po,Ro):null}class Yo{constructor(e){this.delegate=e}createRenderer(e,t){return new Ko(this.delegate.createRenderer(e,t))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class Ko{constructor(e){this.delegate=e,this.debugContextFactory=Zo,this.data=this.delegate.data}createDebugContext(e){return this.debugContextFactory(e)}destroyNode(e){!function(e){ys.delete(e.nativeNode)}(ws(e)),this.delegate.destroyNode&&this.delegate.destroyNode(e)}destroy(){this.delegate.destroy()}createElement(e,t){const n=this.delegate.createElement(e,t),i=this.createDebugContext(n);if(i){const t=new vs(n,null,i);t.name=e,_s(t)}return n}createComment(e){const t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&_s(new gs(t,null,n)),t}createText(e){const t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&_s(new gs(t,null,n)),t}appendChild(e,t){const n=ws(e),i=ws(t);n&&i&&n instanceof vs&&n.addChild(i),this.delegate.appendChild(e,t)}insertBefore(e,t,n){const i=ws(e),r=ws(t),s=ws(n);i&&r&&i instanceof vs&&i.insertBefore(s,r),this.delegate.insertBefore(e,t,n)}removeChild(e,t){const n=ws(e),i=ws(t);n&&i&&n instanceof vs&&n.removeChild(i),this.delegate.removeChild(e,t)}selectRootElement(e,t){const n=this.delegate.selectRootElement(e,t),i=Zo();return i&&_s(new vs(n,null,i)),n}setAttribute(e,t,n,i){const r=ws(e);r&&r instanceof vs&&(r.attributes[i?i+":"+t:t]=n),this.delegate.setAttribute(e,t,n,i)}removeAttribute(e,t,n){const i=ws(e);i&&i instanceof vs&&(i.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)}addClass(e,t){const n=ws(e);n&&n instanceof vs&&(n.classes[t]=!0),this.delegate.addClass(e,t)}removeClass(e,t){const n=ws(e);n&&n instanceof vs&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}setStyle(e,t,n,i){const r=ws(e);r&&r instanceof vs&&(r.styles[t]=n),this.delegate.setStyle(e,t,n,i)}removeStyle(e,t,n){const i=ws(e);i&&i instanceof vs&&(i.styles[t]=null),this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){const i=ws(e);i&&i instanceof vs&&(i.properties[t]=n),this.delegate.setProperty(e,t,n)}listen(e,t,n){if("string"!=typeof e){const i=ws(e);i&&i.listeners.push(new ms(t,n))}return this.delegate.listen(e,t,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setValue(e,t){return this.delegate.setValue(e,t)}}function Qo(e,t,n){return new Xo(e,t,n)}class Xo extends en{constructor(e,t,n){super(),this.moduleType=e,this._bootstrapComponents=t,this._ngModuleDefFactory=n}create(e){!function(){if(fo)return;fo=!0;const e=ot()?{setCurrentNode:Vo,createRootView:go,createEmbeddedView:yo,createComponentView:wo,createNgModuleRef:_o,overrideProvider:So,overrideComponentView:ko,clearOverrides:Eo,checkAndUpdateView:Ao,checkNoChangesView:Oo,destroyView:No,createDebugContext:(e,t)=>new qo(e,t),handleEvent:zo,updateDirectives:Lo,updateRenderer:Bo}:{setCurrentNode:()=>{},createRootView:mo,createEmbeddedView:Zs,createComponentView:Ks,createNgModuleRef:Yi,overrideProvider:Un,overrideComponentView:Un,clearOverrides:Un,checkAndUpdateView:to,checkNoChangesView:eo,destroyView:oo,createDebugContext:(e,t)=>new qo(e,t),handleEvent:(e,t,n,i)=>e.def.handleEvent(e,t,n,i),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?Io:Do,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?Io:Do,e)};jn.setCurrentNode=e.setCurrentNode,jn.createRootView=e.createRootView,jn.createEmbeddedView=e.createEmbeddedView,jn.createComponentView=e.createComponentView,jn.createNgModuleRef=e.createNgModuleRef,jn.overrideProvider=e.overrideProvider,jn.overrideComponentView=e.overrideComponentView,jn.clearOverrides=e.clearOverrides,jn.checkAndUpdateView=e.checkAndUpdateView,jn.checkNoChangesView=e.checkNoChangesView,jn.destroyView=e.destroyView,jn.resolveDep=mr,jn.createDebugContext=e.createDebugContext,jn.handleEvent=e.handleEvent,jn.updateDirectives=e.updateDirectives,jn.updateRenderer=e.updateRenderer,jn.dirtyParentQueries=Ps}();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),i={};for(const r in e.providersByKey)i[r]=e.providersByKey[r];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:i}}(pi(this._ngModuleDefFactory));return jn.createNgModuleRef(this.moduleType,e||Pe.NULL,this._bootstrapComponents,t)}}class Jo{}var ea=n("Sy1n");function ta(e,t,n,i){return r(n)&&(i=n,n=void 0),i?ta(e,t,n).pipe(H(e=>h(e)?i(...e):i(e))):new _(i=>{!function e(t,n,i,r,s){let o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){const e=t;t.addEventListener(n,i,s),o=(()=>e.removeEventListener(n,i,s))}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){const e=t;t.on(n,i),o=(()=>e.off(n,i))}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){const e=t;t.addListener(n,i),o=(()=>e.removeListener(n,i))}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,a=t.length;o<a;o++)e(t[o],n,i,r,s)}r.add(o)}(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function na(e){return e.ownerDocument||e.document||e}var ia=e=>na(e).defaultView,ra=e=>na(e).documentElement;let sa=0;function oa(){if(!sa&&"undefined"!=typeof document){const e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),sa=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return sa}function aa(e){const t=ia(e),n=ra(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=oa()),i}var la=e=>{let t=e.offsetParent;for(;t&&"static"===t.style.position;)t=t.offsetParent;return t||ra(e)},ha=e=>{let t=e.getBoundingClientRect(),{left:n,top:i}=t;return t.height||t.width||(t=(e=>{const{display:t,left:n,position:i}=e.style;e.style.display="",e.style.left="-10000px",e.style.position="absolute";const r=e.getBoundingClientRect();return e.style.display=t,e.style.left=n,e.style.position=i,r})(e)),{top:i,left:n,height:t.height,width:t.width}},ua=(e,t)=>{const n=[];let i=e.parentNode;for(;i&&(n.push(i),i!==t);)i=i.parentNode;return n};function ca(e){const t=ra(e),n=ia(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var da=e=>e===(e.ownerDocument||{}).body?ca(e):{x:e.scrollLeft,y:e.scrollTop};const pa=function(e,t,n){let i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},fa=function({offset:e,size:t,anchorSize:n,viewPortSize:i,anchorAlignPoint:r,elementAlignPoint:s,margin:o}){let a=0;const l=2*o;if(s!==r&&"center"!==s&&"middle"!==s&&"center"!==r&&"middle"!==r){const s="top"===r||"left"===r;e<0&&s?e+(a=t+n+l)+t>i&&(a=0):e>=0&&!s&&(e+t>i&&(a+=-(n+t+l)),e+a<0&&(a=0))}return a};var ma=e=>{const t=[];let n=e.parentNode.firstElementChild;for(;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t};class ga extends p{constructor(e,t){super()}schedule(e,t=0){return this}}class va extends ga{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}const ya=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=(()=>Date.now()),e})();class wa extends ya{constructor(e,t=ya.now){super(e,()=>wa.delegate&&wa.delegate!==this?wa.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return wa.delegate&&wa.delegate!==this?wa.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}const _a=new wa(va);class ba{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new xa(e,this.durationSelector))}}class xa extends B{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:i}=this;n=i(e)}catch(t){return this.destination.error(t)}const i=L(this,n);!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:n}=this;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))}notifyNext(e,t,n,i){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Ca(e){return!h(e)&&e-parseFloat(e)+1>=0}function Sa(e){const{index:t,period:n,subscriber:i}=e;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function ka(e,t=_a){return n=(()=>(function(e=0,t,n){let i=-1;return Ca(t)?i=Number(t)<1?1:Number(t):I(t)&&(n=t),I(n)||(n=_a),new _(t=>{const r=Ca(e)?e:+e-n.now();return n.schedule(Sa,r,{index:0,period:i,subscriber:t})})})(e,t)),function(e){return e.lift(new ba(n))};var n}const Ea=()=>"undefined"!=typeof document,Ta=(e,t,n=!0)=>!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue),Ia=(e,t,n=!0)=>e.some(e=>Ta(e,t,n)),Da=e=>e&&e.observers.length>0,Aa=()=>{let e="";for(let t=0;t<32;t++){const n=16*Math.random()|0;8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=(12===t?4:16===t?3&n|8:n).toString(16)}return e},Oa=(()=>(class{}))(),Na=(()=>(class{constructor(e,t,n){this.element=e,this.ngZone=t,this.renderer=n,this.events={}}ngOnInit(){if(!this.element||!this.element.nativeElement)return;const e=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular(()=>{for(let t in e)e.hasOwnProperty(t)&&this.subscriptions.push(this.renderer.listen(this.element.nativeElement,t,this.scope?e[t].bind(this.scope):e[t]))})}ngOnDestroy(){if(this.subscriptions){for(let e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}}}))(),Fa=(()=>(class{}))(),Ma=(()=>(class{constructor(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}schedule(e,t){this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular(()=>{this.subscription=q(this.resolvedPromise).subscribe(this.flush)})}isScheduled(e){return Boolean(this.scheduled.find(t=>t.instance===e))}cancel(e){const t=this.scheduled,n=t.length;for(let i=0;i<n;i++)if(t[i].instance===e)return t.splice(i,1),void(t.length||this.unsubscribe())}ngOnDestroy(){this.unsubscribe()}unsubscribe(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}flush(){this.scheduled.forEach(e=>{e.method.call(e.instance)}),this.scheduled=[],this.unsubscribe()}}))(),Pa=(()=>(class{constructor(e,t,n,i){this.resizeBatchService=e,this.element=t,this.zone=n,this.renderer=i,this.rateLimit=10,this.resize=new xr,this.source=new E,this.state=0,this.acceptedSize=!1}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{const e=this.scroll.bind(this),t=this.renderer.listen(this.expand.nativeElement,"scroll",e),n=this.renderer.listen(this.shrink.nativeElement,"scroll",e);this.detachScrollHandlers=(()=>{t(),n()})})}ngAfterViewChecked(){"undefined"!=typeof document&&(2!==this.state?0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init)):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.scroll))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.detachScrollHandlers&&this.detachScrollHandlers(),this.resizeBatchService.cancel(this)}acceptSize(e=this.measure()){this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0}scroll(e){if(!this.parentElement)return;const{width:t,height:n}=this.measure();t===this.lastWidth&&n===this.lastHeight||(this.lastWidth=t,this.lastHeight=n,this.acceptedSize=!1,this.zone.runOutsideAngular(()=>{this.source.next()}),this.reset())}init(){const e=1e3/(this.rateLimit||10);this.subscription=this.source.asObservable().pipe(ka(e)).subscribe(()=>{this.acceptedSize||this.resize.emit()}),this.parentElement=this.element.nativeElement.parentElement,"static"===((e,t)=>getComputedStyle(e,null).getPropertyValue("position"))(this.parentElement)&&(this.parentElement.style.position="relative"),this.reset(),this.lastWidth=this.parentElement.offsetWidth,this.lastHeight=this.parentElement.offsetHeight,this.state=2}reset(){const e=this.expandChild.nativeElement;e.style.width=1e5+"px",e.style.height=1e5+"px";const t=this.expand.nativeElement;t.scrollLeft=1e5,t.scrollTop=1e5;const n=this.shrink.nativeElement;n.scrollLeft=1e5,n.scrollTop=1e5}measure(){let e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}}}))(),Ra=(()=>(class{}))();class Va{}var za=function(e){return e[e.Alt=18]="Alt",e[e.ArrowDown=40]="ArrowDown",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowUp=38]="ArrowUp",e[e.Backspace=8]="Backspace",e[e.Control=17]="Control",e[e.Delete=46]="Delete",e[e.End=35]="End",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F10=121]="F10",e[e.Home=36]="Home",e[e.Insert=45]="Insert",e[e.PageDown=34]="PageDown",e[e.PageUp=33]="PageUp",e[e.Shift=16]="Shift",e[e.Space=32]="Space",e[e.Tab=9]="Tab",e[e.NumpadDecimal=110]="NumpadDecimal",e}({});class La{}class Ba{}const Ha="*";function $a(e,t=null){return{type:4,styles:t,timings:e}}function ja(e,t=null){return{type:2,steps:e,options:t}}function Ua(e){return{type:6,styles:e,offset:null}}function qa(e){Promise.resolve(null).then(e)}class Wa{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){qa(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){}getPosition(){return 0}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class Ga{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,i=0;const r=this.players.length;0==r?qa(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==r&&this._onFinish()}),e.onDestroy(()=>{++n==r&&this._onDestroy()}),e.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let e=0;return this.players.forEach(t=>{const n=t.getPosition();e=Math.min(n,e)}),e}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}const Za="!",Ya=(e,t)=>e||{height:0,left:t.left,top:t.top,width:0},Ka=()=>"undefined"!=typeof window,Qa=/auto|scroll/,Xa=e=>(e=>`${e.style.overflow}${e.style.overflowX}${e.style.overflowY}`)(e)||(e=>{const t=window.getComputedStyle(e);return`${t.overflow}${t.overflowX}${t.overflowY}`})(e),Ja=(()=>{if(!Ea())return!1;const e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);const t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t})(),el=(e,t)=>e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e,tl=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],nl=(()=>(class{addOffset(e,t){return{left:e.left+t.left,top:e.top+t.top}}addScroll(e,t){return function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}(e,t)}align(e){return(e=>{const{anchorRect:t,anchorAlign:n,elementRect:i,elementAlign:r,margin:s={}}=e,o=n.horizontal,a=n.vertical,l=r.horizontal,h=r.vertical;let u=s.horizontal||0,c=s.vertical||0,d=t.top,p=t.left;return"bottom"===a&&(d+=t.height),"center"!==a&&"middle"!==a||(d+=Math.round(t.height/2)),"bottom"===h&&(d-=i.height,c*=-1),"center"!==h&&"middle"!==h||(d-=Math.round(i.height/2),c*=-1),"right"===o&&(p+=t.width),"center"!==o&&"middle"!==o||(p+=Math.round(t.width/2)),"right"===l&&(p-=i.width,u*=-1),"center"!==l&&"middle"!==l||(p-=Math.round(i.width/2),u*=-1),{top:d+c,left:p+u}})(e)}boundingOffset(e){return(e=>{if(!e.getBoundingClientRect){const t=aa(e);return{bottom:t.height,left:0,right:t.width,top:0}}const{bottom:t,left:n,right:i,top:r}=e.getBoundingClientRect();return{bottom:t,left:n,right:i,top:r}})(this.nativeElement(e))}getFontStyles(e){const t=this.getWindow();if(!t||!e)return[];const n=t.getComputedStyle(this.nativeElement(e));return tl.map(e=>({key:e,value:n[e]}))}getWindow(){return Ka()?window:null}hasOffsetParent(e){return!!e&&!!this.nativeElement(e).offsetParent}offset(e){return e?ha(this.nativeElement(e)):null}offsetAtPoint(e,t){if(!e)return null;const n=this.nativeElement(e),{left:i,top:r,transition:s}=n.style;n.style.transition="none",n.style.left=`${t.left}px`,n.style.top=`${t.top}px`;const o=ha(n);return n.style.left=i,n.style.top=r,n.style.transition=s,o}nativeElement(e){return e?e.nativeElement||e:null}position(e,t,n=1){return e&&t?((e,t,n=1)=>{const i=t?la(t):null,{top:r,left:s,height:o,width:a}=((e,t)=>{const n=ia(e),i=n.getComputedStyle(e),r=ha(e),s=t||la(e),o=e.ownerDocument;let a={top:0,left:0};if("fixed"!==i.position&&s!==o.body&&s!==o.documentElement){const e=n.getComputedStyle(s);(a=ha(s)).top+=parseInt(e.borderTopWidth,10),a.left+=parseInt(e.borderLeftWidth,10)}return{top:r.top-a.top,left:r.left-a.left,height:r.height,width:r.width}})(e,i),{x:l,y:h}=((e,t)=>e?da(e):function(e){const t=la(e);return t?da(t):{x:0,y:0}}(t))(i,e),u=e.ownerDocument,c=i===u.body||i===u.documentElement?1:n;return{top:r+h*c,left:s+l*c,height:o,width:a}})(this.nativeElement(e),this.nativeElement(t),n):null}removeScroll(e,t){return function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}(e,t)}restrictToView(e){return(e=>{const{anchorRect:t,anchorAlign:n,elementRect:i,elementAlign:r,collisions:s,viewPort:o,margin:a={}}=e,{top:l,left:h,height:u,width:c}=i,{height:d,width:p}=o,f=a.horizontal||0,m=a.vertical||0;let g=0,v=0;const y="flip"===s.horizontal,w="flip"===s.vertical;"fit"===s.vertical&&(v+=pa(l,u,d)),"fit"===s.horizontal&&(g+=pa(h,c,p)),w&&(v+=fa({margin:m,offset:l,size:u,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),y&&(g+=fa({margin:f,offset:h,size:c,anchorSize:t.width,viewPortSize:p,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));const _=y&&0!==g,b=w&&0!==v;return{flipped:_||b,flip:{horizontal:_,vertical:b},offset:{left:g,top:v}}})(e)}scrollPosition(e){return ca(this.nativeElement(e))}scrollableParents(e){return(e=>{const t=[];if(!Ea()||!Ka())return t;let n=e.parentElement;for(;n;)(Qa.test(Xa(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t})(this.nativeElement(e))}stackingElementOffset(e){const t=this.getRelativeContextElement(e);return t?ha(t):null}stackingElementScroll(e){const t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}}getRelativeContextElement(e){if(!e||!Ja)return null;let t=this.nativeElement(e).parentElement;for(;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null}useRelativePosition(e){return!!this.getRelativeContextElement(e)}windowViewPort(e){return aa(this.nativeElement(e))}zIndex(e,t){return((e,t)=>{if(!e||!Ea()||!Ka())return null;const n=((e,t)=>{const n=ua(e);let i,r,s=t;for(;s&&(i=ma(s),!(r=n.reduce((e,t)=>e.concat(i.filter(e=>e===t)),[])[0]));)s=s.parentElement;return r})(e,t);if(!n)return null;const i=[e].concat(ua(e,n)).reduce((e,t)=>{const n=t.style.zIndex||window.getComputedStyle(t).zIndex,i=parseInt(n,10);return i>e?i:e},0);return i?i+1:null})(this.nativeElement(e),this.nativeElement(t))}zoomLevel(){return Ea()&&Ka()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1}isZoomed(){return this.zoomLevel()>1}}))(),il=new Ae("Popup Document Scale"),rl=(()=>(class{constructor(e,t=1){this._dom=e,this.scale=t}alignElement(e){const{anchor:t,element:n,anchorAlign:i,elementAlign:r,margin:s,offset:o,positionMode:a}=e,l=this.scale||1,h="fixed"!==a&&this._dom.hasOffsetParent(n)?this.relativeRect(t,n,o,l):this.absoluteRect(t,n,o,l),u=el(this._dom.offset(n),l);return this._dom.align({anchorAlign:i,anchorRect:h,elementAlign:r,elementRect:u,margin:s})}absoluteRect(e,t,n,i){const r=this.elementScrollPosition(e,t),s=Ya(this._dom.offset(e),n),o=2*i,a=this._dom.stackingElementScroll(t);1!==i&&a&&(a.x/=o,a.y/=o);const l=this._dom.stackingElementOffset(t);return 1!==i&&l&&(l.left/=o,l.top/=o),this._dom.removeScroll(this._dom.addScroll(((e,t)=>t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e)(el(s,i),l),a),r)}elementScrollPosition(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)}relativeRect(e,t,n,i){const r=Ya(this._dom.position(e,t,i),n);return el(r,i)}}))(),sl=(()=>(class{constructor(e,t=1){this._dom=e,this.scale=t}positionElement(e){const{anchor:t,currentLocation:n,element:i,anchorAlign:r,elementAlign:s,collisions:o,margin:a}=e,l=this._dom,h=this.scale||1,u=l.offsetAtPoint(i,n),c=el(u,h),d=el(l.offset(t),h),p=Ya(d,n),f=e.viewPort||l.windowViewPort(i);f.width=f.width/h,f.height=f.height/h;const m=l.restrictToView({anchorAlign:r,anchorRect:p,collisions:o,elementAlign:s,elementRect:c,margin:a,viewPort:f}),g=l.addOffset(n,m.offset);return{flip:m.flip,flipped:m.flipped,offset:g}}}))(),ol=(()=>(class{constructor(e,t){this._dom=e,this._zone=t}subscribe(e){Ea()&&this._zone.runOutsideAngular(()=>{this.subscription=ta(this._dom.getWindow(),"resize").pipe(ka(1e3/60)).subscribe(()=>e())})}unsubscribe(){this.subscription&&this.subscription.unsubscribe()}isUnsubscribed(){return this.subscription&&this.subscription.closed}}))(),al=(()=>(class{constructor(e,t){this._dom=e,this._zone=t}forElement(e){return this.unsubscribe(),this.element=e,this}subscribe(e){if(!e||!Ea()||!this.element)return;const t=this._dom.nativeElement(this.element),n=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular(()=>{const i=n.map(e=>ta(e,"scroll").pipe(ka(1e3/60)));this.subscription=Q(...i).subscribe(i=>{const r=i.target,s=n.filter(e=>e===r).length>0,o=r===document,a=r===window;(s||o||a)&&e(this.isVisible(t,r))})})}unsubscribe(){this.subscription&&this.subscription.unsubscribe()}isVisible(e,t){const n=this._dom.boundingOffset(e),i=this._dom.boundingOffset(t);return!(1<i.top-n.bottom||1<n.top-i.bottom||1<n.left-i.right||1<i.left-n.right)}}))(),ll={expand:e=>{const t="up"===e||"down"===e?"scaleY":"scaleX";let n;return{start:{transform:`${t}(0)`,transformOrigin:n="down"===e?"top":"left"===e?"right":"right"===e?"left":"bottom"},end:{transform:`${t}(1)`}}},slide:e=>{const t="left"===e||"right"===e?"translateX":"translateY";return{start:{transform:`${t}(${"right"===e||"down"===e?-100:100}%)`},end:{transform:`${t}(0%)`}}},fade:()=>({start:{opacity:0},end:{opacity:1}}),zoom:()=>({start:{transform:"scale(0)"},end:{transform:"scale(1)"}})},hl=(()=>(class{constructor(e){this.animationBuilder=e,this.start=new xr,this.end=new xr}play(e,t,n){if(!this.flip||this.flip.horizontal!==n.horizontal||this.flip.vertical!==n.vertical){this.flip=n;const i=t.type||"slide",r=ll[i];if(r){const i=r(this.getDirection(n,t));this.playStates(e,i,t)}else if(ot())throw new Error(`Unsupported animation type: "${i}". The supported types are slide, expand, fade and zoom.`)}}ngOnDestroy(){this.stopPlayer()}playStates(e,t,n){this.stopPlayer();const i=n.duration||100,r=this.animationBuilder.build([Ua(t.start),$a(`${i}ms ease-in`,Ua(t.end))]),s=this.player=r.create(e);s.onDone(()=>{this.end.emit(),this.stopPlayer()}),this.start.emit(),s.play()}getDirection(e,t){let n=t.direction||"down";return e.horizontal&&("left"===n?n="right":"right"===n&&(n="left")),e.vertical&&("down"===n?n="up":"up"===n&&(n="down")),n}stopPlayer(){this.player&&(this.player.destroy(),this.player=null)}}))(),ul={left:-1e4,top:0},cl=(()=>(class{constructor(e,t,n,i,r,s,o,a,l){this.container=e,this._alignService=t,this.domService=n,this._positionService=i,this._resizeService=r,this._scrollableService=s,this.animationService=o,this._renderer=a,this._zone=l,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=ul,this.anchorViewportLeave=new xr,this.close=new xr,this.open=new xr,this.positionChange=new xr,this.resolvedPromise=Promise.resolve(null),this._renderer.addClass(e.nativeElement,"k-animation-container"),this.updateFixedClass()}ngOnInit(){this.repositionCallback=this.reposition.bind(this),this._resizeService.subscribe(this.repositionCallback),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.currentOffset=ul,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass()}ngOnChanges(e){e.copyAnchorStyles&&this.copyFontStyles(),e.positionMode&&this.updateFixedClass()}ngAfterViewInit(){this.reposition(),this.animate||this.resolvedPromise.then(()=>{this.onAnimationEnd()})}ngAfterViewChecked(){this._zone.runOutsideAngular(()=>{this.repositionSubscription&&this.repositionSubscription.unsubscribe(),this.repositionSubscription=q(this.resolvedPromise).subscribe(this.repositionCallback)})}ngOnDestroy(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.repositionSubscription&&this.repositionSubscription.unsubscribe(),this.animationSubscriptions.unsubscribe()}onAnimationStart(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")}onAnimationEnd(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()}get currentOffset(){return this._currentOffset}set currentOffset(e){this.setContainerStyle("left",`${e.left}px`),this.setContainerStyle("top",`${e.top}px`),this._currentOffset=e}setZIndex(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))}reposition(){if(!Ea())return;const{flip:e,offset:t}=this.position();this.currentOffset&&!((e,t)=>{const{left:n,top:i}=e,{left:r,top:s}=t;return Math.abs(n-r)>=1||Math.abs(i-s)>=1})(this.currentOffset,t)||(this.currentOffset=t,Da(this.positionChange)&&this._zone.run(()=>this.positionChange.emit({offset:t,flip:e}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,e)}position(){const e=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,margin:this.margin})}onScroll(e){const t=Da(this.anchorViewportLeave);e||!t?this.reposition():t&&this._zone.run(()=>{this.anchorViewportLeave.emit()})}copyFontStyles(){this.anchor&&this.copyAnchorStyles&&this.domService.getFontStyles(this.anchor).forEach(e=>this.setContainerStyle(e.key,e.value))}updateFixedClass(){this._renderer["fixed"===this.positionMode?"addClass":"removeClass"](this.container.nativeElement,"k-animation-container-fixed")}setContainerStyle(e,t){this._renderer.setStyle(this.container.nativeElement,e,t)}}))(),dl=new Ae("Popup Container"),pl=(()=>(class{constructor(e,t,n,i){this.applicationRef=e,this.componentFactoryResolver=t,this.injector=n,this.container=i}get rootViewContainer(){const e=this.applicationRef.components||[];if(e[0])return e[0];throw new Error("\n            View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n            See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n        ")}get rootViewContainerNode(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)}open(e={}){const{component:t,nodes:n}=this.contentFrom(e.content),i=this.appendPopup(n,e.appendTo),r=i.instance;this.projectComponentInputs(i,e),i.changeDetectorRef.detectChanges(),t&&t.changeDetectorRef.detectChanges();const s=this.getComponentRootNode(i);return{close:()=>{t?t.destroy():i.hostView.destroyed||(i.instance.content=null,i.changeDetectorRef.detectChanges()),i.destroy(),(e=>{s&&s.parentNode&&s.parentNode.removeChild(s)})()},content:t,popup:i,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:s,popupOpen:r.open,popupPositionChange:r.positionChange}}appendPopup(e,t){const n=this.createComponent(cl,e,t);return t||this.rootViewContainerNode.appendChild(this.getComponentRootNode(n)),n}getComponentRootNode(e){return e.hostView.rootNodes[0]}getComponentFactory(e){return this.componentFactoryResolver.resolveComponentFactory(e)}createComponent(e,t,n){const i=this.getComponentFactory(e);if(n)return n.createComponent(i,void 0,this.injector,t);{const e=i.create(this.injector,t);return this.applicationRef.attachView(e.hostView),e}}projectComponentInputs(e,t){return Object.getOwnPropertyNames(t).filter(e=>"content"!==e||t.content instanceof Dn).map(n=>{e.instance[n]=t[n]}),e}contentFrom(e){if(!e||e instanceof Dn)return{component:null,nodes:[[]]};const t=this.createComponent(e);return{component:t,nodes:[t?[t.location.nativeElement]:[]]}}}))(),fl=(()=>(class{}))();class ml{}const gl=void 0;var vl=["en",[["a","p"],["AM","PM"],gl],[["AM","PM"],gl,gl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],gl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],gl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",gl,"{1} 'at' {0}",gl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];const yl={},wl=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),_l=new Ae("UseV4Plurals");class bl{}const xl=(()=>(class extends bl{constructor(e,t){super(),this.locale=e,this.deprecatedPluralFn=t}getPluralCategory(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){const t=e.toLowerCase().replace(/_/g,"-");let n=yl[t];if(n)return n;const i=t.split("-")[0];if(n=yl[i])return n;if("en"===i)return vl;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[18]}(t||this.locale)(e)){case wl.Zero:return"zero";case wl.One:return"one";case wl.Two:return"two";case wl.Few:return"few";case wl.Many:return"many";default:return"other"}}}))();class Cl{}const Sl=(()=>(class{constructor(e,t,n,i){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=i,this._initialClasses=[]}getValue(){return null}setClass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}setNgClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ht(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}applyChanges(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${we(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}))(),kl=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=void 0,e})(),El=(()=>(class extends kl{constructor(e){super(e)}set klass(e){this._delegate.setClass(e)}set ngClass(e){this._delegate.setNgClass(e)}ngDoCheck(){this._delegate.applyChanges()}}))();class Tl{constructor(e,t,n,i){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}const Il=(()=>(class{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){ot()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,i)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Tl(null,this._ngForOf,-1,-1),i),r=new Dl(e,n);t.push(r)}else if(null==i)this._viewContainer.remove(n);else{const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const s=new Dl(e,r);t.push(s)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=i,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}))();class Dl{constructor(e,t){this.record=e,this.view=t}}const Al=(()=>(class{constructor(e,t){this._viewContainer=e,this._context=new Ol,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Nl("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Nl("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateGuard_ngIf(e,t){return!0}}))();class Ol{constructor(){this.$implicit=null,this.ngIf=null}}function Nl(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${we(t)}'.`)}class Fl{}const Ml=(()=>(class{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n}getValue(){return null}setNgStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}applyChanges(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}_setStyle(e,t){const[n,i]=e.split(".");null!=(t=null!=t&&i?`${t}${i}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}}))(),Pl=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=void 0,e})(),Rl=(()=>(class extends Pl{constructor(e){super(e)}set ngStyle(e){this._delegate.setNgStyle(e)}ngDoCheck(){this._delegate.applyChanges()}}))(),Vl=(()=>(class{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){this._shouldRecreateView(e)?(this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))):this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(e){const t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}_hasContextShapeChanged(e){const t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(let e of n)if(-1===t.indexOf(e))return!0;return!1}return!0}_updateExistingContext(e){for(let t of Object.keys(e))this._viewRef.context[t]=this.ngTemplateOutletContext[t]}}))(),zl=(()=>(class{}))(),Ll=new Ae("DocumentToken"),Bl="browser";function Hl(e){return e===Bl}var $l=Yn({encapsulation:2,styles:[],data:{}});function jl(e){return qs(0,[(e()(),Is(0,null,null,0))],null,null)}function Ul(e){return qs(0,[Ms(402653184,1,{contentContainer:0}),(e()(),Ds(1,0,[[1,0],["container",1]],null,6,"div",[["class","k-popup"]],null,null,null,null,null)),or(512,null,Cl,Sl,[xn,Cn,nn,ln]),sr(3,278528,null,0,El,[Cl],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Ls(null,0),(e()(),Is(16777216,null,null,2,null,jl)),sr(6,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),sr(7,540672,null,0,Vl,[On],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null)],function(e,t){var n=t.component;e(t,3,0,"k-popup",n.popupClass),e(t,6,0,n.content),e(t,7,0,n.content)},null)}function ql(e){return qs(0,[(e()(),Ds(0,0,null,null,7,"kendo-popup",[],null,null,null,Ul,$l)),or(512,null,nl,nl,[]),or(512,null,rl,rl,[nl,[2,il]]),or(512,null,sl,sl,[nl,[2,il]]),or(512,null,ol,ol,[nl,Zr]),or(512,null,al,al,[nl,Zr]),or(131584,null,hl,hl,[La]),sr(7,13352960,null,0,cl,[nn,rl,nl,sl,ol,al,hl,ln,Zr],null,null)],function(e,t){e(t,7,0)},null)}var Wl=Pi("kendo-popup",cl,ql,{animate:"animate",anchor:"anchor",anchorAlign:"anchorAlign",collision:"collision",popupAlign:"popupAlign",copyAnchorStyles:"copyAnchorStyles",popupClass:"popupClass",positionMode:"positionMode",offset:"offset",margin:"margin"},{anchorViewportLeave:"anchorViewportLeave",close:"close",open:"open",positionChange:"positionChange"},["*"]);let Gl=null;function Zl(){return Gl}class Yl{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}class Kl extends Yl{constructor(){super(),this._animationPrefix=null,this._transitionEnd=null;try{const t=this.createElement("div",document);if(null!=this.getStyle(t,"animationName"))this._animationPrefix="";else{const e=["Webkit","Moz","O","ms"];for(let n=0;n<e.length;n++)if(null!=this.getStyle(t,e[n]+"AnimationName")){this._animationPrefix="-"+e[n].toLowerCase()+"-";break}}const n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(n).forEach(e=>{null!=this.getStyle(t,e)&&(this._transitionEnd=n[e])})}catch(e){this._animationPrefix=null,this._transitionEnd=null}}getDistributedNodes(e){return e.getDistributedNodes()}resolveAndSetHref(e,t,n){e.href=null==n?t:t+"/../"+n}supportsDOMEvents(){return!0}supportsNativeShadowDOM(){return"function"==typeof document.body.createShadowRoot}getAnimationPrefix(){return this._animationPrefix?this._animationPrefix:""}getTransitionEnd(){return this._transitionEnd?this._transitionEnd:""}supportsAnimation(){return null!=this._animationPrefix&&null!=this._transitionEnd}}const Ql={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Xl=3,Jl={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},eh={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},th=(()=>{if(Se.Node)return Se.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class nh extends Kl{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new nh,Gl||(Gl=e)}hasProperty(e,t){return t in e}setProperty(e,t,n){e[t]=n}getProperty(e,t){return e[t]}invoke(e,t,n){e[t](...n)}logError(e){window.console&&(console.error?console.error(e):console.log(e))}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}get attrToPropMap(){return Ql}contains(e,t){return th.call(e,t)}querySelector(e,t){return e.querySelector(t)}querySelectorAll(e,t){return e.querySelectorAll(t)}on(e,t,n){e.addEventListener(t,n,!1)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}createMouseEvent(e){const t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}createEvent(e){const t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t}preventDefault(e){e.preventDefault(),e.returnValue=!1}isPrevented(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue}getInnerHTML(e){return e.innerHTML}getTemplateContent(e){return"content"in e&&this.isTemplateElement(e)?e.content:null}getOuterHTML(e){return e.outerHTML}nodeName(e){return e.nodeName}nodeValue(e){return e.nodeValue}type(e){return e.type}content(e){return this.hasProperty(e,"content")?e.content:e}firstChild(e){return e.firstChild}nextSibling(e){return e.nextSibling}parentElement(e){return e.parentNode}childNodes(e){return e.childNodes}childNodesAsList(e){const t=e.childNodes,n=new Array(t.length);for(let i=0;i<t.length;i++)n[i]=t[i];return n}clearNodes(e){for(;e.firstChild;)e.removeChild(e.firstChild)}appendChild(e,t){e.appendChild(t)}removeChild(e,t){e.removeChild(t)}replaceChild(e,t,n){e.replaceChild(t,n)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}insertBefore(e,t,n){e.insertBefore(n,t)}insertAllBefore(e,t,n){n.forEach(n=>e.insertBefore(n,t))}insertAfter(e,t,n){e.insertBefore(n,t.nextSibling)}setInnerHTML(e,t){e.innerHTML=t}getText(e){return e.textContent}setText(e,t){e.textContent=t}getValue(e){return e.value}setValue(e,t){e.value=t}getChecked(e){return e.checked}setChecked(e,t){e.checked=t}createComment(e){return this.getDefaultDocument().createComment(e)}createTemplate(e){const t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createElementNS(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)}createTextNode(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)}createScriptTag(e,t,n){const i=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return i.setAttribute(e,t),i}createStyleElement(e,t){const n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n}createShadowRoot(e){return e.createShadowRoot()}getShadowRoot(e){return e.shadowRoot}getHost(e){return e.host}clone(e){return e.cloneNode(!0)}getElementsByClassName(e,t){return e.getElementsByClassName(t)}getElementsByTagName(e,t){return e.getElementsByTagName(t)}classList(e){return Array.prototype.slice.call(e.classList,0)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}hasClass(e,t){return e.classList.contains(t)}setStyle(e,t,n){e.style[t]=n}removeStyle(e,t){e.style[t]=""}getStyle(e,t){return e.style[t]}hasStyle(e,t,n){const i=this.getStyle(e,t)||"";return n?i==n:i.length>0}tagName(e){return e.tagName}attributeMap(e){const t=new Map,n=e.attributes;for(let i=0;i<n.length;i++){const e=n.item(i);t.set(e.name,e.value)}return t}hasAttribute(e,t){return e.hasAttribute(t)}hasAttributeNS(e,t,n){return e.hasAttributeNS(t,n)}getAttribute(e,t){return e.getAttribute(t)}getAttributeNS(e,t,n){return e.getAttributeNS(t,n)}setAttribute(e,t,n){e.setAttribute(t,n)}setAttributeNS(e,t,n,i){e.setAttributeNS(t,n,i)}removeAttribute(e,t){e.removeAttribute(t)}removeAttributeNS(e,t,n){e.removeAttributeNS(t,n)}templateAwareRoot(e){return this.isTemplateElement(e)?this.content(e):e}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}getBoundingClientRect(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}}getTitle(e){return e.title}setTitle(e,t){e.title=t||""}elementMatches(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))}isTemplateElement(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName}isTextNode(e){return e.nodeType===Node.TEXT_NODE}isCommentNode(e){return e.nodeType===Node.COMMENT_NODE}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}hasShadowRoot(e){return null!=e.shadowRoot&&e instanceof HTMLElement}isShadowRoot(e){return e instanceof DocumentFragment}importIntoDoc(e){return document.importNode(this.templateAwareRoot(e),!0)}adoptNode(e){return document.adoptNode(e)}getHref(e){return e.getAttribute("href")}getEventKey(e){let t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),e.location===Xl&&eh.hasOwnProperty(t)&&(t=eh[t]))}return Jl[t]||t}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=rh||(rh=document.querySelector("base"))?rh.getAttribute("href"):null;return null==t?null:(n=t,ih||(ih=document.createElement("a")),ih.setAttribute("href",n),"/"===ih.pathname.charAt(0)?ih.pathname:"/"+ih.pathname);var n}resetBaseElement(){rh=null}getUserAgent(){return window.navigator.userAgent}setData(e,t,n){this.setAttribute(e,"data-"+t,n)}getData(e,t){return this.getAttribute(e,"data-"+t)}getComputedStyle(e){return getComputedStyle(e)}supportsWebAnimation(){return"function"==typeof Element.prototype.animate}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return function(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[i,r]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(i.trim()===t)return decodeURIComponent(r)}return null}(document.cookie,e)}setCookie(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)}}let ih,rh=null;function sh(){return!!window.history.pushState}const oh=(()=>{class e extends ml{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=Zl().getLocation(),this._history=Zl().getHistory()}getBaseHrefFromDOM(){return Zl().getBaseHref(this._doc)}onPopState(e){Zl().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){Zl().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){sh()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){sh()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.ctorParameters=(()=>[{type:void 0,decorators:[{type:he,args:[Ll]}]}]),e})(),ah=new Ae("TRANSITION_ID"),lh=[{provide:Sr,useFactory:function(e,t,n){return()=>{n.get(kr).donePromise.then(()=>{const n=Zl();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[ah,Ll,Pe],multi:!0}];class hh{static init(){var e;e=new hh,ss=e}addToWindow(e){Se.getAngularTestability=((t,n=!0)=>{const i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i}),Se.getAllAngularTestabilities=(()=>e.getAllTestabilities()),Se.getAllAngularRootElements=(()=>e.getAllRootElements()),Se.frameworkStabilizers||(Se.frameworkStabilizers=[]),Se.frameworkStabilizers.push(e=>{const t=Se.getAllAngularTestabilities();let n=t.length,i=!1;const r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const i=e.getTestability(t);return null!=i?i:n?Zl().isShadowRoot(t)?this.findTestabilityInTree(e,Zl().getHost(t),!0):this.findTestabilityInTree(e,Zl().parentElement(t),!0):null}}function uh(e,t){"undefined"!=typeof COMPILED&&COMPILED||((Se.ng=Se.ng||{})[e]=t)}const ch=(()=>({ApplicationRef:ps,NgZone:Zr}))();function dh(e){return ws(e)}const ph=new Ae("EventManagerPlugins"),fh=(()=>(class{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let i=0;i<n.length;i++){const t=n[i];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}))();class mh{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const i=Zl().getGlobalEventTarget(this._doc,e);if(!i)throw new Error(`Unsupported event target ${i} for event ${t}`);return this.addEventListener(i,t,n)}}const gh=(()=>(class{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}))(),vh=(()=>(class extends gh{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Zl().remove(e))}}))(),yh={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},wh=/%COMP%/g,_h="_nghost-%COMP%",bh="_ngcontent-%COMP%";function xh(e,t,n){for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?xh(e,r,n):(r=r.replace(wh,e),n.push(r))}return n}function Ch(e){return t=>{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}const Sh=(()=>(class{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new kh(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Xe.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new Ih(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case Xe.Native:case Xe.ShadowDom:return new Dh(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=xh(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}))();class kh{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(yh[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,i){if(i){t=`${i}:${t}`;const r=yh[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const i=yh[n];i?e.removeAttributeNS(i,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,i){i&an.DashCase?e.style.setProperty(t,n,i&an.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&an.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){Th(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return Th(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Ch(n)):this.eventManager.addEventListener(e,t,Ch(n))}}const Eh=(()=>"@".charCodeAt(0))();function Th(e,t){if(e.charCodeAt(0)===Eh)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class Ih extends kh{constructor(e,t,n,i){super(e),this.component=n;const r=xh(i+"-"+n.id,n.styles,[]);t.addStyles(r),this.contentAttr=bh.replace(wh,i+"-"+n.id),this.hostAttr=_h.replace(wh,i+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class Dh extends kh{constructor(e,t,n,i){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=i,this.shadowRoot=i.encapsulation===Xe.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const r=xh(i.id,i.styles,[]);for(let s=0;s<r.length;s++){const e=document.createElement("style");e.textContent=r[s],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}const Ah=(()=>"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),Oh=Ah("addEventListener"),Nh=Ah("removeEventListener"),Fh={},Mh="__zone_symbol__propagationStopped",Ph=(()=>{const e="undefined"!=typeof Zone&&Zone[Ah("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),Rh=function(e){return!!Ph&&Ph.hasOwnProperty(e)},Vh=function(e){const t=Fh[e.type];if(!t)return;const n=this[t];if(!n)return;const i=[e];if(1===n.length){const e=n[0];return e.zone!==Zone.current?e.zone.run(e.handler,this,i):e.handler.apply(this,i)}{const t=n.slice();for(let n=0;n<t.length&&!0!==e[Mh];n++){const e=t[n];e.zone!==Zone.current?e.zone.run(e.handler,this,i):e.handler.apply(this,i)}}},zh=(()=>(class extends mh{constructor(e,t,n){super(e),this.ngZone=t,n&&function(e){return"server"===e}(n)||this.patchEvent()}patchEvent(){if("undefined"==typeof Event||!Event||!Event.prototype)return;if(Event.prototype.__zone_symbol__stopImmediatePropagation)return;const e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[Mh]=!0),e&&e.apply(this,arguments)}}supports(e){return!0}addEventListener(e,t,n){let i=n;if(!e[Oh]||Zr.isInAngularZone()&&!Rh(t))e.addEventListener(t,i,!1);else{let n=Fh[t];n||(n=Fh[t]=Ah("ANGULAR"+t+"FALSE"));let r=e[n];const s=r&&r.length>0;r||(r=e[n]=[]);const o=Rh(t)?Zone.root:Zone.current;if(0===r.length)r.push({zone:o,handler:i});else{let e=!1;for(let t=0;t<r.length;t++)if(r[t].handler===i){e=!0;break}e||r.push({zone:o,handler:i})}s||e[Oh](t,Vh,!1)}return()=>this.removeEventListener(e,t,i)}removeEventListener(e,t,n){let i=e[Nh];if(!i)return e.removeEventListener.apply(e,[t,n,!1]);let r=Fh[t],s=r&&e[r];if(!s)return e.removeEventListener.apply(e,[t,n,!1]);let o=!1;for(let a=0;a<s.length;a++)if(s[a].handler===n){o=!0,s.splice(a,1);break}o?0===s.length&&i.apply(e,[t,Vh,!1]):e.removeEventListener.apply(e,[t,n,!1])}}))(),Lh={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Bh=new Ae("HammerGestureConfig"),Hh=new Ae("HammerLoader"),$h=(()=>(class{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}))(),jh=(()=>(class extends mh{constructor(e,t,n,i){super(e),this._config=t,this.console=n,this.loader=i}supports(e){return!(!Lh.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${e}" event cannot be bound because Hammer.JS is not `+"loaded and no custom loader has been specified."),1))}addEventListener(e,t,n){const i=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){let i=!1,r=()=>{i=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(r=(()=>{}));i||(r=this.addEventListener(e,t,n))}).catch(()=>{this.console.warn(`The "${t}" event cannot be bound because the custom `+"Hammer.JS loader failed."),r=(()=>{})}),()=>{r()}}return i.runOutsideAngular(()=>{const r=this._config.buildHammer(e),s=function(e){i.runGuarded(function(){n(e)})};return r.on(t,s),()=>{r.off(t,s),"function"==typeof r.destroy&&r.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}))(),Uh=["alt","control","meta","shift"],qh={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Wh=(()=>{class e extends mh{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,i){const r=e.parseEventName(n),s=e.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Zl().onAndCancel(t,r.domEventName,s))}static parseEventName(t){const n=t.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=e._normalizeKey(n.pop());let s="";if(Uh.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),s+=e+".")}),s+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=i,o.fullKey=s,o}static getEventFullKey(e){let t="",n=Zl().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Uh.forEach(i=>{i!=n&&(0,qh[i])(e)&&(t+=i+".")}),t+=n}static eventCallback(t,n,i){return r=>{e.getEventFullKey(r)===t&&i.runGuarded(()=>n(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e})();class Gh{}const Zh=(()=>(class extends Gh{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case It.NONE:return t;case It.HTML:return t instanceof Kh?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){let n=null;try{Et=Et||new at(e);let i=t?String(t):"";n=Et.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=Et.getInertBodyElement(i)}while(i!==s);const o=new xt,a=o.sanitizeChildren(Tt(n)||n);return ot()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const e=Tt(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}(this._doc,String(t)));case It.STYLE:return t instanceof Qh?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";const t=e.match(Ot);return t&&ut(t[1])===t[1]||e.match(At)&&function(e){let t=!0,n=!0;for(let i=0;i<e.length;i++){const r=e.charAt(i);"'"===r&&n?t=!t:'"'===r&&t&&(n=!n)}return t&&n}(e)?e:(ot()&&console.warn(`WARNING: sanitizing unsafe style value ${e} (see http://g.co/ng/security#xss).`),"unsafe")}(t));case It.SCRIPT:if(t instanceof Xh)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case It.URL:return t instanceof eu||t instanceof Jh?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),ut(String(t)));case It.RESOURCE_URL:if(t instanceof eu)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see http://g.co/ng/security#xss)`)}}checkNotSafeValue(e,t){if(e instanceof Yh)throw new Error(`Required a safe ${t}, got a ${e.getTypeName()} `+"(see http://g.co/ng/security#xss)")}bypassSecurityTrustHtml(e){return new Kh(e)}bypassSecurityTrustStyle(e){return new Qh(e)}bypassSecurityTrustScript(e){return new Xh(e)}bypassSecurityTrustUrl(e){return new Jh(e)}bypassSecurityTrustResourceUrl(e){return new eu(e)}}))();class Yh{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class Kh extends Yh{getTypeName(){return"HTML"}}class Qh extends Yh{getTypeName(){return"Style"}}class Xh extends Yh{getTypeName(){return"Script"}}class Jh extends Yh{getTypeName(){return"URL"}}class eu extends Yh{getTypeName(){return"ResourceURL"}}const tu=hs(bs,"browser",[{provide:Ar,useValue:Bl},{provide:Dr,useValue:function(){nh.makeCurrent(),hh.init()},multi:!0},{provide:ml,useClass:oh,deps:[Ll]},{provide:Ll,useFactory:function(){return document},deps:[]}]);function nu(){return new it}const iu=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:Er,useValue:t.appId},{provide:ah,useExisting:Er},lh]}}}return e})();"undefined"!=typeof window&&window;const ru=new _(e=>e.complete());function su(e){return e?function(e){return new _(t=>e.schedule(()=>t.complete()))}(e):ru}class ou extends B{constructor(e,t){super(e),this.sources=t,this.completed=0,this.haveValues=0;const n=t.length;this.values=new Array(n);for(let i=0;i<n;i++){const e=L(this,t[i],null,i);e&&this.add(e)}}notifyNext(e,t,n,i,r){this.values[n]=t,r._hasValue||(r._hasValue=!0,this.haveValues++)}notifyComplete(e){const{destination:t,haveValues:n,values:i}=this,r=i.length;e._hasValue?(this.completed++,this.completed===r&&(n===r&&t.next(i),t.complete())):t.complete()}}const au=new Ae("NgValueAccessor"),lu=(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=(e=>{}),this.onTouched=(()=>{})}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}))(),hu=new Ae("CompositionEventMode"),uu=(()=>(class{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=(e=>{}),this.onTouched=(()=>{}),this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Zl()?Zl().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}))();class cu{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class du extends cu{get formDirective(){return null}get path(){return null}}function pu(){throw new Error("unimplemented")}class fu extends cu{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return pu()}get asyncValidator(){return pu()}}const mu=(()=>(class extends class{constructor(e){this._cd=e}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}{constructor(e){super(e)}}))();function gu(e){return null==e||0===e.length}const vu=new Ae("NgValidators"),yu=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/;class wu{static min(e){return t=>{if(gu(t.value)||gu(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}static max(e){return t=>{if(gu(t.value)||gu(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return gu(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return gu(e.value)?null:yu.test(e.value)?null:{email:!0}}static minLength(e){return t=>{if(gu(t.value))return null;const n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}static maxLength(e){return t=>{const n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}static pattern(e){if(!e)return wu.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(gu(e.value))return null;const i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(_u);return 0==t.length?null:function(e){return xu(function(e,n){return t.map(t=>t(e))}(e))}}static composeAsync(e){if(!e)return null;const t=e.filter(_u);return 0==t.length?null:function(e){return function e(...t){let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&h(t[0])&&(t=t[0]),0===t.length?ru:n?e(t).pipe(H(e=>n(...e))):new _(e=>new ou(e,t))}(function(e,n){return t.map(t=>t(e))}(e).map(bu)).pipe(H(xu))}}}function _u(e){return null!=e}function bu(e){const t=Mt(e)?q(e):e;if(!Pt(t))throw new Error("Expected validator to return Promise or Observable.");return t}function xu(e){const t=e.reduce((e,t)=>null!=t?Object.assign({},e,t):e,{});return 0===Object.keys(t).length?null:t}function Cu(e){return e.validate?t=>e.validate(t):e}function Su(e){return e.validate?t=>e.validate(t):e}const ku=(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=(e=>{}),this.onTouched=(()=>{})}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=(t=>{e(""==t?null:parseFloat(t))})}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}))(),Eu=(()=>(class{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}))(),Tu=(()=>(class{constructor(e,t,n,i){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=i,this.onChange=(()=>{}),this.onTouched=(()=>{})}ngOnInit(){this._control=this._injector.get(fu),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=(()=>{e(this.value),this._registry.select(this)})}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')}}))(),Iu={formControlName:'\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',formGroupName:'\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',formArrayName:'\n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });',ngModelGroup:'\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>',ngModelWithFormGroup:'\n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  '};function Du(e,t){return[...t.path,e]}function Au(e,t){e||Nu(t,"Cannot find control with"),t.valueAccessor||Nu(t,"No value accessor for form control with"),e.validator=wu.compose([e.validator,t.validator]),e.asyncValidator=wu.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Ou(e,t)})}(e,t),function(e,t){e.registerOnChange((e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Ou(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(e=>{t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())}),t._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())})}function Ou(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Nu(e,t){let n;throw n=e.path.length>1?`path: '${e.path.join(" -> ")}'`:e.path[0]?`name: '${e.path}'`:"unspecified name attribute",new Error(`${t} ${n}`)}function Fu(e){return null!=e?wu.compose(e.map(Cu)):null}function Mu(e){return null!=e?wu.composeAsync(e.map(Su)):null}const Pu=[lu,(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=(e=>{}),this.onTouched=(()=>{})}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=(t=>{e(""==t?null:parseFloat(t))})}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}))(),ku,(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=(e=>{}),this.onTouched=(()=>{}),this._compareWith=zt}set compareWith(e){if("function"!=typeof e)throw new Error(`compareWith must be a function, but received ${JSON.stringify(e)}`);this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=(t=>{this.value=this._getOptionValue(t),e(this.value)})}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}))(),(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=(e=>{}),this.onTouched=(()=>{}),this._compareWith=zt}set compareWith(e){if("function"!=typeof e)throw new Error(`compareWith must be a function, but received ${JSON.stringify(e)}`);this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=((e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)})}else t=((e,t)=>{e._setSelected(!1)});this._optionMap.forEach(t)}registerOnChange(e){this.onChange=(t=>{const n=[];if(t.hasOwnProperty("selectedOptions")){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const i=e.item(t),r=this._getOptionValue(i.value);n.push(r)}}else{const e=t.options;for(let t=0;t<e.length;t++){const i=e.item(t);if(i.selected){const e=this._getOptionValue(i.value);n.push(e)}}}this.value=n,e(n)})}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}))(),Tu],Ru="VALID",Vu="INVALID",zu="PENDING",Lu="DISABLED";function Bu(e){const t=$u(e)?e.validators:e;return Array.isArray(t)?Fu(t):t||null}function Hu(e,t){const n=$u(t)?t.asyncValidators:e;return Array.isArray(n)?Mu(n):n||null}function $u(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class ju{constructor(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=(()=>{}),this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return this.status===Ru}get invalid(){return this.status===Vu}get pending(){return this.status==zu}get disabled(){return this.status===Lu}get enabled(){return this.status!==Lu}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this.validator=Bu(e)}setAsyncValidators(e){this.asyncValidator=Hu(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=zu,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Lu,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Ru,this._forEachChild(t=>{t.enable(Object.assign({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==Ru&&this.status!==zu||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Lu:Ru}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=zu;const t=bu(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>this.setErrors(t,{emitEvent:e}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce((e,t)=>e instanceof qu?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof Wu&&e.at(t)||null,e))}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new xr,this.statusChanges=new xr}_calculateStatus(){return this._allControlsDisabled()?Lu:this.errors?Vu:this._anyControlsHaveStatus(zu)?zu:this._anyControlsHaveStatus(Vu)?Vu:Ru}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){$u(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Uu extends ju{constructor(e=null,t,n){super(Bu(t),Hu(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=(()=>{})}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class qu extends ju{constructor(e,t,n){super(Bu(t),Hu(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e={},t={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof Uu?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>e(this.controls[t],t))}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){let t=!1;return this._forEachChild((n,i)=>{t=t||this.contains(i)&&e(n)}),t}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,i)=>{n=t(n,e,i)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Wu extends ju{constructor(e,t,n){super(Bu(t),Hu(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e=[],t={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof Uu?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const Gu=(()=>Promise.resolve(null))(),Zu=(()=>(class extends du{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new xr,this.form=new qu({},Fu(e),Mu(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Gu.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Au(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Gu.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),function(t,n){const i=t.indexOf(e);i>-1&&t.splice(i,1)}(this._directives)})}addFormGroup(e){Gu.then(()=>{const t=this._findContainer(e.path),n=new qu({});(function(e,t){null==e&&Nu(t,"Cannot find control with"),e.validator=wu.compose([e.validator,t.validator]),e.asyncValidator=wu.composeAsync([e.asyncValidator,t.asyncValidator])})(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Gu.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Gu.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,t=this._directives,this.form._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(e),!1;var t}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}))();class Yu{static modelParentException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup's partner directive "formControlName" instead.  Example:\n\n      ${Iu.formControlName}\n\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n      Example:\n\n      ${Iu.ngModelWithFormGroup}`)}static formGroupNameException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      ${Iu.formGroupName}\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      ${Iu.ngModelGroup}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){throw new Error(`\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      ${Iu.formGroupName}\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      ${Iu.ngModelGroup}`)}static ngFormWarning(){console.warn("\n    It looks like you're using 'ngForm'.\n\n    Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n    in Angular v9.\n\n    Use 'ng-form' instead.\n\n    Before:\n    <ngForm #myForm=\"ngForm\">\n\n    After:\n    <ng-form #myForm=\"ngForm\">\n    ")}}const Ku=new Ae("NgFormSelectorWarning");class Qu extends du{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Du(this.name,this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Fu(this._validators)}get asyncValidator(){return Mu(this._asyncValidators)}_checkParentType(){}}const Xu=(()=>{class e extends Qu{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}_checkParentType(){this._parent instanceof e||this._parent instanceof Zu||Yu.modelGroupParentException()}}return e})(),Ju=(()=>Promise.resolve(null))(),ec=(()=>(class extends fu{constructor(e,t,n,i){super(),this.control=new Uu,this._registered=!1,this.update=new xr,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||Nu(e,"Value accessor was not provided as an array for form control with");let n=void 0,i=void 0,r=void 0;return t.forEach(t=>{t.constructor===uu?n=t:function(e){return Pu.some(t=>e.constructor===t)}(t)?(i&&Nu(e,"More than one built-in value accessor matches form control with"),i=t):(r&&Nu(e,"More than one custom value accessor matches form control with"),r=t)}),r||i||n||(Nu(e,"No valid value accessor for form control with"),null)}(this,i)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!zt(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Du(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Fu(this._rawValidators)}get asyncValidator(){return Mu(this._rawAsyncValidators)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Au(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof Xu)&&this._parent instanceof Qu?Yu.formGroupNameException():this._parent instanceof Xu||this._parent instanceof Zu||Yu.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Yu.missingNameException()}_updateValue(e){Ju.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;Ju.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}))(),tc=new Ae("NgModelWithFormControlWarning"),nc=(()=>(class{}))(),ic=(()=>(class{group(e,t=null){const n=this._reduceControls(e);let i=null,r=null,s=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,s=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new qu(n,{asyncValidators:r,updateOn:s,validators:i})}control(e,t,n){return new Uu(e,t,n)}array(e,t,n){const i=e.map(e=>this._createControl(e));return new Wu(i,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof Uu||e instanceof qu||e instanceof Wu?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}))(),rc=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ku,useValue:t.warnOnDeprecatedNgFormSelector}]}}}return e})(),sc=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:tc,useValue:t.warnOnNgModelWithFormControl}]}}}return e})();function oc(...e){let t=e[e.length-1];switch(I(t)?e.pop():t=void 0,e.length){case 0:return su(t);case 1:return t?U(e,t):function(e){const t=new _(t=>{t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}(e[0]);default:return U(e,t)}}function ac(e=0,t=_a){return(!Ca(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=_a),new _(n=>(n.add(t.schedule(lc,e,{subscriber:n,counter:0,period:e})),n))}function lc(e){const{subscriber:t,counter:n,period:i}=e;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}class hc extends E{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new C;return this._value}next(e){super.next(this._value=e)}}function uc(e,t){return"function"==typeof t?n=>n.pipe(uc((n,i)=>q(e(n,i)).pipe(H((e,r)=>t(n,e,i,r))))):t=>t.lift(new cc(e))}class cc{constructor(e){this.project=e}call(e,t){return t.subscribe(new dc(e,this.project))}}class dc extends B{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t,e,n)}_innerSub(e,t,n){const i=this.innerSubscription;i&&i.unsubscribe();const r=new D(this,void 0,void 0);this.destination.add(r),this.innerSubscription=L(this,e,t,n,r)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(e,t,n,i,r){this.destination.next(t)}}function pc(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}pc.prototype=Object.create(Error.prototype);const fc=pc;function mc(e){return t=>0===e?su():t.lift(new gc(e))}class gc{constructor(e){if(this.total=e,this.total<0)throw new fc}call(e,t){return t.subscribe(new vc(e,this.total))}}class vc extends g{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}class yc{constructor(e){this.total=e}call(e,t){return t.subscribe(new wc(e,this.total))}}class wc extends g{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}function _c(e,t,n){return function(i){return i.lift(new bc(e,t,n))}}class bc{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new xc(e,this.nextOrObserver,this.error,this.complete))}}class xc extends g{constructor(e,t,n,i){super(e),this._tapNext=w,this._tapError=w,this._tapComplete=w,this._tapError=n||w,this._tapComplete=i||w,r(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||w,this._tapError=t.error||w,this._tapComplete=t.complete||w)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function Cc(e,t){return function(n){return n.lift(new Sc(e,t))}}class Sc{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new kc(e,this.predicate,this.thisArg))}}class kc extends g{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}function Ec(e){return t=>t.lift(new Tc(e))}class Tc{constructor(e){this.notifier=e}call(e,t){const n=new Ic(e),i=L(n,this.notifier);return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}class Ic extends B{constructor(e){super(e),this.seenValue=!1}notifyNext(e,t,n,i,r){this.seenValue=!0,this.complete()}notifyComplete(){}}function Dc(e,t){return new _(t?n=>t.schedule(Ac,0,{error:e,subscriber:n}):t=>t.error(e))}function Ac({error:e,subscriber:t}){t.error(e)}const Oc=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return oc(this.value);case"E":return Dc(this.error);case"C":return su()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class Nc{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new Fc(e,this.delay,this.scheduler))}}class Fc extends g{constructor(e,t,n){super(e),this.delay=t,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,n=t.queue,i=e.scheduler,r=e.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const t=Math.max(0,n[0].time-i.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(Fc.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new Mc(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(Oc.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(Oc.createComplete()),this.unsubscribe()}}class Mc{constructor(e,t){this.time=e,this.notification=t}}class Pc{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new Rc(e,this.dueTime,this.scheduler))}}class Rc extends g{constructor(e,t,n){super(e),this.dueTime=t,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Vc,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function Vc(e){e.debouncedNext()}const zc=e=>null!=e,Lc=e=>zc(e.filters),Bc=(e,t,n)=>i=>e(i)?t(i):n(i),Hc=(...e)=>t=>e.reduceRight((e,t)=>t(e),t),$c={},jc=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;$c[void 0]=(e=>e);const Uc=(e,t)=>{const n=e+t;if($c[n])return $c[n];const i=[];return e.replace(jc,(e,t,n,r)=>{i.push(zc(t)?t:n||r)}),$c[n]=(e=>{let n=e;for(let r=0;r<i.length;r++)if(!zc(n=n[i[r]])&&t)return n;return n}),$c[n]},qc=e=>t=>[e,t],Wc=()=>null,Gc=e=>t=>zc(e(t)),Zc=e=>t=>(e=>zc(e)&&(e=>Array.isArray(e))(e)&&e.length>0)(e(t)),Yc=(e,t)=>Bc(e,t,Wc),Kc=(e,t)=>n=>e(n).map(t).join("~"),Qc=(e=>Hc(...[['"',""],[":","-"]].map(([e,t])=>n=>n.replace(new RegExp(e,"g"),t))))(),Xc=({field:e,dir:t="asc"})=>`${e}-${t}`,Jc=Uc("take"),ed=Uc("aggregates"),td=Uc("skip"),nd=Uc("group"),id=Uc("sort",!0),rd=Kc(id,Xc),sd=Kc(nd,Xc),od=Kc(ed,({field:e,aggregate:t})=>`${e}-${t}`),ad=Hc(e=>`datetime'${e}'`,e=>e.slice(0,e.indexOf(".")),Qc,JSON.stringify,e=>new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))),ld=Hc(qc("page"),({skip:e,take:t})=>Math.floor((e||0)/t)+1),hd=Hc(qc("pageSize"),Jc),ud=Hc(qc("group"),sd),cd=Hc(qc("sort"),rd),dd=Hc(qc("aggregate"),od),pd=(Yc(Gc(td),ld),Yc(Gc(Jc),hd),Yc(Zc(nd),ud),Yc(Gc(ed),dd),Hc(Yc(Zc(id),cd),e=>Object.assign({},e,{sort:(id(e)||[]).filter(({dir:e})=>(e=>!(e=>(e=>null==e)(e)||0===e.trim().length)(e))(e))})),({field:e,operator:t,value:n})=>`${e}~${t}~${n}`),fd=(Bc(e=>(e=>e&&e.getTime)(e.value),Hc(pd,({field:e,value:t,ignoreCase:n,operator:i})=>({value:ad(t),field:e,ignoreCase:n,operator:i})),pd),(e,t,n)=>(t[e]=n,t)),md=e=>t=>{const n=t[e];return zc(n)?n:t[(e=>e.replace(/(^[A-Z])/g,(e,t)=>t.toLowerCase()))(e)]},gd=(md("Member"),md("AggregateMethodName"),md("Value"),e=>t=>Object.keys(t).reduce(e.bind(null,t),{})),vd=gd((e,t,n)=>fd(n.toLowerCase(),t,e[n])),yd=gd((e,t,n)=>fd(n,t,vd(e[n]))),wd=(e,t)=>zc(e)?e:t,_d=Hc(({field:e,hasSubgroups:t,value:n,aggregates:i,items:r})=>({aggregates:yd(i),field:e,items:t?r.map(_d):r,value:n}),e=>({aggregates:e.Aggregates||e.aggregates,field:e.Member||e.member||e.field,hasSubgroups:e.HasSubgroups||e.hasSubgroups||!1,items:e.Items||e.items,value:wd(e.Key,wd(e.key,e.value))})),bd=e=>t=>(n,i,r)=>t(n,e(i,r)),xd=(bd(e=>e),bd(e=>e),(()=>(class{constructor(){this.changes=new E}notify(e){this.changes.next({rtl:e})}get(e){}}))());class Cd{get override(){return!1}ngOnChanges(e){this.register(e),Object.keys(e).some(t=>!e[t].isFirstChange())&&this.service.notifyChanges()}ngOnInit(){this.subscription=this.service.changes.pipe((1,e=>e.lift(new yc(1)))).subscribe(()=>this.register(this))}register(e){Object.keys(e).forEach(e=>this.service.register(e,this[e],this.override))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}const Sd=new Ae("Kendo UI Right-to-Left token"),kd=new Ae("Localization key prefix"),Ed=(()=>(class{constructor(e,t,n){this.prefix=e,this.messageService=t,this._rtl=n,this.changes=new hc({rtl:this._rtl}),this.dictionary={},t&&(this.subscription=t.changes.pipe(H(({rtl:e})=>void 0!==e?e:this._rtl),_c(e=>this._rtl=e)).subscribe(e=>{this.dictionary={},this.changes.next({rtl:e})}))}get rtl(){return this._rtl}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}get(e){const t=this.key(e);return this.dictionary[t]}register(e,t,n=!1){const i=this.key(e);let r=t;if(!n){if(this.dictionary.hasOwnProperty(i))return;r=this.defaultValue(i,t)}this.dictionary[i]=r}notifyChanges(){this.changes.next({rtl:this.rtl})}key(e){return this.prefix+"."+e}defaultValue(e,t){if(!this.messageService)return t;const n=this.messageService.get(e);return void 0===n?t:n}}))();function Td(e){return t=>t.lift(new Id(e))}class Id{constructor(e){this.predicate=e}call(e,t){return t.subscribe(new Dd(e,this.predicate))}}class Dd extends g{constructor(e,t){super(e),this.predicate=t,this.skipping=!0,this.index=0}_next(e){const t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)}tryCallPredicate(e){try{const n=this.predicate(e,this.index++);this.skipping=Boolean(n)}catch(t){this.destination.error(t)}}}function Ad(e,t){return W(e,t,1)}var Od=function(e){return e[e.backspace=8]="backspace",e[e.tab=9]="tab",e[e.enter=13]="enter",e[e.shift=16]="shift",e[e.ctrl=17]="ctrl",e[e.alt=18]="alt",e[e["pause/break"]=19]="pause/break",e[e["caps lock"]=20]="caps lock",e[e.esc=27]="esc",e[e.space=32]="space",e[e["page up"]=33]="page up",e[e["page down"]=34]="page down",e[e.end=35]="end",e[e.home=36]="home",e[e.left=37]="left",e[e.up=38]="up",e[e.right=39]="right",e[e.down=40]="down",e[e.insert=45]="insert",e[e.delete=46]="delete",e[e.command=91]="command",e[e["left command"]=91]="left command",e[e["right command"]=93]="right command",e[e["numpad *"]=106]="numpad *",e[e["numpad +"]=107]="numpad +",e[e["numpad -"]=109]="numpad -",e[e["numpad ."]=110]="numpad .",e[e["numpad /"]=111]="numpad /",e[e["num lock"]=144]="num lock",e[e["scroll lock"]=145]="scroll lock",e[e["my computer"]=182]="my computer",e[e["my calculator"]=183]="my calculator",e[e[";"]=186]=";",e[e["="]=187]="=",e[e[","]=188]=",",e[e["-"]=189]="-",e[e["."]=190]=".",e[e["/"]=191]="/",e[e["`"]=192]="`",e[e["["]=219]="[",e[e["\\"]=220]="\\",e[e["]"]=221]="]",e[e["'"]=222]="'",e}({});const Nd=e=>null!=e,Fd=()=>{let e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},Md=()=>"undefined"!=typeof window,Pd=(e,t,n=!1)=>{if(Nd(e))return n?t&&Nd(e[t])?e[t]:e:t?e[t]:e},Rd=(e,t,n)=>{if(!Nd(e))return!1;let i=String(e);return n&&(i=i.toLowerCase()),0===i.indexOf(t)},Vd=(()=>(class{constructor(){this.onSelect=new xr,this.onChange=new xr,this.onFocus=new xr,this.total=0,this.selectedIndices=[]}getTotal(){return this.total}isSelected(e){return Nd(this.selectedIndices.find(t=>t===e))}isFocused(e){return e===this.focused}focus(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))}select(e){this.isSelected(e)||(this.selectedIndices=[e],this.focused=e,this.onSelect.emit({indices:[e],newSelection:Nd(e)}))}add(e){this.isSelected(e)||(this.selectedIndices.push(e),this.focused=e,this.onChange.emit({added:e,indices:this.selectedIndices.slice()}))}unselect(e){if(!this.isSelected(e))return;const t=this.selectedIndices.indexOf(e);this.selectedIndices.splice(t,1),this.focused=e,this.onChange.emit({indices:this.selectedIndices.slice(),removed:e})}change(e){const t=Nd(e)&&!this.isSelected(e);this.selectedIndices=[e],this.focused=e,this.onChange.emit({indices:[e],newSelection:t})}resetSelection(e){this.selectedIndices=e instanceof Array?e:[e],this.focused=this.selectedIndices[this.selectedIndices.length-1]}get selected(){return this.selectedIndices.slice()}get focused(){return this.focusedIndex}set focused(e){this.focusedIndex!==e&&(this.focusedIndex=e,this.onFocus.emit(e))}}))();var zd=function(e){return e[e.Undefined=0]="Undefined",e[e.Open=1]="Open",e[e.Close=2]="Close",e[e.Enter=3]="Enter",e[e.Tab=4]="Tab",e[e.Esc=5]="Esc",e[e.Delete=6]="Delete",e[e.Backspace=7]="Backspace",e[e.Home=8]="Home",e[e.End=9]="End",e[e.Up=10]="Up",e[e.Down=11]="Down",e[e.Left=12]="Left",e[e.Right=13]="Right",e}({});const Ld=(()=>(class{constructor(){this.grouped=!1,this.groupIndices=[]}set data(e){this._data=e,this.grouped=this.isGrouped(e),this.grouped&&(this.groupIndices=this.getGroupIndices(e),this._flatData=this.flatten(e))}get data(){return this.grouped?this._flatData:this._data}get itemsCount(){return Nd(this.data)&&0!==this.data.length?(this.grouped?this._flatData.filter(e=>!e.header):this.data).length:0}isGrouped(e){return Nd(e)&&0!==e.length&&Nd(e[0])&&void 0!==e[0].items}getGroupIndices(e){let t=[];for(let n=0;n<=e.length-1;n++)t[n]=(t[n-1]||0)+e[n].items.length;return t}filter(e){let t=[];if(this.isGrouped(this.data))for(let n=0;n<=this.groupIndices.length-1;n++){const i=this.data[n].items.filter(e);i&&(t=t.concat(i))}else t=this.data.filter(e);return t}indexOf(e,t=0){let n=t=>t===e;return this.grouped&&(n=(t=>t.value===e)),this.findIndex(n,t)}findIndex(e,t=0){let n=-1;if(this.grouped){const i=this._flatData.filter(e=>!e.header&&e.offsetIndex>=t);n=i.findIndex(e),n=i[n]?i[n].offsetIndex:-1}else{const i=this.data.slice(t).findIndex(e);n=-1!==i?i+t:-1}return n}closestGroup(e){for(let t=e;t>=0;t--)if(this._flatData[t].header)return this._flatData[t]}find(e){const t=this.findIndex(e);return this.itemAt(t)}itemAt(e){let t;if(0===this.itemsCount)return t;if(this.grouped){const n=this._flatData.find(t=>!t.header&&t.offsetIndex===e);n&&(t=n.value)}else t=this.data[e];return t}groupAt(e){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find(t=>t.header&&t.index===e)}flatten(e,t,n=0,i=0){let r=[];Nd(t)&&r.push({header:!0,index:i+n,offsetIndex:i,value:t});for(let s=0;s<e.length;s++){let t=[];e[s].items?(t=this.flatten(e[s].items,e[s].value,n,s),n+=e[s].items.length):t.push({header:!1,index:i+n+s+1,offsetIndex:n+s,value:e[s]}),r=r.concat(t)}return r}}))(),Bd=(()=>(class{constructor(e){this.dataService=e,this.itemDisabled=null}isIndexDisabled(e){if(this.itemDisabled){const t=this.dataService.itemAt(e);if(Nd(t))return this.itemDisabled({dataItem:t,index:e});if(Nd(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}}isItemDisabled(e){if(this.itemDisabled){const t=this.dataService.indexOf(e);if(-1!==t)return this.itemDisabled({dataItem:e,index:t});if(Nd(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}}}))();class Hd{constructor(e,t){this.index=e,this.originalEvent=t}}const $d=(()=>(class{constructor(e,t){this.disabledItemsService=e,this.selectionService=t,this.open=new xr,this.close=new xr,this.enter=new xr,this.tab=new xr,this.esc=new xr,this.up=new xr,this.right=new xr,this.down=new xr,this.left=new xr,this.delete=new xr,this.backspace=new xr,this.home=new xr,this.end=new xr}process(e){const t=e.originalEvent.keyCode,n=e.originalEvent.altKey;let i,r=zd.Undefined;n&&t===Od.down?r=zd.Open:n&&t===Od.up?r=zd.Close:t===Od.enter?r=zd.Enter:t===Od.esc?r=zd.Esc:t===Od.tab?r=zd.Tab:t===Od.up?(i=this.next({current:e.current,start:e.min,end:e.max,step:-1}),r=zd.Up):t===Od.left?(i=this.next({current:e.current,start:e.min,end:e.max,step:-1}),r=zd.Left):t===Od.down?(i=this.next({current:e.current,start:e.min,end:e.max,step:1}),r=zd.Down):t===Od.right?(i=this.next({current:e.current,start:e.min,end:e.max,step:1}),r=zd.Right):t===Od.home?(i=this.isDisabled(0)?e.current:0,r=zd.Home):t===Od.end?(i=this.isDisabled(e.max)?e.current:e.max,r=zd.End):t===Od.delete?r=zd.Delete:t===Od.backspace&&(r=zd.Backspace);const s=new Hd(i,e.originalEvent);return r!==zd.Undefined&&this[zd[r].toLowerCase()].emit(s),r}next(e){const{current:t,start:n,end:i,step:r}=e,s=Nd(t)?this.clampIndex(t+r,n,i):n,o=this.firstFocusableIndex(s,n,i,r);return Nd(o)?o:this.selectionService.isSelected(t)&&t>=n?t:this.firstFocusableIndex(s,n,i,-1*r)}clampIndex(e,t,n){return!Nd(e)||e<t?t:e>n?n:e}firstFocusableIndex(e,t,n,i){for(;t<=e&&e<=n;){if(!this.isDisabled(e))return e;e+=i}}isDisabled(e){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(e)}}))();class jd{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class Ud{}const qd=(()=>(class{constructor(e){this.element=e}}))(),Wd=(()=>(class{constructor(e,t,n,i,r,s){this.wrapper=e,this.dataService=t,this.selectionService=n,this.disabledItemsService=i,this.cdr=r,this.zone=s,this.data=[],this.selected=[],this.focused=-1,this.multipleSelection=!1,this.onClick=new xr,this.selectSubscription=Q(this.selectionService.onSelect.pipe(H(e=>e.indices[0])),this.selectionService.onFocus).subscribe(this.scrollToItem.bind(this))}set items(e){this._items=e,this.scrollToItem(e.length&&-1===this.selectionService.focused?0:this.selectionService.focused)}get items(){return this._items}firstVisibleItem(e){const t=this.content.nativeElement.scrollTop;let n;for(let i=0;i<e.length;i++)if(e[i].offsetTop+e[i].clientHeight>t){n=e[i];break}return n}findCurrentGroup(){const e=this.wrapper.nativeElement.querySelectorAll("li[role]");let t;if(e){const n=this.firstVisibleItem(e);if(!n)return this.currentGroup=void 0,void this.cdr.detectChanges();"group"===n.getAttribute("role")?(t=parseInt(n.getAttribute("group-index"),10),this.currentGroup=this.dataService.groupAt(t)):(t=parseInt(n.getAttribute("absolute-index"),10),this.currentGroup=this.dataService.closestGroup(t)),this.cdr.detectChanges()}}index(e,t){return e>0?this.dataService.groupIndices[e-1]+t:t}ngOnChanges(e){this.dataService.grouped&&Ta("data",e)&&(this.currentGroup=this.dataService.itemsCount?this.dataService.groupAt(0):void 0,this.createScrollSubscription())}ngAfterViewInit(){this.show&&this.dataService.grouped&&(this.findCurrentGroup(),this.createScrollSubscription())}ngOnDestroy(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()}getHeight(){return this.height+"px"}getText(e){return Pd(e,this.textField)}getValue(e){return Pd(e,this.valueField)}isDisabled(e){return this.disabledItemsService.isIndexDisabled(e)}scrollToItem(e){const t=this.items.toArray();Nd(t[e])&&-1!==e&&this.scroll(t[e].element)}scroll(e){if(!e)return;const t=e.nativeElement;let n=this.content.nativeElement,i=t.offsetTop,r=n.scrollTop,s=n.clientHeight,o=i+t.offsetHeight;r>i?r=i:o>r+s&&(r=o-s),n.scrollTop=r}createScrollSubscription(){this.dataService.grouped&&!Nd(this.scrollSubscription)&&this.zone.runOutsideAngular(()=>{this.scrollSubscription=ta(this.content.nativeElement,"scroll").subscribe(this.findCurrentGroup.bind(this))})}}))(),Gd=new Ae("dropdowns-touch-enabled"),Zd=(()=>(class{constructor(e,t,n,i,r,s,o,a,l,h,u){this.localization=e,this.popupService=t,this.selectionService=n,this.navigationService=i,this.disabledItemsService=r,this.dataService=s,this._zone=o,this.renderer=a,this.hostElement=l,this.cdr=h,this.touchEnabled=u,this.focusableId=`k-${Fd()}`,this.listHeight=200,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.valueChange=new xr,this.filterChange=new xr,this.selectionChange=new xr,this.open=new xr,this.close=new xr,this.onFocus=new xr,this.onBlur=new xr,this.widgetClasses=!0,this.groupIndices=[],this.listBoxId=Fd(),this.optionPrefix=Fd(),this.filterText="",this.isFocused=!1,this.onTouchedCallback=(e=>{}),this.onChangeCallback=(e=>{}),this.word="",this.last="",this.filterFocused=new xr,this.filterBlurred=new xr,this.wrapperFocused=new xr,this.wrapperBlurred=new xr,this.selectionSubscription=new p,this._open=!1,this._popupSettings={animate:!0},this.direction=e.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.hostElement=l.nativeElement,this.popupMouseDownHandler=this.onMouseDown.bind(this)}get width(){const e=Ea()?this.wrapper.nativeElement.offsetWidth:0,t=this.popupSettings.width||e;return{min:isNaN(e)?e:`${e}px`,max:isNaN(t)?t:`${t}px`}}get height(){const e=this.popupSettings.height;return Nd(e)?`${e}px`:"auto"}get widgetTabIndex(){if(this.disabled)return;const e=Number(this.tabIndex);return isNaN(e)?0:e}get ariaHasPopup(){return!0}get ariaExpanded(){return this.isOpen}get ariaOwns(){return this.listBoxId}get ariaActivedescendant(){return this.optionPrefix+"-"+Pd(this.dataItem,this.valueField)}get noDataLabel(){if(0===this.dataService.itemsCount)return this.noDataText}get appendTo(){const{appendTo:e}=this.popupSettings;if(e&&"root"!==e)return"component"===e?this.container:e}set data(e){this._data=e||[],this.dataService.data=this._data,this.setState()}get data(){return this._data}set value(e){this._value=e,this.cdr.markForCheck()}get value(){return this._value}set popupSettings(e){this._popupSettings=Object.assign({animate:!0},e)}get popupSettings(){return this._popupSettings}set itemDisabled(e){if("function"!=typeof e)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(e)}.`);this.disabledItemsService.itemDisabled=e}set tabIndex(e){this.tabindex=e}get tabIndex(){return this.tabindex}blurComponent(){this.wrapperBlurred.emit()}blurFilterInput(){this.filterBlurred.emit()}focusComponent(){this.wrapperFocused.emit(),this.isFocused||(this.isFocused=!0,this.onFocus.emit())}keydown(e){const t=Nd(this.defaultItem)?-1:0;let n=isNaN(this.selectionService.focused)?this.firstFocusableIndex(t):this.selectionService.focused,i=0;if(this.disabled||this.readonly)return;if(this.filterable&&this.isFocused&&this.isOpen&&(e.keyCode===Od.home||e.keyCode===Od.end))return;const r=Nd(this.selectionService.selected[0]),s=Nd(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused);r&&!s||(e.keyCode===Od.down||e.keyCode===Od.right?i=-1:e.keyCode!==Od.up&&e.keyCode!==Od.left||(i=1));const o=e,a=this.navigationService.process({current:n+i,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:o});a===zd.Undefined||a===zd.Tab||a===zd.Backspace||a===zd.Delete||(a===zd.Left||a===zd.Right)&&this.filterable||a===zd.Enter||o.preventDefault()}keypress(e){this.filterable||this.onKeyPress(e)}click(){this.focus(),this.togglePopup(!this.isOpen)}onResize(){if(this._open){const e=this.popupRef.popupElement,{min:t,max:n}=this.width;e.style.minWidth=t,e.style.width=n}}get dir(){return this.direction}ngOnInit(){this.renderer.removeAttribute(this.hostElement,"tabindex"),this.localizationChangesSubscription=this.localization.changes.subscribe(({rtl:e})=>{this.direction=e?"rtl":"ltr",this.setMessages()}),this.setMessages()}isEmpty(){const e=this.value;return!(0===e||!1===e||e||this.defaultItem)}onFilterFocus(){this.filterFocused.emit()}ngOnDestroy(){this.destroyPopup(),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout),this.localizationChangesSubscription&&this.localizationChangesSubscription.unsubscribe()}ngOnChanges(e){void 0===this.valuePrimitive&&(this.valuePrimitive=!this.valueField),e.hasOwnProperty("value")&&(this.verifySettings(e.value.currentValue),Nd(this.value)||(this._previousDataItem=void 0)),e.hasOwnProperty("defaultItem")&&(this.disabledItemsService.defaultItem=this.defaultItem),/(value|textField|valueField|valuePrimitive|defaultItem|itemDisabled)/g.test(Object.keys(e).join())&&this.setState()}focus(){this.disabled||this.wrapper.nativeElement.focus()}blur(){this.disabled||this.wrapper.nativeElement.blur()}toggle(e){Promise.resolve(null).then(()=>{this._toggle(e)})}_toggle(e){this._open=void 0===e?!this._open:e,this.destroyPopup(),this._open&&this.createPopup()}triggerPopupEvents(e){const t=new jd;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()}togglePopup(e){this.disabled||this.readonly||this.isOpen===e||this.triggerPopupEvents(e)||(!e&&this.filterable&&this.isFocused&&this.focus(),this._toggle(e))}get isOpen(){return this._open}reset(){this._previousDataItem=void 0,this.value=void 0,this.setState()}writeValue(e){this.verifySettings(e),this.value=null===e?void 0:e,Nd(e)||(this._previousDataItem=void 0),this.setState()}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}setDisabledState(e){this.disabled=e}get buttonClasses(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"}get listContainerClasses(){const e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e}get isDisabledDefaultItem(){return this.disabledItemsService.isItemDisabled(this.defaultItem)}getText(){return this.text}getDefaultItemText(){return Pd(this.defaultItem,this.textField)}createPopup(){const e="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:e,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:e,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});const t=this.popupRef.popupElement,{min:n,max:i}=this.width;t.addEventListener("mousedown",this.popupMouseDownHandler),t.style.minWidth=n,t.style.width=i,t.style.height=this.height,t.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),this.optionsList.scrollToItem(this.selectionService.focused)}),this.filterable||this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.togglePopup(!1))}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}updateState({dataItem:e,confirm:t=!1}){this.dataItem=e,this.text=this.prop(this.textField,this.valuePrimitive)(e),t&&(this._previousDataItem=e)}clearState(){this.text=void 0,this.dataItem=void 0}resetSelection(e){const t=!Nd(e);this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=t?this.firstFocusableIndex(0):e}onSelectionChange({dataItem:e}){this.updateState({dataItem:e}),this.selectionChange.emit(e)}subscribeEvents(){Ea()&&(this.selectionSubscription.add(this.selectionService.onSelect.pipe(Cc(e=>this.isOpen),H(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.selectionSubscription.add(Q(this.selectionService.onSelect.pipe(Cc(e=>!this.isOpen)),this.selectionService.onChange).pipe(H(this.itemFromEvent.bind(this)),_c(e=>this.togglePopup(!1))).subscribe(({dataItem:e,value:t,newSelection:n})=>{n&&this.onSelectionChange({dataItem:e});const i=!Nd(e)&&this._previousDataItem,r=t!==this.prop(this.valueField,this.valuePrimitive)(this.value);i?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):r&&(this.value=this.valuePrimitive?t:e,this._previousDataItem=e,this.emitChange(this.value)),this.clearFilter()})),this.navigationSubscription=Q(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe(Td(()=>this.filterable)),this.navigationService.right.pipe(Td(()=>this.filterable)),this.navigationService.home,this.navigationService.end).pipe(Cc(e=>!isNaN(e.index))).subscribe(e=>this.selectionService.select(e.index)),this.openSubscription=this.navigationService.open.subscribe(()=>this.togglePopup(!0)),this.closeSubscription=this.navigationService.close.subscribe(()=>{this.togglePopup(!1),this.focus()}),this.enterSubscription=this.navigationService.enter.pipe(_c(e=>{this.isOpen&&e.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)),this.filterBlurredSubscription=this.filterBlurred.pipe(Ad(()=>ac(10).pipe(mc(1),Ec(this.wrapperFocused)))).subscribe(()=>{this.wrapperBlurred.emit()}),this._zone.runOutsideAngular(()=>{this.componentBlurredSubscription=Q(this.wrapperBlurred.pipe(Ad(()=>ac(10).pipe(mc(1),Ec(this.filterFocused)))),this.navigationService.tab).pipe(_c(e=>e instanceof Hd&&this.focus()),Cc(()=>this.isFocused)).subscribe(()=>this._zone.run(()=>{this.componentBlur()}))}))}unsubscribeEvents(){Ea()&&(this.navigationSubscription.unsubscribe(),this.openSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.componentBlurredSubscription.unsubscribe(),this.filterBlurredSubscription.unsubscribe(),this.selectionSubscription&&this.selectionSubscription.unsubscribe())}itemFromEvent(e){const t=e.indices[0];let n=this.dataService.itemAt(t);n=Nd(n)?n:this.currentOrDefault(t);const i=this.prop(this.valueField,this.valuePrimitive)(n);return{dataItem:n,index:t,newSelection:e.newSelection,value:i}}currentOrDefault(e){return Nd(this.dataItem)&&-1!==e?this.dataItem:this.defaultItem}firstFocusableIndex(e){const t=this.dataService.itemsCount-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e}handleEnter(){this.isOpen&&(this.selectionService.change(this.selectionService.focused),this.focus())}handleEscape(){this.togglePopup(!1),this.clearFilter(),this.focus()}clearFilter(){this.filterable&&this.filterText&&(this.filterText="",this.cdr.markForCheck(),this.filterChange.emit(this.filterText))}verifySettings(e){const t=!Nd(this.valueField)!=!Nd(this.textField);if(ot()){if(this.defaultItem&&this.valueField&&"object"!=typeof this.defaultItem)throw new Error("defaultItem and data items must be of same type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownListComponent/#toc-defaultitem");if(!0===this.valuePrimitive&&Nd(e)&&"object"==typeof e)throw new Error("Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection");if(!1===this.valuePrimitive&&Nd(e)&&"object"!=typeof e)throw new Error("Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection");if(t)throw new Error("Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-bind-to-arrays-of-complex-data")}}componentBlur(){this.isFocused=!1,this.selectionService.change(this.selectionService.selected[0]),this.onBlur.emit(),this.onTouchedCallback()}onMouseDown(e){"input"!==e.target.tagName.toLowerCase()&&e.preventDefault()}onKeyPress(e){if(0===e.which||e.keyCode===Od.enter)return;let t=String.fromCharCode(e.charCode||e.keyCode);this.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),this.word+=t,this.last=t,this.search()}search(){clearTimeout(this.typingTimeout),this.filterable||(this.typingTimeout=setTimeout(()=>{this.word=""},this.delay),this.selectNext())}selectNext(){let e=this.dataService.filter(e=>!e.header).map(e=>this.dataService.grouped?{item:e.value,itemIndex:e.offsetIndex}:{item:e,itemIndex:this.dataService.indexOf(e)});const t=((e,t)=>{for(let n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0})(this.word,this.last);let n,i,r,s=e.length,o=!isNaN(this.selectionService.selected[0]),a=o?this.selectionService.selected[0]:0;for(this.defaultItem&&(r={item:this.defaultItem,itemIndex:-1},s+=1,a+=1),e=((e,t,n)=>{let i=e;return n&&(i=[n].concat(i)),i.slice(t).concat(i.slice(0,t))})(e,a+=t&&o?1:0,r),i=0;i<s;i++){n=Pd(e[i].item,this.textField);const r=Boolean(t&&Rd(n,this.last,this.ignoreCase)),s=Boolean(Rd(n,this.word,this.ignoreCase));if(r||s){i=e[i].itemIndex;break}}i!==s&&this.navigate(i)}emitChange(e){this.onChangeCallback(e),this.valueChange.emit(e)}navigate(e){this.selectionService.select(e)}prop(e,t){return n=>Nd(n)?t?e&&(e=>Nd(e)&&"object"==typeof e)(n)?n[e]:n:n[e]:null}findDataItem({primitive:e,valueField:t,value:n}){const i={dataItem:null,index:-1},r=this.prop(t,e);let s;const o=this.dataService.findIndex(s=this.dataService.grouped?e=>r(e.value)===r(n):e=>r(e)===r(n));return i.dataItem=this.dataService.itemAt(o),i.index=o,i}setState(){const e=this.value,t=this.valueField,n=this.textField,i=this.valuePrimitive;if(this.defaultItem){const n=this.prop(t,i)(this.defaultItem),r=this.prop(t,i)(e);if(!Nd(e)||r===n)return this.updateState({dataItem:this.defaultItem,confirm:!0}),this.resetSelection(-1),void(this.filterable&&this.filterText&&this.dataService.itemsCount&&(this.selectionService.focused=this.firstFocusableIndex(0)))}const r=this.findDataItem({primitive:i,valueField:t,value:e}),s=!(i&&n);r.dataItem?(this.updateState({dataItem:r.dataItem,confirm:!0}),this.resetSelection(r.index)):Nd(e)&&s?(this.updateState({dataItem:e}),this.resetSelection()):this._previousDataItem?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection())}handleFilter(e){this.filterChange.emit(e.target.value)}setMessages(){this._zone.runOutsideAngular(()=>{clearTimeout(this.messagesTimeout),this.messagesTimeout=setTimeout(()=>{this.noDataText=this.localization.get("noDataText"),this.cdr.detectChanges()})})}}))(),Yd=(()=>(class{constructor(e){this.viewContainerRef=e}set templateContext(e){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0),e.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(e.templateRef,e))}}))(),Kd=(()=>(class{constructor(e){this.multipleSelection=!1,this.selectionService=e}get focusedClassName(){return this.selectionService.isFocused(this.index)}get selectedClassName(){return this.selectionService.isSelected(this.index)}onClick(e){e.stopPropagation(),this.multipleSelection?this.selectionService.isSelected(this.index)?this.selectionService.unselect(this.index):this.selectionService.add(this.index):this.selectionService.change(this.index)}}))(),Qd=(()=>(class extends Cd{}))(),Xd=(()=>(class extends Qd{constructor(e){super(),this.service=e}}))(),Jd=(()=>(class{}))(),ep=(()=>(class{}))(),tp=(()=>(class{}))(),np={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i},ip=e=>{let t=null,n=[];for(let i in np)if(np.hasOwnProperty(i)&&(n=e.match(np[i]))){(t={})[i]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||n[2],10);break}return t},rp=Md()&&window.navigator?window.navigator.userAgent:null,sp=rp?ip(rp):null,op=(Md()&&window,sp&&!sp.chrome&&window,sp&&!sp.chrome&&window,(()=>(class{constructor(e,t){this.element=e,this.zone=t}ngOnChanges(){this.focused&&this.nextTick(()=>this.element.nativeElement.focus())}nextTick(e){this.zone.runOutsideAngular(()=>setTimeout(e))}}))()),ap=(()=>(class{}))(),lp=()=>"undefined"!=typeof window,hp={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.(\d+(\.\d+)?)/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},up={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},cp={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i},dp={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i},pp=(e,t,n)=>{for(let i in t)if(t.hasOwnProperty(i)&&t[i].test(e))return i;return void 0!==n?n:e},fp=lp()&&window.navigator?window.navigator.userAgent:null,mp=fp?(e=>{let t=null,n=[];for(let i in cp)if(cp.hasOwnProperty(i)&&(n=e.match(cp[i]))){(t={})[i]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||n[2],10);break}return t})(fp):null,gp=fp?(e=>{let t,n=[];for(let i in hp)if(hp.hasOwnProperty(i)){if(!(n=e.match(hp[i])))continue;if("windows"===i&&"plugins"in window.navigator)return null;const r={};return r.device=i,r.browser=pp(e,dp,"default"),r.name=pp(i,up),r[r.name]=!0,r.majorVersion=n[2],r.minorVersion=n[3].replace("_","."),t=r.minorVersion.replace(".","").substr(0,2),r.flatVersion=r.majorVersion+t+new Array(3-(t.length<3?t.length:2)).join("0"),r.cordova=void 0!==typeof window.PhoneGap||void 0!==typeof window.cordova,r.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||r.cordova,r}return null})(fp):null;lp()&&window,mp&&!mp.chrome&&window,mp&&!mp.chrome&&window;var vp={extend:function(e){for(let t in this)"extend"!==t&&(e[t]=this[t])},observers:function(){return this._observers=this._observers||[],this._observers},addObserver:function(e){return this._observers?this._observers.push(e):this._observers=[e],this},removeObserver:function(e){const t=this.observers(),n=t.indexOf(e);return-1!==n&&t.splice(n,1),this},trigger:function(e,t){const n=this._observers;if(n&&!this._suspended)for(let i=0;i<n.length;i++){let r=n[i];r[e]&&r[e](t)}return this},optionsChange:function(e={}){e.element=this,this.trigger("optionsChange",e)},geometryChange:function(){this.trigger("geometryChange",{element:this})},suspend:function(){return this._suspended=(this._suspended||0)+1,this},resume:function(){return this._suspended=Math.max((this._suspended||0)-1,0),this},_observerField:function(e,t){this[e]&&this[e].removeObserver(this),this[e]=t,t.addObserver(this)}};const yp="undefined"!=typeof window?window:{},wp=yp.requestAnimationFrame||yp.webkitRequestAnimationFrame||yp.mozRequestAnimationFrame||yp.oRequestAnimationFrame||yp.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)};function _p(e){wp.call(yp,e)}class bp{}const xp=/&/g,Cp=/</g,Sp=/"/g,kp=/'/g,Ep=/>/g;function Tp(e){return String(e).replace(xp,"&amp;").replace(Cp,"&lt;").replace(Ep,"&gt;").replace(Sp,"&quot;").replace(kp,"&#39;")}function Ip(e){return"function"==typeof e}function Dp(e){return"string"==typeof e?[e]:e}function Ap(){this._defaultPrevented=!0}function Op(){return!0===this._defaultPrevented}var Np=class extends bp{constructor(){super(),this._events={}}bind(e,t,n){const i=Dp(e),r=Ip(t),s=i.length;if(void 0===t){for(let t in e)this.bind(t,e[t]);return this}for(let o=0;o<s;o++){const e=i[o];let s=r?t:t[e];if(s){if(n){const t=s;(s=(()=>{this.unbind(e,s),t.apply(this,arguments)})).original=t}(this._events[e]=this._events[e]||[]).push(s)}}return this}one(e,t){return this.bind(e,t,!0)}first(e,t){const n=Dp(e),i=Ip(t);for(let r=0,s=n.length;r<s;r++){const e=n[r],s=i?t:t[e];s&&(this._events[e]=this._events[e]||[]).unshift(s)}return this}trigger(e,t={}){let n=this._events[e];if(n){const e=n.length;t.sender=this,t._defaultPrevented=!1,t.preventDefault=Ap,t.isDefaultPrevented=Op,n=n.slice();for(let i=0;i<e;i++)n[i].call(this,t);return!0===t._defaultPrevented}return!1}unbind(e,t){const n=this._events[e];if(void 0===e)this._events={};else if(n)if(t)for(let i=n.length-1;i>=0;i--)n[i]!==t&&n[i].original!==t||n.splice(i,1);else this._events[e]=[];return this}};const Fp={};"undefined"!=typeof window&&(Fp.browser=function(e){const t={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};let n;for(let i in t)if(t.hasOwnProperty(i)){const r=e.match(t[i]);if(r){(n={})[i]=!0,n[r[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,n.version=parseInt(document.documentMode||r[2],10);break}}return n}(window.navigator.userAgent));var Mp=Fp;function Pp(){return(new Date).getTime()}var Rp={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};const Vp=Mp.browser;let zp=e=>{const t=Object.keys(Rp);t.push("transparent");const n=new RegExp("^("+t.join("|")+")(\\W|$)","i");return zp=(e=>n.exec(e)),n.exec(e)};class Lp extends bp{constructor(){super()}toHSV(){return this}toRGB(){return this}toHex(){return this.toBytes().toHex()}toBytes(){return this}toCss(){return"#"+this.toHex()}toCssRgba(){const e=this.toBytes();return`rgba(${e.r}, ${e.g}, ${e.b}, ${parseFloat(Number(this.a).toFixed(3))})`}toDisplay(){return Vp.msie&&Vp.version<9?this.toCss():this.toCssRgba()}equals(e){return e===this||null!==e&&this.toCssRgba()===Wp(e).toCssRgba()}diff(e){if(null===e)return NaN;const t=this.toBytes(),n=e.toBytes();return Math.sqrt(Math.pow(.3*(t.r-n.r),2)+Math.pow(.59*(t.g-n.g),2)+Math.pow(.11*(t.b-n.b),2))}clone(){let e=this.toBytes();return e===this&&(e=new Hp(e.r,e.g,e.b,e.a)),e}}class Bp extends Lp{constructor(e,t,n,i){super(),this.r=e,this.g=t,this.b=n,this.a=i}toHSV(){const{r:e,g:t,b:n}=this,i=Math.min(e,t,n),r=Math.max(e,t,n),s=r-i,o=r;let a,l;return 0===s?new jp(0,0,o,this.a):(0!==r?(l=s/r,a=e===r?(t-n)/s:t===r?2+(n-e)/s:4+(e-t)/s,(a*=60)<0&&(a+=360)):(l=0,a=-1),new jp(a,l,o,this.a))}toHSL(){const{r:e,g:t,b:n}=this,i=Math.max(e,t,n),r=Math.min(e,t,n);let s,o,a=(i+r)/2;if(i===r)s=o=0;else{const l=i-r;switch(o=a>.5?l/(2-i-r):l/(i+r),i){case e:s=(t-n)/l+(t<n?6:0);break;case t:s=(n-e)/l+2;break;case n:s=(e-t)/l+4}}return new Up(60*s,100*o,100*a,this.a)}toBytes(){return new Hp(255*this.r,255*this.g,255*this.b,this.a)}}class Hp extends Bp{constructor(e,t,n,i){super(Math.round(e),Math.round(t),Math.round(n),i)}toRGB(){return new Bp(this.r/255,this.g/255,this.b/255,this.a)}toHSV(){return this.toRGB().toHSV()}toHSL(){return this.toRGB().toHSL()}toHex(){return $p(this.r,2)+$p(this.g,2)+$p(this.b,2)}toBytes(){return this}}function $p(e,t,n="0"){let i=e.toString(16);for(;t>i.length;)i=n+i;return i}class jp extends Lp{constructor(e,t,n,i){super(),this.h=e,this.s=t,this.v=n,this.a=i}toRGB(){let e,t,n,{h:i,s:r,v:s}=this;if(0===r)e=t=n=s;else{i/=60;const o=Math.floor(i),a=i-o,l=s*(1-r),h=s*(1-r*a),u=s*(1-r*(1-a));switch(o){case 0:e=s,t=u,n=l;break;case 1:e=h,t=s,n=l;break;case 2:e=l,t=s,n=u;break;case 3:e=l,t=h,n=s;break;case 4:e=u,t=l,n=s;break;default:e=s,t=l,n=h}}return new Bp(e,t,n,this.a)}toHSL(){return this.toRGB().toHSL()}toBytes(){return this.toRGB().toBytes()}}class Up extends Lp{constructor(e,t,n,i){super(),this.h=e,this.s=t,this.l=n,this.a=i}toRGB(){let e,t,n,i=this.h/360,r=this.s/100,s=this.l/100;if(0===r)e=t=n=s;else{const o=s<.5?s*(1+r):s+r-s*r,a=2*s-o;e=qp(a,o,i+1/3),t=qp(a,o,i),n=qp(a,o,i-1/3)}return new Bp(e,t,n,this.a)}toHSV(){return this.toRGB().toHSV()}toBytes(){return this.toRGB().toBytes()}}function qp(e,t,n){let i=n;return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function Wp(e,t){let n,i;if(null==e||"none"===e)return null;if(e instanceof Lp)return e;let r=e.toLowerCase();if(n=zp(r))return(r="transparent"===n[1]?new Bp(1,1,1,0):Wp(Rp[n[1]],t)).match=[n[1]],r;if((n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(r))?i=new Hp(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),1):(n=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(r))?i=new Hp(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),1):(n=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(r))?i=new Hp(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),1):(n=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(r))?i=new Hp(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),parseFloat(n[4])):(n=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(r))?i=new Bp(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,1):(n=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(r))&&(i=new Bp(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,parseFloat(n[4]))),i)i.match=n;else if(!t)throw new Error("Cannot parse color: "+r);return i}function Gp(e,t){return e.push.apply(e,t),e}const Zp={1:"i",10:"x",100:"c",2:"ii",20:"xx",200:"cc",3:"iii",30:"xxx",300:"ccc",4:"iv",40:"xl",400:"cd",5:"v",50:"l",500:"d",6:"vi",60:"lx",600:"dc",7:"vii",70:"lxx",700:"dcc",8:"viii",80:"lxxx",800:"dccc",9:"ix",90:"xc",900:"cm",1000:"m"};function Yp(e){const t=[1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1];let n="";for(;e>0;)e<t[0]?t.shift():(n+=Zp[t[0]],e-=t[0]);return n}function Kp(){let e,t;const n=new Promise((i,r)=>{e=(e=>(n._state="resolved",i(e),n)),t=(e=>(n._state="rejected",r(e),n))});return n._state="pending",n.resolve=e,n.reject=t,n.state=(()=>n._state),n}const Qp="undefined";function Xp(e){return typeof e!==Qp}let Jp=1;function ef(){return"kdef"+Jp++}const tf=Math.PI/180,nf=Number.MAX_VALUE,rf=-Number.MAX_VALUE;function sf(e){return e/tf}function of(e){return""===e||null===e||"none"===e||"transparent"===e||!Xp(e)}function af(e){if(e)return e[e.length-1]}function lf(e,t){return e.length<2?e.slice():function e(n){if(n.length<=1)return n;var i=Math.floor(n.length/2),r=n.slice(0,i),s=n.slice(i);return function(e,n){for(var i=[],r=0,s=0,o=0;r<e.length&&s<n.length;)t(e[r],n[s])<=0?i[o++]=e[r++]:i[o++]=n[s++];return r<e.length&&i.push.apply(i,e.slice(r)),s<n.length&&i.push.apply(i,n.slice(s)),i}(r=e(r),s=e(s))}(e)}function hf(e){return e*tf}function uf(e,t){const n=(i=t)?Math.pow(10,i):1;var i;return Math.round(e*n)/n}function cf(e,t){return Xp(e)?e:t}function df(e,t){for(let n in t){const i=n.trim().split(" ");for(let r=0;r<i.length;r++)e.addEventListener(i[r],t[n],!1)}}function pf(e,t){const n={},i=window.getComputedStyle(e)||{},r=Array.isArray(t)?t:[t];for(let s=0;s<r.length;s++){let e=r[s];n[e]=i[e]}return n}function ff(e){return isNaN(e)?e:e+"px"}function mf(e,t){if(!t){const t=pf(e,["width","height"]);return{width:parseInt(t.width,10),height:parseInt(t.height,10)}}{const{width:n,height:i}=t;Xp(n)&&(e.style.width=ff(n)),Xp(i)&&(e.style.height=ff(i))}}function gf(e,t={}){for(let n in t){const i=n.trim().split(" ");for(let r=0;r<i.length;r++)e.removeEventListener(i[r],t[n],!1)}}var vf=class extends bp{constructor(e){super(),this._size=e,this._length=0,this._map={}}put(e,t){const n=this._map,i={key:e,value:t};n[e]=i,this._head?(this._tail.newer=i,i.older=this._tail,this._tail=i):this._head=this._tail=i,this._length>=this._size?(n[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++}get(e){const t=this._map[e];if(t)return t===this._head&&t!==this._tail&&(this._head=t.newer,this._head.older=null),t!==this._tail&&(t.older&&(t.older.newer=t.newer,t.newer.older=t.older),t.older=this._tail,t.newer=null,this._tail.newer=t,this._tail=t),t.value}};const yf=/\r?\n|\r|\t/g,wf=" ";function _f(e){return String(e).replace(yf,wf)}const bf={baselineMarkerSize:1};let xf;"undefined"!=typeof document&&((xf=document.createElement("div")).style.cssText="position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: pre!important;");var Cf=(()=>{class e extends bp{constructor(e){super(),this._cache=new vf(1e3),this.options=Object.assign({},bf,e)}measure(e,t,n={}){if(!e)return{width:0,height:0,baseline:0};const i=function(e){let t=2166136261;for(let n=0;n<e.length;++n)t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24),t^=e.charCodeAt(n);return t>>>0}(e+function(e){const t=[];for(let n in e)t.push(n+e[n]);return t.sort().join("")}(t)),r=this._cache.get(i);if(r)return r;const s={width:0,height:0,baseline:0},o=n.box||xf,a=this._baselineMarker().cloneNode(!1);for(let h in t){let e=t[h];void 0!==e&&(o.style[h]=e)}const l=!1!==n.normalizeText?_f(e):String(e);return o.textContent=l,o.appendChild(a),document.body.appendChild(o),l.length&&(s.width=o.offsetWidth-this.options.baselineMarkerSize,s.height=o.offsetHeight,s.baseline=a.offsetTop+this.options.baselineMarkerSize),s.width>0&&s.height>0&&this._cache.put(i,s),o.parentNode.removeChild(o),s}_baselineMarker(){const e=document.createElement("div");return e.style.cssText="display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;",e}}return e.current=new e,e})();function Sf(e,t,n){return Cf.current.measure(e,t,n)}const kf={}.toString;class Ef extends bp{constructor(e,t=""){super(),this.prefix=t;for(let n in e){let t=e[n];t=this._wrap(t,n),this[n]=t}}get(e){const t=e.split(".");let n=this;for(;t.length&&n;)n=n[t.shift()];return n}set(e,t){this.get(e)!==t&&(this._set(e,this._wrap(t,e)),this.optionsChange({field:this.prefix+e,value:t}))}_set(e,t){const n=e.indexOf(".")>=0;let i=this,r=e;if(n){const e=r.split(".");let t=this.prefix;for(;e.length>1;){t+=(r=e.shift())+".";let n=i[r];n||((n=new Ef({},t)).addObserver(this),i[r]=n),i=n}r=e[0]}i._clear(r),i[r]=t}_clear(e){const t=this[e];t&&t.removeObserver&&t.removeObserver(this)}_wrap(e,t){const n=kf.call(e);let i=e;return null!==i&&Xp(i)&&"[object Object]"===n&&(e instanceof Ef||e instanceof bp||(i=new Ef(i,this.prefix+t+".")),i.addObserver(this)),i}}vp.extend(Ef.prototype);var Tf=Ef;function If(e){return function(t){return this[e]!==t&&(this[e]=t,this.geometryChange()),this}}function Df(e){return function(){return this[e]}}function Af(e,t){for(let n=0;n<t.length;n++){let i=t[n],r=i.charAt(0).toUpperCase()+i.substring(1,i.length);e["set"+r]=If(i),e["get"+r]=Df(i)}}var Of=(()=>{class e extends bp{constructor(e=0,t=0,n=0,i=0,r=0,s=0){super(),this.a=e,this.b=t,this.c=n,this.d=i,this.e=r,this.f=s}multiplyCopy(t){return new e(this.a*t.a+this.c*t.b,this.b*t.a+this.d*t.b,this.a*t.c+this.c*t.d,this.b*t.c+this.d*t.d,this.a*t.e+this.c*t.f+this.e,this.b*t.e+this.d*t.f+this.f)}invert(){const{a:t,b:n,c:i,d:r,e:s,f:o}=this,a=t*r-n*i;return 0===a?null:new e(r/a,-n/a,-i/a,t/a,(i*o-r*s)/a,(n*s-t*o)/a)}clone(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)}equals(e){return!!e&&this.a===e.a&&this.b===e.b&&this.c===e.c&&this.d===e.d&&this.e===e.e&&this.f===e.f}round(e){return this.a=uf(this.a,e),this.b=uf(this.b,e),this.c=uf(this.c,e),this.d=uf(this.d,e),this.e=uf(this.e,e),this.f=uf(this.f,e),this}toArray(e){const t=[this.a,this.b,this.c,this.d,this.e,this.f];if(Xp(e))for(let n=0;n<t.length;n++)t[n]=uf(t[n],e);return t}toString(e,t=","){return this.toArray(e).join(t)}static translate(t,n){return new e(1,0,0,1,t,n)}static unit(){return new e(1,0,0,1,0,0)}static rotate(t,n,i){const r=new e;return r.a=Math.cos(hf(t)),r.b=Math.sin(hf(t)),r.c=-r.b,r.d=r.a,r.e=n-n*r.a+i*r.b||0,r.f=i-i*r.a-n*r.b||0,r}static scale(t,n){return new e(t,0,0,n,0,0)}}return e.IDENTITY=e.unit(),e})();function Nf(e){return e&&"function"==typeof e.matrix?e.matrix():e}class Ff extends bp{constructor(e,t){super(),this.x=e||0,this.y=t||0}equals(e){return e&&e.x===this.x&&e.y===this.y}clone(){return new Ff(this.x,this.y)}rotate(e,t){const n=Ff.create(t)||Ff.ZERO;return this.transform(Of.rotate(e,n.x,n.y))}translate(e,t){return this.x+=e,this.y+=t,this.geometryChange(),this}translateWith(e){return this.translate(e.x,e.y)}move(e,t){return this.x=this.y=0,this.translate(e,t)}scale(e,t=e){return this.x*=e,this.y*=t,this.geometryChange(),this}scaleCopy(e,t){return this.clone().scale(e,t)}transform(e){const t=Nf(e),{x:n,y:i}=this;return this.x=t.a*n+t.c*i+t.e,this.y=t.b*n+t.d*i+t.f,this.geometryChange(),this}transformCopy(e){const t=this.clone();return e&&t.transform(e),t}distanceTo(e){const t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)}round(e){return this.x=uf(this.x,e),this.y=uf(this.y,e),this.geometryChange(),this}toArray(e){const t=Xp(e);return[t?uf(this.x,e):this.x,t?uf(this.y,e):this.y]}toString(e,t=" "){let{x:n,y:i}=this;return Xp(e)&&(n=uf(n,e),i=uf(i,e)),n+t+i}static create(e,t){if(Xp(e))return e instanceof Ff?e:1===arguments.length&&2===e.length?new Ff(e[0],e[1]):new Ff(e,t)}static min(){let e=nf,t=nf;for(let n=0;n<arguments.length;n++){let i=arguments[n];e=Math.min(i.x,e),t=Math.min(i.y,t)}return new Ff(e,t)}static max(){let e=rf,t=rf;for(let n=0;n<arguments.length;n++){const i=arguments[n];e=Math.max(i.x,e),t=Math.max(i.y,t)}return new Ff(e,t)}static minPoint(){return new Ff(rf,rf)}static maxPoint(){return new Ff(nf,nf)}static get ZERO(){return new Ff(0,0)}}Af(Ff.prototype,["x","y"]),vp.extend(Ff.prototype);var Mf=Ff;class Pf extends bp{constructor(e,t){super(),this.width=e||0,this.height=t||0}equals(e){return e&&e.width===this.width&&e.height===this.height}clone(){return new Pf(this.width,this.height)}toArray(e){const t=Xp(e);return[t?uf(this.width,e):this.width,t?uf(this.height,e):this.height]}static create(e,t){if(Xp(e))return e instanceof Pf?e:1===arguments.length&&2===e.length?new Pf(e[0],e[1]):new Pf(e,t)}static get ZERO(){return new Pf(0,0)}}Af(Pf.prototype,["width","height"]),vp.extend(Pf.prototype);var Rf=Pf;class Vf extends bp{constructor(e=new Mf,t=new Rf){super(),this.setOrigin(e),this.setSize(t)}clone(){return new Vf(this.origin.clone(),this.size.clone())}equals(e){return e&&e.origin.equals(this.origin)&&e.size.equals(this.size)}setOrigin(e){return this._observerField("origin",Mf.create(e)),this.geometryChange(),this}getOrigin(){return this.origin}setSize(e){return this._observerField("size",Rf.create(e)),this.geometryChange(),this}getSize(){return this.size}width(){return this.size.width}height(){return this.size.height}topLeft(){return this.origin.clone()}bottomRight(){return this.origin.clone().translate(this.width(),this.height())}topRight(){return this.origin.clone().translate(this.width(),0)}bottomLeft(){return this.origin.clone().translate(0,this.height())}center(){return this.origin.clone().translate(this.width()/2,this.height()/2)}bbox(e){const t=this.topLeft().transformCopy(e),n=this.topRight().transformCopy(e),i=this.bottomRight().transformCopy(e),r=this.bottomLeft().transformCopy(e);return Vf.fromPoints(t,n,i,r)}transformCopy(e){return Vf.fromPoints(this.topLeft().transform(e),this.bottomRight().transform(e))}expand(e,t=e){return this.size.width+=2*e,this.size.height+=2*t,this.origin.translate(-e,-t),this}expandCopy(e,t){return this.clone().expand(e,t)}containsPoint(e){const t=this.origin,n=this.bottomRight();return!(e.x<t.x||e.y<t.y||n.x<e.x||n.y<e.y)}_isOnPath(e,t){const n=this.expandCopy(t,t),i=this.expandCopy(-t,-t);return n.containsPoint(e)&&!i.containsPoint(e)}static fromPoints(){const e=Mf.min.apply(null,arguments),t=Mf.max.apply(null,arguments),n=new Rf(t.x-e.x,t.y-e.y);return new Vf(e,n)}static union(e,t){return Vf.fromPoints(Mf.min(e.topLeft(),t.topLeft()),Mf.max(e.bottomRight(),t.bottomRight()))}static intersect(e,t){const n={left:e.topLeft().x,top:e.topLeft().y,right:e.bottomRight().x,bottom:e.bottomRight().y},i={left:t.topLeft().x,top:t.topLeft().y,right:t.bottomRight().x,bottom:t.bottomRight().y};if(n.left<=i.right&&i.left<=n.right&&n.top<=i.bottom&&i.top<=n.bottom)return Vf.fromPoints(new Mf(Math.max(n.left,i.left),Math.max(n.top,i.top)),new Mf(Math.min(n.right,i.right),Math.min(n.bottom,i.bottom)))}}vp.extend(Vf.prototype);var zf=Vf;class Lf extends bp{constructor(e=Of.unit()){super(),this._matrix=e}clone(){return new Lf(this._matrix.clone())}equals(e){return e&&e._matrix.equals(this._matrix)}translate(e,t){return this._matrix=this._matrix.multiplyCopy(Of.translate(e,t)),this._optionsChange(),this}scale(e,t=e,n=null){let i=n;return i&&(i=Mf.create(i),this._matrix=this._matrix.multiplyCopy(Of.translate(i.x,i.y))),this._matrix=this._matrix.multiplyCopy(Of.scale(e,t)),i&&(this._matrix=this._matrix.multiplyCopy(Of.translate(-i.x,-i.y))),this._optionsChange(),this}rotate(e,t){const n=Mf.create(t)||Mf.ZERO;return this._matrix=this._matrix.multiplyCopy(Of.rotate(e,n.x,n.y)),this._optionsChange(),this}multiply(e){const t=Nf(e);return this._matrix=this._matrix.multiplyCopy(t),this._optionsChange(),this}matrix(e){return e?(this._matrix=e,this._optionsChange(),this):this._matrix}_optionsChange(){this.optionsChange({field:"transform",value:this})}}vp.extend(Lf.prototype);var Bf=Lf;function Hf(e){return null===e?null:e instanceof Bf?e:new Bf(e)}class $f extends bp{constructor(e){super(),this._initOptions(e)}_initOptions(e={}){const{clip:t,transform:n}=e;n&&(e.transform=Hf(n)),t&&!t.id&&(t.id=ef()),this.options=new Tf(e),this.options.addObserver(this)}transform(e){if(!Xp(e))return this.options.get("transform");this.options.set("transform",Hf(e))}parentTransform(){let e,t=this;for(;t.parent;){let n=(t=t.parent).transform();n&&(e=n.matrix().multiplyCopy(e||Of.unit()))}if(e)return Hf(e)}currentTransform(e=this.parentTransform()){const t=Nf(this.transform());let n,i=Nf(e);if(n=t&&i?i.multiplyCopy(t):t||i)return Hf(n)}visible(e){return Xp(e)?(this.options.set("visible",e),this):!1!==this.options.get("visible")}clip(e){const t=this.options;return Xp(e)?(e&&!e.id&&(e.id=ef()),t.set("clip",e),this):t.get("clip")}opacity(e){return Xp(e)?(this.options.set("opacity",e),this):cf(this.options.get("opacity"),1)}clippedBBox(e){const t=this._clippedBBox(e);if(t){const n=this.clip();return n?zf.intersect(t,n.bbox(e)):t}}containsPoint(e,t){if(this.visible()){const n=this.currentTransform(t);let i=e;return n&&(i=e.transformCopy(n.matrix().invert())),this._hasFill()&&this._containsPoint(i)||this._isOnPath&&this._hasStroke()&&this._isOnPath(i)}return!1}_hasFill(){const e=this.options.fill;return e&&!of(e.color)}_hasStroke(){const e=this.options.stroke;return e&&e.width>0&&!of(e.color)}_clippedBBox(e){return this.bbox(e)}}$f.prototype.nodeType="Element",vp.extend($f.prototype);var jf=$f;function Uf(e,t,n,i){let r=0,s=0;return i&&(r=Math.atan2(i.c*n,i.a*t),0!==i.b&&(s=Math.atan2(i.d*n,i.b*t))),{x:r,y:s}}const qf=Math.PI/2;class Wf extends bp{constructor(e=new Mf,t=0){super(),this.setCenter(e),this.setRadius(t)}setCenter(e){return this._observerField("center",Mf.create(e)),this.geometryChange(),this}getCenter(){return this.center}equals(e){return e&&e.center.equals(this.center)&&e.radius===this.radius}clone(){return new Wf(this.center.clone(),this.radius)}pointAt(e){return this._pointAt(hf(e))}bbox(e){const t=Uf(0,this.radius,this.radius,e);let n=Mf.maxPoint(),i=Mf.minPoint();for(let r=0;r<4;r++){let s=this._pointAt(t.x+r*qf).transformCopy(e),o=this._pointAt(t.y+r*qf).transformCopy(e),a=new Mf(s.x,o.y);n=Mf.min(n,a),i=Mf.max(i,a)}return zf.fromPoints(n,i)}_pointAt(e){const{center:t,radius:n}=this;return new Mf(t.x+n*Math.cos(e),t.y+n*Math.sin(e))}containsPoint(e){const{center:t,radius:n}=this;return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<=Math.pow(n,2)}_isOnPath(e,t){const{center:n,radius:i}=this,r=n.distanceTo(e);return i-t<=r&&r<=i+t}}Af(Wf.prototype,["radius"]),vp.extend(Wf.prototype);var Gf=Wf,Zf={extend:function(e){e.fill=this.fill,e.stroke=this.stroke},fill:function(e,t){const n=this.options;if(Xp(e)){if(e&&"Gradient"!==e.nodeType){const i={color:e};Xp(t)&&(i.opacity=t),n.set("fill",i)}else n.set("fill",e);return this}return n.get("fill")},stroke:function(e,t,n){return Xp(e)?(this.options.set("stroke.color",e),Xp(t)&&this.options.set("stroke.width",t),Xp(n)&&this.options.set("stroke.opacity",n),this):this.options.get("stroke")}};const Yf=Of.IDENTITY.toString();var Kf={extend:function(e){e.bbox=this.bbox,e.geometryChange=this.geometryChange},bbox:function(e){const t=Nf(this.currentTransform(e)),n=t?t.toString():Yf;let i;this._bboxCache&&this._matrixHash===n?i=this._bboxCache.clone():(i=this._bbox(t),this._bboxCache=i?i.clone():null,this._matrixHash=n);const r=this.options.get("stroke.width");return r&&i&&i.expand(r/2),i},geometryChange:function(){delete this._bboxCache,this.trigger("geometryChange",{element:this})}};function Qf(e){const t="_"+e;return function(e){return Xp(e)?(this._observerField(t,e),this.geometryChange(),this):this[t]}}function Xf(e,t){for(let n=0;n<t.length;n++)e[t[n]]=Qf(t[n])}const Jf="#000";class em extends jf{constructor(e=new Gf,t={}){super(t),this.geometry(e),Xp(this.options.stroke)||this.stroke(Jf)}rawBBox(){return this._geometry.bbox()}_bbox(e){return this._geometry.bbox(e)}_containsPoint(e){return this.geometry().containsPoint(e)}_isOnPath(e){return this.geometry()._isOnPath(e,this.options.stroke.width/2)}}em.prototype.nodeType="Circle",Zf.extend(em.prototype),Kf.extend(em.prototype),Xf(em.prototype,["geometry"]);var tm=em;const nm=10;function im(e,t,n=nm){return 0===uf(Math.abs(e-t),n)}function rm(e,t,n){return e<t||im(e,t,n)}const sm=45,om=Math.pow;class am extends bp{constructor(e=new Mf,t={}){super(),this.setCenter(e),this.radiusX=t.radiusX,this.radiusY=t.radiusY||t.radiusX,this.startAngle=t.startAngle,this.endAngle=t.endAngle,this.anticlockwise=t.anticlockwise||!1,this.xRotation=t.xRotation}clone(){return new am(this.center,{radiusX:this.radiusX,radiusY:this.radiusY,startAngle:this.startAngle,endAngle:this.endAngle,anticlockwise:this.anticlockwise})}setCenter(e){return this._observerField("center",Mf.create(e)),this.geometryChange(),this}getCenter(){return this.center}pointAt(e){const t=this.center,n=hf(e);return new Mf(t.x+this.radiusX*Math.cos(n),t.y+this.radiusY*Math.sin(n))}curvePoints(){const e=this.startAngle,t=this.anticlockwise?-1:1,n=[this.pointAt(e)],i=this._arcInterval(),r=i.endAngle-i.startAngle,s=Math.ceil(r/sm),o=r/s;let a,l=e;this.xRotation&&(a=Hf().rotate(this.xRotation,this.center));for(let h=1;h<=s;h++){const e=l+t*o,i=this._intervalCurvePoints(l,e,a);n.push(i.cp1,i.cp2,i.p2),l=e}return n}bbox(e){const t=this._arcInterval(),n=t.startAngle,i=t.endAngle,r=Uf(0,this.radiusX,this.radiusY,e),s=sf(r.x),o=sf(r.y),a=this.pointAt(i).transformCopy(e);let l=hm(s,n),h=hm(o,n),u=this.pointAt(n).transformCopy(e),c=Mf.min(u,a),d=Mf.max(u,a);for(;l<i||h<i;){let t,n;l<i&&(t=this.pointAt(l).transformCopy(e),l+=90),h<i&&(n=this.pointAt(h).transformCopy(e),h+=90),u=new Mf(t.x,n.y),c=Mf.min(c,u),d=Mf.max(d,u)}return zf.fromPoints(c,d)}_arcInterval(){let{startAngle:e,endAngle:t,anticlockwise:n}=this;if(n){let n=e;e=t,t=n}return(e>t||n&&e===t)&&(t+=360),{startAngle:e,endAngle:t}}_intervalCurvePoints(e,t,n){const i=this.pointAt(e),r=this.pointAt(t),s=this._derivativeAt(e),o=this._derivativeAt(t),a=(hf(t)-hf(e))/3,l=new Mf(i.x+a*s.x,i.y+a*s.y),h=new Mf(r.x-a*o.x,r.y-a*o.y);return n&&(i.transform(n),r.transform(n),l.transform(n),h.transform(n)),{p1:i,cp1:l,cp2:h,p2:r}}_derivativeAt(e){const t=hf(e);return new Mf(-this.radiusX*Math.sin(t),this.radiusY*Math.cos(t))}containsPoint(e){const t=this._arcInterval(),n=t.endAngle-t.startAngle,{center:i,radiusX:r,radiusY:s}=this,o=i.distanceTo(e),a=Math.atan2(e.y-i.y,e.x-i.x),l=r*s/Math.sqrt(om(r,2)*om(Math.sin(a),2)+om(s,2)*om(Math.cos(a),2)),h=this.pointAt(this.startAngle).round(nm),u=this.pointAt(this.endAngle).round(nm),c=function(e,t,n,i){const r=t.x-e.x,s=u.x-h.x,o=t.y-e.y,a=u.y-h.y,l=e.x-h.x,c=e.y-h.y,d=r*a-s*o,p=(r*c-o*l)/d,f=(s*c-a*l)/d;if(p>=0&&p<=1&&f>=0&&f<=1)return new Mf(e.x+f*r,e.y+f*o)}(i,e.round(nm));let d;if(n<180)d=c&&rm(i.distanceTo(c),o)&&rm(o,l);else{let n=lm(i.x,i.y,r,s,e.x,e.y);360!==n&&(n=(360+n)%360);let a=t.startAngle<=n&&n<=t.endAngle;d=a&&rm(o,l)||!a&&(!c||c.equals(e))}return d}_isOnPath(e,t){const n=this._arcInterval(),i=this.center;let r=lm(i.x,i.y,this.radiusX,this.radiusY,e.x,e.y);return 360!==r&&(r=(360+r)%360),n.startAngle<=r&&r<=n.endAngle&&this.pointAt(r).distanceTo(e)<=t}static fromPoints(e,t,n,i,r,s,o){const a=function(e){let{x1:t,y1:n,x2:i,y2:r,rx:s,ry:o,largeArc:a,swipe:l,rotation:h=0}=e;const u=hf(h),c=Math.cos(u),d=Math.sin(u),p=c*(t-i)/2+d*(n-r)/2,f=-d*(t-i)/2+c*(n-r)/2,m=a!==l?1:-1,g=Math.pow(p,2),v=Math.pow(f,2);let y=Math.pow(s,2),w=Math.pow(o,2),_=g/y+v/w;_>1&&(s*=_=Math.sqrt(g/y+v/w),y=Math.pow(s,2),o*=_,w=Math.pow(o,2));let b=m*Math.sqrt((y*w-y*v-w*g)/(y*v+w*g));isNaN(b)&&(b=0);const x=b*(s*f)/o,C=o*p*-b/s,S=c*x-d*C+(t+i)/2,k=d*x+c*C+(n+r)/2,E=(p-x)/s,T=(f-C)/o,I=-(p+x)/s,D=-(f+C)/o,A=(T>=0?1:-1)*sf(Math.acos(E/Math.sqrt(E*E+T*T))),O=uf((E*I+T*D)/(Math.sqrt(E*E+T*T)*Math.sqrt(I*I+D*D)),10);let N=(E*D-T*I>=0?1:-1)*sf(Math.acos(O));!l&&N>0&&(N-=360),l&&N<0&&(N+=360);let F=A+N;const M=F>=0?1:-1;return F=Math.abs(F)%360*M,{center:new Mf(S,k),startAngle:A,endAngle:F,radiusX:s,radiusY:o,xRotation:h}}({x1:e.x,y1:e.y,x2:t.x,y2:t.y,rx:n,ry:i,largeArc:r,swipe:s,rotation:o});return new am(a.center,{startAngle:a.startAngle,endAngle:a.endAngle,radiusX:a.radiusX,radiusY:a.radiusY,xRotation:a.xRotation,anticlockwise:0===s})}}function lm(e,t,n,i,r,s){const o=uf((r-e)/n,3),a=uf((s-t)/i,3);return uf(sf(Math.atan2(a,o)))}function hm(e,t){let n=e;for(;n<t;)n+=90;return n}Af(am.prototype,["radiusX","radiusY","startAngle","endAngle","anticlockwise"]),vp.extend(am.prototype);var um=am;const cm=[].push,dm=[].pop,pm=[].splice,fm=[].shift,mm=[].slice,gm=[].unshift;class vm extends bp{constructor(e=[]){super(),this.length=0,this._splice(0,e.length,e)}elements(e){return e?(this._splice(0,this.length,e),this._change(),this):this.slice(0)}push(){const e=arguments,t=cm.apply(this,e);return this._add(e),t}slice(){return mm.call(this)}pop(){const e=this.length,t=dm.apply(this);return e&&this._remove([t]),t}splice(e,t){const n=mm.call(arguments,2),i=this._splice(e,t,n);return this._change(),i}shift(){const e=this.length,t=fm.apply(this);return e&&this._remove([t]),t}unshift(){const e=arguments,t=gm.apply(this,e);return this._add(e),t}indexOf(e){const t=this.length;for(let n=0;n<t;n++)if(this[n]===e)return n;return-1}_splice(e,t,n){const i=pm.apply(this,[e,t].concat(n));return this._clearObserver(i),this._setObserver(n),i}_add(e){this._setObserver(e),this._change()}_remove(e){this._clearObserver(e),this._change()}_setObserver(e){for(let t=0;t<e.length;t++)e[t].addObserver(this)}_clearObserver(e){for(let t=0;t<e.length;t++)e[t].removeObserver(this)}_change(){}}vp.extend(vm.prototype);var ym=vm,wm=class extends ym{_change(){this.geometryChange()}};function _m(e){const t="_"+e;return function(e){return Xp(e)?(this._observerField(t,Mf.create(e)),this.geometryChange(),this):this[t]}}function bm(e,t){for(let n=0;n<t.length;n++)e[t[n]]=_m(t[n])}function xm(e,t,n){const i=sf(Math.atan2(t.y-e.y,t.x-e.x));return n.transformCopy(Hf().rotate(-i,e)).x<e.x}function Cm(e,t,n){const i=1-e;return Math.pow(i,3)*n[0][t]+3*Math.pow(i,2)*e*n[1][t]+3*Math.pow(e,2)*i*n[2][t]+Math.pow(e,3)*n[3][t]}function Sm(e,t){return[3*e[1][t]-e[0][t]-3*e[2][t]+e[3][t],3*(e[0][t]-2*e[1][t]+e[2][t]),3*(-e[0][t]+e[1][t]),e[0][t]]}class km extends bp{constructor(e=0,t=0){super(),this.real=e,this.img=t}add(e){return new km(uf(this.real+e.real,nm),uf(this.img+e.img,nm))}addConstant(e){return new km(this.real+e,this.img)}negate(){return new km(-this.real,-this.img)}multiply(e){return new km(this.real*e.real-this.img*e.img,this.real*e.img+this.img*e.real)}multiplyConstant(e){return new km(this.real*e,this.img*e)}nthRoot(e){const t=Math.atan2(this.img,this.real),n=Math.sqrt(Math.pow(this.img,2)+Math.pow(this.real,2)),i=Math.pow(n,1/e);return new km(i*Math.cos(t/e),i*Math.sin(t/e))}equals(e){return this.real===e.real&&this.img===e.img}isReal(){return 0===this.img}}var Em=km;function Tm(e){return e<0?-1:1}function Im(e,t,n,i){if(0===e)return function(e,t,n){const i=Math.sqrt(Math.pow(t,2)-4*e*n);return[(-t+i)/(2*e),(-t-i)/(2*e)]}(t,n,i);const r=(3*e*n-Math.pow(t,2))/(3*Math.pow(e,2)),s=(2*Math.pow(t,3)-9*e*t*n+27*Math.pow(e,2)*i)/(27*Math.pow(e,3)),o=Math.pow(r/3,3)+Math.pow(s/2,2),a=new Em(0,1),l=-t/(3*e);let h,u,c,d,p,f,m;o<0?(h=new Em(-s/2,Math.sqrt(-o)).nthRoot(3),u=new Em(-s/2,-Math.sqrt(-o)).nthRoot(3)):(h=-s/2+Math.sqrt(o),h=new Em(Tm(h)*Math.pow(Math.abs(h),1/3)),u=-s/2-Math.sqrt(o),u=new Em(Tm(u)*Math.pow(Math.abs(u),1/3))),c=h.add(u),f=h.add(u).multiplyConstant(-.5),m=h.add(u.negate()).multiplyConstant(Math.sqrt(3)/2),d=f.add(a.multiply(m)),p=f.add(a.negate().multiply(m));const g=[];return c.isReal()&&g.push(uf(c.real+l,nm)),d.isReal()&&g.push(uf(d.real+l,nm)),p.isReal()&&g.push(uf(p.real+l,nm)),g}function Dm(e,t,n,i,r){const s=Sm(e,i),o=Im(s[0],s[1],s[2],s[3]-t[i]);let a;for(let l=0;l<o.length;l++)if(0<=o[l]&&o[l]<=1&&(a=Cm(o[l],n,e),Math.abs(a-t[n])<=r))return!0}function Am(e,t,n){let i;if(e.x!==t.x){const r=Math.min(e.x,t.x),s=Math.max(e.x,t.x),o=Math.min(e.y,t.y),a=Math.max(e.y,t.y),l=r<=n.x&&n.x<s;i=o===a?n.y<=o&&l:l&&(a-o)*((e.x-t.x)*(e.y-t.y)>0?n.x-r:s-n.x)/(s-r)+o-n.y>=0}return i?1:0}class Om extends bp{constructor(e,t,n){super(),this.anchor(e||new Mf),this.controlIn(t),this.controlOut(n)}bboxTo(e,t){const n=this.anchor().transformCopy(t),i=e.anchor().transformCopy(t);return this.controlOut()&&e.controlIn()?this._curveBoundingBox(n,this.controlOut().transformCopy(t),e.controlIn().transformCopy(t),i):this._lineBoundingBox(n,i)}_lineBoundingBox(e,t){return zf.fromPoints(e,t)}_curveBoundingBox(e,t,n,i){const r=[e,t,n,i],s=this._curveExtremesFor(r,"x"),o=this._curveExtremesFor(r,"y"),a=Nm([s.min,s.max,e.x,i.x]),l=Nm([o.min,o.max,e.y,i.y]);return zf.fromPoints(new Mf(a.min,l.min),new Mf(a.max,l.max))}_curveExtremesFor(e,t){const n=this._curveExtremes(e[0][t],e[1][t],e[2][t],e[3][t]);return{min:Cm(n.min,t,e),max:Cm(n.max,t,e)}}_curveExtremes(e,t,n,i){const r=e-3*t+3*n-i,s=-2*(e-2*t+n),o=e-t,a=Math.sqrt(s*s-4*r*o);let l=0,h=1;0===r?0!==s&&(l=h=-o/s):isNaN(a)||(l=(-s+a)/(2*r),h=(-s-a)/(2*r));let u=Math.max(Math.min(l,h),0);(u<0||u>1)&&(u=0);let c=Math.min(Math.max(l,h),1);return(c>1||c<0)&&(c=1),{min:u,max:c}}_intersectionsTo(e,t){return this.controlOut()&&e.controlIn()?function(e,t,n){const i=Sm(e,"x"),r=Im(i[0],i[1],i[2],i[3]-t.x);let s,o,a=0;for(let l=0;l<r.length;l++)(o=im(s=Cm(r[l],"y",e),t.y)||s>t.y)&&((0===r[l]||1===r[l])&&n.bottomRight().x>t.x||0<r[l]&&r[l]<1)&&a++;return a}([this.anchor(),this.controlOut(),e.controlIn(),e.anchor()],t,this.bboxTo(e)):Am(this.anchor(),e.anchor(),t)}_isOnCurveTo(e,t,n,i){if(this.bboxTo(e).expand(n,n).containsPoint(t)){const r=this.anchor(),s=this.controlOut(),o=e.controlIn(),a=e.anchor();if("start"===i&&r.distanceTo(t)<=n)return!xm(r,s,t);if("end"===i&&a.distanceTo(t)<=n)return!xm(a,o,t);const l=[r,s,o,a];if(Dm(l,t,"x","y",n)||Dm(l,t,"y","x",n))return!0;const h=Hf().rotate(45,t),u=[r.transformCopy(h),s.transformCopy(h),o.transformCopy(h),a.transformCopy(h)];return Dm(u,t,"x","y",n)||Dm(u,t,"y","x",n)}}_isOnLineTo(e,t,n){const i=this.anchor(),r=e.anchor(),s=sf(Math.atan2(r.y-i.y,r.x-i.x));return new zf([i.x,i.y-n/2],[i.distanceTo(r),n]).containsPoint(t.transformCopy(Hf().rotate(-s,i)))}_isOnPathTo(e,t,n,i){return this.controlOut()&&e.controlIn()?this._isOnCurveTo(e,t,n/2,i):this._isOnLineTo(e,t,n)}}function Nm(e){let t=e.length,n=nf,i=rf;for(let r=0;r<t;r++)i=Math.max(i,e[r]),n=Math.min(n,e[r]);return{min:n,max:i}}bm(Om.prototype,["anchor","controlIn","controlOut"]),vp.extend(Om.prototype);var Fm=Om;function Mm(e,t,n){let i;for(let r=0;r<e.length;r++){let s=e[r];if(s.visible()){let e=t?s.bbox(n):s.rawBBox();e&&(i=i?zf.union(i,e):e)}}return i}function Pm(e,t){let n;for(let i=0;i<e.length;i++){let r=e[i];if(r.visible()){let e=r.clippedBBox(t);e&&(n=n?zf.union(n,e):e)}}return n}class Rm extends jf{constructor(e){super(e),this.paths=new wm,this.paths.addObserver(this),Xp(this.options.stroke)||this.stroke("#000")}moveTo(e,t){const n=new Ym;return n.moveTo(e,t),this.paths.push(n),this}lineTo(e,t){return this.paths.length>0&&af(this.paths).lineTo(e,t),this}curveTo(e,t,n){return this.paths.length>0&&af(this.paths).curveTo(e,t,n),this}arc(e,t,n,i,r){return this.paths.length>0&&af(this.paths).arc(e,t,n,i,r),this}arcTo(e,t,n,i,r,s){return this.paths.length>0&&af(this.paths).arcTo(e,t,n,i,r,s),this}close(){return this.paths.length>0&&af(this.paths).close(),this}_bbox(e){return Mm(this.paths,!0,e)}rawBBox(){return Mm(this.paths,!1)}_containsPoint(e){const t=this.paths;for(let n=0;n<t.length;n++)if(t[n]._containsPoint(e))return!0;return!1}_isOnPath(e){const t=this.paths,n=this.options.stroke.width;for(let i=0;i<t.length;i++)if(t[i]._isOnPath(e,n))return!0;return!1}_clippedBBox(e){return Pm(this.paths,this.currentTransform(e))}}Rm.prototype.nodeType="MultiPath",Zf.extend(Rm.prototype),Kf.extend(Rm.prototype);var Vm=Rm;function zm(e,t,n){const i=t?0:1;for(let r=0;r<e.length;r+=2)e.splice(r+i,0,n)}function Lm(e,t){if(e&&t)return t.scaleCopy(2).translate(-e.x,-e.y)}const Bm=1/3;function Hm(e,t,n){const i=t.clone().scale(2/3);return{controlOut:i.clone().translateWith(e.scaleCopy(Bm)),controlIn:i.translateWith(n.scaleCopy(Bm))}}var $m={l:function(e,t){const{parameters:n,position:i}=t;for(let r=0;r<n.length;r+=2){let s=new Mf(n[r],n[r+1]);t.isRelative&&s.translateWith(i),e.lineTo(s.x,s.y),i.x=s.x,i.y=s.y}},c:function(e,t){const{parameters:n,position:i}=t;for(let r=0;r<n.length;r+=6){let s=new Mf(n[r],n[r+1]),o=new Mf(n[r+2],n[r+3]),a=new Mf(n[r+4],n[r+5]);t.isRelative&&(o.translateWith(i),s.translateWith(i),a.translateWith(i)),e.curveTo(s,o,a),i.x=a.x,i.y=a.y}},v:function(e,t){zm(t.parameters,!0,t.isRelative?0:t.position.x),this.l(e,t)},h:function(e,t){zm(t.parameters,!1,t.isRelative?0:t.position.y),this.l(e,t)},a:function(e,t){const{parameters:n,position:i}=t;for(let r=0;r<n.length;r+=7){const s=n[r],o=n[r+1],a=n[r+2],l=n[r+3],h=n[r+4],u=new Mf(n[r+5],n[r+6]);t.isRelative&&u.translateWith(i),i.x===u.x&&i.y===u.y||(e.arcTo(u,s,o,l,h,a),i.x=u.x,i.y=u.y)}},s:function(e,t){const{parameters:n,position:i,previousCommand:r}=t;let s;"s"!==r&&"c"!==r||(s=af(af(e.paths).segments).controlIn());for(let o=0;o<n.length;o+=4){let r,a=new Mf(n[o],n[o+1]),l=new Mf(n[o+2],n[o+3]);t.isRelative&&(a.translateWith(i),l.translateWith(i)),r=s?Lm(s,i):i.clone(),s=a,e.curveTo(r,a,l),i.x=l.x,i.y=l.y}},q:function(e,t){const{parameters:n,position:i}=t;for(let r=0;r<n.length;r+=4){let s=new Mf(n[r],n[r+1]),o=new Mf(n[r+2],n[r+3]);t.isRelative&&(s.translateWith(i),o.translateWith(i));let a=Hm(i,s,o);e.curveTo(a.controlOut,a.controlIn,o),i.x=o.x,i.y=o.y}},t:function(e,t){const{parameters:n,position:i,previousCommand:r}=t;let s;"q"!==r&&"t"!==r||(s=af(af(e.paths).segments).controlIn().clone().translateWith(i.scaleCopy(-1/3)).scale(1.5));for(let o=0;o<n.length;o+=2){let r=new Mf(n[o],n[o+1]);t.isRelative&&r.translateWith(i),s=s?Lm(s,i):i.clone();let a=Hm(i,s,r);e.curveTo(a.controlOut,a.controlIn,r),i.x=r.x,i.y=r.y}}};const jm=/([a-df-z]{1})([^a-df-z]*)(z)?/gi,Um=/[,\s]?([+\-]?(?:\d*\.\d+|\d+)(?:[eE][+\-]?\d+)?)/g,qm="m",Wm="z";var Gm=(()=>{class e extends bp{parse(e,t){const n=new Vm(t),i=new Mf;let r;return e.replace(jm,(e,t,s,o)=>{let a=t.toLowerCase();const l=a===t,h=function(e){const t=[];return e.replace(Um,function(e,n){t.push(parseFloat(n))}),t}(s.trim());if(a===qm&&(l?(i.x+=h[0],i.y+=h[1]):(i.x=h[0],i.y=h[1]),n.moveTo(i.x,i.y),h.length>2&&(a="l",h.splice(0,2))),$m[a])$m[a](n,{parameters:h,position:i,isRelative:l,previousCommand:r}),o&&o.toLowerCase()===Wm&&n.close();else if(a!==qm)throw new Error("Error while parsing SVG path. Unsupported command: "+a);r=a}),n}}return e.current=new e,e})();class Zm extends jf{constructor(e){super(e),this.segments=new wm,this.segments.addObserver(this),Xp(this.options.stroke)||(this.stroke("#000"),Xp(this.options.stroke.lineJoin)||this.options.set("stroke.lineJoin","miter"))}moveTo(e,t){return this.suspend(),this.segments.elements([]),this.resume(),this.lineTo(e,t),this}lineTo(e,t){const n=Xp(t)?new Mf(e,t):e,i=new Fm(n);return this.segments.push(i),this}curveTo(e,t,n){if(this.segments.length>0){const i=af(this.segments),r=new Fm(n,t);this.suspend(),i.controlOut(e),this.resume(),this.segments.push(r)}return this}arc(e,t,n,i,r){if(this.segments.length>0){const s=af(this.segments).anchor(),o=hf(e),a=new Mf(s.x-n*Math.cos(o),s.y-i*Math.sin(o)),l=new um(a,{startAngle:e,endAngle:t,radiusX:n,radiusY:i,anticlockwise:r});this._addArcSegments(l)}return this}arcTo(e,t,n,i,r,s){if(this.segments.length>0){const o=af(this.segments).anchor(),a=um.fromPoints(o,e,t,n,i,r,s);this._addArcSegments(a)}return this}_addArcSegments(e){this.suspend();const t=e.curvePoints();for(let n=1;n<t.length;n+=3)this.curveTo(t[n],t[n+1],t[n+2]);this.resume(),this.geometryChange()}close(){return this.options.closed=!0,this.geometryChange(),this}rawBBox(){return this._bbox()}_containsPoint(e){const t=this.segments,n=t.length;let i,r,s=0;for(let o=1;o<n;o++)s+=(i=t[o-1])._intersectionsTo(r=t[o],e);return!this.options.closed&&t[0].anchor().equals(t[n-1].anchor())||(s+=Am(t[0].anchor(),t[n-1].anchor(),e)),s%2!=0}_isOnPath(e,t){const n=this.segments,i=n.length,r=t||this.options.stroke.width;if(i>1){if(n[0]._isOnPathTo(n[1],e,r,"start"))return!0;for(let t=2;t<=i-2;t++)if(n[t-1]._isOnPathTo(n[t],e,r))return!0;if(n[i-2]._isOnPathTo(n[i-1],e,r,"end"))return!0}return!1}_bbox(e){const t=this.segments,n=t.length;let i;if(1===n){let n=t[0].anchor().transformCopy(e);i=new zf(n,Rf.ZERO)}else if(n>0)for(let r=1;r<n;r++){let n=t[r-1].bboxTo(t[r],e);i=i?zf.union(i,n):n}return i}static fromRect(e,t){return new Zm(t).moveTo(e.topLeft()).lineTo(e.topRight()).lineTo(e.bottomRight()).lineTo(e.bottomLeft()).close()}static fromPoints(e,t){if(e){const n=new Zm(t);for(let t=0;t<e.length;t++){let i=Mf.create(e[t]);i&&(0===t?n.moveTo(i):n.lineTo(i))}return n}}static fromArc(e,t){const n=new Zm(t),i=e.startAngle,r=e.pointAt(i);return n.moveTo(r.x,r.y),n.arc(i,e.endAngle,e.radiusX,e.radiusY,e.anticlockwise),n}}Zm.prototype.nodeType="Path",Zf.extend(Zm.prototype),Kf.extend(Zm.prototype),Zm.parse=function(e,t){return Gm.current.parse(e,t)};var Ym=Zm;const Km="#000";class Qm extends jf{constructor(e=new um,t={}){super(t),this.geometry(e),Xp(this.options.stroke)||this.stroke(Km)}_bbox(e){return this._geometry.bbox(e)}rawBBox(){return this.geometry().bbox()}toPath(){const e=new Ym,t=this.geometry().curvePoints();if(t.length>0){e.moveTo(t[0].x,t[0].y);for(let n=1;n<t.length;n+=3)e.curveTo(t[n],t[n+1],t[n+2])}return e}_containsPoint(e){return this.geometry().containsPoint(e)}_isOnPath(e){return this.geometry()._isOnPath(e,this.options.stroke.width/2)}}Qm.prototype.nodeType="Arc",Zf.extend(Qm.prototype),Kf.extend(Qm.prototype),Xf(Qm.prototype,["geometry"]);const Xm="12px sans-serif",Jm="#000";class eg extends jf{constructor(e,t=new Mf,n={}){super(n),this.content(e),this.position(t),this.options.font||(this.options.font=Xm),Xp(this.options.fill)||this.fill(Jm)}content(e){return Xp(e)?(this.options.set("content",e),this):this.options.get("content")}measure(){return Sf(this.content(),{font:this.options.get("font")})}rect(){const e=this.measure(),t=this.position().clone();return new zf(t,[e.width,e.height])}bbox(e){const t=Nf(this.currentTransform(e));return this.rect().bbox(t)}rawBBox(){return this.rect().bbox()}_containsPoint(e){return this.rect().containsPoint(e)}}eg.prototype.nodeType="Text",Zf.extend(eg.prototype),bm(eg.prototype,["position"]);var tg=eg;class ng extends jf{constructor(e,t=new zf,n={}){super(n),this.src(e),this.rect(t)}src(e){return Xp(e)?(this.options.set("src",e),this):this.options.get("src")}bbox(e){const t=Nf(this.currentTransform(e));return this._rect.bbox(t)}rawBBox(){return this._rect.bbox()}_containsPoint(e){return this._rect.containsPoint(e)}_hasFill(){return this.src()}}ng.prototype.nodeType="Image",Xf(ng.prototype,["rect"]);var ig=ng,rg=function(e,t){e.traverse=function(e){const n=this[t];for(let t=0;t<n.length;t++){let i=n[t];i.traverse?i.traverse(e):e(i)}return this}};class sg extends jf{constructor(e){super(e),this.children=[]}childrenChange(e,t,n){this.trigger("childrenChange",{action:e,items:t,index:n})}append(){return Gp(this.children,arguments),this._reparent(arguments,this),this.childrenChange("add",arguments),this}insert(e,t){return this.children.splice(e,0,t),t.parent=this,this.childrenChange("add",[t],e),this}insertAt(e,t){return this.insert(t,e)}remove(e){const t=this.children.indexOf(e);return t>=0&&(this.children.splice(t,1),e.parent=null,this.childrenChange("remove",[e],t)),this}removeAt(e){if(0<=e&&e<this.children.length){let t=this.children[e];this.children.splice(e,1),t.parent=null,this.childrenChange("remove",[t],e)}return this}clear(){const e=this.children;return this.children=[],this._reparent(e,null),this.childrenChange("remove",e,0),this}bbox(e){return Mm(this.children,!0,this.currentTransform(e))}rawBBox(){return Mm(this.children,!1)}_clippedBBox(e){return Pm(this.children,this.currentTransform(e))}currentTransform(e){return jf.prototype.currentTransform.call(this,e)||null}containsPoint(e,t){if(this.visible()){const n=this.children,i=this.currentTransform(t);for(let t=0;t<n.length;t++)if(n[t].containsPoint(e,i))return!0}return!1}_reparent(e,t){for(let n=0;n<e.length;n++){const i=e[n],r=i.parent;r&&r!==this&&r.remove&&r.remove(i),i.parent=t}}}sg.prototype.nodeType="Group",rg(sg.prototype,"children");var og=sg;class ag extends jf{constructor(e=new zf,t={}){super(t),this.geometry(e),Xp(this.options.stroke)||this.stroke("#000")}_bbox(e){return this._geometry.bbox(e)}rawBBox(){return this._geometry.bbox()}_containsPoint(e){return this._geometry.containsPoint(e)}_isOnPath(e){return this.geometry()._isOnPath(e,this.options.stroke.width/2)}}ag.prototype.nodeType="Rect",Zf.extend(ag.prototype),Kf.extend(ag.prototype),Xf(ag.prototype,["geometry"]);var lg=class extends ym{_change(){this.optionsChange({field:"stops"})}};function hg(e){return function(t){return Xp(t)?(this.options.set(e,t),this):this.options.get(e)}}class ug extends bp{constructor(e,t,n){super(),this.options=new Tf({offset:e,color:t,opacity:Xp(n)?n:1}),this.options.addObserver(this)}static create(e){if(Xp(e)){let t;return t=e instanceof ug?e:e.length>1?new ug(e[0],e[1],e[2]):new ug(e.offset,e.color,e.opacity)}}}!function(e,t){for(let n=0;n<t.length;n++)e[t[n]]=hg(t[n])}(ug.prototype,["offset","color","opacity"]),vp.extend(ug.prototype);var cg=ug;class dg extends bp{constructor(e={}){super(),this.stops=new lg(this._createStops(e.stops)),this.stops.addObserver(this),this._userSpace=e.userSpace,this.id=ef()}userSpace(e){return Xp(e)?(this._userSpace=e,this.optionsChange(),this):this._userSpace}_createStops(e=[]){const t=[];for(let n=0;n<e.length;n++)t.push(cg.create(e[n]));return t}addStop(e,t,n){this.stops.push(new cg(e,t,n))}removeStop(e){const t=this.stops.indexOf(e);t>=0&&this.stops.splice(t,1)}}dg.prototype.nodeType="Gradient",vp.extend(dg.prototype),Object.assign(dg.prototype,{optionsChange:function(e){this.trigger("optionsChange",{field:"gradient"+(e?"."+e.field:""),value:this})},geometryChange:function(){this.optionsChange()}});var pg=dg;class fg extends pg{constructor(e={}){super(e),this.start(e.start||new Mf),this.end(e.end||new Mf(1,0))}}bm(fg.prototype,["start","end"]);var mg=fg;class gg extends pg{constructor(e={}){super(e),this.center(e.center||new Mf),this._radius=Xp(e.radius)?e.radius:1,this._fallbackFill=e.fallbackFill}radius(e){return Xp(e)?(this._radius=e,this.geometryChange(),this):this._radius}fallbackFill(e){return Xp(e)?(this._fallbackFill=e,this.optionsChange(),this):this._fallbackFill}}bm(gg.prototype,["center"]);var vg=gg;function yg(e){return.5-Math.cos(e*Math.PI)/2}function wg(e){return e}function _g(e,t,n,i){let r=1.70158,s=0,o=i;return 0===e?n:1===e?n+i:(s||(s=.5),o<Math.abs(i)?(o=i,r=s/4):r=s/(2*Math.PI)*Math.asin(i/o),o*Math.pow(2,-10*e)*Math.sin((Number(e)-r)*(1.1*Math.PI)/s)+i+n)}var bg=(()=>{class e extends bp{constructor(){super(),this._items=[]}register(e,t){this._items.push({name:e,type:t})}create(e,t){const n=this._items;let i;if(t&&t.type){const e=t.type.toLowerCase();for(let t=0;t<n.length;t++)if(n[t].name.toLowerCase()===e){i=n[t];break}}if(i)return new i.type(e,t)}}return e.current=new e,e})();const xg=Date.now||function(){return(new Date).getTime()};class Cg extends bp{constructor(e,t){super(),this.options=Object.assign({},this.options,t),this.element=e}setup(){}step(){}play(){const e=this.options,{duration:t,delay:n=0}=e,r=i[e.easing],s=xg()+n,o=s+t;0===t?(this.step(1),this.abort()):setTimeout(()=>{const e=()=>{if(this._stopped)return;const n=xg(),i=function(e,i,r){return Math.max(Math.min(n-s,t),0)}(),a=r(i/t,i,0,1,t);this.step(a),n<o?_p(e):this.abort()};e()},n)}abort(){this._stopped=!0}destroy(){this.abort()}}Cg.prototype.options={duration:500,easing:"swing"},Cg.create=function(e,t,n){return bg.current.create(e,t,n)};var Sg=(()=>{class e extends bp{constructor(){super(),this._items=[]}register(e,t,n){const i=this._items,r=i[0],s={name:e,type:t,order:n};!r||n<r.order?i.unshift(s):i.push(s)}create(e,t){const n=this._items;let i=n[0];if(t&&t.type){const e=t.type.toLowerCase();for(let t=0;t<n.length;t++)if(n[t].name===e){i=n[t];break}}if(i)return new i.type(e,t);!function(e){const t=window.console;void 0!==t&&t.log&&t.log(e)}("Warning: Unable to create Kendo UI Drawing Surface. Possible causes:\n"+`- The browser does not support SVG and Canvas. User agent: ${navigator.userAgent}`)}}return e.current=new e,e})();const kg=["click","mouseenter","mouseleave","mousemove","resize"];var Eg=(()=>{class e extends Np{constructor(e,t){super(),this.options=Object.assign({},t),this.element=e,this.element._kendoExportVisual=this.exportVisual.bind(this),this._click=this._handler("click"),this._mouseenter=this._handler("mouseenter"),this._mouseleave=this._handler("mouseleave"),this._mousemove=this._handler("mousemove"),this._visual=new og,mf(e,this.options),this.bind(kg,this.options),this._enableTracking()}draw(e){this._visual.children.push(e)}clear(){this._visual.children=[]}destroy(){this._visual=null,this.element._kendoExportVisual=null,this.unbind()}eventTarget(e){let t,n=function(e={}){return e.touch?e.touch.initialTouch:e.target}(e);for(;!t&&n&&(t=n._kendoNode,n!==this.element);)n=n.parentElement;if(t)return t.srcElement}exportVisual(){return this._visual}getSize(){return mf(this.element)}currentSize(e){if(!e)return this._size;this._size=e}setSize(e){mf(this.element,e),this.currentSize(e),this._resize()}resize(e){const t=this.getSize(),n=this.currentSize();(e||(t.width>0||t.height>0)&&(!n||t.width!==n.width||t.height!==n.height))&&(this.currentSize(t),this._resize(t,e),this.trigger("resize",t))}size(e){if(!e)return this.getSize();this.setSize(e)}suspendTracking(){this._suspendedTracking=!0}resumeTracking(){this._suspendedTracking=!1}_enableTracking(){}_resize(){}_handler(e){return t=>{const n=this.eventTarget(t);n&&!this._suspendedTracking&&this.trigger(e,{element:n,originalEvent:t,type:e})}}_elementOffset(){const e=this.element,{paddingLeft:t,paddingTop:n}=pf(e,["paddingLeft","paddingTop"]),{left:i,top:r}=function(e){const t=e.getBoundingClientRect(),n=document.documentElement;return{top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||0),left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}}(e);return{left:i+parseInt(t,10),top:r+parseInt(n,10)}}_surfacePoint(e){const t=this._elementOffset(),n=function(e){return Xp((e.x||{}).location)?{x:e.x.location,y:e.y.location}:{x:e.pageX||e.clientX||0,y:e.pageY||e.clientY||0}}(e);return new Mf(n.x-t.left,n.y-t.top)}}return e.create=function(e,t){return Sg.current.create(e,t)},e.support={},e})(),Tg=class extends bp{constructor(e){super(),this.childNodes=[],this.parent=null,e&&(this.srcElement=e,this.observe())}destroy(){this.srcElement&&this.srcElement.removeObserver(this);const e=this.childNodes;for(let t=0;t<e.length;t++)this.childNodes[t].destroy();this.parent=null}load(){}observe(){this.srcElement&&this.srcElement.addObserver(this)}append(e){this.childNodes.push(e),e.parent=this}insertAt(e,t){this.childNodes.splice(t,0,e),e.parent=this}remove(e,t){const n=e+t;for(let i=e;i<n;i++)this.childNodes[i].removeSelf();this.childNodes.splice(e,t)}removeSelf(){this.clear(),this.destroy()}clear(){this.remove(0,this.childNodes.length)}invalidate(){this.parent&&this.parent.invalidate()}geometryChange(){this.invalidate()}optionsChange(){this.invalidate()}childrenChange(e){"add"===e.action?this.load(e.items,e.index):"remove"===e.action&&this.remove(e.index,e.items.length),this.invalidate()}};function Ig(e,t){return Xp(t)&&null!==t?` ${e}="${t}" `:""}function Dg(e){let t="";for(let n=0;n<e.length;n++)t+=Ig(e[n][0],e[n][1]);return t}function Ag(e){let t="";for(let n=0;n<e.length;n++){let i=e[n][1];Xp(i)&&(t+=e[n][0]+":"+i+";")}if(""!==t)return t}var Og={};const Ng="http://www.w3.org/2000/svg",Fg="none";let Mg=function(e,t){e.innerHTML=t};if("undefined"!=typeof document){const e="<svg xmlns='"+Ng+"'></svg>",t=document.createElement("div"),n="undefined"!=typeof DOMParser;t.innerHTML=e,n&&t.firstChild.namespaceURI!==Ng&&(Mg=function(e,t){const n=(new DOMParser).parseFromString(t,"text/xml"),i=document.adoptNode(n.documentElement);e.innerHTML="",e.appendChild(i)})}var Pg=Mg;const Rg={clip:"clip-path",fill:"fill"};function Vg(e,t){return"clip"===e||"fill"===e&&(!t||"Gradient"===t.nodeType)}var zg=class extends Tg{constructor(e,t){super(e),this.definitions={},this.options=t}destroy(){this.element&&(this.element._kendoNode=null,this.element=null),this.clearDefinitions(),super.destroy()}load(e,t){for(let n=0;n<e.length;n++){const i=e[n],r=i.children,s=new Og[i.nodeType](i,this.options);Xp(t)?this.insertAt(s,t):this.append(s),s.createDefinitions(),r&&r.length>0&&s.load(r);const o=this.element;o&&s.attachTo(o,t)}}root(){let e=this;for(;e.parent;)e=e.parent;return e}attachTo(e,t){const n=document.createElement("div");Pg(n,"<svg xmlns='"+Ng+"' version='1.1'>"+this.render()+"</svg>");const i=n.firstChild.firstChild;i&&(Xp(t)?e.insertBefore(i,e.childNodes[t]||null):e.appendChild(i),this.setElement(i))}setElement(e){this.element&&(this.element._kendoNode=null),this.element=e,this.element._kendoNode=this;const t=this.childNodes;for(let n=0;n<t.length;n++)t[n].setElement(e.childNodes[n])}clear(){this.clearDefinitions(),this.element&&(this.element.innerHTML="");const e=this.childNodes;for(let t=0;t<e.length;t++)e[t].destroy();this.childNodes=[]}removeSelf(){if(this.element){const e=this.element.parentNode;e&&e.removeChild(this.element),this.element=null}super.removeSelf()}template(){return this.renderChildren()}render(){return this.template()}renderChildren(){const e=this.childNodes;let t="";for(let n=0;n<e.length;n++)t+=e[n].render();return t}optionsChange(e){const{field:t,value:n}=e;"visible"===t?this.css("display",n?"":Fg):Rg[t]&&Vg(t,n)?this.updateDefinition(t,n):"opacity"===t?this.attr("opacity",n):"cursor"===t?this.css("cursor",n):"id"===t&&(n?this.attr("id",n):this.removeAttr("id")),super.optionsChange(e)}attr(e,t){this.element&&this.element.setAttribute(e,t)}allAttr(e){for(let t=0;t<e.length;t++)this.attr(e[t][0],e[t][1])}css(e,t){this.element&&(this.element.style[e]=t)}allCss(e){for(let t=0;t<e.length;t++)this.css(e[t][0],e[t][1])}removeAttr(e){this.element&&this.element.removeAttribute(e)}mapTransform(e){const t=[];return e&&t.push(["transform","matrix("+e.matrix().toString(6)+")"]),t}renderTransform(){return Dg(this.mapTransform(this.srcElement.transform()))}transformChange(e){e?this.allAttr(this.mapTransform(e)):this.removeAttr("transform")}mapStyle(){const e=this.srcElement.options,t=[["cursor",e.cursor]];return!1===e.visible&&t.push(["display",Fg]),t}renderStyle(){return Ig("style",Ag(this.mapStyle(!0)))}renderOpacity(){return Ig("opacity",this.srcElement.options.opacity)}renderId(){return Ig("id",this.srcElement.options.id)}createDefinitions(){const e=this.srcElement,t=this.definitions;if(e){const n=e.options;let i;for(let e in Rg){let r=n.get(e);r&&Vg(e,r)&&(t[e]=r,i=!0)}i&&this.definitionChange({action:"add",definitions:t})}}definitionChange(e){this.parent&&this.parent.definitionChange(e)}updateDefinition(e,t){const n=this.definitions,i=n[e],r=Rg[e],s={};i&&(s[e]=i,this.definitionChange({action:"remove",definitions:s}),delete n[e]),t?(s[e]=t,this.definitionChange({action:"add",definitions:s}),n[e]=t,this.attr(r,this.refUrl(t.id))):i&&this.removeAttr(r)}clearDefinitions(){this.definitionChange({action:"remove",definitions:this.definitions}),this.definitions={}}renderDefinitions(){return Dg(this.mapDefinitions())}mapDefinitions(){const e=this.definitions,t=[];for(let n in e)t.push([Rg[n],this.refUrl(e[n].id)]);return t}refUrl(e){const t=(this.options||{}).skipBaseHref,n=this.baseUrl().replace(/'/g,"\\'");return`url(${t?"":n}#${e})`}baseUrl(){return function(){const e=document.getElementsByTagName("base")[0];let t=document.location.href,n="";if(e&&!Mp.browser.msie){const e=t.indexOf("#");-1!==e&&(t=t.substring(0,e)),n=t}return n}()}},Lg=class extends zg{template(){return`<stop ${this.renderOffset()} ${this.renderStyle()} />`}renderOffset(){return Ig("offset",this.srcElement.offset())}mapStyle(){const e=this.srcElement;return[["stop-color",e.color()],["stop-opacity",e.opacity()]]}optionsChange(e){"offset"===e.field?this.attr(e.field,e.value):"color"!==e.field&&"opacity"!==e.field||this.css("stop-"+e.field,e.value)}},Bg=class extends zg{constructor(e){super(e),this.id=e.id,this.loadStops()}loadStops(){const e=this.srcElement.stops,t=this.element;for(let n=0;n<e.length;n++){let i=new Lg(e[n]);this.append(i),t&&i.attachTo(t)}}optionsChange(e){"gradient.stops"===e.field?(Tg.prototype.clear.call(this),this.loadStops()):"gradient"===e.field&&this.allAttr(this.mapCoordinates())}renderCoordinates(){return Dg(this.mapCoordinates())}mapSpace(){return["gradientUnits",this.srcElement.userSpace()?"userSpaceOnUse":"objectBoundingBox"]}},Hg=class extends Bg{template(){return`<linearGradient id='${this.id}' ${this.renderCoordinates()}>${this.renderChildren()}</linearGradient>`}mapCoordinates(){const e=this.srcElement,t=e.start(),n=e.end();return[["x1",t.x],["y1",t.y],["x2",n.x],["y2",n.y],this.mapSpace()]}},$g=class extends Bg{template(){return`<radialGradient id='${this.id}' ${this.renderCoordinates()}>${this.renderChildren()}</radialGradient>`}mapCoordinates(){const e=this.srcElement,t=e.center(),n=e.radius();return[["cx",t.x],["cy",t.y],["r",n],this.mapSpace()]}},jg=class extends zg{constructor(e){super(),this.srcElement=e,this.id=e.id,this.load([e])}template(){return`<clipPath id='${this.id}'>${this.renderChildren()}</clipPath>`}},Ug=class extends zg{constructor(){super(),this.definitionMap={}}attachTo(e){this.element=e}template(){return`<defs>${this.renderChildren()}</defs>`}definitionChange(e){const{definitions:t,action:n}=e;"add"===n?this.addDefinitions(t):"remove"===n&&this.removeDefinitions(t)}createDefinition(e,t){let n;return"clip"===e?n=jg:"fill"===e&&(t instanceof mg?n=Hg:t instanceof vg&&(n=$g)),new n(t)}addDefinitions(e){for(let t in e)this.addDefinition(t,e[t])}addDefinition(e,t){const{element:n,definitionMap:i}=this,r=t.id,s=i[r];if(s)s.count++;else{const s=this.createDefinition(e,t);i[r]={element:s,count:1},this.append(s),n&&s.attachTo(this.element)}}removeDefinitions(e){for(let t in e)this.removeDefinition(e[t])}removeDefinition(e){const t=this.definitionMap,n=e.id,i=t[n];i&&(i.count--,0===i.count&&(this.remove(this.childNodes.indexOf(i.element),1),delete t[n]))}},qg=class extends zg{constructor(e){super(),this.options=e,this.defs=new Ug}attachTo(e){this.element=e,this.defs.attachTo(e.firstElementChild)}clear(){Tg.prototype.clear.call(this)}template(){return this.defs.render()+this.renderChildren()}definitionChange(e){this.defs.definitionChange(e)}};const Wg="rtl";class Gg extends Eg{constructor(e,t){super(e,t),this._root=new qg(Object.assign({rtl:pf(e,"direction").direction===Wg},this.options)),Pg(this.element,this._template()),this._rootElement=this.element.firstElementChild,function(e){let t;try{t=e.getScreenCTM?e.getScreenCTM():null}catch(n){}if(t){const n=-t.e%1,i=-t.f%1,r=e.style;0===n&&0===i||(r.left=n+"px",r.top=i+"px")}}(this._rootElement),this._root.attachTo(this._rootElement),df(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove}),this.resize()}destroy(){this._root&&(this._root.destroy(),this._root=null,this._rootElement=null,gf(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove})),super.destroy()}translate(e){const t=`${Math.round(e.x)} ${Math.round(e.y)} ${this._size.width} ${this._size.height}`;this._offset=e,this._rootElement.setAttribute("viewBox",t)}draw(e){super.draw(e),this._root.load([e])}clear(){super.clear(),this._root.clear()}svg(){return"<?xml version='1.0' ?>"+this._template()}exportVisual(){let{_visual:e,_offset:t}=this;if(t){const n=new og;n.children.push(e),n.transform(Hf().translate(-t.x,-t.y)),e=n}return e}_resize(){this._offset&&this.translate(this._offset)}_template(){return`<svg style='width: 100%; height: 100%; overflow: hidden;' xmlns='${Ng}' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>${this._root.render()}</svg>`}}Gg.prototype.type="svg","undefined"!=typeof document&&document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(Eg.support.svg=!0,Sg.current.register("svg",Gg,10)),Og.Group=class extends zg{template(){return`<g${this.renderId()+this.renderTransform()+this.renderStyle()+this.renderOpacity()+this.renderDefinitions()}>${this.renderChildren()}</g>`}optionsChange(e){"transform"===e.field&&this.transformChange(e.value),super.optionsChange(e)}};const Zg={dot:[1.5,3.5],dash:[4,3.5],longdash:[8,3.5],dashdot:[3.5,3.5,1.5,3.5],longdashdot:[8,3.5,1.5,3.5],longdashdotdot:[8,3.5,1.5,3.5,1.5,3.5]},Yg="solid",Kg="butt",Qg={"fill.opacity":"fill-opacity","stroke.color":"stroke","stroke.width":"stroke-width","stroke.opacity":"stroke-opacity"},Xg=" ";class Jg extends zg{geometryChange(){this.attr("d",this.renderData()),this.invalidate()}optionsChange(e){switch(e.field){case"fill":e.value?this.allAttr(this.mapFill(e.value)):this.removeAttr("fill");break;case"fill.color":this.allAttr(this.mapFill({color:e.value}));break;case"stroke":e.value?this.allAttr(this.mapStroke(e.value)):this.removeAttr("stroke");break;case"transform":this.transformChange(e.value);break;default:const t=Qg[e.field];t&&this.attr(t,e.value)}super.optionsChange(e)}content(){this.element&&(this.element.textContent=this.srcElement.content())}renderData(){return this.printPath(this.srcElement)}printPath(e){const t=e.segments,n=t.length;if(n>0){const i=[];let r,s;for(let e=1;e<n;e++){let n=this.segmentType(t[e-1],t[e]);n!==s&&(s=n,i.push(n)),i.push("L"===n?this.printPoints(t[e].anchor()):this.printPoints(t[e-1].controlOut(),t[e].controlIn(),t[e].anchor()))}return r="M"+this.printPoints(t[0].anchor())+Xg+i.join(Xg),e.options.closed&&(r+="Z"),r}}printPoints(){const e=arguments,t=e.length,n=[];for(let i=0;i<t;i++)n.push(e[i].toString(3));return n.join(" ")}segmentType(e,t){return e.controlOut()&&t.controlIn()?"C":"L"}mapStroke(e){const t=[];return e&&!of(e.color)?(t.push(["stroke",e.color]),t.push(["stroke-width",e.width]),t.push(["stroke-linecap",this.renderLinecap(e)]),t.push(["stroke-linejoin",e.lineJoin]),Xp(e.opacity)&&t.push(["stroke-opacity",e.opacity]),Xp(e.dashType)&&t.push(["stroke-dasharray",this.renderDashType(e)])):t.push(["stroke",Fg]),t}renderStroke(){return Dg(this.mapStroke(this.srcElement.options.stroke))}renderDashType(e){const{dashType:t,width:n=1}=e;if(t&&t!==Yg){const e=Zg[t.toLowerCase()],i=[];for(let t=0;t<e.length;t++)i.push(e[t]*n);return i.join(" ")}}renderLinecap(e){const{dashType:t,lineCap:n}=e;return t&&"solid"!==t?Kg:n}mapFill(e){const t=[];return e&&"Gradient"===e.nodeType||(e&&!of(e.color)?(t.push(["fill",e.color]),Xp(e.opacity)&&t.push(["fill-opacity",e.opacity])):t.push(["fill",Fg])),t}renderFill(){return Dg(this.mapFill(this.srcElement.options.fill))}template(){return`<path ${this.renderId()} ${this.renderStyle()} ${this.renderOpacity()} ${Ig("d",this.renderData())}`+`${this.renderStroke()}${this.renderFill()}${this.renderDefinitions()}${this.renderTransform()}></path>`}}Og.Path=Jg;var ev=Jg;Og.Arc=class extends ev{renderData(){return this.printPath(this.srcElement.toPath())}},Og.Circle=class extends ev{geometryChange(){const e=this.center();this.attr("cx",e.x),this.attr("cy",e.y),this.attr("r",this.radius()),this.invalidate()}center(){return this.srcElement.geometry().center}radius(){return this.srcElement.geometry().radius}template(){return`<circle ${this.renderId()} ${this.renderStyle()} ${this.renderOpacity()}`+`cx='${this.center().x}' cy='${this.center().y}' r='${this.radius()}'`+`${this.renderStroke()} ${this.renderFill()} ${this.renderDefinitions()}`+`${this.renderTransform()} ></circle>`}},Og.Rect=class extends ev{geometryChange(){const e=this.srcElement.geometry();this.attr("x",e.origin.x),this.attr("y",e.origin.y),this.attr("width",e.size.width),this.attr("height",e.size.height),this.invalidate()}size(){return this.srcElement.geometry().size}origin(){return this.srcElement.geometry().origin}template(){return`<rect ${this.renderId()} ${this.renderStyle()} ${this.renderOpacity()} x='${this.origin().x}' y='${this.origin().y}' `+`width='${this.size().width}' height='${this.size().height}' ${this.renderStroke()} `+`${this.renderFill()} ${this.renderDefinitions()} ${this.renderTransform()} />`}},Og.Image=class extends ev{geometryChange(){this.allAttr(this.mapPosition()),this.invalidate()}optionsChange(e){"src"===e.field&&this.allAttr(this.mapSource()),super.optionsChange(e)}mapPosition(){const e=this.srcElement.rect(),t=e.topLeft();return[["x",t.x],["y",t.y],["width",e.width()+"px"],["height",e.height()+"px"]]}renderPosition(){return Dg(this.mapPosition())}mapSource(e){let t=this.srcElement.src();return e&&(t=Tp(t)),[["xlink:href",t]]}renderSource(){return Dg(this.mapSource(!0))}template(){return`<image preserveAspectRatio='none' ${this.renderId()} ${this.renderStyle()} ${this.renderTransform()} ${this.renderOpacity()}`+`${this.renderPosition()} ${this.renderSource()} ${this.renderDefinitions()}>`+"</image>"}};const tv=/&(?:[a-zA-Z]+|#\d+);/g;function nv(e){if(!e||"string"!=typeof e||!tv.test(e))return e;const t=nv._element;return tv.lastIndex=0,e.replace(tv,e=>(t.innerHTML=e,t.textContent||t.innerText))}"undefined"!=typeof document&&(nv._element=document.createElement("span")),Og.Text=class extends ev{geometryChange(){const e=this.pos();this.attr("x",e.x),this.attr("y",e.y),this.invalidate()}optionsChange(e){"font"===e.field?(this.attr("style",Ag(this.mapStyle())),this.geometryChange()):"content"===e.field&&super.content(this.srcElement.content()),super.optionsChange(e)}mapStyle(e){const t=super.mapStyle(e);let n=this.srcElement.options.font;return e&&(n=Tp(n)),t.push(["font",n],["white-space","pre"]),t}pos(){const e=this.srcElement.position(),t=this.srcElement.measure();return e.clone().setY(e.y+t.baseline)}renderContent(){let e=this.srcElement.content();return _f(e=Tp(e=nv(e)))}renderTextAnchor(){let e;return!(this.options||{}).rtl||Mp.browser.msie||Mp.browser.edge||(e="end"),Ig("text-anchor",e)}template(){return`<text ${this.renderId()} ${this.renderTextAnchor()} ${this.renderStyle()} ${this.renderOpacity()}`+`x='${this.pos().x}' y='${this.pos().y}' ${this.renderStroke()} ${this.renderTransform()} ${this.renderDefinitions()}`+`${this.renderFill()}>${this.renderContent()}</text>`}},Og.MultiPath=class extends ev{renderData(){const e=this.srcElement.paths;if(e.length>0){const t=[];for(let n=0;n<e.length;n++)t.push(this.printPath(e[n]));return t.join(" ")}}};var iv={};function rv(e,t){const n=t.segments;if(0===n.length)return;let i=n[0],r=i.anchor();e.moveTo(r.x,r.y);for(let s=1;s<n.length;s++){r=(i=n[s]).anchor();let t=n[s-1].controlOut(),o=i.controlIn();t&&o?e.bezierCurveTo(t.x,t.y,o.x,o.y,r.x,r.y):e.lineTo(r.x,r.y)}t.options.closed&&e.closePath()}var sv=class extends Tg{constructor(e){super(e),e&&this.initClip()}initClip(){const e=this.srcElement.clip();e&&(this.clip=e,e.addObserver(this))}clear(){this.srcElement&&this.srcElement.removeObserver(this),this.clearClip(),super.clear()}clearClip(){this.clip&&(this.clip.removeObserver(this),delete this.clip)}setClip(e){this.clip&&(e.beginPath(),rv(e,this.clip),e.clip())}optionsChange(e){"clip"===e.field&&(this.clearClip(),this.initClip()),super.optionsChange(e)}setTransform(e){if(this.srcElement){const t=this.srcElement.transform();t&&e.transform.apply(e,t.matrix().toArray(6))}}loadElements(e,t,n){for(let i=0;i<e.length;i++){let r=e[i],s=r.children,o=new iv[r.nodeType](r,n);s&&s.length>0&&o.load(s,t,n),Xp(t)?this.insertAt(o,t):this.append(o)}}load(e,t,n){this.loadElements(e,t,n),this.invalidate()}setOpacity(e){if(this.srcElement){const t=this.srcElement.opacity();Xp(t)&&this.globalAlpha(e,t)}}globalAlpha(e,t){let n=t;n&&e.globalAlpha&&(n*=e.globalAlpha),e.globalAlpha=n}visible(){const e=this.srcElement;return!e||e&&!1!==e.options.visible}};class ov extends sv{renderTo(e){if(!this.visible())return;e.save(),this.setTransform(e),this.setClip(e),this.setOpacity(e);const t=this.childNodes;for(let n=0;n<t.length;n++){let i=t[n];i.visible()&&i.renderTo(e)}e.restore()}}rg(ov.prototype,"childNodes"),iv.Group=ov;var av=ov;const lv=1e3/60;class hv extends av{constructor(e){super(),this.canvas=e,this.ctx=e.getContext("2d");const t=this._invalidate.bind(this);this.invalidate=function(e,t){let n,i=0;if(!t||t<=0)return e;const r=function(){const r=Pp()-i,s=arguments,o=function(){e.apply(null,s),i=Pp()};if(!i)return o();n&&clearTimeout(n),r>t?o():n=setTimeout(o,t-r)};return r.cancel=function(){clearTimeout(n)},r}(()=>{_p(t)},lv)}destroy(){super.destroy(),this.canvas=null,this.ctx=null}load(e,t,n){this.loadElements(e,t,n),this._invalidate()}_invalidate(){this.ctx&&(this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.renderTo(this.ctx))}}rg(hv.prototype,"childNodes");var uv=hv,cv=class extends bp{constructor(){super(),this.shapes=[]}_add(e,t){this.shapes.push({bbox:t,shape:e}),e._quadNode=this}pointShapes(e){const t=this.shapes,n=t.length,i=[];for(let r=0;r<n;r++)t[r].bbox.containsPoint(e)&&i.push(t[r].shape);return i}insert(e,t){this._add(e,t)}remove(e){const t=this.shapes,n=t.length;for(let i=0;i<n;i++)if(t[i].shape===e){t.splice(i,1);break}}};class dv extends cv{constructor(e){super(),this.children=[],this.rect=e}inBounds(e){const t=this.rect,n=t.bottomRight(),i=e.bottomRight();return t.origin.x<=e.origin.x&&t.origin.y<=e.origin.y&&i.x<=n.x&&i.y<=n.y}pointShapes(e){const t=this.children,n=t.length,i=super.pointShapes(e);for(let r=0;r<n;r++)Gp(i,t[r].pointShapes(e));return i}insert(e,t){const n=this.children;let i=!1;if(this.inBounds(t)){if(this.shapes.length<4)this._add(e,t);else{n.length||this._initChildren();for(let r=0;r<n.length;r++)if(n[r].insert(e,t)){i=!0;break}i||this._add(e,t)}i=!0}return i}_initChildren(){const{rect:e,children:t}=this,n=e.center(),i=e.width()/2,r=e.height()/2;t.push(new dv(new zf([e.origin.x,e.origin.y],[i,r])),new dv(new zf([n.x,e.origin.y],[i,r])),new dv(new zf([e.origin.x,n.y],[i,r])),new dv(new zf([n.x,n.y],[i,r])))}}var pv=dv;function fv(e,t){return e._zIndex<t._zIndex?1:e._zIndex>t._zIndex?-1:0}var mv=class extends bp{constructor(){super(),this.initRoots()}initRoots(){this.rootMap={},this.root=new cv,this.rootElements=[]}clear(){const e=this.rootElements;for(let t=0;t<e.length;t++)this.remove(e[t]);this.initRoots()}pointShape(e){const t=(this.rootMap[Math.floor(e.x/3e3)]||{})[Math.floor(e.y/3e3)];let n=this.root.pointShapes(e);t&&(n=n.concat(t.pointShapes(e))),this.assignZindex(n),n.sort(fv);for(let i=0;i<n.length;i++)if(n[i].containsPoint(e))return n[i]}assignZindex(e){for(let t=0;t<e.length;t++){let n=e[t],i=0,r=Math.pow(1e4,75),s=[];for(;n;)s.push(n),n=n.parent;for(;s.length;)i+=(((n=s.pop()).parent?n.parent.children:this.rootElements).indexOf(n)+1)*r,r/=1e4;e[t]._zIndex=i}}optionsChange(e){"transform"!==e.field&&"stroke.width"!==e.field||this.bboxChange(e.element)}geometryChange(e){this.bboxChange(e.element)}bboxChange(e){if("Group"===e.nodeType)for(let t=0;t<e.children.length;t++)this.bboxChange(e.children[t]);else e._quadNode&&e._quadNode.remove(e),this._insertShape(e)}add(e){const t=Array.isArray(e)?e.slice(0):[e];Gp(this.rootElements,t),this._insert(t)}childrenChange(e){if("remove"===e.action)for(let t=0;t<e.items.length;t++)this.remove(e.items[t]);else this._insert(Array.prototype.slice.call(e.items,0))}_insert(e){let t;for(;e.length>0;)(t=e.pop()).addObserver(this),"Group"===t.nodeType?Gp(e,t.children):this._insertShape(t)}_insertShape(e){const t=e.bbox();if(t){const n=this.getSectors(t),i=n[0][0],r=n[1][0];if(this.inRoot(n))this.root.insert(e,t);else{const n=this.rootMap;n[i]||(n[i]={}),n[i][r]||(n[i][r]=new pv(new zf([3e3*i,3e3*r],[3e3,3e3]))),n[i][r].insert(e,t)}}}remove(e){if(e.removeObserver(this),"Group"===e.nodeType){const t=e.children;for(let e=0;e<t.length;e++)this.remove(t[e])}else e._quadNode&&(e._quadNode.remove(e),delete e._quadNode)}inRoot(e){return e[0].length>1||e[1].length>1}getSectors(e){const t=e.bottomRight(),n=Math.floor(t.x/3e3),i=Math.floor(t.y/3e3),r=[[],[]];for(let s=Math.floor(e.origin.x/3e3);s<=n;s++)r[0].push(s);for(let s=Math.floor(e.origin.y/3e3);s<=i;s++)r[1].push(s);return r}},gv=class{constructor(e){e.bind("mouseenter",this._mouseenter.bind(this)),e.bind("mouseleave",this._mouseleave.bind(this)),this.element=e.element}clear(){this._resetCursor()}destroy(){this._resetCursor(),delete this.element}_mouseenter(e){const t=this._shapeCursor(e);t?(this._current||(this._defaultCursor=this._getCursor()),this._setCursor(t)):this._resetCursor()}_mouseleave(){this._resetCursor()}_shapeCursor(e){let t=e.element;for(;t&&!Xp(t.options.cursor);)t=t.parent;if(t)return t.options.cursor}_getCursor(){if(this.element)return this.element.style.cursor}_setCursor(e){this.element&&(this.element.style.cursor=e,this._current=e)}_resetCursor(){this._current&&(this._setCursor(this._defaultCursor||""),delete this._current)}};class vv extends Eg{constructor(e,t){super(e,t),this.element.innerHTML=this._template(this);const n=this.element.firstElementChild,i=mf(e);n.width=i.width,n.height=i.height,this._rootElement=n,this._root=new uv(n),this._mouseTrackHandler=this._trackMouse.bind(this),df(this.element,{click:this._mouseTrackHandler,mousemove:this._mouseTrackHandler})}destroy(){super.destroy(),this._root&&(this._root.destroy(),this._root=null),this._searchTree&&(this._searchTree.clear(),delete this._searchTree),this._cursor&&(this._cursor.destroy(),delete this._cursor),gf(this.element,{click:this._mouseTrackHandler,mousemove:this._mouseTrackHandler})}draw(e){super.draw(e),this._root.load([e],void 0,this.options.cors),this._searchTree&&this._searchTree.add([e])}clear(){super.clear(),this._root.clear(),this._searchTree&&this._searchTree.clear(),this._cursor&&this._cursor.clear()}eventTarget(e){if(this._searchTree){const t=this._surfacePoint(e);return this._searchTree.pointShape(t)}}image(){const{_root:e,_rootElement:t}=this,n=[];e.traverse(e=>{e.loading&&n.push(e.loading)});const i=Kp(),r=()=>{e._invalidate();try{const e=t.toDataURL();i.resolve(e)}catch(n){i.reject(n)}};var s;return(s=n,Promise.all(s)).then(r,r),i}suspendTracking(){super.suspendTracking(),this._searchTree&&(this._searchTree.clear(),delete this._searchTree)}resumeTracking(){if(super.resumeTracking(),!this._searchTree){this._searchTree=new mv;const e=this._root.childNodes,t=[];for(let n=0;n<e.length;n++)t.push(e[n].srcElement);this._searchTree.add(t)}}_resize(){this._rootElement.width=this._size.width,this._rootElement.height=this._size.height,this._root.invalidate()}_template(){return"<canvas style='width: 100%; height: 100%;'></canvas>"}_enableTracking(){this._searchTree=new mv,this._cursor=new gv(this),super._enableTracking()}_trackMouse(e){if(this._suspendedTracking)return;const t=this.eventTarget(e);if("click"!==e.type){const n=this._currentShape;n&&n!==t&&this.trigger("mouseleave",{element:n,originalEvent:e,type:"mouseleave"}),t&&n!==t&&this.trigger("mouseenter",{element:t,originalEvent:e,type:"mouseenter"}),this.trigger("mousemove",{element:t,originalEvent:e,type:"mousemove"}),this._currentShape=t}else t&&this.trigger("click",{element:t,originalEvent:e,type:"click"})}}vv.prototype.type="canvas","undefined"!=typeof document&&document.createElement("canvas").getContext&&(Eg.support.canvas=!0,Sg.current.register("canvas",vv,20));class yv extends sv{renderTo(e){e.save(),this.setTransform(e),this.setClip(e),this.setOpacity(e),e.beginPath(),this.renderPoints(e,this.srcElement),this.setLineDash(e),this.setLineCap(e),this.setLineJoin(e),this.setFill(e),this.setStroke(e),e.restore()}setFill(e){const t=this.srcElement.options.fill;let n=!1;return t&&("Gradient"===t.nodeType?(this.setGradientFill(e,t),n=!0):of(t.color)||(e.fillStyle=t.color,e.save(),this.globalAlpha(e,t.opacity),e.fill(),e.restore(),n=!0)),n}setGradientFill(e,t){const n=this.srcElement.rawBBox();let i;if(t instanceof mg){let n=t.start(),r=t.end();i=e.createLinearGradient(n.x,n.y,r.x,r.y)}else if(t instanceof vg){let n=t.center();i=e.createRadialGradient(n.x,n.y,0,n.x,n.y,t.radius())}!function(e,t){for(let n=0;n<t.length;n++){let i=t[n],r=Wp(i.color());r.a*=i.opacity(),e.addColorStop(i.offset(),r.toCssRgba())}}(i,t.stops),e.save(),t.userSpace()||e.transform(n.width(),0,0,n.height(),n.origin.x,n.origin.y),e.fillStyle=i,e.fill(),e.restore()}setStroke(e){const t=this.srcElement.options.stroke;if(t&&!of(t.color)&&t.width>0)return e.strokeStyle=t.color,e.lineWidth=cf(t.width,1),e.save(),this.globalAlpha(e,t.opacity),e.stroke(),e.restore(),!0}dashType(){const e=this.srcElement.options.stroke;if(e&&e.dashType)return e.dashType.toLowerCase()}setLineDash(e){const t=this.dashType();if(t&&t!==Yg){const n=Zg[t];e.setLineDash?e.setLineDash(n):(e.mozDash=n,e.webkitLineDash=n)}}setLineCap(e){const t=this.dashType(),n=this.srcElement.options.stroke;t&&t!==Yg?e.lineCap=Kg:n&&n.lineCap&&(e.lineCap=n.lineCap)}setLineJoin(e){const t=this.srcElement.options.stroke;t&&t.lineJoin&&(e.lineJoin=t.lineJoin)}renderPoints(e,t){rv(e,t)}}iv.Path=yv;var wv=yv;iv.Arc=class extends wv{renderPoints(e){rv(e,this.srcElement.toPath())}},iv.Circle=class extends wv{renderPoints(e){const{center:t,radius:n}=this.srcElement.geometry();e.arc(t.x,t.y,n,0,2*Math.PI)}},iv.Rect=class extends wv{renderPoints(e){const{origin:t,size:n}=this.srcElement.geometry();e.rect(t.x,t.y,n.width,n.height)}},iv.Image=class extends wv{constructor(e,t){super(e),this.onLoad=this.onLoad.bind(this),this.onError=this.onError.bind(this),this.loading=Kp();const n=this.img=new Image;t&&!/^data:/i.test(e.src())&&(n.crossOrigin=t),n.src=e.src(),n.complete?this.onLoad():(n.onload=this.onLoad,n.onerror=this.onError)}renderTo(e){"resolved"===this.loading.state()&&(e.save(),this.setTransform(e),this.setClip(e),this.drawImage(e),e.restore())}optionsChange(e){"src"===e.field?(this.loading=Kp(),this.img.src=this.srcElement.src()):super.optionsChange(e)}onLoad(){this.loading.resolve(),this.invalidate()}onError(){this.loading.reject(new Error("Unable to load image '"+this.img.src+"'. Check for connectivity and verify CORS headers."))}drawImage(e){const t=this.srcElement.rect(),n=t.topLeft();e.drawImage(this.img,n.x,n.y,t.width(),t.height())}},iv.Text=class extends wv{renderTo(e){const t=this.srcElement,n=t.position(),i=t.measure();e.save(),this.setTransform(e),this.setClip(e),this.setOpacity(e),e.beginPath(),e.font=t.options.font,e.textAlign="left",this.setFill(e)&&e.fillText(t.content(),n.x,n.y+i.baseline),this.setStroke(e)&&(this.setLineDash(e),e.strokeText(t.content(),n.x,n.y+i.baseline)),e.restore()}},iv.MultiPath=class extends wv{renderPoints(e){const t=this.srcElement.paths;for(let n=0;n<t.length;n++)rv(e,t[n])}};const _v="undefined"!=typeof Uint8Array&&Mp.browser&&(!Mp.browser.msie||Mp.browser.version>9),bv=(xv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",{decode:function(e){for(var t=e.replace(/[^A-Za-z0-9\+\/\=]/g,""),n=0,i=t.length,r=[];n<i;){var s=xv.indexOf(t.charAt(n++)),o=xv.indexOf(t.charAt(n++)),a=xv.indexOf(t.charAt(n++)),l=xv.indexOf(t.charAt(n++)),h=(15&o)<<4|a>>>2,u=(3&a)<<6|l;r.push(s<<2|o>>>4),64!=a&&r.push(h),64!=l&&r.push(u)}return r},encode:function(e){for(var t=0,n=e.length,i="";t<n;){var r=e[t++],s=e[t++],o=e[t++],a=(3&r)<<4|s>>>4,l=(15&s)<<2|o>>>6,h=63&o;t-n==2?l=h=64:t-n==1&&(h=64),i+=xv.charAt(r>>>2)+xv.charAt(a)+xv.charAt(l)+xv.charAt(h)}return i}});var xv;function Cv(e){var t=0,n=0;null==e?e=_v?new Uint8Array(256):[]:n=e.length;var i=_v?function(t){if(t>=e.length){var n=new Uint8Array(Math.max(t+256,2*e.length));n.set(e,0),e=n}}:function(){},r=_v?function(){return new Uint8Array(e.buffer,0,n)}:function(){return e},s=_v?function(r){if("string"==typeof r)return m(r);var s=r.length;i(t+s),e.set(r,t),(t+=s)>n&&(n=t)}:function(e){if("string"==typeof e)return m(e);for(var t=0;t<e.length;++t)a(e[t])};function o(){return t<n?e[t++]:0}function a(r){i(t),e[t++]=255&r,t>n&&(n=t)}function l(){return o()<<8|o()}function h(e){a(e>>8),a(e)}function u(){return 65536*l()+l()}function c(e){h(e>>>16&65535),h(65535&e)}function d(){var e=u();return e>=2147483648?e-4294967296:e}function p(e){c(e<0?e+4294967296:e)}function f(e){return g(e,o)}function m(e){for(var t=0;t<e.length;++t)a(e.charCodeAt(t))}function g(e,t){for(var n=new Array(e),i=0;i<e;++i)n[i]=t();return n}var v={eof:function(){return t>=n},readByte:o,writeByte:a,readShort:l,writeShort:h,readLong:u,writeLong:c,readFixed:function(){return u()/65536},writeFixed:function(e){c(Math.round(65536*e))},readShort_:function(){var e=l();return e>=32768?e-65536:e},writeShort_:function(e){h(e<0?e+65536:e)},readLong_:d,writeLong_:p,readFixed_:function(){return d()/65536},writeFixed_:function(e){p(Math.round(65536*e))},read:f,write:s,readString:function(e){return String.fromCharCode.apply(String,f(e))},writeString:m,times:g,get:r,slice:_v?function(t,n){if(e.buffer.slice)return new Uint8Array(e.buffer.slice(t,t+n));var i=new Uint8Array(n);return i.set(new Uint8Array(e.buffer,t,n)),i}:function(t,n){return e.slice(t,t+n)},offset:function(e){return null!=e?(t=e,v):t},skip:function(e){t+=e},toString:function(){throw new Error("FIX CALLER.  BinaryStream is no longer convertible to string!")},length:function(){return n},saveExcursion:function(e){var n=t;try{return e()}finally{t=n}},writeBase64:function(e){window.atob?m(window.atob(e)):s(bv.decode(e))},base64:function(){return bv.encode(r())}};return v}function Sv(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function kv(e){return Object.keys(e).sort(function(e,t){return e-t}).map(parseFloat)}function Ev(e){this.raw=e,this.scalerType=e.readLong(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort();for(var t=this.tables={},n=0;n<this.tableCount;++n){var i={tag:e.readString(4),checksum:e.readLong(),offset:e.readLong(),length:e.readLong()};t[i.tag]=i}}function Tv(e){function t(e,t){this.definition=t,this.length=t.length,this.offset=t.offset,this.file=e,this.rawData=e.raw,this.parse(e.raw)}for(var n in t.prototype.raw=function(){return this.rawData.slice(this.offset,this.length)},e)Sv(e,n)&&(t[n]=t.prototype[n]=e[n]);return t}Ev.prototype={readTable:function(e,t){var n=this.tables[e];if(!n)throw new Error("Table "+e+" not found in directory");return this[e]=n.table=new t(this,n)},render:function(e){var t=Object.keys(e).length,n=Math.pow(2,Math.floor(Math.log(t)/Math.LN2)),i=16*n,r=Math.floor(Math.log(n)/Math.LN2),s=16*t-i,o=Cv();o.writeLong(this.scalerType),o.writeShort(t),o.writeShort(i),o.writeShort(r),o.writeShort(s);var a=16*t,l=o.offset()+a,h=null,u=Cv();for(var c in e)if(Sv(e,c)){var d=e[c];for(o.writeString(c),o.writeLong(this.checksum(d)),o.writeLong(l),o.writeLong(d.length),u.write(d),"head"==c&&(h=l),l+=d.length;l%4;)u.writeByte(0),l++}o.write(u.get());var p=2981146554-this.checksum(o.get());return o.offset(h+8),o.writeLong(p),o.get()},checksum:function(e){e=Cv(e);for(var t=0;!e.eof();)t+=e.readLong();return 4294967295&t}};var Iv,Dv=Tv({parse:function(e){e.offset(this.offset),this.version=e.readLong(),this.revision=e.readLong(),this.checkSumAdjustment=e.readLong(),this.magicNumber=e.readLong(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.read(8),this.modified=e.read(8),this.xMin=e.readShort_(),this.yMin=e.readShort_(),this.xMax=e.readShort_(),this.yMax=e.readShort_(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort_(),this.indexToLocFormat=e.readShort_(),this.glyphDataFormat=e.readShort_()},render:function(e){var t=Cv();return t.writeLong(this.version),t.writeLong(this.revision),t.writeLong(0),t.writeLong(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.write(this.created),t.write(this.modified),t.writeShort_(this.xMin),t.writeShort_(this.yMin),t.writeShort_(this.xMax),t.writeShort_(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort_(this.fontDirectionHint),t.writeShort_(e),t.writeShort_(this.glyphDataFormat),t.get()}}),Av=Tv({parse:function(e){e.offset(this.offset),this.offsets=0===this.file.head.indexToLocFormat?e.times(this.length/2,function(){return 2*e.readShort()}):e.times(this.length/4,e.readLong)},offsetOf:function(e){return this.offsets[e]},lengthOf:function(e){return this.offsets[e+1]-this.offsets[e]},render:function(e){for(var t=Cv(),n=e[e.length-1]>65535,i=0;i<e.length;++i)n?t.writeLong(e[i]):t.writeShort(e[i]/2);return{format:n?1:0,table:t.get()}}}),Ov=Tv({parse:function(e){e.offset(this.offset),this.version=e.readLong(),this.ascent=e.readShort_(),this.descent=e.readShort_(),this.lineGap=e.readShort_(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort_(),this.minRightSideBearing=e.readShort_(),this.xMaxExtent=e.readShort_(),this.caretSlopeRise=e.readShort_(),this.caretSlopeRun=e.readShort_(),this.caretOffset=e.readShort_(),e.skip(8),this.metricDataFormat=e.readShort_(),this.numOfLongHorMetrics=e.readShort()},render:function(e){var t=Cv();return t.writeLong(this.version),t.writeShort_(this.ascent),t.writeShort_(this.descent),t.writeShort_(this.lineGap),t.writeShort(this.advanceWidthMax),t.writeShort_(this.minLeftSideBearing),t.writeShort_(this.minRightSideBearing),t.writeShort_(this.xMaxExtent),t.writeShort_(this.caretSlopeRise),t.writeShort_(this.caretSlopeRun),t.writeShort_(this.caretOffset),t.write([0,0,0,0,0,0,0,0]),t.writeShort_(this.metricDataFormat),t.writeShort(e.length),t.get()}}),Nv=Tv({parse:function(e){e.offset(this.offset),this.version=e.readLong(),this.numGlyphs=e.readShort(),this.maxPoints=e.readShort(),this.maxContours=e.readShort(),this.maxComponentPoints=e.readShort(),this.maxComponentContours=e.readShort(),this.maxZones=e.readShort(),this.maxTwilightPoints=e.readShort(),this.maxStorage=e.readShort(),this.maxFunctionDefs=e.readShort(),this.maxInstructionDefs=e.readShort(),this.maxStackElements=e.readShort(),this.maxSizeOfInstructions=e.readShort(),this.maxComponentElements=e.readShort(),this.maxComponentDepth=e.readShort()},render:function(e){var t=Cv();return t.writeLong(this.version),t.writeShort(e.length),t.writeShort(this.maxPoints),t.writeShort(this.maxContours),t.writeShort(this.maxComponentPoints),t.writeShort(this.maxComponentContours),t.writeShort(this.maxZones),t.writeShort(this.maxTwilightPoints),t.writeShort(this.maxStorage),t.writeShort(this.maxFunctionDefs),t.writeShort(this.maxInstructionDefs),t.writeShort(this.maxStackElements),t.writeShort(this.maxSizeOfInstructions),t.writeShort(this.maxComponentElements),t.writeShort(this.maxComponentDepth),t.get()}}),Fv=Tv({parse:function(e){e.offset(this.offset);var t=this.file;this.metrics=e.times(t.hhea.numOfLongHorMetrics,function(){return{advance:e.readShort(),lsb:e.readShort_()}}),this.leftSideBearings=e.times(t.maxp.numGlyphs-t.hhea.numOfLongHorMetrics,e.readShort_)},forGlyph:function(e){var t=this.metrics,n=t.length;return e<n?t[e]:{advance:t[n-1].advance,lsb:this.leftSideBearings[e-n]}},render:function(e){for(var t=Cv(),n=0;n<e.length;++n){var i=this.forGlyph(e[n]);t.writeShort(i.advance),t.writeShort_(i.lsb)}return t.get()}}),Mv=function(){function e(e){this.raw=e}e.prototype={compound:!1,render:function(){return this.raw.get()}};var t=1,n=8,i=32,r=64,s=128;function o(e){this.raw=e;for(var o=this.glyphIds=[],a=this.idOffsets=[];;){var l=e.readShort();if(a.push(e.offset()),o.push(e.readShort()),!(l&i))break;e.skip(l&t?4:2),l&s?e.skip(8):l&r?e.skip(4):l&n&&e.skip(2)}}return o.prototype={compound:!0,render:function(e){for(var t=Cv(this.raw.get()),n=0;n<this.glyphIds.length;++n){var i=this.glyphIds[n];t.offset(this.idOffsets[n]),t.writeShort(e[i])}return t.get()}},Tv({parse:function(){this.cache={}},glyphFor:function(t){var n=this.cache;if(Sv(n,t))return n[t];var i=this.file.loca,r=i.lengthOf(t);if(0===r)return n[t]=null;var s=this.rawData,a=this.offset+i.offsetOf(t),l=Cv(s.slice(a,r)),h=l.readShort_(),u=l.readShort_(),c=l.readShort_(),d=l.readShort_(),p=l.readShort_(),f=n[t]=-1==h?new o(l):new e(l);return f.numberOfContours=h,f.xMin=u,f.yMin=c,f.xMax=d,f.yMax=p,f},render:function(e,t,n){for(var i=Cv(),r=[],s=0;s<t.length;++s){var o=e[t[s]];r.push(i.offset()),o&&i.write(o.render(n))}return r.push(i.offset()),{table:i.get(),offsets:r}}})}(),Pv=function(){function e(e,t){this.text=e,this.length=e.length,this.platformID=t.platformID,this.platformSpecificID=t.platformSpecificID,this.languageID=t.languageID,this.nameID=t.nameID}return Tv({parse:function(t){t.offset(this.offset),t.readShort();for(var n=t.readShort(),i=this.offset+t.readShort(),r=t.times(n,function(){return{platformID:t.readShort(),platformSpecificID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:t.readShort()+i}}),s=this.strings={},o=0;o<r.length;++o){var a=r[o];t.offset(a.offset);var l=t.readString(a.length);s[a.nameID]||(s[a.nameID]=[]),s[a.nameID].push(new e(l,a))}this.postscriptEntry=s[6][0],this.postscriptName=this.postscriptEntry.text.replace(/[^\x20-\x7F]/g,"")},render:function(t){var n=this.strings,i=0;for(var r in n)Sv(n,r)&&(i+=n[r].length);var s=Cv(),o=Cv();for(r in s.writeShort(0),s.writeShort(i),s.writeShort(6+12*i),n)if(Sv(n,r))for(var a=6==r?[new e(t,this.postscriptEntry)]:n[r],l=0;l<a.length;++l){var h=a[l];s.writeShort(h.platformID),s.writeShort(h.platformSpecificID),s.writeShort(h.languageID),s.writeShort(h.nameID),s.writeShort(h.length),s.writeShort(o.offset()),o.writeString(h.text)}return s.write(o.get()),s.get()}})}(),Rv=(Iv=".notdef .null nonmarkingreturn space exclam quotedbl numbersign dollar percent ampersand quotesingle parenleft parenright asterisk plus comma hyphen period slash zero one two three four five six seven eight nine colon semicolon less equal greater question at 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 bracketleft backslash bracketright asciicircum underscore grave 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 braceleft bar braceright asciitilde Adieresis Aring Ccedilla Eacute Ntilde Odieresis Udieresis aacute agrave acircumflex adieresis atilde aring ccedilla eacute egrave ecircumflex edieresis iacute igrave icircumflex idieresis ntilde oacute ograve ocircumflex odieresis otilde uacute ugrave ucircumflex udieresis dagger degree cent sterling section bullet paragraph germandbls registered copyright trademark acute dieresis notequal AE Oslash infinity plusminus lessequal greaterequal yen mu partialdiff summation product pi integral ordfeminine ordmasculine Omega ae oslash questiondown exclamdown logicalnot radical florin approxequal Delta guillemotleft guillemotright ellipsis nonbreakingspace Agrave Atilde Otilde OE oe endash emdash quotedblleft quotedblright quoteleft quoteright divide lozenge ydieresis Ydieresis fraction currency guilsinglleft guilsinglright fi fl daggerdbl periodcentered quotesinglbase quotedblbase perthousand Acircumflex Ecircumflex Aacute Edieresis Egrave Iacute Icircumflex Idieresis Igrave Oacute Ocircumflex apple Ograve Uacute Ucircumflex Ugrave dotlessi circumflex tilde macron breve dotaccent ring cedilla hungarumlaut ogonek caron Lslash lslash Scaron scaron Zcaron zcaron brokenbar Eth eth Yacute yacute Thorn thorn minus multiply onesuperior twosuperior threesuperior onehalf onequarter threequarters franc Gbreve gbreve Idotaccent Scedilla scedilla Cacute cacute Ccaron ccaron dcroat".split(/\s+/g),Tv({parse:function(e){var t;switch(e.offset(this.offset),this.format=e.readLong(),this.italicAngle=e.readFixed_(),this.underlinePosition=e.readShort_(),this.underlineThickness=e.readShort_(),this.isFixedPitch=e.readLong(),this.minMemType42=e.readLong(),this.maxMemType42=e.readLong(),this.minMemType1=e.readLong(),this.maxMemType1=e.readLong(),this.format){case 65536:case 196608:break;case 131072:t=e.readShort(),this.glyphNameIndex=e.times(t,e.readShort),this.names=[];for(var n=this.offset+this.length;e.offset()<n;)this.names.push(e.readString(e.readByte()));break;case 151552:t=e.readShort(),this.offsets=e.read(t);break;case 262144:this.map=e.times(this.file.maxp.numGlyphs,e.readShort)}},glyphFor:function(e){switch(this.format){case 65536:return Iv[e]||".notdef";case 131072:var t=this.glyphNameIndex[e];return t<Iv.length?Iv[t]:this.names[t-Iv.length]||".notdef";case 151552:case 196608:return".notdef";case 262144:return this.map[e]||65535}},render:function(e){if(196608==this.format)return this.raw();var t=Cv(this.rawData.slice(this.offset,32));t.writeLong(131072),t.offset(32);for(var n=[],i=[],r=0;r<e.length;++r){var s=this.glyphFor(e[r]),o=Iv.indexOf(s);o>=0?n.push(o):(n.push(Iv.length+i.length),i.push(s))}for(t.writeShort(e.length),r=0;r<n.length;++r)t.writeShort(n[r]);for(r=0;r<i.length;++r)t.writeByte(i[r].length),t.writeString(i[r]);return t.get()}})),Vv=function(){function e(e,t,n){var i=this;i.platformID=e.readShort(),i.platformSpecificID=e.readShort(),i.offset=t+e.readLong(),e.saveExcursion(function(){var t;switch(e.offset(i.offset),i.format=e.readShort(),i.format){case 0:i.length=e.readShort(),i.language=e.readShort();for(var r=0;r<256;++r)n[r]=e.readByte();break;case 4:i.length=e.readShort(),i.language=e.readShort();var s=e.readShort()/2;e.skip(6);var o=e.times(s,e.readShort);e.skip(2);var a=e.times(s,e.readShort),l=e.times(s,e.readShort_),h=e.times(s,e.readShort),u=(i.length+i.offset-e.offset())/2,c=e.times(u,e.readShort);for(r=0;r<s;++r){var d=a[r],p=o[r];for(t=d;t<=p;++t){var f;0===h[r]?f=t+l[r]:0!==(f=c[h[r]/2-(s-r)+(t-d)]||0)&&(f+=l[r]),n[t]=65535&f}}break;case 6:i.length=e.readShort(),i.language=e.readShort(),t=e.readShort();for(var m=e.readShort();m-- >0;)n[t++]=e.readShort();break;case 12:e.readShort(),i.length=e.readLong(),i.language=e.readLong();for(var g=e.readLong();g-- >0;){t=e.readLong();for(var v=e.readLong(),y=e.readLong();t<=v;)n[t++]=y++}break;default:window.console&&window.console.error("Unhandled CMAP format: "+i.format)}})}return Tv({parse:function(t){var n=this,i=n.offset;t.offset(i),n.codeMap={},n.version=t.readShort();var r=t.readShort();n.tables=t.times(r,function(){return new e(t,i,n.codeMap)})},render:function(e,t){var n=Cv();return n.writeShort(0),n.writeShort(1),n.write(function(e,t){var n=kv(e),i=[],r=[],s=null,o=null;function a(n){return t[e[n]]}for(var l=0;l<n.length;++l){var h=n[l],u=a(h)-h;null!=s&&u===o||(s&&r.push(s),i.push(h),o=u),s=h}s&&r.push(s),r.push(65535),i.push(65535);var c=i.length,d=2*c,p=2*Math.pow(2,Math.floor(Math.log(c)/Math.LN2)),f=Math.log(p/2)/Math.LN2,m=d-p,g=[],v=[],y=[];for(l=0;l<c;++l){var w=i[l],_=r[l];if(65535==w){g.push(0),v.push(0);break}var b=a(w);if(w-b>=32768){g.push(0),v.push(2*(y.length+c-l));for(var x=w;x<=_;++x)y.push(a(x))}else g.push(b-w),v.push(0)}var C=Cv();return C.writeShort(3),C.writeShort(1),C.writeLong(12),C.writeShort(4),C.writeShort(16+8*c+2*y.length),C.writeShort(0),C.writeShort(d),C.writeShort(p),C.writeShort(f),C.writeShort(m),r.forEach(C.writeShort),C.writeShort(0),i.forEach(C.writeShort),g.forEach(C.writeShort_),v.forEach(C.writeShort),y.forEach(C.writeShort),C.get()}(e,t)),n.get()}})}(),zv=Tv({parse:function(e){e.offset(this.offset),this.version=e.readShort(),this.averageCharWidth=e.readShort_(),this.weightClass=e.readShort(),this.widthClass=e.readShort(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort_(),this.ySubscriptYSize=e.readShort_(),this.ySubscriptXOffset=e.readShort_(),this.ySubscriptYOffset=e.readShort_(),this.ySuperscriptXSize=e.readShort_(),this.ySuperscriptYSize=e.readShort_(),this.ySuperscriptXOffset=e.readShort_(),this.ySuperscriptYOffset=e.readShort_(),this.yStrikeoutSize=e.readShort_(),this.yStrikeoutPosition=e.readShort_(),this.familyClass=e.readShort_(),this.panose=e.times(10,e.readByte),this.charRange=e.times(4,e.readLong),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort_(),this.descent=e.readShort_(),this.lineGap=e.readShort_(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=e.times(2,e.readLong),this.version>1&&(this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()))},render:function(){return this.raw()}}),Lv=1e5;function Bv(e){this.font=e,this.subset={},this.unicodes={},this.ogid2ngid={0:0},this.ngid2ogid={0:0},this.ncid2ogid={},this.next=this.firstChar=1,this.nextGid=1,this.psName=function(){for(var e="",t=String(Lv),n=0;n<t.length;++n)e+=String.fromCharCode(t.charCodeAt(n)-48+65);return++Lv,e}()+"+"+this.font.psName}function Hv(e,t){var n=this,i=n.contents=Cv(e);if("ttcf"==i.readString(4)){var r;const e=function(){i.offset(r),n.parse()};if(!t)throw new Error("Must specify a name for TTC files");i.readLong();for(var s=i.readLong(),o=0;o<s;++o)if(r=i.readLong(),i.saveExcursion(e),n.psName==t)return;throw new Error("Font "+t+" not found in collection")}i.offset(0),n.parse()}Bv.prototype={use:function(e){var t=this;if("string"==typeof e)return function(e){for(var t,n,i=[],r=0,s=e.length;r<s;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<s?56320==(64512&(n=e.charCodeAt(r++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),r--):i.push(t);return i}(e).reduce(function(e,n){return e+String.fromCharCode(t.use(n))},"");var n=t.unicodes[e];if(!n){n=t.next++,t.subset[n]=e,t.unicodes[e]=n;var i=t.font.cmap.codeMap[e];if(i&&(t.ncid2ogid[n]=i,null==t.ogid2ngid[i])){var r=t.nextGid++;t.ogid2ngid[i]=r,t.ngid2ogid[r]=i}}return n},encodeText:function(e){return this.use(e)},glyphIds:function(){return kv(this.ogid2ngid)},glyphsFor:function(e,t){t||(t={});for(var n=0;n<e.length;++n){var i=e[n];if(!t[i]){var r=t[i]=this.font.glyf.glyphFor(i);r&&r.compound&&this.glyphsFor(r.glyphIds,t)}}return t},render:function(){var e=this.glyphsFor(this.glyphIds());for(var t in e)if(Sv(e,t)&&(t=parseInt(t,10),null==this.ogid2ngid[t])){var n=this.nextGid++;this.ogid2ngid[t]=n,this.ngid2ogid[n]=t}var i=kv(this.ngid2ogid).map(function(e){return this.ngid2ogid[e]},this),r=this.font,s=r.glyf.render(e,i,this.ogid2ngid),o=r.loca.render(s.offsets);this.lastChar=this.next-1;var a={cmap:Vv.render(this.ncid2ogid,this.ogid2ngid),glyf:s.table,loca:o.table,hmtx:r.hmtx.render(i),hhea:r.hhea.render(i),maxp:r.maxp.render(i),post:r.post.render(i),name:r.name.render(this.psName),head:r.head.render(o.format),"OS/2":r.os2.render()};return this.font.directory.render(a)},cidToGidMap:function(){for(var e=Cv(),t=0,n=this.firstChar;n<this.next;++n){for(;t<n;)e.writeShort(0),t++;var i=this.ncid2ogid[n];e.writeShort(i?this.ogid2ngid[i]:0),t++}return e.get()}},Hv.prototype={parse:function(){var e=this.directory=new Ev(this.contents);this.head=e.readTable("head",Dv),this.loca=e.readTable("loca",Av),this.hhea=e.readTable("hhea",Ov),this.maxp=e.readTable("maxp",Nv),this.hmtx=e.readTable("hmtx",Fv),this.glyf=e.readTable("glyf",Mv),this.name=e.readTable("name",Pv),this.post=e.readTable("post",Rv),this.cmap=e.readTable("cmap",Vv),this.os2=e.readTable("OS/2",zv),this.psName=this.name.postscriptName,this.ascent=this.os2.ascent||this.hhea.ascent,this.descent=this.os2.descent||this.hhea.descent,this.lineGap=this.os2.lineGap||this.hhea.lineGap,this.scale=1e3/this.head.unitsPerEm},widthOfGlyph:function(e){return this.hmtx.forGlyph(e).advance*this.scale},makeSubset:function(){return new Bv(this)}};const $v=n("wSl+").deflate,jv=Mp.browser,Uv="\n";var qv=0;const Wv={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],executive:[521.86,756],folio:[612,936],legal:[612,1008],letter:[612,792],tabloid:[792,1224]};var Gv={"Times-Roman":!0,"Times-Bold":!0,"Times-Italic":!0,"Times-BoldItalic":!0,Helvetica:!0,"Helvetica-Bold":!0,"Helvetica-Oblique":!0,"Helvetica-BoldOblique":!0,Courier:!0,"Courier-Bold":!0,"Courier-Oblique":!0,"Courier-BoldOblique":!0,Symbol:!0,ZapfDingbats:!0};function Zv(e,t,n){for(;e.length<t;)e=n+e;return e}function Yv(e,t){return Zv(String(e),t,"0")}function Kv(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Qv=Array.isArray||function(e){return e instanceof Array};function Xv(e,t){t("["),e.length>0&&t.withIndent(function(){for(var n=0;n<e.length;++n)n>0&&n%8==0?t.indent(e[n]):t(" ",e[n])}),t(" ]")}function Jv(e,t){t("(D:",Yv(e.getUTCFullYear(),4),Yv(e.getUTCMonth()+1,2),Yv(e.getUTCDate(),2),Yv(e.getUTCHours(),2),Yv(e.getUTCMinutes(),2),Yv(e.getUTCSeconds(),2),"Z)")}function ey(e){return e*(72/25.4)}function ty(e){return ey(10*e)}function ny(e){return 72*e}function iy(e,t){if("number"==typeof e)return e;var n;if("string"==typeof e&&(n=/^\s*([0-9.]+)\s*(mm|cm|in|pt)\s*$/.exec(e))){var i=parseFloat(n[1]);if(!isNaN(i))return"pt"==n[2]?i:{mm:ey,cm:ty,in:ny}[n[2]](i)}if(null!=t)return t;throw new Error("Can't parse unit: "+e)}function ry(){}function sy(e,t,n){for(var i in n||(n=ry),e.prototype=new n,t)Kv(t,i)&&(e.prototype[i]=t[i]);return e}ry.prototype.beforeRender=function(){};var oy=sy(function(e){this.value=e},{render:function(e){for(var t="",n=this.value,i=0;i<n.length;++i)t+=String.fromCharCode(255&n.charCodeAt(i));e("(",t.replace(/([\(\)\\])/g,"\\$1"),")")},toString:function(){return this.value}}),ay=sy(function(e){this.value=e},{render:function(e){e("<");for(var t=0;t<this.value.length;++t)e(Yv(this.value.charCodeAt(t).toString(16),4));e(">")}},oy),ly=sy(function(e){this.name=e},{render:function(e){e("/"+this.escape())},escape:function(){return this.name.replace(/[^\x21-\x7E]/g,function(e){return"#"+Yv(e.charCodeAt(0).toString(16),2)})},toString:function(){return this.name}}),hy={};function uy(e){return Kv(hy,e)?hy[e]:hy[e]=new ly(e)}ly.get=uy;var cy=sy(function(e){this.props=e},{render:function(e){var t=this.props,n=!0;e("<<"),e.withIndent(function(){for(var i in t)Kv(t,i)&&!/^_/.test(i)&&(n=!1,e.indent(uy(i)," ",t[i]))}),n||e.indent(),e(">>")}}),dy=sy(function(e,t,n){if("string"==typeof e){var i=Cv();i.write(e),e=i}this.data=e,this.props=t||{},this.compress=n},{render:function(e){var t=this.data.get(),n=this.props;this.compress&&(n.Filter?n.Filter instanceof Array||(n.Filter=[n.Filter]):n.Filter=[],n.Filter.unshift(uy("FlateDecode")),t=$v(t)),n.Length=t.length,e(new cy(n)," stream",Uv),e.writeData(t),e(Uv,"endstream")}});sy(function(){this.props={Type:uy("Catalog")}},{setPages:function(e){this.props.Pages=e}},cy),sy(function(){this.props={Type:uy("Pages"),Kids:[],Count:0}},{addPage:function(e){this.props.Kids.push(e),this.props.Count++}},cy),sy(function(e){this.props={Type:uy("Font"),Subtype:uy("Type1"),BaseFont:uy(e)},this._resourceName=uy("F"+ ++qv)},{encodeText:function(e){return new oy(String(e))}},cy);var py=sy(function(e,t,n){(n=this.props=n||{}).Type=uy("Font"),n.Subtype=uy("Type0"),n.Encoding=uy("Identity-H"),this._pdf=e,this._font=t,this._sub=t.makeSubset(),this._resourceName=uy("F"+ ++qv);var i=t.head;this.name=t.psName;var r=this.scale=t.scale;this.bbox=[i.xMin*r,i.yMin*r,i.xMax*r,i.yMax*r],this.italicAngle=t.post.italicAngle,this.ascent=t.ascent*r,this.descent=t.descent*r,this.lineGap=t.lineGap*r,this.capHeight=t.os2.capHeight||this.ascent,this.xHeight=t.os2.xHeight||0,this.stemV=0,this.familyClass=(t.os2.familyClass||0)>>8,this.isSerif=this.familyClass>=1&&this.familyClass<=7,this.isScript=10==this.familyClass,this.flags=(t.post.isFixedPitch?1:0)|(this.isSerif?2:0)|(this.isScript?8:0)|(0!==this.italicAngle?64:0)|32},{encodeText:function(e){return new ay(this._sub.encodeText(String(e)))},getTextWidth:function(e,t){for(var n=0,i=this._font.cmap.codeMap,r=0;r<t.length;++r){var s=i[t.charCodeAt(r)];n+=this._font.widthOfGlyph(s||0)}return n*e/1e3},beforeRender:function(){var e=this,t=e._sub,n=t.render(),i=new dy(Cv(n),{Length1:n.length},!0),r=e._pdf.attach(new cy({Type:uy("FontDescriptor"),FontName:uy(e._sub.psName),FontBBox:e.bbox,Flags:e.flags,StemV:e.stemV,ItalicAngle:e.italicAngle,Ascent:e.ascent,Descent:e.descent,CapHeight:e.capHeight,XHeight:e.xHeight,FontFile2:e._pdf.attach(i)})),s=t.ncid2ogid,o=t.firstChar,a=t.lastChar,l=[];!function t(n,i){if(n<=a){var r=s[n];null==r?t(n+1):(i||l.push(n,i=[]),i.push(e._font.widthOfGlyph(r)),t(n+1,i))}}(o);var h=new cy({Type:uy("Font"),Subtype:uy("CIDFontType2"),BaseFont:uy(e._sub.psName),CIDSystemInfo:new cy({Registry:new oy("Adobe"),Ordering:new oy("Identity"),Supplement:0}),FontDescriptor:r,FirstChar:o,LastChar:a,DW:Math.round(e._font.widthOfGlyph(0)),W:l,CIDToGIDMap:e._pdf.attach(e._makeCidToGidMap())}),u=e.props;u.BaseFont=uy(e._sub.psName),u.DescendantFonts=[e._pdf.attach(h)];var c=new fy(o,a,t.subset),d=new dy(function(){var e=0,t=Cv();function n(){for(var e=0;e<arguments.length;++e){var i=arguments[e];if(void 0===i)throw new Error("Cannot output undefined to PDF");if(i instanceof ry)i.beforeRender(n),i.render(n);else if(Qv(i))Xv(i,n);else if(i instanceof Date)Jv(i,n);else if("number"==typeof i){if(isNaN(i))throw new Error("Cannot output NaN to PDF");var r=i.toFixed(7);r.indexOf(".")>=0&&(r=r.replace(/\.?0+$/,"")),"-0"==r&&(r="0"),t.writeString(r)}else/string|boolean/.test(typeof i)?t.writeString(String(i)):"function"==typeof i.get?t.write(i.get()):"object"==typeof i&&(i?n(new cy(i)):t.writeString("null"))}}return n.writeData=function(e){t.write(e)},n.withIndent=function(t){++e,t(n),--e},n.indent=function(){n(Uv,Zv("",2*e,"  ")),n.apply(null,arguments)},n.offset=function(){return t.offset()},n.toString=function(){throw new Error("FIX CALLER")},n.get=function(){return t.get()},n.stream=function(){return t},n}(),null,!0);d.data(c),u.ToUnicode=e._pdf.attach(d)},_makeCidToGidMap:function(){return new dy(Cv(this._sub.cidToGidMap()),null,!0)}},cy),fy=sy(function(e,t,n){this.firstChar=e,this.lastChar=t,this.map=n},{render:function(e){e.indent("/CIDInit /ProcSet findresource begin"),e.indent("12 dict begin"),e.indent("begincmap"),e.indent("/CIDSystemInfo <<"),e.indent("  /Registry (Adobe)"),e.indent("  /Ordering (UCS)"),e.indent("  /Supplement 0"),e.indent(">> def"),e.indent("/CMapName /Adobe-Identity-UCS def"),e.indent("/CMapType 2 def"),e.indent("1 begincodespacerange"),e.indent("  <0000><ffff>"),e.indent("endcodespacerange");var t=this;e.indent(t.lastChar-t.firstChar+1," beginbfchar"),e.withIndent(function(){for(var n=t.firstChar;n<=t.lastChar;++n){var i=[t.map[n]].map(function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+String.fromCharCode(e)}).join("");e.indent("<",Yv(n.toString(16),4),">","<");for(var r=0;r<i.length;++r)e(Yv(i.charCodeAt(r).toString(16),4));e(">")}}),e.indent("endbfchar"),e.indent("endcmap"),e.indent("CMapName currentdict /CMap defineresource pop"),e.indent("end"),e.indent("end")}});function my(e){return e.map(function(e){return Qv(e)?my(e):"number"==typeof e?(Math.round(1e3*e)/1e3).toFixed(3):e}).join(" ")}function gy(e,t,n,i,r,s,o){var a=my([t,n,i,r,s,o]),l=e.GRAD_COL_FUNCTIONS[a];return l||(l=e.GRAD_COL_FUNCTIONS[a]=e.attach(new cy({FunctionType:2,Domain:[0,1],Range:[0,1,0,1,0,1],N:1,C0:[t,n,i],C1:[r,s,o]}))),l}function vy(e,t,n){var i=my([t,n]),r=e.GRAD_OPC_FUNCTIONS[i];return r||(r=e.GRAD_OPC_FUNCTIONS[i]=e.attach(new cy({FunctionType:2,Domain:[0,1],Range:[0,1],N:1,C0:[t],C1:[n]}))),r}sy(function(e,t){this._pdf=e,this._rcount=0,this._textMode=!1,this._fontResources={},this._gsResources={},this._xResources={},this._patResources={},this._shResources={},this._opacity=1,this._matrix=[1,0,0,1,0,0],this._annotations=[],this._font=null,this._fontSize=null,this._contextStack=[],(t=this.props=t||{}).Type=uy("Page"),t.ProcSet=[uy("PDF"),uy("Text"),uy("ImageB"),uy("ImageC"),uy("ImageI")],t.Resources=new cy({Font:new cy(this._fontResources),ExtGState:new cy(this._gsResources),XObject:new cy(this._xResources),Pattern:new cy(this._patResources),Shading:new cy(this._shResources)}),t.Annots=this._annotations},{_out:function(){this._content.data.apply(null,arguments)},transform:function(e,t,n,i,r,s){var o;(1!==(o=arguments)[0]||0!==o[1]||0!==o[2]||1!==o[3]||0!==o[4]||0!==o[5])&&(this._matrix=function(e,t){var n=e[0],i=e[1],r=e[2],s=e[3],o=e[4],a=e[5],l=t[0],h=t[1],u=t[2],c=t[3];return[n*l+i*u,n*h+i*c,r*l+s*u,r*h+s*c,o*l+a*u+t[4],o*h+a*c+t[5]]}(arguments,this._matrix),this._out(e," ",t," ",n," ",i," ",r," ",s," cm"),this._out(Uv))},translate:function(e,t){this.transform(1,0,0,1,e,t)},scale:function(e,t){this.transform(e,0,0,t,0,0)},rotate:function(e){var t=Math.cos(e),n=Math.sin(e);this.transform(t,n,-n,t,0,0)},beginText:function(){this._textMode=!0,this._out("BT",Uv)},endText:function(){this._textMode=!1,this._out("ET",Uv)},_requireTextMode:function(){if(!this._textMode)throw new Error("Text mode required; call page.beginText() first")},_requireFont:function(){if(!this._font)throw new Error("No font selected; call page.setFont() first")},setFont:function(e,t){this._requireTextMode(),null==e?e=this._font:e instanceof py||(e=this._pdf.getFont(e)),null==t&&(t=this._fontSize),this._fontResources[e._resourceName]=e,this._font=e,this._fontSize=t,this._out(e._resourceName," ",t," Tf",Uv)},setTextLeading:function(e){this._requireTextMode(),this._out(e," TL",Uv)},setTextRenderingMode:function(e){this._requireTextMode(),this._out(e," Tr",Uv)},showText:function(e,t){if(this._requireFont(),e.length>1&&t&&this._font instanceof py){var n=this._font.getTextWidth(this._fontSize,e);this._out(t/n*100," Tz ")}this._out(this._font.encodeText(e)," Tj",Uv)},showTextNL:function(e){this._requireFont(),this._out(this._font.encodeText(e)," '",Uv)},addLink:function(e,t){var n=this._toPage({x:t.left,y:t.bottom}),i=this._toPage({x:t.right,y:t.top});this._annotations.push(new cy({Type:uy("Annot"),Subtype:uy("Link"),Rect:[n.x,n.y,i.x,i.y],Border:[0,0,0],A:new cy({Type:uy("Action"),S:uy("URI"),URI:new oy(e)})}))},setStrokeColor:function(e,t,n){this._out(e," ",t," ",n," RG",Uv)},setOpacity:function(e){this.setFillOpacity(e),this.setStrokeOpacity(e),this._opacity*=e},setStrokeOpacity:function(e){if(e<1){var t=this._pdf.getOpacityGS(this._opacity*e,!0);this._gsResources[t._resourceName]=t,this._out(t._resourceName," gs",Uv)}},setFillColor:function(e,t,n){this._out(e," ",t," ",n," rg",Uv)},setFillOpacity:function(e){if(e<1){var t=this._pdf.getOpacityGS(this._opacity*e,!1);this._gsResources[t._resourceName]=t,this._out(t._resourceName," gs",Uv)}},gradient:function(e,t){this.save(),this.rect(t.left,t.top,t.width,t.height),this.clip(),e.userSpace||this.transform(t.width,0,0,t.height,t.left,t.top);var n,i=function(e,t,n){var i="radial"==t.type,r=function(e,t){var n,i,r,s,o=!1,a=[],l=[],h=[],u=[];for(n=1;n<t.length;++n)l.push(gy(e,(r=t[n-1].color).r,r.g,r.b,(s=(i=t[n]).color).r,s.g,s.b)),(r.a<1||s.a<1)&&(o=!0),h.push(i.offset),u.push(0,1);if(o)for(n=1;n<t.length;++n)a.push(vy(e,(r=t[n-1].color).a,(s=(i=t[n]).color).a));return h.pop(),{hasAlpha:o,colors:c(l),opacities:o?c(a):null};function c(e){return 1==e.length?e[0]:{FunctionType:3,Functions:e,Domain:[0,1],Bounds:h,Encode:u}}}(e,t.stops),s=i?[t.start.x,t.start.y,t.start.r,t.end.x,t.end.y,t.end.r]:[t.start.x,t.start.y,t.end.x,t.end.y],o=function(e,t,n,i,r,s){var o,a;if(!s){var l=[t].concat(i);n.forEach(function(e){l.push(e.offset,e.color.r,e.color.g,e.color.b)}),a=my(l),o=e.GRAD_COL[a]}return o||(o=new cy({Type:uy("Shading"),ShadingType:t?3:2,ColorSpace:uy("DeviceRGB"),Coords:i,Domain:[0,1],Function:r,Extend:[!0,!0]}),e.attach(o),o._resourceName="S"+ ++qv,a&&(e.GRAD_COL[a]=o)),o}(e,i,t.stops,s,r.colors,t.userSpace&&n),a=r.hasAlpha?function(e,t,n,i,r,s){var o,a;if(!s){var l=[t].concat(i);n.forEach(function(e){l.push(e.offset,e.color.a)}),a=my(l),o=e.GRAD_OPC[a]}return o||(o=new cy({Type:uy("ExtGState"),AIS:!1,CA:1,ca:1,SMask:{Type:uy("Mask"),S:uy("Luminosity"),G:e.attach(new dy("/a0 gs /s0 sh",{Type:uy("XObject"),Subtype:uy("Form"),FormType:1,BBox:s?[s.left,s.top+s.height,s.left+s.width,s.top]:[0,1,1,0],Group:{Type:uy("Group"),S:uy("Transparency"),CS:uy("DeviceGray"),I:!0},Resources:{ExtGState:{a0:{CA:1,ca:1}},Shading:{s0:{ColorSpace:uy("DeviceGray"),Coords:i,Domain:[0,1],ShadingType:t?3:2,Function:r,Extend:[!0,!0]}}}}))}}),e.attach(o),o._resourceName="O"+ ++qv,a&&(e.GRAD_OPC[a]=o)),o}(e,i,t.stops,s,r.opacities,t.userSpace&&n):null;return{hasAlpha:r.hasAlpha,shading:o,opacity:a}}(this._pdf,e,t),r=i.shading._resourceName;this._shResources[r]=i.shading,i.hasAlpha&&(this._gsResources[n=i.opacity._resourceName]=i.opacity,this._out("/"+n+" gs ")),this._out("/"+r+" sh",Uv),this.restore()},setDashPattern:function(e,t){this._out(e," ",t," d",Uv)},setLineWidth:function(e){this._out(e," w",Uv)},setLineCap:function(e){this._out(e," J",Uv)},setLineJoin:function(e){this._out(e," j",Uv)},setMitterLimit:function(e){this._out(e," M",Uv)},save:function(){this._contextStack.push(this._context()),this._out("q",Uv)},restore:function(){this._out("Q",Uv),this._context(this._contextStack.pop())},moveTo:function(e,t){this._out(e," ",t," m",Uv)},lineTo:function(e,t){this._out(e," ",t," l",Uv)},bezier:function(e,t,n,i,r,s){this._out(e," ",t," ",n," ",i," ",r," ",s," c",Uv)},bezier1:function(e,t,n,i){this._out(e," ",t," ",n," ",i," y",Uv)},bezier2:function(e,t,n,i){this._out(e," ",t," ",n," ",i," v",Uv)},close:function(){this._out("h",Uv)},rect:function(e,t,n,i){this._out(e," ",t," ",n," ",i," re",Uv)},ellipse:function(e,t,n,i){function r(t){return e+t}function s(e){return t+e}var o=.5522847498307936;this.moveTo(r(0),s(i)),this.bezier(r(n*o),s(i),r(n),s(i*o),r(n),s(0)),this.bezier(r(n),s(-i*o),r(n*o),s(-i),r(0),s(-i)),this.bezier(r(-n*o),s(-i),r(-n),s(-i*o),r(-n),s(0)),this.bezier(r(-n),s(i*o),r(-n*o),s(i),r(0),s(i))},circle:function(e,t,n){this.ellipse(e,t,n,n)},stroke:function(){this._out("S",Uv)},nop:function(){this._out("n",Uv)},clip:function(){this._out("W n",Uv)},clipStroke:function(){this._out("W S",Uv)},closeStroke:function(){this._out("s",Uv)},fill:function(){this._out("f",Uv)},fillStroke:function(){this._out("B",Uv)},drawImage:function(e){var t=this._pdf.getImage(e);t&&(this._xResources[t._resourceName]=t,this._out(t._resourceName," Do",Uv))},comment:function(e){var t=this;e.split(/\r?\n/g).forEach(function(e){t._out("% ",e,Uv)})},_context:function(e){if(null==e)return{opacity:this._opacity,matrix:this._matrix};this._opacity=e.opacity,this._matrix=e.matrix},_toPage:function(e){var t=this._matrix;return{x:t[0]*e.x+t[2]*e.y+t[4],y:t[1]*e.x+t[3]*e.y+t[5]}}},cy);var yy={serif:"Times-Roman","serif|bold":"Times-Bold","serif|italic":"Times-Italic","serif|bold|italic":"Times-BoldItalic","sans-serif":"Helvetica","sans-serif|bold":"Helvetica-Bold","sans-serif|italic":"Helvetica-Oblique","sans-serif|bold|italic":"Helvetica-BoldOblique",monospace:"Courier","monospace|bold":"Courier-Bold","monospace|italic":"Courier-Oblique","monospace|bold|italic":"Courier-BoldOblique",zapfdingbats:"ZapfDingbats","zapfdingbats|bold":"ZapfDingbats","zapfdingbats|italic":"ZapfDingbats","zapfdingbats|bold|italic":"ZapfDingbats"};function wy(e,t){e=e.toLowerCase(),yy[e]=function(){return yy[t]},yy[e+"|bold"]=function(){return yy[t+"|bold"]},yy[e+"|italic"]=function(){return yy[t+"|italic"]},yy[e+"|bold|italic"]=function(){return yy[t+"|bold|italic"]}}wy("Times New Roman","serif"),wy("Courier New","monospace"),wy("Arial","sans-serif"),wy("Helvetica","sans-serif"),wy("Verdana","sans-serif"),wy("Tahoma","sans-serif"),wy("Georgia","sans-serif"),wy("Monaco","monospace"),wy("Andale Mono","monospace");const _y=Mp.browser;function by(e){return Array.prototype.slice.call(e)}var xy="KENDO-PSEUDO-ELEMENT",Cy={},Sy={};Sy._root=Sy;const ky=!("undefined"==typeof window)&&(_y.msie||_y.edge);class Ey extends tg{constructor(e,t,n){super(e,t.getOrigin(),n),this._pdfRect=t}rect(){return this._pdfRect}rawBBox(){return this._pdfRect}}function Ty(e,t){Object.keys(t).forEach(function(n){e.style[n]=t[n]})}var Iy,Dy="undefined"!=typeof Element&&Element.prototype&&((Iy=Element.prototype).matches?function(e,t){return e.matches(t)}:Iy.webkitMatchesSelector?function(e,t){return e.webkitMatchesSelector(t)}:Iy.mozMatchesSelector?function(e,t){return e.mozMatchesSelector(t)}:Iy.msMatchesSelector?function(e,t){return e.msMatchesSelector(t)}:function(e){return-1!==[].indexOf.call(document.querySelectorAll(e),this)});function Ay(e,t){if(e.closest)return e.closest(t);for(;e&&!/^\[object (?:HTML)?Document\]$/.test(String(e));){if(1==e.nodeType&&Dy(e,t))return e;e=e.parentNode}}var Oy,Ny=(Oy="undefined"!=typeof window&&window.kendo&&window.kendo.jQuery)?function e(t){var n=t.cloneNode(!1);if(1==t.nodeType){var i,r=Oy(t),s=Oy(n),o=r.data();for(i in o)s.data(i,o[i]);for(/^canvas$/i.test(t.tagName)?n.getContext("2d").drawImage(t,0,0):/^(?:input|select|textarea|option)$/i.test(t.tagName)&&(n.removeAttribute("id"),n.removeAttribute("name"),n.value=t.value,n.checked=t.checked,n.selected=t.selected),i=t.firstChild;i;i=i.nextSibling)n.appendChild(e(i))}return n}:function(e){const t=function e(t){const n=t.cloneNode(!1);t._kendoExportVisual&&(n._kendoExportVisual=t._kendoExportVisual);for(let i=t.firstChild;i;i=i.nextSibling)n.appendChild(e(i));return n}(e),n=e.querySelectorAll("canvas");n.length&&by(t.querySelectorAll("canvas")).forEach((e,t)=>{e.getContext("2d").drawImage(n[t],0,0)});const i=e.querySelectorAll("input, select, textarea, option");return by(t.querySelectorAll("input, select, textarea, option")).forEach((e,t)=>{e.removeAttribute("id"),e.removeAttribute("name"),e.value=i[t].value,e.checked=i[t].checked,e.selected=i[t].selected}),t};function Fy(e,t){t||(t={});var n=Kp();if(!e)return n.reject("No element to export");if("function"!=typeof window.getComputedStyle)throw new Error("window.getComputedStyle is missing.  You are using an unsupported browser, or running in IE8 compatibility mode.  Drawing HTML is supported in Chrome, Firefox, Safari and IE9+.");!function e(t,n){if(1==arguments.length)for(var i in t)Kv(t,i)&&e(i,t[i]);else switch(t=t.toLowerCase(),yy[t]=n,t){case"dejavu sans":yy["sans-serif"]=n;break;case"dejavu sans|bold":yy["sans-serif|bold"]=n;break;case"dejavu sans|italic":yy["sans-serif|italic"]=n;break;case"dejavu sans|bold|italic":yy["sans-serif|bold|italic"]=n;break;case"dejavu serif":yy.serif=n;break;case"dejavu serif|bold":yy["serif|bold"]=n;break;case"dejavu serif|italic":yy["serif|italic"]=n;break;case"dejavu serif|bold|italic":yy["serif|bold|italic"]=n;break;case"dejavu mono":yy.monospace=n;break;case"dejavu mono|bold":yy["monospace|bold"]=n;break;case"dejavu mono|italic":yy["monospace|italic"]=n;break;case"dejavu mono|bold|italic":yy["monospace|bold|italic"]=n}}(Ly(e.ownerDocument));var i,r="number"==typeof(i=t.scale||1)?{x:i,y:i}:Array.isArray(i)?{x:i[0],y:i[1]}:{x:i.x,y:i.y};function s(e){var n,i,s=new og,o=e.getBoundingClientRect();return sw(s,[r.x,0,0,r.y,-o.left*r.x,-o.top*r.y]),Sy._clipbox=!1,Sy._matrix=Of.unit(),Sy._stackingContext={element:e,group:s},Sy._avoidLinks=!0===t.avoidLinks?"a":t.avoidLinks,i="k-pdf-export",(n=e).classList?n.classList.add(i):n.className+=" "+i,ww(e,s),function(e,t){e.classList?e.classList.remove(t):e.className=e.className.split(/\s+/).reduce(function(e,n){return n!=t&&e.push(n),e},[]).join(" ")}(e,"k-pdf-export"),s}return Wy(e,function(){var i=t&&t.forcePageBreak,o=t&&t.paperSize&&"auto"!=t.paperSize,a=function(e){if("function"!=typeof e){var t=e;e=function(e,n){return e in t?t[e]:n}}var n=e("paperSize",Wv.a4);if(!n)return{};if("string"==typeof n&&null==(n=Wv[n.toLowerCase()]))throw new Error("Unknown paper size");n[0]=iy(n[0]),n[1]=iy(n[1]),e("landscape",!1)&&(n=[Math.max(n[0],n[1]),Math.min(n[0],n[1])]);var i=e("margin");return i&&(i="string"==typeof i||"number"==typeof i?{left:i=iy(i,0),top:i,right:i,bottom:i}:{left:iy(i.left,0),top:iy(i.top,0),right:iy(i.right,0),bottom:iy(i.bottom,0)},e("addMargin")&&(n[0]+=i.left+i.right,n[1]+=i.top+i.bottom)),{paperSize:n,margin:i}}(function(e,n){return"paperSize"==e?o?t[e]:"A4":e in t?t[e]:n}),l=o&&a.paperSize[0],h=o&&a.paperSize[1],u=t.margin&&a.margin,c=Boolean(u);if(i||h){u||(u={left:0,top:0,right:0,bottom:0}),l&&(l/=r.x),h&&(h/=r.y),u.left/=r.x,u.right/=r.x,u.top/=r.y,u.bottom/=r.y;var d=new og({pdf:{multiPage:!0,paperSize:o?a.paperSize:"auto",_ignoreMargin:c}});!function(e,t,n,i,r,s,o){var a=function(e){if(null!=e)return"string"==typeof e&&(e=function(){throw new Error("String template not yet supported.  Pass a function and use your preferred template engine.")}(e.replace(/^\s+|\s+$/g,""))),"function"==typeof e?function(t){var n=e(t);if(n&&"string"==typeof n){var i=document.createElement("div");i.innerHTML=n,n=i.firstElementChild}return n}:function(){return e.cloneNode(!0)}}(o.template),l=t.ownerDocument,h=[],u=o._destructive?t:Ny(t),c=l.createElement("KENDO-PDF-DOCUMENT"),d=0;function p(){("-"!=n||r)&&function e(t){if("TABLE"==t.tagName&&Ty(t,{tableLayout:"fixed"}),!f(t)){var i=Qy(t),s=parseFloat(Xy(i,"padding-bottom")),o=parseFloat(Xy(i,"border-bottom-width")),a=d;d+=s+o;for(var l=!0,h=t.firstChild;h;h=h.nextSibling)if(1==h.nodeType){if(l=!1,Dy(h,n)){m(h);continue}if(!r){e(h);continue}if(!/^(?:static|relative)$/.test(Xy(Qy(h),"position")))continue;var u=v(h);1==u?m(h):u&&f(h)?m(h):e(h)}else 3==h.nodeType&&r&&(y(h,l),l=!1);d=a}}(u);{let e=g();u.parentNode.insertBefore(e,u),e.appendChild(u)}a&&h.forEach(function(e,t){const n=a({element:e,pageNum:t+1,totalPages:h.length});n&&e.appendChild(n)}),Wy(h,function(){!function(e,t){var n=0;function i(){--n<=0&&t()}h.forEach(function(e){for(var t=e.querySelectorAll("img"),r=0;r<t.length;++r){var s=t[r];s.complete||(n++,s.onload=s.onerror=i)}}),n||i()}(0,function(){e({pages:h,container:c})})})}function f(e){return!!(o.keepTogether&&Dy(e,o.keepTogether)&&e.offsetHeight<=r-d)||!(/^h[1-6]$/i.test(e.tagName)&&e.offsetHeight>=r-d)&&(e.getAttribute("data-kendo-chart")||/^(?:img|tr|thead|th|tfoot|iframe|svg|object|canvas|input|textarea|select|video|h[1-6])/i.test(e.tagName))}function m(e){if(1==e.nodeType&&e!==u&&function(e){var t=e.parentNode,n=t.firstChild;if(e===n)return!0;if(e===t.children[0]){if(7==n.nodeType||8==n.nodeType)return!0;if(3==n.nodeType)return!/\S/.test(n.data)}return!1}(e))return m(e.parentNode);var t,n,i,r,s;n=(t=Ay(e,"table"))&&t.querySelector("colgroup"),o.repeatHeaders&&(i=t&&t.querySelector("thead"),(r=Ay(e,".k-grid.k-widget"))&&r.querySelector(".k-auto-scrollable")&&(s=r.querySelector(".k-grid-header")));var a=g(),h=l.createRange();h.setStartBefore(u),h.setEndBefore(e),a.appendChild(h.extractContents()),u.parentNode.insertBefore(a,u),w(e.parentNode),t&&(t=Ay(e,"table"),o.repeatHeaders&&i&&t.insertBefore(i.cloneNode(!0),t.firstChild),n&&t.insertBefore(n.cloneNode(!0),t.firstChild)),o.repeatHeaders&&s&&(r=Ay(e,".k-grid.k-widget")).insertBefore(s.cloneNode(!0),r.firstChild)}function g(){var e=l.createElement("KENDO-PDF-PAGE");return Ty(e,{display:"block",boxSizing:"content-box",width:i?i+"px":"auto",padding:s.top+"px "+s.right+"px "+s.bottom+"px "+s.left+"px",position:"relative",height:r?r+"px":"auto",overflow:r||i?"hidden":"visible",clear:"both"}),o&&o.pageClassName&&(e.className=o.pageClassName),h.push(e),e}function v(e){var t=e.getBoundingClientRect();if(0===t.width||0===t.height)return 0;var n=u.getBoundingClientRect().top,i=r-d;return t.height>i?3:t.top-n>i?1:t.bottom-n>i?2:0}function y(e,t){if(/\S/.test(e.data)){var n=e.data.length,i=l.createRange();i.selectNodeContents(e);var r=v(i);if(r){var s=e;if(1==r)m(t?e.parentNode:e);else if(function t(n,r,s){return i.setEnd(e,r),n==r||r==s?r:v(i)?t(n,n+r>>1,r):t(r,r+s>>1,s)}(0,n>>1,n),!/\S/.test(i.toString())&&t)m(e.parentNode);else{s=e.splitText(i.endOffset);var o=g();i.setStartBefore(u),o.appendChild(i.extractContents()),u.parentNode.insertBefore(o,u),w(s.parentNode)}y(s)}}}function w(e){var t=Ay(e,"li");t&&(t.setAttribute("kendo-no-bullet","1"),w(t.parentNode))}by(u.querySelectorAll("tfoot")).forEach(function(e){e.parentNode.appendChild(e)}),by(u.querySelectorAll("ol")).forEach(function(e){by(e.children).forEach(function(e,t){e.setAttribute("kendo-split-index",t)})}),Ty(c,{display:"block",position:"absolute",boxSizing:"content-box",left:"-10000px",top:"-10000px"}),i&&(Ty(c,{width:i+"px",paddingLeft:s.left+"px",paddingRight:s.right+"px"}),Ty(u,{overflow:"hidden"})),t.parentNode.insertBefore(c,t),c.appendChild(u),o.beforePageBreak?setTimeout(function(){o.beforePageBreak(c,p)},15):setTimeout(p,15)}(function(e){if(t.progress){var i=!1,r=0;!function o(){if(r<e.pages.length){var a=s(e.pages[r]);d.append(a),t.progress({page:a,pageNum:++r,totalPages:e.pages.length,cancel:function(){i=!0}}),i?e.container.parentNode.removeChild(e.container):setTimeout(o)}else e.container.parentNode.removeChild(e.container),n.resolve(d)}()}else e.pages.forEach(function(e){d.append(s(e))}),e.container.parentNode.removeChild(e.container),n.resolve(d)},e,i,l?l-u.left-u.right:null,h?h-u.top-u.bottom:null,u,t)}else n.resolve(s(e))}),n}Fy.getFontFaces=Ly,Fy.drawText=function(e){var t=new og;return Sy._clipbox=!1,Sy._matrix=Of.unit(),Sy._stackingContext={element:e,group:t},Zy(e,Qy(e),t),3==e.firstChild.nodeType?yw(e,e.firstChild,t):mw(e,t),Yy(),t};var My,Py=function(){var e=/^((-webkit-|-moz-|-o-|-ms-)?linear-gradient\s*)\(/,t=/^([-0-9.]+%)/,n=/^([-0-9.]+px)/,i=/^(left|right|top|bottom|to|center)\W/,r=/^([-0-9.]+(deg|grad|rad|turn))/,s=/^(\s+)/,o=/^(\()/,a=/^(\))/,l=/^(,)/,h=/^(url)\(/,u=/^(.*?)\)/,c={},d={};function p(d){var p,f=d;if(By(c,f))return c[f];function m(e){!function(){var e=s.exec(d);e&&(d=d.substr(e[1].length))}();var t=e.exec(d);if(t)return d=d.substr(t[1].length),t[1]}function g(){var e,i,r=Wp(d,!0);if(r){let s=/^#[0-9a-f]+/i.exec(d)||/^rgba?\(.*?\)/i.exec(d)||/^..*?\b/.exec(d);return d=d.substr(s[0].length),r=r.toRGB(),(e=m(n))||(i=m(t)),{color:r,length:e,percent:i}}}return(p=m(e))?p=function(e){var n,s,h,u=[],c=!1;if(m(o)){if((n=m(r))?(n=function(e){var t=parseFloat(e);return/grad$/.test(e)?Math.PI*t/200:/rad$/.test(e)?t:/turn$/.test(e)?Math.PI*t*2:/deg$/.test(e)?Math.PI*t/180:void 0}(n),m(l)):("to"==(s=m(i))?s=m(i):s&&/^-/.test(e)&&(c=!0),h=m(i),m(l)),/-moz-/.test(e)&&null==n&&null==s){var p=m(t),f=m(t);c=!0,"0%"==p?s="left":"100%"==p&&(s="right"),"0%"==f?h="top":"100%"==f&&(h="bottom"),m(l)}for(;d&&!m(a);){var v=g();if(!v)break;u.push(v),m(l)}return{type:"linear",angle:n,to:s&&h?s+" "+h:s||h||null,stops:u,reverse:c}}}(p):(p=m(h))&&(p=function(){if(m(o)){var e=m(u);return e=e.replace(/^['"]+|["']+$/g,""),m(a),{type:"url",url:e}}}()),c[f]=p||{type:"none"}}return function(e){return By(d,e)?d[e]:d[e]=Ry(e).map(p)}}(),Ry=(My={},function(e,t){t||(t=/^\s*,\s*/);var n=e+t;if(By(My,n))return My[n];var i,r=[],s=0,o=0,a=0,l=!1;function h(t){return i=t.exec(e.substr(o))}function u(e){return e.replace(/^\s+|\s+$/g,"")}for(;o<e.length;)!l&&h(/^[\(\[\{]/)?(a++,o++):!l&&h(/^[\)\]\}]/)?(a--,o++):!l&&h(/^[\"\']/)?(l=i[0],o++):"'"==l&&h(/^\\\'/)?o+=2:'"'==l&&h(/^\\\"/)?o+=2:"'"==l&&h(/^\'/)?(l=!1,o++):'"'==l&&h(/^\"/)?(l=!1,o++):h(t)?(!l&&!a&&o>s&&(r.push(u(e.substring(s,o))),s=o+i[0].length),o+=i[0].length):o++;return s<o&&r.push(u(e.substring(s,o))),My[n]=r}),Vy=function(e){return function(t){var n,i=e[t];return i||((n=/url\((['"]?)([^'")]*?)\1\)\s+format\((['"]?)truetype\3\)/.exec(t))?i=e[t]=n[2]:(n=/url\((['"]?)([^'")]*?\.ttf)\1\)/.exec(t))&&(i=e[t]=n[2])),i}}(Object.create(null)),zy=function(e){return function(t){var n=e[t];return null==n&&(n=e[t]=Sf("Mapq",{font:t}).height),n}}(Object.create(null));function Ly(e){null==e&&(e=document);for(var t={},n=0;n<e.styleSheets.length;++n)i(e.styleSheets[n]);return t;function i(e){if(e){var t=null;try{t=e.cssRules}catch(n){}t&&function(e,t){for(var n=0;n<t.length;++n){var o=t[n];switch(o.type){case 3:i(o.styleSheet);break;case 5:var a=o.style,l=Ry(Xy(a,"font-family")),h=/^([56789]00|bold)$/i.test(Xy(a,"font-weight")),u="italic"==Xy(a,"font-style"),c=r(o);c.length>0&&s(e,l,h,u,c[0])}}}(e,t)}}function r(e){var t=Xy(e.style,"src");if(t)return Ry(t).reduce(function(e,t){var n=Vy(t);return n&&e.push(n),e},[]);var n=Vy(e.cssText);return n?[n]:[]}function s(e,n,i,r,s){/^data:/i.test(s)||/^[^\/:]+:\/\//.test(s)||/^\//.test(s)||(s=String(e.href).replace(/[^\/]*$/,"")+s),n.forEach(function(e){e=e.replace(/^(['"]?)(.*?)\1$/,"$2"),i&&(e+="|bold"),r&&(e+="|italic"),t[e]=s})}}function By(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Hy(e,t){var n=Sy;for(e="_counter_"+e;n&&!By(n,e);)n=Object.getPrototypeOf(n);n||(n=Sy._root),n[e]=(n[e]||0)+(null==t?1:t)}function $y(e,t){Sy[e="_counter_"+e]=null==t?0:t}function jy(e,t,n){for(var i=0;i<e.length;){var r=e[i++],s=parseFloat(e[i]);isNaN(s)?t(r,n):(t(r,s),++i)}}function Uy(e){var t=Xy(e,"counter-reset");t&&jy(Ry(t,/^\s+/),$y,0);var n=Xy(e,"counter-increment");n&&jy(Ry(n,/^\s+/),Hy,1)}function qy(e,t){var n=Wp(e,!0);return n&&(n=n.toRGB(),t?n=n.toCssRgba():0===n.a&&(n=null)),n}function Wy(e,t){var n=[];function i(e){Cy[e]||(Cy[e]=!0,n.push(e))}function r(e){/^img$/i.test(e.tagName)&&i(e.src),Py(Xy(Qy(e),"background-image")).forEach(function(e){"url"==e.type&&i(e.url)}),e.children&&by(e.children).forEach(r)}Array.isArray(e)?e.forEach(r):r(e);var s=n.length;function o(){--s<=0&&t()}0===s&&o(),n.forEach(function(e){var t=Cy[e]=new window.Image;/^data:/i.test(e)||(t.crossOrigin="Anonymous"),t.src=e,t.complete?o():(t.onload=o,t.onerror=function(){Cy[e]=null,o()})})}function Gy(e){var t="";do{t=String.fromCharCode(97+e%26)+t,e=Math.floor(e/26)}while(e>0);return t}function Zy(e,t,n){(Sy=Object.create(Sy))[e.tagName.toLowerCase()]={element:e,style:t};var i=Xy(t,"text-decoration");if(i&&"none"!=i){var r=Xy(t,"color");i.split(/\s+/g).forEach(function(e){Sy[e]||(Sy[e]=r)})}(function(e){function t(t){return Xy(e,t)}if("none"!=t("transform")||"static"!=t("position")||"auto"!=t("z-index")||t("opacity")<1)return!0})(t)&&(Sy._stackingContext={element:e,group:n})}function Yy(){Sy=Object.getPrototypeOf(Sy)}function Ky(e){if(null!=Sy._clipbox){var t=e.bbox(Sy._matrix);Sy._clipbox=Sy._clipbox?zf.intersect(Sy._clipbox,t):t}}function Qy(e,t){return window.getComputedStyle(e,t||null)}function Xy(e,t,n){var i=e.getPropertyValue(t);return null!=i&&""!==i||(_y.webkit?i=e.getPropertyValue("-webkit-"+t):_y.mozilla?i=e.getPropertyValue("-moz-"+t):_y.opera?i=e.getPropertyValue("-o-"+t):ky&&(i=e.getPropertyValue("-ms-"+t))),arguments.length>2&&(null==i||""===i)?n:i}function Jy(e,t,n,i){e.setProperty(t,n,i),_y.webkit?e.setProperty("-webkit-"+t,n,i):_y.mozilla?e.setProperty("-moz-"+t,n,i):_y.opera?e.setProperty("-o-"+t,n,i):ky&&(e.setProperty("-ms-"+t,n,i),e[t="ms"+t.replace(/(^|-)([a-z])/g,function(e,t,n){return t+n.toUpperCase()})]=n)}function ew(e,t){return t="border-"+t,{width:parseFloat(Xy(e,t+"-width")),style:Xy(e,t+"-style"),color:qy(Xy(e,t+"-color"),!0)}}function tw(e,t){var n=e.style.cssText,i=t();return e.style.cssText=n,i}function nw(e,t){var n=Xy(e,"border-"+t+"-radius").split(/\s+/g).map(parseFloat);return 1==n.length&&n.push(n[0]),lw({x:n[0],y:n[1]})}function iw(e,t,n){var i,r,s,o,a;return"string"==typeof t?(i=Qy(n),r=parseFloat(Xy(i,t.replace("*","top"))),s=parseFloat(Xy(i,t.replace("*","right"))),o=parseFloat(Xy(i,t.replace("*","bottom"))),a=parseFloat(Xy(i,t.replace("*","left")))):"number"==typeof t&&(r=s=o=a=t),{top:e.top+r,right:e.right-s,bottom:e.bottom-o,left:e.left+a,width:e.right-e.left-s-a,height:e.bottom-e.top-o-r}}function rw(e){return 180*e/Math.PI%360}function sw(e,t){return t=new Of(t[0],t[1],t[2],t[3],t[4],t[5]),e.transform(t),t}function ow(e,t){e.clip(t)}function aw(e,t,n,i){for(var r=new um([t,n],i).curvePoints(),s=1;s<r.length;)e.curveTo(r[s++],r[s++],r[s++])}function lw(e){return(e.x<=0||e.y<=0)&&(e.x=e.y=0),e}function hw(e,t,n,i,r){var s=Math.max(0,t.x),o=Math.max(0,t.y),a=Math.max(0,n.x),l=Math.max(0,n.y),h=Math.max(0,i.x),u=Math.max(0,i.y),c=Math.max(0,r.x),d=Math.max(0,r.y),p=Math.min(e.width/(s+a),e.height/(l+u),e.width/(h+c),e.height/(d+o));return p<1&&(s*=p,o*=p,a*=p,l*=p,h*=p,u*=p,c*=p,d*=p),{tl:{x:s,y:o},tr:{x:a,y:l},br:{x:h,y:u},bl:{x:c,y:d}}}function uw(e,t,n){var i=Qy(e),r=nw(i,"top-left"),s=nw(i,"top-right"),o=nw(i,"bottom-left"),a=nw(i,"bottom-right");if("padding"==n||"content"==n){var l=ew(i,"top"),h=ew(i,"right"),u=ew(i,"bottom"),c=ew(i,"left");if(r.x-=c.width,r.y-=l.width,s.x-=h.width,s.y-=l.width,a.x-=h.width,a.y-=u.width,o.x-=c.width,o.y-=u.width,"content"==n){var d=parseFloat(Xy(i,"padding-top")),p=parseFloat(Xy(i,"padding-right")),f=parseFloat(Xy(i,"padding-bottom")),m=parseFloat(Xy(i,"padding-left"));r.x-=m,r.y-=d,s.x-=p,s.y-=d,a.x-=p,a.y-=f,o.x-=m,o.y-=f}}return"number"==typeof n&&(r.x-=n,r.y-=n,s.x-=n,s.y-=n,a.x-=n,a.y-=n,o.x-=n,o.y-=n),cw(t,r,s,a,o)}function cw(e,t,n,i,r){var s=hw(e,t,n,i,r),o=s.tl,a=s.tr,l=s.br,h=s.bl,u=new Ym({fill:null,stroke:null});return u.moveTo(e.left,e.top+o.y),o.x&&aw(u,e.left+o.x,e.top+o.y,{startAngle:-180,endAngle:-90,radiusX:o.x,radiusY:o.y}),u.lineTo(e.right-a.x,e.top),a.x&&aw(u,e.right-a.x,e.top+a.y,{startAngle:-90,endAngle:0,radiusX:a.x,radiusY:a.y}),u.lineTo(e.right,e.bottom-l.y),l.x&&aw(u,e.right-l.x,e.bottom-l.y,{startAngle:0,endAngle:90,radiusX:l.x,radiusY:l.y}),u.lineTo(e.left+h.x,e.bottom),h.x&&aw(u,e.left+h.x,e.bottom-h.y,{startAngle:90,endAngle:180,radiusX:h.x,radiusY:h.y}),u.close()}function dw(e,t){var n=String(parseFloat(e));switch(t){case"decimal-leading-zero":return n.length<2&&(n="0"+n),n;case"lower-roman":return Yp(e).toLowerCase();case"upper-roman":return Yp(e).toUpperCase();case"lower-latin":case"lower-alpha":return Gy(e-1);case"upper-latin":case"upper-alpha":return Gy(e-1).toUpperCase();default:return n}}function pw(e){if(e.cssText)return e.cssText;for(var t=[],n=0;n<e.length;++n)t.push(e[n]+": "+Xy(e,e[n]));return t.join(";\n")}function fw(e,t){if(e.tagName==xy)return void mw(e,t);let n=[];function i(t,i){let r=Qy(e,t),s=r.content;if(Uy(r),s&&"normal"!=s&&"none"!=s&&"0px"!=r.width){let t=e.ownerDocument.createElement(xy);t.style.cssText=pw(r),t.textContent=function(e,t){function n(e,t,n){return n?(n=n.replace(/^\s*(["'])(.*)\1\s*$/,"$2"),function(e){var t=[],n=Sy;for(e="_counter_"+e;n;)By(n,e)&&t.push(n[e]),n=Object.getPrototypeOf(n);return t.reverse()}(e).map(function(e){return dw(e,t)}).join(n)):dw(function(e){return Sy[e="_counter_"+e]}(e)||0,t)}var i,r=Ry(t,/^\s+/),s=[];return r.forEach(function(t){var r;(i=/^\s*(["'])(.*)\1\s*$/.exec(t))?s.push(i[2].replace(/\\([0-9a-f]{4})/gi,function(e,t){return String.fromCharCode(parseInt(t,16))})):(i=/^\s*counter\((.*?)\)\s*$/.exec(t))?(r=Ry(i[1]),s.push(n(r[0],r[1]))):(i=/^\s*counters\((.*?)\)\s*$/.exec(t))?(r=Ry(i[1]),s.push(n(r[0],r[2],r[1]))):(i=/^\s*attr\((.*?)\)\s*$/.exec(t))?s.push(e.getAttribute(i[1])||""):s.push(t)}),s.join("")}(e,s),e.insertBefore(t,i),n.push(t)}}if(i(":before",e.firstChild),i(":after",null),n.length>0){let i=e.className;e.className+=" kendo-pdf-hide-pseudo-elements",mw(e,t),e.className=i,n.forEach(function(t){e.removeChild(t)})}else mw(e,t)}function mw(e,t){var n=Qy(e),i=ew(n,"top"),r=ew(n,"right"),s=ew(n,"bottom"),o=ew(n,"left"),a=nw(n,"top-left"),l=nw(n,"top-right"),h=nw(n,"bottom-left"),u=nw(n,"bottom-right"),c=Xy(n,"direction"),d=Xy(n,"background-color");d=qy(d);var p,f,m=Py(Xy(n,"background-image")),g=Ry(Xy(n,"background-repeat")),v=Ry(Xy(n,"background-position")),y=Ry(Xy(n,"background-origin")),w=Ry(Xy(n,"background-size"));ky&&"ellipsis"==(p=n.textOverflow)&&(f=e.style.textOverflow,e.style.textOverflow="clip"),_y.msie&&_y.version<10&&(v=Ry(e.currentStyle.backgroundPosition));var _,b,x,C=iw(e.getBoundingClientRect(),"border-*-width",e);!function(){var e=Xy(n,"clip"),i=/^\s*rect\((.*)\)\s*$/.exec(e);if(i){var r=i[1].split(/[ ,]+/g),s="auto"==r[0]?C.top:parseFloat(r[0])+C.top,o="auto"==r[1]?C.right:parseFloat(r[1])+C.left,a="auto"==r[2]?C.bottom:parseFloat(r[2])+C.top,l="auto"==r[3]?C.left:parseFloat(r[3])+C.left,h=new og,u=(new Ym).moveTo(l,s).lineTo(o,s).lineTo(o,a).lineTo(l,a).close();ow(h,u),t.append(h),t=h,Ky(u)}}();var S=Xy(n,"display");if("table-row"==S)for(_=[],b=0,x=e.children;b<x.length;++b)_.push(x[b].getBoundingClientRect());else 1==(_=e.getClientRects()).length&&(_=[e.getBoundingClientRect()]);for(_=function(t){if(/^td$/i.test(e.tagName)){var n=Sy.table;if(n&&"collapse"==Xy(n.style,"border-collapse")){var i=ew(n.style,"left").width,r=ew(n.style,"top").width;if(0===i&&0===r)return t;var s=n.element.getBoundingClientRect(),o=n.element.rows[0].cells[0].getBoundingClientRect();if(o.top==s.top||o.left==s.left)return by(t).map(function(e){return{left:e.left+i,top:e.top+r,right:e.right+i,bottom:e.bottom+r,height:e.height,width:e.width}})}}return t}(_),b=0;b<_.length;++b)T(_[b],0===b,b==_.length-1);if("A"==e.tagName&&e.href&&!/^#?$/.test(e.getAttribute("href"))&&(!Sy._avoidLinks||!Dy(e,Sy._avoidLinks))){const n=document.createRange();n.selectNodeContents(e),by(n.getClientRects()).forEach(function(n){const i=new og;i._pdfLink={url:e.href,top:n.top,right:n.right,bottom:n.bottom,left:n.left},t.append(i)})}return _.length>0&&"list-item"==S&&!e.getAttribute("kendo-no-bullet")&&function(){var i=Xy(n,"list-style-type");if("none"!=i){var r=Xy(n,"list-style-position");switch(i){case"circle":case"disc":case"square":s(function(e){e.style.fontSize="60%",e.style.lineHeight="200%",e.style.paddingRight="0.5em",e.style.fontFamily="DejaVu Serif",e.innerHTML={disc:"\u25cf",circle:"\u25ef",square:"\u25a0"}[i]});break;case"decimal":case"decimal-leading-zero":s(function(e){o(function(t){++t,"decimal-leading-zero"==i&&t<10&&(t="0"+t),e.innerHTML=t+"."})});break;case"lower-roman":case"upper-roman":s(function(e){o(function(t){t=Yp(t+1),"upper-roman"==i&&(t=t.toUpperCase()),e.innerHTML=t+"."})});break;case"lower-latin":case"lower-alpha":case"upper-latin":case"upper-alpha":s(function(e){o(function(t){t=Gy(t),/^upper/i.test(i)&&(t=t.toUpperCase()),e.innerHTML=t+"."})})}}function s(n){tw(e,function(){e.style.position="relative";var i=e.ownerDocument.createElement(xy);i.style.position="absolute",i.style.boxSizing="border-box","outside"==r?(i.style.width="6em",i.style.left="-6.8em",i.style.textAlign="right"):i.style.left="0px",n(i),e.insertBefore(i,e.firstChild),ww(i,t),e.removeChild(i)})}function o(t){var n=e.parentNode.children,i=e.getAttribute("kendo-split-index");if(null!=i)return t(0|i,n.length);for(var r=0;r<n.length;++r)if(n[r]===e)return t(r,n.length)}}(),function(){function i(){var n=uw(e,C,"padding"),i=new og;ow(i,n),t.append(i),t=i,Ky(n)}!function(e){return/^(?:textarea|select|input)$/i.test(e.tagName)}(e)?/^(hidden|auto|scroll)/.test(Xy(n,"overflow"))?i():/^(hidden|auto|scroll)/.test(Xy(n,"overflow-x"))?i():/^(hidden|auto|scroll)/.test(Xy(n,"overflow-y"))&&i():i()}(),function(e,t){var n;if(e._kendoExportVisual)n=e._kendoExportVisual();else if(window.kendo&&window.kendo.jQuery&&e.getAttribute(window.kendo.attr("role"))){var i=window.kendo.widgetInstance(window.kendo.jQuery(e));i&&(i.exportDOMVisual||i.exportVisual)&&(n=i.exportDOMVisual?i.exportDOMVisual():i.exportVisual())}if(!n)return!1;var r=new og;r.children.push(n);var s=e.getBoundingClientRect();return r.transform(Hf().translate(s.left,s.top)),t.append(r),!0}(e,t)||function e(t,n){switch(Sy._stackingContext.element===t&&(Sy._stackingContext.group=n),t.tagName.toLowerCase()){case"img":gw(t,t.src,n);break;case"canvas":try{gw(t,t.toDataURL("image/png"),n)}catch(h){}break;case"textarea":case"input":case"select":!function(t,n){var i=t.tagName.toLowerCase();if("input"==i&&("checkbox"==t.type||"radio"==t.type))return function(e,t){var n=Xy(Qy(e),"color"),i=e.getBoundingClientRect();"checkbox"==e.type?(t.append(Ym.fromRect(new zf([i.left+1,i.top+1],[i.width-2,i.height-2])).stroke(n,1)),e.checked&&t.append((new Ym).stroke(n,1.2).moveTo(i.left+.22*i.width,i.top+.55*i.height).lineTo(i.left+.45*i.width,i.top+.75*i.height).lineTo(i.left+.78*i.width,i.top+.22*i.width))):(t.append(new tm(new Gf([(i.left+i.right)/2,(i.top+i.bottom)/2],Math.min(i.width-2,i.height-2)/2)).stroke(n,1)),e.checked&&t.append(new tm(new Gf([(i.left+i.right)/2,(i.top+i.bottom)/2],Math.min(i.width-8,i.height-8)/2)).fill(n).stroke(null)))}(t,n);var r,s=t.parentNode,o=t.ownerDocument,a=o.createElement(xy);if(a.style.cssText=pw(Qy(t)),"input"==i&&(a.style.whiteSpace="pre"),"select"!=i&&"textarea"!=i||(a.style.overflow="auto"),"select"==i)if(t.multiple)for(var l=0;l<t.options.length;++l)(r=o.createElement(xy)).style.cssText=pw(Qy(t.options[l])),r.style.display="block",r.textContent=t.options[l].textContent,a.appendChild(r);else(r=function(e){return e.selectedOptions&&e.selectedOptions.length>0?e.selectedOptions[0]:e.options[e.selectedIndex]}(t))&&(a.textContent=r.textContent);else a.textContent=t.value;s.insertBefore(a,t),a.scrollLeft=t.scrollLeft,a.scrollTop=t.scrollTop,t.style.display="none",e(a,n),t.style.display="",s.removeChild(a)}(t,n);break;default:for(var i=[],r=[],s=[],o=t.firstChild;o;o=o.nextSibling)switch(o.nodeType){case 3:/\S/.test(o.data)&&yw(t,o,n);break;case 1:var a=Qy(o),l=Xy(a,"float");"static"!=Xy(a,"position")?s.push(o):"none"!=l?r.push(o):i.push(o)}lf(i,vw).forEach(function(e){ww(e,n)}),lf(r,vw).forEach(function(e){ww(e,n)}),lf(s,vw).forEach(function(e){ww(e,n)})}}(e,t),ky&&"ellipsis"==p&&(e.style.textOverflow=f),t;function k(e,n,i,r,s,o,a,l){if(!(i<=0)){var h,u=new og;sw(u,l),t.append(u),lw(o),lw(a),h=new Ym({fill:{color:e},stroke:null}),u.append(h),h.moveTo(o.x?Math.max(o.x,r):0,0).lineTo(n-(a.x?Math.max(a.x,s):0),0).lineTo(n-Math.max(a.x,s),i).lineTo(Math.max(o.x,r),i).close(),o.x&&c(r,o,[-1,0,0,1,o.x,0]),a.x&&c(s,a,[1,0,0,1,n-a.x,0])}function c(t,n,r){var s=Math.PI/2*t/(t+i),o={x:n.x-t,y:n.y-i},a=new Ym({fill:{color:e},stroke:null}).moveTo(0,0);sw(a,r),aw(a,0,n.y,{startAngle:-90,endAngle:-rw(s),radiusX:n.x,radiusY:n.y}),o.x>0&&o.y>0?(a.lineTo(o.x*Math.cos(s),n.y-o.y*Math.sin(s)),aw(a,0,n.y,{startAngle:-rw(s),endAngle:-90,radiusX:o.x,radiusY:o.y,anticlockwise:!0})):o.x>0?a.lineTo(o.x,i).lineTo(0,i):a.lineTo(o.x,i).lineTo(o.x,0),u.append(a.close())}}function E(t,n,i,r,s,o,a){var l;if(i&&"none"!=i)if("url"==i.type){if(/^url\(\"data:image\/svg/i.test(i.url))return;var h=Cy[i.url];h&&h.width>0&&h.height>0&&u(t,n,h.width,h.height,function(e,t){e.append(new ig(i.url,t))})}else{if("linear"!=i.type)return;u(t,n,n.width,n.height,(l=i,function(e,t){var n=t.width(),i=t.height();switch(l.type){case"linear":var r=null!=l.angle?l.angle:Math.PI;switch(l.to){case"top":r=0;break;case"left":r=-Math.PI/2;break;case"bottom":r=Math.PI;break;case"right":r=Math.PI/2;break;case"top left":case"left top":r=-Math.atan2(i,n);break;case"top right":case"right top":r=Math.atan2(i,n);break;case"bottom left":case"left bottom":r=Math.PI+Math.atan2(i,n);break;case"bottom right":case"right bottom":r=Math.PI-Math.atan2(i,n)}l.reverse&&(r-=Math.PI),(r%=2*Math.PI)<0&&(r+=2*Math.PI);var s=Math.abs(n*Math.sin(r))+Math.abs(i*Math.cos(r)),o=Math.atan(n*Math.tan(r)/i),a=Math.sin(o),h=Math.cos(o),u=Math.abs(a)+Math.abs(h),c=u/2*a,d=u/2*h;r>Math.PI/2&&r<=3*Math.PI/2&&(c=-c,d=-d);var p=[],f=0,m=l.stops.map(function(e,t){var n=e.percent;n?n=parseFloat(n)/100:e.length?n=parseFloat(e.length)/s:0===t?n=0:t==l.stops.length-1&&(n=1);var i={color:e.color.toCssRgba(),offset:n};return null!=n?(f=n,p.forEach(function(e,t){e.stop.offset=e.left+(f-e.left)*(t+1)/(p.length+1)}),p=[]):p.push({left:f,stop:i}),i}),g=[.5-c,.5+d],v=[.5+c,.5-d];e.append(Ym.fromRect(t).stroke(null).fill(new mg({start:g,end:v,stops:m,userSpace:!1})));break;case"radial":window.console&&window.console.log&&window.console.log("Radial gradients are not yet supported in HTML renderer")}}))}function u(t,n,i,l,h){var u,c=i/l,d=n;if("content-box"==o?(d=iw(d,"border-*-width",e),d=iw(d,"padding-*",e)):"padding-box"==o&&(d=iw(d,"border-*-width",e)),!/^\s*auto(\s+auto)?\s*$/.test(a))if("contain"==a)u=Math.min(d.width/i,d.height/l),i*=u,l*=u;else if("cover"==a)u=Math.max(d.width/i,d.height/l),i*=u,l*=u;else{var p=a.split(/\s+/g);i=/%$/.test(p[0])?d.width*parseFloat(p[0])/100:parseFloat(p[0]),l=1==p.length||"auto"==p[1]?i/c:/%$/.test(p[1])?d.height*parseFloat(p[1])/100:parseFloat(p[1])}var f=String(s);switch(f){case"bottom":f="50% 100%";break;case"top":f="50% 0";break;case"left":f="0 50%";break;case"right":f="100% 50%";break;case"center":f="50% 50%"}1==(f=f.split(/\s+/)).length&&(f[1]="50%"),f[0]=/%$/.test(f[0])?parseFloat(f[0])/100*(d.width-i):parseFloat(f[0]),f[1]=/%$/.test(f[1])?parseFloat(f[1])/100*(d.height-l):parseFloat(f[1]);var m=new zf([d.left+f[0],d.top+f[1]],[i,l]);function g(){for(;m.origin.x>n.left;)m.origin.x-=i}function v(){for(;m.origin.y>n.top;)m.origin.y-=l}function y(){for(;m.origin.x<n.right;)h(t,m.clone()),m.origin.x+=i}if("no-repeat"==r)h(t,m);else if("repeat-x"==r)g(),y();else if("repeat-y"==r)for(v();m.origin.y<n.bottom;)h(t,m.clone()),m.origin.y+=l;else if("repeat"==r){g(),v();for(var w=m.origin.clone();m.origin.y<n.bottom;)m.origin.x=w.x,y(),m.origin.y+=l}}}function T(n,p,f){if(0!==n.width&&0!==n.height){!function(e){var n=new og;if(ow(n,cw(e,a,l,u,h)),t.append(n),d){var i=new Ym({fill:{color:d.toCssRgba()},stroke:null});i.moveTo(e.left,e.top).lineTo(e.right,e.top).lineTo(e.right,e.bottom).lineTo(e.left,e.bottom).close(),n.append(i)}for(var r=m.length;--r>=0;)E(n,e,m[r],g[r%g.length],v[r%v.length],y[r%y.length],w[r%w.length])}(n);var _=o.width>0&&(p&&"ltr"==c||f&&"rtl"==c),b=r.width>0&&(f&&"ltr"==c||p&&"rtl"==c);if(0!==i.width||0!==o.width||0!==r.width||0!==s.width){if(i.color==r.color&&i.color==s.color&&i.color==o.color&&i.width==r.width&&i.width==s.width&&i.width==o.width&&_&&b){n=iw(n,i.width/2);var x=uw(e,n,i.width/2);return x.options.stroke={color:i.color,width:i.width},void t.append(x)}if(0===a.x&&0===l.x&&0===u.x&&0===h.x&&i.width<2&&o.width<2&&r.width<2&&s.width<2)return i.width>0&&t.append(new Ym({stroke:{width:i.width,color:i.color}}).moveTo(n.left,n.top+i.width/2).lineTo(n.right,n.top+i.width/2)),s.width>0&&t.append(new Ym({stroke:{width:s.width,color:s.color}}).moveTo(n.left,n.bottom-s.width/2).lineTo(n.right,n.bottom-s.width/2)),_&&t.append(new Ym({stroke:{width:o.width,color:o.color}}).moveTo(n.left+o.width/2,n.top).lineTo(n.left+o.width/2,n.bottom)),void(b&&t.append(new Ym({stroke:{width:r.width,color:r.color}}).moveTo(n.right-r.width/2,n.top).lineTo(n.right-r.width/2,n.bottom)));var C=hw(n,a,l,u,h),S=C.tl,T=C.tr,I=C.br,D=C.bl;k(i.color,n.width,i.width,o.width,r.width,S,T,[1,0,0,1,n.left,n.top]),k(s.color,n.width,s.width,r.width,o.width,I,D,[-1,0,0,-1,n.right,n.bottom]),k(o.color,n.height,o.width,s.width,i.width,A(D),A(S),[0,-1,1,0,n.left,n.bottom]),k(r.color,n.height,r.width,i.width,s.width,A(T),A(I),[0,1,-1,0,n.right,n.top])}}function A(e){return{x:e.y,y:e.x}}}}function gw(e,t,n){var i=function(e){var t=e.getBoundingClientRect();return t=iw(t,"border-*-width",e),iw(t,"padding-*",e)}(e),r=new zf([i.left,i.top],[i.width,i.height]),s=new ig(t,r);ow(s,uw(e,i,"content")),n.append(s)}function vw(e,t){var n=Qy(e),i=Qy(t),r=parseFloat(Xy(n,"z-index")),s=parseFloat(Xy(i,"z-index")),o=Xy(n,"position"),a=Xy(i,"position");return isNaN(r)&&isNaN(s)?/static|absolute/.test(o)&&/static|absolute/.test(a)?0:"static"==o?-1:"static"==a?1:0:isNaN(r)?0===s?0:s>0?-1:1:isNaN(s)?0===r?0:r>0?1:-1:parseFloat(r)-parseFloat(s)}function yw(e,t,n){if(null!=(i=Sy._clipbox)&&(!i||0!==i.width()&&0!==i.height())){var i,r=Qy(e);if(!(parseFloat(Xy(r,"text-indent"))<-500)){var s=t.data,o=0,a=s.search(/\S\s*$/)+1;if(a){var l=Xy(r,"font-size"),h=Xy(r,"line-height"),u=[Xy(r,"font-style"),Xy(r,"font-variant"),Xy(r,"font-weight"),l,Xy(r,"font-family")].join(" ");if(l=parseFloat(l),h=parseFloat(h),0!==l){var c=Xy(r,"color"),d=e.ownerDocument.createRange(),p="justify"==Xy(r,"text-align"),f=Xy(r,"column-count",1),m=Xy(r,"white-space"),g=Xy(r,"text-transform"),v=e.getBoundingClientRect().width/l*5;0===v&&(v=500);for(var y=null,w=Sy.underline,_=Sy["line-through"],b=Sy.overline,x=w||_||b;!S(););return void(x&&(d.selectNode(t),by(d.getClientRects()).forEach(function(e){function t(t,i){if(t){var r=l/12,s=new Ym({stroke:{width:r,color:t}});s.moveTo(e.left,i-=r).lineTo(e.right,i),n.append(s)}}t(w,e.bottom),t(_,e.bottom-e.height/2.7),t(b,e.top)})))}}}}function C(e){if(ky||_y.chrome){for(var t=e.getClientRects(),n={top:1/0,right:-1/0,bottom:-1/0,left:1/0},i=!1,r=0;r<t.length;++r){var s=t[r];s.width<=1||s.bottom===y||(n.left=Math.min(s.left,n.left),n.top=Math.min(s.top,n.top),n.right=Math.max(s.right,n.right),n.bottom=Math.max(s.bottom,n.bottom),i=!0)}return i?(n.width=n.right-n.left,n.height=n.bottom-n.top,n):e.getBoundingClientRect()}return e.getBoundingClientRect()}function S(){var e,i=o,r=s.substr(o).search(/\S/);if(o+=r,r<0||o>=a)return!0;d.setStart(t,o),d.setEnd(t,o+1),e=C(d);var l=!1;if((p||f>1)&&(r=s.substr(o).search(/\s/))>=0){d.setEnd(t,o+r);var w=C(d);w.bottom==e.bottom&&(e=w,l=!0,o+=r)}if(!l){if((r=function n(i,r,s){d.setEnd(t,r);var o=C(d);return o.bottom!=e.bottom&&i<r?n(i,i+r>>1,r):o.right!=e.right?(e=o,r<s?n(r,r+s>>1,s):r):r}(o,Math.min(a,o+v),a))==o)return!0;if(o=r,0===(r=d.toString().search(/\s+$/)))return!1;r>0&&(d.setEnd(t,d.startOffset+r),e=C(d))}ky&&(e=d.getClientRects()[0]);var _=d.toString();if(/^(?:pre|pre-wrap)$/i.test(m)){if(/\t/.test(_)){var b=0;for(r=i;r<d.startOffset;++r){var x=s.charCodeAt(r);9==x?b+=8-b%8:10==x||13==x?b=0:b++}for(;(r=_.search("\t"))>=0;){var S="        ".substr(0,8-(b+r)%8);_=_.substr(0,r)+S+_.substr(r+1)}}}else _=_.replace(/\s+/g," ");l||(y=e.bottom),function(e,t){if(ky&&!isNaN(h)){var i=zy(u),r=(t.top+t.bottom-i)/2;t={top:r,right:t.right,bottom:r+i,left:t.left,height:i,width:t.right-t.left}}switch(g){case"uppercase":e=e.toUpperCase();break;case"lowercase":e=e.toLowerCase();break;case"capitalize":e=e.replace(/(?:^|\s)\S/g,e=>e.toUpperCase())}var s=new Ey(e,new zf([t.left,t.top],[t.width,t.height]),{font:u,fill:{color:c}});n.append(s)}(_,e)}}function ww(e,t){var n=Qy(e);if(Uy(n),!/^(style|script|link|meta|iframe|svg|col|colgroup)$/i.test(e.tagName)&&null!=Sy._clipbox){var i=parseFloat(Xy(n,"opacity")),r=Xy(n,"visibility"),s=Xy(n,"display");if(0!==i&&"hidden"!=r&&"none"!=s){var o,a=function(e){var t=Xy(e,"transform");if("none"==t)return null;var n=/^\s*matrix\(\s*(.*?)\s*\)\s*$/.exec(t);if(n){var i=Xy(e,"transform-origin");return{matrix:n=n[1].split(/\s*,\s*/g).map(parseFloat),origin:i=i.split(/\s+/g).map(parseFloat)}}}(n),l=Xy(n,"z-index");(a||i<1)&&"auto"==l&&(l=0),o=function(e,t,n){var i;"auto"!=n?(i=Sy._stackingContext.group,n=parseFloat(n)):(i=t,n=0);for(var r=i.children,s=0;s<r.length&&!(null!=r[s]._dom_zIndex&&r[s]._dom_zIndex>n);++s);var o=new og;if(i.insert(s,o),o._dom_zIndex=n,i!==t&&Sy._clipbox){var a=Sy._matrix.invert(),l=Sy._clipbox.transformCopy(a);ow(o,Ym.fromRect(l))}return o}(0,t,l),i<1&&o.opacity(i*o.opacity()),Zy(e,n,o),a?tw(e,function(){Jy(e.style,"transform","none","important"),Jy(e.style,"transition","none","important"),"static"==Xy(n,"position")&&Jy(e.style,"position","relative","important");var t=e.getBoundingClientRect(),i=t.left+a.origin[0],r=t.top+a.origin[1],s=[1,0,0,1,-i,-r];s=_w(s,a.matrix),s=_w(s,[1,0,0,1,i,r]),s=sw(o,s),Sy._matrix=Sy._matrix.multiplyCopy(s),fw(e,o)}):fw(e,o),Yy()}}}function _w(e,t){var n=e[0],i=e[1],r=e[2],s=e[3],o=e[4],a=e[5],l=t[0],h=t[1],u=t[2],c=t[3];return[n*l+i*u,n*h+i*c,r*l+s*u,r*h+s*c,o*l+a*u+t[4],o*h+a*c+t[5]]}const bw=e=>Math.min(e,20),xw=e=>(String(e).split(".")[1]||"").length,Cw=(e,t)=>{const n=bw(t);return parseFloat(e.toFixed(n))};function Sw(e,t,...n){if(e&&e.nativeElement)return e.nativeElement[t].apply(e.nativeElement,n)}const kw=/[eE][\-+]?([0-9]+)/,Ew=e=>e>=0?Math.floor(e):Math.ceil(e),Tw=e=>{},Iw=e=>!isNaN(e)&&null!==e;function Dw(e,t){const n=t-String(e).length;let i=e;if(n>0){const t=new Array(n+1).join("0");i=parseFloat(e+t)}return i}var Aw=function(e){return e[e.Down=-1]="Down",e[e.None=0]="None",e[e.Up=1]="Up",e}({});const Ow=["min","max","step","decimals"],Nw={decimals:null,max:null,min:null,step:1},Fw=(()=>(class{constructor(e,t,n,i,r,s,o){this.intl=e,this.renderer=t,this.localizationService=n,this.injector=i,this.ngZone=r,this.changeDetector=s,this.hostElement=o,this.focusableId=`k-${Aa()}`,this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.value=null,this.valueChange=new xr,this.onFocus=new xr,this.onBlur=new xr,this.ArrowDirection=Aw,this.arrowDirection=Aw.None,this.inputValue="",this.minValidateFn=Tw,this.maxValidateFn=Tw,this._format="n2",this.isPasted=!1,this.increasePress=(e=>{this.arrowPress(Aw.Up,e)}),this.decreasePress=(e=>{this.arrowPress(Aw.Down,e)}),this.releaseArrow=(()=>{clearTimeout(this.spinTimeout),this.arrowDirection!==Aw.None&&(this.arrowDirection=Aw.None,this.changeDetector.detectChanges())}),this.handlePaste=(()=>{this.isPasted=!0}),this.handleInput=(()=>{const e=this.numericInput.nativeElement;let{selectionStart:t,selectionEnd:n,value:i}=e;if(this.pressedKey===za.NumpadDecimal&&(i=this.replaceNumpadDotValue()),this.isPasted&&(i=this.formatInputValue(this.intl.parseNumber(i))),!this.isValid(i))return e.value=this.inputValue,void this.setSelection(t-1,n-1);const r=this.intl.parseNumber(i);let s=this.restrictDecimals(r);if(this.autoCorrect){const e=this.limitInputValue(s);s=e.value,t=e.selectionStart,n=e.selectionEnd}r!==s||this.hasTrailingZeros(i)||!this.focused?(this.setInputValue(s),this.setSelection(t,n)):this.inputValue=i,this.isPasted&&(e.value=this.inputValue),this.updateValue(s),this.previousSelection=null,this.isPasted=!1}),this.handleDragEnter=(()=>{this.focused||this.isDisabled||this.setInputValue(this.value,!0)}),this.handleFocus=(()=>{this.focused||(this.focused=!0,this.isDisabled||(this.setInputValue(),this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.setSelection(0,this.inputValue.length)},0)}))),Da(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()})}),this.handleBlur=(()=>{this.focused=!1,this.inputValue!==this.elementValue&&this.handleInput(),this.setInputValue(),(Da(this.onBlur)||(e=>e&&(!e.touched||e.control&&"blur"===e.control.updateOn))(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.onBlur.emit()})}),this.handleKeyDown=(e=>{if(this.isDisabled)return;let t;e.keyCode===za.ArrowDown?t=-1:e.keyCode===za.ArrowUp&&(t=1),t&&this.step&&(e.preventDefault(),this.addStep(t));const n=this.numericInput.nativeElement;this.previousSelection={end:n.selectionEnd,start:n.selectionStart},this.pressedKey=e.keyCode}),this.handleWheel=(e=>{if(this.focused&&!this.isDisabled){e.preventDefault();const t=(e=>{let t=0;return e.wheelDelta?t=(t=e.wheelDelta/120)>0?Math.ceil(t):Math.floor(t):e.detail&&(t=Math.round(-e.detail/3)),t})(e);this.addStep(t)}}),this.ngChange=(e=>{}),this.ngTouched=(()=>{}),this.direction=n.rtl?"rtl":"ltr"}get format(){const e=this._format;return null!=e?e:"n2"}set format(e){this._format=e}set tabIndex(e){this.tabindex=e}get tabIndex(){return this.tabindex}get widgetClasses(){return!0}ngOnInit(){this.subscriptions=this.localizationService.changes.subscribe(({rtl:e})=>{this.direction=e?"rtl":"ltr"}),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(fu,null)}ngOnChanges(e){Ia(Ow,e,!1)&&this.parseOptions(Ow.filter(t=>e[t])),this.verifySettings(),Ia(["min","max","rangeValidation"],e,!1)&&(this.minValidateFn=this.rangeValidation?(e=>t=>null!==t.value&&t.value<e?{minError:{minValue:e,value:t.value}}:null)(this.min):Tw,this.maxValidateFn=this.rangeValidation?(e=>t=>null!==t.value&&t.value>e?{maxError:{maxValue:e,value:t.value}}:null)(this.max):Tw),Ia(["autoCorrect","decimals","min"],e)&&delete this.numericRegex,Ia(["value","format"],e,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),this.focused&&this.intl.parseNumber(this.elementValue)===this.value||this.setInputValue())}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout)}validate(e){return this.minValidateFn(e)||this.maxValidateFn(e)}writeValue(e){this.verifyValue(e);let t=this.restrictModelValue(e);this.value=t,this.setInputValue()}registerOnChange(e){this.ngChange=e}registerOnTouched(e){this.ngTouched=e}setDisabledState(e){this.disabled=e}focus(){Sw(this.numericInput,"focus")}blur(){Sw(this.numericInput,"blur")}notifyValueChange(){this.setInputValue()}get incrementTitle(){return this.localizationService.get("increment")}get decrementTitle(){return this.localizationService.get("decrement")}get decimalSeparator(){return this.intl.numberSymbols().decimal}get elementValue(){return this.numericInput.nativeElement.value}set elementValue(e){this.renderer.setProperty(this.numericInput.nativeElement,"value",e)}get focused(){return this.isFocused}get hasDecimals(){return null!==this.decimals&&this.decimals>=0}set focused(e){if(this.isFocused!==e&&this.numericWrap){const t=this.numericWrap.nativeElement,n=this.numericInput.nativeElement;e?(this.renderer.addClass(t,"k-state-focused"),this.isDisabled||this.renderer.removeClass(n,"k-formatted-value")):(this.renderer.removeClass(t,"k-state-focused"),this.renderer.addClass(n,"k-formatted-value")),this.isFocused=e}}get isDisabled(){return this.disabled||this.readonly}arrowPress(e,t){t.preventDefault(),this.isDisabled||(gp||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,500):this.setInputValue())}updateValue(e){((e,t)=>e===t||null===e&&void 0===t||void 0===e&&null===t)(this.value,e)||this.ngZone.run(()=>{this.value=e,this.ngChange(e),this.valueChange.emit(e),this.changeDetector.markForCheck()})}replaceNumpadDotValue(){let e=this.inputValue||"";if(this.previousSelection){const t=this.numericInput.nativeElement,{selectionStart:n,selectionEnd:i}=t,{start:r,end:s}=this.previousSelection;t.value=e=e.substring(0,r)+this.decimalSeparator+e.substring(s),this.setSelection(n,i)}return e}isValid(e){return this.numericRegex||(this.numericRegex=(e=>{const{autoCorrect:t,decimals:n,min:i}=e;let r,s=e.separator;return"."===s&&(s="\\"+s),new RegExp(`^${t&&null!==i&&i>=0?"":"-?"}${r=0===n?"\\d*":`(?:(?:\\d+(${s}\\d*)?)|(?:${s}\\d*))?`}$`)})({autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator})),this.numericRegex.test(e)}spin(e,t){clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout(()=>{this.spin(e,50)},t),this.addStep(e)}addStep(e){let t=((e,t)=>{const n=((e,t)=>Math.max(xw(e),xw(t)))(e,t);return Cw(e+t,n)})(this.value||0,this.step*e);t=this.limitValue(t),t=this.restrictDecimals(t),this.setInputValue(t),this.updateValue(t)}setSelection(e,t){this.focused&&Sw(this.numericInput,"setSelectionRange",e,t)}limitValue(e){let t=e;return this.isInRange(e)||(Iw(this.max)&&e>this.max&&(t=this.max),Iw(this.min)&&e<this.min&&(t=this.min)),t}limitInputValue(e){let{selectionStart:t,selectionEnd:n,value:i}=this.numericInput.nativeElement,r=e,s=!1;if(!this.isInRange(e)){const o=i.length-String(this.inputValue).length,{min:a,max:l}=this,h=Iw(l),u=Iw(a);let c,d,p=e;if(0===t&&this.inputValue.substr(1)===i)return{selectionEnd:n,selectionStart:t,value:null};if(h&&e>l?e>0?d=!0:c=l:u&&e<a&&(e>0?c=a:d=!0),c){const t=this.tryPadValue(e,c);t&&Ew(e)!==Ew(c)&&(p=t,s=!0)}else d&&this.inputValue&&t!==i.length&&(p=parseFloat(i.substr(0,t)+i.substr(t+o)));r=this.limitValue(p),s=(s||r!==p)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+o>0}return{selectionEnd:s?String(r).length:n,selectionStart:t,value:r}}tryPadValue(e,t){const n=String(Math.floor(t)).length,i=Dw(e,n),r=Dw(e,n+1);let s;return this.isInRange(i)?s=i:this.isInRange(r)&&(s=r),s}isInRange(e){return!Iw(e)||(!Iw(this.min)||this.min<=e)&&(!Iw(this.max)||e<=this.max)}restrictModelValue(e){let t=this.restrictDecimals(e,!0);return this.autoCorrect&&this.limitValue(t)!==t&&(t=null),t}restrictDecimals(e,t){let n=e;if(e&&this.hasDecimals){const i=this.decimals,r=String(e);if(t||kw.test(r))n=Cw(e,i);else{const e=r.split(".");let t=e[1];t&&t.length>i&&(t=t.substr(0,i),n=parseFloat(`${e[0]}.${t}`))}}return n}formatInputValue(e){let t=String(e);const n=kw.exec(t);return n&&(t=e.toFixed(bw(parseInt(n[1],10)))),t.replace(".",this.decimalSeparator)}formatValue(e,t){return null!==e&&(e=>void 0!==e)(e)&&""!==e?t&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):""}setInputValue(e=this.value,t=this.focused){const n=this.formatValue(e,t);this.elementValue=n,this.inputValue=n}verifySettings(){if(ot()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max.")}verifyValue(e){if(ot()&&e&&"number"!=typeof e)throw new Error(`The NumericTextBox component requires value of type Number and ${JSON.stringify(e)} was set.`)}parseOptions(e){for(let t=0;t<e.length;t++){const n=e[t],i=this[n];if("string"==typeof i){const e=parseFloat(i),t=!isNaN(e);if(ot()&&!t&&""!==i)throw new Error("The NumericTextBox component requires value of type Number or a String representing "+`a number for the ${n} property and ${JSON.stringify(i)} was set.`);this[n]=t?e:Nw[n]}}}intlChange(){delete this.numericRegex,!this.numericInput||this.focused&&this.isValid(this.elementValue)||this.setInputValue()}hasTrailingZeros(e){if(this.hasDecimals&&this.focused){const t=e.split(this.decimalSeparator)[1];return t&&t.length>this.decimals&&t.lastIndexOf("0")===t.length-1}}}))(),Mw=(()=>(class extends Cd{}))(),Pw=(()=>(class{}))(),Rw=(()=>(class{}))(),Vw=(()=>(class extends Mw{constructor(e){super(),this.service=e}}))(),zw=(()=>(class{}))(),Lw=(()=>(class{}))(),Bw=(()=>(class{}))(),Hw=(()=>(class{}))(),$w=(()=>(class{}))(),jw=e=>e?new Date(e.getTime()):null,Uw=(e,t)=>{const n=jw(e);return 0===t&&23===n.getHours()&&n.setHours(n.getHours()+2),n},qw=(e,t)=>{const n=jw(e);return n.setDate(n.getDate()+t),Uw(n,e.getHours())},Ww=(e,t,n,i=0,r=0,s=0,o=0)=>{const a=new Date(e,t,n,i,r,s,o);return e>-1&&e<100&&a.setFullYear(a.getFullYear()-1900),Uw(a,i)},Gw=e=>Ww(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),Zw=(e,t)=>!e&&!t||e&&t&&e.getTime()===t.getTime(),Yw=e=>{const t=Ww(e.getFullYear(),e.getMonth()+1,1,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());return qw(t,-1)},Kw=(e,t)=>{const n=jw(e),i=(12+(n.getMonth()+t)%12)%12;return n.setMonth(n.getMonth()+t),((e,t)=>e.getMonth()!==t?Yw(Kw(e,-1)):e)(Uw(n,e.getHours()),i)},Qw=(e,t)=>{const n=e.getMonth(),i=Ww(t,n,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());return i.getMonth()===n?i:Yw(Kw(i,-1))},Xw=(e,t)=>Uw(Qw(e,e.getFullYear()+t),e.getHours()),Jw=(e,t)=>Xw(e,10*t),e_=(e,t)=>Xw(e,100*t),t_=(e,t)=>Qw(e,t(e.getFullYear())),n_=e=>t_(e,e=>e-e%100),i_=e=>t_(e,e=>e-e%100+90),r_=e=>t_(e,e=>e-e%10),s_=(e,t)=>(n_(t).getFullYear()-n_(e).getFullYear())/100,o_=e=>t_(e,e=>e-e%10+9),a_=(e,t)=>(r_(t).getFullYear()-r_(e).getFullYear())/10,l_=(e,t)=>qw(e,7*t),h_=e=>Ww(e.getFullYear(),e.getMonth(),1,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());var u_=function(e){return e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward",e}({});const c_=(e,t,n=u_.Forward)=>{const i=jw(e),r=(t-i.getDay()+7*n)%7;return i.setDate(i.getDate()+r),Uw(i,e.getHours())},d_=(e,t)=>12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth()),p_=(e,t)=>{const n=e.getDate(),i=Ww(e.getFullYear(),t,n,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());return i.getDate()===n?i:Yw(Kw(i,-1))},f_=e=>p_(e,0),m_=e=>p_(e,11),g_=(e,t)=>t.getFullYear()-e.getFullYear();var v_=function(e){return e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday",e}({});const y_=(e,t)=>{const n=Ww(e.getFullYear(),0,1,-6),i=((e,t)=>t!==v_.Monday?qw(((e,t)=>c_(e,t,u_.Backward))(e,t),4):qw(e,4-(e.getDay()||7)))(e,t).getTime()-n.getTime(),r=Math.floor(i/864e5);return 1+Math.floor(r/7)},w_=(e,t=v_.Monday)=>{const n=qw(e,-7),i=qw(e,7),r=y_(e,t);return 0===r?y_(n,t)+1:53===r&&y_(i,t)>1?1:r};function __(e){return"string"==typeof e}const b_=/\{(\d+)}?\}/g;class x_{constructor({name:e,message:t}){if(!e||!t)throw new Error("{ name: string, message: string } object is required!");this.name=e,this.message=t}formatMessage(...e){const t=C_(e),n=this.message.replace(b_,function(e,n){return t[parseInt(n,10)]});return`${this.name}: ${n}`}error(...e){return new Error(this.formatMessage(e))}}const C_=function(e){return e.reduce((e,t)=>e.concat(t),[])},S_=(k_={NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."},Object.keys(k_).reduce(function(e,t){return e[t]=new x_({name:t,message:k_[t]}),e},{}));var k_;const E_={en:{name:"en",identity:{version:{_number:"$Revision: 12418 $",_cldrVersion:"29"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"\xd7",perMille:"\u2030",infinity:"\u221e",nan:"NaN",timeSeparator:":"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"\u20ac","symbol-alt-narrow":"\u20ac"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},day:{wide:"day",short:"day",narrow:"day"},weekday:{wide:"day of the week"},dayperiod:{wide:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},zone:{wide:"time zone"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function T_(e){return __(e)?I_(e):e}function I_(e){if(E_[e])return E_[e];if(E_.supplemental.likelySubtags){const t=e.split("-"),n=t[0],i=t.slice(1),r=function(e,t){const n=E_.supplemental.likelySubtags;for(let i=0;i<t.length;i++){let r=n[e+"-"+t[i]];if(r)return r}if(n[e])return n[e]}(n,i),s=r?function(e,t){const n=e.split("-"),i=n[0],r=n[1],s=n[2];return E_[e]||-1!==t.indexOf(s)&&E_[i+"-"+s]||-1!==t.indexOf(r)&&E_[i+"-"+r]||E_[i]}(r,i):null;if(s)return s}throw S_.NoLocale.error(e)}const D_="decimal",A_="currency",O_="accounting",N_="percent",F_="scientific",M_="$",P_="%",R_="n",V_=";",z_=",",L_=".",B_="",H_="en";function $_(e){if(e.territory)return e.territory;const t=e.identity;let n;return n=t&&t.territory?t.territory:function(e,t){const n=E_.supplemental.likelySubtags;let i=e.split("-");if(n){const t=n[e]||n[i[0]];t&&(i=t.split("-"))}if(t)for(let s=i.length-1;s>=1;s--){const e=i[s];e!==t.variant&&e!==t.script||i.splice(s,1)}const r=i.length;if(r>1)return i[r-1].toUpperCase()}(e.name,t),e.territory=n,n}function j_(e,t=H_){const n=I_(t).calendar.dateFields;if(!n)throw S_.NoDateFieldNames.error();const i=n[e.type]||{};return i[e.nameType]||i.wide}function U_(e,t){const{type:n,nameType:i,standAlone:r,lower:s}=t,o=T_(e),a=(s?"lower-":B_)+i,l=o.calendar[n][r?"stand-alone":"format"];let h=l[a];var u;return!h&&s&&(h=l[a]=(u=l[i],Array.isArray(u)?function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toLowerCase());return t}(u):function(e){const t={};for(let n in e)t[n]=e[n].toLowerCase();return t}(u))),h}function q_(e){const t=e.split("-"),n=parseInt(t[0],10),i=parseInt(t[1],10)-1,r=parseInt(t[2],10);return new Date(n,i,r)}const{NoCurrency:W_,NoCurrencyDisplay:G_,NoSupplementalCurrency:Z_,NoCurrencyRegion:Y_,NoValidCurrency:K_}=S_,Q_=2,X_="symbol",J_="XXX",eb={"001":"USD",150:"EUR"};function tb(e,t,n){const i=T_(e).numbers.currencies;if(!i){if(n)throw W_.error();return}const r=i[t];if(r)return r;if(n)throw G_.error()}function nb(e,t){return t.length-e.length}function ib(e,t){const n=T_(e),i=n.numbers;if(!i.localeCurrency){const e=function(e,t=!0){if(eb[e])return eb[e];const n=E_.supplemental.currencyData;if(!n){if(t)throw Z_.error();return}const i=n.region[e];if(i)return function(e){let t,n,i,r;for(let s=0;s<e.length;s++){const o=e[s],a=Object.keys(o)[0],l=o[a];if(a!==J_&&"false"!==l._tender&&l._from)if(l._to){if(!i){const e=q_(l._from),i=q_(l._to);(!n||n.to<i||n.from<e)&&(t=a,n={from:e,to:i})}}else{const e=q_(l._from);(!r||r<e)&&(i=a,r=e)}}return i||t}(i);if(t)throw Y_.error(e)}($_(n),t);if(!e&&t)throw K_.error(n.name);i.localeCurrency=e}return i.localeCurrency}const rb=["sun","mon","tue","wed","thu","fri","sat"],sb="001",{NoWeekData:ob,NoFirstDay:ab}=S_;function lb(e){const t=T_(e);if(!isNaN(t.firstDay))return t.firstDay;const n=E_.supplemental.weekData;if(!n)throw ob.error();const i=n.firstDay[$_(t)]||n.firstDay[sb];if(!i)throw ab.error();return t.firstDay=rb.indexOf(i),t.firstDay}const{NoWeekData:hb}=S_;function ub(e){const t=T_(e);if(t.weekendRange)return t.weekendRange;const n=E_.supplemental.weekData;if(!n)throw hb.error();const i=$_(t),r=n.weekendEnd[i]||n.weekendEnd[sb];return t.weekendRange={start:rb.indexOf(n.weekendStart[i]||n.weekendStart[sb]),end:rb.indexOf(r)},t.weekendRange}function cb(e){return T_(e).numbers.symbols}function db(e,t={}){return t.currency||(t.currency=ib(e,!0)),function(e,t){const{value:n,currency:i,currencyDisplay:r=X_}=t;if("code"===r)return i;const s=tb(e,i,!0);return r===X_?s["symbol-alt-narrow"]||s[X_]:void 0===typeof n||1!==n?s["displayName-count-other"]:s["displayName-count-one"]}(e,t)}function pb(e,t,n,i,r){const s=r.numbers.symbols,o=e.indexOf(s.decimal),a=i.groupSize.slice();let l=a.shift(),h=-1!==o?o:n+1,u=e.substring(t,h),c=e;const d=u.length;if(d>=l){let n=d,i=[];for(;n>-1;){let e=u.substring(n-l,n);e&&i.push(e),n-=l;let t=a.shift();if(0===(l=void 0!==t?t:l)){(e=u.substring(0,n))&&i.push(e);break}}u=i.reverse().join(s.group),c=e.substring(0,t)+u+e.substring(h)}return c}function fb(e){return e===A_||e===O_}function mb(e,t=2,n=!1){const i=t-String(e).length;let r=e;if(i>0){const t=new Array(i+1).join("0");r=n?e+t:t+e}return r}const gb=20;function vb(e,t){let n=e,i=t||0;return n=n.toString().split("e"),n=(n=Math.round(Number(n[0]+"e"+(n[1]?Number(n[1])+i:i)))).toString().split("e"),(n=Number(n[0]+"e"+(n[1]?Number(n[1])-i:-i))).toFixed(Math.min(i,gb))}const yb=3,wb=0,_b=/0+$/;const bb="__??__",xb="#",Cb="0",Sb=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,kb=/(\.(?:[0-9]*[1-9])?)0+$/g,Eb=/\.$/,Tb=/\,/g;function Ib(e,t,n){return-1===e&&-1!==t?t:-1!==e&&-1===t?e:n?Math.min(e,t):Math.max(e,t)}const Db=/^(n|c|p|e|a)(\d*)$/i;function Ab(e){return __(e)?function(e){const t=Db.exec(e);if(t){const e={style:D_};let n=t[1].toLowerCase();return"c"===n?e.style=A_:"a"===n?e.style=O_:"p"===n?e.style=N_:"e"===n&&(e.style=F_),t[2]&&(e.minimumFractionDigits=e.maximumFractionDigits=parseInt(t[2],10)),e}}(e):e}function Ob(e,t=R_,n=H_){if(null==e)return B_;if(!isFinite(e))return String(e);const i=I_(n),r=Ab(t);return r?function(e,t,n){const i=n.numbers.symbols,{style:r}=t,s=fb(r);if(r===F_)return(void 0!==t.minimumFractionDigits?e.toExponential(t.minimumFractionDigits):e.toExponential()).replace(L_,i.decimal);let o,a=e;s&&(t.value=a,o=db(n,t)),r===N_&&(a*=100,o=i.percentSign);const{minimumFractionDigits:l,maximumFractionDigits:h}=function(e){let{minimumFractionDigits:t,maximumFractionDigits:n,style:i}=e;const r=fb(i);let s;return r&&(s=function(t){let n=Q_,i=Q_;const r=((E_.supplemental.currencyData||{}).fractions||{})[e.currency];return r&&r._digits&&(i=n=parseInt(r._digits,10)),{minimumFractionDigits:n,maximumFractionDigits:i}}()),void 0===t&&(t=r?s.minimumFractionDigits:0),void 0===n&&(n=i===N_?Math.max(t,wb):r?Math.max(t,s.maximumFractionDigits):Math.max(t,yb)),{minimumFractionDigits:t,maximumFractionDigits:n}}(t),u=(a=vb(a,h))<0,c=a.split(L_);let d=c[0],p=mb(c[1]?c[1].replace(_b,B_):B_,l,!0);u&&(d=d.substring(1)),t.minimumIntegerDigits&&(d=mb(d,t.minimumIntegerDigits));let f,m=!1!==t.useGrouping?pb(d,0,d.length,t,n):d;if(p&&(m+=i.decimal+p),s&&"name"===t.currencyDisplay)f=function(t,n){const i=t.numbers.currency;let r=1!==e?i["unitPattern-count-other"]:i["unitPattern-count-one"];return e<0&&(r=r.replace(R_,`-${R_}`)),r}(n);else{const e=t.patterns;f=u?e[1]||"-"+e[0]:e[0]}return f!==R_||u?function(e,t,n){let i=B_;for(let r=0,s=t.length;r<s;r++){let s=t.charAt(r);i+=s===R_?e:s===M_||s===P_?n:s}return i}(m,f,o):m}(e,Object.assign({},i.numbers[r.style||D_],r),i):function(e,t,n){const i={negative:e<0,number:Math.abs(e),format:t};return function(e){let{number:t,format:n}=e;if(n=n.split(V_),e.negative&&n[1])n=n[1],e.hasNegativeFormat=!0;else if(0===t){const t=n[2];n=t||n[0],t&&function(e){return-1===e.indexOf(xb)&&-1===e.indexOf(Cb)}(t)&&(e.constant=t)}else n=n[0];e.format=n}(i),i.constant?i.constant:(function(e){let t=e.format;if(t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("\\")>-1){const n=e.literals=[];e.format=t.replace(Sb,function(e){const t=e.charAt(0).replace("\\",B_),i=e.slice(1).replace(t,B_);return n.push(i),bb})}}(i),function(e,t){const n=e.format;-1!==n.indexOf(P_)&&(e.style=N_,e.symbol=t.numbers.symbols.percentSign,e.number*=100),-1!==n.indexOf(M_)&&(e.style=A_,e.symbol=db(t))}(i,n),function(e){e.hasGroup=e.format.indexOf(z_)>-1,e.hasGroup&&(e.format=e.format.replace(Tb,B_))}(i),function(e){let{number:t,format:n}=e,i=n.indexOf(L_);if(-1!==i){const r=n.lastIndexOf(Cb)-i,s=n.lastIndexOf(xb)-i,o=r>-1,a=s>-1;let l=t.toString().split("e"),h=(l=(l=l[1]?vb(t,Math.abs(l[1])):l[0]).split(L_)[1]||B_).length,u=-1;o||a?o&&r>s?h=r:s>r&&(a&&h>s?h=s:o&&h<r&&(h=r),u=o?r:0):(e.format=n.substring(0,i)+n.substring(i+1),i=-1,h=0),h>-1&&(t=vb(t,h),u>-1&&(t=function(e,t){let n;return n=0===u?kb:new RegExp(`(\\.[0-9]{${u}}[1-9]*)0+$`,"g"),e.replace(n,"$1").replace(Eb,B_)}(t)))}else t=vb(t);e.negative&&-1*t>=0&&(e.negative=!1),e.number=t,e.decimalIndex=i}(i),function(e){const t=e.format;let n=t.indexOf(xb),i=t.indexOf(Cb),r=Ib(n,i,!0),s=Ib(n=t.lastIndexOf(xb),i=t.lastIndexOf(Cb));r===t.length&&(s=r),e.start=r,e.end=s,e.lastZeroIndex=i}(i),function(e,t){let n=e.number;return-1!==e.start&&(n=function(e,t){let n=e;if(t){const e=t.length;for(let i=0;i<e;i++)n=n.replace(bb,t[i])}return n}(n=function(e,t,n){let i=e;if(t===A_||t===N_){i=B_;for(let t=0,r=e.length;t<r;t++){let r=e.charAt(t);i+=r===M_||r===P_?n:r}}return i}(n=function(e,t){const{start:n,end:i,negative:r,format:s,decimalIndex:o,lastZeroIndex:a,hasNegativeFormat:l,hasGroup:h}=e;let u=e.number;const c=u.toString().split(L_),d=s.length,p=c[0],f=c[1]||B_,m=p.length;let g=B_;u=s.substring(0,n),r&&!l&&(u+="-");for(let v=n;v<d;v++){let e=s.charAt(v);if(-1===o){if(i-v<m){u+=p;break}}else if(-1!==a&&a<v&&(g=B_),o-v<=m&&o-v>-1&&(u+=p,v=o),o===v){u+=(f?t.numbers.symbols.decimal:B_)+f,v+=i-o+1;continue}e===Cb?(u+=e,g=e):e===xb&&(u+=g)}return h&&(u=pb(u,n+(r&&!l?1:0),Math.max(i,m+n),t.numbers.decimal,t)),i>=n&&(u+=s.substring(i+1)),u}(e,t),e.style,e.symbol),e.literals)),n}(i,n))}(e,t,i)}function Nb(e){return"number"==typeof e}const Fb=/[eE][\-+]?[0-9]+/,Mb=/\u00A0/g;function Pb(e,t){if(t.length>1){const n=(t[1]||B_).replace(M_,B_).split(R_);if(e.indexOf(n[0])>-1&&e.indexOf(n[1])>-1)return e.replace(n[0],B_).replace(n[1],B_)}}function Rb(e,t=H_,n={}){if(!e&&0!==e)return null;if(Nb(e))return e;const i=I_(t),r=i.numbers.symbols;let s,o=e.toString();if(Fb.test(o))return o=parseFloat(o.replace(r.decimal,L_)),isNaN(o)?null:o;const a=o.indexOf("-");if(a>0)return null;let l=a>-1;const{negative:h,number:u}=function(e,t,n){const i=Ab(n)||{};let r,s=fb(i.style),o=e;const a=i.currency||ib(t,s);if(a){const e=function(e,n,i=!0){const r=tb(t,n,i);if(r){if(!r.displays){const e=[n];for(let t in r)e.push(r[t]);e.sort(nb),r.displays=e}return r.displays}}(0,a,s);if(e)for(let t=0;t<e.length;t++){let n=e[t];if(o.includes(n)){o=o.replace(n,B_),s=!0;break}}if(s){const e=Pb(o,t.numbers.currency.patterns)||Pb(o,t.numbers.accounting.patterns);e&&(r=!0,o=e)}}return{number:o,negative:r}}(o,i,n);return o=u,l=void 0!==h?h:l,(n.style===N_||o.indexOf(r.percentSign)>-1)&&(o=o.replace(r.percentSign,B_),s=!0),o=o.replace("-",B_).replace(Mb," ").split(r.group.replace(Mb," ")).join(B_).replace(r.decimal,L_),o=parseFloat(o),isNaN(o)?o=null:l&&(o*=-1),o&&s&&(o/=100),o}const Vb=/\{(\d+)}/g;function zb(e){const t=arguments;return e.replace(Vb,(e,n)=>t[parseInt(n,10)+1])}const Lb=120,Bb=20,Hb=[2,1,5,3,4],$b={[(-2).toString()]:8,[(-1).toString()]:6,[2..toString()]:6,[1..toString()]:3},jb={numeric:1,"2-digit":2,short:3,long:4,narrow:5},Ub=/[hHmsSzZoOvVxX]/,qb=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(e){return e.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],Wb={e:"c",E:"c",M:"L",Q:"q"},Gb={},Zb={};function Yb(e){return Gb[e]||(Gb[e]=new RegExp(e+"+")),Gb[e]}function Kb(e){const t=[];let n=e.charAt(0),i=n;for(let r=1;r<e.length;r++){let s=e.charAt(r);s===i?n+=s:(t.push(n),n=i=s)}return t.push(n),t}function Qb(e,t){const n=e.length;let i,r,s=-Number.MAX_VALUE;for(let o in t){const a=[];let l=o.replace("v","z"),h=0;for(let t=0;t<n;t++){const n=e[t];let i=(Yb(n[0]).exec(l)||[])[0];if(i){if(l=l.replace(i,B_),i.length!==n.length){let e=Math.max(Math.min(Hb[i.length]-Hb[n.length],2),-2);h-=$b[e]}}else h-=Lb;if(a.push(i),h<s)break}l.length&&(h-=Kb(l).length*Bb),h>s&&(s=h,i=a,r=t[o])}r=r.replace("v","z");for(let o=0;o<n;o++){const t=i[o];if(t&&t!==e[o]){const t=i[o][0];r=r.replace(Yb(t),e[o]),Wb[t]&&(r=r.replace(Yb(Wb[t]),e[o]))}}return r}function Xb(e,t){const n=t.calendar;let i;if(__(e))i=n.patterns[e]?n.patterns[e]:e;else if(e){if(e.pattern)return e.pattern;let r=e.skeleton;r||(e.datetime?i=zb(n.dateTimeFormats[e.datetime],n.timeFormats[e.datetime],n.dateFormats[e.datetime]):e.date?i=n.dateFormats[e.date]:e.time?i=n.timeFormats[e.time]:r=function(e){let t=[];for(let n=0;n<qb.length;n++){let i=qb[n],r=e[i.key];if(r){let n=i.specifier||i.getSpecifier(e);t.push(n.repeat(jb[r]))}}return t.join(B_)}(e)),r&&(i=function(e,t){const n=t.calendar.dateTimeFormats.availableFormats;if(n[e])return n[e];if(Zb[t.name]&&Zb[t.name][e])return Zb[t.name][e];const i=e.search(Ub);let r;if(i>0){const s=e.substr(0,i),o=e.substr(i);r=zb(t.calendar.dateTimeFormats.short,n[o]||Qb(Kb(o),n),n[s]||Qb(Kb(s),n))}else r=Qb(Kb(e),n);return function(e,t,n){Zb[n]||(Zb[n]={}),Zb[n][e]=t}(e,r,t.name),r}(r,t))}return i||(i=n.patterns.d),i}function Jb(e){let t;return e<=3?t="abbreviated":4===e?t="wide":5===e?t="narrow":6===e&&(t="short"),t}function ex(e,t,n,i,r){return U_(e,{type:t,nameType:Jb(n),standAlone:i,lower:r})}function tx(e){return"function"==typeof e}function nx(e){return Boolean(e)&&tx(e.getTime)&&tx(e.getMonth)}const ix={G:"era",y:"year",q:"quarter",Q:"quarter",M:"month",L:"month",d:"day",E:"weekday",c:"weekday",e:"weekday",h:"hour",H:"hour",k:"hour",K:"hour",m:"minute",s:"second",a:"dayperiod",x:"zone",X:"zone",z:"zone",Z:"zone"},rx=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function sx(e,t,n,i){return t<=2?mb(e+1,t):ex(n,"months",t,i)[e]}function ox(e,t,n,i){const r=Math.floor(e.getMonth()/3);return t<3?r+1:ex(n,"quarters",t,i)[r]}function ax(e,t,n){const{shortHours:i,optionalMinutes:r,separator:s,localizedName:o,zZeroOffset:a}=n,l=e.getTimezoneOffset()/60;if(0===l&&a)return"Z";const h=l<=0?"+":"-",u=Math.abs(l).toString().split("."),c=u[1]||0;let d=h+(i?u[0]:mb(u[0],2));return!c&&r||(d+=(s?":":B_)+mb(c,2)),o&&(d=zb(0===l?t.calendar.gmtZeroFormat:t.calendar.gmtFormat,d)),d}function lx(e,t,n,i){return t<3?function(e,t,i){const r=lb(n);let s;return(s=e<r?7-r+e:e-r)+1}(e.getDay()):ex(n,"days",t,i)[e.getDay()]}const hx={};function ux(e,t,n=H_){if(!nx(e))return null==e?B_:e;const i=I_(n);return Xb(t,i).replace(rx,function(t){let n=t.length;return t.includes("'")||t.includes('"')?t.slice(1,n-1):hx[t[0]](e,n,i)})}function cx(e,t,n){const i=e.getTimezoneOffset(),r=new Date(e.getTime()+6e4*(t-n)),s=r.getTimezoneOffset();return new Date(r.getTime()+6e4*(s-i))}hx.d=function(e,t){return mb(e.getDate(),t)},hx.E=function(e,t,n){return ex(n,"days",t)[e.getDay()]},hx.M=function(e,t,n){return sx(e.getMonth(),t,n,!1)},hx.L=function(e,t,n){return sx(e.getMonth(),t,n,!0)},hx.y=function(e,t){let n=e.getFullYear();return 2===t&&(n%=100),mb(n,t)},hx.h=function(e,t){return mb(e.getHours()%12||12,t)},hx.H=function(e,t){return mb(e.getHours(),t)},hx.k=function(e,t){return mb(e.getHours()||24,t)},hx.K=function(e,t){return mb(e.getHours()%12,t)},hx.m=function(e,t){return mb(e.getMinutes(),t)},hx.s=function(e,t){return mb(e.getSeconds(),t)},hx.S=function(e,t){return 0!==e.getMilliseconds()?String(e.getMilliseconds()/1e3).split(".")[1].substr(0,t):mb(B_,t)},hx.a=function(e,t,n){return ex(n,"dayPeriods",t)[e.getHours()<12?"am":"pm"]},hx.z=function(e,t,n){return ax(e,n,{shortHours:t<4,optionalMinutes:t<4,separator:!0,localizedName:!0})},hx.Z=function(e,t,n){return ax(e,n,{separator:t>3,localizedName:4===t,zZeroOffset:5===t})},hx.x=function(e,t,n){return ax(e,n,{optionalMinutes:1===t,separator:3===t||5===t})},hx.X=function(e,t,n){return ax(e,n,{optionalMinutes:1===t,separator:3===t||5===t,zZeroOffset:!0})},hx.G=function(e,t,n){let i=e.getFullYear()>=0?1:0;return ex(n,"eras",t)[i]},hx.e=lx,hx.c=function(e,t,n){return lx(e,t,n,!0)},hx.q=function(e,t,n){return ox(e,t,n,!0)},hx.Q=ox;const dx=/([+|\-]\d{1,2})(:?)(\d{2})?/,px=/^\/Date\((.*?)\)\/$/,fx=/[+-]\d*/,mx={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},gx=/\d+/,vx="{0}",yx=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],wx=["G","g","F","Y","y","M","m","D","d","y","T","t"];function _x(e,t,n){return!(e>=t&&e<=n)}function bx(e,t){let{format:n,idx:i}=t,r=0;for(;n[i]===e;)r++,i++;return r>0&&(i-=1),t.idx=i,r}function xx(e,t){let n=e?mx[e]||new RegExp("^\\d{1,"+e+"}"):gx,i=t.value.substr(t.valueIdx,e).match(n);return i?(t.valueIdx+=(i=i[0]).length,parseInt(i,10)):null}function Cx(e,t,n){let i,r,s,o=0,a=e.length,l=0,h=0;for(;o<a;o++)s=t.value.substr(t.valueIdx,r=(i=e[o]).length),n&&(s=s.toLowerCase()),s===i&&r>l&&(l=r,h=o);return l?(t.valueIdx+=l,h+1):null}function Sx(e){let t=!1;return e.value.charAt(e.valueIdx)===e.format[e.idx]&&(e.valueIdx++,t=!0),t}function kx(e,t,n){const{shortHours:i,noSeparator:r,optionalMinutes:s,localizedName:o,zLiteral:a}=n;if(e.UTC=!0,a&&"Z"===e.value.charAt(e.valueIdx))return e.valueIdx++,!1;if(o&&!Cx(function(e){const{gmtFormat:t,gmtZeroFormat:n}=e;if(!t)throw S_.NoGMTInfo.error();return[t.replace(vx,B_).toLowerCase(),n.replace(vx,B_).toLowerCase()]}(t.calendar),e,!0))return!0;const l=dx.exec(e.value.substr(e.valueIdx,6));if(!l)return!o;const h=l[1],u=l[3],c=parseInt(h,10),d=l[2];let p=parseInt(u,10);return!!(isNaN(c)||!i&&3!==h.length||!s&&isNaN(p)||r&&d)||(isNaN(p)&&(p=null),!!(_x(c,-12,13)||p&&_x(p,0,59))||(e.valueIdx+=l[0].length,e.hoursOffset=c,void(e.minutesOffset=p)))}function Ex(e,t,n){const i=bx(e,t),r=ex(n,"months",i,"L"===e,!0),s=i<3?xx(2,t):Cx(r,t,!0);if(null===s||_x(s,1,12))return!0;t.month=s-1}function Tx(e,t,n){const i=bx(e,t),r=ex(n,"days",i,"c"===e,!0);let s=i<3?xx(1,t):Cx(r,t,!0);if(!s&&0!==s||_x(s,1,7))return!0}const Ix={};function Dx(e,t,n){let i=Xb(t,n).split(B_);const r={format:i,idx:0,value:e,valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},s=i.length;let o=!1;for(;r.idx<s;r.idx++){let e=i[r.idx];if(o)"'"===e&&(o=!1),Sx(r);else if(Ix[e]){if(Ix[e](r,n))return null}else if("'"===e)o=!0,Sx(r);else if(!Sx(r))return null}return r.valueIdx<e.length?null:function(e){let{year:t,month:n,day:i,hours:r,minutes:s,seconds:o,milliseconds:a,pmHour:l,UTC:h,hoursOffset:u,minutesOffset:c}=e;const d=null!==r||null!==s||o||null,p=new Date;let f;return null===t&&null===n&&null===i&&d?(t=p.getFullYear(),n=p.getMonth(),i=p.getDate()):(null===t&&(t=p.getFullYear()),null===i&&(i=1)),l&&r<12&&(r+=12),h?(u&&(r+=-u),c&&(s+=-c*(u<0?-1:1)),f=new Date(Date.UTC(t,n,i,r,s,o,a))):function(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}(f=new Date(t,n,i,r,s,o,a),r),t<100&&f.setFullYear(t),f.getDate()!==i&&void 0===h?null:f}(r)||null}function Ax(e,t,n=H_){if(!e)return null;if(nx(e))return e;let i=String(e).trim(),r=function(e){if(e&&0===e.indexOf("/D")){let t=px.exec(e);if(t){let e=fx.exec((t=t[1]).substring(1));return t=new Date(parseInt(t,10)),e&&(e=function(e){const t="-"===e.substr(0,1)?-1:1;let n=e.substring(1);return t*(60*parseInt(n.substr(0,2),10)+parseInt(n.substring(2),10))}(e[0]),t=cx(t,t.getTimezoneOffset(),0),t=cx(t,0,-1*e)),t}}}(i);if(r)return r;const s=I_(n);let o=t||function(e){const t=[],n=s.calendar.patterns,i=wx.length;for(let r=0;r<i;r++)t.push(n[wx[r]]);return t.concat(yx)}();const a=(o=Array.isArray(o)?o:[o]).length;for(let l=0;l<a;l++)if(r=Dx(i,o[l],s))return r;return r}Ix.d=function(e){bx("d",e);const t=xx(2,e);if(null===t||_x(t,1,31))return!0;null===e.day&&(e.day=t)},Ix.E=function(e,t){if(null===Cx(ex(t,"days",bx("E",e),!1,!0),e,!0))return!0},Ix.M=function(e,t){return Ex("M",e,t)},Ix.L=function(e,t){return Ex("L",e,t)},Ix.y=function(e){const t=bx("y",e);let n=xx(1===t?void 0:t,e);if(null===n)return!0;if(2===t){const e=(new Date).getFullYear();(n=e-e%100+n)>2029&&(n-=100)}e.year=n},Ix.h=function(e){bx("h",e);let t=xx(2,e);if(12===t&&(t=0),null===t||_x(t,0,11))return!0;e.hours=t},Ix.K=function(e){bx("K",e);let t=xx(2,e);if(null===t||_x(t,0,11))return!0;e.hours=t},Ix.a=function(e,t){let n=ex(t,"dayPeriods",bx("a",e),!1,!0);const i=Cx([n.pm],e,!0);if(!i&&!Cx([n.am],e,!0))return!0;e.pmHour=i},Ix.H=function(e){bx("H",e);const t=xx(2,e);if(null===t||_x(t,0,23))return!0;e.hours=t},Ix.k=function(e){bx("k",e);let t=xx(2,e);if(null===t||_x(t,1,24))return!0;e.hours=24===t?0:t},Ix.m=function(e){bx("m",e);const t=xx(2,e);if(null===t||_x(t,0,59))return!0;e.minutes=t},Ix.s=function(e){bx("s",e);const t=xx(2,e);if(null===t||_x(t,0,59))return!0;e.seconds=t},Ix.S=function(e){const t=bx("S",e),n=e.value.substr(e.valueIdx,t);let i=null;if(isNaN(parseInt(n,10))||(i=vb(i=parseFloat("0."+n,10),3),i*=1e3,e.valueIdx+=t),null===i||_x(i,0,999))return!0;e.milliseconds=i},Ix.z=function(e,t){const n=bx("z",e)<4,i=kx(e,t,{shortHours:n,optionalMinutes:n,localizedName:!0});if(i)return i},Ix.Z=function(e,t){const n=bx("Z",e),i=kx(e,t,{noSeparator:n<4,zLiteral:5===n,localizedName:4===n});if(i)return i},Ix.x=function(e,t){const n=bx("x",e),i=kx(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n});if(i)return i},Ix.X=function(e,t){const n=bx("X",e),i=kx(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n,zLiteral:!0});if(i)return i},Ix.G=function(e,t){const n=ex(t,"eras",bx("G",e),!1,!0);if(null===Cx([n[0],n[1]],e,!0))return!0},Ix.e=function(e,t){return Tx("e",e,t)},Ix.c=function(e,t){return Tx("c",e,t)};const Ox={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},Nx="literal";function Fx(e,t){const n=e[e.length-1];n&&n.type===Nx?n.pattern+=t:e.push({type:Nx,pattern:t})}function Mx(e){return"h"===e||"K"===e}function Px(e,t=H_){const n=Xb(e,I_(t)),i=[];let r=rx.lastIndex=0,s=rx.exec(n);for(;s;){let e=s[0];if(r<s.index&&Fx(i,n.substring(r,s.index)),e.startsWith('"')||e.startsWith("'"))Fx(i,e);else{const t=e[0],n=ix[t],r={type:n,pattern:e};"hour"===n&&(r.hour12=Mx(e));const s=Ox[n];if(s){const n=Nb(s.minLength)?s.minLength:s.minLength[t],i=e.length;i>=n&&(r.names={type:s.type,nameType:Jb(i),standAlone:s.standAlone===t})}i.push(r)}r=rx.lastIndex,s=rx.exec(n)}return r<n.length&&Fx(i,n.substring(r)),i}const Rx=/\{(\d+)(:[^\}]+)?\}/g;function Vx(e,t,n){if(t){if(nx(e))return ux(e,t,n);if(Nb(e))return Ob(e,t,n)}return null!=e?e:B_}function zx(e,t,n){return e.replace(Rx,function(e,i,r){return Vx(t[parseInt(i,10)],r?r.substring(1):B_,n)})}const Lx="http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/",Bx={NoCurrency:`Solution: ${Lx}#toc-no-currency`,NoCurrencyDisplay:`Solution: ${Lx}#toc-no-currency-display`,NoCurrencyRegion:`Solution: ${Lx}#toc-no-currency-region`,NoDateFieldNames:`Solution: ${Lx}#toc-no-date-filed-names`,NoFirstDay:`Solution: ${Lx}#toc-no-first-day`,NoGMTInfo:`Solution: ${Lx}#toc-no-gmt-info`,NoLocale:`Solution: ${Lx}#toc-no-locale`,NoValidCurrency:`Solution: ${Lx}#toc-no-valid-currency`,NoWeekData:`Solution: ${Lx}#toc-no-week-data`};function Hx(e){return function(...t){try{return e.apply(null,t)}catch(n){throw n.message=function(e){const t=e.message,n=Bx[Object.keys(Bx).filter(e=>0===t.indexOf(e))[0]];return n?`${t} ${n}`:t}(n),n}}}const $x=Hx(U_),jx=Hx(j_),Ux=Hx(lb),qx=Hx(zx),Wx=Hx(ux),Gx=Hx(Ob),Zx=Hx(cb),Yx=Hx(Ax),Kx=Hx(Rb),Qx=Hx(Px),Xx=Hx(Vx),Jx=Hx(ub),eC=/_/g,tC=(()=>{class e{constructor(){this.changes=new xr}notify(){this.changes.emit()}}return e.ngInjectableDef=ge({factory:function(){return e=De(xs),new nC(e);var e},token:e,providedIn:"root"}),e})(),nC=(()=>(class extends tC{constructor(e){super(),this.localeId=e}get localeId(){return this.locale}set localeId(e){const t=e.replace(eC,"-");t!==this.locale&&(this.locale=t,this.notify())}format(e,...t){return qx(e,t,this.localeId)}toString(e,t,n){return Xx(e,t,n||this.localeId)}formatDate(e,t,n){return Wx(e,t,n||this.localeId)}parseDate(e,t,n){return Yx(e,t,n||this.localeId)}parseNumber(e,t,n){return Kx(e,n||this.localeId,t)}formatNumber(e,t,n){return Gx(e,t,n||this.localeId)}dateFieldName(e,t){return jx(e,t||this.localeId)}dateFormatNames(e,t){return $x(t||this.localeId,e)}splitDateFormat(e,t){return Qx(e,t||this.localeId)}numberSymbols(e){return Zx(e||this.localeId)}firstDay(e){return Ux(e||this.localeId)}weekendRange(e){return Jx(e||this.localeId)}}))(),iC=(()=>(class{}))();class rC extends va{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}class sC extends wa{}const oC=new sC(rC);class aC extends g{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(aC.dispatch,this.delay,new lC(e,this.destination)))}_next(e){this.scheduleMessage(Oc.createNext(e))}_error(e){this.scheduleMessage(Oc.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(Oc.createComplete()),this.unsubscribe()}}class lC{constructor(e,t){this.notification=e,this.destination=t}}class hC extends E{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new uC(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,r=n.length;let s;if(this.closed)throw new C;if(this.isStopped||this.hasError?s=p.EMPTY:(this.observers.push(e),s=new S(this,e)),i&&e.add(e=new aC(e,i)),t)for(let o=0;o<r&&!e.closed;o++)e.next(n[o]);else for(let o=0;o<r&&!e.closed;o++)e.next(n[o].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),s}_getNow(){return(this.scheduler||oC).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length;let s=0;for(;s<r&&!(e-i[s].time<n);)s++;return r>t&&(s=Math.max(s,r-t)),s>0&&i.splice(0,s),i}}class uC{constructor(e,t){this.time=e,this.value=t}}const cC={};class dC{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new pC(e,this.resultSelector))}}class pC extends B{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(cC),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;n++){const t=e[n];this.add(L(this,t,t,n))}}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n,i,r){const s=this.values,o=this.toRespond?s[n]===cC?--this.toRespond:this.toRespond:0;s[n]=t,0===o&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}class fC extends va{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}class mC extends wa{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,i=-1,r=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++i<r&&(e=t.shift()));if(this.active=!1,n){for(;++i<r&&(e=t.shift());)e.unsubscribe();throw n}}}const gC=new mC(fC);class vC{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new yC(e,this.accumulator,this.seed,this.hasSeed))}}class yC extends g{constructor(e,t,n,i){super(e),this.accumulator=t,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}class wC{constructor(e,t){this.predicate=e,this.inclusive=t}call(e,t){return t.subscribe(new _C(e,this.predicate,this.inclusive))}}class _C extends g{constructor(e,t,n){super(e),this.predicate=t,this.inclusive=n,this.index=0}_next(e){const t=this.destination;let n;try{n=this.predicate(e,this.index++)}catch(i){return void t.error(i)}this.nextOrComplete(e,n)}nextOrComplete(e,t){const n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}var bC=function(e){return e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Up=2]="Up",e[e.Down=3]="Down",e[e.PrevView=4]="PrevView",e[e.NextView=5]="NextView",e[e.FirstInView=6]="FirstInView",e[e.LastInView=7]="LastInView",e[e.LowerView=8]="LowerView",e[e.UpperView=9]="UpperView",e}({});const xC={start:null,end:null},CC=new Date(1900,0,1),SC=new Date(2099,11,31),kC=e=>null!=e,EC=(e,t)=>{const n=jw(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},TC=(e,t,n=1)=>{const i=[];for(let r=e;r<t;r+=n)i.push(r);return i},IC=(e,t,n)=>!e||!(t&&t>e||n&&n<e),DC=(e,t)=>!kC(e)||!kC(t)||e<=t,AC=(e,t,n)=>e?t&&e<t?jw(t):n&&e>n?jw(n):e:e,OC=()=>Gw(new Date),NC=e=>{},FC=()=>"undefined"!=typeof window,MC=(e,t)=>e.slice(t).concat(e.slice(0,t)),PC=e=>(t,n="",i={})=>{const r=document.createElement(e);return r.className=n,Object.keys(i).map(e=>r.style[e]=i[e]),"string"==typeof t?r.innerHTML=t||"":(t||[]).forEach(e=>e&&r.appendChild(e)),r},RC=(e,t)=>void 0!==e[t],VC=(e,t)=>e[t]&&null!=e[t].currentValue,zC=(e,t)=>{const{start:n,end:i}=t||xC;return!(!n||!i)&&n<e&&e<i},LC=[[]],BC={[bC.Left]:e=>Jw(e,-1),[bC.Up]:e=>Jw(e,-5),[bC.Right]:e=>Jw(e,1),[bC.Down]:e=>Jw(e,5),[bC.PrevView]:e=>e_(e,-1),[bC.NextView]:e=>e_(e,1),[bC.FirstInView]:e=>n_(e),[bC.LastInView]:e=>i_(e)},HC=(()=>(class{addToDate(e,t){return e_(e,t)}datesList(e,t){return TC(0,t).map(t=>e_(e,t))}data(e){const{cellUID:t,focusedDate:n,isActiveView:i,max:r,min:s,selectedDate:o,selectionRange:a=xC,viewDate:l}=e;if(!l)return LC;const h=TC(0,5),u=n_(l),c=i_(l),d=IC(o,s,r),p=OC();return TC(0,2).map(e=>{const l=Jw(u,5*e);return h.map(e=>{const h=this.normalize(Jw(l,e),s,r);if(!this.isInRange(h,s,r))return null;const f=this.isEqual(h,a.start),m=this.isEqual(h,a.end),g=!f&&!m&&zC(h,a);return{formattedValue:this.value(h),id:`${t}${h.getTime()}`,isFocused:this.isEqual(h,n),isSelected:i&&d&&this.isEqual(h,o),isWeekend:!1,isRangeStart:f,isRangeMid:g,isRangeEnd:m,isRangeSplitEnd:g&&this.isEqual(h,c),isRangeSplitStart:g&&this.isEqual(h,u),isToday:this.isEqual(h,p),title:this.cellTitle(h),value:h}})})}isEqual(e,t){return!(!e||!t)&&r_(e).getFullYear()===r_(t).getFullYear()}isInArray(e,t){if(!t.length)return!1;const n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+99}isInRange(e,t,n){const i=r_(e).getFullYear(),r=!t||r_(t).getFullYear()<=i,s=!n||i<=r_(n).getFullYear();return r&&s}beginningOfPeriod(e){if(!e)return e;const t=r_(n_(e));return Ww(t.getFullYear(),0,1)}isRangeStart(e){return e.getFullYear()%1e3==0}move(e,t){const n=BC[t];return n?n(e):e}cellTitle(e){return r_(e).getFullYear().toString()}navigationTitle(e){return e?n_(e).getFullYear().toString():""}title(e){return e?`${n_(e).getFullYear()} - ${i_(e).getFullYear()}`:""}rowLength(e){return 5}skip(e,t){return s_(t,e)}total(e,t){return s_(e,t)+1}value(e){return e?r_(e).getFullYear().toString():""}viewDate(e,t,n=1){const i=this.total(e,t);return i<n?e_(e,-1*(n-i)):e}normalize(e,t,n){return e<t&&this.isEqual(e,t)?jw(t):e>n&&this.isEqual(e,n)?jw(n):e}}))(),$C=[[]],jC={[bC.Left]:e=>Xw(e,-1),[bC.Up]:e=>Xw(e,-5),[bC.Right]:e=>Xw(e,1),[bC.Down]:e=>Xw(e,5),[bC.PrevView]:e=>Jw(e,-1),[bC.NextView]:e=>Jw(e,1),[bC.FirstInView]:e=>r_(e),[bC.LastInView]:e=>o_(e)},UC=(()=>(class{addToDate(e,t){return Jw(e,t)}datesList(e,t){return TC(0,t).map(t=>Jw(e,t))}data(e){const{cellUID:t,focusedDate:n,isActiveView:i,max:r,min:s,selectedDate:o,selectionRange:a=xC,viewDate:l}=e;if(!l)return $C;const h=TC(0,5),u=r_(l),c=o_(l),d=IC(o,s,r),p=OC();return TC(0,2).map(e=>{const l=Xw(u,5*e);return h.map(e=>{const h=this.normalize(Xw(l,e),s,r);if(!this.isInRange(h,s,r))return null;const f=this.isEqual(h,a.start),m=this.isEqual(h,a.end),g=!f&&!m&&zC(h,a);return{formattedValue:this.value(h),id:`${t}${h.getTime()}`,isFocused:this.isEqual(h,n),isSelected:i&&d&&this.isEqual(h,o),isWeekend:!1,isRangeStart:f,isRangeMid:g,isRangeEnd:m,isRangeSplitEnd:g&&this.isEqual(h,c),isRangeSplitStart:g&&this.isEqual(h,u),isToday:this.isEqual(h,p),title:this.cellTitle(h),value:h}})})}isEqual(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()}isInArray(e,t){if(!t.length)return!1;const n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+9}isInRange(e,t,n){const i=e.getFullYear(),r=!t||t.getFullYear()<=i,s=!n||i<=n.getFullYear();return r&&s}beginningOfPeriod(e){if(!e)return e;const t=r_(e);return Ww(t.getFullYear(),0,1)}isRangeStart(e){return e.getFullYear()%100==0}move(e,t){const n=jC[t];return n?n(e):e}cellTitle(e){return e.getFullYear().toString()}navigationTitle(e){return e?r_(e).getFullYear().toString():""}title(e){return e?`${r_(e).getFullYear()} - ${o_(e).getFullYear()}`:""}rowLength(e){return 5}skip(e,t){return a_(t,e)}total(e,t){return a_(e,t)+1}value(e){return e?e.getFullYear().toString():""}viewDate(e,t,n=1){const i=this.total(e,t);return i<n?Jw(e,-1*(n-i)):e}normalize(e,t,n){return e<t&&this.isEqual(e,t)?jw(t):e>n&&this.isEqual(e,n)?jw(n):e}}))(),qC=[[]],WC={[bC.Left]:e=>qw(e,-1),[bC.Up]:e=>l_(e,-1),[bC.Right]:e=>qw(e,1),[bC.Down]:e=>l_(e,1),[bC.PrevView]:e=>Kw(e,-1),[bC.NextView]:e=>Kw(e,1),[bC.FirstInView]:e=>h_(e),[bC.LastInView]:e=>Yw(e)},GC=(()=>(class{constructor(e){this._intlService=e}addToDate(e,t){return Kw(e,t)}datesList(e,t){return TC(0,t).map(t=>Kw(e,t))}data(e){const{cellUID:t,focusedDate:n,isActiveView:i,max:r,min:s,selectedDate:o,selectionRange:a=xC,viewDate:l}=e;if(!l)return qC;const h=h_(l),u=Gw(h),c=Yw(l),d=Gw(c),p=IC(o,s,r),f=c_(h,this._intlService.firstDay(),-1),m=TC(0,7),g=OC();return TC(0,6).map(e=>{const l=qw(f,7*e);return m.map(e=>{const f=this.normalize(qw(l,e),s,r),m=Gw(f);if(m<u||m>d||f<s||f>r)return null;const v=this.isEqual(f,a.start),y=this.isEqual(f,a.end),w=!v&&!y&&zC(f,a);return{formattedValue:this.value(f),id:`${t}${f.getTime()}`,isFocused:this.isEqual(f,n),isSelected:i&&p&&this.isEqual(f,o),isWeekend:this.isWeekend(f),isRangeStart:v,isRangeMid:w,isRangeEnd:y,isRangeSplitStart:w&&this.isEqual(f,h),isRangeSplitEnd:w&&this.isEqual(f,c),isToday:this.isEqual(f,g),title:this.cellTitle(f),value:f}})})}isEqual(e,t){return!(!e||!t)&&Gw(e).getTime()===Gw(t).getTime()}isInArray(e,t){if(0===t.length)return!1;const n=this.beginningOfPeriod(t[0]),i=this.beginningOfPeriod(Kw(t[t.length-1],1));return n<=e&&e<i}isInRange(e,t,n){const i=Gw(e),r=!t||Gw(t)<=i,s=!n||i<=Gw(n);return r&&s}beginningOfPeriod(e){return e?Ww(e.getFullYear(),e.getMonth(),1):e}isRangeStart(e){return!e.getMonth()}move(e,t){const n=WC[t];return n?n(e):e}cellTitle(e){return this._intlService.formatDate(e,"D")}navigationTitle(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""}title(e){return`${this.wideMonthNames()[e.getMonth()]} ${e.getFullYear()}`}rowLength(e){return 7+(e?1:0)}skip(e,t){return d_(t,e)}total(e,t){return d_(e,t)+1}value(e){return e?e.getDate().toString():""}viewDate(e,t,n=1){const i=this.total(e,t);return i<n?Kw(e,-1*(n-i)):e}isWeekend(e){const{start:t,end:n}=this._intlService.weekendRange(),i=e.getDay();return n<t?i<=n||t<=i:t<=i&&i<=n}abbrMonthNames(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})}normalize(e,t,n){return e<t&&this.isEqual(e,t)?jw(t):e>n&&this.isEqual(e,n)?jw(n):e}wideMonthNames(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})}}))(),ZC=[[]],YC={[bC.Left]:e=>Kw(e,-1),[bC.Up]:e=>Kw(e,(e=>e>4?-5:e<2?-2:-7)(e.getMonth())),[bC.Right]:e=>Kw(e,1),[bC.Down]:e=>Kw(e,(e=>e<7?5:e<10?7:2)(e.getMonth())),[bC.PrevView]:e=>Xw(e,-1),[bC.NextView]:e=>Xw(e,1),[bC.FirstInView]:e=>f_(e),[bC.LastInView]:e=>m_(e)},KC=(()=>(class{constructor(e){this._intlService=e}addToDate(e,t){return Xw(e,t)}datesList(e,t){return TC(0,t).map(t=>Xw(e,t))}data(e){const{cellUID:t,focusedDate:n,isActiveView:i,max:r,min:s,selectedDate:o,selectionRange:a=xC,viewDate:l}=e;if(!l)return ZC;const h=this.abbrMonthNames(),u=IC(o,s,r),c=f_(l),d=m_(l),p=c.getFullYear(),f=TC(0,5),m=OC();return TC(0,3).map(e=>{const l=Kw(c,5*e);return f.map(e=>{const f=this.normalize(Kw(l,e),s,r),g=p<f.getFullYear();if(!this.isInRange(f,s,r)||g)return null;const v=this.isEqual(f,a.start),y=this.isEqual(f,a.end),w=!v&&!y&&zC(f,a);return{formattedValue:h[f.getMonth()],id:`${t}${f.getTime()}`,isFocused:this.isEqual(f,n),isSelected:i&&u&&this.isEqual(f,o),isWeekend:!1,isRangeStart:v,isRangeMid:w,isRangeEnd:y,isRangeSplitEnd:w&&this.isEqual(f,d),isRangeSplitStart:w&&this.isEqual(f,c),isToday:this.isEqual(f,m),title:this.cellTitle(f),value:f}})})}isEqual(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}isInArray(e,t){if(!t.length)return!1;const n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()}isInRange(e,t,n){const i=Ww(e.getFullYear(),e.getMonth(),1),r=!t||Ww(t.getFullYear(),t.getMonth(),1)<=i,s=!n||i<=Ww(n.getFullYear(),n.getMonth(),1);return r&&s}beginningOfPeriod(e){return e?Ww(e.getFullYear(),0,1):e}isRangeStart(e){return e.getFullYear()%10==0}move(e,t){const n=YC[t];return n?n(e):e}cellTitle(e){return`${e.getFullYear()} ${this.value(e)}`}navigationTitle(e){return this.title(e)}title(e){return e?e.getFullYear().toString():""}rowLength(e){return 5}skip(e,t){return g_(t,e)}total(e,t){return g_(e,t)+1}value(e){return e?this.abbrMonthNames()[e.getMonth()]:""}viewDate(e,t,n=1){const i=this.total(e,t);return i<n?Xw(e,-1*(n-i)):e}abbrMonthNames(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})}normalize(e,t,n){return e<t&&this.isEqual(e,t)?jw(t):e>n&&this.isEqual(e,n)?jw(n):e}}))();var QC=function(e){return e[e.month=0]="month",e[e.year=1]="year",e[e.decade=2]="decade",e[e.century=3]="century",e}({});const XC={[QC.month]:GC,[QC.year]:KC,[QC.decade]:UC,[QC.century]:HC},JC=(()=>(class{constructor(e){this.injector=e,this.viewChanged=new xr,this.bottom=QC.month,this.top=QC.century}configure(e,t){this.bottom=e,this.top=t}service(e){const t=XC[e];return t?this.injector.get(t):null}moveDown(e){this.move(e,-1)}moveUp(e){this.move(e,1)}moveToBottom(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})}canMoveDown(e){return this.bottom<e}canMoveUp(e){return e<this.top}clamp(e){return e<this.bottom?this.bottom:e>this.top?this.top:e}move(e,t){const n=this.clamp(((e,t)=>{const n=QC[QC[e+t]];return void 0!==n?n:e})(e,t));n!==e&&this.viewChanged.emit({view:n})}}))(),eS=PC("div"),tS=PC("ul"),nS=PC("li"),iS=PC("td"),rS=PC("th"),sS=PC("tr"),oS=PC("tbody"),aS=PC("thead"),lS=PC("table"),hS=()=>eS('\n            <span class="k-calendar-title">March 2017</span>\n            <span class="k-calendar-today">TODAY</span>\n        ',"k-calendar-header"),uS=()=>lS([aS([sS([rS("MO")])])],"k-calendar-weekdays"),cS=(e,t)=>new Array(e).fill("1").map(t),dS=e=>eS(e,"k-content k-scrollable"),pS=(()=>{let e;return()=>Ea?(e||(e=eS([dS([tS([nS("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),e):null})(),fS=({cells:e,rows:t},n,i)=>{let r;return()=>Ea?(r||(r=((e,t,n)=>eS([hS(),n?uS():null,dS([e,e])],t,{left:"-10000px",position:"absolute"}))(((e,t=1)=>lS([oS([sS([rS("1")])].concat(cS(e,()=>sS(cS(t,e=>iS(`<span class="k-link">${e}</span>`))))))]))(t,e),n,i)),r):null},mS=e=>e.querySelector(".k-scrollable"),gS=e=>(mS(e).classList.add("k-scrollable-horizontal"),e),vS=fS({cells:7,rows:6},"k-calendar-view k-calendar-monthview",!0),yS=fS({cells:5,rows:3},"k-calendar-view k-calendar-yearview",!1),wS=fS({cells:5,rows:2},"k-calendar-view k-calendar-decadeview",!1),_S=e=>parseFloat(window.getComputedStyle(e).height)||e.offsetHeight,bS=e=>{const t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth},xS=e=>e.querySelector("tbody"),CS=(()=>(class{ensureHeights(){void 0===this.calendarHeight&&this.calculateHeights()}calculateHeights(e){Ea()&&(this.hostContainer=e,this.batch(vS(),e=>{const t=xS(e);this.calendarHeight=_S(e),this.monthViewHeight=_S(t),this.headerHeight=_S(t.children[0]),this.scrollableContentHeight=_S(mS(e))}),this.batch((()=>gS(vS()))(),e=>{const t=xS(e);this.calendarWidth=bS(e),this.monthViewWidth=bS(t),this.scrollableContentWidth=bS(mS(e))}),this.batch(yS(),e=>{this.yearViewHeight=_S(xS(e)),this.scrollableYearContentHeight=_S(mS(e))}),this.batch((()=>gS(yS()))(),e=>{this.yearViewWidth=bS(xS(e))}),this.batch(wS(),e=>{this.decadeViewHeight=_S(xS(e)),this.centuryViewHeight=this.decadeViewHeight}),this.batch((()=>gS(wS()))(),e=>{this.decadeViewWidth=bS(xS(e)),this.centuryViewWidth=this.decadeViewWidth}),this.batch(pS(),e=>{this.navigationItemHeight=_S(e.querySelector("li"))}))}viewHeight(e){return this.viewDimension(e,"height")}viewWidth(e){return this.viewDimension(e,"width")}viewDimension(e,t){const n="height"===t?"ViewHeight":"ViewWidth";switch(e){case QC.month:return this[`month${n}`];case QC.year:return this[`year${n}`];case QC.decade:return this[`decade${n}`];case QC.century:return this[`century${n}`];default:return 1}}batch(e,t){const n=this.hostContainer||document.body,i=n.appendChild(e);t(i),n.removeChild(i)}}))(),SS=(e,t,n)=>[...e.slice(0,t+1),...e.slice(t+1).map(e=>e+n)];class kS{constructor(e=0,t,n){this.total=e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];let i=0;for(let r=0;r<e;r++)this.offsets.push(i),i+=t,this.heights.push(t)}height(e){return this.heights[e]}expandDetail(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)}collapseDetail(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)}index(e){if(e<0)return;const t=this.offsets.reduce((t,n,i)=>void 0!==t?t:n===e?i:n>e?i-1:void 0,void 0);return void 0===t?this.total-1:t}offset(e){return this.offsets[e]}totalHeight(){return this.heights.reduce((e,t)=>e+t,0)}updateRowHeight(e,t){this.heights[e]+=t,this.offsets=SS(this.offsets,e,t)}}const ES=e=>Math.max(e,0);class TS{constructor(e){this.offset=e}}class IS{constructor(e){this.skip=e}}class DS{constructor(e){this.scrollObservable=e,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}create(e,t,n,i,r=0,s=0,o="vertical"){this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=i,this.lastScroll=0,this.topOffset=r,this.bottomOffset=s,this.direction=o;const a=new hC(2),l=this.rowsForHeight(r),h=ES(t-l);return a.next(new TS(this.rowOffset(h))),l&&a.next(new IS(h)),this.subscription=_.create(e=>{this.unsubscribe(),this.scrollSubscription=this.scrollObservable.subscribe(t=>this.onScroll(t,e))}).subscribe(e=>a.next(e)),a}destroy(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()}onScroll({scrollLeft:e,scrollTop:t,offsetHeight:n,offsetWidth:i},r){const s="vertical"===this.direction?t:e,o="vertical"===this.direction?n:i;if(this.lastScroll===s)return;const a=this.lastScroll>=s;this.lastScroll=s;const l=this.rowHeightService.index(ES(s-this.topOffset)),h=this.rowHeightService.index(ES(s+o-this.bottomOffset));if(!a&&h>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=l,r.next(new TS(this.rowOffset(l))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),r.next(new IS(this.firstLoaded))),a&&l<=this.firstLoaded){const e=Math.floor(.3*this.take);this.firstLoaded=ES(l-e),r.next(new TS(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),r.next(new IS(this.firstLoaded))}}rowOffset(e){return this.rowHeightService.offset(e)+this.topOffset}rowsForHeight(e){return Math.ceil(e/this.rowHeightService.height(0))}unsubscribe(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=null)}}const AS=new Ae("dateinputs-scroll-service-factory");function OS(e){return new DS(e)}var NS=function(e){return e[e.Backward=0]="Backward",e[e.Forward=1]="Forward",e}({});const FS={[NS.Forward]:e=>t=>t+e,[NS.Backward]:e=>t=>t-e},MS={[NS.Forward]:e=>t=>Math.min(t,e),[NS.Backward]:e=>t=>Math.max(t,e)},PS={[NS.Forward]:e=>t=>t<e,[NS.Backward]:e=>t=>t>e},RS=(()=>(class{constructor(e,t,n,i){this.container=t,this.renderer=n,this.zone=i,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new xr,this.pageChange=new xr,this.scrollChange=new xr,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new E,this.scroller=e(this.dispatcher)}get totalVertexLength(){const e=`${this.totalSize}px`;return"vertical"===this.direction?{height:e}:{width:e}}get containerOffsetSize(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")}get containerScrollSize(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")}get containerScrollPosition(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")}get wrapperClasses(){return!0}get horizontalClass(){return"horizontal"===this.direction}ngOnChanges(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)}ngOnInit(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{this.containerScrollSubscription=this.scroll$().pipe(H(e=>e.target)).subscribe(e=>{this.dispatcher.next(e),this.emitActiveIndex()})})}ngOnDestroy(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()}getContainerProperty(e){return this.container.nativeElement[e]}activeIndex(){return this.itemIndex(Math.ceil(this.containerScrollPosition))}itemIndex(e){return this.rowHeightService.index(e)}itemOffset(e){return this.rowHeightService.offset(e)}isIndexVisible(e){if(!this.rowHeightService)return!1;const t=this.containerScrollPosition,n=t+this.containerOffsetSize,i=this.rowHeightService.offset(e),r=i+this.rowHeightService.height(e);return i>=t&&r<=n}isListScrolled(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)}scrollTo(e){this.renderer.setProperty(this.container.nativeElement,"vertical"===this.direction?"scrollTop":"scrollLeft",e)}scrollToIndex(e){this.zone.runOutsideAngular(()=>{this.resolvedPromise.then(()=>{this.scrollTo(this.rowHeightService.offset(e))})})}scrollToBottom(){this.scrollTo(this.totalSize)}animateToIndex(e){this.animationSubscription&&this.animationSubscription.unsubscribe();const t=this.rowHeightService.offset(e),n=this.getContainerScrollDirection(t),{start:i,end:r}=this.scrollRange(t,n);if(i===r)return;const s=this.scrollStep(i,r),o=FS[n](s),a=MS[n](r),l=PS[n](o(r));this.zone.runOutsideAngular(()=>{this.animationSubscription=function(...e){let t=null,n=null;return I(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&h(e[0])&&(e=e[0]),U(e,n).lift(new dC(t))}(oc(i),ac(0,gC)).pipe(H(e=>e[0]),function(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(t){return t.lift(new vC(e,void 0,n))}}(o),function(e,t=!1){return n=>n.lift(new wC(e,t))}(l),H(a)).subscribe(e=>this.scrollTo(e))})}scrollRange(e,t){const n=this.containerScrollPosition;if(parseInt(e,10)===parseInt(n,10))return{start:e,end:e};const i=this.containerMaxScroll(),r=t===NS.Backward?1:-1,s=((e,t,n)=>Math.min(Math.abs(t-e),n))(n,e,this.maxScrollDifference),o=Math.min(e,i);return{start:Math.min(Math.max(o+r*s,0),i),end:o}}scrollStep(e,t){return Math.abs(t-e)/(this.scrollDuration/17)}scroll$(){return Ea()?ta(this.container.nativeElement,"scroll"):ru}initServices(){this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe(e=>{e instanceof IS?this.pageChange.emit(e):this.scrollChange.emit(e)})}createRowHeightService(){return new kS(this.total,"vertical"===this.direction?this.itemHeight:this.itemWidth,0)}emitActiveIndex(){const e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))}containerMaxScroll(){return this.containerScrollSize-this.containerOffsetSize}getContainerScrollDirection(e){return e<this.containerScrollPosition?NS.Backward:NS.Forward}}))(),VS=(e,t,n)=>{for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},zS=(e,t)=>{for(;e&&!t(e);)e=e.parentNode;return e},LS=(()=>(class{constructor(e,t,n,i,r){this.bus=e,this.dom=t,this.intl=n,this.cdr=i,this.renderer=r,this.min=new Date(CC),this.max=new Date(SC),this.focusedDate=new Date,this.valueChange=new xr,this.pageChange=new xr,this.dates=[],this.take=30,this.indexToScroll=-1}get getComponentClass(){return!0}ngOnInit(){this.dom.ensureHeights();const e=this.dom.calendarHeight;this.itemHeight=this.dom.navigationItemHeight,this.maxViewHeight=this.dom.monthViewHeight,this.topOffset=(e-this.itemHeight)/2,this.bottomOffset=e-this.itemHeight,this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}ngOnChanges(e){if(this.service=this.bus.service(this.activeView),!this.service)return;this.activeViewValue=QC[this.activeView];const t=AC(this.focusedDate,this.min,this.max),n=this.service.total(this.min,this.max),i=this.total&&this.total!==n;this.skip=this.service.skip(t,this.min),this.total=n,!i&&this.service.isInArray(t,this.dates)||(this.dates=this.service.datesList(t,this.getTake(this.skip))),(e.focusedDate||i)&&(this.indexToScroll=this.service.skip(this.focusedDate,this.min))}ngOnDestroy(){this.intlSubscription&&this.intlSubscription.unsubscribe()}ngAfterViewInit(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}ngAfterViewChecked(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}onPageChange({skip:e}){this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()}scrollChange({offset:e}){const t=this.list.nativeElement,n=`translateY(${e}px)`;this.renderer.setStyle(t,"transform",n),this.renderer.setStyle(t,"-ms-transform",n)}handleDateChange(e){const t=VS(e.target,e=>e.hasAttribute("data-date-index"),this.list.nativeElement);if(t){const e=parseInt(t.getAttribute("data-date-index"),10);this.valueChange.emit(jw(this.dates[e]))}}getTake(e){return Math.min(this.total-e,this.take)}intlChange(){this.activeView===QC.month&&this.cdr.markForCheck()}}))(),BS=(()=>(class{constructor(e,t,n,i,r){this.bus=e,this.cdr=t,this.intl=n,this.dom=i,this.renderer=r,this.isActive=!0,this.min=new Date(CC),this.max=new Date(SC),this.activeDateChange=new xr,this.valueChange=new xr,this.pageChange=new xr,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}get weekNumber(){return this.showWeekNumbers&&this.isMonthView()}set weekNumber(e){this.showWeekNumbers=e}get getComponentClass(){return!0}get getComponentMonthClass(){return this.activeView===QC.month}get getComponentYearClass(){return this.activeView===QC.year}get getComponentDecadeClass(){return this.activeView===QC.decade}get getComponentCenturyClass(){return this.activeView===QC.century}ngOnInit(){this.weekNames=this.getWeekNames(),this.bottomOffset=this.getBottomOffset(),this.viewOffset=-1*this.dom.headerHeight,this.viewHeight=this.dom.viewHeight(this.activeView),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}ngOnChanges(e){if(this.service=this.bus.service(this.activeView),!this.service)return;this.cols=new Array(this.service.rowLength(this.weekNumber)).fill(""),this.colWidth=Math.round(100/this.cols.length),this.weekNames=RC(e,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames;const t=RC(e,"activeView"),n=this.focusedDate,i=AC(this.service.viewDate(n,this.max,this.minViewsToRender),this.min,this.max),r=this.service.total(this.min,this.max),s=this.total&&this.total!==r||!this.service.isInArray(n,this.dates);this.skip=this.service.skip(i,this.min),this.total=r,this.animateToIndex=!t,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),s&&(this.dates=this.service.datesList(i,this.getTake(this.skip))),((e,t)=>e&&t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())(this.activeDate,n)||(this.activeDate=jw(n));const o=RC(e,"focusedDate")||t;(s||o||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(n,this.min))}ngOnDestroy(){this.intlSubscription&&this.intlSubscription.unsubscribe()}ngAfterViewInit(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}ngAfterViewChecked(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)}onPageChange({skip:e}){this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()}scrollChange({offset:e}){const t=this.list.nativeElement,n=`translateY(${e}px)`;this.renderer.setStyle(t,"transform",n),this.renderer.setStyle(t,"-ms-transform",n)}setActiveDate(e){const t=this.service.addToDate(this.min,e);Zw(this.activeDate,t)||(this.activeDate=t,this.activeDateChange.emit(t),this.cdr.detectChanges())}handleDateChange(e){this.valueChange.emit(e)}isMonthView(){return this.activeView===QC.month}isScrolled(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))}getBottomOffset(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)}getScrollableHeight(){return this.activeView===QC.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight}getTake(e){return Math.min(this.total-e,this.take)}getWeekNames(){const e=MC(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e}intlChange(){this.weekNames=this.getWeekNames(),this.isMonthView()&&this.cdr.markForCheck()}}))(),HS={33:bC.PrevView,34:bC.NextView,35:bC.LastInView,36:bC.FirstInView,37:bC.Left,38:bC.Up,39:bC.Right,40:bC.Down,"meta+38":bC.UpperView,"meta+40":bC.LowerView},$S=(()=>(class{constructor(e){this.bus=e}action(e){return HS[`${e.ctrlKey||e.metaKey?"meta+":""}${e.keyCode}`]}move(e,t,n){const i=this.bus.service(n);return i?t===bC.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n),e):t===bC.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n),e):i.move(e,t):e}}))(),jS=(()=>(class{constructor(e,t){this.dom=e,this.zone=t}configure(e){const t=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=(e=>t=>Math.floor(t/e))(t),this.powerByMagnitude=(e=>t=>t*e)(t)}sync(e,t){this.unsubscribe(),e&&t&&(this.navigator=e,this.view=t,this.zone.runOutsideAngular(()=>{let n,i;this.navSubscription=e.scroll$().subscribe(e=>{i?i=!1:(n=!0,this.scrollSiblingOf(e.target))}),this.viewSubscription=t.scroll$().subscribe(e=>{n?n=!1:(i=!0,this.scrollSiblingOf(e.target))})}))}scrollSiblingOf(e){const t=this.siblingComponent(e),n=this.calculateScroll(t,e.scrollTop);t.scrollTo(n)}siblingComponent(e){return this.navigator.container.nativeElement===e?this.view:this.navigator}calculateScroll(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)}destroy(){this.unsubscribe()}unsubscribe(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()}}))();class US{constructor(){this.onFocus=new xr,this.onBlur=new xr,this.sameDateSelected=new xr}}const qS=e=>t=>e&&t.value&&t.value<e?{minError:{minValue:e,value:t.value}}:null,WS=e=>t=>e&&t.value&&t.value>e?{maxError:{maxValue:e,value:t.value}}:null,GS=e=>e&&(!e.touched||e.control&&"blur"===e.control.updateOn),ZS=e=>e.preventDefault(),YS=e=>e?e.virtualization:null,KS=(()=>(class{constructor(e,t,n,i,r,s,o,a,l,h){this.bus=e,this.dom=t,this.element=n,this.navigator=i,this.renderer=r,this.cdr=s,this.ngZone=o,this.injector=a,this.scrollSyncService=l,this.pickerService=h,this.id=Aa(),this.rangeValidation=!1,this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=QC[QC.month],this.bottomView=QC[QC.month],this.topView=QC[QC.century],this.weekNumber=!1,this.activeViewChange=new xr,this.activeViewDateChange=new xr,this.valueChange=new xr,this.isActive=!1,this.cellUID=Aa(),this._min=new Date(CC),this._max=new Date(SC),this._focusedDate=OC(),this.propagateChange=NC,this.propagateTouched=NC,this.minValidateFn=NC,this.maxValidateFn=NC,this.syncNavigation=!0,this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,this.setClasses(n.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}set focusedDate(e){this._focusedDate=e||OC()}get focusedDate(){return this._focusedDate}set min(e){this._min=e||new Date(CC)}get min(){return this._min}set max(e){this._max=e||new Date(SC)}get max(){return this._max}get value(){return this._value}set value(e){this.verifyValue(e),this._value=jw(e)}set tabIndex(e){this.tabindex=e}get tabIndex(){return this.tabindex}get activeViewEnum(){const e=QC[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e}get bottomViewEnum(){return QC[this.bottomView]}get topViewEnum(){return QC[this.topView]}get widgetId(){return this.id}get widgetRole(){return"grid"}get calendarTabIndex(){return this.disabled?void 0:this.tabIndex}get ariaDisabled(){return this.disabled}get ariaActivedescendant(){return this.cellUID+this.focusedDate.getTime()}ngOnInit(){this.dom.calculateHeights(this.element.nativeElement),this.scrollSyncService.configure(this.activeViewEnum),this.viewChangeSubscription=this.bus.viewChanged.subscribe(({view:e})=>{this.activeView=QC[e],this.emitEvent(this.activeViewChange,this.activeView),this.scrollSyncService.configure(e),this.detectChanges()}),this.control=this.injector.get(fu,null),this.element&&this.ngZone.runOutsideAngular(()=>{this.bindEvents()})}ngOnChanges(e){this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum);const t=VC(e,"value")&&!VC(e,"focusedDate"),n=AC(jw(t?this.value:this.focusedDate),this.min,this.max);this.focusedDate=Zw(this.focusedDate,n)?this.focusedDate:n,e.navigation&&(this.syncNavigation=!0),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?qS(this.min):NC,this.maxValidateFn=this.rangeValidation?WS(this.max):NC)}ngAfterViewChecked(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(YS(this.navigationView),YS(this.monthView)))}ngOnDestroy(){this.scrollSyncService.destroy(),this.viewChangeSubscription.unsubscribe(),this.domEvents.forEach(e=>e()),this.pickerService&&(this.pickerService.calendar=null),this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.destroyed=!0}focus(){this.element&&this.element.nativeElement.focus()}blur(){this.element&&this.element.nativeElement.blur()}containsElement(e){return Boolean(zS(e,e=>e===this.element.nativeElement))}handleNavigation(e){this.disabled||(this.focusedDate=AC(jw(e)||this.focusedDate,this.min,this.max),this.detectChanges())}onPageChange(){Zr.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=q(this.resolvedPromise).subscribe(()=>{this.detectChanges()}))}handleDateChange(e){const t=this.bus.canMoveDown(this.activeViewEnum),n=!t&&Zw(e,this.value);this.focusedDate=jw(e)||this.focusedDate,this.disabled||(n?this.emitSameDate():t?this.bus.moveDown(this.activeViewEnum):this.ngZone.run(()=>{this.value=jw(e),this.propagateChange(jw(e)),this.valueChange.emit(jw(e)),this.cdr.markForCheck()}))}writeValue(e){this.verifyValue(e),this.focusedDate=AC(jw(e)||this.focusedDate,this.min,this.max),this.value=jw(e),this.cdr.markForCheck()}registerOnChange(e){this.propagateChange=e}registerOnTouched(e){this.propagateTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}validate(e){return this.minValidateFn(e)||this.maxValidateFn(e)}activeCellTemplate(){switch(this.activeViewEnum){case QC.month:return this.monthCellTemplate||this.cellTemplate;case QC.year:return this.yearCellTemplate;case QC.decade:return this.decadeCellTemplate;case QC.century:return this.centuryCellTemplate;default:return null}}emitEvent(e,t){Da(e)&&this.ngZone.run(()=>{e.emit(t)})}setClasses(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-infinite")}verifyChanges(){if(ot()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}}verifyValue(e){if(ot()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json for possible resolution.")}bindEvents(){const e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"blur",this.handleBlur.bind(this)),this.renderer.listen(e,"focus",this.handleFocus.bind(this)),this.renderer.listen(e,"mousedown",ZS),this.renderer.listen(e,"click",this.handleClick.bind(this)),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)))}emitBlur(e){this.pickerService&&this.pickerService.onBlur.emit(e)}emitFocus(){this.pickerService&&this.pickerService.onFocus.emit()}handleBlur(e){this.isActive=!1,GS(this.control)?this.ngZone.run(()=>{this.propagateTouched(),this.emitBlur(e)}):(this.emitBlur(e),this.detectChanges())}handleFocus(){this.isActive=!0,Zr.isInAngularZone()||this.detectChanges(),this.emitFocus()}handleClick(){this.isActive||(this.monthView.isScrolled()&&(this.focusedDate=jw(this.focusedDate),this.detectChanges()),this.focus())}handleKeydown(e){const t=AC(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);Zw(this.focusedDate,t)||(this.focusedDate=t,this.detectChanges(),e.preventDefault()),13===e.keyCode&&this.handleDateChange(this.focusedDate)}detectChanges(){this.destroyed||this.cdr.detectChanges()}emitSameDate(){this.pickerService&&this.pickerService.sameDateSelected.emit()}}))();var QS=function(e){return e[e.Up=0]="Up",e[e.Down=1]="Down",e[e.None=2]="None",e}({});const XS=/year|month|<day>/,JS=/hour|minute|second|millisecond/,ek=/d|M|H|h|m|s/,tk=e=>e?e.getTime():null,nk=e=>new Array(Math.max(e,0)).fill("0").join(""),ik=e=>!e||e.firstChange,rk=e=>e.replace(/^0*/,"");class sk{constructor(){this.symbols=""}}class ok{constructor(e,t,n,i){if(this.intl=e,this.formatPlaceholder=t,this.format=n,this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.monthNames=null,this.typedMonthPart="",this.value=Gw(new Date),this.knownParts="adHhmMsEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",y:"y"},this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),i)this.value=jw(i);else{this.value=Gw(new Date);const e=this.dateFormatString(this.value,this.format).symbols;for(let t=0;t<e.length;t++)this.setExisting(e[t],!1)}}hasValue(){return this.intl.splitDateFormat(this.format).reduce((e,t)=>e||"literal"!==t.type&&"dayperiod"!==t.type&&this.getExisting(t.pattern[0]),!1)}getDateObject(){for(let e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return jw(this.value)}getTextAndFormat(){return this.merge(this.intl.formatDate(this.value,this.format),this.dateFormatString(this.value,this.format))}getExisting(e){switch(e){case"y":return this.year;case"M":case"L":return this.month;case"d":return this.date;case"E":return this.date&&this.month&&this.year;case"h":case"H":return this.hours;case"m":return this.minutes;case"s":return this.seconds;default:return!0}}setExisting(e,t){switch(e){case"y":this.year=t,!1===t&&this.value.setFullYear(2e3);break;case"M":this.month=t,!1===t&&this.value.setMonth(0);break;case"d":this.date=t;break;case"h":case"H":this.hours=t;break;case"m":this.minutes=t;break;case"s":this.seconds=t;break;default:return}}modifyPart(e,t){let n=jw(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=Kw(this.value,t);break;case"d":case"E":n.setDate(n.getDate()+t);break;case"h":case"H":n.setHours(n.getHours()+t);break;case"m":n.setMinutes(n.getMinutes()+t);break;case"s":n.setSeconds(n.getSeconds()+t);break;case"a":n.setHours(n.getHours()+12*t)}n.getFullYear()>0&&(this.setExisting(e,!0),this.value=n)}parsePart(e,t,n){if(!t)return this.resetLeadingZero(),this.setExisting(e,!1),{value:null,switchToNext:!1};let i=this.intl.formatDate(this.value,this.format),r=this.dateFormatString(this.value,this.format),s=r.symbols,o=!1,a="",l="",h="";for(let g=0;g<i.length;g++)s[g]===e?(l+=this.getExisting(e)?i[g]:"0",o=!0):o?h+=i[g]:a+=i[g];let u=l.length-3,c=null;const d=this.matchMonth(t),p=this.matchDayPeriod(t,e),f="0"===t,m=(this.leadingZero||{})[e]||0;f?0!==parseInt(n?t:l+t,10)||this.isAbbrMonth(r.partMap,e)||this.incrementLeadingZero(e):this.resetLeadingZero();for(let g=Math.max(0,u);g<=l.length;g++){let i=n?t:l.substring(g)+t,s=parseInt(i,10);if(!(c=this.intl.parseDate(a+i+h,this.format))&&!isNaN(s)&&!isNaN(parseInt(t,10))){if("M"===e&&!d){const e=s-1;e>-1&&e<12&&((c=jw(this.value)).setMonth(e),c.getMonth()!==e&&(c=Yw(Kw(c,-1))))}"y"===e&&(c=Ww(parseInt(i,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),this.date&&c.getDate()!==this.value.getDate()&&(c=Yw(Kw(c,-1))))}if(c){const n=this.partPattern(r.partMap,e).pattern,s=this.intl.parseDate(`${a}${this.peek(i,n)}${h}`,this.format),o=this.patternLength(n)||n.length,l=m+(rk(i)||t).length>=o,u=null===s||l;return this.value=c,this.setExisting(e,!0),{value:this.value,switchToNext:u}}}return d&&(c=this.intl.parseDate(a+d+h,this.format))?(this.value=c,this.setExisting(e,!0),{value:this.value,switchToNext:!1}):p&&(c=this.intl.parseDate(a+p+h,this.format))?(this.value=c,{value:this.value,switchToNext:!0}):(f&&this.setExisting(e,!1),{value:null,switchToNext:!1})}resetLeadingZero(){const e=null!==this.leadingZero;return this.setLeadingZero(null),e}setLeadingZero(e){this.leadingZero=e}incrementLeadingZero(e){const t=this.leadingZero||{};t[e]=(t[e]||0)+1,this.leadingZero=t}isAbbrMonth(e,t){const n=this.partPattern(e,t);return"month"===n.type&&n.names}partPattern(e,t){return e.filter(e=>-1!==e.pattern.indexOf(t))[0]}peek(e,t){const n=rk(e)+"0";return nk(t.length-n.length)+n}matchMonth(e){if(this.typedMonthPart+=e.toLowerCase(),!this.monthNames)return"";for(;this.typedMonthPart.length>0;){for(let t=0;t<this.monthNames.length;t++)if(0===this.monthNames[t].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[t];const e=parseInt(this.typedMonthPart,10);if(e>=1&&e<=12&&e.toString()===this.typedMonthPart)return this.monthNames[e-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""}matchDayPeriod(e,t){const n=String(e).toLowerCase();if("a"===t&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(n))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(n))return this.dayPeriods.pm}return""}allFormatedMonths(){const e=this.intl.splitDateFormat(this.format);for(let t=0;t<e.length;t++)if("month"===e[t].type&&e[t].names)return this.intl.dateFormatNames(e[t].names);return null}allDayPeriods(){const e=this.intl.splitDateFormat(this.format);for(let t=0;t<e.length;t++)if("dayperiod"===e[t].type&&e[t].names)return this.intl.dateFormatNames(e[t].names);return null}patternLength(e){return"y"===e[0]?4:ek.test(e)?2:0}dateFormatString(e,t){const n=this.intl.splitDateFormat(t),i=[],r=[];for(let o=0;o<n.length;o++){let t=this.intl.formatDate(e,{pattern:n[o].pattern}).length;for(;t>0;)i.push(this.symbols[n[o].pattern[0]]||"_"),r.push(n[o]),t--}const s=new sk;return s.symbols=i.join(""),s.partMap=r,s}merge(e,t){let n="",i="",r=t.symbols;for(let s=r.length-1;s>=0;s--)if(-1===this.knownParts.indexOf(r[s])||this.getExisting(r[s]))n=e[s]+n,i=r[s]+i;else{const e=r[s];for(;s>=0&&e===r[s];)s--;for(s++,n=this.leadingZero&&this.leadingZero[e]?"0"+n:this.dateFieldName(t.partMap[s])+n;i.length<n.length;)i=r[s]+i}return[n,i]}dateFieldName(e){const t=this.formatPlaceholder||"wide";return t[e.type]?t[e.type]:"formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t}))}}const ak=(()=>(class{constructor(e,t,n,i,r,s,o,a){this.cdr=e,this.intl=t,this.renderer=n,this.element=i,this.ngZone=r,this.injector=s,this.localization=o,this.pickerService=a,this.focusableId=`k-${Aa()}`,this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.format="d",this.placeholder=null,this.rangeValidation=!0,this.autoCorrect=!1,this.spinners=!1,this.isPopupOpen=!1,this.hasPopup=!1,this.valueChange=new xr,this.valueUpdate=new xr,this.onFocus=new xr,this.onBlur=new xr,this.arrow=QS,this.arrowDirection=QS.None,this.formatSections={date:!1,time:!1},this.hasMousedown=!1,this.currentValue="",this.currentFormat="",this.backspace=!1,this.resetSegmentValue=!0,this.resolvedPromise=Promise.resolve(null),this.minValidateFn=NC,this.maxValidateFn=NC,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.ngChange=(e=>{}),this.ngTouched=(()=>{}),this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService&&(this.pickerService.input=this)}set tabIndex(e){this.tabindex=e}get tabIndex(){return this.tabindex}set max(e){this._max=e,this.ariaValueMax=tk(e)}get max(){return this._max}set min(e){this._min=e,this.ariaValueMin=tk(e)}get min(){return this._min}set value(e){this.verifyValue(e),this.autoCorrect&&!IC(e,this.min,this.max)||(this._value=jw(e))}get value(){return this._value}get wrapperClass(){return!0}get disabledClass(){return this.disabled}get inputElement(){return this.dateInput?this.dateInput.nativeElement:null}get inputValue(){return(this.inputElement||{}).value||""}get isActive(){return this._active}set isActive(e){if(this._active=e,!this.wrap)return;const t=this.wrap.nativeElement;e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused")}isEmpty(){return!this.currentValue||!String(this.currentValue).trim()}containsElement(e){return Boolean(zS(e,e=>e===this.element.nativeElement))}ngOnChanges(e){this.verifyRange(),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?qS(this.min):NC,this.maxValidateFn=this.rangeValidation?WS(this.max):NC),!this.hasChanged(e,"min")&&!this.hasChanged(e,"max")||e.value||ik(e.min)&&ik(e.max)||this.resolvedPromise.then(()=>this.ngChange(jw(this.value))),e.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());const t=this.kendoDate&&Zw(this.value,this.kendoDate.getDateObject());(e.format||!t||e.placeholder)&&(this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive))}ngOnDestroy(){this.intlSubscription&&this.intlSubscription.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach(e=>e())}validate(e){return this.minValidateFn(e)||this.maxValidateFn(e)}ngOnInit(){this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this)),this.control=this.injector.get(fu,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.ngZone.runOutsideAngular(()=>{this.bindEvents()}))}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}writeValue(e){this.verifyValue(e),this.kendoDate=this.getKendoDate(e),this.value=jw(e),this.valueUpdate.emit(jw(e)),this.updateElementValue(this.isActive)}triggerChange(){const e=this.kendoDate.getDateObject();+e!=+this.value&&(this.value=jw(e),this.notify())}notify(){this.ngZone.run(()=>{this.ngChange(jw(this.value)),this.valueChange.emit(jw(this.value))})}registerOnChange(e){this.ngChange=e}registerOnTouched(e){this.ngTouched=e}focus(){const e=this.inputElement;e&&(e.focus(),this.selectDateSegment(this.currentFormat[0]))}blur(){const e=this.inputElement;e&&e.blur()}handleButtonClick(e){this.arrowDirection=QS.None,this.modifyDateSegmentValue(e)}modifyDateSegmentValue(e){const t=this.caret(),n=this.currentFormat[t[0]];this.kendoDate.modifyPart(n,e*((this.steps||{})[this.symbolsMap[n]]||1)),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(n)}switchDateSegment(e){const t=this.caret();if(this.kendoDate.resetLeadingZero()&&this.updateElementValue(this.isActive),t[0]<t[1]&&this.currentFormat[t[0]]!==this.currentFormat[t[1]-1])return this.selectNearestSegment(e>0?t[0]:t[1]-1),this.resetSegmentValue=!0,!0;const n=this.currentFormat[t[0]];let i=t[0]+e;for(;i>0&&i<this.currentFormat.length&&(this.currentFormat[i]===n||"_"===this.currentFormat[i]);)i+=e;if("_"===this.currentFormat[i])return!1;let r=i;for(;r>=0&&r<this.currentFormat.length&&this.currentFormat[r]===this.currentFormat[i];)r+=e;return i>r&&(r+1!==t[0]||i+1!==t[1])?(this.caret(r+1,i+1),this.resetSegmentValue=!0,!0):i<r&&(i!==t[0]||r!==t[1])&&(this.caret(i,r),this.resetSegmentValue=!0,!0)}selectDateSegment(e){let t=-1,n=0;for(let i=0;i<this.currentFormat.length;i++)this.currentFormat[i]===e&&(n=i+1,-1===t&&(t=i));t<0&&(t=0),this.caret(0,0),this.caret(t,n)}handleClick(){this.hasMousedown=!1,this.isActive&&this.selectNearestSegment(this.caret()[0])}handleDragAndDrop(e){e.preventDefault()}handleMousedown(){this.hasMousedown=!0}handleFocus(e){this.isActive=!0,this.updateElementValue(),this.hasMousedown||this.caret(0,this.inputValue.length),this.hasMousedown=!1,Da(this.onFocus)?this.ngZone.run(()=>{this.emitFocus(e)}):this.emitFocus(e)}handleBlur(e){this.isActive=!1,this.resetSegmentValue=!0,this.kendoDate.resetLeadingZero(),this.updateElementValue(),Da(this.onBlur)||GS(this.control)?this.ngZone.run(()=>{this.ngTouched(),this.emitBlur(e)}):this.emitBlur(e)}getKendoDate(e){const{leadingZero:t}=this.kendoDate||{}||null,n=new ok(this.intl,this.formatPlaceholder,this.format,e);return n.setLeadingZero(this.isActive?t:null),n}dateSymbolMap(){return this.intl.splitDateFormat(this.format).reduce((e,t)=>(e[t.pattern[0]]=t.type,e),{})}updateElementValue(e){const t=this.caret()[0],n=this.kendoDate.getTextAndFormat(),i=!this.isActive&&null!=this.placeholder&&!this.kendoDate.hasValue(),r=this.inputElement;this.currentFormat=n[1],this.currentValue=i?"":n[0],this.renderer.setProperty(r,"value",this.currentValue),r.placeholder!==this.placeholder&&this.renderer.setProperty(r,"placeholder",this.placeholder);const s=this.kendoDate.getDateObject();this.ariaValueNow=tk(s),this.ariaValueText=this.intl.formatDate(s,this.format),e&&this.selectNearestSegment(t)}hasChanged(e,t){const n=e[t];return n&&!Zw(n.previousValue,n.currentValue)}caret(e,t=e){const n=void 0!==e;let i=[e,e];const r=this.inputElement;if(!n||!this.disabled&&!this.readonly){try{void 0!==r.selectionStart&&(n&&(Ea()&&document.activeElement!==r&&r.focus(),r.setSelectionRange(e,t)),i=[r.selectionStart,r.selectionEnd])}catch(s){i=[]}return i}}selectNearestSegment(e){for(let t=e,n=e-1;t<this.currentFormat.length||n>=0;t++,n--){if(t<this.currentFormat.length&&"_"!==this.currentFormat[t])return void this.selectDateSegment(this.currentFormat[t]);if(n>=0&&"_"!==this.currentFormat[n])return void this.selectDateSegment(this.currentFormat[n])}}verifyRange(){if(ot()&&!DC(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-max.")}verifyValue(e){if(ot()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json for possible resolution.")}putDateInRange(){const e=this.kendoDate.getDateObject(),t=AC(e,this.min,this.max);this.autoCorrect&&!Zw(e,t)&&(this.kendoDate=this.getKendoDate(t))}updateFormatSections(){this.formatSections=this.intl.splitDateFormat(this.format).reduce(({date:e,time:t},n)=>({date:e||XS.test(n.type),time:t||JS.test(n.type)}),{date:!1,time:!1})}intlChange(){this.updateFormatSections(),this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive)}updateOnPaste(){const e=this.intl.parseDate(this.inputValue,this.format)||this.value,t=+e!=+this.value;this.writeValue(e),t&&this.notify()}bindEvents(){const e=this.element.nativeElement,t=this.handleMouseWheel.bind(this);this.domEvents.push(this.renderer.listen(e,"DOMMouseScroll",t),this.renderer.listen(e,"mousewheel",t),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)),this.renderer.listen(e,"paste",this.handlePaste.bind(this)),this.renderer.listen(e,"input",this.handleInput.bind(this)))}handleMouseWheel(e){this.disabled||this.readonly||!this.isActive||((e=window.event||e).shiftKey?this.switchDateSegment((e.wheelDelta||-e.detail)>0?-1:1):this.modifyDateSegmentValue((e.wheelDelta||-e.detail)>0?1:-1),e.returnValue=!1,e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())}handlePaste(){this.paste=!0}handleKeydown(e){if(!(this.disabled||this.readonly||e.altKey||e.ctrlKey||e.metaKey))if(e.keyCode!==za.Tab)if(e.keyCode!==za.Backspace){switch(e.keyCode){case za.ArrowDown:this.modifyDateSegmentValue(-1);break;case za.ArrowUp:this.modifyDateSegmentValue(1);break;case za.ArrowRight:this.switchDateSegment(1);break;case za.ArrowLeft:this.switchDateSegment(-1);break;case za.Home:this.selectNearestSegment(0);break;case za.End:this.selectNearestSegment(this.inputValue.length);break;default:return}e.preventDefault()}else this.backspace=!0;else this.switchDateSegment(e.shiftKey?-1:1)&&e.preventDefault()}handleInput(){if(this.disabled||this.readonly)return;if(this.paste)return this.updateOnPaste(),void(this.paste=!1);const e=((e,t,n,i)=>{const r=i+e.length-n.length,s=e[r],o=e.substring(0,i+e.length-n.length),a=n.substring(0,i),l=[];if(o===a&&i>0)return l.push([t[i-1],a[i-1]]),l;if(0===o.indexOf(a)&&(0===a.length||t[a.length-1]!==t[a.length])){let e="";1===a.length&&l.push([t[0],a[0]]);for(let n=a.length;n<o.length;n++)t[n]!==e&&"_"!==t[n]&&l.push([e=t[n],""]);return l}if(0===a.indexOf(o)||"_"===t[i-1]){let e=t[0];for(let n=Math.max(0,o.length-1);n<t.length;n++)if("_"!==t[n]){e=t[n];break}return[[e,a[i-1]]]}return" "===a[a.length-1]||a[a.length-1]===s&&"_"===t[r]?[[t[i-1],"_"]]:[[t[i-1],a[i-1]]]})(this.currentValue,this.currentFormat,this.inputValue,this.caret()[0]),t=1===e.length&&"_"===e[0][1];let n=!1;if(!t){let t;for(let r=0;r<e.length;r++)n=(t=this.kendoDate.parsePart(e[r][0],e[r][1],this.resetSegmentValue)).switchToNext;const i=this.kendoDate.getDateObject();this.value&&i&&!this.formatSections.date&&(this.kendoDate=this.getKendoDate(EC(this.value,i)))}this.resetSegmentValue=!1,this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),e.length&&"_"!==e[0][0]&&this.selectDateSegment(e[0][0]),(n||t)&&this.switchDateSegment(1),this.backspace&&this.switchDateSegment(-1),this.backspace=!1}emitFocus(e){this.onFocus.emit(),this.pickerService&&this.pickerService.onFocus.emit(e)}emitBlur(e){this.onBlur.emit(),this.pickerService&&this.pickerService.onBlur.emit(e)}}))();class lk{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}const hk=new Ae("dateinputs-touch-enabled"),uk=(()=>(class{constructor(e,t,n,i,r,s,o,a,l){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.element=r,this.renderer=s,this.injector=o,this.pickerService=a,this.touchEnabled=l,this.focusableId=`k-${Aa()}`,this.activeView=QC[QC.month],this.bottomView=QC[QC.month],this.topView=QC[QC.century],this.disabled=!1,this.readonly=!1,this.navigation=!0,this.min=jw(CC),this.max=jw(SC),this.focusedDate=null,this.format="d",this.placeholder=null,this.tabindex=0,this.title="",this.rangeValidation=!0,this.weekNumber=!1,this.valueChange=new xr,this.onFocus=new xr,this.onBlur=new xr,this.open=new xr,this.close=new xr,this.popupUID=Aa(),this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onChange=NC,this.onTouched=NC,this.minValidateFn=NC,this.maxValidateFn=NC,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],this.popupKeyDownHandler=this.handleKeydown.bind(this),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleSameSelection.bind(this)))}set popupSettings(e){this._popupSettings=Object.assign({},{animate:!0},e)}get popupSettings(){return this._popupSettings}set value(e){this.verifyValue(e),this._value=jw(e)}get value(){return this._value}set tabIndex(e){this.tabindex=e}get tabIndex(){return this.tabindex}get wrapperClasses(){return!0}get disabledClass(){return this.disabled}get isActive(){return this._active}set isActive(e){if(this._active=e,!this.wrapper)return;const t=this.wrapper.nativeElement;e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused")}get show(){return this._show}set show(e){e&&(this.disabled||this.readonly)||(e||this._show&&Da(this.close)?this.zone.run(()=>{this.togglePopup(e)}):this.togglePopup(e))}isEmpty(){return!this.value&&this.input.isEmpty()}ngOnInit(){this.localizationChangeSubscription=this.localization.changes.subscribe(()=>this.cdr.markForCheck()),this.control=this.injector.get(fu,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.zone.runOutsideAngular(()=>{this.bindEvents()}))}ngOnChanges(e){this.verifySettings(),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?qS(this.min):NC,this.maxValidateFn=this.rangeValidation?WS(this.max):NC)}ngOnDestroy(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.domEvents.forEach(e=>e()),this.pickerSubscriptions.unsubscribe()}get isOpen(){return this.show}writeValue(e){this.verifyValue(e),this.value=jw(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}validate(e){return this.minValidateFn(e)||this.maxValidateFn(e)}focus(){this.input.focus()}blur(){(this.calendar||this.input).blur()}toggle(e){this.disabled||this.readonly||this.resolvedPromise.then(()=>{this._toggle(void 0===e?!this.show:e)})}handleIconClick(){this.disabled||this.readonly||(this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.markForCheck())}handleMousedown(e){e.preventDefault()}handleChange(e){this.cdr.markForCheck(),this.focusInput(),this.value=e,this.show=!1,this.onChange(jw(e)),this.valueChange.emit(jw(e))}handleInputChange(e){this.handleChange(this.input.formatSections.time?e:this.mergeTime(e))}get popupClasses(){return["k-calendar-container","k-group","k-reset"].concat(this.popupSettings.popupClass||[])}get appendTo(){const{appendTo:e}=this.popupSettings;if(e&&"root"!==e)return"component"===e?this.container:e}get input(){return this.pickerService.input}get calendar(){return this.pickerService.calendar}mergeTime(e){return this.value&&e?EC(e,this.value):e}togglePopup(e){const t=new lk;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())}_toggle(e){if(this._show=e,this.popupRef&&(this.popupRef.popupElement.removeEventListener("keydown",this.popupKeyDownHandler),this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe()),this._show){const e=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:e},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:e},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.popupRef.popupElement.addEventListener("keydown",this.popupKeyDownHandler),this.subscription=this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.show=!1)}}focusInput(){this.touchEnabled||this.input.focus()}toggleFocus(){this.isActive&&(this.show?(this.calendar||this.cdr.detectChanges(),this.calendar&&this.calendar.focus()):this.focusInput())}verifySettings(){if(ot()&&!DC(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-max.")}verifyValue(e){if(ot()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json for possible resolution.")}bindEvents(){this.domEvents.push(this.renderer.listen(this.element.nativeElement,"keydown",this.handleKeydown.bind(this)))}handleFocus(){this.isActive||(this.isActive=!0,Da(this.onFocus)&&this.zone.run(()=>{this.onFocus.emit()}))}handleBlur(e){const t=(e=>e.relatedTarget||document.activeElement)(e);t&&(this.input.containsElement(t)||this.calendar&&this.calendar.containsElement(t))||(Da(this.onBlur)||this.show&&Da(this.close)||GS(this.control)?this.zone.run(()=>{this.blurComponent()}):this.blurComponent())}blurComponent(){this.isActive=!1,this.show=!1,this.cdr.detectChanges(),this.onTouched(),this.onBlur.emit()}handleKeydown(e){const{altKey:t,keyCode:n}=e;27===n&&(this.show=!1),t&&(40!==n||this.show||(this.show=!0),38===n&&(this.show=!1))}handleSameSelection(){this.show&&(this.focusInput(),this.show=!1)}}))();class ck{constructor(e,t,n,i){this.$implicit=e,this.kForOf=t,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}const dk=(()=>(class{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}set kForTemplate(e){e&&(this._template=e)}ngOnChanges(e){if("kForOf"in e){const i=e.kForOf.currentValue;if(this._differ||!i)return;try{this._differ=this._differs.find(i).create(this.kForTrackBy)}catch(n){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'.`)}}var t}ngDoCheck(){if(this._differ){const e=this._differ.diff(this.kForOf);e&&this._applyChanges(e)}}_applyChanges(e){if(!Ea())return;const t=this._viewContainer.length,n=this.kForOf.length,i={};e.forEachOperation((e,t,n)=>{null!==n&&(i[n]=e.item)});for(let r=t;r<n;r++)this._viewContainer.createEmbeddedView(this._template,new ck(null,this.kForOf,-1,-1),r);for(let r=this._viewContainer.length;r>n;r--)this._viewContainer.remove(r);for(let r=0;r<this._viewContainer.length;r++){const e=this._viewContainer.get(r);e.context.index=r,e.context.count=length,e.context.$implicit=i[r]||null}}}))(),pk=(()=>(class{constructor(e,t,n,i){this.bus=e,this.cdr=t,this.localization=n,this.intl=i,this.navigate=!0,this.todayIsInRange=!0,this.min=new Date(CC),this.max=new Date(SC),this.rangeLength=1,this.today=new xr}get getComponentClass(){return!0}ngOnInit(){this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this)),this.l10nSubscription=this.localization.changes.subscribe(this.l10nChange.bind(this))}ngOnChanges(e){this.bus.service(this.activeView)&&(this.activeViewValue=QC[this.activeView],this.todayIsInRange=IC(OC(),Gw(this.min),Gw(this.max)),this.todayMessage=this.localization.get("today"),this.navigate=this.bus.canMoveUp(this.activeView),this.title=this.getTitle())}ngOnDestroy(){this.intlSubscription&&this.intlSubscription.unsubscribe(),this.l10nSubscription&&this.l10nSubscription.unsubscribe()}handleTodayClick(){this.todayIsInRange&&(this.bus.moveToBottom(this.activeView),this.today.emit(AC(OC(),this.min,this.max)))}handleNavigation(){this.navigate&&this.bus.moveUp(this.activeView)}intlChange(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())}l10nChange(){this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()}getTitle(){if(!this.currentDate)return"";const e=this.bus.service(this.activeView),t=this.rangeLength-1,n=e.title(this.currentDate),i=e.addToDate(this.currentDate,t);return t<1||!e.isInRange(i,this.min,this.max)?n:`${n} - ${e.title(i)}`}}))(),fk=(()=>(class{constructor(e){this.intl=e}getWeekNames(e=!1){const t=MC(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t}}))(),mk=(()=>(class{constructor(e,t,n,i,r,s,o){this.bus=e,this.intl=t,this.cdr=n,this.weekService=i,this.element=r,this.zone=s,this.renderer=o,this.direction="vertical",this.isActive=!0,this.change=new xr,this.cellEnter=new xr,this.cellLeave=new xr,this.weekNames=[],this.colSpan=0,this.domEvents=[],this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}get weekNumber(){return this.showWeekNumbers&&this.activeView===QC.month}set weekNumber(e){this.showWeekNumbers=e}ngOnInit(){this.element&&this.zone.runOutsideAngular(()=>{this.bindEvents()})}ngOnChanges(e){this.service=this.bus.service(this.activeView),this.service&&(this.isHorizontal()&&0===this.weekNames.length&&(e.weekNumber||e.direction)&&(this.weekNames=this.weekService.getWeekNames(this.weekNumber)),this.colSpan=this.service.rowLength(this.weekNumber),this.title=this.service.title(this.viewDate),this.updateData(),e.activeView&&(this.currentCellIndex=null))}ngOnDestroy(){this.intlSubscription.unsubscribe(),this.domEvents.forEach(e=>e())}isHorizontal(){return"horizontal"===this.direction}isMonthView(){return this.activeView===QC.month}firstDate(e){const t=this.firstWeekDateContext(e);return t?t.value:null}getWeekNumber(e){return this.weekNumber?w_(e,this.intl.firstDay()):null}getWeekNumberContext(e){const t=this.firstWeekDateContext(e);if(!this.weekNumber||!t)return null;const n=w_(t.value,this.intl.firstDay()).toString();return{formattedValue:n,id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:n,value:jw(t.value)}}getStyles(e){const{isRangeEnd:t,isRangeStart:n}=e;return(e=>Object.keys(e).reduce((t,n)=>e[n]?t.concat(n):t,[]).join(" "))({"k-range-end":t,"k-range-mid":e.isRangeMid,"k-range-split-end":e.isRangeSplitEnd,"k-range-split-start":e.isRangeSplitStart,"k-range-start":n,"k-state-active":"start"===this.activeRangeEnd&&n||"end"===this.activeRangeEnd&&t,"k-state-focused":this.isActive&&e.isFocused,"k-state-selected":e.isSelected||n||t,"k-today":e.isToday,"k-weekend":e.isWeekend})}tableCellIndex(e,t){return`${e}:${t}`}firstWeekDateContext(e){if(!this.weekNumber)return null;let t=0,n=e[t];for(;!n&&t<e.length;)n=e[++t];return n}updateData(){const e=this.selectedDate||OC(),t=EC(this.viewDate,e);this.data=this.service.data({cellUID:this.cellUID,focusedDate:this.focusedDate,isActiveView:!this.bus.canMoveDown(this.activeView),max:this.max,min:this.min,selectedDate:this.selectedDate,selectionRange:this.selectionRange,viewDate:t})}intlChange(){this.updateData(),this.isHorizontal()&&(this.weekNames=this.weekService.getWeekNames(this.weekNumber)),this.cdr.markForCheck()}bindEvents(){const e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"mouseover",this.cellMouseoverHandler.bind(this)),this.renderer.listen(e,"mouseleave",this.mouseLeaveHandler.bind(this)),this.renderer.listen(e,"click",this.clickHandler.bind(this)))}clickHandler(e){const t=this.closestCell(e);if(t){const e=t.getAttribute("data-cell-index"),n=this.cellByIndex(e).value;this.change.emit(n)}}mouseLeaveHandler(){this.currentCellIndex&&this.emitCellLeave()}cellMouseoverHandler(e){const t=this.closestCell(e);if(t){const e=t.getAttribute("data-cell-index");this.currentCellIndex&&this.currentCellIndex!==e&&this.emitCellLeave();const n=this.cellByIndex(e).value;this.cellEnter.emit(n),this.currentCellIndex=e}else this.currentCellIndex&&this.emitCellLeave()}closestCell(e){return VS(e.target,e=>e.hasAttribute("data-cell-index"),this.element.nativeElement)}emitCellLeave(){const e=this.cellByIndex(this.currentCellIndex);e&&this.cellLeave.emit(e.value),this.currentCellIndex=null}cellByIndex(e){const[t,n]=e.split(":");return this.data[t][n]}}))(),gk=(()=>(class{}))(),vk=(()=>(class{}))(),yk=(()=>(class extends Cd{}))(),wk=(()=>(class extends yk{constructor(e){super(),this.service=e}}))(),_k=(()=>(class extends yk{constructor(e){super(),this.service=e}get override(){return!0}}))(),bk=(()=>(class{}))(),xk=(()=>(class{}))(),Ck=(()=>(class extends Cd{}))(),Sk=(()=>(class extends Ck{constructor(e){super(),this.service=e}}))(),kk=(()=>(class{}))(),Ek=(()=>(class extends Cd{}))(),Tk=(()=>(class extends Ek{constructor(e){super(),this.service=e}}))(),Ik={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.(\d+(\.\d+)?)/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},Dk={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},Ak={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i},Ok={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i},Nk=(e,t,n)=>{for(let i in t)if(t.hasOwnProperty(i)&&t[i].test(e))return i;return void 0!==n?n:e},Fk=e=>{let t,n=[];for(let i in Ik)if(Ik.hasOwnProperty(i)){if(!(n=e.match(Ik[i])))continue;if("windows"===i&&"plugins"in window.navigator)return null;const r={};return r.device=i,r.browser=Nk(e,Ok,"default"),r.name=Nk(i,Dk),r[r.name]=!0,r.majorVersion=n[2],r.minorVersion=n[3].replace("_","."),t=r.minorVersion.replace(".","").substr(0,2),r.flatVersion=r.majorVersion+t+new Array(3-(t.length<3?t.length:2)).join("0"),r.cordova=void 0!==typeof window.PhoneGap||void 0!==typeof window.cordova,r.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||r.cordova,r}return null},Mk=e=>{let t=null,n=[];for(let i in Ak)if(Ak.hasOwnProperty(i)&&(n=e.match(Ak[i]))){(t={})[i]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||n[2],10);break}return t},Pk=FC()&&window.navigator?window.navigator.userAgent:null,Rk=Pk?Mk(Pk):null,Vk=Pk?Fk(Pk):null,zk=FC()&&"ontouchstart"in window,Lk=Rk&&!Rk.chrome&&window.MSPointerEvent,Bk=Rk&&!Rk.chrome&&window.PointerEvent,Hk=Vk&&(zk||Lk||Bk),$k=(()=>(class{}))(),jk=(()=>(class{constructor(e,t,n,i,r){this.service=n,this.ngZone=r,this.toggleable=!1,this.primary=!1,this.look="default",this.isDisabled=!1,this.isIcon=!1,this.isIconClass=!1,this.tabIndex=0,this.selectedChange=new xr,this.domEvents=[],this.direction=i.rtl?"rtl":"ltr",this.localizationChangeSubscription=i.changes.subscribe(({rtl:e})=>this.direction=e?"rtl":"ltr"),this.element=e.nativeElement,this.renderer=t}get togglable(){return this.toggleable}set togglable(e){this.toggleable=e}get selected(){return this._selected||!1}set selected(e){this._selected=e}set icon(e){e?this.iconSetter(e,()=>{this.isIcon=!0,this.addIcon("k-icon k-i-"+e)}):(this.isIcon=!1,this.updateIconNode())}set iconClass(e){e?this.iconSetter(e,()=>{this.isIconClass=!0,this.addIcon(e)}):(this.isIconClass=!1,this.updateIconNode())}set imageUrl(e){e?this.iconSetter(e,this.addImgIcon.bind(this)):this.removeImageNode()}set disabled(e){this.isDisabled=e,this.renderer.setProperty(this.element,"disabled",e)}get classButton(){return!0}get classDisabled(){return this.isDisabled}get classPrimary(){return this.primary}get isFlat(){return"flat"===this.look}get isBare(){return"bare"===this.look}get isOutline(){return"outline"===this.look}get classActive(){return this.selected}ngOnInit(){this.service&&(this.buttonLookChangeSubscription=this.service.buttonLookChange.pipe(Cc(e=>"default"!==e)).subscribe(e=>this.look=e)),!this.element.hasAttribute("role")&&this.togglable&&this.toggleAriaCheckbox(this.toggleable),this.ngZone.runOutsideAngular(()=>{this.domEvents.push(this.renderer.listen(this.element,"click",this._onButtonClick.bind(this)))})}ngOnChanges(e){(Ta("togglable",e)||Ta("toggleable",e))&&this.toggleAriaCheckbox(this.toggleable)}ngAfterViewChecked(){this.setIconTextClasses()}ngOnDestroy(){this.imageNode=null,this.iconNode=null,this.renderer=null,this.localizationChangeSubscription.unsubscribe(),this.service&&this.buttonLookChangeSubscription&&this.buttonLookChangeSubscription.unsubscribe(),clearTimeout(this.deferTimeout),this.domEvents.forEach(e=>e())}focus(){Ea()&&this.element.focus()}blur(){Ea()&&this.element.blur()}setAttribute(e,t){this.renderer.setAttribute(this.element,e,t)}removeAttribute(e){this.renderer.removeAttribute(this.element,e)}setSelected(e){const t=this.selected!==e;this.selected=e,this.setAttribute("aria-checked",this.selected.toString()),this.toggleClass("k-state-active",this.selected),t&&Da(this.selectedChange)&&this.ngZone.run(()=>{this.selectedChange.emit(e)})}toggleAriaCheckbox(e){Ea()&&(e?(this.setAttribute("role","checkbox"),this.setAttribute("aria-checked",this.selected.toString())):(this.removeAttribute("role"),this.removeAttribute("aria-checked")))}hasText(){return!!Ea()&&String(this.element.textContent).trim().length>0}addImgIcon(e){let t=this.renderer;this.imageNode?t.setProperty(this.imageNode,"src",e):Ea()&&(this.imageNode=t.createElement("img"),t.setProperty(this.imageNode,"src",e),t.setProperty(this.imageNode,"className","k-image"),t.setAttribute(this.imageNode,"role","presentation"),this.prependChild(this.imageNode))}addIcon(e){let t=this.renderer;this.iconNode?t.setProperty(this.iconNode,"className",e):Ea()&&(this.iconNode=t.createElement("span"),t.setProperty(this.iconNode,"className",e),t.setAttribute(this.iconNode,"role","presentation"),this.prependChild(this.iconNode))}prependChild(e){this.defer(()=>{this.renderer&&e!==this.element.firstChild&&this.renderer.insertBefore(this.element,e,this.element.firstChild)})}defer(e){this.ngZone.runOutsideAngular(()=>{this.deferTimeout=setTimeout(e,0)})}iconSetter(e,t){e&&t(e),this.setIconTextClasses()}removeImageNode(){this.imageNode&&this.renderer.parentNode(this.imageNode)&&(this.renderer.removeChild(this.element,this.imageNode),this.imageNode=null)}removeIconNode(){this.iconNode&&this.renderer.parentNode(this.iconNode)&&(this.renderer.removeChild(this.element,this.iconNode),this.iconNode=null)}updateIconNode(){this.isIcon||this.isIconClass||this.removeIconNode()}setIconTextClasses(){const e=this.isIcon||this.isIconClass||this.imageNode,t=this.hasText();this.toggleClass("k-button-icon",e&&!t),this.toggleClass("k-button-icontext",e&&t)}toggleClass(e,t){t?this.renderer.addClass(this.element,e):this.renderer.removeClass(this.element,e)}_onButtonClick(){this.toggleable&&(!this.disabled&&this.service&&this.ngZone.run(()=>{this.service.click(this)}),this.service||this.setSelected(!this.selected))}}))(),Uk=(()=>(class{}))(),qk=(()=>(class{}))(),Wk=(()=>(class{}))(),Gk=(()=>(class{}))(),Zk=(()=>(class{}))(),Yk=(()=>(class{}))();function Kk(e,t){let n="";for(let i=0;i<e.length;++i)n+=t(e[i],i);return n}n("g1Xn"),JSON.parse.bind(JSON);const Qk=({ref:e,columns:t,generators:n})=>`\n<autoFilter ref="${e}">\n  ${Kk(t,e=>`\n    <filterColumn colId="${e.index}">\n      ${n[e.filter](e)}\n    </filterColumn>\n  `)}\n</autoFilter>`,Xk=({logic:e,criteria:t})=>`\n<customFilters ${"and"===e?'and="1"':""}>\n${Kk(t,e=>{let t=nE.customOperator(e);return`<customFilter ${t?`operator="${t}"`:""} val="${nE.customValue(e)}"/>`})}\n</customFilters>`,Jk=({type:e})=>`<dynamicFilter type="${nE.dynamicFilterType(e)}" />`,eE=({type:e,value:t})=>`<top10 percent="${/percent$/i.test(e)?1:0}"\n       top="${/^top/i.test(e)?1:0}"\n       val="${t}" />`,tE=({blanks:e,values:t})=>`<filters ${e?'blank="1"':""}>\n    ${Kk(t,e=>`\n      <filter val="${e}" />`)}\n  </filters>`;function nE(e){return Qk({ref:e.ref,columns:e.columns,generators:{custom:Xk,dynamic:Jk,top:eE,value:tE}})}nE.customOperator=function(e){return{eq:"equal",gt:"greaterThan",gte:"greaterThanOrEqual",lt:"lessThan",lte:"lessThanOrEqual",ne:"notEqual",doesnotstartwith:"notEqual",doesnotendwith:"notEqual",doesnotcontain:"notEqual",doesnotmatch:"notEqual"}[e.operator.toLowerCase()]},nE.customValue=function(e){function t(e){return e.replace(/([*?])/g,"~$1")}switch(e.operator.toLowerCase()){case"startswith":case"doesnotstartwith":return t(e.value)+"*";case"endswith":case"doesnotendwith":return"*"+t(e.value);case"contains":case"doesnotcontain":return"*"+t(e.value)+"*";default:return e.value}},nE.dynamicFilterType=function(e){return{quarter1:"Q1",quarter2:"Q2",quarter3:"Q3",quarter4:"Q4",january:"M1",february:"M2",march:"M3",april:"M4",may:"M5",june:"M6",july:"M7",august:"M8",september:"M9",october:"M10",november:"M11",december:"M12"}[e.toLowerCase()]||e};const iE=(()=>(class{constructor(e){this.templateRef=e}}))(),rE=(()=>(class{constructor(e){this.templateRef=e}}))(),sE=(()=>(class{constructor(e){this.templateRef=e}}))(),oE=(()=>(class{constructor(e){this.templateRef=e}}))(),aE=(()=>(class{constructor(e){this.templateRef=e}}))(),lE=(()=>(class{constructor(e){this.templateRef=e}}))(),hE=(()=>(class{constructor(e){this.templateRef=e}}))(),uE=e=>e.isSpanColumn,cE=(()=>(class{constructor(e){if(this.parent=e,this.matchesMedia=!0,this.orderIndex=0,this.isColumnGroup=!1,this.isSpanColumn=!1,this.resizable=!0,this.reorderable=!0,this.minResizableWidth=10,this.locked=!1,this.lockable=!0,this.columnMenu=!0,this.includeInChooser=!0,this.headerTemplates=new Cr,this.columnMenuTemplates=new Cr,e&&!(e=>e.isColumnGroup||uE(e))(e))throw new Error("Columns can be nested only inside ColumnGroupComponent")}set width(e){this._width=parseInt(e,10)}get width(){return this._width}get level(){return this.parent&&uE(this.parent)?this.parent.level:this.parent?this.parent.level+1:0}get isLocked(){return this.parent?this.parent.isLocked:this.locked}get colspan(){return 1}rowspan(e){return this.level<e?e-this.level+1:1}get headerTemplateRef(){const e=this.headerTemplates.first;return e?e.templateRef:void 0}get footerTemplateRef(){return this.footerTemplate?this.footerTemplate.templateRef:void 0}get columnMenuTemplateRef(){const e=this.columnMenuTemplates.first;return e?e.templateRef:null}get displayTitle(){return this.title}get isVisible(){return!this.hidden&&this.matchesMedia}}))(),dE=e=>null!=e,pE=e=>null==e,fE=e=>pE(e)||e.trim&&0===e.trim().length,mE=e=>(e=>"string"==typeof e)(e)&&!fE(e)&&e.startsWith("{0:")?e.slice(3,e.length-1):e,gE=(()=>(class{constructor(e){this.templateRef=e}}))(),vE=(()=>(class{constructor(e){this.templateRef=e}}))(),yE=(()=>(class extends cE{constructor(e){super(e),this.sortable=!0,this.groupable=!0,this.editor="text",this.filter="text",this.filterable=!0,this.editable=!0}get templateRef(){return this.template?this.template.templateRef:void 0}get groupHeaderTemplateRef(){return this.groupHeaderTemplate?this.groupHeaderTemplate.templateRef:void 0}get groupFooterTemplateRef(){return this.groupFooterTemplate?this.groupFooterTemplate.templateRef:void 0}get editTemplateRef(){return this.editTemplate?this.editTemplate.templateRef:void 0}get filterCellTemplateRef(){return this.filterCellTemplate?this.filterCellTemplate.templateRef:void 0}get filterMenuTemplateRef(){return this.filterMenuTemplate?this.filterMenuTemplate.templateRef:void 0}get displayTitle(){return void 0===this.title?this.field:this.title}}))(),wE=(()=>(class extends cE{constructor(e){if(super(e),this.isSpanColumn=!0,this.template=new Cr,this.editTemplate=new Cr,this.childColumns=new Cr,this.includeInChooser=!1,this._editable=!0,this._locked=!1,e&&e.isSpanColumn)throw new Error("SpanColumn cannot be nested inside another SpanColumn")}set editable(e){this._editable=e}get editable(){return dE(this.editTemplateRef)&&this._editable}get templateRef(){const e=this.template.first;return e?e.templateRef:void 0}get editTemplateRef(){const e=this.editTemplate.first;return e?e.templateRef:void 0}get colspan(){return this.childColumns.filter(e=>e.isVisible).length}set locked(e){this._locked=e}get locked(){return this._locked||this.childColumns.some(e=>e.locked)}}))(),_E=(e=>t=>(t||[]).reduce((t,n)=>t+(n[e]||0),0))("colspan"),bE=(()=>(class extends cE{constructor(e){if(super(e),this.parent=e,this.includeInChooser=!1,this.isColumnGroup=!0,this.minResizableWidth=10,e&&e.isSpanColumn)throw new Error("ColumnGroupComponent cannot be nested inside SpanColumnComponent")}rowspan(){return 1}get colspan(){return this.children&&1!==this.children.length?_E(this.children.filter(e=>e!==this&&e.isVisible)):1}}))(),xE=(()=>(class{constructor(e){this.templateRef=e,this._condition=(()=>!0)}set showIf(e){if("function"!=typeof e)throw new Error(`showIf must be a function, but received ${JSON.stringify(e)}.`);this._condition=e}get showIf(){return this._condition}}))();class CE{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}const SE=(()=>(class{constructor(e){this.templateRef=e}}))(),kE=new Ae("grid-cell-context");class EE{constructor(){this.changes=new E}filter(e){this.changes.next(e)}}const TE=(()=>(class{constructor(e){this.templateRef=e}}))(),IE=/^(?:a|input|select|option|textarea|button|object)$/i,DE={},AE=e=>(DE[e]||(DE[e]=(t=>String(t.nodeName).toLowerCase()===e.toLowerCase())),DE[e]),OE=(e,t)=>{for(;e&&!t(e);)e=e.parentNode;return e},NE=e=>{const t=e.getBoundingClientRect();return(t.width>0&&t.height>0||0!==t.x&&0!==t.y)&&"hidden"!==window.getComputedStyle(e).visibility},FE=(e,t,n=!0)=>{if(e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){const n=FE(e,t);if(n)return n}e=e.nextSibling}}},ME=(e,t=!0)=>FE(e,e=>((e,t=!0)=>{if(e.tagName){const n=e.tagName.toLowerCase(),i=e.getAttribute("tabIndex"),r="-1"===i;let s=null!==i&&!r;return IE.test(n)&&(s=!e.disabled&&!r),s&&(!t||NE(e))}return!1})(e,t));class PE extends CE{constructor(e){super(),this.originalEvent=e}}const RE=(()=>(class{constructor(e,t,n,i,r){this.popupService=e,this.renderer=t,this.ngZone=n,this.localization=r,this.onClose=new E,this.scrollSubscription=i.changes.subscribe(()=>this.destroy())}open(e,t,n,i="k-grid-filter-popup"){const r=dE(n)&&this.popupRef===n;if(this.destroy(),!r){const n=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchorAlign:{vertical:"bottom",horizontal:n},popupAlign:{vertical:"top",horizontal:n},anchor:e,popupClass:i,content:t,positionMode:"absolute"}),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.localization.rtl?"rtl":"ltr"),this.attachClose(e)}return this.popupRef}destroy(){this.popupRef&&(this.detachClose(),this.popupRef.close(),this.popupRef=null)}ngOnDestroy(){this.destroy(),this.scrollSubscription.unsubscribe()}detachClose(){this.removeClick&&this.removeClick()}attachClose(e){this.detachClose(),this.ngZone.runOutsideAngular(()=>this.removeClick=this.renderer.listen("document","click",t=>{if(!((e,t)=>{for(;e;){if(t(e))return!0;e=e.parentNode}return!1})(t.target,t=>this.popupRef.popupElement===t||t===e)){const e=new PE(t);this.onClose.next(e),e.isDefaultPrevented()||this.destroy()}}))}}))(),VE=AE("button"),zE=AE("input"),LE=/(button|checkbox|color|file|radio|reset|submit)/i,BE=e=>!e.disabled&&(VE(e)||(e=>zE(e)&&LE.test(e.type))(e));class HE{constructor(e,t){this.renderer=t,this.element=e.nativeElement,this.focusable=ME(this.element,!1)||this.element}get enabled(){return this.focusable&&!this.focusable.disabled}get visible(){return this.focusable&&NE(this.focusable)}isNavigable(){return this.canFocus()&&BE(this.element)}toggle(e){this.renderer.setAttribute(this.focusable,"tabIndex",e?"0":"-1")}focus(){this.focusable&&this.focusable.focus()}canFocus(){return this.visible&&this.enabled}hasFocus(){return document.activeElement!==this.element&&OE(document.activeElement,e=>e===this.element)}}const $E=(()=>(class{constructor(e,t,n){this.cellContext=e,this.hostElement=t,this.renderer=n,this.active=!0,this.cellContext&&(this.group=this.cellContext.focusGroup),this.group&&this.group.registerElement(this)}ngAfterViewInit(){this.element||(this.element=new HE(this.hostElement,this.renderer)),this.group&&this.toggle(this.group.isActive)}ngOnDestroy(){this.group&&this.group.unregisterElement(this)}toggle(e){this.element&&e!==this.active&&(this.active=e,this.element.toggle(e))}canFocus(){return this.element&&this.element.canFocus()}isNavigable(){return this.element&&this.element.isNavigable()}focus(){this.element&&this.element.focus()}hasFocus(){return this.element&&this.element.hasFocus()}registerElement(e){this.element=e}}))(),jE=(()=>(class{constructor(e){this.localization=e,this.columns=[],this.groups=[],this.filterRowClass=!0,this.filterLabel=this.localization.get("filter")}}))(),UE=(()=>(class{constructor(){this._templateContext={}}get templateContext(){return this._templateContext.column=this.column,this._templateContext.filter=this.filter,this._templateContext.$implicit=this.filter,this._templateContext}get hasTemplate(){return dE(this.column.filterCellTemplateRef)}get isFilterable(){return dE(this.column)&&!fE(this.column.field)&&this.column.filterable}}))(),qE=(e=>t=>Object.keys(e).reduce((n,i)=>(n[e[i]]=t.get(i),n),{}))({filterEqOperator:"eq",filterNotEqOperator:"neq",filterGteOperator:"gte",filterGtOperator:"gt",filterLteOperator:"lte",filterLtOperator:"lt",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty",filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterAfterOrEqualOperator:"after-eq",filterAfterOperator:"after",filterBeforeOrEqualOperator:"before-eq",filterBeforeOperator:"before"}),WE=e=>e.map(e=>e.toJSON()),GE=(()=>(class{constructor(e,t){this.operator=e,this.localization=t,this.messages=qE(this.localization),this._text=this.messages[this.operator],this.localization.changes.subscribe(this.refreshText.bind(this))}get text(){return this._text}set text(e){this._text=fE(e)?this.messages[this.operator]:e}toJSON(){return{text:this.text,value:this.operator}}refreshText(){const e=this._text===this.messages[this.operator];this.messages=qE(this.localization),e&&(this._text=this.messages[this.operator])}}))(),ZE=(e,t,n,i)=>dE(t)&&dE(t.filters)&&t.filters.length>e?t.filters[e]:((e,t,n)=>((t=t||{filters:[],logic:"and"}).filters[e]=n,n))(e,t,{field:n,operator:i}),YE=e=>[{text:e.get("filterAndLogic"),value:"and"},{text:e.get("filterOrLogic"),value:"or"}],KE=e=>dE(e.filters)?e.filters.reduce((e,t)=>e.concat(Lc(t)?KE(t):[t]),[]):[],QE=(e,t)=>{dE(e)&&dE(e.filters)&&(e.filters=e.filters.filter(e=>Lc(e)?(QE(e,t),e.filters.length):e.field!==t))},XE=(e,t)=>KE(e||{}).filter(e=>e.field===t),JE=e=>t=>Object.keys(e).map(n=>({text:t.get(n),value:e[n]})),eT=(()=>(class{constructor(e){this.filterService=e,this.operatorList=new Cr}get hostClasses(){return!0}get operators(){return this._operators.length?this._operators:this.defaultOperators}set operators(e){this._operators=e}ngAfterContentInit(){this.operationListSubscription=(e=>Q(oc(e),e.changes))(this.operatorList).pipe(H(e=>e.toArray()),H(WE)).subscribe(e=>{this.operators=e})}ngOnDestroy(){this.operationListSubscription&&this.operationListSubscription.unsubscribe()}filterByField(e){return((e,t)=>{let[n]=XE(e,t);return n})(this.filter,e)}filtersByField(e){return XE(this.filter,e)}removeFilter(e){return((e,t)=>(QE(e,t),e))(this.filter,e)}updateFilter(e){const t=this.filter||{filters:[],logic:"and"};let[n]=KE(t).filter(t=>t.field===e.field);return dE(n)?Object.assign(n,e):t.filters.push(e),t}applyFilter(e){this.filterService.filter(e)}}))(),tT=JE({filterEqOperator:"eq",filterNotEqOperator:"neq",filterGteOperator:"gte",filterGtOperator:"gt",filterLteOperator:"lte",filterLtOperator:"lt",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull"}),nT=(()=>(class extends eT{constructor(e,t){super(e),this.localization=t,this.operator="eq",this.step=1,this.spinners=!0,this.defaultOperators=tT(this.localization)}set format(e){this._format=e}get format(){return fE(this._format)?this.columnFormat:this._format}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}get columnFormat(){return this.column&&!fE(this.column.format)?mE(this.column.format):"n2"}ngOnInit(){this.subscription=this.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.defaultOperators=tT(this.localization),this.operatorList.length&&(this.operators=WE(this.operatorList.toArray()))}}))(),iT=(()=>(class extends nT{constructor(e,t){super(e,t),this.localization=t,this.filterDelay=500,this.showOperators=!0}}))(),rT=(()=>(class{constructor(e,t,n,i){this.change=new xr,this.composing=!1,this.filterDelay=500,this.changeRequests=new E,this.accessor=e[0],t.runOutsideAngular(()=>{const e=i.listen(n.nativeElement,"compositionstart",()=>this.composing=!0),t=i.listen(n.nativeElement,"compositionend",()=>this.composing=!1);this.unsubscribeEvents=(()=>{e(),t()})})}set value(e){this.accessor.writeValue(e)}ngOnInit(){this.accessor.registerOnChange(e=>this.filterDelay>0?this.changeRequests.next(e):this.change.emit(e)),this.subscribeChanges()}ngOnChanges(e){Ta("filterDelay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())}ngOnDestroy(){this.unsubscribeChanges(),this.unsubscribeEvents()}subscribeChanges(){this.changeRequestsSubscription=this.changeRequests.pipe(function(e,t=_a){return n=>n.lift(new Pc(e,t))}(this.filterDelay),Cc(()=>!this.composing)).subscribe(e=>this.change.emit(e))}unsubscribeChanges(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()}}))(),sT=(()=>(class extends eT{constructor(e){super(e),this.operators=[]}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){const e=this.currentFilter;return this._operator||(this._operator=e?e.operator:this.defaultOperator),this._operator}set currentOperator(e){this._operator=e,"isnull"===e||"isnotnull"===e||"isempty"===e||"isnotempty"===e?this.applyNoValueFilter(e):!pE(e)&&dE(this.currentFilter)&&this.onChange(this.currentFilter.value)}get defaultOperator(){return fE(this._defaultOperator)?this.operators&&this.operators.length?this.operators[0].value:"eq":this._defaultOperator}set defaultOperator(e){this._defaultOperator=e}ngAfterContentInit(){dE(this.input)&&(this.changeSubscription=this.input.change.subscribe(this.onChange.bind(this)))}ngOnDestroy(){super.ngOnDestroy(),this.changeSubscription&&this.changeSubscription.unsubscribe()}onChange(e){fE(e)&&!this.filterByField(this.column.field)||this.filterChange(fE(e)?this.removeFilter(this.column.field):this.updateFilter({field:this.column.field,operator:this.currentOperator,value:e}))}onClear(){this.onChange(null)}applyNoValueFilter(e){this.filterChange(this.updateFilter({field:this.column.field,operator:e,value:null}))}ngOnChanges(e){Ta("filter",e,!1)&&(this._operator=null)}}))(),oT=["isnull","isnotnull","isempty","isnotempty"],aT=(()=>(class extends sT{constructor(e){super(e),this.showOperators=!0}get hostClasses(){return!0}get overrideBaseClasses(){return!1}get showButton(){const e=this.currentFilter;return dE(e)&&(!fE(e.value)||oT.indexOf(String(e.operator))>=0)}filterChange(e){this.applyFilter(e)}}))(),lT=JE({filterEqOperator:"eq",filterNotEqOperator:"neq",filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty"}),hT=(()=>(class extends eT{constructor(e,t){super(e),this.localization=t,this.operator="contains"}get currentFilter(){return this.filterByField((this.column||{}).field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}ngOnInit(){this.subscription=this.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.defaultOperators=lT(this.localization),this.operatorList.length&&(this.operators=WE(this.operatorList.toArray()))}}))(),uT=(()=>(class extends hT{constructor(e,t){super(e,t),this.filterDelay=500,this.showOperators=!0}}))(),cT=(()=>(class{constructor(e){this.localization=e,this.clearText="Clear",this.operators=[],this.showOperators=!0,this.valueChange=new xr,this.clear=new xr}get hostClasses(){return!0}onChange(e){this.valueChange.emit(e)}clearClick(){return this.clear.emit(),!1}clearKeydown(e){e.keyCode!==za.Enter&&e.keyCode!==za.Space||this.clear.emit()}dropdownKeydown(e){e.defaultPrevented||e.keyCode!==za.Enter||this.dropdown.isOpen||(this.dropdown.toggle(!0),e.preventDefault())}ngOnInit(){this.localization.changes.subscribe(()=>this.clearText=this.localization.get("filterClearButton"))}}))(),dT=JE({filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterEqOperator:"eq",filterNotEqOperator:"neq",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty"}),pT=(()=>(class extends eT{constructor(e,t,n){super(e),this.localization=n,this.showOperators=!0,this.defaultOperators=dT(this.localization),this.column=t}set valueField(e){this._valueField=e}get valueField(){return this._valueField?this._valueField:this.column.field}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:"contains"}}))(),fT=(()=>(class extends eT{constructor(e,t){super(e),this.localization=t,this.operator="eq",this.items=[{text:this.localization.get("filterIsTrue"),value:!0},{text:this.localization.get("filterIsFalse"),value:!1}],this.defaultItem={text:this.localization.get("filterBooleanAll"),value:null}}get hostClasses(){return!0}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}ngOnInit(){this.subscription=this.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.items=[{text:this.localization.get("filterIsTrue"),value:!0},{text:this.localization.get("filterIsFalse"),value:!1}],this.defaultItem={text:this.localization.get("filterBooleanAll"),value:null}}}))(),mT=(()=>(class extends fT{constructor(e,t,n){super(e,t),this.cd=n}localizationChange(){super.localizationChange(),this.cd.markForCheck()}}))(),gT=JE({filterEqOperator:"eq",filterNotEqOperator:"neq",filterAfterOrEqualOperator:"gte",filterAfterOperator:"gt",filterBeforeOrEqualOperator:"lte",filterBeforeOperator:"lt",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull"}),vT=(()=>(class extends eT{constructor(e,t){super(e),this.localization=t,this.operator="gte",this.activeView="month",this.bottomView="month",this.topView="century",this.weekNumber=!1,this.defaultOperators=gT(this.localization)}get currentFilter(){return this.filterByField(this.column.field)}set format(e){this._format=e}get format(){return fE(this._format)?this.columnFormat:this._format}get columnFormat(){return this.column&&!fE(this.column.format)?mE(this.column.format):"d"}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}ngOnInit(){this.subscription=this.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.defaultOperators=gT(this.localization),this.operatorList.length&&(this.operators=WE(this.operatorList.toArray()))}}))(),yT=(()=>(class extends vT{constructor(e,t){super(e,t),this.localization=t,this.showOperators=!0}}))(),wT=(()=>(class{static exports(){return[yE,wE,bE,lE,xE,$E]}}))(),_T=[cT,(()=>(class extends GE{constructor(e){super("contains",e)}}))(),(()=>(class extends GE{constructor(e){super("doesnotcontain",e)}}))(),(()=>(class extends GE{constructor(e){super("endswith",e)}}))(),(()=>(class extends GE{constructor(e){super("eq",e)}}))(),(()=>(class extends GE{constructor(e){super("isempty",e)}}))(),(()=>(class extends GE{constructor(e){super("isnotempty",e)}}))(),(()=>(class extends GE{constructor(e){super("isnotnull",e)}}))(),(()=>(class extends GE{constructor(e){super("isnull",e)}}))(),(()=>(class extends GE{constructor(e){super("neq",e)}}))(),(()=>(class extends GE{constructor(e){super("startswith",e)}}))(),(()=>(class extends GE{constructor(e){super("gt",e)}}))(),(()=>(class extends GE{constructor(e){super("gte",e)}}))(),(()=>(class extends GE{constructor(e){super("lt",e)}}))(),(()=>(class extends GE{constructor(e){super("lte",e)}}))(),(()=>(class extends GE{constructor(e){super("after",e)}toJSON(){return{text:this.text,value:"gt"}}}))(),(()=>(class extends GE{constructor(e){super("after-eq",e)}toJSON(){return{text:this.text,value:"gte"}}}))(),(()=>(class extends GE{constructor(e){super("before-eq",e)}toJSON(){return{text:this.text,value:"lte"}}}))(),(()=>(class extends GE{constructor(e){super("before",e)}toJSON(){return{text:this.text,value:"lt"}}}))()],bT=(()=>(class{static exports(){return[..._T]}}))(),xT=(()=>(class{static exports(){return[jE,UE,gE,cT,uT,iT,pT,mT,yT,bT.exports()]}}))(),CT=e=>(({buttonCount:e=10,info:t=!0,type:n="numeric",pageSizes:i=!1,previousNext:r=!0})=>({buttonCount:e,info:t,pageSizes:!0===i?[5,10,20]:i,previousNext:r,type:n}))(!0===e?{}:e),ST=(()=>(class{constructor(e){this.pagerContext=e,this.total=0,this.skip=1,this.pageChange=new xr,this.settings=CT({}),this._templateContext={}}set options(e){this.settings=CT(e)}get pagerWrapClass(){return!0}get gridPagerClass(){return!0}get widgetClass(){return!0}get totalPages(){return Math.ceil((this.total||0)/this.pageSize)}get currentPage(){return Math.floor((this.skip||0)/this.pageSize)+1}get templateContext(){const e=this._templateContext;return e.totalPages=this.totalPages,e.total=this.total,e.skip=this.skip,e.pageSize=this.pageSize,e.currentPage=this.currentPage,e}ngOnInit(){this.pageChangeSubscription=this.pagerContext.pageChange.subscribe(this.changePage.bind(this))}ngOnChanges(e){Ia(["pageSize","skip","total"],e,!1)&&this.pagerContext.notifyChanges({pageSize:this.pageSize,skip:this.skip,total:this.total})}ngOnDestroy(){this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe()}changePage(e){this.pageChange.emit(e)}}))();class kT{constructor(e,t,n){this.localization=e,this.pagerContext=t,this.cd=n,this.total=this.pagerContext.total,this.skip=this.pagerContext.skip,this.pageSize=this.pagerContext.pageSize}get currentPage(){return Math.floor((this.skip||0)/this.pageSize)+1}get totalPages(){return Math.ceil((this.total||0)/this.pageSize)}textFor(e){return this.localization.get(e)}changePage(e){return this.pagerContext.changePage(e),!1}ngOnInit(){this.subscriptions=this.pagerContext.changes.subscribe(this.onChanges.bind(this)),this.subscriptions.add(this.localization.changes.subscribe(()=>this.cd.markForCheck()))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}}const ET=(()=>(class extends kT{constructor(e,t,n){super(e,t,n)}get disabled(){return 1===this.currentPage||!this.total}onChanges({total:e,skip:t,pageSize:n}){this.total=e,this.skip=t,this.pageSize=n,this.cd.markForCheck()}}))(),TT=(()=>(class extends kT{constructor(e,t,n){super(e,t,n)}get disabled(){return this.currentPage===this.totalPages||!this.total}onChanges({total:e,skip:t,pageSize:n}){this.total=e,this.skip=t,this.pageSize=n,this.cd.markForCheck()}}))(),IT=(()=>(class extends kT{constructor(e,t,n){super(e,n,t),this.pagerContext=n}get buttons(){let e=[];for(let t=this.start;t<=this.end;t++)e.push(t);return e}get end(){return Math.min(this.start+this.buttonCount-1,this.totalPages)}get start(){const e=this.currentPage,t=this.buttonCount;if(e>t){const n=e%t;return 0===n?e-t+1:e-n+1}return 1}pageLabel(e){const t=this.textFor("pagerPage");return t?t+" "+e:e.toString()}onChanges({total:e,skip:t,pageSize:n}){this.total=e,this.skip=t,this.pageSize=n,this.cd.markForCheck()}}))(),DT=(()=>(class extends kT{constructor(e,t,n){super(e,t,n),this.pagerContext=t}onInputChange(e){let t=parseInt(e,10);(isNaN(t)||t<1||t>this.totalPages)&&(t=this.currentPage),this.changePage(t-1)}get current(){return this.hasPages?this.currentPage:0}get hasPages(){return 0!==this.totalPages}onChanges({total:e,skip:t,pageSize:n}){this.total=e,this.skip=t,this.pageSize=n,this.cd.markForCheck()}}))(),AT=(()=>(class extends kT{constructor(e,t,n){super(e,n,t),this.pagerContext=n}get maxItems(){return Math.min(this.currentPage*this.pageSize,this.total)}get currentPageText(){return this.total?(this.currentPage-1)*this.pageSize+1:0}get classes(){return!0}onChanges({total:e,skip:t,pageSize:n}){this.total=e,this.skip=t,this.pageSize=n,this.cd.markForCheck()}}))(),OT=(()=>(class extends kT{constructor(e,t,n){super(e,n,t),this.pagerContext=n}get classes(){return!0}get showInitialPageSize(){return 0===this.pageSizes.filter(e=>e===Number(this.pageSize)).length}pageSizeChange(e){this.pageSize=parseInt(e,10),this.pagerContext.changePageSize(this.pageSize)}onChanges({total:e,skip:t,pageSize:n}){this.total=e,this.skip=t,this.pageSize=n,this.cd.markForCheck()}}))(),NT=(()=>(class{static exports(){return[ST,ET,TT,IT,DT,AT,OT,TE]}}))(),FT=(()=>(class{}))(),MT=(()=>(class{static exports(){return[rE,oE]}}))(),PT={allowUnsort:!0,mode:"single",showIndexes:!0,initialDirection:"asc"},RT=(()=>(class{constructor(e,t,n,i){this.selectionService=e,this.el=t,this.renderer=n,this.ngZone=i,this.selectAllChange=new xr,this.type="checkbox",this.stateSet=!1,this.ngZone.runOutsideAngular(()=>{this.destroyClick=this.renderer.listen(this.el.nativeElement,"click",this.onClick.bind(this))})}ngAfterContentChecked(){this.setState()}ngOnChanges(){this.stateSet=!0}ngOnDestroy(){this.destroyClick&&this.destroyClick()}onClick(){const e=this.el.nativeElement.checked,t=this.selectionService.options;this.selectAllChange.emit(e?"checked":"unchecked"),t.enabled&&"multiple"===t.mode&&this.ngZone.run(()=>{this.selectionService.updateAll(e)})}setState(){const e=this.stateSet?this.stateToBool():this.selectionService.selectAllState,t=this.el.nativeElement;this.renderer.setProperty(t,"indeterminate",!dE(e)),this.renderer.setProperty(t,"checked",!!dE(e)&&e)}stateToBool(){switch(this.state){case"checked":return!0;case"unchecked":return!1;default:return}}}))(),VT=(()=>(class extends sT{constructor(){super(null)}get hostClasses(){return!1}operatorChange(e){this.currentOperator=e}filterChange(e){this.applyFilter(e)}get currentFilter(){return this._currentFilter}set currentFilter(e){this._currentFilter=e}updateFilter(e){return Object.assign(this.currentFilter,e),this.filter}onChange(e){this.filterChange(this.updateFilter({field:this.column.field,operator:this.currentOperator,value:e}))}}))(),zT=(()=>(class{constructor(){this.operators=[]}}))(),LT=(()=>(class extends hT{constructor(e){super(null,e),this.logicOperators=YE(this.localization),this.filter={filters:[],logic:"and"},this.extra=!0}get hostClasses(){return!1}get firstFilter(){return ZE(0,this.filter,(this.column||{}).field,this.operator)}get secondFilter(){return ZE(1,this.filter,(this.column||{}).field,this.operator)}logicChange(e){this.filter.logic=e}localizationChange(){this.logicOperators=YE(this.localization),super.localizationChange()}}))(),BT=(()=>(class extends nT{constructor(e){super(null,e),this.logicOperators=YE(this.localization),this.filter={filters:[],logic:"and"},this.extra=!0}get hostClasses(){return!1}get firstFilter(){return ZE(0,this.filter,(this.column||{}).field,this.operator)}get secondFilter(){return ZE(1,this.filter,(this.column||{}).field,this.operator)}logicChange(e){this.filter.logic=e}localizationChange(){this.logicOperators=YE(this.localization),super.localizationChange()}}))(),HT=(()=>(class{constructor(){this.operators=[],this.step=1,this.spinners=!0}}))(),$T=(()=>(class extends vT{constructor(e){super(null,e),this.logicOperators=YE(this.localization),this.filter={filters:[],logic:"and"},this.extra=!0}get hostClasses(){return!1}get firstFilter(){return ZE(0,this.filter,(this.column||{}).field,this.operator)}get secondFilter(){return ZE(1,this.filter,(this.column||{}).field,this.operator)}logicChange(e){this.filter.logic=e}localizationChange(){this.logicOperators=YE(this.localization),super.localizationChange()}}))(),jT=(()=>(class extends fT{constructor(e){super(null,e),this.filter={filters:[],logic:"and"},this.idPrefix=Aa()}get hostClasses(){return!1}radioId(e){return`${this.idPrefix}_${e}`}onChange(e){this.applyFilter(this.updateFilter({field:this.column.field,operator:"eq",value:e}))}isSelected(e){return this.filtersByField(this.column.field).some(({value:t})=>t===e)}}))(),UT=(()=>(class{constructor(e){this.popupService=e,this.operators=[]}open(e){this.subscription=this.popupService.onClose.pipe(Cc(()=>e.isActive)).subscribe(e=>e.preventDefault())}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}))(),qT=(()=>(class{static exports(){return[LT,vE,BT,$T,jT,bT.exports()]}}))(),WT=(()=>(class{constructor(e,t,n,i,r,s){this.localization=e,this.columnInfoService=t,this.popupService=n,this.ngZone=i,this.renderer=r,this.changeDetector=s,this.autoSync=!1,this.allowHideAll=!0}get columns(){return this.columnInfoService.leafNamedColumns}ngOnDestroy(){this.close()}toggle(e,t){if(this.popupRef)this.close();else{const n=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:e,content:t,positionMode:"absolute",anchorAlign:{vertical:"bottom",horizontal:n},popupAlign:{vertical:"top",horizontal:n}}),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.localization.rtl?"rtl":"ltr"),this.ngZone.runOutsideAngular(()=>this.closeClick=this.renderer.listen("document","click",({target:t})=>{OE(t,t=>t===this.popupRef.popupElement||t===e)||this.close()}))}}onApply(e){this.close(),e.length&&(this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(e))}onChange(e){this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(e)}close(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.detachClose()}detachClose(){this.closeClick&&(this.closeClick(),this.closeClick=null)}}))(),GT=(()=>(class{constructor(){this.hostClass=!0}ngOnInit(){if(ot()&&!this.service)throw new Error("The service input of the predefined column menu components is mandatory.")}close(){this.service.close()}}))(),ZT=(()=>(class extends GT{constructor(e,t,n){super(),this.localization=e,this.columnInfoService=t,this.changeDetector=n,this.expand=new xr,this.collapse=new xr,this.expanded=!1,this.actionsClass="k-columnmenu-actions"}get columns(){return this.columnInfoService.leafNamedColumns}onApply(e){this.close(),e.length&&(this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(e))}}))(),YT=(()=>(class extends GT{constructor(e){super(),this.localization=e,this.expand=new xr,this.collapse=new xr,this.expanded=!1,this.actionsClass="k-columnmenu-actions"}}))(),KT=(()=>(class{constructor(e){this.templateRef=e}}))(),QT=(()=>(class{constructor(){this.itemClick=new xr,this.expand=new xr,this.collapse=new xr,this.contentState="collapsed"}get iconClass(){return`k-i-${this.icon}`}ngOnChanges(e){e.expanded&&this.updateContentState()}onClick(e){this.itemClick.emit(e),this.contentTemplate&&(this.expanded=!this.expanded,this.updateContentState(),this.expanded?this.expand.emit():this.collapse.emit())}updateContentState(){this.contentState=this.expanded?"expanded":"collapsed"}}))(),XT=(()=>(class extends GT{constructor(e,t){super(),this.localization=e,this.sortService=t}get sortedAsc(){const e=this.descriptor;return e&&(!e.dir||"asc"===e.dir)}get sortedDesc(){const e=this.descriptor;return e&&"desc"===e.dir}toggleSort(e){const t=this.service.column.field,{mode:n,allowUnsort:i}=((...e)=>Object.assign({},PT,...e))(this.service.sortable),r=this.descriptor,s="multiple"===n?this.service.sort.filter(e=>e.field!==t):[];if(r&&r.dir===e){if(!i)return}else s.push({field:t,dir:e});this.sortService.sort(s),this.close()}get descriptor(){return[].concat(this.service.sort).find(e=>e.field===this.service.column.field)}}))(),JT=(()=>(class extends GT{constructor(e,t,n){super(),this.localization=e,this.columnInfoService=t,this.changeDetector=n}get text(){return this.localization.get(this.locked?"unlock":"lock")}get icon(){return this.locked?"unlock":"lock"}get disabled(){return!this.locked&&this.columnInfoService.unlockedRootCount<2}toggleColumn(){this.toggleHierarchy(!this.locked),this.close(),this.changeDetector.markForCheck()}toggleHierarchy(e){let t=this.service.column;for(;t.parent;)t=t.parent;const n=[t],i=[];for(;n.length;){const t=n.shift();t.locked=e,i.push(t),t.children&&n.push(...t.children.toArray().slice(1)),t.childColumns&&n.push(...t.childColumns.toArray())}this.columnInfoService.changeLocked(i)}get locked(){return this.service.column.locked}}))(),eI=(()=>(class{static exports(){return[WT,YT,QT,KT,XT,JT,ZT,hE]}}))(),tI=(()=>(class{static exports(){return[aE,RT]}}))(),nI=(()=>(class extends cE{constructor(e){super(e),this.parent=e}get templateRef(){return this.template?this.template.templateRef:void 0}}))(),iI=(()=>(class extends cE{constructor(e){super(e),this.parent=e,this.isCheckboxColumn=!0}get templateRef(){return this.template?this.template.templateRef:void 0}}))(),rI=(()=>(class{constructor(e,t,n){this.selectionService=e,this.el=t,this.renderer=n,this.type="checkbox",this.destroyClick=this.renderer.listen(this.el.nativeElement,"click",this.onClick.bind(this))}ngAfterContentChecked(){this.setCheckedState()}ngOnDestroy(){this.destroyClick&&this.destroyClick()}onClick(){if(this.selectionService.options.enabled){let e=this.selectionService.toggleByIndex(this.itemIndex);e.ctrlKey=!0,e.shiftKey=!1,this.selectionService.changes.emit(e)}}setCheckedState(){this.renderer.setProperty(this.el.nativeElement,"checked",this.selectionService.isSelected(this.itemIndex))}}))(),sI=(()=>(class extends jk{constructor(e,t,n,i,r,s){super(n,i,null,r,s),this.editService=e,this.cellContext=t,this.commandClass=!0}get visible(){return this.isEdited?"none":""}click(e){e.preventDefault(),this.editService.beginEdit(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}))(),oI=(()=>(class extends jk{constructor(e,t,n,i,r,s){super(n,i,null,r,s),this.editService=e,this.cellContext=t,this.commandClass=!0}get visible(){return this.isEdited?"":"none"}click(e){e.preventDefault(),this.isEdited&&this.editService.endEdit(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}))(),aI=(()=>(class extends jk{constructor(e,t,n,i,r,s){super(n,i,null,r,s),this.editService=e,this.cellContext=t,this.commandClass=!0}get visible(){return this.isEdited?"":"none"}click(e){e.preventDefault(),this.isEdited&&this.editService.save(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}))(),lI=(()=>(class extends jk{constructor(e,t,n,i,r,s){super(n,i,null,r,s),this.editService=e,this.cellContext=t,this.commandClass=!0}get visible(){return this.isEdited?"none":""}click(e){e.preventDefault(),this.editService.remove(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}))(),hI=(()=>(class extends jk{constructor(e,t,n,i,r){super(t,n,null,i,r),this.editService=e}click(e){e.preventDefault(),this.editService.beginAdd()}get commandClass(){return!0}}))(),uI=(()=>(class{static exports(){return[nI,iI,rI,iE,SE,sE,sI,oI,aI,lI,hI]}}))(),cI=(()=>(class{static exports(){return[]}}))(),dI=(()=>(class{}))();var pI=Yn({encapsulation:2,styles:[],data:{}});function fI(e){return qs(0,[(e()(),Ds(0,0,null,null,1,"kendo-calendar-navigation",[],[[2,"k-calendar-navigation",null]],[[null,"valueChange"],[null,"pageChange"]],function(e,t,n){var i=!0,r=e.component;return"valueChange"===t&&(i=!1!==r.handleNavigation(n)&&i),"pageChange"===t&&(i=!1!==r.onPageChange()&&i),i},DI,kI)),sr(1,13352960,[[1,4]],0,LS,[JC,CS,tC,Sn,ln],{activeView:[0,"activeView"],min:[1,"min"],max:[2,"max"],focusedDate:[3,"focusedDate"],templateRef:[4,"templateRef"]},{valueChange:"valueChange",pageChange:"pageChange"})],function(e,t){var n=t.component;e(t,1,0,n.activeViewEnum,n.min,n.max,n.focusedDate,null==n.navigationItemTemplate?null:n.navigationItemTemplate.templateRef)},function(e,t){e(t,0,0,Wi(t,1).getComponentClass)})}function mI(e){return qs(2,[Ms(671088640,1,{navigationView:0}),Ms(402653184,2,{monthView:0}),(e()(),Ds(2,0,null,null,2,null,null,null,null,null,null,null)),or(6144,null,yk,null,[wk]),sr(4,737280,null,0,wk,[Ed],{today:[0,"today"]},null),(e()(),Is(16777216,null,null,1,null,fI)),sr(6,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Ds(7,0,null,null,1,"kendo-calendar-viewlist",[],[[2,"k-calendar-view",null],[2,"k-calendar-monthview",null],[2,"k-calendar-yearview",null],[2,"k-calendar-decadeview",null],[2,"k-calendar-centuryview",null]],[[null,"valueChange"],[null,"activeDateChange"],[null,"pageChange"]],function(e,t,n){var i=!0,r=e.component;return"valueChange"===t&&(i=!1!==r.handleDateChange(n)&&i),"activeDateChange"===t&&(i=!1!==r.emitEvent(r.activeViewDateChange,n)&&i),"pageChange"===t&&(i=!1!==r.onPageChange()&&i),i},VI,NI)),sr(8,13352960,[[2,4]],0,BS,[JC,Sn,tC,CS,ln],{cellTemplateRef:[0,"cellTemplateRef"],weekNumberTemplateRef:[1,"weekNumberTemplateRef"],headerTitleTemplateRef:[2,"headerTitleTemplateRef"],activeView:[3,"activeView"],cellUID:[4,"cellUID"],focusedDate:[5,"focusedDate"],isActive:[6,"isActive"],min:[7,"min"],max:[8,"max"],value:[9,"value"],weekNumber:[10,"weekNumber"]},{activeDateChange:"activeDateChange",valueChange:"valueChange",pageChange:"pageChange"})],function(e,t){var n,i=t.component;e(t,4,0,"TODAY"),e(t,6,0,i.navigation),e(t,8,1,[null==(n=i.activeCellTemplate())?null:n.templateRef,null==i.weekNumberTemplate?null:i.weekNumberTemplate.templateRef,null==i.headerTitleTemplate?null:i.headerTitleTemplate.templateRef,i.activeViewEnum,i.cellUID,i.focusedDate,i.isActive,i.min,i.max,i.value,i.weekNumber])},function(e,t){e(t,7,0,Wi(t,8).getComponentClass,Wi(t,8).getComponentMonthClass,Wi(t,8).getComponentYearClass,Wi(t,8).getComponentDecadeClass,Wi(t,8).getComponentCenturyClass)})}var gI=Yn({encapsulation:2,styles:[],data:{}});function vI(e){return qs(0,[(e()(),Ds(0,0,null,null,4,"span",[["class","k-select"]],null,[[null,"mousedown"]],function(e,t,n){var i=!0;return"mousedown"===t&&(i=!1!==n.preventDefault()&&i),i},null,null)),(e()(),Ds(1,0,null,null,1,"span",[["class","k-link k-link-increase"]],[[2,"k-state-active",null],[8,"title",0],[1,"aria-label",0]],[[null,"mousedown"],[null,"mouseleave"],[null,"click"]],function(e,t,n){var i=!0,r=e.component;return"mousedown"===t&&(i=!1!==(r.arrowDirection=r.arrow.Up)&&i),"mouseleave"===t&&(i=!1!==(r.arrowDirection=r.arrow.None)&&i),"click"===t&&(i=!1!==r.handleButtonClick(1)&&i),i},null,null)),(e()(),Ds(2,0,null,null,0,"span",[["class","k-icon k-i-arrow-n"]],null,null,null,null,null)),(e()(),Ds(3,0,null,null,1,"span",[["class","k-link k-link-decrease"]],[[2,"k-state-active",null],[8,"title",0],[1,"aria-label",0]],[[null,"click"],[null,"mousedown"],[null,"mouseleave"]],function(e,t,n){var i=!0,r=e.component;return"click"===t&&(i=!1!==r.handleButtonClick(-1)&&i),"mousedown"===t&&(i=!1!==(r.arrowDirection=r.arrow.Down)&&i),"mouseleave"===t&&(i=!1!==(r.arrowDirection=r.arrow.None)&&i),i},null,null)),(e()(),Ds(4,0,null,null,0,"span",[["class","k-icon k-i-arrow-s"]],null,null,null,null,null))],null,function(e,t){var n=t.component;e(t,1,0,n.arrowDirection===n.arrow.Up,n.localization.get("increment"),n.localization.get("increment")),e(t,3,0,n.arrowDirection===n.arrow.Down,n.localization.get("decrement"),n.localization.get("decrement"))})}function yI(e){return qs(2,[Ms(402653184,1,{dateInput:0}),Ms(402653184,2,{wrap:0}),(e()(),Ds(2,0,null,null,2,null,null,null,null,null,null,null)),or(6144,null,Ck,null,[Sk]),sr(4,737280,null,0,Sk,[Ed],{decrement:[0,"decrement"],increment:[1,"increment"]},null),(e()(),Ds(5,0,[[2,0],["wrap",1]],null,5,"span",[["class","k-dateinput-wrap"]],null,null,null,null,null)),(e()(),Ds(6,0,[[1,0],["dateInput",1]],null,2,"input",[["autocapitalize","off"],["autocomplete","off"],["autocorrect","off"],["class","k-input"],["role","spinbutton"],["spellcheck","false"]],[[8,"id",0],[8,"title",0],[8,"tabIndex",0],[8,"disabled",0],[8,"readOnly",0],[8,"placeholder",0],[1,"aria-expanded",0],[1,"aria-haspopup",0],[1,"aria-valuemin",0],[1,"aria-valuemax",0],[1,"aria-valuenow",0],[1,"aria-valuetext",0]],null,null,null,null)),sr(7,212992,null,0,Na,[nn,Zr,ln],{events:[0,"events"],scope:[1,"scope"]},null),Hs(8,{click:0,focus:1,mousedown:2,touchstart:3,dragstart:4,drop:5,blur:6}),(e()(),Is(16777216,null,null,1,null,vI)),sr(10,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,4,0,"Decrease value","Increase value");var i=e(t,8,0,n.handleClick,n.handleFocus,n.handleMousedown,n.handleMousedown,n.handleDragAndDrop,n.handleDragAndDrop,n.handleBlur);e(t,7,0,i,n),e(t,10,0,n.spinners)},function(e,t){var n=t.component;e(t,6,1,[n.focusableId,n.title,n.tabindex,n.disabled,n.readonly,n.placeholder,n.isPopupOpen,n.hasPopup,n.ariaValueMin,n.ariaValueMax,n.ariaValueNow,n.ariaValueText])})}var wI=Yn({encapsulation:2,styles:[],data:{}});function _I(e){return qs(0,[(e()(),Is(0,null,null,0))],null,null)}function bI(e){return qs(0,[(e()(),Ds(0,0,null,null,20,"kendo-calendar",[],[[2,"k-week-number",null],[1,"id",0],[1,"role",0],[1,"tabindex",0],[1,"aria-disabled",0],[2,"k-state-disabled",null],[1,"aria-activedescendant",0]],[[null,"valueChange"]],function(e,t,n){var i=!0,r=e.component;return"valueChange"===t&&(i=!1!==r.handleChange(r.mergeTime(n))&&i),i},mI,pI)),or(5120,null,au,function(e){return[e]},[KS]),or(5120,null,vu,function(e){return[e]},[KS]),or(6144,null,Va,null,[KS]),or(512,null,JC,JC,[Pe]),or(512,null,$S,$S,[JC]),or(512,null,jS,jS,[CS,Zr]),sr(7,9158656,[["calendar",4]],8,KS,[JC,CS,nn,$S,ln,Sn,Zr,Pe,jS,[2,US]],{focusedDate:[0,"focusedDate"],min:[1,"min"],max:[2,"max"],value:[3,"value"],navigation:[4,"navigation"],activeView:[5,"activeView"],bottomView:[6,"bottomView"],topView:[7,"topView"],weekNumber:[8,"weekNumber"],cellTemplate:[9,"cellTemplate"],monthCellTemplate:[10,"monthCellTemplate"],yearCellTemplate:[11,"yearCellTemplate"],decadeCellTemplate:[12,"decadeCellTemplate"],centuryCellTemplate:[13,"centuryCellTemplate"],weekNumberTemplate:[14,"weekNumberTemplate"],headerTitleTemplate:[15,"headerTitleTemplate"],navigationItemTemplate:[16,"navigationItemTemplate"]},{valueChange:"valueChange"}),Ms(335544320,4,{cellTemplate:0}),Ms(335544320,5,{monthCellTemplate:0}),Ms(335544320,6,{yearCellTemplate:0}),Ms(335544320,7,{decadeCellTemplate:0}),Ms(335544320,8,{centuryCellTemplate:0}),Ms(335544320,9,{weekNumberTemplate:0}),Ms(335544320,10,{headerTitleTemplate:0}),Ms(335544320,11,{navigationItemTemplate:0}),or(256,null,kd,"kendo.calendar",[]),or(131584,null,Ed,Ed,[kd,[2,xd],[2,Sd]]),(e()(),Ds(18,0,null,null,2,"kendo-calendar-messages",[],null,null,null,SI,CI)),or(6144,null,yk,null,[_k]),sr(20,770048,null,0,_k,[Ed],{today:[0,"today"]},null),(e()(),Is(0,null,null,0,null,_I))],function(e,t){var n=t.component;e(t,7,1,[n.focusedDate,n.min,n.max,n.value,n.navigation,n.activeView,n.bottomView,n.topView,n.weekNumber,n.cellTemplate,n.monthCellTemplate,n.yearCellTemplate,n.decadeCellTemplate,n.centuryCellTemplate,n.weekNumberTemplate,n.headerTitleTemplate,n.navigationItemTemplate]),e(t,20,0,n.localization.get("today"))},function(e,t){e(t,0,0,Wi(t,7).weekNumber,Wi(t,7).widgetId,Wi(t,7).widgetRole,Wi(t,7).calendarTabIndex,Wi(t,7).ariaDisabled,Wi(t,7).ariaDisabled,Wi(t,7).ariaActivedescendant)})}function xI(e){return qs(2,[Ms(402653184,1,{container:0}),Ms(402653184,2,{popupTemplate:0}),Ms(402653184,3,{wrapper:0}),(e()(),Ds(3,0,null,null,2,null,null,null,null,null,null,null)),or(6144,null,Ek,null,[Tk]),sr(5,737280,null,0,Tk,[Ed],{today:[0,"today"],toggle:[1,"toggle"]},null),(e()(),Ds(6,0,[[3,0],["wrapper",1]],null,11,"span",[["class","k-picker-wrap k-state-default"]],[[2,"k-state-disabled",null]],null,null,null,null)),(e()(),Ds(7,0,null,null,6,"kendo-dateinput",[],[[2,"k-widget",null],[2,"k-dateinput",null],[2,"k-state-disabled",null]],[[null,"valueChange"]],function(e,t,n){var i=!0;return"valueChange"===t&&(i=!1!==e.component.handleInputChange(n)&&i),i},yI,gI)),or(5120,null,au,function(e){return[e]},[ak]),or(5120,null,vu,function(e){return[e]},[ak]),or(6144,null,Va,null,[ak]),or(256,null,kd,"kendo.dateinput",[]),or(131584,null,Ed,Ed,[kd,[2,xd],[2,Sd]]),sr(13,770048,[["input",4]],0,ak,[Sn,tC,ln,nn,Zr,Pe,Ed,[2,US]],{focusableId:[0,"focusableId"],disabled:[1,"disabled"],readonly:[2,"readonly"],title:[3,"title"],tabindex:[4,"tabindex"],format:[5,"format"],formatPlaceholder:[6,"formatPlaceholder"],placeholder:[7,"placeholder"],max:[8,"max"],min:[9,"min"],value:[10,"value"],isPopupOpen:[11,"isPopupOpen"],hasPopup:[12,"hasPopup"]},{valueChange:"valueChange"}),(e()(),Ds(14,0,null,null,3,"span",[["class","k-select"],["role","button"]],[[1,"title",0],[1,"aria-label",0],[1,"aria-controls",0]],null,null,null,null)),sr(15,212992,null,0,Na,[nn,Zr,ln],{events:[0,"events"],scope:[1,"scope"]},null),Hs(16,{click:0,mousedown:1}),(e()(),Ds(17,0,null,null,0,"span",[["class","k-icon k-i-calendar"]],null,null,null,null,null)),(e()(),Ds(18,16777216,[[1,3],["container",1]],null,0,null,null,null,null,null,null,null)),(e()(),Is(0,[[2,2],["popupTemplate",2]],null,0,null,bI))],function(e,t){var n=t.component;e(t,5,0,"TODAY","Toggle calendar"),e(t,13,1,[n.focusableId,n.disabled,n.readonly,n.title,n.show?-1:n.tabindex,n.format,n.formatPlaceholder,n.placeholder,n.max,n.min,n.value,n.show,!0]);var i=e(t,16,0,n.handleIconClick,n.handleMousedown);e(t,15,0,i,n)},function(e,t){var n=t.component;e(t,6,0,n.disabled),e(t,7,0,Wi(t,13).wrapperClass,Wi(t,13).wrapperClass,Wi(t,13).disabledClass),e(t,14,0,n.localization.get("toggle"),n.localization.get("toggle"),n.popupUID)})}var CI=Yn({encapsulation:2,styles:[],data:{}});function SI(e){return qs(0,[],null,null)}var kI=Yn({encapsulation:2,styles:[],data:{}});function EI(e){return qs(0,[(e()(),$s(0,null,["",""]))],null,function(e,t){e(t,0,0,t.component.service.navigationTitle(t.parent.context.$implicit))})}function TI(e){return qs(0,[(e()(),Is(0,null,null,0))],null,null)}function II(e){return qs(0,[(e()(),Ds(0,0,null,null,7,"li",[],[[1,"data-date-index",0]],null,null,null,null)),(e()(),Ds(1,0,null,null,6,"span",[],[[2,"k-calendar-navigation-marker",null]],null,null,null,null)),(e()(),Is(16777216,null,null,1,null,EI)),sr(3,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,3,null,TI)),sr(5,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),sr(6,540672,null,0,Vl,[On],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),Hs(7,{$implicit:0,activeView:1,date:2})],function(e,t){var n=t.component;e(t,3,0,!n.templateRef),e(t,5,0,n.templateRef);var i=e(t,7,0,n.service.navigationTitle(t.context.$implicit),n.activeViewValue,t.context.$implicit);e(t,6,0,i,n.templateRef)},function(e,t){var n=t.component;e(t,0,0,t.context.index),e(t,1,0,n.service.isRangeStart(t.context.$implicit))})}function DI(e){return qs(2,[Ms(402653184,1,{virtualization:0}),Ms(402653184,2,{list:0}),(e()(),Ds(2,0,null,null,0,"span",[["class","k-calendar-navigation-highlight"]],null,null,null,null,null)),(e()(),Ds(3,0,null,null,7,"kendo-virtualization",[],[[2,"k-content",null],[2,"k-scrollable",null],[2,"k-scrollable-horizontal",null]],[[null,"pageChange"],[null,"scrollChange"]],function(e,t,n){var i=!0,r=e.component;return"pageChange"===t&&(i=!1!==r.onPageChange(n)&&i),"scrollChange"===t&&(i=!1!==r.scrollChange(n)&&i),i},OI,AI)),or(256,null,AS,OS,[]),sr(5,4964352,[[1,4]],0,RS,[AS,nn,ln,Zr],{itemHeight:[0,"itemHeight"],topOffset:[1,"topOffset"],bottomOffset:[2,"bottomOffset"],maxScrollDifference:[3,"maxScrollDifference"],skip:[4,"skip"],take:[5,"take"],total:[6,"total"]},{pageChange:"pageChange",scrollChange:"scrollChange"}),(e()(),Ds(6,0,[[2,0],["list",1]],0,4,"ul",[["class","k-reset"]],null,null,null,null,null)),sr(7,212992,null,0,Na,[nn,Zr,ln],{events:[0,"events"],scope:[1,"scope"]},null),Hs(8,{click:0}),(e()(),Is(16777216,null,null,1,null,II)),sr(10,802816,null,0,dk,[On,Dn,xn],{kForOf:[0,"kForOf"]},null)],function(e,t){var n=t.component;e(t,5,0,n.itemHeight,n.topOffset,n.bottomOffset,n.maxViewHeight,n.skip,n.take,n.total);var i=e(t,8,0,n.handleDateChange);e(t,7,0,i,n),e(t,10,0,n.dates)},function(e,t){e(t,3,0,Wi(t,5).wrapperClasses,Wi(t,5).wrapperClasses,Wi(t,5).horizontalClass)})}var AI=Yn({encapsulation:2,styles:[],data:{}});function OI(e){return qs(0,[Ls(null,0),(e()(),Ds(1,0,null,null,2,"div",[["class","k-scrollable-placeholder"]],[[2,"k-scrollable-horizontal-placeholder",null]],null,null,null,null)),or(512,null,Fl,Ml,[nn,Cn,ln]),sr(3,278528,null,0,Rl,[Fl],{ngStyle:[0,"ngStyle"]},null)],function(e,t){e(t,3,0,t.component.totalVertexLength)},function(e,t){e(t,1,0,"horizontal"===t.component.direction)})}var NI=Yn({encapsulation:2,styles:[],data:{}});function FI(e){return qs(0,[(e()(),Ds(0,0,null,null,1,"th",[],[[4,"width","%"]],null,null,null,null)),(e()(),$s(1,null,["",""]))],null,function(e,t){e(t,0,0,t.component.colWidth),e(t,1,0,t.context.$implicit)})}function MI(e){return qs(0,[(e()(),Ds(0,0,null,null,4,"table",[["class","k-calendar-weekdays"],["style","table-layout: auto;"]],null,null,null,null,null)),(e()(),Ds(1,0,null,null,3,"thead",[],null,null,null,null,null)),(e()(),Ds(2,0,null,null,2,"tr",[],null,null,null,null,null)),(e()(),Is(16777216,null,null,1,null,FI)),sr(4,278528,null,0,Il,[On,Dn,xn],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,4,0,t.component.weekNames)},null)}function PI(e){return qs(0,[(e()(),Ds(0,0,null,null,0,"col",[],null,null,null,null,null))],null,null)}function RI(e){return qs(0,[(e()(),Ds(0,0,null,null,1,"tbody",[["kendoCalendarView",""],["role","rowgroup"]],null,[[null,"change"]],function(e,t,n){var i=!0;return"change"===t&&(i=!1!==e.component.handleDateChange(n)&&i),i},nD,$I)),sr(1,770048,null,0,mk,[JC,tC,Sn,fk,nn,Zr,ln],{isActive:[0,"isActive"],activeView:[1,"activeView"],cellUID:[2,"cellUID"],focusedDate:[3,"focusedDate"],selectedDate:[4,"selectedDate"],viewDate:[5,"viewDate"],min:[6,"min"],max:[7,"max"],weekNumber:[8,"weekNumber"],templateRef:[9,"templateRef"],weekNumberTemplateRef:[10,"weekNumberTemplateRef"]},{change:"change"})],function(e,t){var n=t.component;e(t,1,1,[n.isActive,n.activeView,n.cellUID,n.focusedDate,n.value,t.context.$implicit,n.min,n.max,n.weekNumber,n.cellTemplateRef,n.weekNumberTemplateRef])},null)}function VI(e){return qs(2,[Ms(402653184,1,{virtualization:0}),Ms(402653184,2,{list:0}),(e()(),Ds(2,0,null,null,1,"kendo-calendar-header",[],[[2,"k-calendar-header",null]],[[null,"today"]],function(e,t,n){var i=!0;return"today"===t&&(i=!1!==e.component.handleDateChange(n)&&i),i},HI,zI)),sr(3,770048,null,0,pk,[JC,Sn,Ed,tC],{activeView:[0,"activeView"],currentDate:[1,"currentDate"],min:[2,"min"],max:[3,"max"],templateRef:[4,"templateRef"]},{today:"today"}),(e()(),Is(16777216,null,null,1,null,MI)),sr(5,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Ds(6,0,null,null,8,"kendo-virtualization",[],[[2,"k-content",null],[2,"k-scrollable",null],[2,"k-scrollable-horizontal",null]],[[null,"pageChange"],[null,"scrollChange"],[null,"activeIndexChange"]],function(e,t,n){var i=!0,r=e.component;return"pageChange"===t&&(i=!1!==r.onPageChange(n)&&i),"scrollChange"===t&&(i=!1!==r.scrollChange(n)&&i),"activeIndexChange"===t&&(i=!1!==r.setActiveDate(n)&&i),i},OI,AI)),or(256,null,AS,OS,[]),sr(8,4964352,[[1,4]],0,RS,[AS,nn,ln,Zr],{itemHeight:[0,"itemHeight"],topOffset:[1,"topOffset"],bottomOffset:[2,"bottomOffset"],maxScrollDifference:[3,"maxScrollDifference"],scrollOffsetSize:[4,"scrollOffsetSize"],skip:[5,"skip"],take:[6,"take"],total:[7,"total"]},{activeIndexChange:"activeIndexChange",pageChange:"pageChange",scrollChange:"scrollChange"}),(e()(),Ds(9,0,[[2,0],["list",1]],0,5,"table",[],null,null,null,null,null)),(e()(),Ds(10,0,null,null,2,"colgroup",[],null,null,null,null,null)),(e()(),Is(16777216,null,null,1,null,PI)),sr(12,278528,null,0,Il,[On,Dn,xn],{ngForOf:[0,"ngForOf"]},null),(e()(),Is(16777216,null,null,1,null,RI)),sr(14,802816,null,0,dk,[On,Dn,xn],{kForOf:[0,"kForOf"]},null)],function(e,t){var n=t.component;e(t,3,0,n.activeView,n.activeDate,n.min,n.max,n.headerTitleTemplateRef),e(t,5,0,n.isMonthView()),e(t,8,0,n.viewHeight,n.viewOffset,n.bottomOffset,n.viewHeight,n.viewOffset,n.skip,n.take,n.total),e(t,12,0,n.cols),e(t,14,0,n.dates)},function(e,t){e(t,2,0,Wi(t,3).getComponentClass),e(t,6,0,Wi(t,8).wrapperClasses,Wi(t,8).wrapperClasses,Wi(t,8).horizontalClass)})}var zI=Yn({encapsulation:2,styles:[],data:{}});function LI(e){return qs(0,[(e()(),$s(0,null,["",""]))],null,function(e,t){e(t,0,0,t.component.title)})}function BI(e){return qs(0,[(e()(),Is(0,null,null,0))],null,null)}function HI(e){return qs(0,[(e()(),Ds(0,0,null,null,8,"span",[["class","k-button k-bare k-title"]],[[2,"k-state-disabled",null]],null,null,null,null)),sr(1,212992,null,0,Na,[nn,Zr,ln],{events:[0,"events"],scope:[1,"scope"]},null),Hs(2,{click:0}),(e()(),Is(16777216,null,null,1,null,LI)),sr(4,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,3,null,BI)),sr(6,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),sr(7,540672,null,0,Vl,[On],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),Hs(8,{$implicit:0,activeView:1,date:2}),(e()(),Ds(9,0,null,null,3,"span",[["class","k-today"]],[[2,"k-state-disabled",null]],null,null,null,null)),sr(10,212992,null,0,Na,[nn,Zr,ln],{events:[0,"events"],scope:[1,"scope"]},null),Hs(11,{click:0}),(e()(),$s(12,null,[" "," "]))],function(e,t){var n=t.component,i=e(t,2,0,n.handleNavigation);e(t,1,0,i,n),e(t,4,0,!n.templateRef),e(t,6,0,n.templateRef);var r=e(t,8,0,n.title,n.activeViewValue,n.currentDate);e(t,7,0,r,n.templateRef);var s=e(t,11,0,n.handleTodayClick);e(t,10,0,s,n)},function(e,t){var n=t.component;e(t,0,0,!n.navigate),e(t,9,0,!n.todayIsInRange),e(t,12,0,n.todayMessage)})}var $I=Yn({encapsulation:2,styles:[],data:{}});function jI(e){return qs(0,[(e()(),Ds(0,0,null,null,1,"td",[["class","k-empty"]],null,null,null,null,null)),(e()(),$s(-1,null,["\xa0"]))],null,null)}function UI(e){return qs(0,[(e()(),Ds(0,0,null,null,2,"tr",[["role","row"]],null,null,null,null,null)),(e()(),Ds(1,0,null,null,1,"th",[["scope","col"]],[[8,"colSpan",0]],null,null,null,null)),(e()(),$s(2,null,["",""]))],null,function(e,t){var n=t.component;e(t,1,0,n.colSpan),e(t,2,0,n.title)})}function qI(e){return qs(0,[(e()(),Ds(0,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),$s(1,null,["",""]))],null,function(e,t){e(t,1,0,t.context.$implicit)})}function WI(e){return qs(0,[(e()(),Ds(0,0,null,null,2,"tr",[["role","row"]],null,null,null,null,null)),(e()(),Is(16777216,null,null,1,null,qI)),sr(2,278528,null,0,Il,[On,Dn,xn],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,2,0,t.component.weekNames)},null)}function GI(e){return qs(0,[(e()(),$s(0,null,[" "," "]))],null,function(e,t){var n=t.component;e(t,0,0,n.getWeekNumber(n.firstDate(t.parent.parent.parent.context.$implicit)))})}function ZI(e){return qs(0,[(e()(),Is(0,null,null,0))],null,null)}function YI(e){return qs(0,[(e()(),Ds(0,0,null,null,6,"td",[["class","k-alt"]],null,null,null,null,null)),(e()(),Is(16777216,null,null,1,null,GI)),sr(2,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,3,null,ZI)),sr(4,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),sr(5,540672,null,0,Vl,[On],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),Hs(6,{$implicit:0,cellContext:1})],function(e,t){var n=t.component;e(t,2,0,!n.weekNumberTemplateRef),e(t,4,0,n.weekNumberTemplateRef);var i=e(t,6,0,n.firstDate(t.parent.parent.context.$implicit),n.getWeekNumberContext(t.parent.parent.context.$implicit));e(t,5,0,i,n.weekNumberTemplateRef)},null)}function KI(e){return qs(0,[(e()(),Is(16777216,null,null,1,null,YI)),sr(1,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),Is(0,null,null,0))],function(e,t){e(t,1,0,t.component.firstDate(t.parent.context.$implicit),Wi(t.parent.parent,0))},null)}function QI(e){return qs(0,[(e()(),$s(0,null,["",""]))],null,function(e,t){e(t,0,0,t.parent.parent.context.$implicit.formattedValue)})}function XI(e){return qs(0,[(e()(),Is(0,null,null,0))],null,null)}function JI(e){return qs(0,[(e()(),Ds(0,0,null,null,9,"td",[["role","gridcell"]],[[1,"id",0],[1,"data-cell-index",0],[1,"aria-selected",0],[8,"title",0]],null,null,null,null)),or(512,null,Cl,Sl,[xn,Cn,nn,ln]),sr(2,278528,null,0,El,[Cl],{ngClass:[0,"ngClass"]},null),(e()(),Ds(3,0,null,null,6,"span",[["class","k-link"]],null,null,null,null,null)),(e()(),Is(16777216,null,null,1,null,QI)),sr(5,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,3,null,XI)),sr(7,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),sr(8,540672,null,0,Vl,[On],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),Hs(9,{$implicit:0,cellContext:1})],function(e,t){var n=t.component;e(t,2,0,n.getStyles(t.parent.context.$implicit)),e(t,5,0,!n.templateRef),e(t,7,0,n.templateRef);var i=e(t,9,0,t.parent.context.$implicit.value,t.parent.context.$implicit);e(t,8,0,i,n.templateRef)},function(e,t){e(t,0,0,t.parent.context.$implicit.id,t.component.tableCellIndex(t.parent.parent.context.index,t.parent.context.index),t.parent.context.$implicit.isSelected||t.parent.context.$implicit.isRangeStart||t.parent.context.$implicit.isRangeMid||t.parent.context.$implicit.isRangeEnd,t.parent.context.$implicit.title)})}function eD(e){return qs(0,[(e()(),Ds(0,0,null,null,2,null,null,null,null,null,null,null)),(e()(),Is(16777216,null,null,1,null,JI)),sr(2,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),Is(0,null,null,0))],function(e,t){e(t,2,0,t.context.$implicit,Wi(t.parent.parent,0))},null)}function tD(e){return qs(0,[(e()(),Ds(0,0,null,null,4,"tr",[["role","row"]],null,null,null,null,null)),(e()(),Is(16777216,null,null,1,null,KI)),sr(2,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,1,null,eD)),sr(4,802816,null,0,dk,[On,Dn,xn],{kForOf:[0,"kForOf"]},null)],function(e,t){e(t,2,0,t.component.weekNumber),e(t,4,0,t.context.$implicit)},null)}function nD(e){return qs(0,[(e()(),Is(0,[["emptyCell",2]],null,0,null,jI)),(e()(),Is(16777216,null,null,1,null,UI)),sr(2,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,1,null,WI)),sr(4,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,1,null,tD)),sr(6,802816,null,0,dk,[On,Dn,xn],{kForOf:[0,"kForOf"]},null)],function(e,t){var n=t.component;e(t,2,0,!n.isHorizontal()),e(t,4,0,n.isMonthView()&&n.isHorizontal()),e(t,6,0,n.data)},null)}var iD=Yn({encapsulation:0,styles:["[_nghost-%COMP%] { position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden; }"],data:{}});function rD(e){return qs(0,[Ms(402653184,1,{expand:0}),Ms(402653184,2,{expandChild:0}),Ms(402653184,3,{shrink:0}),(e()(),Ds(3,0,[[1,0],["expand",1]],null,1,"div",[["style","position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;"]],null,null,null,null,null)),(e()(),Ds(4,0,[[2,0],["expandChild",1]],null,0,"div",[["style","position: absolute; left: 0; top: 0; transition: 0s;"]],null,null,null,null,null)),(e()(),Ds(5,0,[[3,0],["shrink",1]],null,1,"div",[["style","position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;"]],null,null,null,null,null)),(e()(),Ds(6,0,null,null,0,"div",[["style","position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;"]],null,null,null,null,null))],null,null)}var sD=Yn({encapsulation:2,styles:[],data:{}});function oD(e){return qs(0,[(e()(),Is(0,null,null,0))],null,null)}function aD(e){return qs(0,[(e()(),Is(16777216,null,null,2,null,oD)),sr(1,16384,null,0,Yd,[On],{templateContext:[0,"templateContext"]},null),Hs(2,{templateRef:0,$implicit:1}),(e()(),Is(0,null,null,0))],function(e,t){var n=t.component,i=e(t,2,0,n.valueTemplate.templateRef,n.dataItem);e(t,1,0,i)},null)}function lD(e){return qs(0,[(e()(),$s(0,null,["",""]))],null,function(e,t){e(t,0,0,t.component.getText())})}function hD(e){return qs(0,[(e()(),Ds(0,0,null,null,8,"span",[["class","k-list-filter"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==n.stopImmediatePropagation()&&i),i},null,null)),(e()(),Ds(1,0,null,null,6,"input",[["class","k-textbox"],["tabindex","-1"]],[[8,"dir",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keydown"],[null,"input"],[null,"focus"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==Wi(e,2)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==Wi(e,2).onTouched()&&i),"compositionstart"===t&&(i=!1!==Wi(e,2)._compositionStart()&&i),"compositionend"===t&&(i=!1!==Wi(e,2)._compositionEnd(n.target.value)&&i),"ngModelChange"===t&&(i=!1!==(r.filterText=n)&&i),"keydown"===t&&(i=!1!==r.keydown(n)&&i),"input"===t&&(i=!1!==r.handleFilter(n)&&i),"focus"===t&&(i=!1!==r.onFilterFocus()&&i),"blur"===t&&(i=!1!==r.blurFilterInput()&&i),i},null,null)),sr(2,16384,null,0,uu,[ln,nn,[2,hu]],null,null),or(1024,null,au,function(e){return[e]},[uu]),sr(4,671744,null,0,ec,[[8,null],[8,null],[8,null],[6,au]],{model:[0,"model"]},{update:"ngModelChange"}),or(2048,null,fu,null,[ec]),sr(6,16384,null,0,mu,[[4,fu]],null,null),sr(7,540672,null,0,op,[nn,Zr],{focused:[0,"focused"]},null),(e()(),Ds(8,0,null,null,0,"span",[["class","k-icon k-i-search"],["unselectable","on"]],null,null,null,null,null))],function(e,t){var n=t.component;e(t,4,0,n.filterText),e(t,7,0,n.isFocused&&!n.touchEnabled)},function(e,t){e(t,1,0,t.component.direction,Wi(t,6).ngClassUntouched,Wi(t,6).ngClassTouched,Wi(t,6).ngClassPristine,Wi(t,6).ngClassDirty,Wi(t,6).ngClassValid,Wi(t,6).ngClassInvalid,Wi(t,6).ngClassPending)})}function uD(e){return qs(0,[(e()(),Ds(0,0,null,null,5,"div",[["class","k-list-optionlabel"],["kendoDropDownsSelectable",""]],[[1,"index",0],[2,"k-state-focused",null],[2,"k-state-selected",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==Wi(e,4).onClick(n)&&i),i},null,null)),or(512,null,Cl,Sl,[xn,Cn,nn,ln]),sr(2,278528,null,0,El,[Cl],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Hs(3,{"k-state-disabled":0}),sr(4,16384,null,0,Kd,[Vd],{index:[0,"index"]},null),(e()(),$s(5,null,[" "," "]))],function(e,t){var n=e(t,3,0,t.component.isDisabledDefaultItem);e(t,2,0,"k-list-optionlabel",n),e(t,4,0,-1)},function(e,t){var n=t.component;e(t,0,0,Wi(t,4).index,Wi(t,4).focusedClassName,Wi(t,4).selectedClassName),e(t,5,0,n.getDefaultItemText())})}function cD(e){return qs(0,[(e()(),Is(0,null,null,0))],null,null)}function dD(e){return qs(0,[(e()(),Ds(0,0,null,null,7,"div",[["class","k-list-optionlabel"],["kendoDropDownsSelectable",""]],[[1,"index",0],[2,"k-state-focused",null],[2,"k-state-selected",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==Wi(e,4).onClick(n)&&i),i},null,null)),or(512,null,Cl,Sl,[xn,Cn,nn,ln]),sr(2,278528,null,0,El,[Cl],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Hs(3,{"k-state-disabled":0}),sr(4,16384,null,0,Kd,[Vd],{index:[0,"index"]},null),(e()(),Is(16777216,null,null,2,null,cD)),sr(6,16384,null,0,Yd,[On],{templateContext:[0,"templateContext"]},null),Hs(7,{templateRef:0,$implicit:1})],function(e,t){var n=t.component,i=e(t,3,0,n.isDisabledDefaultItem);e(t,2,0,"k-list-optionlabel",i),e(t,4,0,-1);var r=e(t,7,0,n.itemTemplate.templateRef,n.defaultItem);e(t,6,0,r)},function(e,t){e(t,0,0,Wi(t,4).index,Wi(t,4).focusedClassName,Wi(t,4).selectedClassName)})}function pD(e){return qs(0,[(e()(),Is(0,null,null,0))],null,null)}function fD(e){return qs(0,[(e()(),Is(16777216,null,null,2,null,pD)),sr(1,16384,null,0,Yd,[On],{templateContext:[0,"templateContext"]},null),Hs(2,{templateRef:0}),(e()(),Is(0,null,null,0))],function(e,t){var n=e(t,2,0,t.component.headerTemplate.templateRef);e(t,1,0,n)},null)}function mD(e){return qs(0,[(e()(),Is(0,null,null,0))],null,null)}function gD(e){return qs(0,[(e()(),Ds(0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),$s(1,null,["",""]))],null,function(e,t){e(t,1,0,t.component.noDataText)})}function vD(e){return qs(0,[(e()(),Ds(0,0,null,null,6,"div",[["class","k-nodata"]],null,null,null,null,null)),(e()(),Is(16777216,null,null,3,null,mD)),sr(2,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),sr(3,16384,null,0,Yd,[On],{templateContext:[0,"templateContext"]},null),Hs(4,{templateRef:0}),(e()(),Is(16777216,null,null,1,null,gD)),sr(6,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,2,0,n.noDataTemplate);var i=e(t,4,0,n.noDataTemplate?n.noDataTemplate.templateRef:void 0);e(t,3,0,i),e(t,6,0,!n.noDataTemplate)},null)}function yD(e){return qs(0,[(e()(),Is(0,null,null,0))],null,null)}function wD(e){return qs(0,[(e()(),Is(16777216,null,null,2,null,yD)),sr(1,16384,null,0,Yd,[On],{templateContext:[0,"templateContext"]},null),Hs(2,{templateRef:0}),(e()(),Is(0,null,null,0))],function(e,t){var n=e(t,2,0,t.component.footerTemplate.templateRef);e(t,1,0,n)},null)}function _D(e){return qs(0,[(e()(),Is(16777216,null,null,1,null,hD)),sr(1,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,1,null,uD)),sr(3,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,1,null,dD)),sr(5,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,1,null,fD)),sr(7,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Ds(8,0,null,null,1,"kendo-list",[],null,null,null,jD,CD)),sr(9,4898816,[[4,4],["optionsList",4]],0,Wd,[nn,Ld,Vd,Bd,Sn,Zr],{data:[0,"data"],textField:[1,"textField"],valueField:[2,"valueField"],height:[3,"height"],template:[4,"template"],groupTemplate:[5,"groupTemplate"],fixedGroupTemplate:[6,"fixedGroupTemplate"],show:[7,"show"],id:[8,"id"],optionPrefix:[9,"optionPrefix"]},null),(e()(),Is(16777216,null,null,1,null,vD)),sr(11,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,1,null,wD)),sr(13,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(0,null,null,0))],function(e,t){var n=t.component;e(t,1,0,n.filterable),e(t,3,0,n.defaultItem&&!n.itemTemplate),e(t,5,0,n.defaultItem&&n.itemTemplate),e(t,7,0,n.headerTemplate),e(t,9,0,n.data,n.textField,n.valueField,n.listHeight,n.itemTemplate,n.groupTemplate,n.fixedGroupTemplate,n.isOpen,n.listBoxId,n.optionPrefix),e(t,11,0,0===n.data.length),e(t,13,0,n.footerTemplate)},null)}function bD(e){return qs(0,[(e()(),Ds(0,0,null,null,1,"kendo-resize-sensor",[],null,[[null,"resize"]],function(e,t,n){var i=!0;return"resize"===t&&(i=!1!==e.component.onResize()&&i),i},rD,iD)),sr(1,12763136,null,0,Pa,[Ma,nn,Zr,ln],null,{resize:"resize"})],null,null)}function xD(e){return qs(0,[Ms(402653184,1,{container:0}),Ms(402653184,2,{popupTemplate:0}),Ms(402653184,3,{wrapper:0}),Ms(671088640,4,{optionsList:0}),(e()(),Ds(4,0,null,null,2,null,null,null,null,null,null,null)),or(6144,null,Qd,null,[Xd]),sr(6,737280,null,0,Xd,[Ed],{noDataText:[0,"noDataText"]},null),(e()(),Ds(7,0,[[3,0],["wrapper",1]],null,13,"span",[["role","listbox"],["unselectable","on"]],[[8,"id",0],[1,"dir",0],[1,"readonly",0],[1,"tabindex",0],[1,"aria-disabled",0],[1,"aria-readonly",0],[1,"aria-haspopup",0],[1,"aria-expanded",0],[1,"aria-owns",0],[1,"aria-activedescendant",0],[1,"aria-label",0]],[[null,"focus"],[null,"blur"],[null,"keydown"],[null,"keypress"],[null,"click"]],function(e,t,n){var i=!0,r=e.component;return"focus"===t&&(i=!1!==r.focusComponent()&&i),"blur"===t&&(i=!1!==r.blurComponent()&&i),"keydown"===t&&(i=!1!==r.keydown(n)&&i),"keypress"===t&&(i=!1!==r.keypress(n)&&i),"click"===t&&(i=!1!==r.click()&&i),i},null,null)),or(512,null,Cl,Sl,[xn,Cn,nn,ln]),sr(9,278528,null,0,El,[Cl],{ngClass:[0,"ngClass"]},null),Hs(10,{"k-dropdown-wrap":0,"k-state-default":1,"k-state-disabled":2,"k-state-focused":3}),(e()(),Ds(11,0,null,null,4,"span",[["class","k-input"],["unselectable","on"]],null,null,null,null,null)),(e()(),Is(16777216,null,null,1,null,aD)),sr(13,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,1,null,lD)),sr(15,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Ds(16,0,null,null,3,"span",[["class","k-select"],["unselectable","on"]],null,null,null,null,null)),(e()(),Ds(17,0,null,null,2,"span",[["class","k-icon"]],null,null,null,null,null)),or(512,null,Cl,Sl,[xn,Cn,nn,ln]),sr(19,278528,null,0,El,[Cl],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),Is(0,[[2,2],["popupTemplate",2]],null,0,null,_D)),(e()(),Is(16777216,null,null,1,null,bD)),sr(22,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Ds(23,16777216,[[1,3],["container",1]],null,0,null,null,null,null,null,null,null))],function(e,t){var n=t.component;e(t,6,0,"NO DATA FOUND");var i=e(t,10,0,!0,!n.disabled,n.disabled,n.isFocused);e(t,9,0,i),e(t,13,0,n.valueTemplate),e(t,15,0,!n.valueTemplate),e(t,19,0,"k-icon",n.buttonClasses),e(t,22,0,n.isOpen)},function(e,t){var n=t.component;e(t,7,1,[n.focusableId,n.direction,n.readonly,n.widgetTabIndex,n.disabled,n.readonly,n.ariaHasPopup,n.ariaExpanded,n.ariaOwns,n.ariaActivedescendant,n.noDataLabel])})}var CD=Yn({encapsulation:2,styles:[],data:{}});function SD(e){return qs(0,[(e()(),Is(0,null,null,0))],null,null)}function kD(e){return qs(0,[(e()(),Is(16777216,null,null,2,null,SD)),sr(1,16384,null,0,Yd,[On],{templateContext:[0,"templateContext"]},null),Hs(2,{templateRef:0,$implicit:1}),(e()(),Is(0,null,null,0))],function(e,t){var n=t.component,i=e(t,2,0,n.fixedGroupTemplate.templateRef,null==n.currentGroup?null:n.currentGroup.value);e(t,1,0,i)},null)}function ED(e){return qs(0,[(e()(),Ds(0,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),$s(1,null,["",""]))],null,function(e,t){var n=t.component;e(t,1,0,null==n.currentGroup?null:n.currentGroup.value.toString().toUpperCase())})}function TD(e){return qs(0,[(e()(),Ds(0,0,null,null,4,"div",[["class","k-outer-group-header k-first"]],null,null,null,null,null)),(e()(),Is(16777216,null,null,1,null,kD)),sr(2,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,1,null,ED)),sr(4,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,2,0,n.fixedGroupTemplate),e(t,4,0,!n.fixedGroupTemplate)},null)}function ID(e){return qs(0,[(e()(),Is(0,null,null,0))],null,null)}function DD(e){return qs(0,[(e()(),Is(16777216,null,null,2,null,ID)),sr(1,16384,null,0,Yd,[On],{templateContext:[0,"templateContext"]},null),Hs(2,{templateRef:0,$implicit:1}),(e()(),Is(0,null,null,0))],function(e,t){var n=e(t,2,0,t.component.template.templateRef,t.parent.context.$implicit);e(t,1,0,n)},null)}function AD(e){return qs(0,[(e()(),$s(0,null,["",""]))],null,function(e,t){e(t,0,0,t.component.getText(t.parent.context.$implicit))})}function OD(e){return qs(0,[(e()(),Ds(0,0,null,null,9,"li",[["class","k-item"],["kendoDropDownsSelectable",""],["role","option"]],[[1,"id",0],[1,"tabIndex",0],[1,"index",0],[2,"k-state-focused",null],[2,"k-state-selected",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==Wi(e,5).onClick(n)&&i),i},null,null)),or(512,null,Cl,Sl,[xn,Cn,nn,ln]),sr(2,278528,null,0,El,[Cl],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Hs(3,{"k-state-disabled":0}),sr(4,16384,[[1,4]],0,qd,[nn],null,null),sr(5,16384,null,0,Kd,[Vd],{index:[0,"index"],multipleSelection:[1,"multipleSelection"]},null),(e()(),Is(16777216,null,null,1,null,DD)),sr(7,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,1,null,AD)),sr(9,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component,i=e(t,3,0,n.isDisabled(t.context.index));e(t,2,0,"k-item",i),e(t,5,0,t.context.index,n.multipleSelection),e(t,7,0,n.template),e(t,9,0,!n.template)},function(e,t){var n=t.component;e(t,0,0,n.optionPrefix+"-"+n.getValue(t.context.$implicit),-1,Wi(t,5).index,Wi(t,5).focusedClassName,Wi(t,5).selectedClassName)})}function ND(e){return qs(0,[(e()(),Is(16777216,null,null,1,null,OD)),sr(1,278528,null,0,Il,[On,Dn,xn],{ngForOf:[0,"ngForOf"]},null),(e()(),Is(0,null,null,0))],function(e,t){e(t,1,0,t.component.data)},null)}function FD(e){return qs(0,[(e()(),Is(0,null,null,0))],null,null)}function MD(e){return qs(0,[(e()(),Is(16777216,null,null,2,null,FD)),sr(1,16384,null,0,Yd,[On],{templateContext:[0,"templateContext"]},null),Hs(2,{templateRef:0,$implicit:1}),(e()(),Is(0,null,null,0))],function(e,t){var n=e(t,2,0,t.component.groupTemplate.templateRef,t.parent.parent.context.$implicit.value);e(t,1,0,n)},null)}function PD(e){return qs(0,[(e()(),Ds(0,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),$s(1,null,[" ",""]))],null,function(e,t){var n=t.parent.parent.context.$implicit.value.toString().toUpperCase();e(t,1,0,n)})}function RD(e){return qs(0,[(e()(),Ds(0,0,null,null,4,"li",[["class","k-outer-group-header"],["role","group"]],[[1,"group-index",0],[1,"id",0],[1,"tabIndex",0]],null,null,null,null)),(e()(),Is(16777216,null,null,1,null,MD)),sr(2,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,1,null,PD)),sr(4,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,2,0,n.groupTemplate),e(t,4,0,!n.groupTemplate)},function(e,t){var n=t.component;e(t,0,0,t.parent.context.$implicit.index,n.optionPrefix+"-"+n.getValue(t.parent.context.$implicit.value),-1)})}function VD(e){return qs(0,[(e()(),Is(0,null,null,0))],null,null)}function zD(e){return qs(0,[(e()(),Is(16777216,null,null,2,null,VD)),sr(1,16384,null,0,Yd,[On],{templateContext:[0,"templateContext"]},null),Hs(2,{templateRef:0,$implicit:1}),(e()(),Is(0,null,null,0))],function(e,t){var n=e(t,2,0,t.component.template.templateRef,t.parent.parent.context.$implicit.value);e(t,1,0,n)},null)}function LD(e){return qs(0,[(e()(),$s(0,null,["",""]))],null,function(e,t){e(t,0,0,t.component.getText(t.parent.parent.context.$implicit.value))})}function BD(e){return qs(0,[(e()(),Ds(0,0,null,null,9,"li",[["class","k-item"],["kendoDropDownsSelectable",""],["role","option"]],[[1,"absolute-index",0],[1,"id",0],[1,"tabIndex",0],[1,"index",0],[2,"k-state-focused",null],[2,"k-state-selected",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==Wi(e,5).onClick(n)&&i),i},null,null)),or(512,null,Cl,Sl,[xn,Cn,nn,ln]),sr(2,278528,null,0,El,[Cl],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Hs(3,{"k-state-disabled":0}),sr(4,16384,[[1,4]],0,qd,[nn],null,null),sr(5,16384,null,0,Kd,[Vd],{index:[0,"index"],multipleSelection:[1,"multipleSelection"]},null),(e()(),Is(16777216,null,null,1,null,zD)),sr(7,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,1,null,LD)),sr(9,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component,i=e(t,3,0,n.isDisabled(t.parent.context.$implicit.offsetIndex));e(t,2,0,"k-item",i),e(t,5,0,t.parent.context.$implicit.offsetIndex,n.multipleSelection),e(t,7,0,n.template),e(t,9,0,!n.template)},function(e,t){var n=t.component;e(t,0,0,t.parent.context.$implicit.index,n.optionPrefix+"-"+n.getValue(t.parent.context.$implicit.value),-1,Wi(t,5).index,Wi(t,5).focusedClassName,Wi(t,5).selectedClassName)})}function HD(e){return qs(0,[(e()(),Is(16777216,null,null,1,null,RD)),sr(1,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,1,null,BD)),sr(3,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(0,null,null,0))],function(e,t){e(t,1,0,t.context.$implicit.header&&t.context.$implicit.index),e(t,3,0,!t.context.$implicit.header)},null)}function $D(e){return qs(0,[(e()(),Is(16777216,null,null,1,null,HD)),sr(1,278528,null,0,Il,[On,Dn,xn],{ngForOf:[0,"ngForOf"]},null),(e()(),Is(0,null,null,0))],function(e,t){e(t,1,0,t.component.dataService.data)},null)}function jD(e){return qs(0,[Ms(671088640,1,{items:1}),Ms(402653184,2,{content:0}),(e()(),Is(16777216,null,null,1,null,TD)),sr(3,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Ds(4,0,[[2,0],["content",1]],null,5,"div",[["class","k-list-scroller"],["unselectable","on"]],[[4,"maxHeight",null]],null,null,null,null)),(e()(),Ds(5,0,null,null,4,"ul",[["class","k-list k-reset"],["role","listbox"]],[[1,"id",0],[1,"aria-hidden",0]],null,null,null,null)),(e()(),Is(16777216,null,null,1,null,ND)),sr(7,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,1,null,$D)),sr(9,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,3,0,n.dataService.grouped),e(t,7,0,!n.dataService.grouped),e(t,9,0,n.dataService.grouped)},function(e,t){var n=t.component;e(t,4,0,n.getHeight()),e(t,5,0,n.id,!n.show)})}var UD=Yn({encapsulation:2,styles:[],data:{}});function qD(e){return qs(0,[(e()(),Ds(0,0,null,null,10,"span",[["class","k-select"]],null,null,null,null,null)),sr(1,212992,null,0,Na,[nn,Zr,ln],{events:[0,"events"]},null),Hs(2,{mouseup:0,mouseleave:1}),(e()(),Ds(3,0,null,null,3,"span",[["class","k-link k-link-increase"]],[[1,"aria-label",0],[8,"title",0],[2,"k-state-active",null]],null,null,null,null)),sr(4,212992,null,0,Na,[nn,Zr,ln],{events:[0,"events"]},null),Hs(5,{mousedown:0}),(e()(),Ds(6,0,null,null,0,"span",[["class","k-icon k-i-arrow-n"]],null,null,null,null,null)),(e()(),Ds(7,0,null,null,3,"span",[["class","k-link k-link-decrease"]],[[1,"aria-label",0],[8,"title",0],[2,"k-state-active",null]],null,null,null,null)),sr(8,212992,null,0,Na,[nn,Zr,ln],{events:[0,"events"]},null),Hs(9,{mousedown:0}),(e()(),Ds(10,0,null,null,0,"span",[["class","k-icon k-i-arrow-s"]],null,null,null,null,null))],function(e,t){var n=t.component,i=e(t,2,0,n.releaseArrow,n.releaseArrow);e(t,1,0,i);var r=e(t,5,0,n.increasePress);e(t,4,0,r);var s=e(t,9,0,n.decreasePress);e(t,8,0,s)},function(e,t){var n=t.component;e(t,3,0,n.incrementTitle,n.incrementTitle,n.arrowDirection===n.ArrowDirection.Up),e(t,7,0,n.decrementTitle,n.decrementTitle,n.arrowDirection===n.ArrowDirection.Down)})}function WD(e){return qs(0,[Ms(402653184,1,{numericInput:0}),Ms(402653184,2,{numericWrap:0}),(e()(),Ds(2,0,null,null,2,null,null,null,null,null,null,null)),or(6144,null,Mw,null,[Vw]),sr(4,737280,null,0,Vw,[Ed],{decrement:[0,"decrement"],increment:[1,"increment"]},null),(e()(),Ds(5,0,[[2,0],["numericWrap",1]],null,7,"span",[["class","k-numeric-wrap"]],[[2,"k-state-disabled",null]],null,null,null,null)),sr(6,212992,null,0,Na,[nn,Zr,ln],{events:[0,"events"]},null),Hs(7,{mousewheel:0,DOMMouseScroll:1}),(e()(),Ds(8,0,[[1,0],["numericInput",1]],null,2,"input",[["autocomplete","off"],["autocorrect","off"],["class","k-input k-formatted-value"],["role","spinbutton"]],[[8,"id",0],[1,"aria-valuemin",0],[1,"aria-valuemax",0],[1,"aria-valuenow",0],[1,"title",0],[1,"placeholder",0],[8,"tabIndex",0],[8,"disabled",0],[8,"readOnly",0]],null,null,null,null)),sr(9,212992,null,0,Na,[nn,Zr,ln],{events:[0,"events"]},null),Hs(10,{dragenter:0,keydown:1,input:2,focus:3,blur:4,paste:5}),(e()(),Is(16777216,null,null,1,null,qD)),sr(12,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,4,0,"Decrease value","Increase value");var i=e(t,7,0,n.handleWheel,n.handleWheel);e(t,6,0,i);var r=e(t,10,0,n.handleDragEnter,n.handleKeyDown,n.handleInput,n.handleFocus,n.handleBlur,n.handlePaste);e(t,9,0,r),e(t,12,0,n.spinners)},function(e,t){var n=t.component;e(t,5,0,n.disabled),e(t,8,0,n.focusableId,n.min,n.max,n.value,n.title,n.placeholder,n.tabIndex,n.disabled,n.readonly)})}var GD=Yn({encapsulation:2,styles:[],data:{}});function ZD(e){return qs(0,[(e()(),Ds(0,0,null,null,11,"kendo-grid-filter-wrapper-cell",[],[[2,"k-filtercell",null],[2,"k-filtercell-wrapper",null]],null,null,FA,NA)),sr(1,1753088,null,2,aT,[EE],{operators:[0,"operators"],column:[1,"column"],filter:[2,"filter"],defaultOperator:[3,"defaultOperator"],showOperators:[4,"showOperators"]},null),Ms(603979776,1,{operatorList:1}),Ms(335544320,2,{input:0}),(e()(),Ds(4,0,null,0,7,"input",[["class","k-textbox"],["kendoFilterInput",""],["kendoGridFocusable",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var i=!0;return"input"===t&&(i=!1!==Wi(e,5)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==Wi(e,5).onTouched()&&i),"compositionstart"===t&&(i=!1!==Wi(e,5)._compositionStart()&&i),"compositionend"===t&&(i=!1!==Wi(e,5)._compositionEnd(n.target.value)&&i),i},null,null)),sr(5,16384,null,0,uu,[ln,nn,[2,hu]],null,null),or(1024,null,au,function(e){return[e]},[uu]),sr(7,671744,null,0,ec,[[8,null],[8,null],[8,null],[6,au]],{model:[0,"model"]},null),or(2048,null,fu,null,[ec]),sr(9,16384,null,0,mu,[[4,fu]],null,null),sr(10,4341760,null,0,$E,[[3,kE],nn,ln],null,null),sr(11,737280,[[2,4]],0,rT,[[4,au],Zr,nn,ln],{filterDelay:[0,"filterDelay"]},null)],function(e,t){var n=t.component;e(t,1,0,n.operators,n.column,n.filter,n.operator,n.showOperators),e(t,7,0,null==n.currentFilter?null:n.currentFilter.value),e(t,11,0,n.filterDelay)},function(e,t){e(t,0,0,Wi(t,1).overrideBaseClasses,Wi(t,1).hostClasses),e(t,4,0,Wi(t,9).ngClassUntouched,Wi(t,9).ngClassTouched,Wi(t,9).ngClassPristine,Wi(t,9).ngClassDirty,Wi(t,9).ngClassValid,Wi(t,9).ngClassInvalid,Wi(t,9).ngClassPending)})}function YD(e){return qs(0,[(e()(),Ds(0,0,null,null,2,"kendo-grid-string-filter-cell",[],[[2,"k-filtercell",null]],null,null,ZD,GD)),sr(1,1294336,null,1,uT,[EE,Ed],null,null),Ms(603979776,1,{operatorList:1})],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,Wi(t,1).hostClasses)})}var KD=Pi("kendo-grid-string-filter-cell",uT,YD,{column:"column",filter:"filter",operator:"operator",filterDelay:"filterDelay",showOperators:"showOperators"},{},[]),QD=Yn({encapsulation:2,styles:[],data:{}});function XD(e){return qs(0,[(e()(),Ds(0,0,null,null,20,"kendo-grid-filter-wrapper-cell",[],[[2,"k-filtercell",null],[2,"k-filtercell-wrapper",null]],null,null,FA,NA)),sr(1,1753088,null,2,aT,[EE],{operators:[0,"operators"],column:[1,"column"],filter:[2,"filter"],defaultOperator:[3,"defaultOperator"],showOperators:[4,"showOperators"]},null),Ms(603979776,1,{operatorList:1}),Ms(335544320,2,{input:0}),(e()(),Ds(4,0,null,0,16,"kendo-datepicker",[["kendoFilterInput",""]],[[2,"k-widget",null],[2,"k-datepicker",null],[2,"k-header",null],[2,"k-state-disabled",null]],null,null,xI,wI)),or(5120,null,vu,function(e){return[e]},[uk]),or(6144,null,Va,null,[uk]),or(256,null,kd,"kendo.datepicker",[]),or(131584,null,Ed,Ed,[kd,[2,xd],[2,Sd]]),or(512,null,US,US,[]),sr(10,770048,null,8,uk,[Zr,Ed,Sn,pl,nn,ln,Pe,US,[2,hk]],{activeView:[0,"activeView"],bottomView:[1,"bottomView"],topView:[2,"topView"],min:[3,"min"],max:[4,"max"],value:[5,"value"],format:[6,"format"],formatPlaceholder:[7,"formatPlaceholder"],placeholder:[8,"placeholder"],weekNumber:[9,"weekNumber"]},null),Ms(335544320,3,{cellTemplate:0}),Ms(335544320,4,{monthCellTemplate:0}),Ms(335544320,5,{yearCellTemplate:0}),Ms(335544320,6,{decadeCellTemplate:0}),Ms(335544320,7,{centuryCellTemplate:0}),Ms(335544320,8,{weekNumberTemplate:0}),Ms(335544320,9,{headerTitleTemplate:0}),Ms(335544320,10,{navigationItemTemplate:0}),or(1024,null,au,function(e){return[e]},[uk]),sr(20,737280,[[2,4]],0,rT,[[4,au],Zr,nn,ln],{value:[0,"value"]},null)],function(e,t){var n=t.component;e(t,1,0,n.operators,n.column,n.filter,n.operator,n.showOperators),e(t,10,0,n.activeView,n.bottomView,n.topView,n.min,n.max,null==n.currentFilter?null:n.currentFilter.value,n.format,n.formatPlaceholder,n.placeholder,n.weekNumber),e(t,20,0,null==n.currentFilter?null:n.currentFilter.value)},function(e,t){e(t,0,0,Wi(t,1).overrideBaseClasses,Wi(t,1).hostClasses),e(t,4,0,Wi(t,10).wrapperClasses,Wi(t,10).wrapperClasses,Wi(t,10).wrapperClasses,Wi(t,10).disabledClass)})}function JD(e){return qs(0,[(e()(),Ds(0,0,null,null,2,"kendo-grid-date-filter-cell",[],[[2,"k-filtercell",null]],null,null,XD,QD)),sr(1,1294336,null,1,yT,[EE,Ed],null,null),Ms(603979776,1,{operatorList:1})],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,Wi(t,1).hostClasses)})}var eA=Pi("kendo-grid-date-filter-cell",yT,JD,{column:"column",filter:"filter",operator:"operator",format:"format",min:"min",max:"max",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",activeView:"activeView",bottomView:"bottomView",topView:"topView",weekNumber:"weekNumber",showOperators:"showOperators"},{},[]),tA=Yn({encapsulation:2,styles:[],data:{}});function nA(e){return qs(0,[(e()(),Ds(0,0,null,null,17,"kendo-dropdownlist",[["class","k-filter-and"],["textField","text"],["valueField","value"]],[[2,"k-widget",null],[2,"k-dropdown",null],[2,"k-header",null],[1,"dir",0]],[[null,"valueChange"]],function(e,t,n){var i=!0;return"valueChange"===t&&(i=!1!==e.component.logicChange(n)&&i),i},xD,sD)),or(5120,null,au,function(e){return[e]},[Zd]),or(6144,null,Ud,null,[Zd]),or(6144,null,Va,null,[Zd]),or(256,null,kd,"kendo.dropdownlist",[]),or(131584,null,Ed,Ed,[kd,[2,xd],[2,Sd]]),or(512,null,Vd,Vd,[]),or(512,null,Ld,Ld,[]),or(512,null,Bd,Bd,[Ld]),or(512,null,$d,$d,[Bd,Vd]),sr(10,770048,null,7,Zd,[Ed,pl,Vd,$d,Bd,Ld,Zr,ln,nn,Sn,[2,Gd]],{data:[0,"data"],value:[1,"value"],textField:[2,"textField"],valueField:[3,"valueField"],valuePrimitive:[4,"valuePrimitive"]},{valueChange:"valueChange"}),Ms(335544320,1,{itemTemplate:0}),Ms(335544320,2,{groupTemplate:0}),Ms(335544320,3,{fixedGroupTemplate:0}),Ms(335544320,4,{valueTemplate:0}),Ms(335544320,5,{headerTemplate:0}),Ms(335544320,6,{footerTemplate:0}),Ms(335544320,7,{noDataTemplate:0})],function(e,t){var n=t.component;e(t,10,0,n.logicOperators,null==n.filter?null:n.filter.logic,"text","value",!0)},function(e,t){e(t,0,0,Wi(t,10).widgetClasses,Wi(t,10).widgetClasses,Wi(t,10).widgetClasses,Wi(t,10).dir)})}function iA(e){return qs(0,[(e()(),Ds(0,0,null,null,1,"kendo-grid-numeric-filter-menu-input",[],null,null,null,$A,HA)),sr(1,49152,null,0,HT,[],{operators:[0,"operators"],column:[1,"column"],filter:[2,"filter"],currentFilter:[3,"currentFilter"],filterService:[4,"filterService"],step:[5,"step"],min:[6,"min"],max:[7,"max"],spinners:[8,"spinners"],decimals:[9,"decimals"],format:[10,"format"]},null)],function(e,t){var n=t.component;e(t,1,1,[n.operators,n.column,n.filter,n.secondFilter,n.filterService,n.step,n.min,n.max,n.spinners,n.decimals,n.format])},null)}function rA(e){return qs(0,[(e()(),Ds(0,0,null,null,1,"kendo-grid-numeric-filter-menu-input",[],null,null,null,$A,HA)),sr(1,49152,null,0,HT,[],{operators:[0,"operators"],column:[1,"column"],filter:[2,"filter"],currentFilter:[3,"currentFilter"],filterService:[4,"filterService"],step:[5,"step"],min:[6,"min"],max:[7,"max"],spinners:[8,"spinners"],decimals:[9,"decimals"],format:[10,"format"]},null),(e()(),Is(16777216,null,null,1,null,nA)),sr(3,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,1,null,iA)),sr(5,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,1,1,[n.operators,n.column,n.filter,n.firstFilter,n.filterService,n.step,n.min,n.max,n.spinners,n.decimals,n.format]),e(t,3,0,n.extra),e(t,5,0,n.extra)},null)}function sA(e){return qs(0,[(e()(),Ds(0,0,null,null,2,"kendo-grid-numeric-filter-menu",[],[[2,"k-filtercell",null]],null,null,rA,tA)),sr(1,1294336,null,1,BT,[Ed],null,null),Ms(603979776,1,{operatorList:1})],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,Wi(t,1).hostClasses)})}var oA=Pi("kendo-grid-numeric-filter-menu",BT,sA,{column:"column",filter:"filter",operator:"operator",step:"step",min:"min",max:"max",spinners:"spinners",decimals:"decimals",format:"format",extra:"extra",filterService:"filterService"},{},[]),aA=Yn({encapsulation:2,styles:[],data:{}});function lA(e){return qs(0,[(e()(),Ds(0,0,null,null,17,"kendo-dropdownlist",[["class","k-filter-and"],["textField","text"],["valueField","value"]],[[2,"k-widget",null],[2,"k-dropdown",null],[2,"k-header",null],[1,"dir",0]],[[null,"valueChange"]],function(e,t,n){var i=!0;return"valueChange"===t&&(i=!1!==e.component.logicChange(n)&&i),i},xD,sD)),or(5120,null,au,function(e){return[e]},[Zd]),or(6144,null,Ud,null,[Zd]),or(6144,null,Va,null,[Zd]),or(256,null,kd,"kendo.dropdownlist",[]),or(131584,null,Ed,Ed,[kd,[2,xd],[2,Sd]]),or(512,null,Vd,Vd,[]),or(512,null,Ld,Ld,[]),or(512,null,Bd,Bd,[Ld]),or(512,null,$d,$d,[Bd,Vd]),sr(10,770048,null,7,Zd,[Ed,pl,Vd,$d,Bd,Ld,Zr,ln,nn,Sn,[2,Gd]],{data:[0,"data"],value:[1,"value"],textField:[2,"textField"],valueField:[3,"valueField"],valuePrimitive:[4,"valuePrimitive"]},{valueChange:"valueChange"}),Ms(335544320,1,{itemTemplate:0}),Ms(335544320,2,{groupTemplate:0}),Ms(335544320,3,{fixedGroupTemplate:0}),Ms(335544320,4,{valueTemplate:0}),Ms(335544320,5,{headerTemplate:0}),Ms(335544320,6,{footerTemplate:0}),Ms(335544320,7,{noDataTemplate:0})],function(e,t){var n=t.component;e(t,10,0,n.logicOperators,null==n.filter?null:n.filter.logic,"text","value",!0)},function(e,t){e(t,0,0,Wi(t,10).widgetClasses,Wi(t,10).widgetClasses,Wi(t,10).widgetClasses,Wi(t,10).dir)})}function hA(e){return qs(0,[(e()(),Ds(0,0,null,null,1,"kendo-grid-string-filter-menu-input",[],null,null,null,BA,LA)),sr(1,49152,null,0,zT,[],{operators:[0,"operators"],column:[1,"column"],filter:[2,"filter"],currentFilter:[3,"currentFilter"],filterService:[4,"filterService"]},null)],function(e,t){var n=t.component;e(t,1,0,n.operators,n.column,n.filter,n.secondFilter,n.filterService)},null)}function uA(e){return qs(0,[(e()(),Ds(0,0,null,null,1,"kendo-grid-string-filter-menu-input",[],null,null,null,BA,LA)),sr(1,49152,null,0,zT,[],{operators:[0,"operators"],column:[1,"column"],filter:[2,"filter"],currentFilter:[3,"currentFilter"],filterService:[4,"filterService"]},null),(e()(),Is(16777216,null,null,1,null,lA)),sr(3,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,1,null,hA)),sr(5,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,1,0,n.operators,n.column,n.filter,n.firstFilter,n.filterService),e(t,3,0,n.extra),e(t,5,0,n.extra)},null)}function cA(e){return qs(0,[(e()(),Ds(0,0,null,null,2,"kendo-grid-string-filter-menu",[],[[2,"k-filtercell",null]],null,null,uA,aA)),sr(1,1294336,null,1,LT,[Ed],null,null),Ms(603979776,1,{operatorList:1})],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,Wi(t,1).hostClasses)})}var dA=Pi("kendo-grid-string-filter-menu",LT,cA,{column:"column",filter:"filter",operator:"operator",extra:"extra",filterService:"filterService"},{},[]),pA=Yn({encapsulation:2,styles:[],data:{}});function fA(e){return qs(0,[(e()(),Ds(0,0,null,null,17,"kendo-dropdownlist",[["class","k-filter-and"],["textField","text"],["valueField","value"]],[[2,"k-widget",null],[2,"k-dropdown",null],[2,"k-header",null],[1,"dir",0]],[[null,"valueChange"]],function(e,t,n){var i=!0;return"valueChange"===t&&(i=!1!==e.component.logicChange(n)&&i),i},xD,sD)),or(5120,null,au,function(e){return[e]},[Zd]),or(6144,null,Ud,null,[Zd]),or(6144,null,Va,null,[Zd]),or(256,null,kd,"kendo.dropdownlist",[]),or(131584,null,Ed,Ed,[kd,[2,xd],[2,Sd]]),or(512,null,Vd,Vd,[]),or(512,null,Ld,Ld,[]),or(512,null,Bd,Bd,[Ld]),or(512,null,$d,$d,[Bd,Vd]),sr(10,770048,null,7,Zd,[Ed,pl,Vd,$d,Bd,Ld,Zr,ln,nn,Sn,[2,Gd]],{data:[0,"data"],value:[1,"value"],textField:[2,"textField"],valueField:[3,"valueField"],valuePrimitive:[4,"valuePrimitive"]},{valueChange:"valueChange"}),Ms(335544320,1,{itemTemplate:0}),Ms(335544320,2,{groupTemplate:0}),Ms(335544320,3,{fixedGroupTemplate:0}),Ms(335544320,4,{valueTemplate:0}),Ms(335544320,5,{headerTemplate:0}),Ms(335544320,6,{footerTemplate:0}),Ms(335544320,7,{noDataTemplate:0})],function(e,t){var n=t.component;e(t,10,0,n.logicOperators,null==n.filter?null:n.filter.logic,"text","value",!0)},function(e,t){e(t,0,0,Wi(t,10).widgetClasses,Wi(t,10).widgetClasses,Wi(t,10).widgetClasses,Wi(t,10).dir)})}function mA(e){return qs(0,[(e()(),Ds(0,0,null,null,1,"kendo-grid-date-filter-menu-input",[],null,null,null,UA,jA)),sr(1,180224,null,0,UT,[RE],{operators:[0,"operators"],column:[1,"column"],filter:[2,"filter"],currentFilter:[3,"currentFilter"],filterService:[4,"filterService"],format:[5,"format"],formatPlaceholder:[6,"formatPlaceholder"],placeholder:[7,"placeholder"],min:[8,"min"],max:[9,"max"],activeView:[10,"activeView"],bottomView:[11,"bottomView"],topView:[12,"topView"],weekNumber:[13,"weekNumber"]},null)],function(e,t){var n=t.component;e(t,1,1,[n.operators,n.column,n.filter,n.secondFilter,n.filterService,n.format,n.formatPlaceholder,n.placeholder,n.min,n.max,n.activeView,n.bottomView,n.topView,n.weekNumber])},null)}function gA(e){return qs(0,[(e()(),Ds(0,0,null,null,1,"kendo-grid-date-filter-menu-input",[],null,null,null,UA,jA)),sr(1,180224,null,0,UT,[RE],{operators:[0,"operators"],column:[1,"column"],filter:[2,"filter"],currentFilter:[3,"currentFilter"],filterService:[4,"filterService"],format:[5,"format"],formatPlaceholder:[6,"formatPlaceholder"],placeholder:[7,"placeholder"],min:[8,"min"],max:[9,"max"],activeView:[10,"activeView"],bottomView:[11,"bottomView"],topView:[12,"topView"],weekNumber:[13,"weekNumber"]},null),(e()(),Is(16777216,null,null,1,null,fA)),sr(3,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Is(16777216,null,null,1,null,mA)),sr(5,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,1,1,[n.operators,n.column,n.filter,n.firstFilter,n.filterService,n.format,n.formatPlaceholder,n.placeholder,n.min,n.max,n.activeView,n.bottomView,n.topView,n.weekNumber]),e(t,3,0,n.extra),e(t,5,0,n.extra)},null)}function vA(e){return qs(0,[(e()(),Ds(0,0,null,null,2,"kendo-grid-date-filter-menu",[],[[2,"k-filtercell",null]],null,null,gA,pA)),sr(1,1294336,null,1,$T,[Ed],null,null),Ms(603979776,1,{operatorList:1})],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,Wi(t,1).hostClasses)})}var yA=Pi("kendo-grid-date-filter-menu",$T,vA,{column:"column",filter:"filter",operator:"operator",format:"format",min:"min",max:"max",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",activeView:"activeView",bottomView:"bottomView",topView:"topView",weekNumber:"weekNumber",extra:"extra",filterService:"filterService"},{},[]),wA=Yn({encapsulation:2,styles:[],data:{}});function _A(e){return qs(0,[(e()(),Ds(0,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),Ds(1,0,null,null,0,"input",[["class","k-radio"],["type","radio"]],[[8,"name",0],[8,"checked",0],[1,"id",0]],[[null,"change"]],function(e,t,n){var i=!0;return"change"===t&&(i=!1!==e.component.onChange(e.context.$implicit.value)&&i),i},null,null)),(e()(),Ds(2,0,null,null,1,"label",[["class","k-radio-label"]],[[1,"for",0]],null,null,null,null)),(e()(),$s(3,null,["",""]))],null,function(e,t){var n=t.component;e(t,1,0,n.idPrefix,n.isSelected(t.context.$implicit.value),n.radioId(t.context.$implicit.value)),e(t,2,0,n.radioId(t.context.$implicit.value)),e(t,3,0,t.context.$implicit.text)})}function bA(e){return qs(0,[(e()(),Ds(0,0,null,null,2,"ul",[["class","k-radio-list k-reset"]],null,null,null,null,null)),(e()(),Is(16777216,null,null,1,null,_A)),sr(2,278528,null,0,Il,[On,Dn,xn],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,2,0,t.component.items)},null)}function xA(e){return qs(0,[(e()(),Ds(0,0,null,null,2,"kendo-grid-boolean-filter-menu",[],[[2,"k-filtercell",null],[2,"k-filtercell-boolean",null]],null,null,bA,wA)),sr(1,1294336,null,1,jT,[Ed],null,null),Ms(603979776,1,{operatorList:1})],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,Wi(t,1).hostClasses,Wi(t,1).hostClasses)})}var CA=Pi("kendo-grid-boolean-filter-menu",jT,xA,{column:"column",filter:"filter",filterService:"filterService"},{},[]),SA=Yn({encapsulation:2,styles:[],data:{}});function kA(e){return qs(0,[(e()(),Ds(0,0,null,null,12,"kendo-grid-filter-wrapper-cell",[],[[2,"k-filtercell",null],[2,"k-filtercell-wrapper",null]],null,null,FA,NA)),sr(1,1753088,null,2,aT,[EE],{operators:[0,"operators"],column:[1,"column"],filter:[2,"filter"],defaultOperator:[3,"defaultOperator"],showOperators:[4,"showOperators"]},null),Ms(603979776,1,{operatorList:1}),Ms(335544320,2,{input:0}),(e()(),Ds(4,0,null,0,8,"kendo-numerictextbox",[["kendoFilterInput",""],["kendoGridFocusable",""]],[[1,"dir",0],[2,"k-widget",null],[2,"k-numerictextbox",null]],null,null,WD,UD)),or(5120,null,vu,function(e){return[e]},[Fw]),or(6144,null,Va,null,[Fw]),or(256,null,kd,"kendo.numerictextbox",[]),or(131584,null,Ed,Ed,[kd,[2,xd],[2,Sd]]),sr(9,770048,null,0,Fw,[tC,ln,Ed,Pe,Zr,Sn,nn],{autoCorrect:[0,"autoCorrect"],format:[1,"format"],max:[2,"max"],min:[3,"min"],decimals:[4,"decimals"],step:[5,"step"],spinners:[6,"spinners"],value:[7,"value"]},null),sr(10,4341760,null,0,$E,[[3,kE],nn,ln],null,null),or(1024,null,au,function(e){return[e]},[Fw]),sr(12,737280,[[2,4]],0,rT,[[4,au],Zr,nn,ln],{filterDelay:[0,"filterDelay"],value:[1,"value"]},null)],function(e,t){var n=t.component;e(t,1,0,n.operators,n.column,n.filter,n.operator,n.showOperators),e(t,9,0,!0,n.format,n.max,n.min,n.decimals,n.step,n.spinners,null==n.currentFilter?null:n.currentFilter.value),e(t,12,0,n.filterDelay,null==n.currentFilter?null:n.currentFilter.value)},function(e,t){e(t,0,0,Wi(t,1).overrideBaseClasses,Wi(t,1).hostClasses),e(t,4,0,Wi(t,9).direction,Wi(t,9).widgetClasses,Wi(t,9).widgetClasses)})}function EA(e){return qs(0,[(e()(),Ds(0,0,null,null,2,"kendo-grid-numeric-filter-cell",[],[[2,"k-filtercell",null]],null,null,kA,SA)),sr(1,1294336,null,1,iT,[EE,Ed],null,null),Ms(603979776,1,{operatorList:1})],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,Wi(t,1).hostClasses)})}var TA=Pi("kendo-grid-numeric-filter-cell",iT,EA,{column:"column",filter:"filter",operator:"operator",step:"step",min:"min",max:"max",spinners:"spinners",decimals:"decimals",format:"format",filterDelay:"filterDelay",showOperators:"showOperators"},{},[]),IA=Yn({encapsulation:2,styles:[],data:{}});function DA(e){return qs(0,[(e()(),Ds(0,0,null,null,23,"kendo-grid-filter-wrapper-cell",[],[[2,"k-filtercell",null],[2,"k-filtercell-wrapper",null]],null,null,FA,NA)),sr(1,1753088,null,2,aT,[EE],{column:[0,"column"],filter:[1,"filter"],defaultOperator:[2,"defaultOperator"],showOperators:[3,"showOperators"]},null),Ms(603979776,1,{operatorList:1}),Ms(335544320,2,{input:0}),(e()(),Ds(4,0,null,0,19,"kendo-dropdownlist",[["kendoFilterInput",""],["textField","text"],["valueField","value"]],[[2,"k-widget",null],[2,"k-dropdown",null],[2,"k-header",null],[1,"dir",0]],null,null,xD,sD)),or(6144,null,Ud,null,[Zd]),or(6144,null,Va,null,[Zd]),or(256,null,kd,"kendo.dropdownlist",[]),or(131584,null,Ed,Ed,[kd,[2,xd],[2,Sd]]),or(512,null,Vd,Vd,[]),or(512,null,Ld,Ld,[]),or(512,null,Bd,Bd,[Ld]),or(512,null,$d,$d,[Bd,Vd]),sr(13,770048,null,7,Zd,[Ed,pl,Vd,$d,Bd,Ld,Zr,ln,nn,Sn,[2,Gd]],{data:[0,"data"],value:[1,"value"],textField:[2,"textField"],valueField:[3,"valueField"],popupSettings:[4,"popupSettings"],defaultItem:[5,"defaultItem"],valuePrimitive:[6,"valuePrimitive"]},null),Ms(335544320,3,{itemTemplate:0}),Ms(335544320,4,{groupTemplate:0}),Ms(335544320,5,{fixedGroupTemplate:0}),Ms(335544320,6,{valueTemplate:0}),Ms(335544320,7,{headerTemplate:0}),Ms(335544320,8,{footerTemplate:0}),Ms(335544320,9,{noDataTemplate:0}),Hs(21,{width:0}),or(1024,null,au,function(e){return[e]},[Zd]),sr(23,737280,[[2,4]],0,rT,[[4,au],Zr,nn,ln],{value:[0,"value"]},null)],function(e,t){var n=t.component;e(t,1,0,n.column,n.filter,n.operator,!1);var i=n.items,r=null==n.currentFilter?null:n.currentFilter.value,s=e(t,21,0,"auto");e(t,13,0,i,r,"text","value",s,n.defaultItem,!0),e(t,23,0,null==n.currentFilter?null:n.currentFilter.value)},function(e,t){e(t,0,0,Wi(t,1).overrideBaseClasses,Wi(t,1).hostClasses),e(t,4,0,Wi(t,13).widgetClasses,Wi(t,13).widgetClasses,Wi(t,13).widgetClasses,Wi(t,13).dir)})}function AA(e){return qs(0,[(e()(),Ds(0,0,null,null,2,"kendo-grid-boolean-filter-cell",[],[[2,"k-filtercell",null],[2,"k-filtercell-boolean",null]],null,null,DA,IA)),sr(1,1294336,null,1,mT,[EE,Ed,Sn],null,null),Ms(603979776,1,{operatorList:1})],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,Wi(t,1).hostClasses,Wi(t,1).hostClasses)})}var OA=Pi("kendo-grid-boolean-filter-cell",mT,AA,{column:"column",filter:"filter"},{},[]),NA=Yn({encapsulation:2,styles:[],data:{}});function FA(e){return qs(0,[Ls(null,0),(e()(),Ds(1,0,null,null,1,"kendo-grid-filter-cell-operators",[],[[2,"k-filtercell-operator",null]],[[null,"clear"],[null,"valueChange"]],function(e,t,n){var i=!0,r=e.component;return"clear"===t&&(i=!1!==r.onClear()&&i),"valueChange"===t&&(i=!1!==(r.currentOperator=n)&&i),i},RA,MA)),sr(2,114688,null,0,cT,[Ed],{operators:[0,"operators"],showButton:[1,"showButton"],showOperators:[2,"showOperators"],value:[3,"value"]},{valueChange:"valueChange",clear:"clear"})],function(e,t){var n=t.component;e(t,2,0,n.operators,n.showButton,n.showOperators,n.currentOperator)},function(e,t){e(t,1,0,Wi(t,2).hostClasses)})}var MA=Yn({encapsulation:2,styles:[],data:{}});function PA(e){return qs(0,[(e()(),Ds(0,0,null,null,19,"kendo-dropdownlist",[["class","k-dropdown-operator"],["iconClass","k-i-filter"],["kendoGridFocusable",""],["textField","text"],["valueField","value"]],[[2,"k-widget",null],[2,"k-dropdown",null],[2,"k-header",null],[1,"dir",0]],[[null,"valueChange"],[null,"keydown"]],function(e,t,n){var i=!0,r=e.component;return"valueChange"===t&&(i=!1!==r.onChange(n)&&i),"keydown"===t&&(i=!1!==r.dropdownKeydown(n)&&i),i},xD,sD)),or(5120,null,au,function(e){return[e]},[Zd]),or(6144,null,Ud,null,[Zd]),or(6144,null,Va,null,[Zd]),or(256,null,kd,"kendo.dropdownlist",[]),or(131584,null,Ed,Ed,[kd,[2,xd],[2,Sd]]),or(512,null,Vd,Vd,[]),or(512,null,Ld,Ld,[]),or(512,null,Bd,Bd,[Ld]),or(512,null,$d,$d,[Bd,Vd]),sr(10,770048,[[1,4],["dropdown",4]],7,Zd,[Ed,pl,Vd,$d,Bd,Ld,Zr,ln,nn,Sn,[2,Gd]],{iconClass:[0,"iconClass"],data:[1,"data"],value:[2,"value"],textField:[3,"textField"],valueField:[4,"valueField"],popupSettings:[5,"popupSettings"],valuePrimitive:[6,"valuePrimitive"]},{valueChange:"valueChange"}),Ms(335544320,2,{itemTemplate:0}),Ms(335544320,3,{groupTemplate:0}),Ms(335544320,4,{fixedGroupTemplate:0}),Ms(335544320,5,{valueTemplate:0}),Ms(335544320,6,{headerTemplate:0}),Ms(335544320,7,{footerTemplate:0}),Ms(335544320,8,{noDataTemplate:0}),Hs(18,{width:0}),sr(19,4341760,null,0,$E,[[3,kE],nn,ln],null,null)],function(e,t){var n=t.component,i=n.operators,r=n.value,s=e(t,18,0,"auto");e(t,10,0,"k-i-filter",i,r,"text","value",s,!0)},function(e,t){e(t,0,0,Wi(t,10).widgetClasses,Wi(t,10).widgetClasses,Wi(t,10).widgetClasses,Wi(t,10).dir)})}function RA(e){return qs(0,[Ms(671088640,1,{dropdown:0}),(e()(),Is(16777216,null,null,1,null,PA)),sr(2,16384,null,0,Al,[On,Dn],{ngIf:[0,"ngIf"]},null),(e()(),Ds(3,0,null,null,5,"button",[["class","k-button k-button-icon"],["kendoGridFocusable",""]],[[8,"title",0]],[[null,"click"],[null,"keydown"]],function(e,t,n){var i=!0,r=e.component;return"click"===t&&(i=!1!==r.clearClick()&&i),"keydown"===t&&(i=!1!==r.clearKeydown(n)&&i),i},null,null)),or(512,null,Cl,Sl,[xn,Cn,nn,ln]),sr(5,278528,null,0,El,[Cl],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Hs(6,{"k-clear-button-visible":0}),sr(7,4341760,null,0,$E,[[3,kE],nn,ln],null,null),(e()(),Ds(8,0,null,null,0,"span",[["class","k-icon k-i-filter-clear"]],null,null,null,null,null))],function(e,t){var n=t.component;e(t,2,0,n.showOperators);var i=e(t,6,0,n.showButton);e(t,5,0,"k-button k-button-icon",i)},function(e,t){e(t,3,0,t.component.clearText)})}var VA=Yn({encapsulation:2,styles:[],data:{}});function zA(e){return qs(0,[(e()(),Ds(0,0,null,null,17,"kendo-dropdownlist",[["textField","text"],["valueField","value"]],[[2,"k-widget",null],[2,"k-dropdown",null],[2,"k-header",null],[1,"dir",0]],[[null,"valueChange"]],function(e,t,n){var i=!0;return"valueChange"===t&&(i=!1!==e.component.operatorChange(n)&&i),i},xD,sD)),or(5120,null,au,function(e){return[e]},[Zd]),or(6144,null,Ud,null,[Zd]),or(6144,null,Va,null,[Zd]),or(256,null,kd,"kendo.dropdownlist",[]),or(131584,null,Ed,Ed,[kd,[2,xd],[2,Sd]]),or(512,null,Vd,Vd,[]),or(512,null,Ld,Ld,[]),or(512,null,Bd,Bd,[Ld]),or(512,null,$d,$d,[Bd,Vd]),sr(10,770048,null,7,Zd,[Ed,pl,Vd,$d,Bd,Ld,Zr,ln,nn,Sn,[2,Gd]],{data:[0,"data"],value:[1,"value"],textField:[2,"textField"],valueField:[3,"valueField"],valuePrimitive:[4,"valuePrimitive"]},{valueChange:"valueChange"}),Ms(335544320,1,{itemTemplate:0}),Ms(335544320,2,{groupTemplate:0}),Ms(335544320,3,{fixedGroupTemplate:0}),Ms(335544320,4,{valueTemplate:0}),Ms(335544320,5,{headerTemplate:0}),Ms(335544320,6,{footerTemplate:0}),Ms(335544320,7,{noDataTemplate:0}),Ls(null,0)],function(e,t){var n=t.component;e(t,10,0,n.operators,n.currentOperator,"text","value",!0)},function(e,t){e(t,0,0,Wi(t,10).widgetClasses,Wi(t,10).widgetClasses,Wi(t,10).widgetClasses,Wi(t,10).dir)})}var LA=Yn({encapsulation:2,styles:[],data:{}});function BA(e){return qs(0,[(e()(),Ds(0,0,null,null,10,"kendo-grid-filter-menu-input-wrapper",[],[[2,"k-filtercell",null]],null,null,zA,VA)),sr(1,1753088,null,2,VT,[],{operators:[0,"operators"],column:[1,"column"],filter:[2,"filter"],defaultOperator:[3,"defaultOperator"],filterService:[4,"filterService"],currentFilter:[5,"currentFilter"]},null),Ms(603979776,1,{operatorList:1}),Ms(335544320,2,{input:0}),(e()(),Ds(4,0,null,0,6,"input",[["class","k-textbox"],["kendoFilterInput",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var i=!0;return"input"===t&&(i=!1!==Wi(e,5)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==Wi(e,5).onTouched()&&i),"compositionstart"===t&&(i=!1!==Wi(e,5)._compositionStart()&&i),"compositionend"===t&&(i=!1!==Wi(e,5)._compositionEnd(n.target.value)&&i),i},null,null)),sr(5,16384,null,0,uu,[ln,nn,[2,hu]],null,null),or(1024,null,au,function(e){return[e]},[uu]),sr(7,671744,null,0,ec,[[8,null],[8,null],[8,null],[6,au]],{model:[0,"model"]},null),or(2048,null,fu,null,[ec]),sr(9,16384,null,0,mu,[[4,fu]],null,null),sr(10,737280,[[2,4]],0,rT,[[4,au],Zr,nn,ln],{filterDelay:[0,"filterDelay"]},null)],function(e,t){var n=t.component;e(t,1,0,n.operators,n.column,n.filter,n.operator,n.filterService,n.currentFilter),e(t,7,0,null==n.currentFilter?null:n.currentFilter.value),e(t,10,0,0)},function(e,t){e(t,0,0,Wi(t,1).hostClasses),e(t,4,0,Wi(t,9).ngClassUntouched,Wi(t,9).ngClassTouched,Wi(t,9).ngClassPristine,Wi(t,9).ngClassDirty,Wi(t,9).ngClassValid,Wi(t,9).ngClassInvalid,Wi(t,9).ngClassPending)})}var HA=Yn({encapsulation:2,styles:[],data:{}});function $A(e){return qs(0,[(e()(),Ds(0,0,null,null,11,"kendo-grid-filter-menu-input-wrapper",[],[[2,"k-filtercell",null]],null,null,zA,VA)),sr(1,1753088,null,2,VT,[],{operators:[0,"operators"],column:[1,"column"],filter:[2,"filter"],defaultOperator:[3,"defaultOperator"],filterService:[4,"filterService"],currentFilter:[5,"currentFilter"]},null),Ms(603979776,1,{operatorList:1}),Ms(335544320,2,{input:0}),(e()(),Ds(4,0,null,0,7,"kendo-numerictextbox",[["kendoFilterInput",""]],[[1,"dir",0],[2,"k-widget",null],[2,"k-numerictextbox",null]],null,null,WD,UD)),or(5120,null,vu,function(e){return[e]},[Fw]),or(6144,null,Va,null,[Fw]),or(256,null,kd,"kendo.numerictextbox",[]),or(131584,null,Ed,Ed,[kd,[2,xd],[2,Sd]]),sr(9,770048,null,0,Fw,[tC,ln,Ed,Pe,Zr,Sn,nn],{autoCorrect:[0,"autoCorrect"],format:[1,"format"],max:[2,"max"],min:[3,"min"],decimals:[4,"decimals"],step:[5,"step"],spinners:[6,"spinners"],value:[7,"value"]},null),or(1024,null,au,function(e){return[e]},[Fw]),sr(11,737280,[[2,4]],0,rT,[[4,au],Zr,nn,ln],{filterDelay:[0,"filterDelay"],value:[1,"value"]},null)],function(e,t){var n=t.component;e(t,1,0,n.operators,n.column,n.filter,n.operator,n.filterService,n.currentFilter),e(t,9,0,!0,n.format,n.max,n.min,n.decimals,n.step,n.spinners,null==n.currentFilter?null:n.currentFilter.value),e(t,11,0,0,null==n.currentFilter?null:n.currentFilter.value)},function(e,t){e(t,0,0,Wi(t,1).hostClasses),e(t,4,0,Wi(t,9).direction,Wi(t,9).widgetClasses,Wi(t,9).widgetClasses)})}var jA=Yn({encapsulation:2,styles:[],data:{}});function UA(e){return qs(0,[(e()(),Ds(0,0,null,null,20,"kendo-grid-filter-menu-input-wrapper",[],[[2,"k-filtercell",null]],null,null,zA,VA)),sr(1,1753088,null,2,VT,[],{operators:[0,"operators"],column:[1,"column"],filter:[2,"filter"],defaultOperator:[3,"defaultOperator"],filterService:[4,"filterService"],currentFilter:[5,"currentFilter"]},null),Ms(603979776,1,{operatorList:1}),Ms(335544320,2,{input:0}),(e()(),Ds(4,0,null,0,16,"kendo-datepicker",[["kendoFilterInput",""]],[[2,"k-widget",null],[2,"k-datepicker",null],[2,"k-header",null],[2,"k-state-disabled",null]],[[null,"open"]],function(e,t,n){var i=!0;return"open"===t&&(i=!1!==e.component.open(Wi(e,10))&&i),i},xI,wI)),or(5120,null,vu,function(e){return[e]},[uk]),or(6144,null,Va,null,[uk]),or(256,null,kd,"kendo.datepicker",[]),or(131584,null,Ed,Ed,[kd,[2,xd],[2,Sd]]),or(512,null,US,US,[]),sr(10,770048,[["picker",4]],8,uk,[Zr,Ed,Sn,pl,nn,ln,Pe,US,[2,hk]],{activeView:[0,"activeView"],bottomView:[1,"bottomView"],topView:[2,"topView"],min:[3,"min"],max:[4,"max"],value:[5,"value"],format:[6,"format"],formatPlaceholder:[7,"formatPlaceholder"],placeholder:[8,"placeholder"],weekNumber:[9,"weekNumber"]},{open:"open"}),Ms(335544320,3,{cellTemplate:0}),Ms(335544320,4,{monthCellTemplate:0}),Ms(335544320,5,{yearCellTemplate:0}),Ms(335544320,6,{decadeCellTemplate:0}),Ms(335544320,7,{centuryCellTemplate:0}),Ms(335544320,8,{weekNumberTemplate:0}),Ms(335544320,9,{headerTitleTemplate:0}),Ms(335544320,10,{navigationItemTemplate:0}),or(1024,null,au,function(e){return[e]},[uk]),sr(20,737280,[[2,4]],0,rT,[[4,au],Zr,nn,ln],{filterDelay:[0,"filterDelay"],value:[1,"value"]},null)],function(e,t){var n=t.component;e(t,1,0,n.operators,n.column,n.filter,n.operator,n.filterService,n.currentFilter),e(t,10,0,n.activeView,n.bottomView,n.topView,n.min,n.max,null==n.currentFilter?null:n.currentFilter.value,n.format,n.formatPlaceholder,n.placeholder,n.weekNumber),e(t,20,0,0,null==n.currentFilter?null:n.currentFilter.value)},function(e,t){e(t,0,0,Wi(t,1).hostClasses),e(t,4,0,Wi(t,10).wrapperClasses,Wi(t,10).wrapperClasses,Wi(t,10).wrapperClasses,Wi(t,10).disabledClass)})}var qA=Yn({encapsulation:0,styles:[[""]],data:{}});function WA(e){return qs(0,[(e()(),Ds(0,0,null,null,3,"div",[["style","text-align:center"]],null,null,null,null,null)),(e()(),Ds(1,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),$s(2,null,[" Welcome to ","! "])),(e()(),Ds(3,0,null,null,0,"img",[["alt","Angular Logo"],["src","data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg=="],["width","300"]],null,null,null,null,null)),(e()(),Ds(4,0,null,null,12,"ul",[],null,null,null,null,null)),(e()(),Ds(5,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),Ds(6,0,null,null,2,"h2",[],null,null,null,null,null)),(e()(),Ds(7,0,null,null,1,"a",[["href","https://angular.io/tutorial"],["rel","noopener"],["target","_blank"]],null,null,null,null,null)),(e()(),$s(-1,null,["Tour of Heroes"])),(e()(),Ds(9,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),Ds(10,0,null,null,2,"h2",[],null,null,null,null,null)),(e()(),Ds(11,0,null,null,1,"a",[["href","https://angular.io/cli"],["rel","noopener"],["target","_blank"]],null,null,null,null,null)),(e()(),$s(-1,null,["CLI Documentation"])),(e()(),Ds(13,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),Ds(14,0,null,null,2,"h2",[],null,null,null,null,null)),(e()(),Ds(15,0,null,null,1,"a",[["href","https://blog.angular.io/"],["rel","noopener"],["target","_blank"]],null,null,null,null,null)),(e()(),$s(-1,null,["Angular blog"]))],null,function(e,t){e(t,2,0,t.component.title)})}function GA(e){return qs(0,[(e()(),Ds(0,0,null,null,1,"app-root",[],null,null,null,WA,qA)),sr(1,49152,null,0,ea.a,[],null,null)],null,null)}var ZA=Pi("app-root",ea.a,GA,{},{},[]);function YA(){return"undefined"!=typeof process}function KA(e){switch(e.length){case 0:return new Wa;case 1:return e[0];default:return new Ga(e)}}function QA(e,t,n,i,r={},s={}){const o=[],a=[];let l=-1,h=null;if(i.forEach(e=>{const n=e.offset,i=n==l,u=i&&h||{};Object.keys(e).forEach(n=>{let i=n,a=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,o),a){case Za:a=r[n];break;case Ha:a=s[n];break;default:a=t.normalizeStyleValue(n,i,a,o)}u[i]=a}),i||a.push(u),h=u,l=n}),o.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${o.join(e)}`)}return a}function XA(e,t,n,i){switch(t){case"start":e.onStart(()=>i(n&&JA(n,"start",e)));break;case"done":e.onDone(()=>i(n&&JA(n,"done",e)));break;case"destroy":e.onDestroy(()=>i(n&&JA(n,"destroy",e)))}}function JA(e,t,n){const i=n.totalTime,r=eO(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),s=e._data;return null!=s&&(r._data=s),r}function eO(e,t,n,i,r="",s=0,o){return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function tO(e,t,n){let i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function nO(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let iO=(e,t)=>!1,rO=(e,t)=>!1,sO=(e,t,n)=>[];const oO=YA();(oO||"undefined"!=typeof Element)&&(iO=((e,t)=>e.contains(t)),rO=(()=>{if(oO||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):rO}})(),sO=((e,t,n)=>{let i=[];if(n)i.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&i.push(n)}return i}));let aO=null,lO=!1;function hO(e){aO||(aO=("undefined"!=typeof document?document.body:null)||{},lO=!!aO.style&&"WebkitAppearance"in aO.style);let t=!0;return aO.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in aO.style)&&lO&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in aO.style),t}const uO=rO,cO=iO,dO=sO;function pO(e){const t={};return Object.keys(e).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}const fO=(()=>(class{validateStyleProperty(e){return hO(e)}matchesElement(e,t){return uO(e,t)}containsElement(e,t){return cO(e,t)}query(e,t,n){return dO(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,i,r,s=[],o){return new Wa(n,i)}}))(),mO=(()=>{class e{}return e.NOOP=new fO,e})(),gO=1e3,vO="{{",yO="ng-enter",wO="ng-leave",_O="ng-trigger",bO=".ng-trigger",xO="ng-animating",CO=".ng-animating";function SO(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:kO(parseFloat(t[1]),t[2])}function kO(e,t){switch(t){case"s":return e*gO;default:return e}}function EO(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let i,r=0,s="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};i=kO(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=kO(parseFloat(o),n[4]));const a=n[5];a&&(s=a)}else i=e;if(!n){let n=!1,s=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(s,0,`The provided timing value "${e}" is invalid.`)}return{duration:i,delay:r,easing:s}}(e,t,n)}function TO(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function IO(e,t,n={}){if(t)for(let i in e)n[i]=e[i];else TO(e,n);return n}function DO(e,t,n){return n?t+":"+n+";":""}function AO(e){let t="";for(let n=0;n<e.style.length;n++){const i=e.style.item(n);t+=DO(0,i,e.style.getPropertyValue(i))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=DO(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function OO(e,t,n){e.style&&(Object.keys(t).forEach(i=>{const r=LO(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),YA()&&AO(e))}function NO(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=LO(t);e.style[n]=""}),YA()&&AO(e))}function FO(e){return Array.isArray(e)?1==e.length?e[0]:ja(e):e}const MO=new RegExp(`${vO}\\s*(.+?)\\s*}}`,"g");function PO(e){let t=[];if("string"==typeof e){const n=e.toString();let i;for(;i=MO.exec(n);)t.push(i[1]);MO.lastIndex=0}return t}function RO(e,t,n){const i=e.toString(),r=i.replace(MO,(e,i)=>{let r=t[i];return t.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),r=""),r.toString()});return r==i?e:r}function VO(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const zO=/-+([a-z0-9])/g;function LO(e){return e.replace(zO,(...e)=>e[1].toUpperCase())}function BO(e,t){return 0===e||0===t}function HO(e,t,n){const i=Object.keys(n);if(i.length&&t.length){let s=t[0],o=[];if(i.forEach(e=>{s.hasOwnProperty(e)||o.push(e),s[e]=n[e]}),o.length)for(var r=1;r<t.length;r++){let n=t[r];o.forEach(function(t){n[t]=jO(e,t)})}}return t}function $O(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error(`Unable to resolve animation metadata node #${t.type}`)}}function jO(e,t){return window.getComputedStyle(e)[t]}const UO="*";function qO(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>(function(e,t,n){if(":"==e[0]){const i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}const i=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const r=i[1],s=i[2],o=i[3];t.push(ZO(r,o)),"<"!=s[0]||r==UO&&o==UO||t.push(ZO(o,r))})(e,n,t)):n.push(e),n}const WO=new Set(["true","1"]),GO=new Set(["false","0"]);function ZO(e,t){const n=WO.has(e)||GO.has(e),i=WO.has(t)||GO.has(t);return(r,s)=>{let o=e==UO||e==r,a=t==UO||t==s;return!o&&n&&"boolean"==typeof r&&(o=r?WO.has(e):GO.has(e)),!a&&i&&"boolean"==typeof s&&(a=s?WO.has(t):GO.has(t)),o&&a}}const YO=":self",KO=new RegExp(`s*${YO}s*,?`,"g");function QO(e,t,n){return new JO(e).build(t,n)}const XO="";class JO{constructor(e){this._driver=e}build(e,t){const n=new eN(t);return this._resetContextStyleTimingState(n),$O(this,FO(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=XO,e.collectedStyles={},e.collectedStyles[XO]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0;const r=[],s=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,i=n.name;i.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,r.push(this.visitState(n,t))}),n.name=i}else if(1==e.type){const r=this.visitTransition(e,t);n+=r.queryCount,i+=r.depCount,s.push(r)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:r,transitions:s,queryCount:n,depCount:i,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){const r=new Set,s=i||{};if(n.styles.forEach(e=>{if(tN(e)){const t=e;Object.keys(t).forEach(e=>{PO(t[e]).forEach(e=>{s.hasOwnProperty(e)||r.add(e)})})}}),r.size){const n=VO(r.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=$O(this,FO(e.animation),t);return{type:1,matchers:qO(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:nN(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>$O(this,e,t)),options:nN(e.options)}}visitGroup(e,t){const n=t.currentTime;let i=0;const r=e.steps.map(e=>{t.currentTime=n;const r=$O(this,e,t);return i=Math.max(i,t.currentTime),r});return t.currentTime=i,{type:3,steps:r,options:nN(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return iN(EO(e,t).duration,0,"");const i=e;if(i.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=iN(0,0,"");return e.dynamic=!0,e.strValue=i,e}return iN((n=n||EO(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);let i;t.currentAnimateTimings=n;let r=e.styles?e.styles:Ua({});if(5==r.type)i=this.visitKeyframes(r,t);else{let r=e.styles,s=!1;if(!r){s=!0;const e={};n.easing&&(e.easing=n.easing),r=Ua(e)}t.currentTime+=n.duration+n.delay;const o=this.visitStyle(r,t);o.isEmptyStep=s,i=o}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==Ha?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let i=!1,r=null;return n.forEach(e=>{if(tN(e)){const t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(let e in t)if(t[e].toString().indexOf(vO)>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let i=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const s=t.collectedStyles[t.currentQuerySelector],o=s[n];let a=!0;o&&(r!=i&&r>=o.startTime&&i<=o.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${i}ms"`),a=!1),r=o.startTime),a&&(s[n]={startTime:r,endTime:i}),t.options&&function(i,r,s){const o=t.options.params||{},a=PO(e[n]);a.length&&a.forEach(e=>{o.hasOwnProperty(e)||s.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(0,0,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const r=[];let s=!1,o=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(tN(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(tN(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),h=0;return null!=l&&(i++,h=n.offset=l),o=o||h<0||h>1,s=s||h<a,a=h,r.push(h),n});o&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&t.errors.push("Please ensure that all keyframe offsets are in order");const h=e.steps.length;let u=0;i>0&&i<h?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(u=1/(h-1));const c=h-1,d=t.currentTime,p=t.currentAnimateTimings,f=p.duration;return l.forEach((e,i)=>{const s=u>0?i==c?1:u*i:r[i],o=s*f;t.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=s,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:$O(this,FO(e.animation),t),options:nN(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:nN(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:nN(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;const[r,s]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>e==YO);return t&&(e=e.replace(KO,"")),[e=e.replace(/@\*/g,bO).replace(/@\w+/g,e=>bO+"-"+e.substr(1)).replace(/:animating/g,CO),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,tO(t.collectedStyles,t.currentQuerySelector,{});const o=$O(this,FO(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:o,originalSelector:e.selector,options:nN(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:EO(e.timings,t.errors,!0);return{type:12,animation:$O(this,FO(e.animation),t),timings:n,options:null}}}class eN{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function tN(e){return!Array.isArray(e)&&"object"==typeof e}function nN(e){var t;return e?(e=TO(e)).params&&(e.params=(t=e.params)?TO(t):null):e={},e}function iN(e,t,n){return{duration:e,delay:t,easing:n}}function rN(e,t,n,i,r,s,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class sN{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const oN=1,aN=new RegExp(":enter","g"),lN=new RegExp(":leave","g");function hN(e,t,n,i,r,s={},o={},a,l,h=[]){return(new uN).buildKeyframes(e,t,n,i,r,s,o,a,l,h)}class uN{buildKeyframes(e,t,n,i,r,s,o,a,l,h=[]){l=l||new sN;const u=new dN(e,t,l,i,r,h,[]);u.options=a,u.currentTimeline.setStyles([s],null,u.errors,a),$O(this,n,u);const c=u.timelines.filter(e=>e.containsAnimation());if(c.length&&Object.keys(o).length){const e=c[c.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,u.errors,a)}return c.length?c.map(e=>e.buildKeyframes()):[rN(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,s=this._visitSubInstructions(n,i,i.options);r!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let i=t.currentTimeline.currentTime;const r=null!=n.duration?SO(n.duration):null,s=null!=n.delay?SO(n.delay):null;return 0!==r&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,r,s);i=Math.max(i,n.duration+n.delay)}),i}visitReference(e,t){t.updateOptions(e.options,!0),$O(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let i=t;const r=e.options;if(r&&(r.params||r.delay)&&((i=t.createSubContext(r)).transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=cN);const e=SO(r.delay);i.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>$O(this,e,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let i=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?SO(e.options.delay):0;e.steps.forEach(s=>{const o=t.createSubContext(e.options);r&&o.delayNextStep(r),$O(this,s,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return EO(t.params?RO(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());const r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,s=t.createSubContext().currentTimeline;s.easing=n.easing,e.styles.forEach(e=>{s.forwardTime((e.offset||0)*r),s.setStyles(e.styles,e.easing,t.errors,t.options),s.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(s),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?SO(i.delay):0;r&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=cN);let s=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{t.currentQueryIndex=i;const o=t.createSubContext(e.options,n);r&&o.delayNextStep(r),n===t.element&&(a=o.currentTimeline),$O(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,i=t.currentTimeline,r=e.timings,s=Math.abs(r.duration),o=s*(t.currentQueryTotal-1);let a=s*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const h=l.currentTime;$O(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-h+(i.startTime-n.currentTimeline.startTime)}}const cN={};class dN{constructor(e,t,n,i,r,s,o,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=cN,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new pN(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let i=this.options;null!=n.duration&&(i.duration=SO(n.duration)),null!=n.delay&&(i.delay=SO(n.delay));const r=n.params;if(r){let e=i.params;e||(e=this.options.params={}),Object.keys(r).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=RO(r[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const i=t||this.element,r=new dN(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=cN,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new fN(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,i,r,s){let o=[];if(i&&o.push(this.element),e.length>0){e=(e=e.replace(aN,"."+this._enterClassName)).replace(lN,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),o.push(...t)}return r||0!=o.length||s.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class pN{constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new pN(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=oN,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Ha,this._currentKeyframe[e]=Ha}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&(this._previousKeyframe.easing=t);const r=i&&i.params||{},s=function(e,t){const n={};let i;return e.forEach(e=>{"*"===e?(i=i||Object.keys(t)).forEach(e=>{n[e]=Ha}):IO(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(s).forEach(e=>{const t=RO(s[e],r,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:Ha),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],i=e._styleSummary[t];(!n||i.time>n.time)&&this._updateStyle(t,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((r,s)=>{const o=IO(r,!0);Object.keys(o).forEach(n=>{const i=o[n];i==Za?e.add(n):i==Ha&&t.add(n)}),n||(o.offset=s/this.duration),i.push(o)});const r=e.size?VO(e.values()):[],s=t.size?VO(t.values()):[];if(n){const e=i[0],t=TO(e);e.offset=0,t.offset=1,i=[e,t]}return rN(this.element,i,r,s,this.duration,this.startTime,this.easing,!1)}}class fN extends pN{constructor(e,t,n,i,r,s,o=!1){super(e,t,s.delay),this.element=t,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],s=n+t,o=t/s,a=IO(e[0],!1);a.offset=0,r.push(a);const l=IO(e[0],!1);l.offset=mN(o),r.push(l);const h=e.length-1;for(let i=1;i<=h;i++){let o=IO(e[i],!1);o.offset=mN((t+o.offset*n)/s),r.push(o)}n=s,t=0,i="",e=r}return rN(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,!0)}}function mN(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class gN{}class vN extends gN{normalizePropertyName(e,t){return LO(e)}normalizeStyleValue(e,t,n,i){let r="";const s=n.toString().trim();if(yN[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&i.push(`Please provide a CSS unit value for ${e}:${n}`)}return s+r}}const yN=(()=>(function(e){const t={};return e.forEach(e=>t[e]=!0),t})("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function wN(e,t,n,i,r,s,o,a,l,h,u,c,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:h,postStyleProps:u,totalTime:c,errors:d}}const _N={};class bN{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,i){return function(e,t,n,i,r){return e.some(e=>e(t,n,i,r))}(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){const i=this._stateStyles["*"],r=this._stateStyles[e],s=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):s}build(e,t,n,i,r,s,o,a,l,h){const u=[],c=this.ast.options&&this.ast.options.params||_N,d=this.buildStyles(n,o&&o.params||_N,u),p=a&&a.params||_N,f=this.buildStyles(i,p,u),m=new Set,g=new Map,v=new Map,y="void"===i,w={params:Object.assign({},c,p)},_=h?[]:hN(e,t,this.ast.animation,r,s,d,f,w,l,u);let b=0;if(_.forEach(e=>{b=Math.max(e.duration+e.delay,b)}),u.length)return wN(t,this._triggerName,n,i,y,d,f,[],[],g,v,b,u);_.forEach(e=>{const n=e.element,i=tO(g,n,{});e.preStyleProps.forEach(e=>i[e]=!0);const r=tO(v,n,{});e.postStyleProps.forEach(e=>r[e]=!0),n!==t&&m.add(n)});const x=VO(m.values());return wN(t,this._triggerName,n,i,y,d,f,_,x,g,v,b)}}class xN{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},i=TO(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const r=e;Object.keys(r).forEach(e=>{let s=r[e];s.length>1&&(s=RO(s,i,t)),n[e]=s})}}),n}}class CN{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new xN(e.style,e.options&&e.options.params||{})}),SN(this.states,"true","1"),SN(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new bN(e,t,this.states))}),this.fallbackTransition=new bN(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(r=>r.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function SN(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const kN=new sN;class EN{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],i=QO(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=i}_buildPlayer(e,t,n){const i=e.element,r=QA(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const i=[],r=this._animations[e];let s;const o=new Map;if(r?(s=hN(this._driver,t,r,yO,wO,{},{},n,kN,i)).forEach(e=>{const t=tO(o,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)}):(i.push("The requested animation doesn't exist or has already been destroyed"),s=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);o.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,Ha)})});const a=KA(s.map(e=>{const t=o.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,i){const r=eO(t,"","","");return XA(this._getPlayer(e),n,r,i),()=>{}}command(e,t,n,i){if("register"==n)return void this.register(e,i[0]);if("create"==n)return void this.create(e,t,i[0]||{});const r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const TN="ng-animate-queued",IN=".ng-animate-queued",DN="ng-animate-disabled",AN=".ng-animate-disabled",ON="ng-star-inserted",NN=".ng-star-inserted",FN=[],MN={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},PN={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},RN="__ng_removed";class VN{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(n?e.value:e),n){const t=TO(e);delete t.value,this.options=t}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const zN="void",LN=new VN(zN);class BN{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,ZN(t,this._hostClassName)}listen(e,t,n,i){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var r;const s=tO(this._elementListeners,e,[]),o={name:t,phase:n,callback:i};s.push(o);const a=tO(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(ZN(e,_O),ZN(e,_O+"-"+t),a[t]=LN),()=>{this._engine.afterFlush(()=>{const e=s.indexOf(o);e>=0&&s.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,i=!0){const r=this._getTrigger(t),s=new $N(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(ZN(e,_O),ZN(e,_O+"-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new VN(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=LN),l.value!==zN&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(a.params,l.params)){const t=[],n=r.matchStyles(a.value,a.params,t),i=r.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{NO(e,n),OO(e,i)})}return}const h=tO(this._engine.playersByElement,e,[]);h.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=r.matchTransition(a.value,l.value,e,l.params),c=!1;if(!u){if(!i)return;u=r.fallbackTransition,c=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:a,toState:l,player:s,isFallbackTransition:c}),c||(ZN(e,TN),s.onStart(()=>{YN(e,TN)})),s.onDone(()=>{let t=this.players.indexOf(s);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(s);e>=0&&n.splice(e,1)}}),this.players.push(s),h.push(s),s}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t,n=!1){this._engine.driver.query(e,bO,!0).forEach(e=>{if(e[RN])return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)})}triggerLeaveAnimation(e,t,n,i){const r=this._engine.statesByElement.get(e);if(r){const s=[];if(Object.keys(r).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,zN,i);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&KA(s).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e);if(t){const n=new Set;t.forEach(t=>{const i=t.name;if(n.has(i))return;n.add(i);const r=this._triggers[i].fallbackTransition,s=this._engine.statesByElement.get(e)[i]||LN,o=new VN(zN),a=new $N(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:r,fromState:s,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t,!0),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)i=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){i=!0;break}}}this.prepareLeaveAnimationListeners(e),i?n.markElementAsRemoved(this.id,e,!1,t):(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}insertNode(e,t){ZN(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const r=n.element,s=this._elementListeners.get(r);s&&s.forEach(t=>{if(t.name==n.triggerName){const i=eO(r,n.triggerName,n.fromState.value,n.toState.value);i._data=e,XA(n.player,t.phase,i,t.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,i=t.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),!!this._queue.find(t=>t.element===e)||t}}class HN{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=((e,t)=>{})}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new BN(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let i=0;i<e.length;i++){const r=n[e[i]].namespaceId;if(r){const e=this._fetchNamespace(r);e&&t.add(e)}}}return t}trigger(e,t,n,i){if(jN(t)){const r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}insertNode(e,t,n,i){if(!jN(t))return;const r=t[RN];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const i=this._fetchNamespace(e);i&&i.insertNode(t,n)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),ZN(e,DN)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),YN(e,DN))}removeNode(e,t,n,i){if(jN(t)){const r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,i)}}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,n,i){this.collectedLeaveElements.push(t),t[RN]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,i,r){return jN(t)?this._fetchNamespace(e).listen(t,n,i,r):()=>{}}_buildInstruction(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,bO,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,CO,!0)).forEach(e=>this.finishActiveQueriedAnimationOnElement(e))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return KA(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[RN];if(t&&t.setForRemoval){if(e[RN]=MN,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,AN)&&this.markElementAsDisabled(e,!1),this.driver.query(e,AN,!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)ZN(this.collectedEnterElements[n],ON);if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?KA(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new sN,i=[],r=new Map,s=[],o=new Map,a=new Map,l=new Map,h=new Set;this.disabledNodes.forEach(e=>{h.add(e);const t=this.driver.query(e,IN,!0);for(let n=0;n<t.length;n++)h.add(t[n])});const u=this.bodyNode,c=Array.from(this.statesByElement.keys()),d=WN(c,this.collectedEnterElements),p=new Map;let f=0;d.forEach((e,t)=>{const n=yO+f++;p.set(t,n),e.forEach(e=>ZN(e,n))});const m=[],g=new Set,v=new Set;for(let A=0;A<this.collectedLeaveElements.length;A++){const e=this.collectedLeaveElements[A],t=e[RN];t&&t.setForRemoval&&(m.push(e),g.add(e),t.hasAnimation?this.driver.query(e,NN,!0).forEach(e=>g.add(e)):v.add(e))}const y=new Map,w=WN(c,Array.from(g));w.forEach((e,t)=>{const n=wO+f++;y.set(t,n),e.forEach(e=>ZN(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>YN(e,n))}),w.forEach((e,t)=>{const n=y.get(t);e.forEach(e=>YN(e,n))}),m.forEach(e=>{this.processLeaveNode(e)})});const _=[],b=[];for(let A=this._namespaceList.length-1;A>=0;A--)this._namespaceList[A].drainQueuedTransitions(t).forEach(e=>{const t=e.player,r=e.element;if(_.push(t),this.collectedEnterElements.length){const e=r[RN];if(e&&e.setForMove)return void t.destroy()}const h=!u||!this.driver.containsElement(u,r),c=y.get(r),d=p.get(r),f=this._buildInstruction(e,n,d,c,h);if(!f.errors||!f.errors.length)return h?(t.onStart(()=>NO(r,f.fromStyles)),t.onDestroy(()=>OO(r,f.toStyles)),void i.push(t)):e.isFallbackTransition?(t.onStart(()=>NO(r,f.fromStyles)),t.onDestroy(()=>OO(r,f.toStyles)),void i.push(t)):(f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(r,f.timelines),s.push({instruction:f,player:t,element:r}),f.queriedElements.forEach(e=>tO(o,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),void f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let i=l.get(t);i||l.set(t,i=new Set),n.forEach(e=>i.add(e))}));b.push(f)});if(b.length){const e=[];b.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),_.forEach(e=>e.destroy()),this.reportError(e)}const x=new Map,C=new Map;s.forEach(e=>{const t=e.element;n.has(t)&&(C.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,x))}),i.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{tO(x,t,[]).push(e),e.destroy()})});const S=m.filter(e=>QN(e,a,l)),k=new Map;qN(k,this.driver,v,l,Ha).forEach(e=>{QN(e,a,l)&&S.push(e)});const E=new Map;d.forEach((e,t)=>{qN(E,this.driver,new Set(e),a,Za)}),S.forEach(e=>{const t=k.get(e),n=E.get(e);k.set(e,Object.assign({},t,n))});const T=[],I=[],D={};s.forEach(e=>{const{element:t,player:s,instruction:o}=e;if(n.has(t)){if(h.has(t))return s.onDestroy(()=>OO(t,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void i.push(s);let e=D;if(C.size>1){let n=t;const i=[];for(;n=n.parentNode;){const t=C.get(n);if(t){e=t;break}i.push(n)}i.forEach(t=>C.set(t,e))}const n=this._buildAnimation(s.namespaceId,o,x,r,E,k);if(s.setRealPlayer(n),e===D)T.push(s);else{const t=this.playersByElement.get(e);t&&t.length&&(s.parentPlayer=KA(t)),i.push(s)}}else NO(t,o.fromStyles),s.onDestroy(()=>OO(t,o.toStyles)),I.push(s),h.has(t)&&i.push(s)}),I.forEach(e=>{const t=r.get(e.element);if(t&&t.length){const n=KA(t);e.setRealPlayer(n)}}),i.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let A=0;A<m.length;A++){const e=m[A],t=e[RN];if(YN(e,wO),t&&t.hasAnimation)continue;let n=[];if(o.size){let t=o.get(e);t&&t.length&&n.push(...t);let i=this.driver.query(e,CO,!0);for(let e=0;e<i.length;e++){let t=o.get(i[e]);t&&t.length&&n.push(...t)}}const i=n.filter(e=>!e.destroyed);i.length?KN(this,e,i):this.processLeaveNode(e)}return m.length=0,T.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),T}elementContainsData(e,t){let n=!1;const i=t[RN];return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,i,r){let s=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(s=t)}else{const t=this.playersByElement.get(e);if(t){const e=!r||r==zN;t.forEach(t=>{t.queued||(e||t.triggerName==i)&&s.push(t)})}}return(n||i)&&(s=s.filter(e=>!(n&&n!=e.namespaceId||i&&i!=e.triggerName))),s}_beforeAnimationBuild(e,t,n){const i=t.element,r=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,a=e!==i,l=tO(n,e,[]);this._getPreviousPlayers(e,a,r,s,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}NO(i,t.fromStyles)}_buildAnimation(e,t,n,i,r,s){const o=t.triggerName,a=t.element,l=[],h=new Set,u=new Set,c=t.timelines.map(t=>{const c=t.element;h.add(c);const d=c[RN];if(d&&d.removedBeforeQueried)return new Wa(t.duration,t.delay);const p=c!==a,f=function(e){const t=[];return function e(t,n){for(let i=0;i<t.length;i++){const r=t[i];r instanceof Ga?e(r.players,n):n.push(r)}}((n.get(c)||FN).map(e=>e.getRealPlayer()),t),t}().filter(e=>!!e.element&&e.element===c),m=r.get(c),g=s.get(c),v=QA(0,this._normalizer,0,t.keyframes,m,g),y=this._buildPlayer(t,v,f);if(t.subTimeline&&i&&u.add(c),p){const t=new $N(e,o,c);t.setRealPlayer(y),l.push(t)}return y});l.forEach(e=>{tO(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>(function(e,t,n){let i;if(e instanceof Map){if(i=e.get(t)){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&e.delete(t)}}else if(i=e[t]){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&delete e[t]}return i})(this.playersByQueriedElement,e.element,e))}),h.forEach(e=>ZN(e,xO));const d=KA(c);return d.onDestroy(()=>{h.forEach(e=>YN(e,xO)),OO(a,t.toStyles)}),u.forEach(e=>{tO(i,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Wa(e.duration,e.delay)}}class $N{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Wa,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>XA(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){tO(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function jN(e){return e&&1===e.nodeType}function UN(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function qN(e,t,n,i,r){const s=[];n.forEach(e=>s.push(UN(e)));const o=[];i.forEach((n,i)=>{const s={};n.forEach(e=>{const n=s[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i[RN]=PN,o.push(i))}),e.set(i,s)});let a=0;return n.forEach(e=>UN(e,s[a++])),o}function WN(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const i=new Set(t),r=new Map;return t.forEach(e=>{const t=function e(t){if(!t)return 1;let s=r.get(t);if(s)return s;const o=t.parentNode;return s=n.has(o)?o:i.has(o)?1:e(o),r.set(t,s),s}(e);1!==t&&n.get(t).push(e)}),n}const GN="$$classes";function ZN(e,t){if(e.classList)e.classList.add(t);else{let n=e[GN];n||(n=e[GN]={}),n[t]=!0}}function YN(e,t){if(e.classList)e.classList.remove(t);else{let n=e[GN];n&&delete n[t]}}function KN(e,t,n){KA(n).onDone(()=>e.processLeaveNode(t))}function QN(e,t,n){const i=n.get(e);if(!i)return!1;let r=t.get(e);return r?i.forEach(e=>r.add(e)):t.set(e,i),n.delete(e),!0}class XN{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=((e,t)=>{}),this._transitionEngine=new HN(e,t,n),this._timelineEngine=new EN(e,t,n),this._transitionEngine.onRemovalComplete=((e,t)=>this.onRemovalComplete(e,t))}registerTrigger(e,t,n,i,r){const s=e+"-"+i;let o=this._triggerCache[s];if(!o){const e=[],t=QO(this._driver,r,e);if(e.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new CN(e,t)}(i,t),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(t,i,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}onRemove(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,i){if("@"==n.charAt(0)){const[e,r]=nO(n);this._timelineEngine.command(e,t,r,i)}else this._transitionEngine.trigger(e,t,n,i)}listen(e,t,n,i,r){if("@"==n.charAt(0)){const[e,i]=nO(n);return this._timelineEngine.listen(e,t,i,r)}return this._transitionEngine.listen(e,t,n,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function JN(e,t){let n=null,i=null;return Array.isArray(t)&&t.length?(n=tF(t[0]),t.length>1&&(i=tF(t[t.length-1]))):t&&(n=tF(t)),n||i?new eF(e,n,i):null}const eF=(()=>{class e{constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;let r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&OO(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(OO(this._element,this._initialStyles),this._endStyles&&(OO(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(NO(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(NO(this._element,this._endStyles),this._endStyles=null),OO(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function tF(e){let t=null;const n=Object.keys(e);for(let i=0;i<n.length;i++){const r=n[i];nF(r)&&((t=t||{})[r]=e[r])}return t}function nF(e){return"display"===e||"position"===e}const iF=3,rF="animation",sF="animationend",oF=1e3;class aF{constructor(e,t,n,i,r,s,o){this._element=e,this._name=t,this._duration=n,this._delay=i,this._easing=r,this._fillMode=s,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=(e=>this._handleCallback(e))}apply(){!function(e,t){const n=pF(e,"").trim();n.length&&(function(e,t){let n=0;for(let i=0;i<e.length;i++)","===e.charAt(i)&&n++}(n),t=`${n}, ${t}`),dF(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),cF(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){lF(this._element,this._name,"paused")}resume(){lF(this._element,this._name,"running")}setPosition(e){const t=hF(this._element,this._name);this._position=e*this._duration,dF(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=parseFloat(e.elapsedTime.toFixed(iF))*oF;e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),cF(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=pF(e,"").split(","),i=uF(n,t);i>=0&&(n.splice(i,1),dF(e,"",n.join(",")))}(this._element,this._name))}}function lF(e,t,n){dF(e,"PlayState",n,hF(e,t))}function hF(e,t){const n=pF(e,"");return n.indexOf(",")>0?uF(n.split(","),t):uF([n],t)}function uF(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function cF(e,t,n){n?e.removeEventListener(sF,t):e.addEventListener(sF,t)}function dF(e,t,n,i){const r=rF+t;if(null!=i){const t=e.style[r];if(t.length){const e=t.split(",");e[i]=n,n=e.join(",")}}e.style[r]=n}function pF(e,t){return e.style[rF+t]}const fF="forwards",mF="linear";class gF{constructor(e,t,n,i,r,s,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||mF,this.totalTime=i+r,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new aF(this.element,this.animationName,this._duration,this._delay,this.easing,fF,()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:jO(this.element,n))})}this.currentSnapshot=e}}class vF extends Wa{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=pO(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}const yF="gen_css_kf_",wF=" ";class _F{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(e){return hO(e)}matchesElement(e,t){return uO(e,t)}containsElement(e,t){return cO(e,t)}query(e,t,n){return dO(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>pO(e));let i=`@keyframes ${t} {\n`,r="";n.forEach(e=>{r=wF;const t=parseFloat(e.offset);i+=`${r}${100*t}% {\n`,r+=wF,Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+=`${r}animation-timing-function: ${n};\n`));default:return void(i+=`${r}${t}: ${n};\n`)}}),i+=`${r}}\n`}),i+="}\n";const s=document.createElement("style");return s.innerHTML=i,s}animate(e,t,n,i,r,s=[],o){o&&this._notifyFaultyScrubber();const a=s.filter(e=>e instanceof gF),l={};BO(n,i)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const h=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=HO(e,t,l));if(0==n)return new vF(e,h);const u=`${yF}${this._count++}`,c=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(c);const d=JN(e,t),p=new gF(e,t,u,n,i,r,h,d);return p.onDestroy(()=>(function(e){c.parentNode.removeChild(c)})()),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n","  visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class bF{constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:jO(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class xF{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(CF().toString()),this._cssKeyframesDriver=new _F}validateStyleProperty(e){return hO(e)}matchesElement(e,t){return uO(e,t)}containsElement(e,t){return cO(e,t)}query(e,t,n){return dO(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,i,r,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,s);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const l={},h=s.filter(e=>e instanceof bF);BO(n,i)&&h.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const u=JN(e,t=HO(e,t=t.map(e=>IO(e,!1)),l));return new bF(e,t,a,u)}}function CF(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}const SF=(()=>(class extends La{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:Xe.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?ja(e):e;return TF(this._renderer,null,t,"register",[n]),new kF(t,this._renderer)}}))();class kF extends Ba{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new EF(this._id,e,t||{},this._renderer)}}class EF{constructor(e,t,n,i){this.id=e,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return TF(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){return 0}}function TF(e,t,n,i,r){return e.setProperty(t,`@@${n}:${i}`,r)}const IF="@",DF="@.disabled",AF=(()=>(class{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=((e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)})}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new OF("",n,this.engine),this._rendererCache.set(n,e)),e}const i=t.id,r=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(r,e),t.data.animation.forEach(t=>this.engine.registerTrigger(i,r,e,t.name,t)),new NF(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}))();class OF{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==IF&&t==DF?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class NF extends OF{constructor(e,t,n,i){super(t,n,i),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==IF?"."==t.charAt(1)&&t==DF?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==IF){const i=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let r=t.substr(1),s="";return r.charAt(0)!=IF&&([r,s]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(r)),this.engine.listen(this.namespaceId,i,r,s,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}const FF=(()=>(class extends XN{constructor(e,t,n){super(e.body,t,n)}}))();function MF(){return"function"==typeof CF()?new xF:new _F}function PF(){return new vN}function RF(e,t,n){return new AF(e,t,n)}const VF=new Ae("AnimationModuleType"),zF=(()=>(class{}))();function LF(e){return new _(t=>{let n;try{n=e()}catch(i){return void t.error(i)}return(n?q(n):su()).subscribe(t)})}const BF=new _(w),HF="Service workers are disabled or not supported by this browser";class $F{constructor(e){if(this.serviceWorker=e,e){const t=ta(e,"controllerchange").pipe(H(()=>e.controller)),n=function(...e){return K(1)(oc(...e))}(LF(()=>oc(e.controller)),t);this.worker=n.pipe(Cc(e=>!!e)),this.registration=this.worker.pipe(uc(()=>e.getRegistration()));const i=ta(e,"message").pipe(H(e=>e.data)).pipe(Cc(e=>e&&e.type)).pipe(re(new E));i.connect(),this.events=i}else this.worker=this.events=this.registration=(t=HF,LF(()=>Dc(new Error(t))));var t}postMessage(e,t){return this.worker.pipe(mc(1),_c(n=>{n.postMessage(Object.assign({action:e},t))})).toPromise().then(()=>void 0)}postMessageWithStatus(e,t,n){const i=this.waitForStatus(n),r=this.postMessage(e,t);return Promise.all([i,r]).then(()=>void 0)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(e){return this.events.pipe(Cc(t=>t.type===e))}nextEventOfType(e){return this.eventsOfType(e).pipe(mc(1))}waitForStatus(e){return this.eventsOfType("STATUS").pipe(Cc(t=>t.nonce===e),mc(1),H(e=>{if(!e.status)throw new Error(e.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}const jF=(()=>(class{constructor(e){if(this.sw=e,this.subscriptionChanges=new E,!e.isEnabled)return this.messages=BF,this.notificationClicks=BF,void(this.subscription=BF);this.messages=this.sw.eventsOfType("PUSH").pipe(H(e=>e.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(H(e=>e.data)),this.pushManager=this.sw.registration.pipe(H(e=>e.pushManager));const t=this.pushManager.pipe(uc(e=>e.getSubscription()));this.subscription=Q(t,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(e){if(!this.sw.isEnabled)return Promise.reject(new Error(HF));const t={userVisibleOnly:!0};let n=this.decodeBase64(e.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),i=new Uint8Array(new ArrayBuffer(n.length));for(let r=0;r<n.length;r++)i[r]=n.charCodeAt(r);return t.applicationServerKey=i,this.pushManager.pipe(uc(e=>e.subscribe(t)),mc(1)).toPromise().then(e=>(this.subscriptionChanges.next(e),e))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe(mc(1),uc(e=>{if(null===e)throw new Error("Not subscribed to push notifications.");return e.unsubscribe().then(e=>{if(!e)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(HF))}decodeBase64(e){return atob(e)}}))(),UF=(()=>(class{constructor(e){if(this.sw=e,!e.isEnabled)return this.available=BF,void(this.activated=BF);this.available=this.sw.eventsOfType("UPDATE_AVAILABLE"),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(HF));const e=this.sw.generateNonce();return this.sw.postMessageWithStatus("CHECK_FOR_UPDATES",{statusNonce:e},e)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(HF));const e=this.sw.generateNonce();return this.sw.postMessageWithStatus("ACTIVATE_UPDATE",{statusNonce:e},e)}}))();class qF{}const WF=new Ae("NGSW_REGISTER_SCRIPT");function GF(e,t,n,i){return()=>{if(!(Hl(i)&&"serviceWorker"in navigator&&!1!==n.enabled))return;let r;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof n.registrationStrategy)r=n.registrationStrategy();else{const[t,...i]=(n.registrationStrategy||"registerWhenStable").split(":");switch(t){case"registerImmediately":r=oc(null);break;case"registerWithDelay":r=oc(null).pipe(function(e,t=_a){var n;const i=(n=e)instanceof Date&&!isNaN(+n)?+e-t.now():Math.abs(e);return e=>e.lift(new Nc(i,t))}(+i[0]||0));break;case"registerWhenStable":r=e.get(ps).isStable.pipe(Cc(e=>e));break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${n.registrationStrategy}`)}}r.pipe(mc(1)).subscribe(()=>navigator.serviceWorker.register(t,{scope:n.scope}).catch(e=>console.error("Service worker registration failed with:",e)))}}function ZF(e,t){return new $F(Hl(t)&&!1!==e.enabled?navigator.serviceWorker:void 0)}const YF=(()=>{class e{static register(t,n={}){return{ngModule:e,providers:[{provide:WF,useValue:t},{provide:qF,useValue:n},{provide:$F,useFactory:ZF,deps:[qF,Ar]},{provide:Sr,useFactory:GF,deps:[Pe,WF,qF,Ar],multi:!0}]}}}return e})(),KF=(()=>(class{}))();var QF=Qo(Jo,[ea.a],function(e){return function(e){const t={},n=[];let i=!1;for(let r=0;r<e.length;r++){const s=e[r];s.token===Ut&&!0===s.value&&(i=!0),1073741824&s.flags&&n.push(s.token),s.index=r,t[Wn(s.token)]=s}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:i}}([Ei(512,Kt,Qt,[[8,[Wl,KD,TA,OA,eA,dA,oA,yA,CA,ZA]],[3,Kt],Jt]),Ei(5120,xs,ks,[[3,xs]]),Ei(4608,bl,xl,[xs,[2,_l]]),Ei(5120,br,Es,[Zr]),Ei(4608,zr,zr,[]),Ei(5120,Er,Tr,[]),Ei(5120,xn,Cs,[]),Ei(5120,Cn,Ss,[]),Ei(4608,Gh,Zh,[Ll]),Ei(6144,Dt,null,[Gh]),Ei(4608,Bh,$h,[]),Ei(5120,ph,function(e,t,n,i,r,s,o,a){return[new zh(e,t,n),new Wh(i),new jh(r,s,o,a)]},[Ll,Zr,Ar,Ll,Ll,Bh,Nr,[2,Hh]]),Ei(4608,fh,fh,[ph,Zr]),Ei(135680,vh,vh,[Ll]),Ei(4608,Sh,Sh,[fh,vh,Er]),Ei(5120,mO,MF,[]),Ei(5120,gN,PF,[]),Ei(4608,XN,FF,[Ll,mO,gN]),Ei(5120,on,RF,[Sh,XN,Zr]),Ei(6144,gh,null,[vh]),Ei(4608,ts,ts,[Zr]),Ei(4608,pl,pl,[ps,Kt,Pe,[2,dl]]),Ei(4608,La,SF,[on,Ll]),Ei(4608,ic,ic,[]),Ei(4608,Eu,Eu,[]),Ei(4608,CS,CS,[]),Ei(4608,HC,HC,[]),Ei(4608,UC,UC,[]),Ei(4608,GC,GC,[tC]),Ei(4608,KC,KC,[tC]),Ei(4608,fk,fk,[tC]),Ei(135680,Ma,Ma,[Zr]),Ei(5120,$F,ZF,[qF,Ar]),Ei(4608,jF,jF,[$F]),Ei(4608,UF,UF,[$F]),Ei(1073742336,zl,zl,[]),Ei(1024,it,nu,[]),Ei(256,WF,"ngsw-worker.js",[]),Ei(256,qF,{enabled:!0},[]),Ei(1024,Sr,function(e,t,n,i,r){return[(s=e,uh("probe",dh),uh("coreTokens",Object.assign({},ch,(s||[]).reduce((e,t)=>(e[t.name]=t.token,e),{}))),()=>dh),GF(t,n,i,r)];var s},[[2,ls],Pe,WF,qF,Ar]),Ei(512,kr,kr,[[2,Sr]]),Ei(131584,ps,ps,[Zr,Nr,Pe,it,Kt,kr]),Ei(1073742336,Ts,Ts,[ps]),Ei(1073742336,iu,iu,[[3,iu]]),Ei(1073742336,Uk,Uk,[]),Ei(1073742336,qk,qk,[]),Ei(1073742336,fl,fl,[]),Ei(1073742336,Wk,Wk,[]),Ei(1073742336,Gk,Gk,[]),Ei(1073742336,Zk,Zk,[]),Ei(1073742336,Yk,Yk,[]),Ei(1073742336,zF,zF,[]),Ei(1073742336,Oa,Oa,[]),Ei(1073742336,wT,wT,[]),Ei(1073742336,FT,FT,[]),Ei(1073742336,MT,MT,[]),Ei(1073742336,nc,nc,[]),Ei(1073742336,sc,sc,[]),Ei(1073742336,rc,rc,[]),Ei(1073742336,Fa,Fa,[]),Ei(1073742336,zw,zw,[]),Ei(1073742336,iC,iC,[]),Ei(1073742336,kk,kk,[]),Ei(1073742336,gk,gk,[]),Ei(1073742336,vk,vk,[]),Ei(1073742336,bk,bk,[]),Ei(1073742336,xk,xk,[]),Ei(1073742336,$k,$k,[]),Ei(1073742336,uI,uI,[]),Ei(1073742336,Ra,Ra,[]),Ei(1073742336,Jd,Jd,[]),Ei(1073742336,ep,ep,[]),Ei(1073742336,ap,ap,[]),Ei(1073742336,tp,tp,[]),Ei(1073742336,Bw,Bw,[]),Ei(1073742336,Pw,Pw,[]),Ei(1073742336,Rw,Rw,[]),Ei(1073742336,Lw,Lw,[]),Ei(1073742336,Hw,Hw,[]),Ei(1073742336,$w,$w,[]),Ei(1073742336,bT,bT,[]),Ei(1073742336,xT,xT,[]),Ei(1073742336,qT,qT,[]),Ei(1073742336,eI,eI,[]),Ei(1073742336,tI,tI,[]),Ei(1073742336,cI,cI,[]),Ei(1073742336,NT,NT,[]),Ei(1073742336,dI,dI,[]),Ei(1073742336,KF,KF,[]),Ei(1073742336,YF,YF,[]),Ei(1073742336,Jo,Jo,[]),Ei(256,Ut,!0,[]),Ei(256,VF,"BrowserAnimations",[]),Ei(256,hk,Hk,[])])});(function(){if(st)throw new Error("Cannot enable prod mode after platform setup.");rt=!1})(),tu().bootstrapModuleFactory(QF).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]);